CN107592132A - A kind of antenna switching method, multi-antenna terminal and computer-readable recording medium - Google Patents

A kind of antenna switching method, multi-antenna terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107592132A
CN107592132A CN201710765584.5A CN201710765584A CN107592132A CN 107592132 A CN107592132 A CN 107592132A CN 201710765584 A CN201710765584 A CN 201710765584A CN 107592132 A CN107592132 A CN 107592132A
Authority
CN
China
Prior art keywords
antenna
judgement
stage
judgement stage
difference
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.)
Granted
Application number
CN201710765584.5A
Other languages
Chinese (zh)
Other versions
CN107592132B (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 CN201710765584.5A priority Critical patent/CN107592132B/en
Publication of CN107592132A publication Critical patent/CN107592132A/en
Application granted granted Critical
Publication of CN107592132B publication Critical patent/CN107592132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of antenna switching method, pass through the advanced decision mechanism of condition, to carry out classified estimation to antenna performance, so as to realize antenna switching is directly carried out when two antenna performance gaps of presence are especially big, exist two antenna performance gaps it is bigger when enter next judgement stage and judged again, simultaneously for any two antenna performance gaps it is smaller when direct judgement need not carry out antenna switching;When judging to need to carry out antenna switching, then the connected relation between each antenna and main transmitting-receiving path, auxiliary receiving path is redefined so as to select new primary antenna, auxiliary antenna and spare antenna.The invention also discloses a kind of multi-antenna terminal and computer-readable recording medium.Assessment so for each antenna overall performance within one period is more objective, ensures correctness, the reliability and stability of judged result, and then ensures that multi-antenna terminal possesses reliable and stable radio-frequency performance, lifts Consumer's Experience.

Description

A kind of antenna switching method, multi-antenna terminal and computer-readable recording medium
Technical field
The present invention relates to field of terminal technology, more specifically to a kind of antenna switching method, multi-antenna terminal and meter Calculation machine readable storage medium storing program for executing.
Background technology
With the development of terminal technology, the function of mobile terminal is more and more comprehensive, and the service that it is provided a user is increasingly It is perfect.It is simplest, mobile terminal the call from past pure, SMS derive take pictures, surf the Net, audio/video is broadcast All many services such as put.But, although species is various for the current function of mobile terminal, and with the development of technology, Still have more more intelligent functions by as emerged rapidly in large numbersBamboo shoots after a spring rain into the present following terminal, but mobile terminal carried it is logical Telecommunication function still can be used as one of most basic and most important function, and the performance for being related to its communication aspects also may proceed to conduct User's focus of attention.
It is well known that when mobile terminal antenna environment is more severe, not only communication quality can decline, and influence user's body Test, and the power consumption that mobile terminal is used to communicate can also steeply rise, so as to influence its standby time.So if continue to adopt With traditional antenna design, the development of mobile terminal industry will face lot of challenges in communication quality, communication power consumption. Thus, start to engender " dual-antenna terminal " in recent years.Two of dual-antenna terminal are typically separately positioned on mobile terminal Upper and lower both sides, wherein an antenna carrys out receiving and transmitting signal as primary antenna, another antenna aids in primary antenna as auxiliary antenna Carry out signal reception.
For example, the antenna on mobile terminal top will be arranged on as primary antenna, another is used as auxiliary antenna.Sending out The work of signal is penetrated, is completed by the antenna on mobile terminal top, and during reception signal, upper and lower two antennas carry out multipath simultaneously and connect Receive, then the signal that two antennas each receive is carried out to receive diversity processing, so as to ensure the accuracy of received signal and can By property.
In actual use, due to reasons such as the grippings of user, it may result in primary antenna and be blocked, so as to right The transmitting-receiving ability of mobile terminal can cause pole ill effect.Thus, need badly now and propose a kind of antenna switching scheme, to Because user's grip or other reason such as block caused by Antenna Operation environmental change when, change antenna role so that it is mobile eventually End possesses stronger signal transmitting and receiving ability all the time, lifts the communication experiences of user.
The content of the invention
The technical problem to be solved in the present invention is:A kind of antenna switching scheme is provided, in terminal antenna building ring In the case that border is unstable, change the work role of each antenna in terminal, so as to solve in existing scheme because of Antenna Operation role It is fixed, so easily causing mobile terminal transmitting-receiving performance to drastically reduce when primary antenna is blocked, the problem of Consumer's Experience is low.Pin To the technical problem, there is provided a kind of antenna switching method, multi-antenna terminal and computer-readable recording medium.
In order to solve the above technical problems, the present invention provides a kind of antenna switching method, the antenna switching method is applied to Multi-antenna terminal, the multi-antenna terminal include main transmitting-receiving path, auxiliary receiving path and at least three antennas;Described at least three In root antenna currently with it is described it is main transmitting-receiving communication be primary antenna, currently connected with the auxiliary receiving path supplemented by day Line, remaining is spare antenna;The antenna switching method includes:
The condition for the downlink communication parameter of each antenna of the multi-antenna terminal include N number of judgement stage advanced is sentenced Certainly, the downlink communication parameter can characterize the performance of each antenna of the multi-antenna terminal, and the N is more than or equal to 2, the judgement Stage includes:Obtain the downlink communication parameter of each antenna of the multi-antenna terminal;At least three the descending of antenna are led to described in calculating Believe the difference two-by-two of parameter;Each difference two-by-two is compared with the phase threshold in the judgement stage;It is determined that compare knot When fruit meets direct switching condition corresponding to the presently described judgement stage, directly judge to need to carry out antenna switching;Otherwise, judge Whether need to enter next judgement stage;If so, then enter next judgement stage;If it is not, then judge that need not carry out antenna cuts Change;Wherein, the downlink communication parameter that each judgement stage gets is identical;
When it is determined that needing to carry out antenna switching, at least three antennas and the main path, auxiliary received and dispatched are redefined Connected relation between receiving path is so as to selecting new primary antenna, auxiliary antenna and spare antenna.
Optionally, after a judgement stage in the presence of judgement, also include before into next judgement stage:Into current institute State the latent period in judgement stage.
Optionally, the phase threshold in N number of judgement stage is equal, and the latent period in each judgement stage is equal;
Or, the phase threshold in N number of judgement stage is equal, and the latent period in each judgement stage is unequal;
Or, the phase threshold in N number of judgement stage in the leading decision stage is more than the phase threshold in the rear judgement stage, And the latent period in each judgement stage is equal;
Or, the phase threshold in N number of judgement stage in the leading decision stage is more than the phase threshold in the rear judgement stage, And the latent period in each judgement stage is unequal.
Optionally, it is described to judge whether to need to enter next judgement stage;If so, then enter next judgement stage;If it is not, Antenna switching need not be carried out by, which then judging, includes:Judge whether next judgement stage;If so, then enter next judgement rank Section;If it is not, then judge that antenna switching need not be carried out.
Optionally, after next judgement stage is judged whether, in addition to:
By the difference two-by-two of downlink communication parameter handoff threshold value corresponding with default presently described judgement stage It is compared;
When determining that comparative result meets next judgement stage entry condition corresponding to the presently described judgement stage, entrance is next The judgement stage;Otherwise, directly judge that antenna switching need not be carried out.
Optionally, the downlink communication parameter includes received signal strength, received signal quality, received signal power, mistake At least one of code check.
Optionally, the downlink communication parameter includes received signal strength, received signal quality, received signal power, mistake In code check at least two when:
The difference two-by-two of the descending messaging parameter of at least three antennas includes described in the calculating:At least three described in calculating The difference two-by-two of same downlink communication parameter between antenna;
It is described by each difference two-by-two with the phase threshold in the judgement stage be compared including:
For a certain downlink communication parameter, by each difference two-by-two corresponding to the downlink communication parameter and the stage The decision threshold of downlink communication parameter described in threshold value is compared;In each difference two-by-two of the downlink communication parameter Any one be more than the decision threshold, or be more than number of the decision threshold in each difference two-by-two and reach default ratio During value, judge that the downlink communication parameter meets into order conditions;Judge to reach the number into the downlink communication parameter of order conditions again Whether predetermined number is reached, if so, really judging to meet direct switching condition corresponding to the presently described judgement stage;
Or, for certain two antenna, calculate the mean difference between each difference two-by-two;By each antenna two-by-two between it is flat Equal difference is compared with the phase threshold in the judgement stage, when any one in each mean difference is sentenced more than described The certainly phase threshold in stage, or when each mean difference reaches default ratio more than the ratio of the phase threshold in the judgement stage During example, judgement meets direct switching condition corresponding to the judgement stage.
Optionally, it is described to redefine between at least three antennas and the main transmitting-receiving path, auxiliary receiving path Connected relation includes:
A piece antenna of best performance and the main transmitting-receiving communication, choosing are selected according to the messaging parameter of each antenna An antenna for selecting performance suboptimum connects with the auxiliary receiving path.
Further, present invention also offers a kind of multi-antenna terminal, the multi-antenna terminal includes main transmitting-receiving path, auxiliary Receiving path and at least three antennas;In at least three antennas currently with it is described it is main transmitting-receiving communication based on day Line, currently connected with the auxiliary receiving path supplemented by antenna, remaining is spare antenna;The multi-antenna terminal also includes place Manage device, memory and communication bus;
The communication bus is used to realize the connection communication between the processor and memory;
The processor is used to perform one or more program stored in the memory, to realize that above-mentioned antenna is cut The step of changing method.
Further, present invention also offers a kind of computer-readable recording medium, the computer-readable recording medium It is stored with one or more program, one or more of programs can be by one or more computing device, to realize The step of above-mentioned antenna switching method.
Beneficial effect
The present invention provides a kind of antenna switching method, multi-antenna terminal and computer-readable recording medium, wherein the present invention The method of offer is applied to the multi-antenna terminal for including main transmitting-receiving path, auxiliary receiving path and at least three antennas, and this is at least In three antennas currently with it is main transmitting-receiving communication be primary antenna, currently connect with auxiliary receiving path supplemented by antenna, residue For spare antenna, based on hardware architecture provided by the invention, terminal is redefined when monitoring that antenna switching condition meets Each antenna and main transmitting-receiving path, the connected relation between auxiliary receiving path are so as to selecting new primary antenna, auxiliary antenna and sky Not busy antenna, completes the switching of antenna, namely antenna work role can dynamic change, can be adjusted flexibly with current demand, Avoid, because antenna performance deterioration causes to go offline or the situation of call drop, lifting Consumer's Experience;
In addition, the present invention is by carrying out the bar for including N (N >=2) the individual judgement stages to the performance of each antenna of multi-antenna terminal The advanced judgement of part is to determine the need for carrying out antenna switching, in each judgement stage, is used to characterize multiple antennas end by obtaining The downlink communication parameter of the current performance of each antenna at end simultaneously calculates the difference two-by-two of the messaging parameter of each antenna, then pass through by Respectively difference is compared so as to which antenna determines whether antenna needs to switch at this stage with the phase threshold in judgement stage two-by-two Or whether need to carry out the judgement of next stage.When judging to need to carry out antenna switching, then redefine each antenna and main receipts The connected relation between path, auxiliary receiving path is sent out so as to select new primary antenna, auxiliary antenna and spare antenna.Due to this hair It in bright before determining the need for reselecting main and auxiliary antenna, can use two or more, and sequential relationship be present The judgement stage each current performance of antenna is assessed, so can to each antenna during the advanced judgement of condition in Overall performance carry out objective comprehensive evaluation so that follow-up switching is reliable and effectively, work is participated in after ensureing switching Each antenna possesses really stable superperformance, so as to lift Consumer's Experience.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the hardware architecture diagram for realizing each optional terminal of embodiment one of the present invention;
Fig. 2 is a kind of multi-antenna terminal structural representation that first embodiment of the invention provides;
Fig. 3 is a kind of antenna switching method basic flow sheet that first embodiment of the invention provides;
Fig. 4 is a kind of operating process schematic diagram in each judgement stage that first embodiment of the invention provides;
Fig. 5 is a kind of specific antenna handoff procedure schematic diagram that second embodiment of the invention provides;
Fig. 6 is a kind of multi-antenna terminal structural representation that third embodiment of the invention provides;
Fig. 7 is a kind of antenna setting structure figure for triantennary terminal that third embodiment of the invention provides.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Multi-antenna terminal in the present invention can be implemented in a variety of manners.For example, such as mobile phone, flat board electricity can be included Brain, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable matchmaker Body player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. are mobile Terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110, power supply 111 and antenna 112.Wherein, in the mobile terminal 100 shown in Fig. 1 Including at least three antennas 112, at least three antennas 112 currently with the main transmitting-receiving communication of radio frequency unit 101 For primary antenna, currently connected with the auxiliary receiving path of radio frequency unit 101 supplemented by antenna, remaining is spare antenna, processor 110 can control each antenna respectively with it is main transmitting-receiving path and auxiliary receiving path break-make situation, when processor 110 control certain When a piece antenna is with main transmitting-receiving communication, radio frequency unit 101 can be received or be sent signal by the root antenna, it should be understood that It is that at least three antennas 112 can be flexibly arranged on the optional position of mobile terminal 100, such as, work as mobile terminal When including three antennas 112 on 100, this three antennas 112 can be separately positioned on the top at the back side of mobile terminal 100, lower-left Side and lower right.Those skilled in the art are further appreciated that the mobile terminal structure shown in Fig. 1 is not formed to mobile whole The restriction at end, mobile terminal can be included than illustrating more or less parts, and either root closes some parts or different portions Part is arranged.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
Based on above-mentioned mobile terminal hardware configuration, each embodiment of the inventive method is proposed.
First embodiment
In order to solve because Antenna Operation role fixes in existing scheme, i.e. can once the antenna in a certain work is blocked The problem of seriously affecting the transmitting-receiving performance of terminal-pair signal, and then influenceing Consumer's Experience, present embodiments provides a kind of antenna Switching method.
Especially, it should be noted that, the antenna switching method provided in the present embodiment, which is mainly used in, at least to be possessed herein In the multi-antenna terminal of three antennas.In the present embodiment, shown in Figure 2, multi-antenna terminal includes at least three antennas 211st, 212,21m, antenna gating circuit 22, radio circuit 23 and BBP 24, antenna gating electricity Road 22 have n first interface 2211,2212,221n (n be typically greater than be equal to m positive integer), two Second interface 2221,2222.Wherein, a second interface 2221 and (Fig. 2 of main transmitting-receiving communication 231 and 232 of radio circuit In TX and PRX), another second interface 2222 connects with the auxiliary receiving path 233 (DRX in Fig. 2) of radio circuit, each An at least path switching circuit is connected between individual first interface and two second interfaces, is had on each path switching circuit At least one switch, each antenna of the present embodiment are connected with least one first interface of antenna gating circuit.At base band Managing device 24 includes radio-frequency transmissions D/A converting circuit 241 (TX-DAC in Fig. 2), main collection reception analog to digital conversion circuit 242 (Fig. 2 In PRX-ADC), diversity reception analog to digital conversion circuit 243 (DRX-ADC in Fig. 2), and with the radio-frequency transmissions digital-to-analogue conversion Circuit 241, main collection receive analog to digital conversion circuit 242, the modulation-demodulation circuit that diversity reception analog to digital conversion circuit 243 connects respectively 244 (the MODEM PROC in Fig. 2), the main transmitting-receiving path 231 and 232 of radio circuit 23 are sent out with the radio frequency of BBP respectively Penetrate D/A converting circuit 241, main collection receives the corresponding connection of analog to digital conversion circuit 242, auxiliary receiving path 233 and diversity reception modulus Change-over circuit 243 connects.BBP also includes antenna switching control module 245 and HAL interface modules 246, antenna switching Control module 245 is connected by HAL interface modules 245 with antenna gating circuit 22, is cut by the antenna of HAL interface modules 246 Changing control module 245 can control the break-make of each path switching circuit in antenna gating circuit 22 (can control arbitrary one Connection between first interface and a second interface), and specific primary antenna, Huo Zhexuan are selected from more antennas based on this Select specific primary antenna and auxiliary antenna root closes.
, can also be with addition, the antenna switching control module 245 in the present embodiment can be integrated in BBP 24 BBP 24 is provided separately, such as is arranged in application processor, or is separately provided.
The specific execution step for the antenna switching method that the present embodiment is provided is specifically described below.It is referring to Fig. 3, Fig. 3 The antenna switching method basic flow sheet that the present embodiment provides, the antenna switching method include:
S301:The condition for the downlink communication parameter of each antenna of multi-antenna terminal include N number of judgement stage advanced is sentenced Certainly.
Wherein, the downlink communication parameter of antenna can characterize the performance of antenna.N values should be greater than being equal to 2, its specific value Can either it be liked according to oneself requirement to power consumption, performance etc. by the designer of multi-antenna terminal or by user Etc. self-defined setting.In the present embodiment, it is advanced by carrying out the condition in N number of judgement stage to the downlink communication parameter of each antenna Judgement can effectively determine whether to need to carry out antenna switching.Below to the single judgement stage in the advanced decision mechanism of condition It is introduced, shown in Figure 4, mode of operation includes used by each judgement stage:
S401:Obtain the downlink communication parameter of each antenna of multi-antenna terminal;
In the present embodiment, the antenna performance of each antenna is characterized by downlink communication parameter.Foregoing downlink communication ginseng Number includes but is not limited at least one of received signal strength, received signal quality, received signal power and bit error rate.Can With understanding, downlink communication parameter recited herein is all relatively common several, moreover, with communication standard Difference, downlink communication parameter can also increase and decrease with situation.In addition, title of the above-mentioned downlink communication parameter under different systems It is different to might have some, for example, received signal strength is in GSM (Global System for Mobile Communication, global system for mobile communications) it is by parameter RSSI (Received Signal Strength under standard Indication received signal strength indicators) characterize, and in WCDMA (Wideband Code Division Multiple Access, WCDMA) and TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA) under both communication standards, then become parameter RSCP (Received Signal Code Power, received signal code power), under LTE (Long Term Evolution, Long Term Evolution) standard, Then characterized using parameter RSRP (Reference Signal Receiving Power, Reference Signal Received Power).So It is understood that received signal strength mentioned here, received signal quality etc. be all under the Essential Action of parameter for Bright, do not limit its specific name under different scenes.Accordingly, for some parameter, no matter its title whether with it is upper State as enumerating, as long as its essence is corresponding implication, then belong to the signified scope of the present embodiment.
It is especially noted that among each example of the present embodiment, the downlink communication that is obtained in each judgement stage Parameter is identical.For example, among certain advanced judgement of condition, the downlink communication parameter that first judgement stage obtains is to receive Signal intensity.So in other each judgement stages, the downlink communication parameter of acquisition is also all received signal strength.It should manage Solution, for the number of the downlink communication parameter obtained in each judgement stage, limited in the present embodiment without specific, can be with Be one or two and more than.For example, among certain advanced judgement of condition, under each judgement stage obtains Row messaging parameter is received signal strength and received signal quality.
S402:The difference two-by-two of the descending messaging parameter of at least three antennas described in multi-antenna terminal is calculated;
It should be appreciated that the difference two-by-two described in the present embodiment refers to be directed to a certain downlink communication between two antennas Gap value present in parameter.It is assumed that multi-antenna terminal X includes 3 antennas, this three antennas are A1, A2 and A3 respectively, are being worked as The leading decision stage only obtains a kind of downlink communication parameter x, and the downlink communication parameter x correspondingly got value is respectively x1, x2 And x3, then there will be 3 for the downlink communication parameter x differences two-by-two calculated, i.e., the Zhi of the Cha two-by-two ∣ between antenna A1 and A2 x1-x2∣;The Zhi ∣ x1-x3 of Cha two-by-two ∣ between antenna A1 and A3;The Zhi ∣ x2-x3 of Cha two-by-two ∣ between antenna A2 and A3;And if Multi-antenna terminal includes m root antennas, then the difference two-by-two calculated will haveIt is individual.It is it should be appreciated that above-mentioned poor two-by-two Value is characterized by the absolute value of the difference of a certain downlink communication parameter of two antennas, and two are being characterized above by absolute value During two differences, the quality of the performance between two antennas can not be directly obtained.Therefore, can also be obstructed when calculating difference two-by-two Absolute value is crossed to characterize difference two-by-two, but is directly characterized by the actual parameter difference being calculated, so as to basis Difference directly obtains the quality of the performance between two antennas two-by-two.Still exemplified by above example, then calculated for downlink communication parameter x Difference two-by-two out will have 6, i.e., the difference x1-x2 two-by-two between antenna A1 and A2;It is poor two-by-two between antenna A2 and A1 Value x2-x1;Difference x1-x3 two-by-two between antenna A1 and A3;Difference x3-x1 two-by-two between antenna A3 and A1;Antenna A2 and Difference x2-x3 two-by-two between A3;And the difference x3-x2 two-by-two between antenna A3 and A2.Now if multi-antenna terminal bag M root antennas are included, then the difference two-by-two calculated will haveIt is individual.
S403:By respectively difference is compared with the phase threshold in judgement stage two-by-two, judged whether according to comparative result full Foot works as direct switching condition corresponding to the leading decision stage;If satisfied, go to step S404;Otherwise, step S405 is gone to.
In the present embodiment, corresponding phase threshold is both provided with for each judgement stage, it is poor two-by-two being calculated After value, each difference two-by-two can be compared with when phase threshold corresponding to the leading decision stage, and according to comparative result Judge whether to meet to work as direct switching condition corresponding to the leading decision stage, that is, determine whether the current performance of each antenna has reached Very big gap.If meeting direct switching condition, illustrate that the gap of performance between each antenna is very big, it is necessary at once Carry out antenna switching.
If it is worth noting that, in step S401, current decision stage only obtains one kind for each antenna can be with The downlink communication parameter of antenna communication performance is characterized, then when calculating the difference two-by-two of each antenna communication parameter, can only will be obtained For the difference two-by-two of the downlink communication parameter, so, judge whether result of calculation is full in the phase threshold based on the judgement stage Corresponding to the foot judgement stage during judgment condition, it is only necessary to compared each difference two-by-two with the phase threshold in the judgement stage Compared with, you can draw a conclusion.But the downlink communication parameter in the judgement stage, getting is two or more feelings For condition (such as the downlink communication parameter got includes received signal strength, received signal quality, received signal power, mistake At least two situation in code check), how this is made decisions based on phase threshold, is set forth below such two kinds of solution party Case:
The first, sets the decision threshold for including two and the above in phase threshold.Specifically, for different descending logical Believe parameter, different decision thresholds is set, then to difference judges two-by-two when, for different downlink communication parameters Difference two-by-two, it is compared using different decision thresholds.For example, among a judgement stage, for antenna A1 and A2, Two downlink communication parameters of x and y are obtained, then one decision threshold can be set for x and y respectively, and are just wrapped in phase threshold Include the two decision thresholds.It should be appreciated that in this case, should when calculating antenna A1 and A2 difference two-by-two When ensure calculate be downlink communication parameter of the same race difference two-by-two, i.e., respectively calculate antenna A1 and A2 under x parameter two-by-two Difference, and the difference two-by-two under y parameters.When the result of calculation to difference two-by-two makes decisions, will be directed to respectively descending logical Letter parameter x threshold value two-by-two is compared with downlink communication parameter x decision threshold, by for downlink communication parameter y two-by-two Threshold value is compared with downlink communication parameter y decision threshold.
For a certain downlink communication parameter, if any one in each difference two-by-two is more than decision threshold, you can judge The downlink communication parameter meets into order conditions.If one is all unsatisfactory for, it can directly judge that the downlink communication parameter is discontented with Foot enters order conditions.Certainly, when determining that whether a downlink communication parameter meets into order conditions, other conditions can also be passed through.Such as, Whether reach predetermined number for the number for being more than decision threshold in each difference two-by-two of the downlink communication parameter.For example, more days Among line terminal X, it is desirable to for the difference two-by-two of a certain downlink communication parameter, it is necessary to there are 2 to reach decision threshold, can just sentence The fixed messaging parameter meets into order conditions, if then among multi-antenna terminal X, there is 3 antennas, then must have two it is poor two-by-two Value is more than or equal to decision threshold.When whether meeting into order conditions for other downlink communication parameter, and in this way, here Repeat no more.
After whether meeting that the judgement into order conditions is completed to each downlink communication parameter, it is also necessary to determine whether to reach Whether the number for entering the downlink communication parameter of order conditions reaches predetermined number, if so, really judging to meet to sentence corresponding to the judgement stage Certainly condition, otherwise, it is determined that being unsatisfactory for the judgment condition when the leading decision stage.It is assumed that predetermined number be 1, and employ 3 it is descending Messaging parameter weighs the performance of each antenna, then when any one in this 3 downlink communication parameters meets into order conditions, It can determine that antenna performance meets the judgment condition when the leading decision stage.
Second, a nondimensional phase threshold is only set.Here illustrated by taking certain two antenna as an example:It is optional Ground, dimension first is carried out to each difference two-by-two of this two antennas and handles to obtain corresponding standard deviation, then calculate two antennas The mean difference of each standard deviation.
Hereafter when relatively, by each antenna two-by-two between mean difference with adjudicate the stage phase threshold compared with, when In each mean difference any one be more than the judgement stage phase threshold, or when each mean difference be more than the judgement stage stage When the ratio of threshold value reaches preset ratio, judgement meets judgment condition corresponding to the judgement stage.
Here to going dimension processing simply to be introduced by taking received signal strength and received signal quality as an example:For receiving Signal intensity, determine its maximum P in antenna practical applicationMAX.Similarly, for signal quality, determine that it is likely to be breached Maximum QMAX.It is assumed that the difference two-by-two of two antennas A1 and A2 of certain being calculated current received signal strength is P, connect The difference two-by-two for receiving signal quality is Q, then the standard deviation point obtained after dimension processing is carried out for the two messaging parameters Wei not P/PMAXAnd Q/QMAX.So the mean difference between this two antenna standard values is (P/PMAX+Q/QMAX)/2.It should be understood that , can also be carried out in the following manner when calculating mean difference:It is assumed that two antennas A1 and A2 of certain got are current Received signal strength be respectively P1 and P2, received signal quality is respectively Q1 and Q2, then is carried out for the two messaging parameters The obtained standard value P1/P of antenna A1 received signal strengths is removed after dimension processingMAX, the standard value Q1/ of received signal quality QMAX;The standard value P2/P of antenna A2 received signal strengthsMAX, the standard value Q2/Q of received signal qualityMAX.This two antenna marks Mean difference between quasi- value is (∣ P1/PMAX-P2/PMAX∣+∣Q1/QMAX-Q2/QMAX∣)/2。
Certainly, among some other example of the present embodiment, can be counted using modes such as weighted average or arithmetic averages Calculate mean difference.Alternatively, it is also possible to without calculate mean difference, for example, when phase threshold be for standard deviation sum set When, it is possible to directly by (P/PMAX+Q/QMAX) be compared with phase threshold.
It should be appreciated that the method for going dimension to handle has a lot, in addition to the mode of above-mentioned example, " phase can also be used To changing processing method ", " function processing method ", " extreme value method ", " standardized method ", " method for normalizing " etc. carry out Dimension is gone to handle.In fact, said process is the mode that dimension is gone in a kind of simple normalization.
It should be appreciated that when carrying out dimension and handling, some downlink communication parameters belong to " direct index ", and its value is got over Height, then sign antenna performance is better, such as received signal quality, received signal strength etc..But some downlink communication parameters then belong to In " negative index ", such as the bit error rate etc., its value is smaller, then representative antennas performance is more excellent.For " positive and negative index " simultaneously be present Situation, the messaging parameter for direct index and negative index is needed to need to be considered when calculating mean difference.It is for example, false Surely the standard deviation of two antenna received signal strengths of certain being calculated is P11, and the standard deviation of the bit error rate is J11, then may be used To obtain mean difference using Arithmetic Expressions Using (P11-J11)/2.Now mean difference is bigger, that is, it is more excellent to characterize antenna performance.Should Understand, foregoing calculation is only a kind of feasible simple examples, does not represent the present invention and is only capable of using this kind of calculation Pair simultaneously that " positive and negative index " is handled be present.In fact, processing sides such as " relative processing methods " can also be used Formula is come pair while that " positive and negative index " is handled be present.
Beyond all doubt, each phase threshold for adjudicating the stage should be with the downlink communication parameter that obtains needed for the judgement stage It is corresponding.It can set the phase threshold in each judgement stage equal in the present embodiment, the stage in each judgement stage can also be set Threshold value is unequal.During for setting the phase threshold in each judgement stage unequal, a kind of specific set-up mode is:Setting is respectively sentenced Certainly the phase threshold in stage can gradually successively decrease, namely the preceding judgement stage phase threshold be more than the rear judgement stage rank Section threshold value.Such as among the advanced judgement of condition of some multi-antenna terminal, including 3 judgement stages, wherein the first judgement rank The phase threshold that Duan Zhi tri- adjudicates the stage is respectively D1, D2 and D3, and these three phase thresholds meet D1>D2>D3 relation.Tool Body, if the downlink communication parameter that each judgement stage gets is received signal strength, then three phases threshold value can be set D1, D2, D3 are respectively 9dB, 6dB and 3dB.
S404:Directly judge to need to carry out antenna switching.
After judging to need to carry out antenna switching, it is possible to enter the process for reselecting primary antenna and auxiliary antenna.
S405:Judge whether to need to enter next judgement stage;If so, go to step S406;Otherwise, step is gone to S407。
Among a judgement stage, it is being unsatisfactory for directly switching bar with the comparative result of phase threshold according to difference two-by-two During part, that is, show not can determine that terminal needs to carry out antenna switching when the leading decision stage.Now, further determine a need for Judged again into next stage.
In the present embodiment, judging whether to need a kind of concrete mode into next stage is:Judge currently this Whether the individual judgement stage is last judgement stage, that is, a judgement stage in the presence of judging whether also.If it is not, say Bright can also be done to current antenna performance is assessed again, therefore, into S406.If it is, explanation antenna performance has been entered Go the judgement in continuous N number of judgement stage, and antenna not can determine that antenna needs in the judgement in this continuous N number of judgement stage Switching.So, it is possible to determine that currently it is unsatisfactory for antenna switching condition, it is not necessary to carry out antenna switching, therefore S407 can be entered.
In the present embodiment, can also be further to when leading decision rank after next judgement stage is judged whether The difference two-by-two for the downlink communication parameter that section obtains switches over the judgement of threshold value, specifically:It will be obtained when the leading decision stage Downlink communication parameter difference two-by-two compared with default handoff threshold value, if comparative result meet work as leading decision rank Next judgement stage entry condition corresponding to section, i.e., into next judgement stage;Otherwise, directly judge that need not carry out antenna cuts Change.A kind of downlink communication parameter is only obtained when the leading decision stage for example, setting, the downlink communication that will be obtained when the leading decision stage Each difference two-by-two of parameter is more than default compared with default handoff threshold value if there is at least one difference two-by-two Handoff threshold value, then judge to enter next judgement stage, otherwise, directly judge that antenna switching need not be carried out.It should be understood that Be, for when the leading decision stage only, obtain two or more messaging parameter in the case of, can be different downlink communications Parameter sets different handoff threshold values respectively, then by each difference two-by-two corresponding to different communication parameter respectively with the downlink communication Handoff threshold value is compared corresponding to parameter, is more than the descending of corresponding handoff threshold value at least one difference two-by-two be present When the number of messaging parameter is more than preset requirement number, judge to enter next judgement stage;Or different descending two antennas The difference two-by-two of messaging parameter carries out dimensionization and handles and mean difference is calculated, then by each mean difference and works as leading decision The handoff threshold value that stage corresponds to default mean difference is compared, and is more than corresponding cut at least one mean difference be present When changing threshold value, judge to enter next judgement stage.
S406:Into next judgement stage.
It should be appreciated that respectively the flow in judgement stage is similar in the present embodiment, therefore detailed process is referred to Fig. 4's Introduce, no longer the process in other judgement stages is introduced here.
S407:Judgement need not carry out antenna switching.
In the present embodiment, when the leading decision stage is last judgement stage and is unsatisfactory for direct switching condition, meeting Judgement need not carry out antenna switching.On the other hand, when being provided with handoff threshold value and being compared, if downlink communication parameter When respectively difference is respectively less than default handoff threshold value two-by-two, that is, show that the performance gap between each antenna is little, it is not necessary to carry out day Line switches, and now directly exits switching flow, does not enter back into next judgement stage.
It should be appreciated that in each judgement stage, the handoff threshold value of setting should be less than the phase threshold set. In the present embodiment, phase threshold and handoff threshold value can be preset by engineer according to the practical situations of antenna. , can also even with the handoff threshold value of same downlink communication parameter simultaneously it should be appreciated that in the different judgement stages The difference of setting.
It should be appreciated that the main of the advanced judgement of condition is carried out to each antenna using each judgement stage in the present embodiment Purpose is to carry out more objective performance evaluation to each antenna.Specifically, passed through at least two judgement stages pair for having sequential Antenna performance gap is not that king-sized situation (is unsatisfactory for the difference two-by-two of direct switching condition but downlink communication parameter at least One situation for being more than default handoff threshold value), carry out multiple Performance Evaluation, the overall performance situation that each antenna is true, stable Assessment it is more objective, ensure that antenna switching validity and accuracy.
In the present embodiment, due to whether meeting that switching condition carries out the purpose of N number of judgement stage judgement to antenna performance It is to ensure that the stability to antenna carries out objective appraisal.So multiple judgements that sequential relationship be present can be passed through Stage is evaluated performance of the antenna within one period.If it is understood that assess the time undergone during antenna Span is bigger, then assessment result is more objective.So among some examples of the present embodiment, sentence in order to which the condition of extending is advanced The time certainly undergone, latent period can be set between the two neighboring judgement stage, can be with by the time-consuming of latent period The influence of accidentalia is excluded by the time of abundance.But the longer the better yet for the duration of latent period, because if Latent period is oversize, then arriving causes whole antenna switch step long, may influence Consumer's Experience in some cases.For example, The current primary antenna performance of terminal is excessively poor, and the performance of spare antenna can but substantially meet user's request, and user is just in such case Lower call, then it is badly in need of carrying out antenna switching.But the latent period set is long, it is time-consuming special that this can cause antenna to be switched and determined It is long, so as to cause call experience of the user within a very long time all bad.Therefore latent period setting should compatibility examine Consider the influence to assessment result and Consumer's Experience.In the present embodiment, the duration of latent period can be pre- by Terminal Design personnel First set, or can also be set by User Defined.In the present embodiment, the value of latent period could be arranged to 0.1s-10s Between, such as could be arranged to 1s.
Due to not fully being bound between each judgement stage, therefore, latent period among each judgement stage can with equal, It can also be not completely equivalent.For example, the latent period for respectively adjudicating the stage is 3s, or the latent period in the first judgement stage is 3s, and the latent period in the second judgement stage is only 2s, this is also feasible.Among some examples of the present embodiment, respectively sentence Certainly the latent period in stage gradually successively decreases.In addition, the different demands of multi-antenna terminal radio-frequency enabled can be corresponded to for user Different latent periods is set, for example, in user's communication and online etc. to that under the scene of radio-frequency enabled heavy dependence, can incite somebody to action Latent period sets shorter, and for other scenes insensitive to data transmit-receive, then it can increase the length of latent period The stage is spent, can not have to set latent period.It should be appreciated that when judging to need to carry out antenna switching, Ke Yizhi Tap into the process into day line options.
To sum up, in the present embodiment, respectively there are 4 kinds of facilities in the phase threshold in judgement stage and latent period:It is i.e. N number of The phase threshold in judgement stage is equal, and the latent period in each judgement stage is equal;The phase threshold in N number of judgement stage is equal, And the latent period in each judgement stage is unequal;The phase threshold in N number of judgement stage is unequal, and the wait week in each judgement stage Phase is equal;The phase threshold in N number of judgement stage is unequal, and the latent period in each judgement stage is also unequal;
S302:When it is determined that needing to carry out antenna switching, at least three antennas and main transmitting-receiving path, auxiliary reception are redefined Connected relation between path is so as to selecting new primary antenna, auxiliary antenna and spare antenna.
, can be according to descending based on being got in the advanced judgement of condition when primary antenna, auxiliary antenna is reselected Messaging parameter is selected, and can also reacquire current downlink communication parameter, then descending logical at this further according to each antenna Believe the performance ranking under parameter, select one of best performance to be used as primary antenna, connect with the main transmitting-receiving path of the multi-antenna terminal It is logical, select an auxiliary antenna of conduct of performance suboptimum, connected with the auxiliary receiving path of the multi-antenna terminal, using remaining antenna as Spare antenna.
It should be appreciated that each step of the antenna switching method in the present embodiment can be by terminal as shown in Figure 1 100 independently realize, specifically, each of above-mentioned antenna switching method can be achieved by being stored in the memory 109 of terminal 100 The processing routine of individual step, the processing routine is performed by processor 110 to realize and to antenna include the bar in N number of judgement stage The advanced judgement of part determines whether to carry out antenna switching;Also realize and judging after the execution of simultaneous processor 110 processing routine Need to carry out to control an antenna of best performance and main transmitting-receiving communication, a day of control performance suboptimum during antenna switching Line connects with auxiliary receiving path.
Meanwhile in the present embodiment, a kind of computer-readable recording medium is also provided, such as floppy disk, CD, hard disk, flash memory, U Disk, CF cards, SD card, mmc card etc., be stored with the computer-readable recording medium realize above-mentioned each step one or Multiple programs, this one or more program can be by one or more computing devices, so as to realize above-mentioned antenna switching side Each step of method.
The antenna switching method and computer-readable recording medium that the present embodiment provides, by the advanced decision mechanism of condition, To carry out classified estimation to antenna performance, so as to realize that directly carrying out antenna when two antenna performance gaps of presence are especially big cuts Change, judged again into next judgement stage when two antenna performance gaps of presence are bigger, simultaneously for any two Directly judge that antenna switching need not be carried out when root antenna performance gap is smaller.So for each antenna within one period The assessment of overall performance is more objective, ensures correctness, the reliability and stability of judged result, and then ensure multi-antenna terminal Possess reliable and stable radio-frequency performance, lift Consumer's Experience.
Further, in the present embodiment, determine that each antenna performance meets this judgement rank in a judgement stage The judgment condition of section, and determine when also needing to enter next judgement stage, it can be introduced into when the latent period in leading decision stage, when After latent period terminates, entering next judgement stage.In this way, can further extend the advanced judgement of condition to be passed through The duration gone through, so as to evaluate the performance of each antenna performance in a longer period of time, more fully conclusion is drawn, further The accuracy of the advanced judgement conclusion of lifting condition.
Second embodiment
The present embodiment is on the basis of first embodiment, and a kind of feelings of downlink communication parameter are only obtained with each judgement stage Present invention work is further illustrated exemplified by condition.
Referring to Fig. 5, Fig. 5 is a kind of specific antenna handoff procedure schematic diagram that second embodiment of the invention provides, if institute It is triantennary terminal to state multi-antenna terminal.Three antennas in terminal are designated as respectively:Antenna A1, antenna A2 and antenna A3;If N Equal to 3, the downlink communication parameter of acquisition is received signal strength;If the latent period in first judgement stage is T1, second The latent period in judgement stage is T2.Antenna handoff procedure includes:
S501:Obtain received signal strength corresponding to each antenna in multi-antenna terminal;
Received signal strength corresponding to antenna A1, antenna A2 and antenna A3 can now be got, is designated as R11 respectively, R12 and R13。
S502:The difference two-by-two of the received signal strength of each antenna in multi-antenna terminal is calculated;
Now be calculated the Zhi ∣ of Cha two-by-two R11-R12 ∣, antenna A1 and antenna A3 between antenna A1 and antenna A2 it Between the Zhi ∣ R11-R13 ∣ of Cha two-by-two, and the Zhi ∣ R12-R13 of Cha two-by-two ∣ between antenna A2 and antenna A3.
S503:By respectively difference is compared with the phase threshold in judgement stage two-by-two;Judged whether according to comparative result full Foot works as direct switching condition corresponding to the leading decision stage;If satisfied, go to step S513;Otherwise, step S504 is gone to.
If the phase threshold in this judgement stage is 9, now Jiang ∣ R11-R12 ∣ , ∣ R11-R13 ∣ He ∣ R12-R13 ∣ are respectively with 9 It is compared, judges whether that at least one difference two-by-two is more than phase threshold 9, if so, is judged to needing progress antenna to cut Change, and go to step S513, otherwise, go to step S504.
It should be appreciated that can also first compare each difference two-by-two in the present embodiment obtains the maximum in each difference two-by-two Value, then difference is compared with phase threshold two-by-two by the maximum, if maximum difference two-by-two is more than phase threshold and is judged to needing Carry out antenna switching.For upper example, get Dao ∣ R11-R12 ∣ , ∣ R11-R13 ∣ both can be first compared He in ∣ R12-R13 ∣ Maximum, then by the maximum compared with phase threshold 9.
S504:By respectively difference is compared with the default handoff threshold value in judgement stage two-by-two;Judged according to comparative result Whether satisfaction works as next judgement stage entry condition corresponding to the leading decision stage;If satisfied, go to step S505;Otherwise, go to Step S512.
If this judgement stage handoff threshold value is 6, judges whether that at least one difference two-by-two is more than 6, such as exist, enter Enter next differentiation stage, if being not present, be judged to that antenna switching need not be carried out, and go to step S512.
S505:After waiting T1 durations, received signal strength corresponding to each antenna is reacquired;
Received signal strength corresponding to antenna A1, antenna A2 and antenna A3 can now be reacquired, is designated as R21 respectively, R22 and R23.
S506:Recalculate to obtain the difference two-by-two of the received signal strength of each antenna in multi-antenna terminal;
Now be calculated the Zhi ∣ of Cha two-by-two R21-R22 ∣, antenna A1 and antenna A3 between antenna A1 and antenna A2 it Between the Zhi ∣ R21-R23 ∣ of Cha two-by-two, and the Zhi ∣ R22-R23 of Cha two-by-two ∣ between antenna A2 and antenna A3.
S507:By respectively difference is compared with the phase threshold in judgement stage two-by-two;Judged whether according to comparative result full Foot works as direct switching condition corresponding to the leading decision stage;If satisfied, go to step S513;Otherwise, step S508 is gone to.
If the phase threshold in this judgement stage be 6, now Jiang ∣ R21-R22 ∣ , ∣ R21-R23 ∣ He ∣ R22-R23 ∣ respectively with Phase threshold 6 is compared, and judges whether that at least one difference two-by-two is more than phase threshold 6, if so, be judged to needing into Row antenna switches, and goes to step S513, otherwise, goes to step S508.
S508:By respectively difference is compared with the default handoff threshold value in judgement stage two-by-two;Judged according to comparative result Whether satisfaction works as next judgement stage entry condition corresponding to the leading decision stage;If satisfied, go to step S509;Otherwise, go to Step S512.
If this judgement stage handoff threshold value is 3, judges whether that at least one difference two-by-two is more than 3, such as exist, enter Enter next differentiation stage, if being not present, be judged to that antenna switching need not be carried out, and go to step S512.
S509:After waiting T2 durations, received signal strength corresponding to each antenna is reacquired;
Received signal strength corresponding to antenna A1, antenna A2 and antenna A3 can now be reacquired, is designated as R31 respectively, R32 and R33.It is worth noting that, T1 can be equal to T2 in the present embodiment, T2 can also be not equal to.
S510:Recalculate to obtain the difference two-by-two of the received signal strength of each antenna in multi-antenna terminal;
Now be calculated the Zhi ∣ of Cha two-by-two R31-R32 ∣, antenna A1 and antenna A3 between antenna A1 and antenna A2 it Between the Zhi ∣ R31-R33 ∣ of Cha two-by-two, and the Zhi ∣ R32-R33 of Cha two-by-two ∣ between antenna A2 and antenna A3.
S511:By respectively difference is compared with the phase threshold in judgement stage two-by-two;Judged whether according to comparative result full Foot works as direct switching condition corresponding to the leading decision stage;If satisfied, go to step S513;Otherwise, step S512 is gone to.
If the phase threshold in this judgement stage is 3, now Jiang ∣ R31-R32 ∣ , ∣ R31-R33 ∣ He ∣ R32-R33 ∣ are respectively with 3 It is compared, judges whether that at least one difference two-by-two is more than phase threshold 3, if so, is judged to needing progress antenna to cut Change, and go to step S513, otherwise, go to step S512.
S512:Judgement need not carry out antenna switching, terminate switching flow.
S513:It is ranked up based on the messaging parameter for judging to need to carry out accessed by the judgement stage of antenna switching, will One of best performance is used as primary antenna, the main transmitting-receiving communication with the multi-antenna terminal;Using one of performance suboptimum as Auxiliary antenna, connected with the auxiliary receiving path of the multi-antenna terminal, using remaining antenna as spare antenna.
Specifically, when judging to need to carry out antenna switching in step S503, R11, R12 and R13 are ranked up, now Antenna corresponding to maximum in R11, R12 and R13 is selected as primary antenna and main transmitting-receiving communication, to select corresponding to median Antenna connects as auxiliary antenna with auxiliary receiving path, using antenna corresponding to minimum value as spare antenna.
When judging to need to carry out antenna switching in step s 507, R21, R22 and R23 are ranked up, now selected Antenna corresponding to maximum selects antenna corresponding to median as primary antenna and main transmitting-receiving communication in R21, R22 and R23 Connected as auxiliary antenna with auxiliary receiving path, using antenna corresponding to minimum value as spare antenna.
When judging to need to carry out antenna switching in step S511, R31, R32 and R33 are ranked up, now selected Antenna corresponding to maximum selects antenna corresponding to median as primary antenna and main transmitting-receiving communication in R31, R32 and R33 Connected as auxiliary antenna with auxiliary receiving path, using antenna corresponding to minimum value as spare antenna.
The antenna switching method that the present embodiment provides, by setting multiple judgement stages, to be classified to antenna performance Assess, directly carry out antenna switching when two antenna performance gaps of presence are especially big so as to realize, two days are linear existing Judged again into next judgement stage when energy gap is bigger, it is smaller simultaneously for any two antenna performance gaps When directly judge need not carry out antenna switching.Assessment so for each antenna overall performance within one period is more objective See, ensure correctness, the reliability and stability of judged result, and then ensure that multi-antenna terminal possesses reliable and stable radio frequency Can, lift Consumer's Experience.
3rd embodiment
The present embodiment additionally provides a kind of multi-antenna terminal, shown in Figure 6, including processor 61, memory 62, communication Bus 63, communication unit 64 and antenna 65;
Communication bus 63 is used to realize the connection communication between processor 61, memory 62 and communication unit 64;
Communication unit 64 can be radio frequency communications unit (radio circuit) or other kinds of communication unit, its Including main transmitting-receiving path, auxiliary receiving path (not shown in path figure), antenna 65 comprises at least three, in this at least three antenna Currently with it is above-mentioned it is main transmitting-receiving communication be primary antenna, currently connected with above-mentioned auxiliary receiving path supplemented by antenna, it is remaining For spare antenna.
It should be appreciated that setting of each antenna in terminal in the present embodiment can be carried out according to practical application request Flexibly set.For example, see the antenna setting structure figure of the triantennary terminal shown in Fig. 7, dotted line frame position is antenna in figure Set location.
Memory 62 is used to perform one or more programs, processor 61 be used to performing stored in memory one or Multiple programs, to realize following steps:
The advanced judgement of condition for carrying out including N number of judgement stage to the downlink communication parameter of each antenna of multi-antenna terminal is with true It is fixed whether to need to carry out antenna switching.Wherein, N is more than or equal to 2.The downlink communication parameter of antenna can characterize the performance of antenna.
When it is determined that needing to carry out antenna switching, redefine between each antenna and main transmitting-receiving path, auxiliary receiving path Connected relation is so as to selecting new primary antenna, auxiliary antenna and spare antenna.
In the present embodiment, the mode of operation used by each judgement stage of processor 61 specifically includes:Obtain multiple antennas The downlink communication parameter of each antenna of terminal;The difference two-by-two of the messaging parameter of each antenna in multi-antenna terminal is calculated; By respectively two-by-two difference with judgement the stage phase threshold be compared, according to comparative result judge whether meet work as the leading decision stage Corresponding direct switching condition;If satisfied, directly judge to need to carry out antenna switching;Otherwise, it is determined whether need into next The judgement stage;If so, into next judgement stage;Otherwise, it is determined that antenna switching need not be carried out.
In the present embodiment, the antenna performance of each antenna is characterized by downlink communication parameter.Foregoing downlink communication ginseng Number includes but is not limited at least one of received signal strength, received signal quality, received signal power and bit error rate.Can With understanding, downlink communication parameter recited herein is all relatively common several, moreover, with communication standard Difference, downlink communication parameter can also increase and decrease with situation.In addition, title of the above-mentioned downlink communication parameter under different systems It is different to might have some, for example, received signal quality can pass through parameter SNR (SIGNAL-NOISE under GSM standards RATIO, signal to noise ratio) characterize, and in WCDMA, TD-SCDMA, CDMA (Code Division Multiple Access, code Point multiple access) and EVDO these four communication standards under, then can pass through parameter EC/IO (Energy Chip/Interfere Other Cell, chip energy/external disturbance) characterize, and under LTE standards, then using parameter RSRQ (Reference Signal Receiving Quality, Reference Signal Received Quality) characterize.So, it is to be understood that it is mentioned here to receive letter Number intensity, received signal quality etc. are got off explanation from the Essential Action of parameter, do not limit it under different scenes Specific name.Accordingly, for some parameter, no matter whether its title is such as above-mentioned enumerate, as long as its essence is corresponding Implication, then belong to the signified scope of the present embodiment.
It is especially noted that among each example of the present embodiment, the downlink communication that is obtained in each judgement stage Parameter is identical.It should be appreciated that for the number of the downlink communication parameter obtained in each judgement stage, do not enter in the present embodiment Row is specific to be limited, can be one or two and more than.
Difference two-by-two described in the present embodiment refers to be directed to present in a certain downlink communication parameter between two antennas Gap value.
Meanwhile in the present embodiment, corresponding phase threshold is both provided with for each judgement stage, is being calculated two , can be by each difference two-by-two with being compared when phase threshold corresponding to the leading decision stage, and according to comparing after two differences As a result judge whether to meet to work as direct switching condition corresponding to the leading decision stage, that is, whether to determine the current performance of each antenna Very big gap is reached.If meeting direct switching condition, the gap for illustrating performance between each antenna it is very big, it is necessary to Antenna switching is carried out at once.
It is worth noting that, if antenna communication can be characterized by only obtaining one kind for each antenna in current decision stage The downlink communication parameter of performance, then when calculating the difference two-by-two of each antenna downlink communication parameter, inciting somebody to action can only obtain processor 61 For the difference two-by-two of the downlink communication parameter, so, processor 61 judges to calculate knot in the phase threshold based on the judgement stage When whether fruit meets judgment condition corresponding to the judgement stage, it is only necessary to the stage threshold by each difference two-by-two with the judgement stage Value is compared, you can is drawn a conclusion.But the downlink communication parameter in the judgement stage, getting is two or two For situation above, processor 61 can be handled by following two modes:
The first, sets the judgment threshold for including two and the above in phase threshold.Specifically, for different descending logical Believe parameter, different judgment thresholds be set, then processor 61 to difference judges two-by-two when, for different descending logical Believe the difference two-by-two of parameter, be compared using different judgment thresholds.
For a certain downlink communication parameter, if any one in each difference two-by-two is more than decision threshold, processor 61 It can determine that the downlink communication parameter meets into order conditions.If one is all unsatisfactory for, processor 61 then can directly judge this Downlink communication parameter is unsatisfactory for into order conditions.Certainly, can also when determining that whether a downlink communication parameter meets into order conditions Pass through other conditions.
After whether meeting that the judgement into order conditions is completed to each downlink communication parameter, processor 61 also needs to further Whether the number for judging to reach into the downlink communication parameter of order conditions reaches predetermined number, if so, really judging to meet the judgement stage Corresponding judgment condition, otherwise, it is determined that being unsatisfactory for the judgment condition when the leading decision stage.
Second, a nondimensional phase threshold is only set.Here illustrated by taking certain two antenna as an example:It is optional Ground, processor 61 first carries out dimension to each difference two-by-two of this two antennas and handles to obtain corresponding standard deviation, then calculates The mean difference of two each standard deviations of antenna.
Hereafter when relatively, by each antenna two-by-two between mean difference with adjudicate the stage phase threshold compared with, when In each mean difference any one be more than the judgement stage phase threshold, or when each mean difference be more than the judgement stage stage When the ratio of threshold value reaches preset ratio, judgement meets judgment condition corresponding to the judgement stage.
It should be appreciated that the method for going dimension to handle has a lot, in addition to the mode of above-mentioned example, " phase can also be used To changing processing method ", " function processing method ", " extreme value method ", " standardized method ", " method for normalizing " etc. carry out Dimension is gone to handle.
It should be appreciated that when carrying out dimension and handling, some messaging parameters belong to " direct index ", and its value is higher, then It is better to characterize antenna performance, such as received signal quality, received signal strength etc..But some messaging parameters then belong to " negative to refer to Mark ", such as the bit error rate etc., its value is smaller, then representative antennas performance is more excellent.For " positive and negative index " be present simultaneously, The messaging parameter for direct index and negative index is needed when calculating mean difference to be needed to be considered.Specifically, it can adopt With processing modes such as " relative processing methods " come pair simultaneously that " positive and negative index " is handled be present.
Beyond all doubt, each phase threshold for adjudicating the stage should be with the downlink communication parameter that obtains needed for the judgement stage It is corresponding.It can set the phase threshold in each judgement stage equal in the present embodiment, the stage in each judgement stage can also be set Threshold value is unequal.During for setting the phase threshold in each judgement stage unequal, a kind of specific set-up mode is:Setting is respectively sentenced Certainly the phase threshold in stage can gradually successively decrease, namely the preceding judgement stage phase threshold be more than the rear judgement stage rank Section threshold value.
It is worth noting that, among a judgement stage, processor 61 is according to ratio of the difference with phase threshold two-by-two When relatively result is unsatisfactory for direct switching condition, that is, show not can determine that terminal needs to carry out antenna switching when the leading decision stage. Now, processor 61 needs further to determine a need for again being judged into next stage.
In the present embodiment, processor 61 judges whether to need a kind of concrete mode into next stage be:Judge to work as Whether this preceding judgement stage is last judgement stage, that is, a judgement stage in the presence of judging whether also.If no If being, illustrate that current antenna performance can also be done and assess again, therefore, it is necessary into next judgement stage.If it is, Then illustrate that antenna performance has been carried out the judgement in continuous N number of judgement stage, and the day in the judgement in this continuous N number of judgement stage Line not can determine that antenna needs to switch.So, it is possible to determine that currently it is unsatisfactory for antenna switching condition, it is not necessary to carry out antenna and cut Change, antenna changeover program is exited in the directly control of processor 61.
In the present embodiment, processor 61, can also be further to working as after next judgement stage is judged whether The difference two-by-two for the downlink communication parameter that the leading decision stage obtains switches over the judgement of threshold value, specifically:Leading decision will be worked as The difference two-by-two for the downlink communication parameter that stage obtains is compared with default handoff threshold value, if comparative result meets to work as Next judgement stage entry condition corresponding to the leading decision stage, i.e., into next judgement stage;Otherwise, directly judge to enter Row antenna switches.
It should be appreciated that the feelings of the downlink communication parameter for obtaining two or more when the leading decision stage Condition, can be that different downlink communication parameters set different handoff threshold values respectively, processor 61 is by different downlink communication parameters Corresponding each difference two-by-two compared with handoff threshold value corresponding to the downlink communication parameter, has at least one two respectively When the number that two differences are more than the downlink communication parameter of corresponding handoff threshold value is more than preset requirement number, judge into next The judgement stage;Or dimensionization is carried out the difference two-by-two of different downlink communication parameters two antennas and handles and is calculated flat Equal difference, then by each mean difference compared with the handoff threshold value when leading decision stage corresponding default mean difference, When at least one mean difference be present more than corresponding handoff threshold value, judge to enter next judgement stage.
In the present embodiment, respectively the flow in judgement stage is similar, therefore no longer the process in other judgement stages is carried out here Introduce.
In the present embodiment, when the leading decision stage is last judgement stage and is unsatisfactory for direct switching condition, meeting Judgement need not carry out antenna switching.On the other hand, when being provided with handoff threshold value and being compared, if downlink communication parameter When respectively difference is respectively less than default handoff threshold value two-by-two, that is, show that the performance gap between each antenna is little, it is not necessary to carry out day Line switches, and now directly exits switching flow, does not enter back into next judgement stage.
It should be appreciated that in each judgement stage, the handoff threshold value of setting should be less than the phase threshold set. In the present embodiment, phase threshold and handoff threshold value can be preset by engineer according to the practical situations of antenna. , can also even with the handoff threshold value of same downlink communication parameter simultaneously it should be appreciated that in the different judgement stages The difference of setting.
It should be appreciated that the main of the advanced judgement of condition is carried out to each antenna using each judgement stage in the present embodiment Purpose is to carry out more objective performance evaluation to each antenna.Specifically, passed through at least two judgement stages pair for having sequential Antenna performance gap is not that king-sized situation (is unsatisfactory for the difference two-by-two of direct switching condition but downlink communication parameter at least One situation for being more than default handoff threshold value), carry out multiple Performance Evaluation, the overall performance situation that each antenna is true, stable Assessment it is more objective, ensure that antenna switching validity and accuracy.
In the present embodiment, due to whether meeting that switching condition carries out the purpose of N number of judgement stage judgement to antenna performance It is to ensure that the stability to antenna carries out objective appraisal.So multiple judgements that sequential relationship be present can be passed through Stage is evaluated performance of the antenna within one period.If it is understood that assess the time undergone during antenna Span is bigger, then assessment result is more objective.So among some examples of the present embodiment, sentence in order to which the condition of extending is advanced The time certainly undergone, latent period can be set between the two neighboring judgement stage, can be with by the time-consuming of latent period The influence of accidentalia is excluded by the time of abundance.But the longer the better yet for the duration of latent period, because if Latent period is oversize, then arriving causes whole antenna switch step long, may influence Consumer's Experience in some cases.Therefore etc. Treat that setting for cycle should the compatible influence considered to assessment result and Consumer's Experience.In the present embodiment, latent period when Length can be pre-set by Terminal Design personnel, or can also be set by User Defined.
Due to not fully being bound between each judgement stage, therefore, latent period among each judgement stage can with equal, It can also be not completely equivalent.Among some examples of the present embodiment, each latent period for adjudicating the stage gradually successively decreases.In addition, Different demands for user to multi-antenna terminal radio-frequency enabled, can be correspondingly arranged different latent periods.It should be understood that It is that, when judging to need to carry out antenna switching, the process of day line options can be directly entered.
It should be appreciated that processor 61 can be entered when primary antenna, auxiliary antenna is reselected according to based on condition The downlink communication parameter got in rank judgement is selected, and can also reacquire current downlink communication parameter, Ran Houzai According to performance ranking of each antenna under the downlink communication parameter, one of best performance is selected to be used as primary antenna, with this more days The main transmitting-receiving communication of line terminal, an auxiliary antenna of conduct of performance suboptimum is selected, with the auxiliary receiving path of the multi-antenna terminal Connection, using remaining antenna as spare antenna.
The multi-antenna terminal that the present embodiment provides, by the advanced decision mechanism of condition, is commented to carry out classification to antenna performance Estimate, directly carry out antenna switching when two antenna performance gaps of presence are especially big so as to realize, two antenna performances be present Judged again into next judgement stage when gap is bigger, simultaneously for any two antenna performance gaps it is smaller when Directly judge that antenna switching need not be carried out.Assessment so for each antenna overall performance within one period is more objective See, ensure correctness, the reliability and stability of judged result, and then ensure that multi-antenna terminal possesses reliable and stable radio frequency Can, lift Consumer's Experience.
Fourth embodiment
The present embodiment is on the basis of 3rd embodiment, to obtain the situation of two kinds of downlink communication parameters in each judgement stage Exemplified by the present invention work further illustrate.
Referring still to the terminal shown in Fig. 6, if multi-antenna terminal is triantennary terminal, three antennas are designated as respectively:Antenna A1, antenna A2 and antenna A3.3 are let n equal, the downlink communication parameter that each stage obtains is received signal strength and reception signal Quality.If the latent period in first judgement stage is T1, the latent period in second judgement stage is T2.If three judgement ranks The phase threshold of section is followed successively by a1, a2 and a3, and a1<a2<a3;If the first two judgement the stage handoff threshold value be followed successively by a11, A21, and a11<A1, a21<a2.Now a kind of specific processor processing procedure is:
Processor 61 obtains A1, A2 and A3 received signal strength, is designated as G1, G2 and G3 respectively;Obtain A1 simultaneously, A2 and A3 received signal quality, is designated as M1, M2 and M3 respectively.Two of received signal strength between calculating A1, A2 and A3 respectively two-by-two Two difference g1=∣ G1-G2 ∣, g2=∣ G1-G3 ∣ and g3=∣ G2-G3 ∣;And the m1=∣ of the difference two-by-two M1- of received signal quality M2 ∣, m2=∣ M1-M3 ∣ and m3=∣ M2-M3 ∣.Handle, marked by dimension is carried out to g1, g2, g3, m1, m2 and m3 respectively Quasi- difference g11、g21、g31、m11、m21And m31.Calculate the mean difference a between A1 and A2 respectively againA1A2=(g11+m11)/2, aA1A3 =(g21+m21)/2, aA2A3=(g31+m31)/2.By foregoing three mean difference aA1A2, aA1A3, aA2A3Respectively compared with a1, If at least one mean difference be present is more than a1, that is, judge to need to carry out antenna switching;Otherwise by mean difference aA1A2, aA1A3, aA2A3Respectively compared with a11, if at least one mean difference be present is more than a11, that is, after waiting T1 durations, sentence into second The certainly stage.Otherwise judge to switch without antenna.
Into after the second judgement stage, processor 61 reacquires A1, A2 and A3 received signal strength and reception signal Quality, repeat said process.In the said process repeated, three mean differences can with compared with a2, exist respectively to When a few mean difference is more than a2, that is, judge to need to carry out antenna switching;Otherwise three mean differences are carried out with a21 respectively Compare, if at least one mean difference be present is more than a21, that is, after waiting T1 durations, into the 3rd judgement stage.Otherwise judge not Carry out antenna switching.
Into after the 3rd judgement stage, processor 61 reacquires A1, A2 and A3 received signal strength and reception signal Quality, repeat said process.In the said process repeated, three mean differences can with compared with a3, exist respectively to When a few mean difference is more than a3, that is, judge to need to carry out antenna switching;Otherwise judge to switch without antenna.
The multi-antenna terminal that the present embodiment provides, by setting multiple judgement stages, is commented to carry out classification to antenna performance Estimate, directly carry out antenna switching when two antenna performance gaps of presence are especially big so as to realize, two antenna performances be present Judged again into next judgement stage when gap is bigger, simultaneously for any two antenna performance gaps it is smaller when Directly judge that antenna switching need not be carried out.Assessment so for each antenna overall performance within one period is more objective See, ensure correctness, the reliability and stability of judged result, and then ensure that multi-antenna terminal possesses reliable and stable radio frequency Can, lift Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of antenna switching method, it is characterised in that the antenna switching method is applied to multi-antenna terminal, the multiple antennas Terminal includes main transmitting-receiving path, auxiliary receiving path and at least three antennas;In at least three antennas currently with the master Receive and dispatch communication for primary antenna, currently connected with the auxiliary receiving path supplemented by antenna, remaining is spare antenna;Institute Stating antenna switching method includes:
The advanced judgement of condition for including N number of judgement stage, institute are carried out to the downlink communication parameter of each antenna of the multi-antenna terminal The performance of each antenna of the multi-antenna terminal can be characterized by stating downlink communication parameter, and the N is more than or equal to 2, the judgement stage Including:Obtain the downlink communication parameter of each antenna of the multi-antenna terminal;The downlink communication ginseng of at least three antennas described in calculating Several differences two-by-two;Each difference two-by-two is compared with the phase threshold in the judgement stage;Determine that comparative result is expired Corresponding to the foot presently described judgement stage during direct switching condition, directly judge to need to carry out antenna switching;Otherwise, it is determined whether Need to enter next judgement stage;If so, then enter next judgement stage;If it is not, then judge that antenna switching need not be carried out;Its In, the downlink communication parameter that each judgement stage gets is identical;
When it is determined that needing to carry out antenna switching, at least three antennas and the main transmitting-receiving path, auxiliary reception are redefined Connected relation between path is so as to selecting new primary antenna, auxiliary antenna and spare antenna.
2. antenna switching method as claimed in claim 1, it is characterised in that after a judgement stage in the presence of judgement, enter Also include before next judgement stage:Into the latent period in presently described judgement stage.
3. antenna switching method as claimed in claim 2, it is characterised in that the phase threshold in N number of judgement stage is equal, And the latent period in each judgement stage is equal;
Or,
The phase threshold in N number of judgement stage is equal, and the latent period in each judgement stage is unequal;
Or,
Phase threshold in N number of judgement stage in the leading decision stage is more than the phase threshold in the rear judgement stage, and each institute The latent period for stating the judgement stage is equal;
Or,
Phase threshold in N number of judgement stage in the leading decision stage is more than the phase threshold in the rear judgement stage, and each institute The latent period for stating the judgement stage is unequal.
4. antenna switching method as claimed in claim 1, it is characterised in that described to judge whether to need to enter next judgement rank Section;If so, then enter next judgement stage;If it is not, then judge that need not carry out antenna switching includes:
Judge whether next judgement stage;If so, then enter next judgement stage;If it is not, then judge that day need not be carried out Line switches.
5. antenna switching method as claimed in claim 4, it is characterised in that judge whether next judgement stage it Afterwards, in addition to:
The difference two-by-two of downlink communication parameter handoff threshold value corresponding with default presently described judgement stage is carried out Compare;
When determining that comparative result meets next judgement stage entry condition corresponding to the presently described judgement stage, into next judgement Stage;Otherwise, directly judge that antenna switching need not be carried out.
6. the antenna switching method as described in claim any one of 1-5, it is characterised in that the downlink communication parameter includes connecing Receive at least one of signal intensity, received signal quality, received signal power, bit error rate.
7. antenna switching method as claimed in claim 6, it is characterised in that it is strong that the downlink communication parameter includes reception signal In degree, received signal quality, received signal power, the bit error rate at least two when:
The difference two-by-two of the descending messaging parameter of at least three antennas includes described in the calculating:At least three antennas described in calculating Between same downlink communication parameter difference two-by-two;
It is described by each difference two-by-two with the phase threshold in the judgement stage be compared including:
For a certain downlink communication parameter, by each difference two-by-two corresponding to the downlink communication parameter and the phase threshold Described in the decision threshold of downlink communication parameter be compared;Appointing in each difference two-by-two of the downlink communication parameter The number that meaning one is more than in the decision threshold, or each difference two-by-two more than the decision threshold reaches default ratio When, judge that the downlink communication parameter meets into order conditions;The number for judging to reach into the downlink communication parameter of order conditions again is It is no to reach predetermined number, if so, really judging to meet direct switching condition corresponding to the presently described judgement stage;
Or,
For certain two antenna, the mean difference between each difference two-by-two is calculated;By each antenna two-by-two between mean difference Compared with the phase threshold in the judgement stage, when any one in each mean difference is more than the judgement stage Phase threshold, or when the ratio of phase threshold that each mean difference is more than the judgement stage reaches preset ratio, Judgement meets direct switching condition corresponding to the judgement stage.
8. antenna switching method as claimed in claim 6, it is characterised in that it is described redefine at least three antennas with Connected relation between the main transmitting-receiving path, auxiliary receiving path includes:
A piece antenna of best performance and the main transmitting-receiving communication, selectivity are selected according to the messaging parameter of each antenna A piece antenna of energy suboptimum connects with the auxiliary receiving path.
9. a kind of multi-antenna terminal, it is characterised in that the multi-antenna terminal includes main transmitting-receiving path, auxiliary receiving path and extremely Few three antennas;In at least three antennas currently with it is described it is main transmitting-receiving communication be primary antenna, currently with it is described auxiliary Antenna supplemented by receiving path connection, remaining is spare antenna;The multi-antenna terminal also includes processor, memory and led to Believe bus;
The communication bus is used to realize the connection communication between the processor and memory;
The processor is used to perform one or more program stored in the memory, to realize such as claim 1-8 The step of described antenna switching method.
A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be by one or more computing devices, to realize as in claim 1-8 The step of antenna switching method described in any one.
CN201710765584.5A 2017-08-30 2017-08-30 Antenna switching method, multi-antenna terminal and computer readable storage medium Active CN107592132B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107592132A true CN107592132A (en) 2018-01-16
CN107592132B CN107592132B (en) 2020-12-04

