CN108282192A - A kind of antenna switching control method, communication terminal and computer readable storage medium - Google Patents

A kind of antenna switching control method, communication terminal and computer readable storage medium Download PDF

Info

Publication number
CN108282192A
CN108282192A CN201711316193.1A CN201711316193A CN108282192A CN 108282192 A CN108282192 A CN 108282192A CN 201711316193 A CN201711316193 A CN 201711316193A CN 108282192 A CN108282192 A CN 108282192A
Authority
CN
China
Prior art keywords
antenna
communication terminal
camera
primary
transmission power
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
CN201711316193.1A
Other languages
Chinese (zh)
Other versions
CN108282192B (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 CN201711316193.1A priority Critical patent/CN108282192B/en
Publication of CN108282192A publication Critical patent/CN108282192A/en
Application granted granted Critical
Publication of CN108282192B publication Critical patent/CN108282192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The invention discloses a kind of antenna switching control method, this method detect camera start when, judge first antenna currently whether be communication terminal primary antenna, when judging result be when, the second antenna is switched to the primary antenna of communication terminal.Solve the problems, such as that camera can not work normally caused by antenna transmission power is excessive in terminal in the prior art.The invention also discloses a kind of communication terminal and computer readable storage mediums, by implementing said program, when detecting that camera starts, the antenna that will be far from camera is set as primary antenna, reduce interference of the antenna to camera, meet actual demand, dramatically paid close attention to user experience, improves user satisfaction.

Description

A kind of antenna switching control method, communication terminal and computer readable storage medium
Technical field
The present invention relates to field of communication technology, more specifically to a kind of antenna switching control method, communication terminal and Computer readable storage medium.
Background technology
With the development of terminal technology, more and more comprehensive work(is provided for user's increasing demand in communication terminal While energy, the circuit composition and scale of terminal inner also become increasingly complex, this proposes the design of antenna for mobile phone higher It is required that.
Currently, the communication terminal with camera is typically provided with two groups of antennas, one group is arranged the top half in terminal, It is referred to as antenna, one group is arranged in the bottom of terminal, is referred to as lower antenna.When being communicated, terminal can both incite somebody to action Upper antenna, and can be using lower antenna as primary antenna receiving and transmitting signal as primary antenna receiving and transmitting signal, also, primary antenna can be upper Free switching between antenna and lower antenna can be automatically by lower antenna that is, when the ability that upper antenna receives signal is weaker than lower antenna It is switched to primary antenna, when the ability that lower antenna receives signal is weaker than antenna, can upper antenna be switched to primary antenna automatically.
In actual use, the antenna efficiency below mobile phone is may be such that due to factors such as the holding modes of user It reduces, the intensity of handset emissions signal greatly reduces, or even goes offline, and thus needs primary antenna being switched to above mobile phone, make Emit signal with antenna, but when primary antenna is switched to upper antenna, often brings many problems.Wherein, most easily occur Be exactly that can be done by the strong signal that upper antenna generates with the close camera of upper antenna distance when upper antenna transmission power is excessive It disturbs, camera image degradation is caused even can not normally to start.Thus, now there is an urgent need for proposing a kind of antenna switching scheme, To solve the problems, such as that camera can not work normally caused by antenna transmission power is excessive in terminal, promote user's Experience.
Invention content
The technical problem to be solved in the present invention be in the prior art because in terminal antenna transmission power it is excessive caused by Camera can not work normally, and user experience is low, for the technical problem, provide a kind of antenna switching control method, communication eventually End and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of antenna switching control method, the antenna switching control side Method includes:
When detecting that the camera starts, judge the first antenna currently whether be the communication terminal main day Line;
When the determination result is yes, second antenna is switched to the primary antenna of the communication terminal.
Optionally, the communication terminal further includes main transmitting-receiving access and auxiliary receiving path, currently with the main transmitting-receiving access Connection be primary antenna, be currently connected to the auxiliary receiving path supplemented by antenna;Second antenna is switched to described logical Believe that the primary antenna of terminal includes:
The first antenna and the main transmitting-receiving access are disconnected, second antenna is connected to the main transmitting-receiving access, And it is off-state to be connected to or keep the first antenna with the auxiliary receiving path by the first antenna.
Optionally, whether described to judge the first antenna currently be that the primary antenna of the communication terminal includes:
Obtain the second transmission power of the first current transmission power level of the first antenna and second antenna currently Value;
Judge whether first transmission power level is more than second transmission power level, if so, judging described first day Line is the primary antenna of the communication terminal.
Optionally, whether described to judge the first antenna currently be that the primary antenna of the communication terminal includes:
Obtain the first current transmission power level of the first antenna;
First transmission power level is compared with default primary antenna transmission power threshold value, when comparison result is described When first transmission power level is more than default primary antenna transmission power threshold value, judge that the first antenna is the master of the communication terminal Antenna.
Optionally, whether described to judge the first antenna currently be that the primary antenna of the communication terminal includes:
Judge whether the first antenna is currently connected to the main transmitting-receiving access, if so, then judging the first antenna For the primary antenna of the communication terminal.
Optionally, after the step of second antenna being switched to the primary antenna of the communication terminal, further include:
The antenna triggered because the performance for detecting the first antenna is better than the performance of second antenna is received to cut When changing notice, judge whether the camera closes, if not, not executing antenna switching.
Optionally, after the step of second antenna being switched to the primary antenna of the communication terminal, further include:
When detecting that the camera is closed, judge currently whether need to carry out antenna switching, if so, by described first Antenna is switched to the primary antenna of the communication terminal.
Optionally, described to judge that currently whether needing to carry out antenna switching includes:
The messaging parameter of first antenna and the second antenna current performance can be characterized by obtaining;
Judge whether the performance of first antenna is better than the performance of the second antenna according to the messaging parameter got;
It needs to carry out antenna switching if so, then assert.
Further, the present invention also provides a kind of communication terminal, the terminal includes that processor, memory and communication are total Line;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize described in any of the above-described Antenna switching control method the step of.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of antenna switching control method as described in any one of the above embodiments.
Advantageous effect
A kind of antenna switching control method of present invention offer, communication terminal and computer storage media, the wherein present invention carry The method of confession is applied to the communication terminal for including first antenna, the second antenna and camera, between first antenna and camera Distance be less than the distance between the second antenna and camera.Based on hardware architecture provided by the invention, camera is being detected When startup, judge whether first antenna is currently the primary antenna of communication terminal, and when the determination result is yes, the second antenna is cut It is changed to the primary antenna of communication terminal.Therefore, scheme provided by the present invention can will be far from taking the photograph when detecting that camera starts As the antenna of head is set as primary antenna, to reduce interference of the antenna to camera, avoid imaging caused by aerial signal is too strong The case where head can not work normally, the user experience is improved.
Description of the drawings
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware architecture diagram of Fig. 1 optional communication terminals of each embodiment one to realize the present invention;
The layout of a kind of Fig. 2 a optional antennas that each embodiment provides to realize the present invention and camera in terminal Schematic diagram;
The layout of a kind of Fig. 2 b optional antennas that each embodiment provides to realize the present invention and camera in terminal Schematic diagram;
The layout of a kind of Fig. 2 c optional antennas that each embodiment provides to realize the present invention and camera in terminal Schematic diagram;
Fig. 3 is the antenna switching control method basic flow chart that first embodiment of the invention provides;
Fig. 4 is the antenna switching control method refined flow chart that second embodiment of the invention provides;
Fig. 5 is that the second antenna that second embodiment of the invention provides determines method flow diagram;
Fig. 6 is the antenna switching method flow chart after the camera that second embodiment of the invention provides is closed;
Fig. 7 is the structural schematic diagram of terminal provided by the invention;
Fig. 8 is terminal hardware block diagram provided by the invention.
Specific implementation mode
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 subsequent description, using for indicating that the suffix of such as " module ", " component " or " unit " of element is only The explanation for being conducive to the present invention, itself does not have a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Term " first ", " second " in the present invention etc. can be used to describe herein each antenna, but these antenna not by These terms limit.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. are logical Believe the fixed terminals such as terminal, and number TV, desktop computer.
It will be illustrated by taking communication terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except 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, a kind of hardware architecture diagram of its communication terminal of each embodiment to realize the present invention, this is logical Believe that terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110, power supply 111 and antenna 112.Wherein, in the communication terminal 100 shown in Fig. 1 It is currently connected to the main transmitting-receiving access of radio frequency unit 101 including at least two antennas 112, in at least two groups antenna 112 and is Primary antenna, be currently connected to the auxiliary receiving path of radio frequency unit 101 supplemented by antenna, certainly, when communication terminal include at least three When group antenna, can also there be the antenna for being neither connected to and not being connected to auxiliary receiving path with main transmitting-receiving access, namely there can be sky Not busy antenna;Processor 110 can control break-make situation of each group of antenna respectively with main transmitting-receiving access and auxiliary receiving path, work as place When reason device 110 controls a certain group of antenna and be connected to main transmitting-receiving access, radio frequency unit 101 can pass through this group of antenna reception or transmission letter Number, it should be appreciated that at least two groups antenna 112 can be flexibly arranged on any position of communication terminal 100, than Such as, when on communication terminal 100 including three groups of antennas 112, this three groups of antennas 112 can be separately positioned on the back of the body of communication terminal 100 Top, lower left and the lower right in face.Those skilled in the art are further appreciated that communication terminal structure is simultaneously shown in Fig. 1 The restriction to communication terminal is not constituted, and communication terminal may include than illustrating more or fewer components, or the certain portions of combination Part or different components arrangement.
The all parts of communication 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, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless 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 (CodeDivision Multiple Access 2000, CDMA 2000), WCDMA (Wideband CodeDivision Multiple Access, wideband code division multiple access), TD-SCDMA (TimeDivision-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex 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 communication terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for communication terminal, it completely can be according to need It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in communication terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or WiFi module 102 are received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 The relevant audio output of specific function executed with communication terminal 100 can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loud speaker, buzzer etc..
A/V input units 104 are for receiving audio or video signal.A/V input units 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent 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 (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Communication terminal 100 further 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 sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when communication terminal 100 is moved in one's ear Display panel 1061 and/or backlight.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with communication terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch 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 It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it 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, touch panel 1071 and display panel 1061 be to realize the function that outputs and inputs of communication terminal as two independent components, but in certain embodiments, can The function that outputs and inputs of communication terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with communication terminal 100 can by interface.Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area and storage data field, Wherein, storing program area can storage program area, application program (such as sound-playing function, figure needed at least one function As playing function etc.) etc.;Storage data field can be stored uses created data (such as audio data, phone according to mobile phone This etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of communication terminal, utilizes each of various interfaces and the entire communication terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of communication terminal, to carry out integral monitoring to communication terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Communication terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, communication terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, below to the position cloth of antenna and camera in communication terminal of the present invention Office illustrates.
It please refers to Fig. 2 a- Fig. 2 c, Fig. 2 a- Fig. 2 c and realizes the optional antenna of each embodiment one of the present invention and camera In the schematic layout pattern of terminal.
Specifically, the position of the antenna of communication terminal of the present invention and camera can be arbitrarily arranged, for example, when communication is whole When end only includes two groups of antennas, this facilities of two groups of antennas on communication terminals may refer to shown in Fig. 2 a, camera 200a is arranged on the upper left side of terminal, is first antenna 201a recently apart from camera 200a, and first antenna default setting exists The top at the communication terminal back side, the second antenna 202a default settings are of coursed in the lower section at the communication terminal back side, the second antenna Medium position or left and right side at the communication terminal back side can be set;When communication terminal includes three groups of antennas, figure may refer to 2b, Fig. 2 b are communication terminal one optional schematic layout pattern when including three groups of antennas, camera 200b is arranged in the upper of terminal Side, is recently first antenna 201b apart from camera 200b, remaining two groups of antennas 202b and 203b are separately positioned on terminal Lower left and lower right.When communication terminal includes three groups or more antennas, can include for communication terminal refering to Fig. 2 c, Fig. 2 c One optional schematic layout pattern when four groups of antennas, camera 200c is arranged in the top of terminal, nearest apart from camera 200c Be first antenna 201c, excess-three group antenna 202c 203c and 204c be separately positioned on the lower left of terminal, lower right with And left side.It is understood that the position setting of the antenna and camera of communication terminal of the present invention is including but not limited to above-mentioned The set-up mode referred to.
Schematic layout pattern based on above-mentioned communication terminal hardware configuration and antenna in terminal and camera proposes the present invention The each embodiment of method.
First embodiment:
Camera can not work normally caused by antenna transmission power is excessive in terminal in order to solve in the prior art, The low problem of user experience, present embodiments provides a kind of antenna switching control method, this method be applied to include first antenna, The communication terminal of second antenna and camera, wherein the distance between first antenna and camera are less than the second antenna and camera shooting The distance between head;Specific antenna switching control method may refer to shown in Fig. 3, and Fig. 3 is that antenna provided in this embodiment is cut Control method basic flow chart is changed, this method includes:
S301, detect camera start when, judge first antenna currently whether be communication terminal primary antenna;
If so, executing S302;If it is not, then executing S303.
The communication terminal of the present embodiment includes first antenna, the second antenna and camera, wherein the first of communication terminal Antenna refers to that the antenna nearest apart from camera, the distance between first antenna and camera are less than the second antenna and camera The distance between.It is understood that the antenna provisioned in communication terminal includes but are not limited to first antenna, the second antenna, When communication terminal includes at least three groups of antennas, the second antenna can be any antenna in addition to first antenna, for example, when logical When believing that terminal includes three groups of antennas, the second antenna can be any antenna in two groups of antennas in addition to first antenna.
It should be noted that communication terminal further includes main transmitting-receiving access and auxiliary receiving path, currently connect with main transmitting-receiving access Logical antenna is primary antenna, is mainly used for reception and emits signal, and antenna supplemented by the antenna being currently connected to auxiliary receiving path is main It is used for further auxiliary reception signal.Certainly, when communication terminal include at least three groups of antennas when, also can exist neither with main receipts The antenna that hair access connection is not connected to again with auxiliary receiving path, that is to say spare antenna, spare antenna is primarily as spare day Line is used in the current receiving and transmitting signal poor quality of communication terminal, so that communication terminal switches it to be in working condition, for example, Spare antenna is connected to by selection with main transmitting-receiving access, or is connected to auxiliary receiving path.
In the present embodiment, the mode whether detection camera starts can be following two:The first, by detecting whether The camera enabled instruction that user issues is received to judge whether camera starts;Second, when being started by detecting camera Judge whether camera is in starting state to the status signal of terminal handler transmission.It is understood that detection is taken the photograph As the mode whether head starts is not limited to above two, other modes judgement may be used, be not specifically limited herein.
In the present embodiment, whether when detecting that camera starts, it is communication terminal that can judge first antenna currently Primary antenna, it is specific to judge to can include but is not limited to realize by following three kinds of modes:
Mode one:Obtain the second transmission power of the first current transmission power level of first antenna and the second antenna currently Value, judges whether the first transmission power level is more than the second transmission power level, if so, then judging first antenna for the master of communication terminal Antenna.
Mode two:The first current transmission power level of first antenna is obtained, by the first transmission power level and default primary antenna Transmission power threshold value is compared, when comparison result is that the first transmission power level is more than default primary antenna transmission power threshold value, Then judge first antenna for the primary antenna of communication terminal.It is appreciated that yes primary antenna transmission power threshold value refers to primary antenna Minimum emissive power value under working condition, and terminal primary antenna transmission power threshold value can be by Terminal Design personnel according to warp It tests and carries out free setting.
It of courses, when communication terminal only includes first antenna and second two groups of antennas of antenna, can also obtain second day The second current transmission power level of line, and the second transmission power level is compared with default primary antenna transmission power threshold value, when When comparison result is that the second transmission power level is less than default primary antenna transmission power threshold value, then judge first antenna for communication terminal Primary antenna.
Mode three:Judge whether first antenna is currently connected to main transmitting-receiving access, if so, judgement first antenna is communication The primary antenna of terminal.
S302, the primary antenna that the second antenna is switched to communication terminal;
In the present embodiment, when determining that first antenna is primary antenna according to judging result, antenna switching will be carried out, by the Two antennas are switched to the primary antenna of communication terminal.It is understood that the second antenna is switched to the primary antenna of communication terminal Detailed process can be:After disconnecting first antenna and main transmitting-receiving access, the second antenna is connected to main transmitting-receiving access, and will First antenna is connected to auxiliary receiving path;It that is to say, the second antenna is switched to the primary antenna of communication terminal, first antenna is made For the auxiliary antenna of communication terminal.It should be noted that the primary antenna of communication terminal is responsible for sending and receiving for radiofrequency signal, and it is auxiliary Antenna is served only for receiving transmission of the radiofrequency signal without radiofrequency signal.
In some embodiments, the process that the second antenna is switched to the primary antenna of communication terminal can also be:By first Antenna is disconnected with main transmitting-receiving access, and the second antenna is connected to main transmitting-receiving access, and it is off-state to keep first antenna;Namely It is that the second antenna is switched to the primary antenna of communication terminal, first antenna is forbidden to work.
Since under normal scene, antenna switching is the quality variation according to antenna performance and triggers, then, second Antenna be switched to the primary antenna of communication terminal and camera still in normal use during, in fact it could happen that the property of first antenna The case where capable of being better than the performance of the second antenna, still, if first antenna, which is switched to primary antenna, at this time can influence camera just It is often used.So needing to shield all antenna switching notices during camera use, the second antenna is locked as main day Line.It, can be with after the step of the second antenna is switched to the primary antenna of communication terminal it is understood that in the present embodiment Carry out following steps:Receiving the antenna switching triggered because the performance for detecting first antenna is better than the performance of the second antenna When notice, judge whether camera closes, in judgement when preceding camera is not turned off, shield the antenna switching notice received, Antenna switching is not executed;If judging result is turned off for camera at this time, day is carried out according to the antenna switching notice received Line switches.
It, can be with it can also be appreciated that after the step of the second antenna is switched to the primary antenna of communication terminal Carry out following steps:The working condition for detecting camera judges currently whether need to carry out day when detecting that camera is closed Line switches, if so, then carrying out antenna switching.It should be noted that judging that it can obtain currently whether to need to carry out antenna switching The messaging parameter of communication terminal each group antenna current performance can be characterized by taking, and according to the messaging parameter of each group antenna got Judge whether the second antenna is one group of antenna of best performance, if so, antenna need not be carried out, needs to carry out if otherwise assert Antenna switches.Meanwhile the process for carrying out antenna switching can be the messaging parameter selection performance according to each group antenna got One group of optimal antenna is as primary antenna.
It should be understood that characterization communication terminal antenna performance messaging parameter can there are many, messaging parameter can be The property parameters of antenna itself, which can also be arbitrary other, can characterize the parameter of antenna performance, for example, characterizing antenna acceptance Received signal strength, received signal quality and the received signal power of energy, the bit error rate of characterization antenna transmitting-receiving accurate performance, table Levy transmitting signal power and the maximum transmission power ratio value etc. of antenna emitting performance.
It of courses, the messaging parameter that acquisition can characterize communication terminal each group antenna current performance can be divided into following two Kind:The first, obtains a messaging parameter that can characterize communication terminal antenna current performance, it is to be understood that this is logical Letter parameter can be the messaging parameter for the performance for characterizing primary antenna, can also be the messaging parameter for the performance for characterizing auxiliary antenna;The Two kinds, obtain multiple messaging parameters that can characterize communication terminal antenna current performance, it should be appreciated that this multiple communication ginseng Number can be the messaging parameter for the performance for characterizing primary antenna entirely, can also be the messaging parameter for the performance for characterizing auxiliary antenna entirely, also It can be the messaging parameter of the messaging parameter and the performance for characterizing auxiliary antenna of the performance for including simultaneously characterization primary antenna.
In some examples of the present embodiment, communication terminal only includes two groups of antennas of first antenna and the second antenna, when When the second antenna being switched to after the primary antenna of communication terminal and detecting that camera is closed, can obtain can characterize first The messaging parameter of antenna and the second antenna current performance, and judge that the performance of first antenna is according to the messaging parameter got The no performance for being better than the second antenna, and when the performance for determining first antenna is better than the performance of the second antenna, judge current need Antenna switching is carried out, first antenna is directly switched to the primary antenna of communication terminal.
In other examples of the present embodiment, communication terminal includes at least three groups of antennas, is switched to when by the second antenna After the primary antenna of communication terminal and when detecting that camera is closed, can obtain can characterize the logical of each group antenna current performance Believe parameter, and judge whether the performance of the second antenna is better than remaining each group antenna according to the messaging parameter got, if so, nothing Antenna switching need to be carried out, is otherwise selected one group of antenna of best performance as primary antenna, selection according to the messaging parameter got One group of antenna of performance suboptimum is as auxiliary antenna.
S303, without carrying out antenna switching.
In the present embodiment, when detecting that camera starts but first antenna is currently not the primary antenna of communication terminal, Then judgement is without carrying out antenna switching.
It should be understood that each step of antenna switching control method provided in this embodiment can be by as shown in Figure 1 Terminal 100 independently realize, specifically, can pass through the storage in the memory 109 of terminal 100 realizes above-mentioned each step One or more programs, by processor 110 execute the program, to realize above-mentioned each step.
Antenna switching control method provided in this embodiment judges that first antenna is current when detecting that camera starts Whether it is the primary antenna of communication terminal, and when the determination result is yes, the second antenna is switched to the primary antenna of communication terminal.Cause This, in the present embodiment, the antenna that communication terminal can will be far from camera when detecting that camera starts is set as primary antenna, To reduce interference of the antenna to camera, the case where camera can not work normally caused by aerial signal is too strong is avoided, is carried Rise user experience.
In addition, communication terminal after detecting that camera is closed, can obtain the messaging parameter of characterization antenna performance to each day It can linearly be assessed, determine whether to need to carry out antenna switching, and when needing to carry out antenna switching, select performance most Excellent antenna has farthest paid close attention to user experience as primary antenna, improves user satisfaction.
Second embodiment:
In order to better understand the present invention, the present embodiment is illustrated in conjunction with more specifical example, refers to Fig. 4 institutes Show, Fig. 4 is the antenna switching control method refined flow chart that second embodiment of the invention provides, the antenna switching control method packet It includes:
S401, when camera starts, obtain the first current transmission power level of first antenna and the second antenna be current Second transmission power level;
In the present embodiment, the mode whether detection camera starts can be following two:The first, by detecting whether The camera enabled instruction that user issues is received to judge whether camera starts;Second, when being started by detecting camera Judge whether camera is in starting state to the status signal of terminal handler transmission.It is understood that detection is taken the photograph As the mode whether head starts is not limited to above two, other modes judgement may be used, be not specifically limited herein.
It should be understood that the first transmission power level and the second transmission power level that get can characterize first antenna with And the second current work role of antenna, it that is to say, can characterize whether the antenna currently works as primary antenna.
It is noted that when communication terminal only include first antenna, second two groups of antennas of antenna when, get second Transmission power uniquely determines, still, when communication terminal includes at least three groups of antennas, the second of the second antenna got Transmission power level can be the transmission power level of any antenna in addition to first antenna in communication terminal.
S402, judge whether the first transmission power level is more than the second transmission power level;
If so, executing S403;If otherwise executing S404.
In the present embodiment, since the primary antenna of communication terminal is responsible for sending and receiving for radiofrequency signal, auxiliary antenna is only used In transmission of the reception radiofrequency signal without radiofrequency signal, then, by the first transmission power level and the second transmission power The role that relatively can determine that first antenna of value, when the first transmission power level is more than the second transmission power level, specifically, When the first transmission power level is nonzero value, and the second transmission power level is zero, then it is primary antenna to assert first antenna currently;If Judging result is that the first transmission power level is less than the second transmission power level, then it is not primary antenna to assert first antenna currently.
It is understood that when communication terminal includes at least three groups of antennas, if first antenna is primary antenna, then first The transmission power level of antenna is more than the transmission power level of any antenna in addition to first antenna in communication terminal.
S403, the primary antenna that the second antenna is switched to communication terminal;
It in the present embodiment, can be by the second antenna when being currently primary antenna according to judging result identification first antenna It is cut to primary antenna.It is understood that the second antenna is switched to the process of the primary antenna of communication terminal to be:By first After antenna is disconnected with main transmitting-receiving access, the second antenna is connected to main transmitting-receiving access, and first antenna and auxiliary receiving path are connected It is logical;It that is to say, the second antenna is switched to the primary antenna of communication terminal, using first antenna as the auxiliary antenna of communication terminal.It answers When explanation, the primary antenna of communication terminal is responsible for sending and receiving for radiofrequency signal, and auxiliary antenna is served only for receiving radio frequency letter Transmission number without radiofrequency signal.
In some embodiments, the process that the second antenna is switched to the primary antenna of communication terminal can also be:By first Antenna is disconnected with main transmitting-receiving access, and the second antenna is connected to main transmitting-receiving access, and it is off-state to keep first antenna;Namely It is that the second antenna is switched to the primary antenna of communication terminal, first antenna is forbidden to work.
It is noted that when communication terminal only includes first antenna, second two groups of antennas of antenna, it can be directly by the Two antennas are switched to primary antenna;But when communication terminal includes at least three groups of antennas, since the second antenna can remove first Any antenna other than antenna, thus, it, can be to each in addition to first antenna before the second antenna is switched to primary antenna Group antenna carries out primary screening, redefines out the second antenna, specifically may refer to Fig. 5, and Fig. 5 is what second embodiment provided Second antenna determines method refined flow chart, and steps are as follows:
S501, the messaging parameter for obtaining remaining each group antenna;
It is understood that the messaging parameter got is the parameter that can characterize antenna performance, which can be day The property parameters of line itself, which can also be arbitrary other, can characterize the parameter of antenna performance, for example, characterizing antenna receptivity Received signal strength, received signal quality and received signal power, the bit error rate of characterization antenna transmitting-receiving accurate performance, characterize day The transmitting signal power of line emitting performance and maximum transmission power ratio value etc..
It should be noted that the messaging parameter that acquisition can characterize communication terminal each group antenna current performance can be obtained One messaging parameter that can characterize communication terminal antenna current performance, it is to be understood that this messaging parameter can be table It levies the messaging parameter of the performance of primary antenna or characterizes the messaging parameter of the performance of auxiliary antenna;Certainly, acquisition can characterize logical The messaging parameter of letter terminal each group antenna current performance, which can also be that acquisition is a variety of, can characterize communication terminal antenna current performance Messaging parameter, it should be appreciated that this multiple messaging parameter can be entirely characterize primary antenna performance messaging parameter, or The messaging parameter for the performance for characterizing auxiliary antenna entirely, or simultaneously include characterization primary antenna performance messaging parameter and characterize it is auxiliary The messaging parameter of the performance of antenna.
S502, select one group of antenna of best performance as the second antenna according to the messaging parameter got.
The performance of remaining each group antenna is assessed according to the one or more messaging parameters got, picks out transmitting-receiving One group of best antenna of signal performance is as the second antenna.
S404, without carrying out antenna switching.
In the present embodiment, when according to judging result determine first antenna not be primary antenna when, without carrying out antenna switching; When testing result determine camera be turned off but according to judging result determination need not carry out antenna switching when, without carrying out antenna Switching.
Whether S405, detection camera close;
If so, executing S406;If it is not, then executing S408;
It should be noted that in the present embodiment, detecting that the step for whether camera closes is determining camera unlatching Just detection in real time afterwards, it is to be understood that during camera works, when receiving antenna switching notice but according to detection Result judgement shields the antenna switching notice received, without carrying out antenna switching when preceding camera is not turned off;If sentencing at this time Disconnected result is turned off for camera, then will carry out antenna switching according to the antenna switching notice received.
S406, judge whether to need to carry out antenna switching;
If so, executing S407;If it is not, then executing S404.
In the present embodiment, it when detecting that camera is closed, needs further to judge currently whether to need to carry out antenna Switching, if so, then carrying out antenna switching;If it is not, being then not necessarily to carry out antenna switching.It should be noted that further judging current Whether needing the process for carrying out antenna switching can be:The communication ginseng of communication terminal each group antenna current performance can be characterized by obtaining Number, according to the messaging parameter of each group antenna got judge the second antenna whether be best performance one group of antenna, if so, Antenna need not be carried out, needs to carry out antenna switching if otherwise assert.It of courses, it, can when identification needs to carry out antenna switching To select one group of antenna of best performance according to the messaging parameter of each group antenna got as primary antenna.
In some examples of the present embodiment, communication terminal only includes two groups of antennas of first antenna and the second antenna, when When the second antenna being switched to after the primary antenna of communication terminal and detecting that camera is closed, can obtain can characterize first The messaging parameter of antenna and the second antenna current performance, and judge that the performance of first antenna is according to the messaging parameter got The no performance for being better than the second antenna, and when the performance for determining first antenna is better than the performance of the second antenna, judge current need Antenna switching is carried out, first antenna is directly switched to the primary antenna of communication terminal.
In other examples of the present embodiment, communication terminal includes at least three groups of antennas, is switched to when by the second antenna After the primary antenna of communication terminal and when detecting that camera is closed, can obtain can characterize the logical of each group antenna current performance Believe parameter, and judge whether the performance of the second antenna is better than remaining each group antenna according to the messaging parameter got, if so, nothing Antenna switching need to be carried out, is otherwise selected one group of antenna of best performance as primary antenna, selection according to the messaging parameter got One group of antenna of performance suboptimum is as auxiliary antenna.
S407, antenna switching is carried out;
It is understood that in some examples of the present embodiment, communication terminal only includes first antenna and second day When two groups of antennas of line, when judging result is to need to carry out antenna switching, first antenna is directly switched to primary antenna.
In the present embodiment, communication terminal includes at least three groups of antennas, and acquisition can characterize each group antenna current performance Messaging parameter selects one group of antenna of best performance as primary antenna, selects performance suboptimum according to the messaging parameter got One group of antenna is as auxiliary antenna.
S408, all antenna switching notices of shielding.
Since under normal scene, antenna switching is the quality variation according to antenna performance and triggers, then, second Antenna be switched to the primary antenna of communication terminal and camera still in normal use during, in fact it could happen that the property of first antenna The case where capable of being better than the performance of the second antenna, still, if first antenna, which is switched to primary antenna, at this time can influence camera just It is often used.So during camera works, when receive antenna switching notice but according to testing result judgement when proactive When being not turned off as head, all antenna switching notices received are shielded, do not execute the switching command for including in antenna switching notice, It that is to say, the second antenna is locked as to the primary antenna of present terminal, switch without any antenna.
Example one:
In order to better understand the present invention, this example illustrates the antenna switching after detecting camera closing, has Body may refer to Fig. 6, and Fig. 6 is the antenna switching control method after the camera that second embodiment of the invention provides is closed, should Antenna switching control method includes:
S601, the mean receiving power value for obtaining current each group antenna in preset time;
It is understood that preset time can rule of thumb carry out free setting, average received by Terminal Design personnel Performance number is the average value of preset time internal antenna received power value, can characterize antenna in the inscribed receipts signal performance of preset time Quality.
S602, the mean receiving power value of each group antenna got is compared;
In some embodiments, the mean receiving power value of each group antenna got can be compared one by one, The mean receiving power value of each group antenna can be compared using differential technique.
S603, one group of best antenna of the inscribed receipts signal performance of the preset time is determined according to comparison result;
It can determine that the maximum one group of antenna of mean receiving power value, this group of antenna are to receive signal according to comparison result One group of best antenna of performance.
S604, one group of best antenna of performance is switched to primary antenna.
One group of best antenna of performance is connected to main transmitting-receiving access.
Antenna switching control method provided in this embodiment obtains first of first antenna currently when camera starts The second transmission power level of transmission power level and the second antenna currently, judges whether the first transmission power level is more than the second transmitting work( Rate value, and when the determination result is yes, the second antenna is switched to the primary antenna of communication terminal;Meanwhile terminal camera just Often during work, any switching antenna notice will be shielded, antenna switching is no longer carried out.Therefore, in the present embodiment, communicate The antenna that terminal can will be far from camera when detecting that camera starts is set as primary antenna and locks, until camera closes It closes, to reduce interference of the antenna to camera, avoids the case where camera can not work normally caused by aerial signal is too strong, Promote user experience.
In addition, communication terminal after detecting that camera is closed, can obtain the messaging parameter of characterization antenna performance to each day It can linearly be assessed, determine whether to need to carry out antenna switching, and when needing to carry out antenna switching, select performance most Excellent antenna has farthest paid close attention to user experience as primary antenna, improves user satisfaction.
3rd embodiment:
It is shown in Figure 7 the present embodiment provides a kind of communication terminal, including processor 701, memory 702, communication are always Line 703, communication unit 704 and antenna 705;Communication bus 703 is for realizing processor 701, memory 702 and communication unit Connection communication between 704;Communication unit 704 can be radio frequency communications unit (radio circuit), can also be other kinds of Communication unit comprising main transmitting-receiving access, auxiliary receiving path (access is not shown in figure), antenna 705 include at least two groups, this is extremely It is primary antenna to be currently connected to above-mentioned main transmitting-receiving access in few two groups of antennas, be currently connected to above-mentioned auxiliary receiving path supplemented by Antenna.Memory 702 for storing one or more programs, processor 701 for execute one stored in memory or Multiple programs, to realize each step of the antenna switching control method in above-mentioned first embodiment and second embodiment.
Terminal is illustrated with reference to a specific example:
Step 1:Processor 701 detects whether camera starts, and when camera starts, and it is current to obtain first antenna The first transmission power level and current the second transmission power level of the second antenna;
Step 2:Processor 701 judges whether the first transmission power level is more than the second transmission power level;If so then execute step Rapid three, if it is not, thening follow the steps four;
Step 3:Second antenna is switched to the primary antenna of communication terminal by processor 701;
It is understood that when communication terminal only includes first antenna, second two groups of antennas of antenna, it can be directly by the Two antennas are switched to primary antenna;But when communication terminal includes at least three groups of antennas, since the second antenna can remove first Any antenna other than antenna, thus, it, can be to each in addition to first antenna before the second antenna is switched to primary antenna Group antenna carries out primary screening, redefines out the second antenna, specific screening process can be:Obtain remaining each group antenna Messaging parameter selects one group of antenna of best performance as the second antenna according to the messaging parameter got.
Step 4:Without carrying out antenna switching;
When processor 701 according to judging result determine first antenna not be primary antenna when, without carrying out antenna switching;Work as place When reason device 701 detects that determining camera is not turned off, all switching antenna notices are shielded, without carrying out antenna switching;Work as place When reason device 701 determines that camera is turned off but need not carry out antenna switching according to judging result determination, cut without carrying out antenna It changes.
Step 5:Processor 701 detects whether camera closes;
It should be noted that processor 701 detects camera the step for whether closing after determining that camera is opened just In real time detection, that is to say, that in step 5 and step 1 obtain transmission power level process and step 2 between and be not present Sequential relationship.
It is understood that during camera works, when processor 701 receive antenna switching notice but according to Testing result judges when preceding camera is not turned off, and the antenna switching notice received is shielded, without carrying out antenna switching;If this When processor 701 judge that camera is turned off, be cut then processor 701 will carry out antenna according to the antenna switching notice that receives It changes.
Step 6:Processor 701 judge the second antenna whether be best performance one group of antenna;If so then execute step Four;Seven are thened follow the steps if not;
It is understood that judging that the second antenna whether be the process of one group of antenna of best performance can be processor 701 obtain the messaging parameter that can characterize communication terminal each group antenna current performance, and according to the logical of each group antenna got Letter parameter judge the second antenna whether be best performance one group of antenna.
Step 7:Processor 701 carries out antenna switching.
One group of antenna of best performance is connected to by processor 701 with main transmitting-receiving access.
It should be noted that the antenna switching method provided in above-mentioned first embodiment and second embodiment is mainly answered For at least having in the multi-antenna terminal of two antennas.In the present embodiment, shown in Figure 8, multi-antenna terminal includes extremely Few two antennas 811,812 ..., 81m, antenna gating circuit 82, radio circuit 83 and baseband processor 84, antenna gating Circuit 82 have n first interface 8211,8212 ..., 821n (n be typically greater than be equal to m positive integer), two second connect Mouth 8221,8222.Wherein, a second interface 8221 is connected to the 831 and 832 (TX in Fig. 8 with the main transmitting-receiving access of radio circuit And PRX), another second interface 8222 is connected to the auxiliary receiving path 833 (DRX in Fig. 8) of radio circuit, each first It is connected separately with an at least path switching circuit between interface and two second interfaces, has at least one on each path switching circuit Each antenna of a switch, the present embodiment is connect at least one first interface of antenna gating circuit.Baseband processor 84 Analog to digital conversion circuit 842 is received (in Fig. 8 including radio-frequency transmissions D/A converting circuit 841 (TX-DAC in Fig. 8), main collection PRX-ADC), diversity reception analog to digital conversion circuit 843 (DRX-ADC in Fig. 8), and with the radio-frequency transmissions D/A converting circuit 841, the modulation-demodulation circuit 844 that main collection reception analog to digital conversion circuit 842, diversity reception analog to digital conversion circuit 843 are separately connected (the MODEM PROC in Fig. 8), the main transmitting-receiving access 831 and 832 of radio circuit 83 respectively with the radio-frequency transmissions of baseband processor D/A converting circuit 841, main collection receive analog to digital conversion circuit 842 and correspond to connection, and auxiliary receiving path 833 turns with diversity reception modulus Change the connection of circuit 843.Baseband processor further includes antenna switching control module 845 and HAL interface modules 846, antenna switching control Molding block 845 is connected to by HAL interface modules 845 with antenna gating circuit 82, is switched by 846 antenna of HAL interface modules The break-make that control module 845 can control each path switching circuit in antenna gating circuit 82 (can control arbitrary one Connection between one interface and a second interface), and specific primary antenna, or selection are selected from more antennas based on this Specific primary antenna and auxiliary antenna combination.
It is understood that the antenna switching control module 845 in the present embodiment can be integrated in baseband processor 84, It can also be provided separately, such as be arranged in application processor with baseband processor 84, or be separately provided.
In addition, the present embodiment additionally provides a kind of computer readable storage medium, in the computer readable storage medium One or more computer programs are stored with, these computer programs read for processor, compile and execute, to realization pair The method flow answered.In the present embodiment, it is stored in computer readable storage medium and day in previous embodiment may be implemented The computer program of line method for handover control.
It should be noted that herein, the terms "include", "comprise" 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 include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, can 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 this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of antenna switching control method, which is characterized in that be applied to include first antenna, the second antenna and camera Communication terminal, the distance between the first antenna and the camera are less than between second antenna and the camera Distance, the antenna switching control method include the following steps:
When detecting that the camera starts, judge the first antenna currently whether be the communication terminal primary antenna;
When the determination result is yes, second antenna is switched to the primary antenna of the communication terminal.
2. antenna switching control method as described in claim 1, which is characterized in that the communication terminal further includes that main transmitting-receiving is logical Road and auxiliary receiving path, it is primary antenna to be currently connected to the main transmitting-receiving access, is currently connected to the auxiliary receiving path Supplemented by antenna;Include by the primary antenna that second antenna is switched to the communication terminal:
The first antenna and the main transmitting-receiving access are disconnected, second antenna is connected to the main transmitting-receiving access, and will It is off-state that the first antenna is connected to or keeps the first antenna with the auxiliary receiving path.
3. antenna switching control method as described in claim 1, which is characterized in that described to judge that the first antenna is currently The no primary antenna for the communication terminal includes:
Obtain the second transmission power level of the first current transmission power level of the first antenna and second antenna currently;
Judge whether first transmission power level is more than second transmission power level, if so, judging that the first antenna is The primary antenna of the communication terminal.
4. antenna switching control method as described in claim 1, which is characterized in that described to judge that the first antenna is currently The no primary antenna for the communication terminal includes:
Obtain the first current transmission power level of the first antenna;
First transmission power level is compared with default primary antenna transmission power threshold value, when comparison result is described first When transmission power level is more than default primary antenna transmission power threshold value, judge that the first antenna is the main day of the communication terminal Line.
5. antenna switching control method as claimed in claim 2, which is characterized in that described to judge that the first antenna is currently The no primary antenna for the communication terminal includes:
Judge whether the first antenna is currently connected to the main transmitting-receiving access, if so, then judging the first antenna for institute State the primary antenna of communication terminal.
6. antenna switching control method as described in any one in claim 1-5, which is characterized in that switch second antenna For the communication terminal primary antenna the step of after, further include:
It is logical to receive the antenna switching triggered because the performance for detecting the first antenna is better than the performance of second antenna When knowing, judge whether the camera closes, if not, not executing antenna switching.
7. antenna switching control method as described in any one in claim 1-5, which is characterized in that switch second antenna For the communication terminal primary antenna the step of after, further include:
When detecting that the camera is closed, judge currently whether need to carry out antenna switching, if so, by the first antenna It is switched to the primary antenna of the communication terminal.
8. antenna switching control method as claimed in claim 7, which is characterized in that whether the judgement currently needs to carry out day Line switches:
The messaging parameter of first antenna and the second antenna current performance can be characterized by obtaining;
Judge whether the performance of first antenna is better than the performance of the second antenna according to the messaging parameter got;
It needs to carry out antenna switching if so, then assert.
9. a kind of communication terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of antenna switching control method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in antenna switching control method the step of.
CN201711316193.1A 2017-12-12 2017-12-12 Antenna switching control method, communication terminal and computer readable storage medium Active CN108282192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711316193.1A CN108282192B (en) 2017-12-12 2017-12-12 Antenna switching control method, communication terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711316193.1A CN108282192B (en) 2017-12-12 2017-12-12 Antenna switching control method, communication terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108282192A true CN108282192A (en) 2018-07-13
CN108282192B CN108282192B (en) 2021-04-02

Family

ID=62801493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711316193.1A Active CN108282192B (en) 2017-12-12 2017-12-12 Antenna switching control method, communication terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108282192B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109348013A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Antenna transmission power adjustment method, device, mobile terminal and storage medium
CN109413637A (en) * 2018-11-23 2019-03-01 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant device
CN109450510A (en) * 2018-12-04 2019-03-08 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant apparatus
CN109639861A (en) * 2018-12-27 2019-04-16 维沃移动通信有限公司 A kind of cut-in method of matching network, system and mobile terminal
CN109639368A (en) * 2018-12-04 2019-04-16 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant apparatus
CN115276888A (en) * 2021-04-29 2022-11-01 北京小米移动软件有限公司 Method, device, terminal and storage medium for determining data transmission rate

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010233048A (en) * 2009-03-27 2010-10-14 Nec Corp Wireless communication apparatus and wireless communication method
CN105100308A (en) * 2015-06-26 2015-11-25 努比亚技术有限公司 Mobile terminal and test method therefor
CN105656509A (en) * 2014-11-14 2016-06-08 联想(北京)有限公司 Control method and electronic device
CN105826654A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Mobile terminal, antenna switching method and apparatus for mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010233048A (en) * 2009-03-27 2010-10-14 Nec Corp Wireless communication apparatus and wireless communication method
CN105656509A (en) * 2014-11-14 2016-06-08 联想(北京)有限公司 Control method and electronic device
CN105100308A (en) * 2015-06-26 2015-11-25 努比亚技术有限公司 Mobile terminal and test method therefor
CN105826654A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Mobile terminal, antenna switching method and apparatus for mobile terminal

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109348013A (en) * 2018-11-21 2019-02-15 Oppo广东移动通信有限公司 Antenna transmission power adjustment method, device, mobile terminal and storage medium
CN109413637A (en) * 2018-11-23 2019-03-01 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant device
CN109413637B (en) * 2018-11-23 2021-05-04 Oppo广东移动通信有限公司 Electromagnetic interference control method, related device, related equipment and storage medium
CN109450510A (en) * 2018-12-04 2019-03-08 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant apparatus
CN109639368A (en) * 2018-12-04 2019-04-16 Oppo广东移动通信有限公司 Electromagnetic interference control method and relevant apparatus
WO2020114023A1 (en) * 2018-12-04 2020-06-11 Oppo广东移动通信有限公司 Electromagnetic interference control method and related device
WO2020114009A1 (en) * 2018-12-04 2020-06-11 Oppo广东移动通信有限公司 Electromagnetic interference control method and related apparatus
US11165937B2 (en) 2018-12-04 2021-11-02 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Electromagnetic interference control method and related device
CN109639861A (en) * 2018-12-27 2019-04-16 维沃移动通信有限公司 A kind of cut-in method of matching network, system and mobile terminal
CN115276888A (en) * 2021-04-29 2022-11-01 北京小米移动软件有限公司 Method, device, terminal and storage medium for determining data transmission rate

Also Published As

Publication number Publication date
CN108282192B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN108282192A (en) A kind of antenna switching control method, communication terminal and computer readable storage medium
CN108494462B (en) Antenna function control method and device, readable storage medium and intelligent terminal
CN106686626B (en) The setting method and terminal device of WiFi roaming
CN110035447A (en) A kind of measuring configuration method and terminal device
CN108649991B (en) A kind of processing method and mobile terminal of harmonic wave interference
CN109348516A (en) Mobile terminal and prevent the method, apparatus of network pingpang handoff, storage medium
CN109714064A (en) Radio-frequency transmissions access control method and user terminal
CN108347277A (en) Method of controlling antenna, device, storage medium and electronic equipment
CN107592133A (en) A kind of antenna switch triggering method, communication terminal and computer-readable storage medium
CN107707280A (en) Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN107995353A (en) The quick control method of smart machine, terminal and computer-readable recording medium
CN110300435A (en) A kind of communication pattern switching method, terminal and computer readable storage medium
CN108599874A (en) A kind of power-sensing circuit, device and mobile terminal
CN109542232A (en) Switching method, terminal and the computer readable storage medium of terminal horizontal/vertical screen mode
CN107666344A (en) Multiple antennas control method, multi-antenna terminal and computer-readable recording medium
CN109743737A (en) A kind of method, terminal and base station reducing multiple network mutual interference
CN110266323A (en) A kind of signal control circuit, terminal device and signal control method
CN107948919A (en) A kind of shared method for processing information and mobile terminal
CN107734586A (en) The switching method and mobile terminal of antenna
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109284186A (en) Mobile terminal and its method and apparatus for detecting frame rate adjustment mobile terminal performance
CN108900669A (en) touch screen scanning method and mobile terminal
CN108958936A (en) Application programe switch-over method, mobile terminal and computer readable storage medium
CN107733509A (en) A kind of antenna switch triggering 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