CN108377162A - Method of controlling antenna, device, storage medium and electronic equipment - Google Patents

Method of controlling antenna, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108377162A
CN108377162A CN201810150652.1A CN201810150652A CN108377162A CN 108377162 A CN108377162 A CN 108377162A CN 201810150652 A CN201810150652 A CN 201810150652A CN 108377162 A CN108377162 A CN 108377162A
Authority
CN
China
Prior art keywords
antenna
time
initialization
preset period
signal quality
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
CN201810150652.1A
Other languages
Chinese (zh)
Other versions
CN108377162B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810150652.1A priority Critical patent/CN108377162B/en
Publication of CN108377162A publication Critical patent/CN108377162A/en
Application granted granted Critical
Publication of CN108377162B publication Critical patent/CN108377162B/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/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/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
    • H04B7/0608Antenna selection according to transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0805Diversity 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 single receiver and antenna switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radio Transmission System (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A kind of method of controlling antenna of the embodiment of the present application offer, device, storage medium and electronic equipment, wherein method are applied to electronic equipment, and electronic equipment includes antenna, and antenna includes first antenna and the second antenna, which is characterized in that the method includes:Obtain the history service condition of the antenna;According to the history service condition of the antenna, the initialization scheme in antenna initialization procedure is determined;The division that the master, diversity antenna in the first antenna and second antenna are determined according to the initialization scheme initializes the antenna according to the division.The embodiment of the present application be directly initialized to when antenna initializes preferably antenna master, diversity the method for salary distribution, to ensure that the signal quality after initialization every time is in preferable state, the radiation quality of antenna after initialization can be improved, and the number of antenna switching can be reduced, reduce power consumption when Antenna Operation.

Description

Method of controlling antenna, device, storage medium and electronic equipment
Technical field
This application involves technical field of electronic equipment, more particularly to a kind of method of controlling antenna, device, storage medium and electricity Sub- equipment.
Background technology
With the raising of the development and electronic equipment intelligence degree of network technology, user can be realized by electronic equipment More and more functions, such as call, chat, object for appreciation game etc..
Wherein, user realizes the biography of signal in using electronic equipment call, chat process by the antenna of electronic equipment It is defeated.In the prior art, in order to ensure that electronic equipment can possess preferable communication quality, the transmitting-receiving of multiple antennas can usually be used Pattern.And in application scenes, such as restart electronic equipment, antenna, which is usually initialized, carrys out parameter reconfiguration, then Its working condition is switched over further according to signal condition.
Invention content
A kind of method of controlling antenna of the embodiment of the present application offer, device, storage medium and electronic equipment, can reduce electronics Interference between equipment multiple antennas.
The embodiment of the present application provides a kind of method of controlling antenna, is applied to electronic equipment, and the electronic equipment includes antenna, The antenna includes first antenna and the second antenna, the method includes:
The history service condition of the antenna is obtained, wherein the history service condition includes the antenna in preset period of time It is interior as it is main collection antenna duration and the antenna signal quality parameter in it is at least one;
According to the history service condition of the antenna, the initialization scheme in antenna initialization procedure is determined;
Determine that master in the first antenna and second antenna, diversity antenna draw according to the initialization scheme Point, the antenna is initialized according to the division.
The embodiment of the present application also provides a kind of ACU antenna control unit, is applied to electronic equipment, the electronic equipment includes day Line, the antenna include first antenna and the second antenna, which is characterized in that described device includes:
Situation acquisition module, the history service condition for obtaining the antenna, wherein the history service condition includes The antenna is in preset period of time as at least one in the duration of main collection antenna and the signal quality parameter of the antenna;
Scheme determining module determines first in antenna initialization procedure for the history service condition according to the antenna Beginning scheme;And
Initialization module, for being determined in the first antenna and second antenna according to the initialization scheme Main, diversity antenna division initializes the antenna according to the division.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described When computer program is run on computers so that the computer executes the day line traffic control as described in any of the above-described embodiment Method.
The embodiment of the present application also provides a kind of electronic equipment, the electronic equipment includes processor and memory, described Be stored with computer program in memory, the processor by calling the computer program stored in the memory, For executing the method for controlling antenna as described in any of the above-described embodiment.
Method of controlling antenna, ACU antenna control unit, storage medium and electronic equipment provided by the embodiments of the present application, this method By recording and obtaining history service condition of the antenna under certain application scenarios in electronic equipment, further according to the history service condition The antenna initialization scheme being determined for compliance under the application scenarios, to directly be initialized to preferably antenna when antenna initializes Main, diversity the method for salary distribution can improve antenna and exist to ensure that the signal quality after initialization every time is in preferable state Radiation quality after initialization, and the number of antenna switching can be reduced, reduce power consumption when Antenna Operation.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described.It should be evident that the accompanying drawings in the following description is only some embodiments of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the implementation flow chart of method of controlling antenna provided by the embodiments of the present application.
Fig. 2 is another implementation flow chart of method of controlling antenna provided by the embodiments of the present application.
Fig. 3 is another implementation flow chart of method of controlling antenna provided by the embodiments of the present application.
Fig. 4 is another implementation flow chart of method of controlling antenna provided by the embodiments of the present application.
Fig. 5 is the structural schematic diagram of ACU antenna control unit provided by the embodiments of the present application.
Fig. 6 is the structural schematic diagram of scheme determining module provided by the embodiments of the present application.
Fig. 7 is another structural schematic diagram of scheme determining module provided by the embodiments of the present application.
Fig. 8 is another structural schematic diagram of scheme determining module provided by the embodiments of the present application.
Fig. 9 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Figure 10 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific implementation mode
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, should not be by It is considered as limitation the application other specific embodiments not detailed herein.
Term as used herein " module " can be the software object executed in the arithmetic system.Difference as described herein Component, module, engine and service can be the objective for implementation in the arithmetic system.And device and method as described herein can be with The mode of software is implemented, and can also be implemented on hardware certainly, within the application protection domain.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
A kind of method of controlling antenna of the embodiment of the present application offer, device, storage medium and electronic equipment.Below will respectively into Row is described in detail.The antenna module can be arranged in the electronic equipment, which can be smart mobile phone, tablet computer Etc. equipment.
Electronic equipment in the embodiment of the present application may include smart mobile phone (Smart Phone), or have channel radio The portable computer for believing module, for example, tablet computer (Tablet Computer), laptop (Laptop) etc., may be used also To be wearable, hand-held computer, such as intelligent wearable device (Smart wearer), personal digital assistant (Personal Digital Assistant, PDA) etc. equipment, be not limited thereto.
When this method is applied in the electronic equipment, wherein the method for controlling antenna may operate at the operation of electronic equipment In system, it may include but it is not limited to Windows operating system, Mac OS operating systems, Android operation system, IOS operations system System, (SuSE) Linux OS, Ubuntu operating systems, Windows Phone operating systems etc., the embodiment of the present application does not limit It is fixed.
Referring to Fig. 1, the implementation process of method of controlling antenna provided by the embodiments of the present application is shown in figure.
As shown in Figure 1, a kind of method of controlling antenna, is applied to electronic equipment, which includes antenna, the antenna packet First antenna and the second antenna are included, which includes:
This method includes:
101, the history service condition of antenna is obtained.
Wherein, which includes letter of the antenna as the main duration and antenna for collecting antenna in preset period of time It is at least one in number mass parameter.
Wherein, which can be several hours, one day, even one month etc. several days, segment length when specific Degree can be depending on actual conditions.Such as count the antenna in the previous day in preset period of time as the duration of main collection antenna and It is at least one in the signal quality parameter of antenna, to determine the use feelings of electronic equipment antenna in the application scenarios of the previous day Condition.
In some embodiments, electronic equipment can reach preset time point either trigger preset trigger condition when, By obtaining the parameter in the daily record that the antenna is preserved.Either the current state of the antenna is detected to obtain current ginseng Number to determine the service condition of the antenna, and the relevant parameter of the service condition with antenna is preserved.
It should be understood that the history service condition may include one or more and the relevant parameter of antenna.When this When parameter is multiple, it can be the multiple parameters in synchronization, can also be the multiple parameters in different moments.
In some embodiments, duration of the antenna in preset period of time as main collection antenna, can carry out in the antenna Antenna master, diversity antenna switching when record, and according to two-by-two record between switching mode and the switching interval time come Estimate duration of the antenna as main collection antenna in preset period of time.
For example, after antenna initializes, work first antenna as main collection antenna, the second antenna is as diversity day Line works, and records current Antenna Operation state and moment, will current time as the first moment;Then, work as antenna It experienced a certain period and switch over, and work first antenna as diversity antenna, the second antenna is as main collection day When line is worked, record current Antenna Operation state and moment, will current time as the second moment.According to above-mentioned two Secondary record, it may be determined that the first antenna within the period as it is main collection antenna duration be the first moment to the second moment it Between time interval duration.
In further embodiments, it is used as the duration of main collection antenna in preset period of time by this, can derives and be used for The other parameters of the antenna utilization rate of the antenna are showed, and use these parameters to judge use of the antenna as main collection antenna Rate.
For example, accounting of the antenna in preset period of time as the duration and the preset period of time total duration of main collection antenna, together Sample can show the antenna utilization rate of the antenna.
In some embodiments, the signal quality parameter of the antenna may include antenna efficiency, signal-to-noise ratio, the data of antenna The one or more of which of transmission rate combines.
By the antenna efficiency of the antenna, signal-to-noise ratio or message transmission rate, the antenna can be known when this is preset Signal quality in section, electronic equipment can come true respectively according to the first antenna and the signal quality parameter of the second antenna Which fixed antenna is suitable as the main collection antenna of subsequent period.
It should be understood that the signal quality parameter is apart from the above parameters, other and aerial signal quality can also be used Relevant parameter, the application are not limited thereto.
In some embodiments, the history service condition of antenna is obtained, can be obtained once at interval of certain time length, or It is to be obtained to the history service condition of the antenna when the antenna of electronic equipment needs initialization, can also be and meeting it The history service condition of the antenna is obtained when his triggering situation, such as detects and reaches a timing after antenna condition changes It is long, should specifically meet the action which kind of condition triggering obtains the history service condition of the antenna, can according to actual conditions and It is fixed.
In some embodiments, when antenna carries out master, diversity antenna switches over, current antenna after the completion of statistics switching Signal quality parameter and the master of antenna, diversity antenna dividing condition;By the signal quality of current antenna after the completion of switching The master of parameter and antenna, diversity antenna dividing condition stored as history service condition.
Because carrying out main, diversity antenna switching in antenna, it may be possible to it is triggered because of the signal difference between antenna, The data of more accurate signal quality parameter can so be obtained so that the parameter has more reference value.
102, according to the history service condition of the antenna, the initialization scheme in antenna initialization procedure is determined.
Wherein, the antenna initialization has mainly been switched to network state, entrance in electronic equipment from no network state To standby mode, restart electronic equipment when trigger.
The content of the initialization be included in first antenna and the second antenna distribute collection antenna based on which antenna, which Antenna is diversity antenna, and the parameter of the antenna is reconfigured according to distribution condition, so that antenna switches to normal work State.
In some embodiments, it determines the initialization scheme in antenna initialization procedure, can be first going through according to antenna History service condition determines current initialization scheme corresponding with the history service condition.Then, the antenna to prestore is obtained originally The original initial scheme is compared beginning scheme with current initialization scheme.
If current initialization scheme is with original initialization scheme difference, original initialization scheme is replaced with into current initialization Scheme is initialized, so that antenna when antenna needs initialization by with the matched initialization scheme of history service condition After being initialized according to the current initialization scheme, the antenna can be made to be more in line with the antenna needed for the application scenarios Performance needs.
It certainly, can if the initialization scheme obtained according to the history service condition is consistent with original initialization scheme Still with original initialization scheme to initialize basis, to be initialized to the antenna.
103, the division that the master, diversity antenna in first antenna and the second antenna are determined according to initialization scheme, according to draw Divide and antenna is initialized.
Wherein it is determined that the division of first antenna and master, diversity antenna in the second antenna, namely initialized in antenna When, determined whether using first antenna as main collection antenna either using the second antenna as main collection day according to the initialization scheme Line, and using another antenna as diversity antenna.
It, can be according to the initialization scheme after determining the division of the master in first antenna and the second antenna, diversity antenna Antenna is initialized.
In some embodiments, the initialization of the antenna can in electronic equipment restarting, switching signal, into standby State triggers when being either transformed into working condition from standby mode, and specific triggering mode can be depending on actual conditions.
From the foregoing, it will be observed that method of controlling antenna provided by the embodiments of the present application, by recording and obtaining antenna in electronic equipment History service condition under certain application scenarios, at the beginning of the antenna being determined for compliance under the application scenarios further according to the history service condition Beginning scheme, to directly be initialized to the method for salary distribution of preferably antenna master, diversity when antenna initialize, to ensure every time Signal quality after initialization is in preferable state, can improve the radiation quality of antenna after initialization, and can reduce The number of antenna switching, reduces power consumption when Antenna Operation.
Referring to Fig. 2, the implementation process of another method of controlling antenna provided by the embodiments of the present application is shown in figure.
As shown in Fig. 2, this method is applied to electronic equipment, which includes antenna, which includes first antenna And second antenna, the control method include:
201, the history service condition of antenna is obtained, wherein history service condition includes that antenna is used as master in preset period of time Collect the duration of antenna.
Wherein, which includes letter of the antenna as the main duration and antenna for collecting antenna in preset period of time It is at least one in number mass parameter.
Wherein, which can be several hours, one day, even one month etc. several days, segment length when specific Degree can be depending on actual conditions.Such as count the antenna in the previous day in preset period of time as the duration of main collection antenna and It is at least one in the signal quality parameter of antenna, to determine the use feelings of electronic equipment antenna in the application scenarios of the previous day Condition.
In some embodiments, electronic equipment can reach preset time point either trigger preset trigger condition when, By obtaining the parameter in the daily record that the antenna is preserved.Either the current state of the antenna is detected to obtain current ginseng Number to determine the service condition of the antenna, and the relevant parameter of the service condition with antenna is preserved.
It should be understood that the history service condition may include one or more and the relevant parameter of antenna.When this When parameter is multiple, it can be the multiple parameters in synchronization, can also be the multiple parameters in different moments.
In some embodiments, duration of the antenna in preset period of time as main collection antenna, can carry out in the antenna Antenna master, diversity antenna switching when record, and according to two-by-two record between switching mode and the switching interval time come Estimate duration of the antenna as main collection antenna in preset period of time.
For example, after antenna initializes, work first antenna as main collection antenna, the second antenna is as diversity day Line works, and records current Antenna Operation state and moment, will current time as the first moment;Then, work as antenna It experienced a certain period and switch over, and work first antenna as diversity antenna, the second antenna is as main collection day When line is worked, record current Antenna Operation state and moment, will current time as the second moment.According to above-mentioned two Secondary record, it may be determined that the first antenna within the period as it is main collection antenna duration be the first moment to the second moment it Between time interval duration.
In further embodiments, it is used as the duration of main collection antenna in preset period of time by this, can derives and be used for The other parameters of the antenna utilization rate of the antenna are showed, and use these parameters to judge use of the antenna as main collection antenna Rate.
In some embodiments, the history service condition of antenna is obtained, can be obtained once at interval of certain time length, or It is to be obtained to the history service condition of the antenna when the antenna of electronic equipment needs initialization, can also be and meeting it The history service condition of the antenna is obtained when his triggering situation, such as detects and reaches a timing after antenna condition changes It is long, should specifically meet the action which kind of condition triggering obtains the history service condition of the antenna, can according to actual conditions and It is fixed.
202, the duration according to antenna in preset period of time as main collection antenna, determines first antenna and second day respectively Main collection utilization rate of the line in preset period of time.
In some embodiments, which can be used as main collection antenna by a certain antenna in the preset period of time The ratio of duration and the total duration in the preset period of time be determined.
For example, the total duration of the preset period of time is 1 day, if the first antenna collects antenna in the preset period of time as main Shi Changwei 12 hours, then it is known that the main collection utilization rate of the first antenna is 50%.
In some embodiments, the main collection utilization rate of first antenna can be by obtaining in the daily record that the antenna is preserved Parameter, to know duration of the antenna as main collection antenna in preset period of time.Either the antenna is detected at regular intervals Current state obtain current parameter, and antenna condition corresponding to these parameters determines the antenna in preset period of time The interior duration as main collection antenna.After obtaining the duration, the total duration of itself and preset period of time is calculated, acquiring main collection makes With rate.
Certainly, in addition to the mode of the main collection utilization rate of above-mentioned acquisition antenna, the parameter in the acceptable statistical work period, Its utilization rate as main collection antenna is either determined by way of the diversity utilization rate for counting the antenna, it is specific to count Mode and calculation can be depending on actual conditions.
203, the main collection utilization rate according to first antenna and second antenna in preset period of time, determines that antenna is initial Initialization scheme during change.
In some embodiments, the main collection utilization rate of first antenna and the main collection utilization rate of the second antenna can be carried out It compares, obtains comparison result and determine the initialization scheme by the first preset condition then further according to comparison result.Wherein One preset condition includes:When being initialized to the antenna next time, using the high antenna of main collection utilization rate as main collection day Line is initialized, and another antenna is initialized as diversity antenna.
If for example, main collection utilization rate of the first antenna in preset period of time is 40%, and the second antenna is in preset period of time Main collection utilization rate be 60%, can determine at this time the second antenna main collection utilization rate be higher than first antenna main collection utilization rate, Second antenna is possible to that its signal quality is good compared with first antenna, therefore second antenna is in initialization scheme in preset period of time It is divided into main collection antenna, can directly be initialized second antenna to main collection antenna when antenna initializes.
It in some embodiments, can be by setting a main threshold value for collecting utilization rate, and the first antenna that will be counted And second main collection utilization rate of the antenna in preset period of time be compared with it, to determine whether the first antenna or Two antennas are initialized as main collection antenna.
For example, preset initialization scheme is using first antenna as main collection antenna, using the second antenna as diversity antenna. Can set at this time switching initialization scheme antenna it is main collection utilization rate threshold value be 60%, if then work as second antenna presetting When main collection utilization rate in period meets or exceeds 60%, then when antenna is initialized, using second antenna as main collection Antenna is initialized, and is initialized using the first antenna as diversity antenna.
Certainly, in addition to aforesaid way, which can use other concrete numerical values according to actual conditions, specific to compare , equally can be depending on actual conditions to mode and method of determination, the application is not limited thereto.
204, the division that the master, diversity antenna in first antenna and the second antenna are determined according to initialization scheme, according to draw Divide and antenna is initialized.
Wherein it is determined that the division of first antenna and master, diversity antenna in the second antenna, namely initialized in antenna When, determined whether using first antenna as main collection antenna either using the second antenna as main collection day according to the initialization scheme Line, and using another antenna as diversity antenna.
It, can be according to the initialization scheme after determining the division of the master in first antenna and the second antenna, diversity antenna Antenna is initialized.
In some embodiments, the initialization of the antenna can in electronic equipment restarting, switching signal, into standby State triggers when being either transformed into working condition from standby mode, and specific triggering mode can be depending on actual conditions.
From the foregoing, it will be observed that method of controlling antenna provided by the embodiments of the present application, by recording and obtaining antenna in electronic equipment More whether the main collection utilization rate of the antenna under certain application scenarios can more accurately determine the antenna in the preset period of time Collect antenna based on being suitable as, to adjust initialization scheme according to the main collection utilization rate of antenna so that antenna is initial according to this Change scheme can be more suitable for the application scenarios after being initialized, improve the radiation quality of antenna after initialization, further Reduce the number of antenna switching.
Referring to Fig. 3, the implementation process of another method of controlling antenna provided by the embodiments of the present application is shown in figure.
As shown in figure 3, this method is applied to electronic equipment, which includes antenna, which includes first antenna And second antenna, the control method include:
301, the history service condition of antenna is obtained, wherein history service condition includes antenna in preset period of time internal antenna Multiple signal quality parameters.
Wherein, multiple signal quality parameters can pass through electronic equipment in multiple predetermined point of time in preset period of time It is obtained, multiple signal quality parameter can be multiple values of same parameters classification, can also be different parameters classification Multiple values, as long as these values can embody radiation quality of the antenna in the preset period of time.
Wherein, which can be several hours, one day, even one month etc. several days, segment length when specific Degree can be depending on actual conditions.Such as count the antenna in the previous day in preset period of time as the duration of main collection antenna and It is at least one in the signal quality parameter of antenna, to determine the use feelings of electronic equipment antenna in the application scenarios of the previous day Condition.
In some embodiments, electronic equipment can reach preset time point either trigger preset trigger condition when, By obtaining the parameter in the daily record that the antenna is preserved.Either the current state of the antenna is detected to obtain current ginseng Number to determine the service condition of the antenna, and the relevant parameter of the service condition with antenna is preserved.
In some embodiments, the signal quality parameter of the antenna may include antenna efficiency, signal-to-noise ratio, the data of antenna The one or more of which of transmission rate combines.
By the antenna efficiency of the antenna, signal-to-noise ratio or message transmission rate, the antenna can be known when this is preset Signal quality in section, electronic equipment can come true respectively according to the first antenna and the signal quality parameter of the second antenna Which fixed antenna is suitable as the main collection antenna of subsequent period.
It should be understood that the signal quality parameter is apart from the above parameters, other and aerial signal quality can also be used Relevant parameter, the application are not limited thereto.
In some embodiments, the history service condition of antenna is obtained, can be obtained once at interval of certain time length, or It is to be obtained to the history service condition of the antenna when the antenna of electronic equipment needs initialization, can also be and meeting it The history service condition of the antenna is obtained when his triggering situation, such as detects and reaches a timing after antenna condition changes It is long, should specifically meet the action which kind of condition triggering obtains the history service condition of the antenna, can according to actual conditions and It is fixed.
302, first antenna and the are determined according to antenna respectively in multiple signal quality parameters of preset period of time internal antenna Average signal quality of two antennas in preset period of time.
Wherein, the aerial signal matter at multiple time points in preset period of time can be informed in by multiple signal quality parameters Amount, to know the radiation effect of the first antenna and the second antenna in preset period of time.
It in some embodiments, can be by by the value of identical parameters classification after getting multiple signal quality parameters Average value evaluation calculating is carried out, to obtain the numerical value of an average signal quality.
For example, obtaining the value of three antenna efficiencies in preset period of time, it is 60%, 50%, 70% respectively, then can obtains The numerical value of average signal quality be 60% as a result, and by the value of the average signal quality in next judgement, namely 60% basis for estimation as aerial signal quality.
It is 1M/s, 1.2M/s, 0.8M/ respectively in another example obtaining the value of the transmission rate of three antennas in preset period of time S, then the numerical value that can obtain average signal quality is the result of 1M/s.
Certainly, concrete implementation mode can be depending on actual conditions.
In further embodiments, or by the way that the signal quality parameter of different periods, different location is weighted Processing, basis for estimation of the numerical value obtained after being handled according to weighting as aerial signal quality.
Specifically, the current location of electronic equipment can be obtained when triggering obtains the signal quality parameter of electronic equipment, And the current location of the electronic equipment is recorded, and obtain electronic equipment current time, and by the current time into Row record.It then, can be right in conjunction with specific algorithm according to the current location of these electronic equipments and its corresponding current time It is weighted with the value of the signal quality parameter corresponding to above-mentioned current location and current time.
For example, if the corresponding first position of the first signal quality parameter is the bedroom of user, corresponding first moment is early Upper 7 points;The corresponding second position of second signal mass parameter is the working road of user, and corresponding second moment is 9 points of morning; The corresponding the third place of third signal quality parameter is the office of user, and the corresponding third moment is 12 points.
User is longer using the time of electronic equipment in office in one day, then is got when can it be located at office The weight of signal quality parameter be arranged larger, and user uses the time of electronic equipment shorter in the bedroom, then can be by it The weights of the signal quality parameter got when positioned at bedroom are arranged smaller.It, can be by the first letter here for convenience of calculation The weight that the weight of number mass parameter is set as 0.2, second signal mass parameter is set as 0.3, third signal quality parameter Weight is set as 0.5, different weights to be arranged according to different application scenarios so that passes through multiple signals after these weightings Mass parameter can be as the basis for estimation of accurate initialization scheme.
303, it according to first antenna and the average signal quality of the second antenna, determines initial in antenna initialization procedure Change scheme.
It in some embodiments, can be by the average signal matter of first antenna and the second antenna in the preset period of time Amount is compared, and obtains comparison result.Then, according to comparison result, initialization scheme is determined by the second preset condition;Wherein Two preset conditions include:When being initialized to antenna next time, by preset period of time the average signal quality it is high Antenna is initialized as main collection antenna, and another antenna is initialized as diversity antenna.
For example, the signal quality parameter is antenna efficiency, if the average signal matter that first antenna obtains in preset period of time Amount is 50%, and the average signal quality that the second antenna obtains in preset period of time is 70%, then can determine second antenna Signal quality in preset period of time is more preferable, therefore second antenna is divided into main collection antenna in initialization scheme, with Directly second antenna can be initialized to main collection antenna when antenna initializes.
It in some embodiments, can be by setting the threshold value of an average signal quality, and by counted first day The numerical value of the average signal quality of line and the second antenna in preset period of time is compared with it, come determine whether by this first Antenna or the second antenna are initialized as main collection antenna.
For example, preset initialization scheme is using first antenna as main collection antenna, using the second antenna as diversity antenna. If at this point, the signal quality parameter is antenna efficiency, the antenna average signal quality of switching initialization scheme can be set Threshold value is 50%, if then working as the average signal matter of second antenna multiple signal quality parameters accessed in preset period of time When amount meets or exceeds 50%, then when antenna is initialized, initialized second antenna as main collection antenna, and It is initialized using the first antenna as diversity antenna.
Certainly, in addition to aforesaid way, which can use other concrete numerical values according to actual conditions, such as use day Threshold value etc. of the signal-to-noise ratio of line as signal quality parameter, specific alignments and method of determination, equally can basis Depending on actual conditions, the application is not limited thereto.
304, the division that the master, diversity antenna in first antenna and the second antenna are determined according to initialization scheme, according to draw Divide and antenna is initialized.
Wherein it is determined that the division of first antenna and master, diversity antenna in the second antenna, namely initialized in antenna When, determined whether using first antenna as main collection antenna either using the second antenna as main collection day according to the initialization scheme Line, and using another antenna as diversity antenna.
It, can be according to the initialization scheme after determining the division of the master in first antenna and the second antenna, diversity antenna Antenna is initialized.
In some embodiments, the initialization of the antenna can in electronic equipment restarting, switching signal, into standby State triggers when being either transformed into working condition from standby mode, and specific triggering mode can be depending on actual conditions.
It follows that method of controlling antenna provided by the embodiments of the present application, by recording and obtaining antenna in electronic equipment The average signal quality of antenna under certain application scenarios, can more accurately determine the antenna in the preset period of time whether It is more suitable for main collection antenna, to adjust initialization scheme according to the main collection utilization rate of antenna so that antenna is first according to this Beginning scheme can be more suitable for the application scenarios after being initialized, the radiation quality of antenna after initialization be improved, into one Step reduces the number of antenna switching.
Referring to Fig. 4, the realization method of another method of controlling antenna provided by the embodiments of the present application is shown in figure.
As shown in figure 4, this method is applied to electronic equipment, which includes antenna, which includes first antenna And second antenna, the control method include:
401, the history service condition of antenna is obtained, wherein history service condition includes that antenna is used as master in preset period of time Collect the duration of antenna and multiple signal quality parameters.
In order to avoid repeating, the antenna is in preset period of time as the duration of main collection antenna and the tool of signal quality parameter Body acquisition modes, can be with the embodiment described in reference chart 2-3.
402, the duration according to antenna in preset period of time as main collection antenna and multiple signal quality parameters, it is true respectively Determine the main collection utilization rate and average signal quality of first antenna and the second antenna in preset period of time.
In some embodiments, which can be used as main collection antenna by a certain antenna in the preset period of time The ratio of duration and the total duration in the preset period of time be determined.
In some embodiments, the main collection utilization rate of first antenna can be by obtaining in the daily record that the antenna is preserved Parameter, to know duration of the antenna as main collection antenna in preset period of time.Either the antenna is detected at regular intervals Current state obtain current parameter, and antenna condition corresponding to these parameters determines the antenna in preset period of time The interior duration as main collection antenna.After obtaining the duration, the total duration of itself and preset period of time is calculated, acquiring main collection makes With rate.
Wherein, the aerial signal matter at multiple time points in preset period of time can be informed in by multiple signal quality parameters Amount, to know the radiation effect of the first antenna and the second antenna in preset period of time.
It in some embodiments, can be by by the value of identical parameters classification after getting multiple signal quality parameters Average value evaluation calculating is carried out, to obtain the numerical value of an average signal quality.
In further embodiments, or by the way that the signal quality parameter of different periods, different location is weighted Processing, basis for estimation of the numerical value obtained after being handled according to weighting as aerial signal quality.
403, according to first antenna and the main collection utilization rate and average signal quality of the second antenna, determine that antenna is initial Initialization scheme during change.
In some embodiments, the main collection utilization rate of first antenna and the main collection utilization rate of the second antenna can be carried out It compares, obtains comparison result and determine the initialization scheme by the first preset condition then further according to comparison result.Wherein One preset condition includes:When being initialized to the antenna next time, using the high antenna of main collection utilization rate as main collection day Line is initialized, and another antenna is initialized as diversity antenna.
It in some embodiments, can be by setting a main threshold value for collecting utilization rate, and the first antenna that will be counted And second main collection utilization rate of the antenna in preset period of time be compared with it, to determine whether the first antenna or Two antennas are initialized as main collection antenna.
It in some embodiments, can be by the average signal matter of first antenna and the second antenna in the preset period of time Amount is compared, and obtains comparison result.Then, according to comparison result, initialization scheme is determined by the second preset condition;Wherein Two preset conditions include:When being initialized to antenna next time, by preset period of time the average signal quality it is high Antenna is initialized as main collection antenna, and another antenna is initialized as diversity antenna.
It in some embodiments, can be by setting the threshold value of an average signal quality, and by counted first day The numerical value of the average signal quality of line and the second antenna in preset period of time is compared with it, come determine whether by this first Antenna or the second antenna are initialized as main collection antenna.
Certainly, in addition to aforesaid way, which can use other concrete numerical values according to actual conditions, such as use day Threshold value etc. of the signal-to-noise ratio of line as signal quality parameter, specific alignments and method of determination, equally can basis Depending on actual conditions, the application is not limited thereto.
In some embodiments, only first antenna and the second antenna be can be set at the same meet main collection utilization rate with And the corresponding threshold requirement of two parameters of average signal quality, just determined using this by the first antenna or the second antenna as master Collection antenna is initialized.
In some embodiments, main collection utilization rate that can be according to actual conditions to acquired antenna in preset period of time And average signal quality is weighted processing respectively, to obtain the parametric results more to correspond to actual needs.
Specifically, if in any case, main collection utilization rate of the antenna in preset period of time more can compared with average signal quality Embody the aerial signal radiation demand in the scene, then it can be by the weighted value of main collection utilization rate of the antenna in preset period of time It is arranged to than average signal quality higher, to embody its importance.
For example, the weighted value of main collection utilization rate of the antenna in preset period of time can be arranged to 0.6, and by antenna pre- If the weighted value of the average signal quality in the period is arranged to 0.4.
It should be understood that specific weighted value can be depending on actual conditions, the application is not construed as limiting this.
404, the division that the master, diversity antenna in first antenna and the second antenna are determined according to initialization scheme, according to draw Divide and antenna is initialized.
Wherein it is determined that the division of first antenna and master, diversity antenna in the second antenna, namely initialized in antenna When, determined whether using first antenna as main collection antenna either using the second antenna as main collection day according to the initialization scheme Line, and using another antenna as diversity antenna.
It, can be according to the initialization scheme after determining the division of the master in first antenna and the second antenna, diversity antenna Antenna is initialized.
In some embodiments, the initialization of the antenna can in electronic equipment restarting, switching signal, into standby State triggers when being either transformed into working condition from standby mode, and specific triggering mode can be depending on actual conditions.
Referring to Fig. 5, a kind of ACU antenna control unit 500 provided by the embodiments of the present application is shown in figure.
As shown in figure 5, the ACU antenna control unit 500 include situation acquisition module 501, scheme determining module 502 and just Beginningization module 503.
The situation acquisition module 501, the history service condition for obtaining the antenna, wherein the history service condition Including the antenna as in the duration of main collection antenna and the signal quality parameter of the antenna at least one in preset period of time It is a.
Wherein, which includes letter of the antenna as the main duration and antenna for collecting antenna in preset period of time It is at least one in number mass parameter.
Wherein, which can be several hours, one day, even one month etc. several days, segment length when specific Degree can be depending on actual conditions.Such as count the antenna in the previous day in preset period of time as the duration of main collection antenna and It is at least one in the signal quality parameter of antenna, to determine the use feelings of electronic equipment antenna in the application scenarios of the previous day Condition.
In some embodiments, electronic equipment can reach preset time point either trigger preset trigger condition when, By obtaining the parameter in the daily record that the antenna is preserved.Either the current state of the antenna is detected to obtain current ginseng Number to determine the service condition of the antenna, and the relevant parameter of the service condition with antenna is preserved.
It should be understood that the history service condition may include one or more and the relevant parameter of antenna.When this When parameter is multiple, it can be the multiple parameters in synchronization, can also be the multiple parameters in different moments.
In some embodiments, duration of the antenna in preset period of time as main collection antenna, can carry out in the antenna Antenna master, diversity antenna switching when record, and according to two-by-two record between switching mode and the switching interval time come Estimate duration of the antenna as main collection antenna in preset period of time.
In further embodiments, it is used as the duration of main collection antenna in preset period of time by this, can derives and be used for The other parameters of the antenna utilization rate of the antenna are showed, and use these parameters to judge use of the antenna as main collection antenna Rate.
In some embodiments, the signal quality parameter of the antenna may include antenna efficiency, signal-to-noise ratio, the data of antenna The one or more of which of transmission rate combines.
By the antenna efficiency of the antenna, signal-to-noise ratio or message transmission rate, the antenna can be known when this is preset Signal quality in section, electronic equipment can come true respectively according to the first antenna and the signal quality parameter of the second antenna Which fixed antenna is suitable as the main collection antenna of subsequent period.
It should be understood that the signal quality parameter is apart from the above parameters, other and aerial signal quality can also be used Relevant parameter, the application are not limited thereto.
In some embodiments, the history service condition of antenna is obtained, can be obtained once at interval of certain time length, or It is to be obtained to the history service condition of the antenna when the antenna of electronic equipment needs initialization, can also be and meeting it The history service condition of the antenna is obtained when his triggering situation, such as detects and reaches a timing after antenna condition changes It is long, should specifically meet the action which kind of condition triggering obtains the history service condition of the antenna, can according to actual conditions and It is fixed.
Program determining module 502 is determined for the history service condition according to the antenna in antenna initialization procedure Initialization scheme.
Wherein, the antenna initialization has mainly been switched to network state, entrance in electronic equipment from no network state To standby mode, restart electronic equipment when trigger.
The content of the initialization be included in first antenna and the second antenna distribute collection antenna based on which antenna, which Antenna is diversity antenna, and the parameter of the antenna is reconfigured according to distribution condition, so that antenna switches to normal work State.
In some embodiments, it determines the initialization scheme in antenna initialization procedure, can be first going through according to antenna History service condition determines current initialization scheme corresponding with the history service condition.Then, the antenna to prestore is obtained originally The original initial scheme is compared beginning scheme with current initialization scheme.
If current initialization scheme is with original initialization scheme difference, original initialization scheme is replaced with into current initialization Scheme is initialized, so that antenna when antenna needs initialization by with the matched initialization scheme of history service condition After being initialized according to the current initialization scheme, the antenna can be made to be more in line with the antenna needed for the application scenarios Performance needs.
It certainly, can if the initialization scheme obtained according to the history service condition is consistent with original initialization scheme Still with original initialization scheme to initialize basis, to be initialized to the antenna.
In some embodiments, program determining module 502 is additionally operable to be used as master in preset period of time according to the antenna Collect the duration of antenna, determines the main collection utilization rate of the first antenna and second antenna in preset period of time respectively;Root According to the main collection utilization rate of the first antenna and second antenna in preset period of time, the antenna initialization procedure is determined In initialization scheme.
In some embodiments, program determining module 502 is additionally operable to first antenna and the second antenna when default Main collection utilization rate in section is compared, and obtains comparison result;According to comparison result, initialization side is determined by the first preset condition Case;First preset condition includes:When being initialized to antenna next time, using the high antenna of main collection utilization rate as main collection day Line is initialized, and another antenna is initialized as diversity antenna.
In some embodiments, history service condition includes that antenna is joined in multiple signal qualities of preset period of time internal antenna Number, program determining module 502 are additionally operable to multiple signal quality parameters in preset period of time internal antenna according to antenna, determine respectively The average signal quality of first antenna and the second antenna in preset period of time;According to being averaged for first antenna and the second antenna Signal quality determines the initialization scheme in antenna initialization procedure.
In some embodiments, program determining module 502 is additionally operable to according to more in first antenna and the second antenna A signal quality parameter determines the average signal quality of first antenna and the second antenna in preset period of time respectively;By first The average signal quality of antenna and the second antenna in preset period of time is compared, and obtains comparison result;According to comparison result, Initialization scheme is determined by the second preset condition;Second preset condition includes:It, will be when being initialized to antenna next time The high antenna of average signal quality is initialized as main collection antenna in preset period of time, and using another antenna as diversity antenna It is initialized.
Initialization module 503, for being determined in the first antenna and second antenna according to the initialization scheme Master, diversity antenna division, according to it is described division the antenna is initialized.
Wherein it is determined that the division of first antenna and master, diversity antenna in the second antenna, namely initialized in antenna When, determined whether using first antenna as main collection antenna either using the second antenna as main collection day according to the initialization scheme Line, and using another antenna as diversity antenna.
It, can be according to the initialization scheme after determining the division of the master in first antenna and the second antenna, diversity antenna Antenna is initialized.
In some embodiments, the initialization of the antenna can in electronic equipment restarting, switching signal, into standby State triggers when being either transformed into working condition from standby mode, and specific triggering mode can be depending on actual conditions.
From the foregoing, it will be observed that the embodiment of the present application is by recording and obtaining history of the antenna under certain application scenarios in electronic equipment Service condition is determined for compliance with the antenna initialization scheme under the application scenarios further according to the history service condition, in antenna Directly be initialized to when initialization preferably antenna master, diversity the method for salary distribution, to ensure the signal quality after initialization every time It is in preferable state, the radiation quality of antenna after initialization can be improved, and the number of antenna switching can be reduced, is reduced Power consumption when Antenna Operation.
Referring to Fig. 6, a kind of structure chart of scheme determining module 502 provided by the embodiments of the present application is shown in figure.The party Case determining module 502 includes utilization rate determination sub-module 5021 and first scheme determination sub-module 5022, wherein:
Utilization rate determination sub-module 5021 is used for the duration in preset period of time as main collection antenna according to the antenna, The main collection utilization rate of the first antenna and second antenna in preset period of time is determined respectively.
First scheme determination sub-module 5022 is used for according to the first antenna and second antenna in preset period of time Interior main collection utilization rate, determines the initialization scheme in the antenna initialization procedure.
It follows that the embodiment of the present application is by recording and obtaining antenna of the antenna under certain application scenarios in electronic equipment Main collection utilization rate, can more accurately determine whether the antenna is more suitable for main collection antenna in the preset period of time, from And initialization scheme is adjusted according to the main collection utilization rate of antenna so that antenna can after being initialized according to the initialization scheme To be more suitable for the application scenarios, the radiation quality of antenna after initialization is improved, the number of antenna switching is further reduced.
Referring to Fig. 7, the structure chart of another scheme determining module 502 provided by the embodiments of the present application is shown in figure.It should Scheme determining module 502 includes quality determination sub-module 5023 and alternative plan determination sub-module 5024, wherein:
Quality determination sub-module 5023, for multiple signal qualities according to antenna antenna in preset period of time Parameter determines the average signal quality of the first antenna and second antenna in preset period of time respectively.
Alternative plan determination sub-module 5024, for the average signal according to the first antenna and second antenna Quality determines the initialization scheme in antenna initialization procedure.
It follows that the embodiment of the present application is by recording and obtaining antenna of the antenna under certain application scenarios in electronic equipment Average signal quality, can more accurately determine whether the antenna is more suitable for main collection antenna in the preset period of time, To adjust initialization scheme according to the main collection utilization rate of antenna so that after antenna is initialized according to the initialization scheme The application scenarios can be more suitable for, the radiation quality of antenna after initialization is improved, is further reduced the number of antenna switching.
Referring to Fig. 8, the structure chart of yet another approach determining module 502 provided by the embodiments of the present application is shown in figure.It should Scheme determining module 502 includes utilization rate determination sub-module 5021, first scheme determination sub-module 5022, quality determination sub-module 5023 and alternative plan determination sub-module 5024.
It should be noted that specific submodule function in said program determining module 502, is referred to retouching for Fig. 6-7 It states, details are not described herein by the application.
In some embodiments, main collection utilization rate that can be according to actual conditions to acquired antenna in preset period of time And average signal quality is weighted processing respectively, to obtain the parametric results more to correspond to actual needs.
Specifically, if in any case, main collection utilization rate of the antenna in preset period of time more can compared with average signal quality Embody the aerial signal radiation demand in the scene, then it can be by the weighted value of main collection utilization rate of the antenna in preset period of time It is arranged to than average signal quality higher, to embody its importance.
For example, the weighted value of main collection utilization rate of the antenna in preset period of time can be arranged to 0.6, and by antenna pre- If the weighted value of the average signal quality in the period is arranged to 0.4.
It should be understood that specific weighted value can be depending on actual conditions, the application is not construed as limiting this.
It follows that the embodiment of the present application by recording and obtaining in electronic equipment antenna under certain application scenarios simultaneously More whether the average signal quality of antenna and main collection utilization rate can more accurately determine the antenna in the preset period of time Collect antenna based on being suitable as, to adjust initialization scheme according to the main collection utilization rate of antenna so that antenna is initial according to this Change scheme can be more suitable for the application scenarios after being initialized, improve the radiation quality of antenna after initialization, further Reduce the number of antenna switching.
In the embodiment of the present application, the ACU antenna control unit belongs to same with a kind of method of controlling antenna in foregoing embodiments One design, can run the either method provided in the method for controlling antenna embodiment on the ACU antenna control unit, Specific implementation process refers to the method for controlling antenna embodiment, and the optional implementation that any combination forms the application may be used Example, details are not described herein again.
The embodiment of the present application also provides a kind of electronic equipment, which can be smart mobile phone, tablet computer, desk-top The equipment such as computer, notebook, palm PC.Referring to Fig. 9, electronic equipment 600 includes processor 601 and memory 602.Its In, processor 601 is electrically connected with memory 602.
The processor 600 is the control centre of electronic equipment 600, is set using various interfaces and the entire electronics of connection Standby various pieces by the application program of operation or load store in memory 602, and are called and are stored in memory Data in 602 execute the various functions of electronic equipment 600 and handle data, to carry out whole prison to electronic equipment 600 Control.
The memory 602 can be used for storing software program and module, and processor 601 is stored in memory by operation 602 software program and module obtains to perform various functions application and image.Memory 602 can include mainly depositing Store up program area and storage data field, wherein storing program area can storage program area, the application program needed at least one function (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored to be created according to using for server Data etc..In addition, memory 602 may include high-speed random access memory, can also include nonvolatile memory, such as At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 602 can be with Including Memory Controller, to provide access of the processor 601 to memory 602.
In the embodiment of the present application, the processor 601 in electronic equipment 600 can be according to following step, by one or one The corresponding instruction of process of a above application program is loaded into memory 602, and is stored in storage by the operation of processor 601 Application program in device 602 is as follows to realize various functions:
Determine whether the first antenna and the second antenna are called;
When the first antenna and the second antenna are called, the equipment state and letter of the electronic equipment are obtained Number mass parameter, wherein the signal quality parameter includes the signal quality parameter and/or the paging channel bit error rate of antenna;
Determine whether the equipment state and the signal quality parameter meet the default item for closing second antenna Part;
If the equipment state and the signal quality parameter meet the preset condition for closing second antenna, close Close second antenna.
In some embodiments, the processor 601 can be also used for:
The history service condition of the antenna is obtained, wherein the history service condition includes the antenna in preset period of time It is interior as it is main collection antenna duration and the antenna signal quality parameter in it is at least one;
According to the history service condition of the antenna, the initialization scheme in antenna initialization procedure is determined;
Determine that master in the first antenna and second antenna, diversity antenna draw according to the initialization scheme Point, the antenna is initialized according to the division.
In some embodiments, the processor 601 can be also used for:
According to duration of the antenna in preset period of time as main collection antenna, the first antenna and institute are determined respectively State main collection utilization rate of second antenna in preset period of time;
According to the main collection utilization rate of the first antenna and second antenna in preset period of time, the antenna is determined Initialization scheme in initialization procedure.
In some embodiments, the processor 601 can be also used for:
The main collection utilization rate of the first antenna and second antenna in preset period of time is compared, ratio is obtained To result;
According to comparison result, the initialization scheme is determined by the first preset condition;
First preset condition includes:When being initialized to the antenna next time, by the main collection utilization rate High antenna is initialized as the main collection antenna, and is initialized another antenna as the diversity antenna.
In some embodiments, the processor 601 can be also used for:
According to multiple signal quality parameters of antenna antenna in preset period of time, determine described first day respectively The average signal quality of line and second antenna in preset period of time;
According to the first antenna and the average signal quality of second antenna, determine in antenna initialization procedure Initialization scheme.
In some embodiments, the processor 601 can be also used for:
The signal quality parameter is multiple, according to the multiple letter in the first antenna and second antenna Number mass parameter determines the average signal matter of the first antenna and second antenna in the preset period of time respectively Amount;
The average signal quality of the first antenna and second antenna in the preset period of time is compared, Obtain comparison result;
According to the comparison result, the initialization scheme is determined by the second preset condition;
Second preset condition includes:It, will be described in preset period of time when being initialized to the antenna next time The high antenna of the interior average signal quality is initialized as the main collection antenna, and using another antenna as the diversity Antenna is initialized.
In some embodiments, the processor 601 can be also used for:
When the antenna carries out main, diversity antenna and switches over, presently described antenna after the completion of the switching is counted The master of signal quality parameter and the antenna, diversity antenna dividing condition;
By the master of the signal quality parameter of presently described antenna after the completion of the switching and the antenna, diversity antenna Dividing condition is stored as history service condition.
Electronic equipment provided by the embodiments of the present application can directly be initialized to preferably antenna when antenna initializes Main, diversity the method for salary distribution can improve antenna and exist to ensure that the signal quality after initialization every time is in preferable state Radiation quality after initialization, and the number of antenna switching can be reduced, reduce power consumption when Antenna Operation.
Also referring to Figure 10, in some embodiments, electronic equipment 600 can also include:Display 603, radio frequency Circuit 604, voicefrequency circuit 605, wireless fidelity module 606 and power supply 607.Wherein, wherein display 603, radio circuit 604, voicefrequency circuit 605, wireless fidelity module 606 and power supply 607 are electrically connected with processor 601 respectively.
The display 603 is displayed for information input by user or is supplied to the information of user and various figures Shape user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.Display 603 may include display panel, in some embodiments, liquid crystal display (LCD, Liquid Crystal may be used Display) or the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) are aobvious to configure Show panel.
The radio circuit 604 can be used for transceiving radio frequency signal, with by radio communication with the network equipment or other electricity Sub- equipment establishes wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
The voicefrequency circuit 605 can be used for providing the audio between user and electronic equipment by loud speaker, microphone Interface.
The wireless fidelity module 606 can be used for short range wireless transmission, and user can be helped to send and receive e-mail, is clear It lookes at and website and accesses streaming video etc., it has provided wireless broadband internet to the user and has accessed.
The power supply 607 is used to all parts power supply of electronic equipment 600.In some embodiments, power supply 607 Can be logically contiguous by power-supply management system and processor 601, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although being not shown in Figure 10, electronic equipment 600 can also include camera, bluetooth module etc., and details are not described herein.
The embodiment of the present application also provides a kind of storage medium, and the storage medium stores a plurality of instruction, a plurality of instruction Suitable for being loaded by processor to execute the image acquiring method in above-described embodiment, such as:The history for obtaining the antenna uses Situation, wherein the history service condition includes duration and the day of the antenna as main collection antenna in preset period of time It is at least one in the signal quality parameter of line;According to the history service condition of the antenna, determine in antenna initialization procedure Initialization scheme;Master in the first antenna and second antenna, diversity antenna are determined according to the initialization scheme It divides, the antenna is initialized according to the division.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by program, which can be stored in computer-readable medium In, which can include but is not limited to:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Method of controlling antenna provided by the embodiments of the present application, device, storage medium and electronic equipment have been carried out in detail above Thin to introduce, specific examples are used herein to illustrate the principle and implementation manner of the present application, and above example is said It is bright to be merely used to help understand the application.Meanwhile for those skilled in the art, according to the thought of the application, specific real There will be changes in mode and application range are applied, in conclusion the content of the present specification should not be construed as the limit to the application System.

Claims (13)

1. a kind of method of controlling antenna is applied to electronic equipment, the electronic equipment includes antenna, and the antenna includes first day Line and the second antenna, which is characterized in that the method includes:
The history service condition of the antenna is obtained, is made in preset period of time wherein the history service condition includes the antenna Based on collection antenna duration and the antenna signal quality parameter in it is at least one;
According to the history service condition of the antenna, the initialization scheme in antenna initialization procedure is determined;
The division of the master, diversity antenna in the first antenna and second antenna, root are determined according to the initialization scheme The antenna is initialized according to the division.
2. method of controlling antenna as described in claim 1, which is characterized in that the history service condition includes that the antenna exists Duration in preset period of time as main collection antenna, the history service condition according to the antenna determine that antenna initialized Initialization scheme in journey, including:
According to duration of the antenna in preset period of time as main collection antenna, the first antenna and described the are determined respectively Main collection utilization rate of two antennas in preset period of time;
According to the main collection utilization rate of the first antenna and second antenna in preset period of time, determine that the antenna is initial Initialization scheme during change.
3. method of controlling antenna as claimed in claim 2, which is characterized in that in the determination antenna initialization procedure Initialization scheme, including:
The main collection utilization rate of the first antenna and second antenna in preset period of time is compared, obtains and compares knot Fruit;
According to comparison result, the initialization scheme is determined by the first preset condition;
First preset condition includes:It is when being initialized to the antenna next time, the main collection utilization rate is high Antenna is initialized as the main collection antenna, and is initialized another antenna as the diversity antenna.
4. the method for controlling antenna as described in claim 1-3 any one, which is characterized in that the history service condition includes Multiple signal quality parameters of antenna antenna in the preset period of time, it is described to be used according to the history of the antenna Situation determines the initialization scheme in antenna initialization procedure, including:
According to multiple signal quality parameters of antenna antenna in preset period of time, respectively determine the first antenna with And average signal quality of second antenna in preset period of time;
According to the first antenna and the average signal quality of second antenna, determine initial in antenna initialization procedure Change scheme.
5. method of controlling antenna as claimed in claim 4, which is characterized in that the signal quality parameter be it is multiple, it is described really Determine the initialization scheme in antenna initialization procedure, including:
According to the multiple signal quality parameter in the first antenna and second antenna, described first is determined respectively The average signal quality of antenna and second antenna in the preset period of time;
The average signal quality of the first antenna and second antenna in the preset period of time is compared, is obtained Comparison result;
According to the comparison result, the initialization scheme is determined by the second preset condition;
Second preset condition includes:It, will the institute in preset period of time when being initialized to the antenna next time It states the high antenna of average signal quality to be initialized as the main collection antenna, and using another antenna as the diversity antenna It is initialized.
6. method of controlling antenna as claimed in claim 4, which is characterized in that the signal quality parameter includes the antenna The one or more of which combination of antenna efficiency, signal-to-noise ratio, message transmission rate.
7. method of controlling antenna as described in claim 1, which is characterized in that the history for obtaining the antenna uses feelings Condition, including:
When the antenna carries out master, diversity antenna switches over, the signal of presently described antenna after the completion of the switching is counted The master of mass parameter and the antenna, diversity antenna dividing condition;
By the division of the master, diversity antenna of the signal quality parameter of presently described antenna after the completion of the switching and the antenna Situation is stored as history service condition.
8. method of controlling antenna as claimed in claim 1 or 7, which is characterized in that described to be used according to the history of the antenna Situation determines the initialization scheme in antenna initialization procedure, including:
According to the history service condition of the antenna, current initialization scheme corresponding with the history service condition is determined;
Obtain the original initialization scheme of the antenna to prestore, when the current initialization scheme and the original initialization scheme not Meanwhile the original initialization scheme is replaced with into the current initialization scheme.
9. a kind of ACU antenna control unit is applied to electronic equipment, the electronic equipment includes antenna, and the antenna includes first day Line and the second antenna, which is characterized in that described device includes:
Situation acquisition module, the history service condition for obtaining the antenna, wherein the history service condition includes described Antenna is in preset period of time as at least one in the duration of main collection antenna and the signal quality parameter of the antenna;
Scheme determining module determines the initialization in antenna initialization procedure for the history service condition according to the antenna Scheme;And
Initialization module, for determining the master in the first antenna and second antenna according to the initialization scheme, dividing The division for collecting antenna initializes the antenna according to the division.
10. ACU antenna control unit as claimed in claim 9, which is characterized in that the history service condition includes the antenna Duration in preset period of time as main collection antenna, the scheme determining module, including:
Utilization rate determination sub-module determines respectively for the duration according to the antenna in preset period of time as main collection antenna The main collection utilization rate of the first antenna and second antenna in preset period of time;And
First scheme determination sub-module, for the main collection according to the first antenna and second antenna in preset period of time Utilization rate determines the initialization scheme in the antenna initialization procedure.
11. the ACU antenna control unit as described in claim 9 or 10, which is characterized in that the history service condition includes described Multiple signal quality parameters of antenna antenna in the preset period of time, the scheme determining module, including:
Quality determination sub-module is divided for multiple signal quality parameters according to antenna antenna in preset period of time It Que Ding not the average signal quality of the first antenna and second antenna in preset period of time;And
Alternative plan determination sub-module, for the average signal quality according to the first antenna and second antenna, really Determine the initialization scheme in antenna initialization procedure.
12. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer journey When sequence is run on computers so that the computer perform claim requires 1 to 8 any one of them method of controlling antenna.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory Computer program is contained, the processor is used for right of execution by calling the computer program stored in the memory Profit requires 1 to 8 any one of them method of controlling antenna.
CN201810150652.1A 2018-02-13 2018-02-13 Antenna control method, antenna control device, storage medium and electronic equipment Active CN108377162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810150652.1A CN108377162B (en) 2018-02-13 2018-02-13 Antenna control method, antenna control device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810150652.1A CN108377162B (en) 2018-02-13 2018-02-13 Antenna control method, antenna control device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108377162A true CN108377162A (en) 2018-08-07
CN108377162B CN108377162B (en) 2021-01-26

Family

ID=63018047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810150652.1A Active CN108377162B (en) 2018-02-13 2018-02-13 Antenna control method, antenna control device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108377162B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202467A (en) * 2020-09-02 2021-01-08 珠海格力电器股份有限公司 Method, device, equipment and medium for controlling main diversity change-over switch
CN114531173A (en) * 2022-04-06 2022-05-24 展讯通信(深圳)有限公司 Method and device for optimizing receiving sensitivity of multi-antenna frequency division duplex mode terminal and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06273513A (en) * 1993-03-24 1994-09-30 Mitsubishi Electric Corp Radar system
JPH0786817A (en) * 1993-09-14 1995-03-31 Mitsui Constr Co Ltd Gps antenna system
JP2002141853A (en) * 2000-10-30 2002-05-17 Toyo Commun Equip Co Ltd Radio communication equipment
CN101964453A (en) * 2009-07-23 2011-02-02 宏达国际电子股份有限公司 Flat plane reconfigurable antenna
CN102854506A (en) * 2012-09-10 2013-01-02 电子科技大学 Phase compensation method for baseline oscillation of interference SAR (synthetic aperture radar) based on back-projection algorithm

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06273513A (en) * 1993-03-24 1994-09-30 Mitsubishi Electric Corp Radar system
JPH0786817A (en) * 1993-09-14 1995-03-31 Mitsui Constr Co Ltd Gps antenna system
JP2002141853A (en) * 2000-10-30 2002-05-17 Toyo Commun Equip Co Ltd Radio communication equipment
CN101964453A (en) * 2009-07-23 2011-02-02 宏达国际电子股份有限公司 Flat plane reconfigurable antenna
CN102854506A (en) * 2012-09-10 2013-01-02 电子科技大学 Phase compensation method for baseline oscillation of interference SAR (synthetic aperture radar) based on back-projection algorithm

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202467A (en) * 2020-09-02 2021-01-08 珠海格力电器股份有限公司 Method, device, equipment and medium for controlling main diversity change-over switch
CN112202467B (en) * 2020-09-02 2021-09-21 珠海格力电器股份有限公司 Method, device, equipment and medium for controlling main diversity change-over switch
CN114531173A (en) * 2022-04-06 2022-05-24 展讯通信(深圳)有限公司 Method and device for optimizing receiving sensitivity of multi-antenna frequency division duplex mode terminal and terminal equipment

Also Published As

Publication number Publication date
CN108377162B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN109213539B (en) Memory recovery method and device
CN108430101B (en) Antenna closing method and device, storage medium and electronic equipment
CN108347277A (en) Method of controlling antenna, device, storage medium and electronic equipment
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN106776036A (en) A kind of resource allocation methods and device
CN107222914B (en) Application control method and related product
CN109992398A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN111050370A (en) Network switching method and device, storage medium and electronic equipment
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN108334345B (en) Application processing method and device, readable storage medium and mobile terminal
CN110032267A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN104092556A (en) Monitoring method, device and system based on distributed system
CN108540152A (en) Processing method, device, storage medium and the electronic equipment of radio frequency interference
CN106815025A (en) Sensing data report method and device
CN110032429B (en) Information processing method and device, mobile terminal and computer readable storage medium
CN108322897A (en) Cutting ferrule meal combined method and device
CN108377162A (en) Method of controlling antenna, device, storage medium and electronic equipment
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
CN110032439A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN106776040A (en) A kind of resource allocation methods and device
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN107908273B (en) Application management method and device, storage medium and electronic equipment
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN105929960A (en) Fingerprint module based volume control method and mobile terminal
CN107688498B (en) Application program processing method and device, computer equipment and 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant