CN107580124B - Method for switching antenna, communication terminal and computer readable storage medium - Google Patents

Method for switching antenna, communication terminal and computer readable storage medium Download PDF

Info

Publication number
CN107580124B
CN107580124B CN201710766419.1A CN201710766419A CN107580124B CN 107580124 B CN107580124 B CN 107580124B CN 201710766419 A CN201710766419 A CN 201710766419A CN 107580124 B CN107580124 B CN 107580124B
Authority
CN
China
Prior art keywords
antennas
decision
antenna
stage
judgment
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
CN201710766419.1A
Other languages
Chinese (zh)
Other versions
CN107580124A (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 CN201710766419.1A priority Critical patent/CN107580124B/en
Publication of CN107580124A publication Critical patent/CN107580124A/en
Application granted granted Critical
Publication of CN107580124B publication Critical patent/CN107580124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for switching antennas, a communication terminal and a computer readable storage medium, wherein the antenna switching method is applied to the communication terminal comprising a main transceiving path, an auxiliary receiving path and at least three groups of antennas. Since the current performance of each antenna group is evaluated by two or more stages with time sequence before determining whether the main and auxiliary antennas need to be reselected, the performance of the antenna is not only simply subjected to at least two judgments compared with a one-time evaluation method. More importantly, the overall performance of each group of antennas in the condition advanced judgment period can be objectively and comprehensively evaluated, the influence of accidental factors on the performance of the antennas is eliminated, the subsequent switching is reliable and effective, and each group of antennas participating in the work after the switching has real and stable good performance.

Description

Method for switching antenna, communication terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for switching antennas, a communications 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 transmitting and 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, a method for switching antennas, a communication terminal and a computer-readable storage medium are provided.
In order to solve the above technical problem, the present invention provides a method for switching antennas, which is applied to a communication terminal, where the communication terminal includes a main transceiving path, an auxiliary receiving path, and at least three groups of antennas; the at least three groups of antennas are currently communicated with the main transceiving passage as main antennas, currently communicated with the auxiliary receiving passage as auxiliary antennas, and the rest are idle antennas; the method comprises the following steps:
performing a conditional step decision including N decision stages on the performance of the at least three groups of antennas to determine whether antenna switching is required, where N is greater than or equal to 2, and the decision stages include: acquiring downlink communication parameters for representing the current performance of each group of antennas of the communication terminal; calculating pairwise differences of downlink communication parameters of the at least three groups of antennas; determining whether a calculation result meets a judgment condition corresponding to the judgment stage based on a stage threshold value of the judgment stage, if so, judging whether the current judgment stage is the last judgment stage, if so, judging that antenna switching is needed, otherwise, entering the next judgment stage; downlink communication parameters of each judgment stage in the N judgment stages are the same, and stage thresholds of each judgment stage in the N judgment stages are the same;
and when the antenna switching is judged to be needed, the communication relation among the at least three groups of 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.
Optionally, after determining that the current decision stage is not the last decision stage, before entering the next decision stage, the method further includes: and entering a waiting period of the current decision stage.
Optionally, the waiting periods of at least two of the N decision stages are not equal.
Optionally, the communication terminal includes three antennas, one of the antennas is communicated with the main transceiving path to be a main antenna, one of the antennas is communicated with the auxiliary receiving path to be an auxiliary antenna, and the remaining antenna is an idle antenna; the waiting period of the former decision stage in the N decision stages is larger than that of the latter decision stage.
Optionally, the re-determining the communication relationship between the at least three groups of antennas and the main transceiving path and the auxiliary receiving path includes:
and selecting a group of antennas with optimal performance to be communicated with the main receiving and transmitting channel according to the downlink communication parameters of the antennas, and selecting a group of antennas with suboptimal performance to be communicated with the auxiliary receiving channel.
Optionally, the downlink communication parameter includes at least one of a received signal strength, a received signal quality, a received signal power, and a bit error rate.
Optionally, the downlink communication parameter includes at least two of a received signal strength, a received signal quality, a received signal power, and a bit error rate; the calculating of the pairwise difference of the downlink communication parameters of the at least three groups of antennas comprises: calculating pairwise difference values of the same downlink communication parameters of each group of antennas in the at least three groups of antennas;
the determining whether the calculation result meets the decision condition corresponding to the decision stage based on the stage threshold of the decision stage includes:
carrying out dimensionless processing on each difference value of every two groups of antennas to obtain corresponding standard values, and then calculating the average difference value of each standard value of the two groups of antennas;
comparing the average difference value between every two antennas of each group 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, determining that the decision condition corresponding to the decision stage is met, or when the proportion that the average difference value is greater than the stage threshold value of the decision stage reaches a preset proportion, determining that the decision condition corresponding to the decision stage is met.
Optionally, the downlink communication parameter includes at least two of received signal strength, received signal quality, and received signal power; the calculating of the pairwise difference of the downlink communication parameters of the at least three groups of antennas comprises: calculating pairwise difference values of the same downlink communication parameters of each group of antennas in the at least three groups of antennas;
the determining whether the calculation result meets the decision condition corresponding to the decision stage based on the stage threshold of the decision stage includes:
for a certain downlink communication parameter, comparing each pairwise difference value corresponding to the downlink communication parameter with a decision threshold value of the downlink communication parameter in the decision threshold value; when any one of the pairwise difference values of the downlink 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 downlink communication parameters meet a step condition;
and judging whether the number of the downlink communication parameters reaching the advanced condition reaches a preset number, and if so, determining that the judgment condition corresponding to the judgment stage is met.
Further, the invention also provides a communication terminal, which comprises a processor, a memory and a communication bus; the communication terminal also comprises a main transceiving path, an auxiliary receiving path and at least three groups of antennas; the at least three groups of antennas are currently communicated with the main transceiving passage as main antennas, currently communicated with the auxiliary receiving passage as auxiliary antennas, and the rest are idle antennas;
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 method of switching antennas as described in any one of the above.
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 method of switching antennas as described in any above.
Advantageous effects
The invention provides a method for switching antennas, a communication terminal and a computer storage medium, wherein the method provided by the invention is applied to the communication terminal comprising a main transceiving path, an auxiliary receiving path and at least three groups of antennas, wherein the main antenna is currently communicated with the main transceiving path in the at least three groups of antennas, the auxiliary antenna is currently communicated with the auxiliary receiving path, and the rest idle antennas are arranged;
in addition, the invention determines whether the antenna switching is needed by performing the conditional advanced decision comprising at least two decision stages on the performance of each group of antennas. In each judgment stage, acquiring downlink communication parameters for representing the current performance of each group of antennas of the communication terminal, calculating pairwise difference values of the downlink communication parameters of each group of antennas, then determining whether a calculation result meets judgment conditions corresponding to the judgment stage or not based on the same stage threshold value of each judgment stage, if so, further judging whether the current judgment stage is the last judgment stage or not, if so, judging that antenna switching is needed, otherwise, entering the next judgment stage; and when the antenna switching is determined to be needed after the judgment of each judgment stage, the communication relation among the at least three groups of antennas, the main receiving and transmitting passage and the auxiliary receiving passage is determined again so as to select new main antennas and auxiliary antennas. In the invention, before determining whether the main antenna and the auxiliary antenna need to be reselected, two or more than two judgment stages with a time sequence relation are adopted to evaluate the current performance of each group of antennas, so that the performance of the antennas is not only simply subjected to at least two judgments compared with a one-time evaluation mode. More importantly, the overall performance of each group of antennas in the condition advanced judgment period can be objectively and comprehensively evaluated, the influence of accidental factors on the performance of the antennas is eliminated, subsequent switching is reliable and effective, each group of antennas participating in work after switching is guaranteed to have real and stable good performance, and 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 alternative mobile terminal for implementing various embodiments of the present invention;
fig. 2 is a hardware structure of a radio frequency unit of a communication terminal in embodiments of the present invention;
fig. 3 is a flowchart of a method for switching antennas according to a first embodiment of the present invention;
FIG. 4 is a flow chart of the decision stages in the first embodiment of the present invention;
fig. 5 is a schematic diagram of an arrangement of three groups of antennas in a communication terminal according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of another arrangement of three groups of antennas in the communication terminal provided in the second embodiment of the present invention;
fig. 7 is a flowchart of a method for switching antennas according to a second embodiment of the present invention;
fig. 8 is a flowchart of a method for switching antennas according to a third embodiment of the present invention;
fig. 9 is a flowchart of selecting a primary antenna and a secondary antenna according to a third embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of a communication terminal according to various embodiments of the present invention;
fig. 11 is a schematic diagram of a wireless communication system of the communication terminal shown in fig. 10.
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 terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
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 at least includes three groups of antennas 112, where a main antenna currently connected to the main transceiving path of the mobile terminal 100 in the at least three groups of antennas 112 is a main antenna, an auxiliary antenna currently connected to the auxiliary receiving path of the mobile terminal 100 is an auxiliary antenna, and the rest are idle antennas, the processor 110 may control on/off of each group of antennas with the main transceiving path and the auxiliary receiving path, respectively, and when the processor 110 controls a certain group of antennas to be connected to the main transceiving path, the radio frequency unit 101 may receive or transmit signals through the group of antennas, it should be understood that the at least three groups of antennas 112 may be flexibly disposed at any position of the mobile terminal 100, for example, when the mobile terminal 100 includes three groups of antennas 112, the three groups of antennas 112 may be disposed above, below left, and below right of the back surface 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 fewer components than shown, or some components may be combined, 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.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
The first embodiment:
in order to solve the problem that in the prior art, the working role of an antenna in a terminal is fixed, so that the transceiving performance of the terminal is easily affected by factors such as a holding posture of a user, and the communication performance of the terminal is unstable, the embodiment provides a method for switching the antenna. For convenience of understanding an application scenario of the method for switching the antennas, a hardware structure of a radio frequency unit of the communication terminal in this embodiment is described below with reference to fig. 2:
the terminal of this embodiment includes at least three sets of 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 group of antennas 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 groups of antennas or select a specific combination of the main antenna and the auxiliary antenna based on the on/off of each switch circuit.
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.
Please refer to the flowchart of the method for switching antennas provided in fig. 3 further:
s302, performing conditional advanced judgment including N judgment stages on the performance of each group of antennas according to the downlink communication parameters of each group of antennas to determine whether antenna switching is needed.
The purpose of performing conditional-order judgment on the performance of each group of antennas in this embodiment is mainly to eliminate the situation that the performance of the antennas is different from the normal situation due to the influence of accidental factors in one-time performance evaluation through at least two judgment stages with time sequences, and to evaluate the performance situation of each group of antennas in one period more objectively rather than the performance situation at a certain moment. Assuming that A, B, C three antennas are included in a communication terminal, normally, two antennas in the communication terminal are working antennas, which are respectively used as a main antenna and an auxiliary antenna, and the other antenna is used as a spare antenna. The main antenna is used for receiving and transmitting signals, the auxiliary antenna mainly assists in receiving signals, and the idle antenna does not participate in work temporarily. In table 1, the antenna performance of A, B, C antennas at different times are given respectively:
TABLE 1
Time of day Performance of the antenna A Performance of antenna B Performance of the antenna C
T1 Is excellent in In general Difference (D)
T2 Is excellent in Good effect In general
T3 In general Good effect Is excellent in
Tn-1 Is excellent in Is excellent in Difference (D)
Tn Is excellent in Good effect In general
As can be seen from table 1, during the period from time T1 to time Tn, the overall performance of antenna a is better than that of antenna B and antenna C, and antenna B performs a little better than antenna C. Given that the performance of each antenna is now evaluated according to a one-time evaluation scheme, the selection of the evaluation time is very important, because if the communication parameters of each antenna are detected at selected times T1, T2, etc., the finally obtained performance evaluation will be matched with the actual situation. However, if the communication parameters of the antennas are detected at the time T3 so as to evaluate the performance of the three antennas, the result is opposite to the overall performance of the antennas. Therefore, if the scheme of one-time performance evaluation is adopted, it is possible that each antenna is affected by other accidental factors when the performance of the antenna is detected, and thus "abnormal" is expressed. It should be understood that the term "abnormal" as used herein refers to a situation that does not actually correspond to a normal situation. To avoid this problem in one-time performance evaluation, a conditional step decision mechanism is proposed in this embodiment. In the conditional advanced decision mechanism, N decision stages are included. Since the N decision stages are not performed simultaneously, the timing of execution of each decision stage is different from the previous timing to the next timing, and a period of time is required to complete the conditional advance decision including the N decision stages. Therefore, through a condition advanced judgment mechanism, the influence of accidental factors can be effectively avoided, and the stable and real overall performance condition of each group of antennas can be objectively known.
In this embodiment, the value of N is 2 or more. As for the specific value, the value can be set by the designer of the communication terminal or by the user according to the requirements of the user on the power consumption, performance and the like or the preference and the like. The following describes a single decision phase in the conditional step decision mechanism, please refer to fig. 4:
s402, obtaining the downlink communication parameters for representing the current performance of each group of antennas of the communication terminal.
In this embodiment, the antenna performance of each group of antennas is mainly characterized by the downlink communication parameters, but it should be understood that in some other examples, the uplink communication parameters may also be used to evaluate the antenna performance. The downlink communication parameters include, but are not limited to, at least one of received signal strength, received signal quality, received signal power, and bit error rate. The uplink traffic parameter includes at least one of Tx-AGC (automatic gain control), MTPL (Maximum transmit power level), and CQI (Channel Quality Indication), which are transmission signal powers. It is to be understood that, whether the parameters are uplink communication parameters or downlink communication parameters, the lists herein indicate the common ones, and the uplink communication parameters and the downlink communication parameters may also increase or decrease according to different communication systems. In addition, the names of the uplink Communication parameters and the downlink Communication parameters may be different in different formats, for example, the Received Signal Strength is characterized by a parameter RSSI (Received Signal Strength indicator) in a GSM (Global System for Mobile Communication) format, and becomes a parameter RSCP (Received Signal Code Power) in two Communication formats, namely WCDMA (Wideband Code Division Multiple Access) and TD-SCDMA (time Division-Synchronous Code Division Multiple Access), and the Reference Signal Received Power is characterized by a parameter RSRP in a Long Term Evolution (Long Term Evolution) format. Therefore, it is understood that the received signal strength, the received signal quality, and the like, which are referred to herein, are 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.
In each example of this embodiment, the downlink communication parameters obtained in the decision phase may be the same, or the communication parameters of at least two decision phases in the N decision phases may be different. The number of the communication parameters acquired in each decision stage is not specifically limited in this embodiment, and may be one, or two or more.
S404, calculating pairwise difference values of downlink communication parameters of each group of antennas.
Now, it is assumed that when the communication terminal X performs the conditional step decision, the downlink communication parameters obtained at each stage are the same, for example, it obtains the parameter X at each decision stage. After the parameter X of each group of antennas of the communication terminal X is obtained, the pairwise difference of the communication parameters of each group of antennas is calculated. Assuming that the communication terminal X includes 3 groups of antennas, a1, a2, and A3, respectively, the calculated pairwise differences will include 3, whereas if the communication terminal includes m groups of antennas, the calculated pairwise differences will include 3
Figure BDA0001394194520000131
And (4) respectively. For the case that the communication terminal X only obtains one same parameter X for each group of antennas in this example, it is very simple to calculate the pairwise difference between each group of antennas. For example, the difference d12 between antenna group A1 and A2 is equal to x1-x2, the difference d23 between antenna group A2 and A3 is equal to x2-x3, and the difference d13 between antenna group A1 and A3 is equal to x1-x 3.
S406, determining whether the calculation result meets the judgment condition corresponding to the judgment stage based on the stage threshold value of the judgment stage.
In this embodiment, corresponding phase thresholds are set for each decision phase, and after pairwise differences are obtained through calculation, the pairwise differences may be compared with the phase thresholds, and it is determined whether the current performance of each group of antennas has reached a certain difference according to the comparison result. If a certain difference is achieved, the performance difference among the antennas is proved to meet the judgment condition of the current judgment stage, and the possibility of antenna switching exists; otherwise, it indicates that the performance of each antenna is not as good as that of the current antenna, and there is no need for switching, so that it can be directly determined that antenna switching is not needed, and the process directly enters S414 to exit the current antenna switching process.
If only one downlink communication parameter capable of representing the communication performance of the antenna is obtained for each group of antennas at the stage of obtaining the communication parameters, only two differences for the same downlink communication parameter are obtained when two differences of the communication parameters of each group of antennas are calculated, so that when the judgment condition corresponding to the judgment stage is judged whether the calculation result meets the judgment condition based on the stage threshold value of the judgment stage, the conclusion can be obtained only by comparing the two differences with the stage threshold value of the judgment stage. However, if two or more communication parameters are acquired when acquiring the communication parameters, how to decide the calculation result based on the phase threshold value is proposed as follows:
first, two or more decision thresholds are set in the phase threshold. Specifically, different determination thresholds are set for different downlink communication parameters, and when a pairwise difference is determined, different determination thresholds are adopted for comparison for pairwise differences of different downlink communication parameters. For example, in a decision phase, x and y two communication parameters are obtained for antenna groups a1 and a2, and a decision threshold is set for x and y, respectively, and the two decision thresholds are included in the phase threshold. It will be appreciated that in this case, when calculating the pairwise differences between the antenna groups a1 and a2, it is ensured that pairwise differences are calculated for the same communication parameters, i.e. for the antenna groups a1 and a2, respectively, for the x parameter and for the y parameter. When the calculation result of the pairwise difference is judged, the pairwise threshold aiming at the downlink communication parameter x is compared with the judgment threshold of x, and the pairwise threshold aiming at the downlink communication parameter y is compared with the judgment threshold of y.
And for a certain downlink communication parameter, if any one of the pairwise difference values is greater than a judgment threshold value, judging that the downlink communication parameter meets the advanced condition. If none of the downstream communication parameters are satisfied, the downstream communication parameters can be directly determined not to satisfy the advanced condition. Of course, other conditions may be used to determine whether a downlink communication parameter satisfies the advanced condition. If so, the number of difference values greater than the determination threshold value in every two difference values of the downlink communication parameters reaches a preset ratio. For example, in the communication terminal X, it is required that 2/3 for the pairwise difference of a certain communication parameter reaches the determination threshold to determine that the communication parameter satisfies the advanced condition, and if there are 3 groups of antennas in the communication terminal X, two pairwise differences greater than or equal to the determination threshold must be present. This is also true for whether another downlink communication parameter satisfies the advanced condition, and is not described here again.
After the judgment of whether each downlink communication parameter meets the advanced condition is completed, whether the number of the downlink 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 downlink communication parameters are adopted to measure the performance of each group of antennas, when any one of the 3 downlink 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 groups of antennas are taken as an example for explanation: optionally, the dimensionless processing is performed on each two-by-two difference values of the two groups of antennas to obtain corresponding standard values, then an average difference value of each standard value of the two groups of antennas is calculated, then the average difference value between each two-by-two antenna groups is compared 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 when the proportion of the average difference value greater than the stage threshold value of the decision stage reaches a preset proportion, it is determined that the decision condition corresponding to the decision stage is met.
Here by received signal strength and receptionThe de-dimensional processing is simply introduced by taking the quality of the received signal as an example: determining the maximum value P of the received signal strength in practical application of the antennaMAX1. Likewise, for signal quality, the maximum Q it may reach is determinedMAX2. Assuming that the pairwise difference of the current received signal strengths of the two groups of antennas is P1 and the pairwise difference of the received signal qualities is Q1, the standard differences obtained by carrying out dimension removal processing on the two communication parameters are P1/P respectivelyMAX1And Q1/QMAX2. Therefore, the average difference between the two antenna standard values is (P1/P)MAX1+Q1/QMAX2)/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, it is also possible to directly set (P1/P) without calculating the average difference value, for example, when the phase threshold value is set for the sum of the standard difference valuesMAX1+Q1/QMAX2) 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 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 received signal quality, received signal strength, and the like. However, some communication parameters belong to "negative indicators", such as bit error rate, MPTL (Maximum transmit power level) in uplink communication parameters, 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 calculated standard deviation of the received signal strength of two antennas is P11 and the standard deviation of the bit error rate is J11, the average difference can be obtained by using the formula (P11-J11)/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 needless to say that the phase thresholds of the decision stages may be equal or not equal, that is, the phase thresholds of any two decision stages are not equal. In this embodiment, the phase threshold of each decision phase may be gradually decreased, that is, the phase threshold of the previous decision phase is greater than the phase threshold of the subsequent decision phase. In the following, it is described as an example that the conditional step decision of a certain communication terminal includes 3 decision stages, 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.
S408, judging whether the current judging stage is the last judging stage.
When judging that the judgment condition of a judgment stage is satisfied in the judgment stage, whether the current judgment stage is the last judgment stage needs to be judged. If not, it indicates that there is a next decision phase, and therefore, the current antenna performance needs to be further evaluated, and therefore, S410 is entered. If so, it is determined that the antenna performance has completely passed the decision of N decision stages, so that it can be determined that the performance gap between each group of antennas in the communication terminal satisfies the antenna switching condition, and antenna switching is required, so that the process can proceed to S412.
And S410, entering the next judgment 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. 3, and the processes of other decision phases are not described here.
In this embodiment, the purpose of making N decision stages for deciding whether the antenna performance satisfies the handover condition is described above, so as to ensure that the stability performance of the antenna is comprehensively evaluated. 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 the influence of the incidental factor may be sufficiently excluded by the time consumption of the waiting period. It should be appreciated that the duration of the waiting period is not as long as possible, since if the waiting period is too long, it may result in an overall antenna switching phase that is too long, which may affect the user experience in some cases. For example, the current idle antenna performance of the terminal is very good, but the main antenna performance is very poor, and the user is talking in this situation and is greatly affected, so that the antenna switching is urgently needed. However, the time for the conditional step decision is too long, so that the user has a poor conversation experience for a long time.
The duration of the waiting period can be preset by a terminal designer or can 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. 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 communication 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. When it is determined that there are no more decision stages after the decision stage, the process of antenna selection can be directly entered.
Similar to the waiting period, the communication parameters acquired in each decision phase may be the same, or the acquired communication parameters in at least two decision periods may be different. For example, in a certain conditional step decision, the first decision stage obtains the downlink communication parameters of received signal strength and received signal quality. In the third decision stage, the received signal quality and the bit error rate of each group of antennas of the communication terminal can be obtained. However, the length of the waiting period is different from that of the waiting period, if there is a relationship between the phase thresholds of the decision phases in the conditional step decision, the dimensionless processing needs to be performed on the obtained communication parameters when determining whether the decision conditions corresponding to the current decision phase are satisfied. Because, when there is a relationship between the phase thresholds of each decision phase, it is stated that the thresholds of each decision phase must be of the same dimension or dimensionless, and therefore, the obtained communication parameters need to be converted, otherwise, the decision cannot be realized.
S412, the antenna switching is determined to be needed.
When the antenna switching is determined to be needed, the process of reselecting the main antenna and the auxiliary antenna can be entered.
And S414, exiting the antenna switching process.
In this embodiment, if it is finally determined that the antenna needs to be switched through the decision in the N decision stages, S304 is entered, otherwise, the antenna switching procedure is ended.
S304, re-determining the communication relation among the antennas, the main transceiving path and the auxiliary receiving path so as to select new main antennas, auxiliary antennas and idle antennas.
When the main antenna and the auxiliary antenna are reselected, the main antenna and the auxiliary antenna can be selected according to the downlink communication parameters acquired in the advanced judgment based on the conditions, the current downlink communication parameters can also be acquired again, then according to the performance ranking of each group of antennas under the downlink communication parameters, a group with the optimal performance is selected as the main antenna and is communicated with a main transceiving channel of the communication terminal, a group with the suboptimal performance is selected as the auxiliary antenna and is communicated with an auxiliary receiving channel of the communication terminal, and the rest antennas are used as idle antennas.
The method for switching the antennas provided by this embodiment performs two or more evaluations of the existence of time sequence on the performance of the antennas through a condition-advanced decision mechanism, and realizes the evaluation of the overall performance of each group of antennas in a period of time through the time sequence of each decision stage in the condition-advanced decision, thereby eliminating the influence of accidental factors on the performance of the antennas at certain moments, and thus determining whether antenna switching is needed more objectively, ensuring the correctness, reliability and stability of the determination result, further ensuring that the communication terminal has stable and reliable radio frequency performance, and improving user experience.
Furthermore, in this embodiment, in a decision stage, it is determined that the performance of each antenna group 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 group of antennas 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, the setting positions of multiple groups of antennas of the communication terminal in the foregoing embodiment are described first, please refer to fig. 5:
in fig. 5, exactly three groups of antennas are provided in the communication terminal 50, wherein a first antenna group 51 is provided at the top thereof, and a second antenna group 52 and a third antenna group 53 are provided at the left and right sides of the bottom of the terminal, respectively. Since the roles of "primary antenna", "secondary antenna", and "idle antenna" in this embodiment are interchangeable, it is possible that the first antenna group 51 is operated as a primary antenna, the second antenna group 52 is operated as a secondary antenna, and the third antenna group 53 is temporarily not operated at a certain time for the communication terminal 50. At another time, it may become that the second antenna group 52 and the third antenna group 53 participate in the rf operation as the main antenna and the auxiliary antenna, respectively, and the first antenna group 51 is used as the idle antenna.
The antenna groups in the communication terminal can be arranged at upper, middle and lower positions, for example, the first antenna group is arranged at the top of the communication terminal, the second antenna group is arranged at the middle, and the third antenna group is arranged at the bottom of the communication terminal, in addition to the example shown in fig. 5. In addition, when a user holds the terminal, the holding probability of the top of the terminal is relatively small, so that more antenna groups can be arranged on the top of the terminal on the basis of reducing interference among the antenna groups. For example, in a communication terminal 60 shown in fig. 6, the communication terminal includes a third antenna set 61, a fourth antenna set 62 and a fifth antenna set 63, wherein the third antenna set 61, the fourth antenna set 62 are disposed at the top of the communication terminal 60, and the sixth antenna set 63 is disposed at the bottom of the terminal.
It should be understood that the "group of antennas" referred to in the present embodiment and the first embodiment actually includes a case where there is only one antenna in the group of antennas. For example, a group of antennas in a communication terminal serves as a main antenna, and only one antenna in the group of antennas is provided, so that the one antenna alone serves as the main antenna. Of course, in other communication terminals, a group of antennas may include at least two antennas, and in these communication terminals, multiple antennas may simultaneously assume the functions of a main antenna or implement the functions of an auxiliary antenna.
The method of switching antennas in the first embodiment is further explained below with a specific example in which only A, B, C antennas are provided for the communication terminal.
Example one:
it is assumed that the conditional advanced decision includes 3 decision stages, and the communication parameters obtained in each decision stage are the same, for example, the received signal strength in the downlink communication parameters (it is assumed that the communication system adopted by the communication terminal is the LTE system). In addition, the phase thresholds of the decision stages in the conditional advance decision are all equal, for example, the phase thresholds D1 ═ D2 ═ D3 ═ D6 dBm of the first to third decision stages. Please refer to the flowchart of the method for switching antennas shown in fig. 7:
s702, the current received signal strength of each antenna of the communication terminal is obtained.
Assume that after the current received signal strength parameters of each antenna are collected, the current main antenna, auxiliary antenna and idle antenna are determined, i.e., A, B and C have signal strengths of-56 dBm, -60dBm and-63 dBm, respectively.
S704, calculating pairwise difference of the received signal strength of each antenna.
In the present example by dABCharacterizing the difference between two antennas A and B, likewise by dBCAnd dACAnd respectively representing pairwise differences between the antenna B and the antenna C and between the antenna A and the antenna C. It should be understood that the pairwise difference in this embodiment refers to the absolute value of the difference. Therefore, dAB=4dBm,dBC=3dBm,dAC=7dBm。
S706, judging whether a pairwise difference value larger than or equal to the stage threshold value of 6dBm exists.
If yes, go to S708; otherwise, the process proceeds to S710 to exit the antenna switching process. After judgment, the current d is foundACSince 7dBm is greater than the phase threshold of 6dBm, S708 may be entered.
S708, judging whether the next judging stage exists.
If so, the process proceeds to S712, otherwise, the process proceeds to S714. It is determined whether there is a next decision stage, i.e., whether the current decision stage is the last one among the conditional advance decisions. Since it is actually determined that the current performance of A, B, C three antennas of the communication terminal meets the decision condition of the current decision stage after the determination of S706, if a next decision stage subsequently exists, the next decision stage needs to be entered, and if the next decision stage does not exist, the main antenna and the auxiliary antenna need to be reselected.
And S710, exiting the antenna switching process.
Exiting the antenna switching process means that no subsequent decision phase is performed. Only when the new trigger condition is reached will the conditional further decision be made again.
And S712, entering a waiting period of the current judgment stage.
If the judgment shows that another judgment stage exists after the current judgment stage, the next judgment stage needs to be entered. However, in order to ensure that a certain time interval can exist between two decision stages, so as to more comprehensively reflect the performance of each group of antennas at multiple different times, in this embodiment, before entering the next decision stage, a waiting period of the current decision stage is entered, and after the waiting period is ended, the current decision stage is ended, so as to enter the next decision stage.
The duration of the waiting period of each decision stage may be the same or different. Since there are only three decision stages in this embodiment, and the last decision stage usually does not set a waiting period, in practice, there are only two waiting periods in the conditional step decision of this embodiment. However, in other examples, there may be a plurality of waiting periods in the conditional advance decision, and these waiting periods may be equal or even, that is, no two waiting periods are equal, for example, so that the waiting period of the decision stage decreases in a decreasing trend.
The duration of the waiting period is set according to a decreasing trend, and actually, the antenna performance is subjected to more and more evaluations with the increasing number of passed decision stages, so that the comprehensiveness and objectivity of the evaluations are fully reflected. The waiting period, etc. in the post-decision phase can be gradually reduced to save the duration of the conditional step decision.
And S714, reselecting the main antenna and the auxiliary antenna for the communication terminal.
When the main antenna and the auxiliary antenna are reselected, the main antenna and the auxiliary antenna can be selected according to the downlink communication parameters acquired in the condition-based advanced judgment, the current downlink communication parameters can also be acquired again, then according to the performance ranking of each group of antennas under the downlink communication parameters, a group with the optimal performance is selected as the main antenna and is communicated with a main transceiving channel of the communication terminal, a group with the suboptimal performance is selected as the auxiliary antenna and is communicated with an auxiliary receiving channel of the communication terminal, and the rest antennas are used as idle antennas.
In this embodiment, only a single downlink communication parameter is obtained when obtaining the communication parameters of each antenna, but those skilled in the art can understand that several communication parameters may be obtained at each decision stage in order to fully understand the performance of each aspect of the antenna. For example, it is also possible to simultaneously acquire two downlink communication parameters, simultaneously acquire one uplink communication parameter and one downlink communication parameter, and simultaneously acquire a plurality of uplink communication parameters.
The method for switching the antenna provided by this embodiment selects the same communication parameter at each decision stage, and sets the same stage threshold for each decision stage, so that the whole condition advanced decision processing is simple, the processing resources occupied by antenna switching are reduced, and resource optimization configuration is facilitated.
The third embodiment:
the present embodiment continues to further explain the method of switching antennas in the first embodiment with a specific example in which the communication terminal is provided with only A, B, C antennas.
Example two:
it is assumed that 4 decision stages are included in the conditional advanced decision, and the stage thresholds of the decision stages are different. Please refer to the situation of the communication parameters, the phase threshold and the waiting period obtained at each decision phase given in table 2 below:
TABLE 2
Figure BDA0001394194520000211
Figure BDA0001394194520000221
In this embodiment, each decision stage acquires downlink communication parameters, but it should be understood that in some other examples, uplink communication parameters may also be acquired, or uplink and downlink communication parameters may be combined. Please refer to the flowchart of the method for switching antennas shown in fig. 8:
s802, the current received signal strength and the current received signal quality of each antenna of the communication terminal are obtained.
Assuming that the signal strengths of A, B and C are respectively-48 dBm, -57dBm and-52 dBm after the current received signal strength and received signal quality parameters of each antenna are acquired; and the signal quality of the three signals is 17dB, 18dB and 8.5dB respectively.
And S804, respectively calculating pairwise difference values of the communication parameters of the antennas according to the received signal strength and the received signal quality.
In this example, the difference in received signal quality is characterized by q and the difference between received signal strengths is characterized by r. Then r isAB、rBC、rAC9dBm, 5dBm, 4dBm, q, respectivelyAB、qBC、qAC1dB, 9.5dB and 8.5dB, respectively.
And S806, judging whether the judgment conditions of each judgment stage are met according to the calculation result.
In the first embodiment, the process of acquiring a plurality of communication parameters in one decision stage and setting a plurality of decision thresholds, if it is determined whether or not the decision condition is satisfied, has been described:
since the phase thresholds of the decision phases in this embodiment are equal, that is, the decision conditions of the decision phases are the same. Thus, whatever decision phase is currently, it is compared to the same phase threshold. Therefore, r can be directly transformedAB、rBC、rACRespectively compared with 4dBm, and q isAB、qBC、qACRespectively, with 2 dB. However, if in other examples there are cases where the phase thresholds of the decision phases are not equal, it is necessary to determine which phase is the current decision phase and what phase threshold is before making the decision.
It is assumed that in this embodiment, it is required that 2 of the two differences reach the corresponding determination threshold of the communication parameter to determine that the communication parameter meets the advanced condition, and when at least one of the two communication parameters meets the advanced condition, it is determined that the performance condition of each current antenna meets the determination condition of the third determination stage. Therefore, it can be determined from these requirements that both the received signal strength and the received signal quality satisfy the advanced condition, and thus the decision condition of the third decision stage is achieved as a whole.
If it is determined that the performance of the current antenna does not meet the determination condition of the current determination stage in other examples, the antenna switching process may be directly exited because the performance of each current antenna is good or bad, but the performance gap between the antennas is not large in general, and antenna switching is not required, so S810 is performed.
And S808, judging whether the next judgment stage exists.
After the current performance of the three antennas is determined A, B, C to meet the decision condition of the third decision stage, it needs to be determined whether the next decision stage still exists. Since the conditional step decision in this example includes a total of 4 decision stages, it is not currently the last decision stage, and therefore a waiting period for entering this decision stage is required.
If the current decision stage is the fourth decision stage, no other decision stage is found after judgment, so that the main antenna and the auxiliary antenna can be directly reselected.
And S810, exiting the antenna switching process.
Exiting the antenna switching process means that no decision stage is performed in the present conditional step decision. Only when the new trigger condition is reached will the conditional further decision be made again.
And S812, entering a waiting period of the current judgment stage.
If the judgment shows that another judgment stage exists after the current judgment stage, the next judgment stage needs to be entered. However, in order to ensure that a certain time interval can exist between two decision stages, so as to more comprehensively reflect the performance of a plurality of different time points, in this embodiment, before entering the next decision stage, a waiting period of the current decision stage is entered, and after the waiting period is ended, the current decision stage is ended, so as to enter the next decision stage.
In this example, the waiting periods of the decision phases are not equal, and therefore, it is necessary to determine how long the waiting period of the current decision phase is before entering the decision phase each time. And continuing to assume that the current decision stage is the third decision stage, and the duration of the waiting period of the decision stage is 1 s. Therefore, after entering the waiting period and waiting for 1s, the next decision phase is entered and the decision phase is ended. It will be appreciated that in other examples, the latency periods of the decision stages may be equal. For the last decision stage, the waiting period can be set as the other decision stages, and no special treatment is performed. But for the purpose of saving antenna switching time, it may be considered not to set a waiting period for the last decision phase.
And S814, reselecting the main antenna and the auxiliary antenna for the communication terminal.
The scheme for selecting the main antenna and the auxiliary antenna in the present embodiment is briefly described below with reference to fig. 9:
and S902, determining election parameter values for the antennas of each group according to the downlink communication parameters of the antennas of each group.
The election parameter values referred to herein are election parameter values of each antenna when election is performed between the main antenna and the auxiliary antenna, and for example, in the present embodiment, the election parameter values are received signal strength and received signal quality of each antenna. It should be understood that there are at least two sources of election parameter values: first, since the communication parameters of each antenna are already acquired in the conditional step decision stage, the antenna selection can be directly performed based on the downlink communication parameters acquired in the conditional step decision, that is, the election parameter values are obtained according to each communication parameter value in the conditional step decision. And secondly, when two antennas are selected, the current downlink communication parameters are acquired again.
For the first scheme, it is considered that the communication parameter obtained in the last decision stage in each decision stage can most represent the latest performance condition of each antenna, and therefore, the communication parameter obtained in the last decision stage can be directly used as an election parameter value, so that the performance conditions of each antenna are ranked. The method is simple, parameters do not need to be acquired again, and the selection efficiency is high. In addition, since the decision of N stages has been performed previously, it is considered that the overall situation of the communication parameters acquired in the N decision stages is integrated, for example, the communication parameters acquired in each of the N decision stages are averaged, and the obtained average value is used as the election parameter value. In the scheme, the election parameter value reflects the overall performance of the antenna in a period of time, and is more objective and reliable.
For the second scheme, the election parameter values are more free and flexible when being obtained, because the election parameter values in the first scheme are from each judgment stage of conditional advance judgment, the types of the election parameter values are limited, but in the second scheme, the process of election of the antenna has no parameter binding relation with the conditional advance judgment process, so that more and more comprehensive parameters can be completely obtained when the antenna election is carried out, then the comprehensive performances of the antenna are sequenced, and the antenna with better comprehensive performances is ensured to be selected as the main antenna and the auxiliary antenna.
And S904, selecting a group of antennas with optimal performance to be communicated with the main receiving and transmitting channel according to the magnitude of the antenna election parameter values, and selecting a group of antennas with suboptimal performance to be communicated with the auxiliary receiving channel.
In addition, in the present embodiment, an antenna having the best overall performance is not necessarily selected as the main antenna, and an antenna having the second best overall performance is not necessarily selected as the auxiliary antenna. Because a user has different requirements for different performances of the antenna under different use situations, for example, when data is downloaded, downlink performance of the lower antenna is more emphasized, and when data is uploaded, uplink communication performance is more emphasized, when the antenna is selected, the current use scene of the communication terminal can be detected, so that the antenna with the performance more suitable for the current requirements can be selected as the main antenna and the auxiliary antenna.
The present embodiment has been described in a scheme of acquiring two communication parameters in each decision phase and decreasing the threshold value in each decision phase. In the condition advanced judgment, the phase threshold value of each subsequent judgment phase is continuously reduced, so that the judgment condition of the subsequent judgment phase is easier to meet, namely the severity of the judgment condition is gradually weakened. The following decision stages are considered, which mainly means that the more the number of the decision stages passed by the current antenna is, the more the antenna switching needs to occur, so that the antenna switching can be finally realized under the condition that the antenna switching really needs to be obtained by gradually weakening the severity of the decision conditions. In addition, the waiting period of each judgment stage is shorter and shorter, so that the antenna switching can be realized as soon as possible under the condition that the antenna switching is really needed, and the communication terminal can recover better communication performance as soon as possible.
The fourth embodiment:
the present embodiment first provides a computer-readable storage medium, in which one or more computer programs are stored, and the computer programs can be read, compiled and executed by a processor, so as to implement corresponding method flows. In the present embodiment, a computer program that can implement the method of switching the antenna in the foregoing embodiments is stored in a computer-readable storage medium.
In addition, the present embodiment further provides a communication terminal, please refer to fig. 10, in which the communication terminal 10 includes a processor 11, a memory 12, a communication bus 13, a communication unit 14, and an antenna 15;
the communication bus 13 is used for realizing connection communication among the processor 11, the memory 12 and the communication unit 14;
the communication unit 14 may be a radio frequency communication unit (radio frequency circuit), or may be another type of communication unit, and includes a main transceiving path and an auxiliary receiving path (not shown in the path), and the antenna 15 includes at least three groups, where among the at least three groups of antennas, the antenna currently communicating with the main transceiving 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.
The memory 12 is used for executing one or more programs, and the processor 11 is used for executing one or more programs stored in the memory to implement the steps of the method for switching the antenna as illustrated in the above embodiments.
The communication of the communication terminal 90 in the present embodiment is briefly described below with reference to the communication network system architecture diagram provided in fig. 11:
referring to fig. 11, the communication Network system is an LTE system of the UMTS, and the LTE system includes a UE (User Equipment) 1101, an E-UTRAN (Evolved UMTS terrestrial radio Access Network) 1102, an EPC (Evolved Packet Core) 1103 and an IP service 1104 of an operator, which are in communication connection in sequence.
Specifically, the UE1101 may be the communication terminal 10, which is not described herein again.
The E-UTRAN1102 includes eNodeB11021 and other eNodeBs 11022, etc. Among them, the eNodeB11021 may be connected with other eNodeB11022 through backhaul (e.g., X2 interface), the eNodeB11021 is connected to the EPC1103, and the eNodeB11021 may provide the UE201 with access to the EPC 1103.
EPC1103 may include MME (Mobility Management Entity) 11031, HSS (Home Subscriber Server) 11032, other MME11033, SGW (Serving GateWay) 11034, PGW (PDN GateWay) 11035, PCRF (Policy and charging Function) 11036, and the like. MME11031 is a control node that handles signaling between UE1101 and EPC1103, and provides bearer and connection management. The HSS11032 is used to provide registers to manage functions such as a home location register (not shown) and holds some user-specific information about service characteristics, data rates, etc. All user data may be sent through SGW11034, PGW11035 may provide IP address allocation and other functions for UE1101, and PCRF11036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources that selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 1104 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, etc.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Since the UE1101 provided in this embodiment is a communication terminal, in the process of interaction between the UE1101 and the E-UTRAN1102, the antenna performance may be evaluated by using the method for switching antennas described in the foregoing embodiments, and when it is determined that the performance of each antenna has a large performance gap after the decisions in multiple decision stages, new main and auxiliary antennas with better performance are selected for the UE1101 again, so as to avoid affecting user communication and improve user experience.
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 (9)

