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

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

Info

Publication number
CN107483094B
CN107483094B CN201710765794.4A CN201710765794A CN107483094B CN 107483094 B CN107483094 B CN 107483094B CN 201710765794 A CN201710765794 A CN 201710765794A CN 107483094 B CN107483094 B CN 107483094B
Authority
CN
China
Prior art keywords
antenna
hysteresis
parameter
main
terminal
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
CN201710765794.4A
Other languages
Chinese (zh)
Other versions
CN107483094A (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 CN201710765794.4A priority Critical patent/CN107483094B/en
Publication of CN107483094A publication Critical patent/CN107483094A/en
Application granted granted Critical
Publication of CN107483094B publication Critical patent/CN107483094B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0825Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with main and with auxiliary or diversity antennas
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0602Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station using antenna switching
    • H04B7/0608Antenna selection according to transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection

Abstract

The invention discloses an antenna switching control method, a multi-antenna terminal and a computer readable storage medium, wherein the method comprises the steps of setting a hysteresis device with a certain hysteresis duration, starting the hysteresis device after the antenna switching is successfully operated for one time, and judging whether the antenna switching is needed or not again only after the hysteresis duration of the hysteresis device is finished even if signal parameters of each antenna meet antenna switching conditions within the hysteresis duration of the hysteresis device, so that the problem of higher power consumption caused by the fact that the conventional multi-antenna terminal frequently operates an antenna switching algorithm to switch the antennas is solved.

Description

Antenna switching control method, multi-antenna terminal and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an antenna switching control method, a multi-antenna terminal, and a computer-readable storage medium.
Background
Ping-pong effect (ping-pong effect) refers to the change back and forth between two different states, which in practical applications are embodied in a wide variety of ways.
For example, when two sets of antennas are provided in the multi-antenna terminal, the multi-antenna terminal selects an antenna with the best signal from the antennas as a main antenna or an effective antenna according to communication parameters of the antennas and the like by a certain antenna switching algorithm in order to ensure channel quality and the like. However, if in some scenarios, communication parameters of the antennas change dramatically, which may cause the multi-antenna terminal to frequently operate the antenna switching algorithm and switch back and forth between the two groups of antennas.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an antenna switching control method, a multi-antenna terminal, and a computer-readable storage medium, for the technical problem that power consumption is large due to the fact that a multi-antenna terminal frequently runs an antenna switching algorithm to perform antenna switching.
In order to solve the above technical problem, the present invention provides an antenna switching control method, which is applied to a multi-antenna terminal, wherein the multi-antenna terminal includes a main transceiving path, an auxiliary receiving path, and at least three groups of antennas; the main antenna is currently communicated with the main receiving and transmitting channel, the auxiliary antenna is currently communicated with the auxiliary receiving channel, and the rest antennas are idle antennas; the method comprises the following steps:
detecting whether the antenna switching is finished or not, wherein the antenna switching is used for re-determining the communication relation among at least three groups of antennas, the main receiving and transmitting channel and the auxiliary receiving channel so as to select a new main antenna, an auxiliary antenna and an idle antenna;
when the fact that the antenna switching is completed is detected, starting a first hysteresis device, wherein the hysteresis parameter value of the first hysteresis device is matched with the communication quality parameter of a main antenna of the multi-antenna terminal during the antenna switching;
and when the timing of the first hysteresis device is finished, acquiring a target communication parameter of the multi-antenna terminal to judge whether antenna switching needs to be carried out again, wherein the target communication parameter is used for representing the performance of the antenna.
Optionally, before detecting whether the antenna switching is completed, the method further includes:
acquiring a hysteresis strategy;
judging whether the first hysteresis device needs to be enabled or not according to a hysteresis strategy;
enabling the first hysteresis device if the first hysteresis device is required to be enabled;
if the first hysteresis device is not required to be enabled, judging whether a second hysteresis device is required to be enabled according to a hysteresis strategy, wherein the hysteresis parameter value of the second hysteresis device is matched with the working parameter of the multi-antenna terminal;
if it is desired to enable the second hysteresis device, the second hysteresis device is enabled.
Optionally, before acquiring the hysteresis policy, the method further includes:
enabling the first hysteresis device when the hysteresis policy is configured to be the communication quality parameter adaptive mode;
enabling the second hysteresis device when the hysteresis strategy is configured to be in the working parameter self-adaptive mode;
and when the hysteresis strategy is configured to be non-hysteresis, the first hysteresis device and the second hysteresis device are disabled.
Optionally, the operating parameter includes an operating state, and after enabling the second hysteresis device, the method further includes:
acquiring the running state of the multi-antenna terminal;
determining a hysteresis parameter value matched with the operation state of the multi-antenna terminal according to the corresponding relation between the preset operation state and the hysteresis parameter value;
a second hysteresis device is configured according to the hysteresis parameter value.
Optionally, the operating parameter includes an operating scenario, and after the second hysteresis device is enabled, the method further includes:
acquiring a working scene of the multi-antenna terminal;
determining a hysteresis parameter value matched with the working scene of the multi-antenna terminal according to the corresponding relation between the preset working scene and the hysteresis parameter value;
a second hysteresis device is configured according to the hysteresis parameter value.
Optionally, before activating the first hysteresis device, the method further includes:
acquiring communication quality parameters of a main antenna when the multi-antenna terminal is switched at the time of antenna switching;
determining a hysteresis parameter value matched with the communication quality parameter of the main antenna when the multi-antenna terminal is switched at the current antenna according to a preset mapping relation between the communication quality parameter and the hysteresis parameter value;
a first hysteresis device is configured according to a hysteresis parameter value.
Optionally, the first hysteresis device is a first timer, and configuring the first hysteresis device according to the hysteresis parameter value includes:
determining a time value corresponding to the hysteresis parameter value;
the counting time value of the first timer is set as a time value.
Optionally, the obtaining of the communication quality parameter of the main antenna when the multi-antenna terminal switches the antenna includes:
determining the current scene type of communication transmission of the multi-antenna terminal;
when the current communication transmission scene type of the multi-antenna terminal is determined to be an uplink transmission scene, acquiring at least one parameter of a maximum transmitting power ratio, a minimum transmitting power and a channel evaluation parameter of a main antenna as a communication quality parameter of the main antenna;
when the current scene type of the multi-antenna terminal for communication transmission is determined to be a downlink transmission scene, at least one parameter of the error rate, the signal intensity and the signal to noise ratio of the main antenna is obtained and used as a communication quality parameter of the main antenna.
Furthermore, the invention also provides a multi-antenna terminal, which comprises a processor, a memory, a communication bus, a main transceiving path, an auxiliary receiving path and at least three groups of antennas; the main antenna is currently communicated with the main receiving and transmitting channel, the auxiliary antenna is currently communicated with the auxiliary receiving channel, and the rest antennas are idle antennas;
the communication bus is used for realizing the connection and communication among the processor, the memory, the main transceiving path, the auxiliary receiving path and at least three groups of antennas;
the processor is used for executing one or more programs stored in the memory so as to realize the steps of the antenna switching control method provided by the invention.
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 antenna switching control method provided by the present invention.
Advantageous effects
The invention provides an antenna switching control method, a multi-antenna terminal and a computer readable storage medium, aiming at the defect that the power consumption is larger due to the fact that the antenna switching is carried out by frequently operating an antenna switching algorithm of the existing multi-antenna terminal, a hysteresis device with a certain hysteresis time is arranged, the hysteresis device is started after the antenna switching is successfully carried out for one time, even if the signal parameters of each antenna meet the antenna switching condition within the hysteresis time of the hysteresis device, the antenna switching algorithm is not operated any more, and whether the antenna switching is needed or not is judged again only after the hysteresis time of the hysteresis device is finished, so that the problem that the power consumption is larger due to the fact that the antenna switching is carried out by frequently operating the antenna switching algorithm of the existing multi-antenna terminal is solved, and the control of the ping-pong effect; meanwhile, the lag time of the lag device is related to the communication quality parameter of the main antenna after the previous antenna switching, for example, when the communication quality parameter of the main antenna represents that the signal of the main antenna is strong, the lag time is longer, the next switching is later, when the communication quality parameter of the main antenna represents that the signal of the main antenna is poor, the lag time is shorter, the next switching is earlier, so that the individual requirements of different communication qualities of the multi-antenna terminal on the antenna switching are considered, and the use experience of a user is further enhanced.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
FIG. 2 is a schematic diagram of the communication components of the mobile terminal shown in FIG. 1;
fig. 3 is a basic flowchart of an antenna switching control method according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a first hysteresis device configuration method according to a first embodiment of the present invention;
FIG. 5 is a flowchart illustrating a first hysteresis device updating method according to a first embodiment of the present invention;
fig. 6 is a detailed flowchart of an antenna switching control method according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a multi-antenna terminal according to a third embodiment of the present invention;
FIG. 8 is a diagram of a hysteresis policy configuration interface according to an embodiment of the present invention;
FIG. 9 is a mapping configuration interface diagram according to an embodiment of the present invention;
fig. 10 is an interface diagram for configuring operating parameters according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The 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 description is given below of communication means relating to a mobile terminal of the present invention.
Referring to fig. 2, fig. 2 is a schematic diagram of communication components of a mobile terminal according to an embodiment of the present invention, in which the multi-antenna terminal according to the embodiment of the present invention includes at least three groups 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 correspondingly 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 any one of the second interface), and select a specific main antenna from multiple groups of antennas based on the on/off, or select a specific combination of the main antenna and the auxiliary antenna.
Based on the hardware structure of the mobile terminal, the invention provides various embodiments of the method.
First embodiment
Fig. 3 is a basic flowchart of an antenna switching control method provided in this embodiment, where the antenna switching control method includes:
s301, whether antenna switching is completed or not is detected, and the antenna switching is used for re-determining the communication relation among at least three groups of antennas, the main receiving and transmitting channel and the auxiliary receiving channel, so that new main antennas, auxiliary antennas and idle antennas are selected.
In the embodiment of the present invention, the antenna switching means that the main antenna is switched, for example, the terminal includes 3 sets of antennas Ant0, Ant1, and Ant2, in a time period from t0 to t1 (not including time period t1), the antenna Ant0 is used as the main antenna, the antenna Ant1 is used as the auxiliary antenna, and the antenna Ant2 is used as the idle antenna, at time period t1, Signal quality parameters of the antennas Ant0, Ant1, and Ant2 change due to a change in a user holding the terminal, a terminal placement state, and the like, and the following description takes a Signal quality parameter as RSSI (Received Signal Strength Indication) as an example, for example, Signal Strength values of the antennas Ant0, Ant1, and Ant2 become: RSSI (Ant0, t1) — 98dbm, RSSI (Ant1, t1) — 90dbm, RSSI (Ant2, t1) — 106dbm, RSSI of antenna Ant1 is 8dbm greater than RSSI of antenna Ant0, antenna switching is performed and completed at time t2, after switching, antenna Ant1 is used as a main antenna, antenna Ant0 is used as an auxiliary antenna, antenna Ant2 is used as an idle antenna, and the time difference between t2 and t1 is in the order of milliseconds, for example, t2-t1 is 0.5 ms.
S302, when the fact that the antenna switching is completed is detected, starting a first hysteresis device, wherein hysteresis parameter values of the first hysteresis device are matched with communication quality parameters of a main antenna of the multi-antenna terminal during the antenna switching;
based on the above description, the first hysteresis device is activated at time t2, and the first hysteresis device and the second hysteresis device referred to below function to disable the antenna switching function during operation, and antenna switching is not performed even if the RSSI of each antenna satisfies the antenna switching condition; the implementation mode comprises the implementation mode of pure software, the implementation mode of pure hardware and the implementation mode of combination of software and hardware, the pure software can be realized by programming through a computer program, the pure hardware mode can be realized by adding a special timer in the terminal, and the combination of software and hardware calls the timer in the terminal through software to realize the timing function.
In this embodiment, the hysteresis parameter value of the first hysteresis device has different values in different scenarios, and specifically, the hysteresis duration of the first hysteresis device is related to the communication quality parameter of the main antenna after the previous antenna switching, for example, when the communication quality parameter of the main antenna represents that the signal of the main antenna is strong, the hysteresis duration is longer, the next switching is later, when the communication quality parameter of the main antenna represents that the signal of the main antenna is poor, the hysteresis duration is shorter, the next switching is earlier, so that the individual requirements of different signal qualities of the multi-antenna terminal on the antenna switching are taken into account, and in order to take account of different signal qualities, the embodiment may configure different hysteresis parameter values for different signal qualities.
Since the hysteresis parameter value of a hysteresis device such as a timer cannot be changed after the hysteresis device is started, in order to ensure the normal and accurate operation of the hysteresis device, the configuration process of the first hysteresis device needs to be completed before the first hysteresis device is started, as shown in fig. 4, the method specifically includes the following steps:
s401, acquiring communication quality parameters of a main antenna when the multi-antenna terminal is switched over;
different transmission scenes have different consideration points for different communication quality parameters, for example, when it is determined that the current scene type of the multi-antenna terminal for communication transmission is an uplink transmission scene, the maximum transmission power ratio, the minimum transmission power and the channel estimation parameter of the main antenna are used as main indexes for balancing the uplink signal quality, and the communication quality parameters as the main antenna can better represent the communication quality. Then it is. At this time, obtaining the communication quality parameter of the main antenna when the multi-antenna terminal switches the antenna comprises:
determining the current scene type of communication transmission of the multi-antenna terminal;
when the current communication transmission scene type of the multi-antenna terminal is determined to be an uplink transmission scene, acquiring at least one parameter of a maximum transmitting power ratio, a minimum transmitting power and a channel evaluation parameter of a main antenna as a communication quality parameter of the main antenna;
when the current scene type of the multi-antenna terminal for communication transmission is determined to be a downlink transmission scene, at least one parameter of the error rate, the signal intensity and the signal to noise ratio of the main antenna is obtained and used as a communication quality parameter of the main antenna.
Bearing the assumption that the communication quality parameter is the RSSI of the main antenna, and since the switching rule is determined, the antenna with the largest RSSI is selected as the main antenna, so that at time t1, it can be confirmed that the antenna Ant1 will be the main antenna after switching; then, at this time, the communication quality parameter acquired in this step S401 is RSSI (Ant1, t1) — 90 dbm.
In other embodiments of the present invention, the communication quality parameter may include two or more parameters, for example, bit error rate, signal-to-noise ratio and RSSI, or may include the maximum transmission power ratio in the uplink parameter and RSSI in the downlink parameter.
S402, determining a hysteresis parameter value matched with the communication quality parameter of the main antenna when the multi-antenna terminal is switched at the current antenna according to a preset mapping relation between the communication quality parameter and the hysteresis parameter value;
the mapping relationship may be stored in a text or table manner, and now, for example, the communication quality parameter is RSSI, and the mapping relationship is stored in a table manner, in some embodiments, the mapping relationship is shown in table 1 below:
Figure BDA0001394082420000111
Figure BDA0001394082420000121
TABLE 1
In table 1, different RSSI ranges correspond to different hysteresis parameter values, and it can be seen from table 1 that the duration of the hysteresis parameter value is much longer than the antenna switching time, so that multiple times of antenna switching can be avoided within the hysteresis time period, and the power consumption is reduced.
For example, if the communication quality parameter is RSSI (Ant1, t1) — 90dbm, then the corresponding hysteresis parameter value is 8 seconds.
In this embodiment, the mapping relationship may be configured as shown in fig. 9, a user may select a system configuration or a manual configuration according to needs, the system configuration is configured by the system, and the manual configuration may require the user to set hysteresis parameter values corresponding to each RSSI range.
When the communication quality parameters include a plurality of communication quality parameters, a weighting mode can be adopted, and a final hysteresis parameter value can be obtained by performing weight addition calculation according to hysteresis parameter values corresponding to the communication quality parameters, or a final hysteresis parameter value can be obtained by directly performing weight addition calculation on hysteresis parameter values corresponding to the communication quality parameters.
S403, configuring a first hysteresis device according to the hysteresis parameter value.
Taking the first hysteresis device as an example of the first timer, in this case, configuring the first hysteresis device according to the hysteresis parameter value includes: determining a time value corresponding to the hysteresis parameter value; the counting time value of the first timer is set as a time value. Taking the hysteresis parameter value as 8 seconds as an example, the corresponding time value is 8 seconds, and the timing value of the first timer is set to 8 seconds.
Since the communication quality and the hysteresis parameter value have a positive correlation, in other embodiments of the present invention, a calculation formula of the communication quality and the hysteresis parameter value may be set, for example, y is k x + b, where y is the hysteresis parameter value, x is the communication quality parameter, and k is a scaling factor, and is generally kept unchanged. In this case, step S402 is: according to a preset calculation formula, a hysteresis parameter value matched with the communication quality parameter of the main antenna when the multi-antenna terminal is switched over at the current antenna is calculated, for example, x is RSSI, at this time, the hysteresis parameter value y is 0.5 x +55, where the unit of x is dbm, at this time, the communication quality parameter of the main antenna is RSSI (Ant1, t1) — 90dbm, and then the corresponding hysteresis parameter value y is 0.5-90 +55 ═ 10 seconds.
In other embodiments of the present invention, after each antenna switching of the terminal, the communication quality parameter of the main antenna may change, and in order to ensure that the hysteresis parameter value of the first hysteresis device is matched with the communication quality parameter of the main antenna of the terminal in real time, as shown in fig. 5, after step S403, the method further includes the following steps:
s501, after each antenna switching, detecting whether the communication quality parameter of the main antenna of the terminal changes; if the change occurs, executing step S502, and if the change is not sent, returning to continue executing step S501;
taking the example of completing the antenna switching at time t2, the first hysteresis device counts for 8 seconds, and at time t3(t3 is t2+8 seconds) after 8 seconds, after the first hysteresis device finishes counting, the antenna switching algorithm is started, parameter values such as RSSI of each antenna are acquired as target communication parameters of the multi-antenna terminal, so as to determine whether the antenna switching needs to be performed again, for example, the signal strength values of the antennas Ant0, Ant1 and Ant2 are: RSSI (Ant0, t3) — 106dbm, RSSI (Ant1, t3) — 98dbm, RSSI (Ant2, t3) — 90dbm, RSSI of antenna Ant2 greater than RSSI of antenna Ant1 by 8dbm, satisfying the switching condition, performing antenna switching, completing switching at t4(t4 ═ t3+0.1 seconds), after switching, antenna Ant2 as the main antenna, antenna Ant1 as the auxiliary antenna, and antenna Ant0 as the idle antenna. At this time, since the RSSI of the main antenna is-90 dbm at the time t2 and the time t4, no change occurs, and the step S501 is returned to be continuously executed;
taking the example of completing the antenna switching at time t4, the first hysteresis device counts for 8 seconds, and at time t5(t5 is t4+8 seconds) after 8 seconds, after the first hysteresis device finishes counting, the antenna switching algorithm is started, parameter values such as RSSI of each antenna are acquired as target communication parameters of the multi-antenna terminal, so as to determine whether the antenna switching needs to be performed again, for example, the signal strength values of the antennas Ant0, Ant1 and Ant2 are: RSSI (Ant0, t5) — 98dbm, RSSI (Ant1, t5) — 104dbm, RSSI (Ant2, t5) — 108dbm, RSSI of antenna Ant0 greater than RSSI of antenna Ant1 by 6dbm, satisfying the switching condition, performing antenna switching, completing switching at t6(t6 ═ t5+0.1 seconds), after switching, antenna Ant0 as the main antenna, antenna Ant1 as the auxiliary antenna, and antenna Ant2 as the idle antenna. At this time, since the RSSI of the main antenna is-90 dbm at time t4 and-98 dbm at time t6, the change occurs, and the step S502 is continuously executed;
s502, searching a new hysteresis parameter value matched with the new main antenna communication quality parameter;
in table 1, the hysteresis parameter value corresponding to-98 dbm is searched for 6 seconds;
s503, configuring a first hysteresis device according to the new hysteresis parameter value.
At this time, the first hysteresis device is configured according to the new hysteresis parameter value, specifically, the timing value of the first timer is set to 6 seconds.
And S303, when the timing of the first hysteresis device is finished, acquiring a target communication parameter of the multi-antenna terminal to judge whether antenna switching needs to be carried out again, wherein the target communication parameter is used for representing the performance of the antenna.
The first hysteresis device is used for timing for 8 seconds, and after 8 seconds, at the time point of t3(t3 is t2+8 seconds), the first hysteresis device is used for timing completion, an antenna switching algorithm is started, parameter values such as RSSI (received signal strength indicator) of each antenna are obtained to be used as target communication parameters of the multi-antenna terminal, so as to judge whether antenna switching needs to be carried out again, for example, the signal strength values of the antennas Ant0, Ant1 and Ant2 are: RSSI (Ant0, t3) — 106dbm, RSSI (Ant1, t3) — 98dbm, RSSI (Ant2, t3) — 90dbm, RSSI of antenna Ant2 greater than RSSI of antenna Ant1 by 8dbm, satisfying the switching condition, performing antenna switching, after switching, antenna Ant2 as the main antenna, antenna Ant1 as the auxiliary antenna, and antenna Ant0 as the idle antenna.
The embodiment aims at the defect that the power consumption is large due to the fact that the antenna switching algorithm is frequently operated by the existing multi-antenna terminal to conduct antenna switching, the hysteresis device with a certain hysteresis time is arranged, after the antenna switching is successfully conducted for one time, the hysteresis device is started, the antenna switching algorithm is not conducted any more within the hysteresis time of the hysteresis device even if the signal parameters of each antenna meet the antenna switching condition, and whether the antenna switching needs to be conducted or not is judged again only after the hysteresis time of the hysteresis device is ended, so that the problem that the power consumption is large due to the fact that the antenna switching is conducted by the existing multi-antenna terminal when the antenna switching algorithm is frequently operated is solved, and the ping-pong effect is controlled in the; meanwhile, the lag time of the lag device is related to the communication quality parameter of the main antenna after the previous antenna switching, for example, when the communication quality parameter of the main antenna represents that the signal of the main antenna is strong, the lag time is longer, the next switching is later, when the communication quality parameter of the main antenna represents that the signal of the main antenna is poor, the lag time is shorter, the next switching is earlier, so that the individual requirements of different communication qualities of the multi-antenna terminal on the antenna switching are considered, and the use experience of a user is further enhanced.
Second embodiment
Fig. 6 is a detailed flowchart of an antenna switching control method according to a second embodiment of the present invention, where the antenna switching control method includes:
s601, configuring a hysteresis strategy, a mapping relation and working parameters.
As shown in fig. 8, the hysteresis strategy includes three modes, i.e., a communication quality parameter adaptive mode, an operating parameter adaptive mode and a non-hysteresis mode; when the configured hysteresis policy is the communication quality parameter adaptive mode, the first hysteresis device is enabled, when the configured hysteresis policy is the working parameter adaptive mode, the second hysteresis device is enabled, when the configured hysteresis policy is the non-hysteresis mode, the first hysteresis device and the second hysteresis device are disabled, and the user can select from the interface shown in fig. 8.
The configuration interface of the mapping relationship is shown in fig. 9, which has already been described above and is not described again.
The working parameters include state parameters such as an operating state inside the terminal and scene parameters such as a working scene outside the terminal, and a configuration interface of the working parameters is as shown in fig. 10.
The operation of the antenna switching algorithm can optimize the antenna signal to reduce the power consumption of the device, but the switching algorithm itself will bring certain power consumption, so how to optimize the two is a problem that needs to be considered in a critical way, and the hysteresis parameter is configured according to the communication quality parameter and the like during switching, only the terminal operation parameter is considered, and the user behavior factor is not considered, so that a second hysteresis device is provided.
The scheme for configuring the second hysteresis device based on the state parameters considers the dynamic balance of the power consumption of the terminal under different working states (namely the operation of the user on the terminal), and configures different hysteresis parameters N for different states; for example: assuming that the antenna signal strength and the like have a large influence on the power consumption of the terminal in a call state and the power consumption caused by the switching algorithm is negligible, at this time, the minimum hysteresis parameter (such as 3 seconds) can be used to ensure that the signal strength of the main antenna is maximum and reduce the power consumption, assuming that the antenna signal strength and the like have a small influence on the power consumption of the terminal in a standby state and the power consumption caused by the switching algorithm is large, at this time, the large hysteresis parameter (such as 10 seconds) can be used to reduce the power consumption caused by frequently triggering the switching algorithm; on the basis, after one switching, the current working state is detected, and the corresponding hysteresis parameter is determined, so that each working state has lower power consumption.
The scheme for configuring the second hysteresis device based on the environmental parameters considers the dynamic balance of the power consumption of the terminal under different working scenes (namely the use habits of users on the terminal), and configures different hysteresis parameters for different scenes; for example: supposing that in a scenario where a user needs to use a terminal frequently (for example, the user is determined to be in a company according to a time period, a location, and the like), the influence of the antenna signal strength and the like on the power consumption of the terminal is large, and the power consumption caused by a switching algorithm is negligible, at this time, a minimum hysteresis parameter (N ═ 3 seconds) can be used to ensure that the signal strength of a main antenna is maximum, and the power consumption is reduced, and supposing that in a scenario where the user does not need to use a mobile phone frequently (for example, according to a time end), the influence of the antenna signal strength and the like on the power consumption of the terminal is small, and the power consumption caused by the switching algorithm is large, at this time, a large hysteresis parameter (; on the basis, after one switching, the current working scene is detected, and the corresponding hysteresis parameter is determined, so that each scene has lower power consumption.
S602, when the antenna switching is triggered, the hysteresis strategy is read, and a first hysteresis device and a second hysteresis device are configured.
When the antenna switching is triggered, the maximum RSSI among the RSSI of each antenna is obtained as the RSSI of the main antenna after the switching, for example, assuming that the RSSI of each antenna satisfies the antenna switching condition at time t1, the antenna switching is triggered, and at this time, the hysteresis policy is read, and the first hysteresis device and the second hysteresis device are configured.
In this embodiment, after triggering the antenna switching, the following steps are performed:
acquiring a hysteresis strategy;
judging whether the first hysteresis device needs to be enabled or not according to a hysteresis strategy;
enabling the first hysteresis device if the first hysteresis device is required to be enabled;
if the first hysteresis device is not required to be enabled, judging whether a second hysteresis device is required to be enabled according to a hysteresis strategy, wherein the hysteresis parameter value of the second hysteresis device is matched with the working parameter of the multi-antenna terminal;
if it is desired to enable the second hysteresis device, the second hysteresis device is enabled.
The maximum RSSI of the RSSI of each antenna is obtained as the RSSI of the main antenna after switching, for example, the RSSI of the main antenna after switching is-90 dbm, the RSSI is searched in table 1, the corresponding hysteresis parameter value is determined to be 8 seconds, and the first hysteresis device is configured to delay for 8 seconds.
Reading the configuration result of the working parameters, and if the configuration is that the state parameters are effective, executing the following steps:
acquiring the running state of the multi-antenna terminal; the running state comprises a call state (single voice, video call and the like based on the mobile network), a data service state (video online playing, data uploading and downloading and the like based on the mobile network), a standby state, a dormant state and the like;
determining a hysteresis parameter value matched with the operation state of the multi-antenna terminal according to the corresponding relation between the preset operation state and the hysteresis parameter value;
the correspondence between the operating conditions and the hysteresis parameter values may be as shown in table 2 below:
operating state Hysteresis parameter value Operating state Hysteresis parameter value
State of conversation 3 seconds Standby state 15 seconds
Data traffic status 4 seconds Dormant state 60 seconds
……
TABLE 2
As can be seen from table 2, the dependency degree of the operating state on the signal quality and the hysteresis parameter value have a negative correlation, that is, the larger the dependency degree of the operating state on the signal quality, the smaller the hysteresis parameter value is, so as to ensure the communication quality, and the smaller the dependency degree of the operating state on the signal quality, the larger the hysteresis parameter value is, so as to reduce the power consumption of the device.
For example, if the current operation state of the terminal is the data service state, the hysteresis parameter value corresponding to the operation state is 4 seconds, and then the second hysteresis device is configured according to the hysteresis parameter value.
Reading the configuration result of the working parameters, and if the configuration result is that the environmental parameters are effective, executing the following steps:
acquiring a working scene of the multi-antenna terminal; the working scene comprises working at a company, resting at the company, working at home, resting at home, using a mobile phone by a user, not using the mobile phone by the user and the like;
the method for acquiring the working scene is various, for example, the method is determined by combining the terminal position and the time period, for example, when the terminal is determined to be in the company through GPS positioning and the current time period is 9:00-12:00, the working scene is judged to be on work at the company, when the terminal is determined to be in the company through GPS positioning and the current time period is 12:00-14:00, the working scene is judged to be at rest at the company, when the terminal is determined to be at home through GPS positioning and the current time period is 9:00-12:00, the working scene is judged to be at home for work, and when the terminal is determined to be at home through GPS positioning and the current time period is 19:00-8:00, the working scene is judged to be at rest at home.
The method can also be used for determining the illumination intensity, if the illumination sensor of the terminal detects that the ambient illumination intensity is less than 0.2Ix, the terminal is considered to be in a dark scene, and the user does not use the mobile phone, and if the illumination sensor of the terminal detects that the ambient illumination intensity is greater than 12.56Ix and less than 550Ix, the terminal is considered to be in a normal indoor scene, and the user uses the mobile phone. Whether the user uses the mobile phone or not can be judged in other modes, such as instantaneous acceleration of the terminal, distance between the terminal and the user, grip strength of the user detected by the pressure sensor and the like, and further description is omitted.
Determining a hysteresis parameter value matched with the operation state of the multi-antenna terminal according to the corresponding relation between a preset working scene and the hysteresis parameter value;
the correspondence between the working scenario and the hysteresis parameter value can be shown in table 3 below:
working scene Hysteresis parameter value Working scene Hysteresis parameter value
Company working 3 seconds Rest at company 15 seconds
At home working 4 seconds Rest at home 60 seconds
The user is using the mobile phone 8 seconds User does not use mobile phone 100 seconds
……
TABLE 3
As can be seen from table 3, the degree of dependence of the operating scene on the signal quality and the hysteresis parameter value have a negative correlation, that is, the larger the degree of dependence of the operating scene on the signal quality is, the smaller the hysteresis parameter value is, so as to ensure the communication quality, and the smaller the degree of dependence of the operating scene on the signal quality is, the larger the hysteresis parameter value is, so as to reduce the power consumption of the device.
For example, if the current working scenario of the terminal is at home for rest, the corresponding hysteresis parameter value is 60 seconds, and then the second hysteresis device is configured according to the hysteresis parameter value.
In the present embodiment, it is assumed that the operating parameter is configured such that the operating state is active, and at time t1, the operating state is a talk state, at which time the second hysteresis device delays by 3 seconds.
And S603, switching the antenna, and determining a subsequent flow according to a hysteresis strategy.
S604, when the hysteresis policy is in the adaptive mode of the communication quality parameter, the first hysteresis device is activated, and step S607 is executed after delaying for 8 seconds.
And S605, when the hysteresis strategy is in the working parameter self-adapting mode, starting the second hysteresis device, and executing the step S607 after delaying for 3 seconds.
S606, when the hysteresis policy is not hysteresis, the first hysteresis device and the second hysteresis device are disabled, and step S607 is directly executed.
S607, acquiring the RSSI of each antenna in the terminal;
s608, judging whether antenna switching is needed, if so, executing S609, and if not, returning to execute S607;
and S609, switching the antennas, and synchronously returning to execute S602.
The embodiment aims at the defect that the power consumption is large due to the fact that the antenna switching algorithm is frequently operated by the existing multi-antenna terminal to conduct antenna switching, the hysteresis device with a certain hysteresis time is arranged, after the antenna switching is successfully conducted for one time, the hysteresis device is started, the antenna switching algorithm is not conducted any more within the hysteresis time of the hysteresis device even if the signal parameters of each antenna meet the antenna switching condition, and whether the antenna switching needs to be conducted or not is judged again only after the hysteresis time of the hysteresis device is ended, so that the problem that the power consumption is large due to the fact that the antenna switching is conducted by the existing multi-antenna terminal when the antenna switching algorithm is frequently operated is solved, and the ping-pong effect is controlled in the; meanwhile, the lag time of the lag device is related to the communication quality parameter of the main antenna after the previous antenna switching, for example, when the communication quality parameter of the main antenna represents that the signal of the main antenna is strong, the lag time is longer, the next switching is later, when the communication quality parameter of the main antenna represents that the signal of the main antenna is poor, the lag time is shorter, the next switching is earlier, so that the individual requirements of different communication qualities of the multi-antenna terminal on the antenna switching are considered, and the use experience of a user is further enhanced.
Third embodiment
The present embodiment provides a multi-antenna terminal, as shown in fig. 7, including a processor 701, a memory 702, a communication bus 703, a communication unit 704, and an antenna 705;
the communication bus 703 is used for realizing connection communication among the processor 701, the memory 702 and the communication unit 704;
the communication unit 704 may be a radio frequency communication unit (radio frequency circuit), or other types of communication units, and includes a main transceiving path and an auxiliary receiving path (not shown in the path diagram), and the antenna 705 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 702 is configured to execute one or more programs, and the processor 701 is configured to execute the one or more programs stored in the memory to implement the steps of the antenna switching control method as illustrated in the above embodiments.
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 antenna switching control method as illustrated in the above embodiments.
The invention provides an antenna switching control method, a multi-antenna terminal and a computer readable storage medium, aiming at the defect that the power consumption is larger due to the fact that the antenna switching is carried out by frequently operating an antenna switching algorithm of the existing multi-antenna terminal, a hysteresis device with a certain hysteresis time is arranged, the hysteresis device is started after the antenna switching is successfully carried out for one time, even if the signal parameters of each antenna meet the antenna switching condition within the hysteresis time of the hysteresis device, the antenna switching algorithm is not operated any more, and whether the antenna switching is needed or not is judged again only after the hysteresis time of the hysteresis device is finished, so that the problem that the power consumption is larger due to the fact that the antenna switching is carried out by frequently operating the antenna switching algorithm of the existing multi-antenna terminal is solved, and the control of the ping-pong effect; meanwhile, the lag time of the lag device is related to the communication quality parameter of the main antenna after the previous antenna switching, for example, when the communication quality parameter of the main antenna represents that the signal of the main antenna is strong, the lag time is longer, the next switching is later, when the communication quality parameter of the main antenna represents that the signal of the main antenna is poor, the lag time is shorter, the next switching is earlier, so that the individual requirements of different communication qualities of the multi-antenna terminal on the antenna switching are considered, and the use experience of a user is further enhanced.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. The antenna switching control method is characterized by being applied to a multi-antenna terminal, wherein the multi-antenna 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:
detecting whether antenna switching is completed or not, wherein the antenna switching is used for re-determining the communication relation among the at least three groups of antennas, the main transceiving path and the auxiliary receiving path so as to select a new main antenna, an auxiliary antenna and an idle antenna;
when the fact that the antenna switching is completed is detected, starting a first hysteresis device, wherein hysteresis parameter values of the first hysteresis device are matched with communication quality parameters of a main antenna of the multi-antenna terminal during the antenna switching; the hysteresis parameter value of the first hysteresis device has different values under different scenes; determining a hysteresis parameter value matched with the communication quality parameter of the main antenna when the multi-antenna terminal is switched at the current antenna according to a preset mapping relation between the communication quality parameter and the hysteresis parameter value; the duration of the hysteresis parameter value will be much greater than the antenna switching time;
and when the timing of the first hysteresis device is finished, acquiring a target communication parameter of the multi-antenna terminal to judge whether antenna switching needs to be carried out again, wherein the target communication parameter is used for representing the performance of an antenna.
2. The antenna switching control method of claim 1, further comprising, before detecting whether antenna switching is complete:
acquiring a hysteresis strategy;
judging whether the first hysteresis device needs to be enabled or not according to the hysteresis strategy;
enabling the first hysteresis device if the first hysteresis device needs to be enabled;
if the first hysteresis device is not required to be enabled, judging whether a second hysteresis device is required to be enabled according to the hysteresis strategy, wherein the hysteresis parameter value of the second hysteresis device is matched with the working parameter of the multi-antenna terminal;
enabling the second hysteresis device if it is desired to enable the second hysteresis device.
3. The antenna switching control method of claim 2, prior to acquiring the hysteresis policy, further comprising:
enabling the first hysteresis device when the hysteresis strategy is configured to be in a communication quality parameter adaptive mode;
enabling the second hysteresis device when the hysteresis policy is configured to be in a working parameter adaptive mode;
and when the hysteresis strategy is configured to be not hysteresis, disabling the first hysteresis device and the second hysteresis device.
4. The method of antenna switching control of claim 2 wherein the operating parameter comprises an operational state, the method further comprising, after enabling the second hysteresis device:
acquiring the running state of the multi-antenna terminal;
determining a hysteresis parameter value matched with the operation state of the multi-antenna terminal according to the corresponding relation between the preset operation state and the hysteresis parameter value;
configuring the second hysteresis device according to the hysteresis parameter value.
5. The antenna switching control method of claim 2 wherein the operating parameter comprises an operating scenario, the method further comprising, after enabling the second hysteresis device:
acquiring a working scene of the multi-antenna terminal;
determining a hysteresis parameter value matched with the working scene of the multi-antenna terminal according to the corresponding relation between a preset working scene and the hysteresis parameter value;
configuring the second hysteresis device according to the hysteresis parameter value.
6. The antenna switching control method of any one of claims 1 to 5, further comprising, before activating the first hysteresis device:
acquiring communication quality parameters of a main antenna of the multi-antenna terminal during the antenna switching;
determining a hysteresis parameter value matched with the communication quality parameter of the main antenna when the multi-antenna terminal is switched at the current antenna according to a preset mapping relation between the communication quality parameter and the hysteresis parameter value;
configuring the first hysteresis device according to the hysteresis parameter value.
7. The antenna switching control method of claim 6, wherein the first hysteresis device is a first timer, and wherein the configuring the first hysteresis device according to the hysteresis parameter value comprises:
determining a time value corresponding to the hysteresis parameter value;
and setting the timing value of the first timer as the time value.
8. The antenna switching control method according to claim 6, wherein the obtaining of the communication quality parameter of the main antenna of the multi-antenna terminal during the antenna switching comprises:
determining the current scene type of communication transmission of the multi-antenna terminal;
when the scene type of the current communication transmission of the multi-antenna terminal is determined to be an uplink transmission scene, acquiring at least one parameter of a maximum transmitting power ratio, a minimum transmitting power and a channel evaluation parameter of a main antenna as a communication quality parameter of the main antenna;
when the scene type of the current communication transmission of the multi-antenna terminal is determined to be a downlink transmission scene, at least one parameter of the error rate, the signal intensity and the signal to noise ratio of the main antenna is obtained to be used as a communication quality parameter of the main antenna.
9. A multi-antenna terminal is characterized in that the multi-antenna terminal comprises a processor, a memory, a communication bus, 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 the connection and communication among the processor, the memory, the main transceiving path, the auxiliary receiving path and at least three groups of antennas;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the antenna switching control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the antenna switching control method according to any one of claims 1 to 8.
CN201710765794.4A 2017-08-30 2017-08-30 Antenna switching control method, multi-antenna terminal and computer readable storage medium Active CN107483094B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710765794.4A CN107483094B (en) 2017-08-30 2017-08-30 Antenna switching control method, multi-antenna terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710765794.4A CN107483094B (en) 2017-08-30 2017-08-30 Antenna switching control method, multi-antenna terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107483094A CN107483094A (en) 2017-12-15
CN107483094B true CN107483094B (en) 2021-03-30

Family

ID=60603297

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN107483094B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597110B (en) * 2018-11-08 2021-06-04 昂科信息技术(上海)股份有限公司 Cross-region equipment positioning method, system, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8036621B2 (en) * 2005-04-05 2011-10-11 Fujitsu Ten Limited Receiving apparatus, signal processing circuit, and signal receiving method
CN106253941A (en) * 2015-06-10 2016-12-21 三星电子株式会社 Electronic equipment and method of controlling antenna thereof
CN106452550A (en) * 2016-10-14 2017-02-22 珠海市魅族科技有限公司 Antenna switching method and apparatus
CN106488523A (en) * 2015-08-24 2017-03-08 大唐移动通信设备有限公司 A kind of method and apparatus of suppression antenna transmission mode frequent switching

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3930387B2 (en) * 2002-06-24 2007-06-13 株式会社エヌ・ティ・ティ・ドコモ Transmission rate switching control method, mobile communication system, and mobile communication control apparatus in mobile communication system
JP2009278525A (en) * 2008-05-16 2009-11-26 Nec Electronics Corp Antenna diversity receiver and antenna switching control method therefor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8036621B2 (en) * 2005-04-05 2011-10-11 Fujitsu Ten Limited Receiving apparatus, signal processing circuit, and signal receiving method
CN106253941A (en) * 2015-06-10 2016-12-21 三星电子株式会社 Electronic equipment and method of controlling antenna thereof
CN106488523A (en) * 2015-08-24 2017-03-08 大唐移动通信设备有限公司 A kind of method and apparatus of suppression antenna transmission mode frequent switching
CN106452550A (en) * 2016-10-14 2017-02-22 珠海市魅族科技有限公司 Antenna switching method and apparatus

Also Published As

Publication number Publication date
CN107483094A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN109361444B (en) Transmitting antenna switching method and terminal equipment
CN110113459B (en) Antenna control method and folding screen terminal
EP3998713A1 (en) Transmitting antenna switching method and terminal device
CN110401473B (en) Method for dynamically adjusting transmission power, mobile terminal and storage medium
EP2988199A1 (en) Clicking control method and terminal
CN111029772B (en) Antenna circuit, electronic device and method for adjusting antenna performance
US11936474B2 (en) Transmission antenna switching method and terminal device
CN110098486B (en) Antenna control method, terminal and storage medium
CN108282192B (en) Antenna switching control method, communication terminal and computer readable storage medium
WO2020238350A1 (en) Antenna control method and mobile terminal
CN108512625B (en) Anti-interference method for camera, mobile terminal and storage medium
CN108322599B (en) Network access method and mobile terminal
CN107682035B (en) Antenna switching method, multi-antenna terminal and computer-readable storage medium
CN109617587B (en) Antenna selection method, terminal and storage medium
US11003224B2 (en) Control method for terminal, terminal, intelligent wearable device, and system
CN110311706B (en) Interference processing method and mobile terminal
CN110213828B (en) SRS sending method and mobile terminal
CN109739300B (en) Antenna control method and terminal
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN111642002B (en) SRS power control method, SRS power control configuration method and related equipment
CN109819458B (en) Network connection method, terminal device and computer readable storage medium
CN108512616B (en) Signal intensity display method, mobile terminal and computer readable storage medium
CN108540659B (en) Method, terminal and computer readable storage medium for reducing TDD noise influence
CN107592132B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
US20210204294A1 (en) Communication method for mobile terminal and mobile terminal

Legal Events

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