Family

ID=61050258

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN107592132B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108321524A (en) * 2018-01-19 2018-07-24 广东欧珀移动通信有限公司 Antenna module, electronic equipment and antenna switching method
CN108462522A (en) * 2018-03-13 2018-08-28 广东欧珀移动通信有限公司 Method of controlling antenna, antenna module, electronic equipment and storage medium
WO2019141000A1 (en) * 2018-01-19 2019-07-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Antenna assembly, electronic device and method for switching antenna

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797726A (en) * 2011-08-01 2014-05-14 苹果公司 Antenna switching system with adaptive switching criteria
CN106129641A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of changing method of antenna structure, mobile terminal and antenna mode
CN106229683A (en) * 2016-09-12 2016-12-14 广东欧珀移动通信有限公司 The changing method of WIFI antenna and device
CN106253941A (en) * 2015-06-10 2016-12-21 三星电子株式会社 Electronic equipment and method of controlling antenna thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797726A (en) * 2011-08-01 2014-05-14 苹果公司 Antenna switching system with adaptive switching criteria
CN106253941A (en) * 2015-06-10 2016-12-21 三星电子株式会社 Electronic equipment and method of controlling antenna thereof
CN106129641A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of changing method of antenna structure, mobile terminal and antenna mode
CN106229683A (en) * 2016-09-12 2016-12-14 广东欧珀移动通信有限公司 The changing method of WIFI antenna and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108321524A (en) * 2018-01-19 2018-07-24 广东欧珀移动通信有限公司 Antenna module, electronic equipment and antenna switching method
WO2019141000A1 (en) * 2018-01-19 2019-07-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Antenna assembly, electronic device and method for switching antenna
CN108321524B (en) * 2018-01-19 2020-08-04 Oppo广东移动通信有限公司 Antenna assembly, electronic equipment and antenna switching method
US10749245B2 (en) 2018-01-19 2020-08-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Antenna assembly, electronic device and method for switching antenna
CN108462522A (en) * 2018-03-13 2018-08-28 广东欧珀移动通信有限公司 Method of controlling antenna, antenna module, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107592132B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN107465428A (en) Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107666345A (en) A kind of antenna switching method, multi-antenna terminal and computer-readable recording medium
CN107623543A (en) A kind of antenna switching method, terminal and computer-readable recording medium
CN107483075A (en) A kind of antenna switching method, terminal and computer-readable recording medium
CN107769833A (en) A kind of antenna switching method, terminal and computer-readable recording medium
CN107707280A (en) Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107592133A (en) A kind of antenna switch triggering method, communication terminal and computer-readable storage medium
CN107682038A (en) A kind of antenna switching method, multi-antenna terminal and computer-readable recording medium
CN107612581A (en) Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107483093A (en) A kind of antenna switch triggering method, communication terminal and computer-readable storage medium
CN107613103A (en) A kind of multiple antennas polling method, communication terminal and computer-readable recording medium
CN107453766A (en) Antenna switching control method, multi-antenna terminal and computer-readable recording medium
CN107453767A (en) A kind of antenna switching method, communication terminal and computer-readable recording medium
CN107465439A (en) Trigger method, multi-antenna terminal and the computer-readable recording medium of antenna switching
CN107733509A (en) A kind of antenna switch triggering method, communication terminal and computer-readable storage medium
CN107508627A (en) Antenna switch triggering method, multi-antenna terminal and computer-readable recording medium
CN107666344A (en) Multiple antennas control method, multi-antenna terminal and computer-readable recording medium
CN107645313A (en) Antenna switching method, multi-antenna terminal and computer-readable recording medium
CN107682035A (en) Antenna switching method, multi-antenna terminal and computer-readable recording medium
CN107801201A (en) Network recovery method and device
CN107465445A (en) A kind of method, communication terminal and computer-readable recording medium for switching antenna
CN107592132A (en) A kind of antenna switching method, multi-antenna terminal and computer-readable recording medium
CN107580123A (en) Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107645325A (en) Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107659344A (en) Antenna handover trigger control method, communication terminal and computer-readable storage medium

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