1. A method for switching antennas is characterized in that the method is applied to a communication terminal, and the communication terminal comprises a main transceiving path, an auxiliary receiving path and at least three groups of antennas; the at least three groups of antennas are currently communicated with the main transceiving passage as main antennas, currently communicated with the auxiliary receiving passage as auxiliary antennas, and the rest are idle antennas; the method comprises the following steps:
performing a conditional step decision including N decision stages on the performance of the at least three groups of antennas to determine whether antenna switching is required, where N is greater than or equal to 2, and the decision stages include: acquiring downlink communication parameters for representing the current performance of each group of antennas of the communication terminal; calculating pairwise differences of downlink communication parameters of the at least three groups of antennas; determining whether a calculation result meets a judgment condition corresponding to the judgment stage based on a stage threshold value of the judgment stage, if so, judging whether the current judgment stage is the last judgment stage, if so, judging that antenna switching is needed, otherwise, entering the next judgment stage; downlink communication parameters of each judgment stage in the N judgment stages are the same, and stage thresholds of each judgment stage in the N judgment stages are the same;
after judging that the current decision stage is not the last decision stage, before entering the next decision stage, the method further comprises the following steps: entering a waiting period of the current decision stage;
and when the antenna switching is judged to be needed, the communication relation among the at least three groups of 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.
2. The method of switching antennas of claim 1, wherein the latency periods of at least two of the N decision stages are not equal.
3. The method for switching antennas according to claim 2, wherein the communication terminal includes three antennas, one of the antennas is a main antenna connected to the main transceiving path, one of the antennas is an auxiliary antenna connected to the auxiliary receiving path, and the remaining antenna is a free antenna; the waiting period of the former decision stage in the N decision stages is larger than that of the latter decision stage.
4. The method of switching antennas of claim 1, wherein re-determining connectivity between the at least three groups of antennas and the primary transceiving path and the secondary receiving path comprises:
and selecting a group of antennas with optimal performance to be communicated with the main receiving and transmitting channel according to the downlink communication parameters of the antennas, and selecting a group of antennas with suboptimal performance to be communicated with the auxiliary receiving channel.
5. The method of switching antennas according to any of claims 1-4, wherein the downlink communication parameter comprises at least one of received signal strength, received signal quality, received signal power, and bit error rate.
6. The method of switching antennas of claim 5, the downlink communication parameters comprising at least two of received signal strength, received signal quality, received signal power, and bit error rate; the calculating of the pairwise difference of the downlink communication parameters of the at least three groups of antennas comprises: calculating pairwise difference values of the same downlink communication parameters of each group of antennas in the at least three groups of antennas;
the determining whether the calculation result meets the decision condition corresponding to the decision stage based on the stage threshold of the decision stage includes:
carrying out dimensionless processing on each difference value of every two groups of antennas to obtain corresponding standard values, and then calculating the average difference value of each standard value of the two groups of antennas;
comparing the average difference value between every two antennas of each group 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, determining that the decision condition corresponding to the decision stage is met, or when the proportion that the average difference value is greater than the stage threshold value of the decision stage reaches a preset proportion, determining that the decision condition corresponding to the decision stage is met.
7. The method of switching antennas of claim 5, the downlink communication parameters comprising at least two of received signal strength, received signal quality, received signal power; the calculating of the pairwise difference of the downlink communication parameters of the at least three groups of antennas comprises: calculating pairwise difference values of the same downlink communication parameters of each group of antennas in the at least three groups of antennas;
the determining whether the calculation result meets the decision condition corresponding to the decision stage based on the stage threshold of the decision stage includes:
for a certain downlink communication parameter, comparing each pairwise difference value corresponding to the downlink communication parameter with a decision threshold value of the downlink communication parameter in the decision threshold value; when any one of the pairwise difference values of the downlink 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 downlink communication parameters meet a step condition;
and judging whether the number of the downlink communication parameters reaching the advanced condition reaches a preset number, and if so, determining that the judgment condition corresponding to the judgment stage is met.
8. A communication terminal, characterized in that the communication terminal comprises a processor, a memory and a communication bus; the communication terminal also comprises a main transceiving path, an auxiliary receiving path and at least three groups of antennas; the at least three groups of antennas are currently communicated with the main transceiving passage as main antennas, currently communicated with the auxiliary receiving passage as auxiliary antennas, and the rest are idle antennas;
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 method of switching antennas according to any one of claims 1 to 7.
9. 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 method of switching antennas of any one of claims 1 to 7.
CN201710766419.1A 2017-08-30 2017-08-30 Method for switching antenna, communication terminal and computer readable storage medium Active CN107580124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710766419.1A CN107580124B (en) 2017-08-30 2017-08-30 Method for switching antenna, communication terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710766419.1A CN107580124B (en) 2017-08-30 2017-08-30 Method for switching antenna, communication terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107580124A CN107580124A (en) 2018-01-12
CN107580124B true CN107580124B (en) 2020-09-04

