CN108377162B - Antenna control method, antenna control device, storage medium and electronic equipment - Google Patents

Antenna control method, antenna control device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108377162B
CN108377162B CN201810150652.1A CN201810150652A CN108377162B CN 108377162 B CN108377162 B CN 108377162B CN 201810150652 A CN201810150652 A CN 201810150652A CN 108377162 B CN108377162 B CN 108377162B
Authority
CN
China
Prior art keywords
antenna
signal quality
time period
initialization
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810150652.1A
Other languages
Chinese (zh)
Other versions
CN108377162A (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/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

The embodiment of the application provides an antenna control method, an antenna control device, a storage medium and electronic equipment, wherein the method is applied to the electronic equipment, the electronic equipment comprises an antenna, and the antenna comprises a first antenna and a second antenna, and the method is characterized by comprising the following steps: acquiring historical use conditions of the antenna; determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna; and determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme, and initializing the antennas according to the division. The method and the device directly initialize the antenna to be a better distribution mode of antenna main and diversity during antenna initialization so as to ensure that the signal quality after each initialization is in a better state, improve the radiation quality of the antenna after initialization, reduce the times of antenna switching and reduce the power consumption of the antenna during working.

Description

Antenna control method, antenna control device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an antenna control method and apparatus, a storage medium, and an electronic device.
Background
With the development of network technology and the improvement of the intelligent degree of electronic equipment, users can realize more and more functions such as conversation, chatting, game playing and the like through the electronic equipment.
The user realizes signal transmission through the antenna of the electronic equipment in the conversation and chat processes of the electronic equipment. In the prior art, in order to ensure that the electronic device has a good communication quality, a multi-antenna transceiving mode is often adopted. In some application scenarios, such as restarting the electronic device, the antenna often needs to be initialized to reset the parameters, and then the operating state of the antenna is switched according to the signal condition.
Disclosure of Invention
The embodiment of the application provides an antenna control method, an antenna control device, a storage medium and electronic equipment, which can reduce interference among multiple antennas of the electronic equipment.
The embodiment of the application provides an antenna control method, which is applied to electronic equipment, wherein the electronic equipment comprises an antenna, the antenna comprises a first antenna and a second antenna, and the method comprises the following steps:
acquiring historical use conditions of the antenna, wherein the historical use conditions comprise at least one of the time length of the antenna serving as a main set antenna in a preset time period and the signal quality parameters of the antenna;
determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna;
and determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme, and initializing the antennas according to the division.
The embodiment of the present application further provides an antenna control apparatus, which is applied to an electronic device, where the electronic device includes an antenna, the antenna includes a first antenna and a second antenna, and the apparatus includes:
the condition acquisition module is used for acquiring historical use conditions of the antenna, wherein the historical use conditions comprise at least one of the time length of the antenna serving as a main set antenna in a preset time period and the signal quality parameters of the antenna;
the scheme determining module is used for determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna; and
and the initialization module is used for determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme and initializing the antennas according to the division.
An embodiment of the present application further provides a storage medium, where a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the antenna control method according to any one of the above embodiments.
An embodiment of the present application further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the antenna control method according to any one of the above embodiments by calling the computer program stored in the memory.
According to the antenna control method, the antenna control device, the storage medium and the electronic equipment, the historical use condition of an antenna in the electronic equipment under a certain application scene is recorded and obtained, and the antenna initialization scheme conforming to the application scene is determined according to the historical use condition, so that the antenna initialization is directly initialized into a better distribution mode of antenna main and diversity, the signal quality after each initialization is ensured to be in a better state, the radiation quality of the antenna after initialization can be improved, the times of antenna switching can be reduced, and the power consumption of the antenna during working is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a flowchart illustrating an implementation of an antenna control method according to an embodiment of the present application.
Fig. 2 is a flowchart of another implementation of an antenna control method according to an embodiment of the present application.
Fig. 3 is a flowchart of another implementation of the antenna control method according to the embodiment of the present application.
Fig. 4 is a flowchart of another implementation of the antenna control method according to the embodiment of the present application.
Fig. 5 is a schematic structural diagram of an antenna control device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a scheme determination module provided in an embodiment of the present application.
Fig. 7 is another schematic structural diagram of a scenario determination module according to an embodiment of the present application.
Fig. 8 is a schematic diagram of another structure of a scenario determination module according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 10 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The term "module" as used herein may be a software object that executes on the computing system. The different components, modules, engines, and services described herein may be implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application provides an antenna control method, an antenna control device, a storage medium and electronic equipment. The details will be described below separately. The antenna assembly can be arranged in the electronic device, and the electronic device can be a smart phone, a tablet computer and the like.
The electronic device in this embodiment of the application may include a Smart Phone (Smart Phone), or a portable Computer with a wireless communication module, for example, a Tablet Computer (Tablet Computer), a notebook Computer (Laptop), or the like, and may also be a wearable and handheld Computer, such as a Smart wearable device (Smart weber), a Personal Digital Assistant (PDA), or the like, which is not limited herein.
When the method is applied to the electronic device, wherein the antenna control method may be run in an operating system of the electronic device, and may include but is not limited to a Windows operating system, a Mac OS operating system, an Android operating system, an IOS operating system, a Linux operating system, an Ubuntu operating system, a Windows Phone operating system, and the like, which is not limited in the embodiment of the present application.
Referring to fig. 1, an implementation flow of an antenna control method provided in an embodiment of the present application is shown in the figure.
As shown in fig. 1, an antenna control method is applied to an electronic device, where the electronic device includes an antenna, and the antenna includes a first antenna and a second antenna, and the control method includes:
the method comprises the following steps:
101. historical use of the antenna is obtained.
Wherein the historical use condition comprises at least one of the time length of the antenna as a main set antenna in a preset time period and the signal quality parameter of the antenna.
The preset time period may be several hours, one day, several days, even one month, etc., and the specific time period may be determined according to the actual situation. At least one of the time length of the antenna serving as the main set antenna in a preset time period in the previous day and the signal quality parameter of the antenna is counted to determine the use condition of the antenna in the application scene of the previous day.
In some embodiments, the electronic device may obtain the parameters in the log saved by the antenna when a preset time point is reached or a preset trigger condition is triggered. Or detecting the current state of the antenna to obtain the current parameters so as to determine the use condition of the antenna, and storing the parameters related to the use condition of the antenna.
It will be appreciated that the historical usage may include one or more antenna-related parameters. When there are a plurality of parameters, the parameters may be a plurality of parameters at the same time or a plurality of parameters at different times.
In some embodiments, the duration of the antenna as the main set antenna in the preset time period may be recorded when the antenna switches between the main antenna and the diversity antenna, and the duration of the antenna as the main set antenna in the preset time period may be estimated according to the switching manner and the switching interval time between two records.
For example, after the antennas are initialized, the first antenna is used as a main set antenna to work, the second antenna is used as a diversity antenna to work, the current antenna working state and the current time are recorded, and the current time is used as the first time; then, when the antennas are switched after a certain period of time, and the first antenna is used as a diversity antenna to work, and the second antenna is used as a main set antenna to work, the current antenna working state and time are recorded, and the current time is used as the second time. According to the two records, the duration of the first antenna as the main set antenna in the time period can be determined to be the duration of the time interval between the first time and the second time.
In other embodiments, other parameters representing the antenna usage rate of the antenna may be derived from the duration of the antenna as the main set within the predetermined time period, and the parameters are used to determine the usage rate of the antenna as the main set antenna.
For example, the ratio of the duration of the antenna as the main set antenna in the preset time period to the total duration of the preset time period may also represent the antenna usage rate of the antenna.
In some embodiments, the signal quality parameter of the antenna may include one or more combinations of antenna efficiency, signal-to-noise ratio, and data transmission rate of the antenna.
The signal quality of the antenna in the preset time period can be obtained through the antenna efficiency, the signal-to-noise ratio or the data transmission rate of the antenna, and the electronic device can determine which antenna is suitable for being used as the main set antenna in the next time period according to the signal quality parameters of the first antenna and the second antenna.
It is understood that the signal quality parameter may also be other parameters related to the antenna signal quality besides the above parameters, and the present application is not limited thereto.
In some embodiments, the historical usage of the antenna may be obtained once at a certain time interval, or the historical usage of the antenna may be obtained when the antenna of the electronic device needs to be initialized, or the historical usage of the antenna may be obtained when other triggering conditions are met, and for example, when the certain time interval is reached after the state of the antenna is detected to be changed, which condition should be met specifically triggers an action of obtaining the historical usage of the antenna, which may be determined according to an actual situation.
In some embodiments, when the antenna is switched between the main antenna and the diversity antenna, the signal quality parameter of the current antenna and the division condition of the main antenna and the diversity antenna of the antenna are counted after the switching is finished; and storing the signal quality parameters of the current antenna and the division conditions of the main antenna and the diversity antenna of the antenna after the switching is finished as historical use conditions.
Because the switching of the main and diversity antennas is performed at the antennas, possibly triggered by the signal difference between the antennas, more accurate data of the signal quality parameter can be obtained, so that the parameter is more valuable.
102. And determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna.
The antenna initialization is mainly triggered when the electronic device is switched from a non-network state to a network state, enters a standby state, restarts the electronic device, and the like.
The initialization includes allocating which antenna is the main set antenna and which antenna is the diversity antenna in the first antenna and the second antenna, and reconfiguring the parameters of the antenna according to the allocation condition so that the antenna is switched to the normal working state.
In some embodiments, determining the initialization scheme in the antenna initialization process may be determining a current initialization scheme corresponding to a historical usage of the antenna according to the historical usage. And then, acquiring an original initialization scheme of the pre-stored antenna, and comparing the original initialization scheme with the current initialization scheme.
If the current initialization scheme is different from the original initialization scheme, the original initialization scheme is replaced by the current initialization scheme, and when the antenna needs to be initialized, the antenna is initialized according to the initialization scheme matched with the historical use condition, so that the antenna can better meet the antenna performance requirement required by the application scene after being initialized according to the current initialization scheme.
Of course, if the initialization scheme obtained according to the historical usage situation is consistent with the original initialization scheme, the antenna may still be initialized based on the original initialization scheme.
103. And determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to an initialization scheme, and initializing the antennas according to the division.
When the antennas are initialized, whether the first antenna is used as a main set antenna or the second antenna is used as a main set antenna is determined according to the initialization scheme, and the other antenna is used as a diversity antenna.
After determining the division of the main and diversity antennas in the first and second antennas, the antennas may be initialized according to the initialization scheme.
In some embodiments, the initialization of the antenna may be triggered when the electronic device is restarted, signals are switched, the electronic device enters a standby state, or the electronic device is switched from the standby state to an operating state, and the specific triggering manner may be determined according to actual situations.
As can be seen from the above, the antenna control method provided in the embodiment of the present application directly initializes the antenna initialization scheme according to the historical usage situation of the antenna in the electronic device in a certain application scenario by recording and obtaining the historical usage situation of the antenna in the electronic device and determining the antenna initialization scheme according to the historical usage situation, so as to ensure that the signal quality after each initialization is in a better state, improve the radiation quality of the antenna after initialization, reduce the number of times of antenna switching, and reduce the power consumption of the antenna during operation.
Referring to fig. 2, an implementation flow of another antenna control method provided in the embodiment of the present application is shown.
As shown in fig. 2, the method is applied to an electronic device including an antenna including a first antenna and a second antenna, and the control method includes:
201. and acquiring historical use conditions of the antenna, wherein the historical use conditions comprise the time length of the antenna as a main set antenna in a preset time period.
Wherein the historical use condition comprises at least one of the time length of the antenna as a main set antenna in a preset time period and the signal quality parameter of the antenna.
The preset time period may be several hours, one day, several days, even one month, etc., and the specific time period may be determined according to the actual situation. At least one of the time length of the antenna serving as the main set antenna in a preset time period in the previous day and the signal quality parameter of the antenna is counted to determine the use condition of the antenna in the application scene of the previous day.
In some embodiments, the electronic device may obtain the parameters in the log saved by the antenna when a preset time point is reached or a preset trigger condition is triggered. Or detecting the current state of the antenna to obtain the current parameters so as to determine the use condition of the antenna, and storing the parameters related to the use condition of the antenna.
It will be appreciated that the historical usage may include one or more antenna-related parameters. When there are a plurality of parameters, the parameters may be a plurality of parameters at the same time or a plurality of parameters at different times.
In some embodiments, the duration of the antenna as the main set antenna in the preset time period may be recorded when the antenna switches between the main antenna and the diversity antenna, and the duration of the antenna as the main set antenna in the preset time period may be estimated according to the switching manner and the switching interval time between two records.
For example, after the antennas are initialized, the first antenna is used as a main set antenna to work, the second antenna is used as a diversity antenna to work, the current antenna working state and the current time are recorded, and the current time is used as the first time; then, when the antennas are switched after a certain period of time, and the first antenna is used as a diversity antenna to work, and the second antenna is used as a main set antenna to work, the current antenna working state and time are recorded, and the current time is used as the second time. According to the two records, the duration of the first antenna as the main set antenna in the time period can be determined to be the duration of the time interval between the first time and the second time.
In other embodiments, other parameters representing the antenna usage rate of the antenna may be derived from the duration of the antenna as the main set within the predetermined time period, and the parameters are used to determine the usage rate of the antenna as the main set antenna.
In some embodiments, the historical usage of the antenna may be obtained once at a certain time interval, or the historical usage of the antenna may be obtained when the antenna of the electronic device needs to be initialized, or the historical usage of the antenna may be obtained when other triggering conditions are met, and for example, when the certain time interval is reached after the state of the antenna is detected to be changed, which condition should be met specifically triggers an action of obtaining the historical usage of the antenna, which may be determined according to an actual situation.
202. And respectively determining the usage rates of the primary set of the first antenna and the second antenna in a preset time period according to the time length of the antenna as the primary set antenna in the preset time period.
In some embodiments, the usage rate of the primary set may be determined by the ratio of the time duration of a certain antenna as the primary set antenna in the preset time period to the total time duration in the preset time period.
For example, the total duration of the preset time period is 1 day, and if the duration of the first antenna as the dominant set antenna in the preset time period is 12 hours, it can be known that the usage rate of the dominant set of the first antenna is 50%.
In some embodiments, the usage rate of the first antenna in the master set may be obtained by obtaining a parameter in a log saved by the antenna, so as to know the duration of the antenna as the master set antenna in a preset time period. Or detecting the current state of the antenna at intervals to obtain current parameters, and determining the time length of the antenna as a main set antenna in a preset time period according to the antenna states corresponding to the parameters. And after the duration is obtained, calculating the duration and the total duration of the preset time period to obtain the use rate of the master set.
Of course, besides the above-mentioned manner of obtaining the usage rate of the primary set of antennas, it is also possible to only count the parameters in the working period, or determine the usage rate of the antenna as the primary set of antennas by counting the diversity usage rate of the antenna, and the specific statistical manner and the calculation manner may be determined according to the actual situation.
203. And determining an initialization scheme in the antenna initialization process according to the primary set utilization rate of the first antenna and the second antenna in a preset time period.
In some embodiments, the usage rate of the first antenna master set and the usage rate of the second antenna master set may be compared to obtain a comparison result, and then the initialization scheme is determined according to the comparison result and a first preset condition. Wherein the first preset condition comprises: and initializing the antenna with high use rate of the main set as the main set antenna and initializing the other antenna as the diversity antenna when the antenna is initialized next time.
For example, if the usage rate of the first antenna in the primary set in the preset time period is 40%, and the usage rate of the second antenna in the primary set in the preset time period is 60%, it may be determined that the usage rate of the second antenna in the primary set is higher than the usage rate of the first antenna, and the second antenna may have better signal quality than the first antenna in the preset time period.
In some embodiments, whether to initialize the first antenna or the second antenna as the primary set antenna may be determined by setting a threshold of the primary set usage and comparing the counted primary set usage of the first antenna and the second antenna in a preset time period with the threshold.
For example, the initialization scheme is preset to use the first antenna as a main set antenna and the second antenna as a diversity antenna. At this time, the threshold of the usage rate of the antenna master set for switching the initialization scheme may be set to be 60%, and if the usage rate of the antenna master set of the second antenna in the preset time period reaches or exceeds 60%, when the antenna is initialized, the second antenna is initialized as the master set antenna, and the first antenna is initialized as the diversity antenna.
Of course, in addition to the above-mentioned manner, the threshold may be other specific values, specific comparison manners and determination manners according to actual situations, and may also be determined according to actual situations, and the application is not limited herein.
204. And determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to an initialization scheme, and initializing the antennas according to the division.
When the antennas are initialized, whether the first antenna is used as a main set antenna or the second antenna is used as a main set antenna is determined according to the initialization scheme, and the other antenna is used as a diversity antenna.
After determining the division of the main and diversity antennas in the first and second antennas, the antennas may be initialized according to the initialization scheme.
In some embodiments, the initialization of the antenna may be triggered when the electronic device is restarted, signals are switched, the electronic device enters a standby state, or the electronic device is switched from the standby state to an operating state, and the specific triggering manner may be determined according to actual situations.
Therefore, according to the antenna control method provided by the embodiment of the application, whether the antenna is more suitable to be used as the antenna of the main set in the preset time period can be more accurately determined by recording and acquiring the utilization rate of the main set of the antenna of the electronic device in a certain application scene, so that the initialization scheme is adjusted according to the utilization rate of the main set of the antenna, the antenna can be more suitable to the application scene after being initialized according to the initialization scheme, the radiation quality of the antenna after being initialized is improved, and the times of antenna switching are further reduced.
Referring to fig. 3, a flowchart of an implementation of another antenna control method provided in the embodiment of the present application is shown.
As shown in fig. 3, the method is applied to an electronic device including an antenna including a first antenna and a second antenna, and the control method includes:
301. historical use conditions of the antenna are obtained, wherein the historical use conditions comprise a plurality of signal quality parameters of the antenna in a preset time period.
The multiple signal quality parameters may be obtained by the electronic device at multiple predetermined time points within a preset time period, and the multiple signal quality parameters may be multiple values of the same parameter type or multiple values of different parameter types, as long as the values can represent the radiation quality of the antenna within the preset time period.
The preset time period may be several hours, one day, several days, even one month, etc., and the specific time period may be determined according to the actual situation. At least one of the time length of the antenna serving as the main set antenna in a preset time period in the previous day and the signal quality parameter of the antenna is counted to determine the use condition of the antenna in the application scene of the previous day.
In some embodiments, the electronic device may obtain the parameters in the log saved by the antenna when a preset time point is reached or a preset trigger condition is triggered. Or detecting the current state of the antenna to obtain the current parameters so as to determine the use condition of the antenna, and storing the parameters related to the use condition of the antenna.
In some embodiments, the signal quality parameter of the antenna may include one or more combinations of antenna efficiency, signal-to-noise ratio, and data transmission rate of the antenna.
The signal quality of the antenna in the preset time period can be obtained through the antenna efficiency, the signal-to-noise ratio or the data transmission rate of the antenna, and the electronic device can determine which antenna is suitable for being used as the main set antenna in the next time period according to the signal quality parameters of the first antenna and the second antenna.
It is understood that the signal quality parameter may also be other parameters related to the antenna signal quality besides the above parameters, and the present application is not limited thereto.
In some embodiments, the historical usage of the antenna may be obtained once at a certain time interval, or the historical usage of the antenna may be obtained when the antenna of the electronic device needs to be initialized, or the historical usage of the antenna may be obtained when other triggering conditions are met, and for example, when the certain time interval is reached after the state of the antenna is detected to be changed, which condition should be met specifically triggers an action of obtaining the historical usage of the antenna, which may be determined according to an actual situation.
302. According to a plurality of signal quality parameters of the antenna in a preset time period, the average signal quality of the first antenna and the average signal quality of the second antenna in the preset time period are respectively determined.
The antenna signal quality at a plurality of time points in a preset time period can be obtained through a plurality of signal quality parameters, so that the radiation effect of the first antenna and the second antenna in the preset time period can be obtained.
In some embodiments, after multiple signal quality parameters are obtained, an average signal quality value may be obtained by averaging the values of the same parameter class.
For example, if three antenna efficiency values, 60%, 50% and 70%, are obtained within a preset time period, a result that the average signal quality value is 60% can be obtained, and the average signal quality value, that is, 60% can be used as the basis for determining the antenna signal quality in the subsequent determination.
For another example, if the values of the transmission rates of the three antennas are obtained within the preset time period, which are 1M/s, 1.2M/s, and 0.8M/s, respectively, a result that the value of the average signal quality is 1M/s can be obtained.
Of course, the specific implementation manner can be determined according to actual situations.
In other embodiments, or signal quality parameters at different time periods and different locations are weighted, and a value obtained after the weighting is used as a criterion for determining the antenna signal quality.
Specifically, when the signal quality parameter of the electronic device is triggered to be obtained, the current position of the electronic device may be obtained and recorded, and the current time of the electronic device may be obtained and recorded. Then, according to the current positions of the electronic devices and the current times corresponding to the current positions, the values of the signal quality parameters corresponding to the current positions and the current times can be weighted by combining a specific algorithm.
For example, if the first location corresponding to the first signal quality parameter is the user's bedroom, the corresponding first time is 7 am; the second position corresponding to the second signal quality parameter is on the user's working road, and the corresponding second moment is 9 am; the third position corresponding to the third signal quality parameter is the office of the user, and the corresponding third time is 12 points.
In one day, if the user uses the electronic device in the office for a long time, the weight of the signal quality parameter obtained when the user is located in the office may be set to be large, and if the user uses the electronic device in the bedroom for a short time, the weight of the signal quality parameter obtained when the user is located in the bedroom may be set to be small. For convenience of calculation, the weight of the first signal quality parameter may be set to 0.2, the weight of the second signal quality parameter may be set to 0.3, and the weight of the third signal quality parameter may be set to 0.5, so as to set different weights according to different application scenarios, so that a plurality of signal quality parameters weighted by the weights may be used as a basis for determining a more accurate initialization scheme.
303. And determining an initialization scheme in the antenna initialization process according to the average signal quality of the first antenna and the second antenna.
In some embodiments, the average signal quality of the first antenna and the average signal quality of the second antenna in the preset time period may be compared to obtain a comparison result. Then, according to the comparison result, determining an initialization scheme according to a second preset condition; wherein the second preset condition comprises: and initializing the antenna with high average signal quality as a main set antenna in a preset time period when the antenna is initialized next time, and initializing the other antenna as a diversity antenna.
For example, if the average signal quality obtained by the first antenna in the preset time period is 50% and the average signal quality obtained by the second antenna in the preset time period is 70%, it may be determined that the signal quality of the second antenna in the preset time period is better, and therefore the second antenna is divided into the main set antennas in the initialization scheme, so that the second antenna can be directly initialized to the main set antennas when the antennas are initialized.
In some embodiments, it may be determined whether to initialize the first antenna or the second antenna as the main set antenna by setting a threshold of the average signal quality and comparing the counted values of the average signal quality of the first antenna and the second antenna in a preset time period with the threshold.
For example, the initialization scheme is preset to use the first antenna as a main set antenna and the second antenna as a diversity antenna. At this time, if the signal quality parameter is the antenna efficiency, the threshold of the average signal quality of the antenna for switching the initialization scheme may be set to 50%, and if the average signal quality of the plurality of signal quality parameters acquired by the second antenna within the preset time period reaches or exceeds 50%, when the antenna is initialized, the second antenna is initialized as a main set antenna, and the first antenna is initialized as a diversity antenna.
Of course, in addition to the above-mentioned manner, the threshold may be other specific values according to practical situations, such as a threshold that uses the signal-to-noise ratio of the antenna as a signal quality parameter, and the like, and the specific comparison manner and determination manner may also be determined according to practical situations, and the application is not limited herein.
304. And determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to an initialization scheme, and initializing the antennas according to the division.
When the antennas are initialized, whether the first antenna is used as a main set antenna or the second antenna is used as a main set antenna is determined according to the initialization scheme, and the other antenna is used as a diversity antenna.
After determining the division of the main and diversity antennas in the first and second antennas, the antennas may be initialized according to the initialization scheme.
In some embodiments, the initialization of the antenna may be triggered when the electronic device is restarted, signals are switched, the electronic device enters a standby state, or the electronic device is switched from the standby state to an operating state, and the specific triggering manner may be determined according to actual situations.
Therefore, according to the antenna control method provided by the embodiment of the application, through recording and acquiring the average signal quality of the antenna of the electronic device in a certain application scene, whether the antenna is more suitable as a main set antenna in the preset time period can be more accurately determined, so that the initialization scheme is adjusted according to the main set utilization rate of the antenna, the antenna can be more suitable for the application scene after being initialized according to the initialization scheme, the radiation quality of the antenna after being initialized is improved, and the times of antenna switching are further reduced.
Referring to fig. 4, a diagram illustrates an implementation manner of another antenna control method provided in an embodiment of the present application.
As shown in fig. 4, the method is applied to an electronic device including an antenna including a first antenna and a second antenna, and the control method includes:
401. and acquiring historical use conditions of the antenna, wherein the historical use conditions comprise the time length of the antenna as a main set antenna in a preset time period and a plurality of signal quality parameters.
For avoiding redundancy, the length of time that the antenna is used as the main set antenna in the preset time period and the specific obtaining manner of the signal quality parameter may refer to the embodiments described in fig. 2 to 3.
402. And respectively determining the use rate of the main set and the average signal quality of the first antenna and the second antenna in a preset time period according to the time length of the antenna as the main set antenna in the preset time period and a plurality of signal quality parameters.
In some embodiments, the usage rate of the primary set may be determined by the ratio of the time duration of a certain antenna as the primary set antenna in the preset time period to the total time duration in the preset time period.
In some embodiments, the usage rate of the first antenna in the master set may be obtained by obtaining a parameter in a log saved by the antenna, so as to know the duration of the antenna as the master set antenna in a preset time period. Or detecting the current state of the antenna at intervals to obtain current parameters, and determining the time length of the antenna as a main set antenna in a preset time period according to the antenna states corresponding to the parameters. And after the duration is obtained, calculating the duration and the total duration of the preset time period to obtain the use rate of the master set.
The antenna signal quality at a plurality of time points in a preset time period can be obtained through a plurality of signal quality parameters, so that the radiation effect of the first antenna and the second antenna in the preset time period can be obtained.
In some embodiments, after multiple signal quality parameters are obtained, an average signal quality value may be obtained by averaging the values of the same parameter class.
In other embodiments, or signal quality parameters at different time periods and different locations are weighted, and a value obtained after the weighting is used as a criterion for determining the antenna signal quality.
403. And determining an initialization scheme in the antenna initialization process according to the use rates of the first antenna and the second antenna and the average signal quality.
In some embodiments, the usage rate of the first antenna master set and the usage rate of the second antenna master set may be compared to obtain a comparison result, and then the initialization scheme is determined according to the comparison result and a first preset condition. Wherein the first preset condition comprises: and initializing the antenna with high use rate of the main set as the main set antenna and initializing the other antenna as the diversity antenna when the antenna is initialized next time.
In some embodiments, whether to initialize the first antenna or the second antenna as the primary set antenna may be determined by setting a threshold of the primary set usage and comparing the counted primary set usage of the first antenna and the second antenna in a preset time period with the threshold.
In some embodiments, the average signal quality of the first antenna and the average signal quality of the second antenna in the preset time period may be compared to obtain a comparison result. Then, according to the comparison result, determining an initialization scheme according to a second preset condition; wherein the second preset condition comprises: and initializing the antenna with high average signal quality as a main set antenna in a preset time period when the antenna is initialized next time, and initializing the other antenna as a diversity antenna.
In some embodiments, it may be determined whether to initialize the first antenna or the second antenna as the main set antenna by setting a threshold of the average signal quality and comparing the counted values of the average signal quality of the first antenna and the second antenna in a preset time period with the threshold.
Of course, in addition to the above-mentioned manner, the threshold may be other specific values according to practical situations, such as a threshold that uses the signal-to-noise ratio of the antenna as a signal quality parameter, and the like, and the specific comparison manner and determination manner may also be determined according to practical situations, and the application is not limited herein.
In some embodiments, it may be set that the first antenna or the second antenna is determined to be initialized as the primary set antenna only if the first antenna and the second antenna simultaneously satisfy the threshold requirements corresponding to the two parameters of the primary set usage rate and the average signal quality.
In some embodiments, the obtained usage rate of the main set of the antenna in the preset time period and the average signal quality may be weighted according to actual conditions, so as to obtain a parameter result more meeting actual needs.
Specifically, if the usage rate of the main set of the antenna in the preset time period can better represent the antenna signal radiation requirement in the scene than the average signal quality under a certain condition, the weight value of the usage rate of the main set of the antenna in the preset time period may be set to be higher than the average signal quality, so as to represent the importance of the antenna.
For example, the weight value of the dominant set usage rate of the antenna over a preset period of time may be set to 0.6, and the weight value of the average signal quality of the antenna over a preset period of time may be set to 0.4.
It is understood that the specific weight value may be determined according to actual situations, and the application is not limited thereto.
404. And determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to an initialization scheme, and initializing the antennas according to the division.
When the antennas are initialized, whether the first antenna is used as a main set antenna or the second antenna is used as a main set antenna is determined according to the initialization scheme, and the other antenna is used as a diversity antenna.
After determining the division of the main and diversity antennas in the first and second antennas, the antennas may be initialized according to the initialization scheme.
In some embodiments, the initialization of the antenna may be triggered when the electronic device is restarted, signals are switched, the electronic device enters a standby state, or the electronic device is switched from the standby state to an operating state, and the specific triggering manner may be determined according to actual situations.
Referring to fig. 5, an antenna control apparatus 500 according to an embodiment of the present application is shown.
As shown in fig. 5, the antenna control apparatus 500 includes a situation acquisition module 501, a scheme determination module 502, and an initialization module 503.
The condition obtaining module 501 is configured to obtain a historical use condition of the antenna, where the historical use condition includes at least one of a duration of the antenna serving as a main set antenna in a preset time period and a signal quality parameter of the antenna.
Wherein the historical use condition comprises at least one of the time length of the antenna as a main set antenna in a preset time period and the signal quality parameter of the antenna.
The preset time period may be several hours, one day, several days, even one month, etc., and the specific time period may be determined according to the actual situation. At least one of the time length of the antenna serving as the main set antenna in a preset time period in the previous day and the signal quality parameter of the antenna is counted to determine the use condition of the antenna in the application scene of the previous day.
In some embodiments, the electronic device may obtain the parameters in the log saved by the antenna when a preset time point is reached or a preset trigger condition is triggered. Or detecting the current state of the antenna to obtain the current parameters so as to determine the use condition of the antenna, and storing the parameters related to the use condition of the antenna.
It will be appreciated that the historical usage may include one or more antenna-related parameters. When there are a plurality of parameters, the parameters may be a plurality of parameters at the same time or a plurality of parameters at different times.
In some embodiments, the duration of the antenna as the main set antenna in the preset time period may be recorded when the antenna switches between the main antenna and the diversity antenna, and the duration of the antenna as the main set antenna in the preset time period may be estimated according to the switching manner and the switching interval time between two records.
In other embodiments, other parameters representing the antenna usage rate of the antenna may be derived from the duration of the antenna as the main set within the predetermined time period, and the parameters are used to determine the usage rate of the antenna as the main set antenna.
In some embodiments, the signal quality parameter of the antenna may include one or more combinations of antenna efficiency, signal-to-noise ratio, and data transmission rate of the antenna.
The signal quality of the antenna in the preset time period can be obtained through the antenna efficiency, the signal-to-noise ratio or the data transmission rate of the antenna, and the electronic device can determine which antenna is suitable for being used as the main set antenna in the next time period according to the signal quality parameters of the first antenna and the second antenna.
It is understood that the signal quality parameter may also be other parameters related to the antenna signal quality besides the above parameters, and the present application is not limited thereto.
In some embodiments, the historical usage of the antenna may be obtained once at a certain time interval, or the historical usage of the antenna may be obtained when the antenna of the electronic device needs to be initialized, or the historical usage of the antenna may be obtained when other triggering conditions are met, and for example, when the certain time interval is reached after the state of the antenna is detected to be changed, which condition should be met specifically triggers an action of obtaining the historical usage of the antenna, which may be determined according to an actual situation.
The scheme determining module 502 is configured to determine an initialization scheme in an antenna initialization process according to the historical use condition of the antenna.
The antenna initialization is mainly triggered when the electronic device is switched from a non-network state to a network state, enters a standby state, restarts the electronic device, and the like.
The initialization includes allocating which antenna is the main set antenna and which antenna is the diversity antenna in the first antenna and the second antenna, and reconfiguring the parameters of the antenna according to the allocation condition so that the antenna is switched to the normal working state.
In some embodiments, determining the initialization scheme in the antenna initialization process may be determining a current initialization scheme corresponding to a historical usage of the antenna according to the historical usage. And then, acquiring an original initialization scheme of the pre-stored antenna, and comparing the original initialization scheme with the current initialization scheme.
If the current initialization scheme is different from the original initialization scheme, the original initialization scheme is replaced by the current initialization scheme, and when the antenna needs to be initialized, the antenna is initialized according to the initialization scheme matched with the historical use condition, so that the antenna can better meet the antenna performance requirement required by the application scene after being initialized according to the current initialization scheme.
Of course, if the initialization scheme obtained according to the historical usage situation is consistent with the original initialization scheme, the antenna may still be initialized based on the original initialization scheme.
In some embodiments, the scheme determining module 502 is further configured to determine, according to a duration that the antenna is used as a primary set antenna in a preset time period, primary set utilization rates of the first antenna and the second antenna in the preset time period respectively; and determining an initialization scheme in the antenna initialization process according to the primary set utilization rate of the first antenna and the second antenna in a preset time period.
In some embodiments, the scheme determining module 502 is further configured to compare the usage rates of the first antenna and the second antenna in a preset time period to obtain a comparison result; determining an initialization scheme according to a first preset condition according to a comparison result; the first preset condition includes: when the antenna is initialized next time, the antenna with high use rate of the main set is initialized as the main set antenna, and the other antenna is initialized as the diversity antenna.
In some embodiments, the historical usage includes a plurality of signal quality parameters of the antenna within a preset time period, and the scheme determining module 502 is further configured to determine average signal qualities of the first antenna and the second antenna within the preset time period according to the plurality of signal quality parameters of the antenna within the preset time period; and determining an initialization scheme in the antenna initialization process according to the average signal quality of the first antenna and the second antenna.
In some embodiments, the scheme determining module 502 is further configured to determine an average signal quality of the first antenna and the second antenna in a preset time period according to a plurality of signal quality parameters in the first antenna and the second antenna, respectively; comparing the average signal quality of the first antenna and the average signal quality of the second antenna in a preset time period to obtain a comparison result; determining an initialization scheme according to a second preset condition according to the comparison result; the second preset condition includes: and when the antenna is initialized next time, initializing the antenna with high average signal quality in a preset period as a main set antenna, and initializing the other antenna as a diversity antenna.
An initialization module 503, configured to determine a division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme, and initialize the antennas according to the division.
When the antennas are initialized, whether the first antenna is used as a main set antenna or the second antenna is used as a main set antenna is determined according to the initialization scheme, and the other antenna is used as a diversity antenna.
After determining the division of the main and diversity antennas in the first and second antennas, the antennas may be initialized according to the initialization scheme.
In some embodiments, the initialization of the antenna may be triggered when the electronic device is restarted, signals are switched, the electronic device enters a standby state, or the electronic device is switched from the standby state to an operating state, and the specific triggering manner may be determined according to actual situations.
As can be seen from the above, in the embodiment of the present application, by recording and acquiring the historical use condition of the antenna in the electronic device in a certain application scenario, and determining the antenna initialization scheme according to the historical use condition, a better antenna main and diversity allocation manner is directly initialized during antenna initialization, so as to ensure that the signal quality after each initialization is in a better state, improve the radiation quality of the antenna after initialization, reduce the number of times of antenna switching, and reduce the power consumption of the antenna during operation.
Referring to fig. 6, a block diagram of a scenario determination module 502 provided in an embodiment of the present application is shown. The scenario determination module 502 includes a usage determination submodule 5021 and a first scenario determination submodule 5022, wherein:
the utilization rate determining submodule 5021 is configured to determine the usage rates of the primary set of the first antenna and the second antenna in a preset time period according to the duration of the antenna serving as the primary set antenna in the preset time period.
The first scheme determining sub-module 5022 is configured to determine an initialization scheme in the antenna initialization process according to the usage rates of the main set of the first antenna and the second antenna in a preset time period.
Therefore, according to the embodiment of the application, the usage rate of the main set of the antenna of the electronic device in a certain application scene is recorded and obtained, whether the antenna is more suitable to be used as the main set antenna in the preset time period can be more accurately determined, and therefore the initialization scheme is adjusted according to the usage rate of the main set of the antenna, the antenna can be more suitable for the application scene after being initialized according to the initialization scheme, the radiation quality of the antenna after being initialized is improved, and the times of antenna switching are further reduced.
Referring to fig. 7, a block diagram of another scheme determining module 502 provided in the embodiment of the present application is shown. The solution determination module 502 includes a quality determination sub-module 5023 and a second solution determination sub-module 5024, wherein:
the quality determination submodule 5023 is configured to determine average signal qualities of the first antenna and the second antenna in a preset time period according to a plurality of signal quality parameters of the antenna in the preset time period.
The second scheme determining sub-module 5024 is configured to determine an initialization scheme in an antenna initialization process according to the average signal quality of the first antenna and the second antenna.
Therefore, according to the embodiment of the application, the average signal quality of the antenna of the electronic device in a certain application scene is recorded and obtained, whether the antenna is more suitable to be used as the main set antenna in the preset time period can be more accurately determined, and therefore the initialization scheme is adjusted according to the utilization rate of the main set of the antenna, the antenna can be more suitable for the application scene after being initialized according to the initialization scheme, the radiation quality of the antenna after being initialized is improved, and the times of antenna switching are further reduced.
Referring to fig. 8, a block diagram of a further solution determining module 502 provided in an embodiment of the present application is shown. The solution determination module 502 includes a usage determination submodule 5021, a first solution determination submodule 5022, a quality determination submodule 5023, and a second solution determination submodule 5024.
It should be noted that, the functions of the specific sub-modules in the scheme determining module 502 may refer to the descriptions of fig. 6 to 7, and are not described herein again.
In some embodiments, the obtained usage rate of the main set of the antenna in the preset time period and the average signal quality may be weighted according to actual conditions, so as to obtain a parameter result more meeting actual needs.
Specifically, if the usage rate of the main set of the antenna in the preset time period can better represent the antenna signal radiation requirement in the scene than the average signal quality under a certain condition, the weight value of the usage rate of the main set of the antenna in the preset time period may be set to be higher than the average signal quality, so as to represent the importance of the antenna.
For example, the weight value of the dominant set usage rate of the antenna over a preset period of time may be set to 0.6, and the weight value of the average signal quality of the antenna over a preset period of time may be set to 0.4.
It is understood that the specific weight value may be determined according to actual situations, and the application is not limited thereto.
Therefore, the average signal quality and the master set utilization rate of the antenna in the electronic equipment in a certain application scene are recorded and obtained simultaneously, whether the antenna is more suitable to be used as the master set antenna in the preset time period can be determined more accurately, the initialization scheme is adjusted according to the master set utilization rate of the antenna, the antenna can be more suitable for the application scene after being initialized according to the initialization scheme, the radiation quality of the antenna after initialization is improved, and the times of antenna switching are further reduced.
In this embodiment, the antenna control apparatus and the antenna control method in the above embodiments belong to the same concept, and any method provided in the embodiment of the antenna control method may be operated on the antenna control apparatus, and a specific implementation process thereof is described in detail in the embodiment of the antenna control method, and any combination may be adopted to form an optional embodiment of the application, and details are not described here.
The embodiment of the application also provides electronic equipment which can be equipment such as a smart phone, a tablet computer, a desktop computer, a notebook computer and a palm computer. Referring to fig. 9, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.
The processor 600 is a control center of the electronic device 600, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by running or loading an application program stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the electronic device 600.
The memory 602 may be used to store software programs and modules, and the processor 601 executes various functional applications and image acquisition by executing the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
In this embodiment of the application, the processor 601 in the electronic device 600 loads instructions corresponding to processes of one or more application programs into the memory 602, and the processor 601 runs the application programs stored in the memory 602, so as to implement various functions as follows:
determining whether the first antenna and the second antenna are invoked;
when the first antenna and the second antenna are both called, acquiring a device state and a signal quality parameter of the electronic device, wherein the signal quality parameter comprises a signal quality parameter of the antenna and/or a paging channel error rate;
determining whether the device status and the signal quality parameter satisfy a preset condition for turning off the second antenna;
and if the equipment state and the signal quality parameter meet the preset condition of closing the second antenna, closing the second antenna.
In some embodiments, the processor 601 may be further configured to:
acquiring historical use conditions of the antenna, wherein the historical use conditions comprise at least one of the time length of the antenna serving as a main set antenna in a preset time period and the signal quality parameters of the antenna;
determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna;
and determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme, and initializing the antennas according to the division.
In some embodiments, the processor 601 may be further configured to:
respectively determining the usage rates of the first antenna and the second antenna in a primary set in a preset time period according to the time length of the antenna as the primary set antenna in the preset time period;
and determining an initialization scheme in the antenna initialization process according to the primary set utilization rate of the first antenna and the second antenna in a preset time period.
In some embodiments, the processor 601 may be further configured to:
comparing the usage rates of the first antenna and the second antenna in a main set within a preset time period to obtain a comparison result;
determining the initialization scheme according to a first preset condition according to a comparison result;
the first preset condition includes: and when the antenna is initialized next time, initializing the antenna with high use rate of the main set as the antenna of the main set, and initializing the other antenna as the diversity antenna.
In some embodiments, the processor 601 may be further configured to:
respectively determining the average signal quality of the first antenna and the second antenna in a preset time period according to a plurality of signal quality parameters of the antenna in the preset time period;
and determining an initialization scheme in the antenna initialization process according to the average signal quality of the first antenna and the second antenna.
In some embodiments, the processor 601 may be further configured to:
the signal quality parameters are multiple, and according to the multiple signal quality parameters in the first antenna and the second antenna, the average signal quality of the first antenna and the average signal quality of the second antenna in the preset time period are respectively determined;
comparing the average signal quality of the first antenna and the average signal quality of the second antenna in the preset time period to obtain a comparison result;
determining the initialization scheme according to a second preset condition according to the comparison result;
the second preset condition includes: and initializing the antenna with high average signal quality as the main set antenna in the preset time period when the antenna is initialized next time, and initializing the other antenna as the diversity antenna.
In some embodiments, the processor 601 may be further configured to:
when the antenna is switched between the main antenna and the diversity antenna, counting the signal quality parameters of the current antenna after the switching is finished and the division condition of the main antenna and the diversity antenna of the antenna;
and storing the signal quality parameters of the current antenna and the division conditions of the main antenna and the diversity antenna of the antenna after the switching is finished as historical use conditions.
The electronic equipment provided by the embodiment of the application can be directly initialized into a better distribution mode of antenna main diversity and antenna diversity during antenna initialization, so that the signal quality after each initialization is ensured to be in a better state, the radiation quality of the antenna after initialization can be improved, the switching frequency of the antenna can be reduced, and the power consumption of the antenna during working is reduced.
Referring also to fig. 10, in some embodiments, the electronic device 600 may further include: a display 603, a radio frequency circuit 604, an audio circuit 605, a wireless fidelity module 606, and a power supply 607. The display 603, the rf circuit 604, the audio circuit 605, the wireless fidelity module 606 and the power supply 607 are electrically connected to the processor 601, respectively.
The display 603 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 603 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 604 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 605 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The wi-fi module 606 may be used for short-range wireless transmission, may assist a user in sending and receiving e-mail, browsing websites, accessing streaming media, etc., and provides wireless broadband internet access for the user.
The power supply 607 may be used to power various components of the electronic device 600. In some embodiments, the power supply 607 may be logically coupled to the processor 601 through a power management system, such that the power management system may manage charging, discharging, and power consumption management functions.
Although not shown in fig. 10, the electronic device 600 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
Embodiments of the present application further provide a storage medium, which stores a plurality of instructions, where the instructions are suitable for being loaded by a processor to perform the image obtaining method in the foregoing embodiments, such as: acquiring historical use conditions of the antenna, wherein the historical use conditions comprise at least one of the time length of the antenna serving as a main set antenna in a preset time period and the signal quality parameters of the antenna; determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna; and determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme, and initializing the antennas according to the division.
It should be noted that, as one of ordinary skill in the art would understand, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable medium, which may include but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The antenna control method, the antenna control device, the storage medium, and the electronic device provided in the embodiments of the present application are described in detail above, and specific examples are applied herein to explain the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understanding the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. An antenna control method is applied to an electronic device, the electronic device comprises an antenna, the antenna comprises a first antenna and a second antenna, and the method comprises the following steps:
acquiring historical use conditions of the antenna, wherein the historical use conditions comprise at least one of the time length of the antenna serving as a main set antenna in a preset time period and the signal quality parameters of the antenna;
determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna;
and determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme, and initializing the antennas according to the division.
2. The antenna control method of claim 1, wherein the historical usage includes a duration of the antenna as a main set antenna in a preset time period, and the determining an initialization scheme in an antenna initialization process according to the historical usage of the antenna includes:
respectively determining the usage rates of the first antenna and the second antenna in a primary set in a preset time period according to the time length of the antenna as the primary set antenna in the preset time period;
and determining an initialization scheme in the antenna initialization process according to the primary set utilization rate of the first antenna and the second antenna in a preset time period.
3. The antenna control method of claim 2, wherein the determining the initialization scheme in the antenna initialization process comprises:
comparing the usage rates of the first antenna and the second antenna in a main set within a preset time period to obtain a comparison result;
determining the initialization scheme according to a first preset condition according to a comparison result;
the first preset condition includes: and when the antenna is initialized next time, initializing the antenna with high use rate of the main set as the antenna of the main set, and initializing the other antenna as the diversity antenna.
4. The antenna control method according to any one of claims 1 to 3, wherein the historical usage includes a plurality of signal quality parameters of the antenna in the preset time period, and the determining an initialization scheme in an antenna initialization process according to the historical usage of the antenna includes:
respectively determining the average signal quality of the first antenna and the second antenna in a preset time period according to a plurality of signal quality parameters of the antenna in the preset time period;
and determining an initialization scheme in the antenna initialization process according to the average signal quality of the first antenna and the second antenna.
5. The antenna control method of claim 4, wherein the signal quality parameter is plural, and the determining the initialization scheme in the antenna initialization process includes:
according to the signal quality parameters of the first antenna and the second antenna, respectively determining the average signal quality of the first antenna and the second antenna in the preset time period;
comparing the average signal quality of the first antenna and the average signal quality of the second antenna in the preset time period to obtain a comparison result;
determining the initialization scheme according to a second preset condition according to the comparison result;
the second preset condition includes: and initializing the antenna with high average signal quality as the main set antenna in the preset time period when the antenna is initialized next time, and initializing the other antenna as the diversity antenna.
6. The antenna control method of claim 4, wherein the signal quality parameters include one or more combinations of antenna efficiency, signal-to-noise ratio, and data transmission rate of the antenna.
7. The antenna control method of claim 1, wherein the obtaining historical usage of the antenna comprises:
when the antenna is switched between the main antenna and the diversity antenna, counting the signal quality parameters of the current antenna after the switching is finished and the division condition of the main antenna and the diversity antenna of the antenna;
and storing the signal quality parameters of the current antenna and the division conditions of the main antenna and the diversity antenna of the antenna after the switching is finished as historical use conditions.
8. The antenna control method according to claim 1 or 7, wherein the determining an initialization scheme in an antenna initialization process according to the historical use condition of the antenna comprises:
determining a current initialization scheme corresponding to the historical use condition according to the historical use condition of the antenna;
and acquiring a pre-stored original initialization scheme of the antenna, and replacing the original initialization scheme with the current initialization scheme when the current initialization scheme is different from the original initialization scheme.
9. An antenna control device applied to an electronic device, the electronic device including an antenna, the antenna including a first antenna and a second antenna, the device comprising:
the condition acquisition module is used for acquiring historical use conditions of the antenna, wherein the historical use conditions comprise at least one of the time length of the antenna serving as a main set antenna in a preset time period and the signal quality parameters of the antenna;
the scheme determining module is used for determining an initialization scheme in the antenna initialization process according to the historical use condition of the antenna; and
and the initialization module is used for determining the division of a main antenna and a diversity antenna in the first antenna and the second antenna according to the initialization scheme and initializing the antennas according to the division.
10. The antenna control apparatus of claim 9, wherein the historical usage includes a duration of time that the antenna is a dominant set of antennas for a preset period of time, and the scheme determination module includes:
the utilization rate determining submodule is used for respectively determining the primary set utilization rates of the first antenna and the second antenna in a preset time period according to the duration of the antennas serving as the primary set antennas in the preset time period; and
and the first scheme determining submodule is used for determining an initialization scheme in the antenna initialization process according to the use rates of the first antenna and the second antenna in a main set in a preset time period.
11. The antenna control apparatus of claim 9 or 10, wherein the historical usage includes a plurality of signal quality parameters of the antenna over the preset time period, and the scheme determination module comprises:
the quality determination submodule is used for respectively determining the average signal quality of the first antenna and the average signal quality of the second antenna in a preset time period according to a plurality of signal quality parameters of the antennas in the preset time period; and
and the second scheme determining submodule is used for determining an initialization scheme in the antenna initialization process according to the average signal quality of the first antenna and the second antenna.
12. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the antenna control method according to any one of claims 1 to 8.
13. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the antenna control method according to any one of claims 1 to 8 by calling the computer program stored in the memory.
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 CN108377162A (en) 2018-08-07
CN108377162B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112202467B (en) * 2020-09-02 2021-09-21 珠海格力电器股份有限公司 Method, device, equipment and medium for controlling main diversity change-over switch
CN114531173B (en) * 2022-04-06 2023-06-23 展讯通信(深圳)有限公司 Multi-antenna frequency division duplex mode terminal receiving sensitivity optimization method and device 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

Also Published As

Publication number Publication date
CN108377162A (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN108347277B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN108430101B (en) Antenna closing method and device, storage medium and electronic equipment
CN109213539B (en) Memory recovery method and device
CN110633151B (en) Method, device and storage medium for balancing distributed message issuing cluster partitions
CN107402790B (en) Application program starting method and device, storage medium and terminal
US8514717B2 (en) Smart connection manager
US9237460B2 (en) Traffic control method and device
CN107635078B (en) Game control method and device
US11689655B2 (en) Method for adjusting parameter of audio service and terminal
WO2014063487A1 (en) Traffic control method and device
US11973684B2 (en) Link aggregation implementation method and related product
CN108377162B (en) Antenna control method, antenna control device, storage medium and electronic equipment
WO2019072180A1 (en) Method and apparatus for allocating resources to application
CN110933706A (en) Network communication setting method, device, storage medium and terminal
CN107943570B (en) Application management method and device, storage medium and electronic equipment
CN107908273B (en) Application management method and device, storage medium and electronic equipment
CN112783731B (en) Abnormal device detection method, device and storage medium
CN111278070B (en) Method and system for measuring adjacent cell, electronic device and storage medium
US20160241889A1 (en) Video channel allocation management method and related device, and communication system
CN110489177B (en) Application control method and device, storage medium and terminal equipment
CN109375995B (en) Application freezing method and device, storage medium and electronic equipment
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
CN114265495A (en) Application program processing method, intelligent terminal and storage medium
CN107967178B (en) Resource allocation method, resource allocation device, mobile terminal and 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