Family

ID=61031118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710766419.1A Active CN107580124B (en) 2017-08-30 2017-08-30 Method for switching antenna, communication terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107580124B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245482B (en) * 2020-01-21 2021-11-05 Oppo广东移动通信有限公司 Antenna routing method and related device
CN111277314B (en) 2020-01-21 2023-12-19 Oppo广东移动通信有限公司 Antenna routing method and related device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008118456A (en) * 2006-11-06 2008-05-22 Mitsubishi Electric Corp Telephone terminal
CN105720963A (en) * 2015-05-20 2016-06-29 乐视移动智能信息技术(北京)有限公司 Antenna switching device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778220A (en) * 2014-01-21 2014-05-07 浪潮(北京)电子信息产业有限公司 Decision support method and device based on cloud computing
KR102345584B1 (en) * 2015-06-10 2021-12-31 삼성전자주식회사 An electronic device and a method for controlling one or more antennas thereof
CN106229683A (en) * 2016-09-12 2016-12-14 广东欧珀移动通信有限公司 The changing method of WIFI antenna and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008118456A (en) * 2006-11-06 2008-05-22 Mitsubishi Electric Corp Telephone terminal
CN105720963A (en) * 2015-05-20 2016-06-29 乐视移动智能信息技术(北京)有限公司 Antenna switching device

Also Published As

Publication number Publication date
CN107580124A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN107682038B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN111615141B (en) Measurement method, measurement configuration method, terminal and network equipment
CN107613489B (en) Wireless charging method, wireless hotspot device, terminal and storage medium
CN107682035B (en) Antenna switching method, multi-antenna terminal and computer-readable storage medium
CN108600520B (en) Reception state control method, mobile terminal, and computer-readable storage medium
CN110831041A (en) Cell beam failure processing method, mobile communication terminal and network side equipment
CN110365347B (en) Power amplifier control method, device and computer readable storage medium
CN107155203B (en) Cell reselection method, device and computer readable storage medium
CN109600808B (en) Cell selection method, terminal and network side equipment
CN107733508B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
JP2022554221A (en) Information transmission method and equipment
CN107592132B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN107580124B (en) Method for switching antenna, communication terminal and computer readable storage medium
CN112954755B (en) Optimized network switching method and device and computer readable storage medium
CN108579081B (en) Event processing method, device and computer storage medium based on game
CN111615160A (en) Cell reselection method and terminal equipment
CN111970738B (en) Network switching control method, device and computer readable storage medium
CN107466081B (en) Wireless switching method and terminal
CN112821970B (en) Electronic price tag channel selection method, electronic price tag channel selection equipment and computer storage medium
CN113347676B (en) Processing method, mobile terminal and storage medium
CN107645328B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN115412988A (en) Method and device for terminal equipment to select cell, terminal equipment and storage medium
CN114173389A (en) Processing method, mobile terminal and storage medium
CN114423041A (en) Communication method, intelligent terminal and storage medium
CN109542227B (en) Method, device and computer readable storage medium for marking holding gesture

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