CN108551685B - 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
CN108551685B
CN108551685B CN201810162219.XA CN201810162219A CN108551685B CN 108551685 B CN108551685 B CN 108551685B CN 201810162219 A CN201810162219 A CN 201810162219A CN 108551685 B CN108551685 B CN 108551685B
Authority
CN
China
Prior art keywords
antenna
application program
priority
order diversity
data volume
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
CN201810162219.XA
Other languages
Chinese (zh)
Other versions
CN108551685A (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 CN201810162219.XA priority Critical patent/CN108551685B/en
Publication of CN108551685A publication Critical patent/CN108551685A/en
Application granted granted Critical
Publication of CN108551685B publication Critical patent/CN108551685B/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/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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • 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)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (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 antenna control method comprises the following steps: if the antenna of the electronic equipment is in a high-order diversity reception state, acquiring an application program set which is currently operated and is related to the antenna; acquiring the priority of each application program in the application program set; if the application program with the first priority is included, keeping the antenna in a high-order diversity receiving state; if the application program of the second-level priority is included and the application program of the first-level priority is not included, controlling the antenna to be in a high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic equipment; and if only the application program with the third-level priority is included, controlling the antenna to exit the high-level diversity receiving state. Whether the high-order diversity receiving state exits or not is judged according to the priority of the application program, and the power consumption of the electronic equipment is improved on the premise of meeting the receiving performance.

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. However, in the using process, in order to improve the antenna throughput, the antenna is generally controlled to be in a high-order diversity receiving state all the time. Under the condition that some antennas are not required to be in a high-order diversity receiving state, the antennas still enter the high-order diversity receiving state, power consumption is increased, and user use is affected.
Disclosure of Invention
The embodiment of the application provides an antenna control method, an antenna control device, a storage medium and an electronic device, which can save power consumption.
The embodiment of the application provides an antenna control method, which is applied to electronic equipment and comprises the following steps:
if the antenna of the electronic equipment is in a high-order diversity reception state, acquiring an application program set which is currently operated and is related to the antenna;
acquiring the priority of each application program in the application program set;
if the application program set comprises the application program of the first-level priority, keeping the antenna in a high-order diversity receiving state;
if the application program set comprises the application program with the second priority and does not comprise the application program with the first priority, controlling the antenna to be in a high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic equipment;
and if the application program set only comprises the application programs with the third-level priority, controlling the antenna to exit a high-order diversity receiving state.
The embodiment of the present application further provides an antenna control apparatus, which is applied to an electronic device, and includes:
the application program set acquisition module is used for acquiring an application program set which is currently operated and is related to the antenna if the antenna of the electronic equipment is in a high-order diversity receiving state;
the priority acquisition module is used for acquiring the priority of each application program in the application program set;
a control module, configured to keep the antenna in a high-order diversity reception state if the application program set includes an application program of a first-order priority;
the antenna is further configured to control the antenna to be in a high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic device if the application set includes an application program with a second-order priority and does not include the application program with the first-order priority;
and the antenna is further configured to control the antenna to exit the high-order diversity reception state if only the application with the third-level priority is included in the application set.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer is caused to execute the above antenna control method.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used for executing the antenna control method by calling the computer program stored in the memory.
According to the antenna control method provided by the embodiment of the application, if the antenna of the electronic device is in a high-order diversity reception state, the currently running application program set related to the antenna is acquired, and then the priority of each application program in the application program set is acquired. If the application programs with the first-level priority are included, the current state is kept; if the application program of the first-level priority is not included, but the application program of the second-level priority is included, controlling whether to keep or quit a high-level diversity receiving state according to the operation information of the electronic equipment; if only third level priority applications are included, then the current state is exited. Whether the high-order diversity receiving state exits or not is judged by determining the priority of the currently running application program, so that the power consumption of the electronic equipment is effectively improved, the standby time of the electronic equipment is prolonged, and the effect on the electronic equipment with limited electric quantity is obvious on the premise of meeting the receiving performance of the electronic equipment.
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 first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a first flowchart of an antenna control method according to an embodiment of the present application.
Fig. 4 is a second flowchart of an antenna control method according to an embodiment of the present application.
Fig. 5 is a third flowchart illustrating an antenna control method according to an embodiment of the present application.
Fig. 6 is a fourth flowchart illustrating an antenna control method according to an embodiment of the present application.
Fig. 7 is a fifth flowchart illustrating an antenna control method according to an embodiment of the present application.
Fig. 8 is a sixth flowchart of an antenna control method according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a first antenna control apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a second antenna control apparatus according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of a third antenna control apparatus according to an embodiment of the present application.
Fig. 12 is a third schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 13 is a fourth schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The terms "first," "second," "third," and the like in the description and in the claims of the present application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, or apparatus, electronic device, system comprising a list of steps is not necessarily limited to those steps or modules or units explicitly listed, may include steps or modules or units not explicitly listed, and may include other steps or modules or units inherent to such process, method, apparatus, electronic device, or system.
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 control device can be arranged in the electronic equipment, and the electronic equipment can be a smart phone, a tablet computer and the like.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. In this embodiment, the electronic device 100 includes a display screen 10, a middle frame 20, a circuit board 30, a battery 40, and a rear cover 50.
Wherein the display screen 10 is mounted on the rear cover 50 to form a display surface of the electronic device 100. The display screen 10 serves as a front housing of the electronic device 100, and forms an accommodating space with the rear cover 50 for accommodating other electronic components or functional modules of the electronic device 100. Meanwhile, the display screen 10 forms a display surface of the electronic apparatus 100 for displaying information such as images, texts, and the like. The Display screen 10 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) Display screen.
In some embodiments, a glass cover plate may be disposed over the display screen 10. Wherein, the glass cover plate can cover the display screen 10 to protect the display screen 10 and prevent the display screen 10 from being scratched or damaged by water.
In some embodiments, as shown in FIG. 1, the display screen 10 may include a display area 11 and a non-display area 12. The display area 11 performs a display function of the display screen 10 for displaying information such as images and texts. The non-display area 12 does not display information. The non-display area 12 may be used to set functional modules such as a camera, a receiver, a proximity sensor, and the like. In some embodiments, the non-display area 12 may include at least one area located at upper and lower portions of the display area 11.
Referring to fig. 2, fig. 2 is a second structural schematic diagram of an electronic device according to an embodiment of the present disclosure. In this embodiment, the display screen 10 may be a full-face screen. At this time, the display screen 10 may display information in a full screen, so that the electronic apparatus 100 has a large screen occupation ratio. The display screen 10 comprises only the display area 11 and no non-display area. At this time, functional modules such as a camera and a proximity sensor in the electronic apparatus 100 may be hidden under the display screen 10, and the fingerprint identification module of the electronic apparatus 100 may be disposed on the back of the electronic apparatus 100.
The middle frame 20 may have a thin plate-like or sheet-like structure, or may have a hollow frame structure. The middle frame 20 can be accommodated in the accommodating space formed by the display screen 10 and the rear cover 50. The middle frame 20 is used for providing a supporting function for the electronic components or the functional modules in the electronic device 100, so as to mount the electronic components or the functional modules in the electronic device together. For example, functional modules such as a camera, a receiver, a circuit board, and a battery in the electronic apparatus may be mounted on the center frame 20 for fixing. In some embodiments, the material of the middle frame 20 may include metal or plastic.
The circuit board 30 is mounted inside the receiving space. For example, the circuit board 30 may be mounted on the middle frame 20 and received in the receiving space together with the middle frame 20. The circuit board 30 may be a motherboard of the electronic device 100. The circuit board 30 is provided with a grounding point to realize grounding of the circuit board 30. One or more of a motor, a microphone, a speaker, a receiver, an earphone interface, a universal serial bus interface (USB interface), a camera, a proximity sensor, an ambient light sensor, a gyroscope, and a processor may be integrated on the circuit board 30. Meanwhile, the display screen 10 may be electrically connected to the circuit board 30.
In some embodiments, display control circuitry is disposed on the circuit board 30. The display control circuit outputs an electric signal to the display screen 10 to control the display screen 10 to display information.
The battery 40 is mounted inside the receiving space. For example, the battery 40 may be mounted on the middle frame 20 and be received in the receiving space together with the middle frame 20. The battery 40 may be electrically connected to the circuit board 30 to enable the battery 40 to power the electronic device 100. The circuit board 30 may be provided thereon with a power management circuit. The power management circuit is used to distribute the voltage provided by the battery 40 to the various electronic components in the electronic device 100.
The rear cover 50 is used to form an outer contour of the electronic device 100. The rear cover 50 may be integrally formed. In the forming process of the rear cover 50, a rear camera hole, a fingerprint identification module mounting hole and the like can be formed in the rear cover 50.
In the present embodiment, with continued reference to fig. 2, the electronic device 100 further includes a first antenna 61, a second antenna 62, a third antenna 63, and a fourth antenna 64. The first antenna 61, the second antenna 62, the third antenna 63, and the fourth antenna 64 are electrically connected to the circuit board 30 in the electronic apparatus 100. The first antenna 61, the second antenna 62, the third antenna 63, and the fourth antenna 64 may be provided on the middle frame 20 or on the rear cover 50. The first antenna 61, the second antenna 62, the third antenna 63 and the fourth antenna 64 are arranged at intervals. For example, the first antenna 61, the second antenna 62, the third antenna 63, and the fourth antenna 64 are disposed at four corners of the electronic apparatus 100, respectively.
Wherein the first antenna 61, the second antenna 62, the third antenna 63 and the fourth antenna 64 are used for transmitting and/or receiving signals. For example, the first antenna 61, the second antenna 62, the third antenna 63, and the fourth antenna 64 may be used to transmit and/or receive radio frequency signals. It should be noted that the first antenna 61, the second antenna 62, the third antenna 63, and the fourth antenna 64 may all perform transmission and reception of signals separately.
In the process of the electronic device 100 communicating with a base station or other electronic devices, one of the first antenna 61, the second antenna 62, the third antenna 63 and the fourth antenna 64 serves as a main set antenna, and the other three serve as diversity antennas. And, the main set antenna and the diversity antenna may be switched with each other. Wherein the main set antennas perform transmission and reception of signals simultaneously, and the diversity antennas receive only signals without transmitting signals.
Referring to fig. 3, fig. 3 is a first flowchart illustrating an antenna control method according to an embodiment of the present disclosure. The antenna control method provided by the embodiment of the application is applied to the electronic equipment, and the specific flow can be as follows:
and 110, if the antenna of the electronic equipment is in a high-order diversity receiving state, acquiring a currently running application program set related to the antenna.
The high Order Diversity reception state (HORxD) mainly refers to a state in which the electronic device supports simultaneous reception of 4 antennas.
If the antenna of the current electronic equipment is in a high-order diversity reception state, acquiring a plurality of application programs which are currently operated and are related to the antenna, and forming an application program set by the plurality of application programs. The application program related to the antenna refers to an application program for data transmission through the antenna, such as an instant messaging application program, an online video application program, and the like.
And 120, acquiring the priority of each application program in the application program set.
The application program set comprises a plurality of application programs, and each application program corresponds to one priority. The priority may be preset by a user, or may be set by the electronic device according to the operation information or classification information of the application program. For example, the priority is set according to the category of the application program, and the priority of the instant messaging application program is higher and is set as the first-level priority; setting the priority of the online video application program as a second-level priority when the priority is medium; the application program of the backup class has a lower priority and is set as a third priority. The user can also set the priority of each application program, for example, the application program of the online game can be set as the first priority according to the user instruction.
It should be noted that, in this embodiment, the priority of the application is divided into three levels, but the number of levels of the priority of the application is not limited, and the priority of the application may include four levels, five levels, or even more.
And 130, if the application program set comprises the application program with the first level priority, keeping the antenna in a high-order diversity receiving state.
If the application program set is detected to include the application program with the first-level priority, the currently running application program is important for the user, and good antenna receiving performance needs to be kept.
It should be noted that, as long as the application program of the first level of priority is included in the application program set, the antenna is kept in the high-order diversity reception state, regardless of whether the application program of the second level of priority is included or not, or the application program of the third level of priority is included.
140, if the application program set includes the application program with the second level priority and does not include the application program with the first level priority, controlling the antenna to be in the high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic device.
If the application set includes the application program with the second level priority and does not include the application program with the first level priority, it is indicated that the currently running application program is not particularly important, but is also more important, and at this time, the antenna is controlled to be in the high-order diversity reception state or to exit the high-order diversity reception state according to the running information of the electronic device. The operation information may include a remaining power of the electronic device, a data amount of the transmission data, and the like.
And 150, if the application program set only comprises the application program with the third-level priority, controlling the antenna to exit the high-level diversity receiving state.
If the application program set only includes the application program with the third-level priority, does not include the application program with the first-level priority, and does not include the application program with the second-level priority, it indicates that the currently running application program is not of high importance to the user, and the antenna can be controlled to exit the high-level diversity reception state.
Whether the high-order diversity receiving state exits or not is judged by determining the priority of the currently running application program, so that the power consumption of the electronic equipment is effectively improved, the standby time of the electronic equipment is prolonged, and the effect on the electronic equipment with limited electric quantity is obvious on the premise of meeting the receiving performance of the electronic equipment.
Referring to fig. 4, fig. 4 is a second flowchart illustrating an antenna control method according to an embodiment of the present disclosure. In the antenna control method provided in the embodiment of the present application, step 140 may include the following steps:
and 201, acquiring the data volume of the electronic equipment for data transmission through the antenna.
If the application program set comprises the application program with the second-level priority and does not comprise the application program with the first-level priority, the data volume transmitted by the electronic equipment through the antenna is firstly obtained, and the data volume comprises the data volume received by the electronic equipment through the antenna in unit time, such as the sum of the data volumes received in 1 minute or the average value of the data volumes received in 1 minute.
And 202, if the data quantity is larger than the preset data quantity threshold value, controlling the antenna to be in a high-order diversity receiving state.
If the data volume is larger than the preset data volume threshold, which indicates that the currently received data volume is larger, the antenna is controlled to be in a high-order diversity receiving state, so that the electronic equipment can receive data quickly, and the problem that the electronic equipment receives data for too long time to influence the use of a user is avoided.
And 203, if the data quantity is not greater than the preset data quantity threshold value, controlling the antenna to exit the high-order diversity receiving state.
And if the data volume is not greater than the preset data volume threshold value, which indicates that the currently received data volume is not large, controlling the antenna to exit from the high-order diversity receiving state, so that the electronic equipment reduces the power consumption of the electronic equipment while the time length for receiving the data is not influenced basically.
Referring to fig. 5, fig. 5 is a third flowchart illustrating an antenna control method according to an embodiment of the present disclosure. In the antenna control method provided in the embodiment of the present application, step 140 may further include the following steps:
and 211, acquiring a plurality of target application programs with second-level priority.
First, a plurality of target applications with second-level priorities are obtained from the program set, and the number, name, category and the like of the target applications can also be included.
And 212, obtaining the weight value of each target application program according to the running information of each target application program.
The running information may include at least one of the latest trigger time, whether the application is a foreground application, whether the application is a background application, the data volume received by the historical data, the total running time after the trigger, the probability of switching the background application to the foreground application, and the like.
The method comprises the steps of firstly obtaining running information of each target application program, and then obtaining a weight value of each target application program according to the running information. For example, the weight value of the foreground application is large, such as may be 1. And sequencing according to the latest triggering time and the duration of the current time, and sequentially giving a weight value, wherein the weight value is larger when the time is closer, and the weight value is smaller when the time is farther. The larger the amount of data received by the history data, the larger the weight value.
It should be noted that a target application program may obtain a plurality of weight values according to different operation information, and then calculate the weight values in proportion through an algorithm to obtain a final weight value, where the final weight value is less than or equal to 1. If foreground application can directly set weight value to 1, background application program can calculate weight value to 0.5, etc.
213, the sub-data amount of the data transmission of each target application is obtained.
And acquiring the sub-data volume of the data transmission of each target application program, wherein the sub-data volume can be the sum of the received data in unit time of a single target application program, such as the sum of the data volume of the received data in 1 minute, or the sum of the received data in 1 minute is divided by 60 to obtain the data volume of the received data in 1 second.
214, calculating to obtain a plurality of weighted sub-data volumes according to the weighted values and the sub-data volumes of each target application program.
And multiplying the weight value of each target application program by the sub-data quantity value, and calculating to obtain the weight sub-data quantity of each target application program.
215, obtaining the target data volume according to the plurality of weighted sub-data volumes.
And adding the weight sub-data of each target application program to obtain a target data volume. The target data amount is a value obtained by multiplying the weight of each application, so that some important target applications with small data amount can increase the specific gravity of the target applications, such as target applications in banks. Some target applications with general importance but large data volume can reduce their specific gravity, such as online video-like target applications.
And 216, if the target data volume is larger than a preset target data volume threshold value, controlling the antenna to be in a high-order diversity receiving state.
217, if the target data amount is not greater than the preset target data amount threshold, controlling the antenna to exit the high-order diversity reception state.
And if the target data volume calculated by the weight value is larger than a preset target data volume threshold value, controlling the antenna to be in a high-order diversity receiving state, and if the target data volume calculated by the weight value is not larger than the preset target data volume threshold value, controlling the antenna to exit the high-order diversity receiving state. The data size is not judged only by the data size of the target application program any more, and the data size is adjusted by the corresponding weight value of the target application program, so that each target application program can reasonably control the antenna. For example, the influence of some target applications which are important but have small data quantity on the result is improved, and the influence of some target applications with particularly large data quantity on the result is reduced.
Referring to fig. 6, fig. 6 is a fourth flowchart illustrating an antenna control method according to an embodiment of the present application. In the antenna control method provided in the embodiment of the present application, step 212 may further include the following steps:
221, initial weight values of the respective target applications are obtained.
The initial weight value of each target application is obtained, for example, the initial weight value of each target application can be obtained through a classification of each target application, such as 0.1 for an online video class, 0.3 for a navigation class, 0.6 for an instant messaging class, and the like. The initial weight value of each target application program can also be preset, wherein the initial weight value can be set by a manufacturer in a default mode or can be set by a user. It is also possible that all target applications initially default to a fixed initial weight value.
And 222, adjusting the initial weight value according to the total running time and the latest trigger time of each target application program to obtain the weight value of each target application program.
And adjusting the initial weight value according to the total running time and the latest triggering time of each target application program. For example, a preset total running time may be preset, and when the total running time of the target application is greater than the preset total running time, the weight value of the target application is increased. If the weight value is larger than one threshold, the weight value of a certain proportion is increased, and if the weight value is larger than two thresholds, the weight value of a certain proportion is increased until the weight value of the maximum proportion is increased. If the preset total running time is 60 minutes, when the total running time of the target application program is greater than 60 minutes, the weight value of 10% is increased, the weight value of 70 minutes is increased, the weight value of 10% is increased, the weight value of 80 minutes is increased, and the weight value of 10% is increased until the weight value of 50% is increased, and the weight value is not increased any more than time.
And the latest one-time trigger time of the target application program can be acquired, if the latest one-time trigger time is less than the preset time, the weight value of the target application program is increased, and if the latest one-time trigger time is more than the preset time, the weight value of the target application program is reduced. Or a time range may be set first, if the time range is within the time range, the weight value is not changed, if the time range is smaller than the minimum value of the time range, the weight value of the target application program is increased, and if the time range is larger than the maximum value of the time range, the weight value of the target application program is decreased.
And the final weight value can be obtained after two times of adjustment according to the total running time and the latest triggering time. Or after two weight values are obtained according to the total running time and the latest triggering time, the average value is taken to obtain the final weight value.
Referring to fig. 7, fig. 7 is a fifth flowchart illustrating an antenna control method according to an embodiment of the present application. In the antenna control method provided in the embodiment of the present application, step 140 may further include the following steps:
and 231, acquiring the current power of the electronic equipment.
The method includes the steps of firstly obtaining the current electric quantity of the electronic equipment, namely the current residual electric quantity of the electronic equipment. And comparing the current power amount to a first power amount threshold.
232, if the current electric quantity is larger than the first electric quantity threshold value, the antenna is controlled to be in a high-order diversity receiving state.
A first power threshold is preset, for example, 20% of the total power, and if the current power is greater than the first power threshold, it indicates that the current remaining power of the current electronic device is sufficient, the antenna is controlled to be in a high-order diversity reception state.
And 233, if the current power is not greater than the first power threshold, controlling the antenna to exit the high-order diversity reception state.
And if the current electric quantity is smaller than the first electric quantity threshold value, the current residual electric quantity of the current electronic equipment is insufficient, and the antenna exits the high-order diversity receiving state. Therefore, the situation that the power of the electronic equipment is quickly consumed to cause shutdown, and key functions such as a call function cannot be used is prevented.
In some embodiments, after step 232, the method may further include the steps of:
and 234, if the current electric quantity is smaller than a second electric quantity threshold value, acquiring the data quantity of the electronic equipment through antenna data transmission, wherein the second electric quantity threshold value is larger than the first electric quantity threshold value.
A second power threshold is preset, for example, 50% of the total power, where the second power threshold is greater than the first power threshold, and if the current power is greater than the first power threshold and less than the second power threshold, it indicates that the remaining power of the electronic device is not sufficient, but not very low. At this time, the data volume of the data transmission of the electronic device through the antenna is obtained, and the data volume is the uploaded data volume, the downloaded data volume, or the sum of the uploaded data volume and the downloaded data volume. The data amount refers to the sum of data amounts in a statistical unit time, and is 1 minute, 3 minutes, 5 minutes, or the like.
And 235, if the data quantity is larger than the preset data quantity threshold value, controlling the antenna to be in a high-order diversity receiving state.
If the data volume is larger than the data volume threshold, which indicates that the current electric quantity is not enough or not very little, if the data volume transmitted by the antenna is larger than the data volume threshold, the antenna is controlled to be in a high-order diversity receiving state.
And 236, if the data quantity is not greater than the preset data quantity threshold value, controlling the antenna to exit the high-order diversity receiving state.
If the data volume is not greater than the data volume threshold, which indicates that the current electric quantity is not sufficient or very small, if the data volume transmitted by the antenna is also lower than the data volume threshold, the antenna can be made to exit the high-order diversity reception state, so as to save power consumption.
Referring to fig. 8, fig. 8 is a sixth flowchart illustrating an antenna control method according to an embodiment of the present disclosure. The antenna control method provided by the embodiment of the application can have the following specific processes:
301, if the antenna of the electronic device is not in the high-order diversity reception state, acquiring the radio resource control state of the antenna.
The Radio Resource Control (RRC) state includes a Radio Resource Control Idle (RRC-Idle) state and a Radio Resource Control Connected (RRC-Connected) state.
When the antenna of the electronic equipment is not in the high-order diversity reception state, the radio resource control state of the antenna is acquired.
In some embodiments, acquiring the radio resource control state of the antenna may further be preceded by: acquiring the current electric quantity of the electronic equipment; and if the current electric quantity is larger than the third electric quantity threshold value, acquiring the wireless resource control state of the antenna.
And when the residual electric quantity of the electronic equipment is larger than the third electric quantity threshold value, the wireless resource control state of the antenna is acquired. Otherwise, if the current electric quantity is smaller than the third electric quantity threshold value, the antenna is kept not in the high-order diversity reception state. The third charge threshold may be greater than or equal to the first charge threshold.
302, if the radio resource control status of the antenna is a connection status, obtaining the channel quality index of the antenna.
If the RRC connection state of the antenna is a connection state, that is, the antenna is in a Radio Resource Control Connected (RRC-Connected), a Channel Quality Indicator (CQI) of the antenna is obtained. Wherein the channel quality indicator is used to influence the network side resource allocation.
In some embodiments, if the RRC state of the antenna is Idle, i.e., the antenna is in a Radio Resource Control Idle (RRC-Idle), the high-level diversity reception state does not need to be entered.
303, if the channel quality indicator is smaller than the channel quality indicator threshold, controlling the antenna to enter a high-order diversity receiving state.
If the channel quality index is smaller than the channel quality index threshold value, which indicates that the signal quality of the current channel is not good, the antenna enters a high-order diversity receiving state, so that the antenna receiving capacity is improved, and the signal quality is improved.
And 304, if the channel quality index is not less than the channel quality index threshold, determining whether the electronic equipment is currently in a data transmission state.
If the channel quality index is greater than the channel quality index threshold, the channel quality is better, and at this time, whether the electronic equipment is currently in the data transmission state is judged, wherein whether the electronic equipment is currently in the data transmission state refers to whether the electronic equipment is currently in the uploading state and/or the downloading state.
And 305, if the electronic equipment is in a data transmission state currently, controlling the antenna to enter a high-order diversity reception state.
And if the antenna is in the data transmission state, the antenna enters a high-order diversity receiving state. The data transmission speed is improved.
Referring to fig. 9, fig. 9 is a schematic view illustrating a first structure of an antenna control device according to an embodiment of the present disclosure. The antenna control apparatus 500 is applied to an electronic device, and the antenna control apparatus 500 includes an application set acquisition module 510, a priority acquisition module 520, and a control module 530.
An application set obtaining module 510, configured to obtain a set of applications currently running and related to an antenna of the electronic device if the antenna is in a high-order diversity receiving state.
The high Order Diversity reception state (HORxD) mainly refers to a state in which the electronic device supports simultaneous reception of 4 antennas.
If the antenna of the current electronic equipment is in a high-order diversity reception state, acquiring a plurality of application programs which are currently operated and are related to the antenna, and forming an application program set by the plurality of application programs. The application program related to the antenna refers to an application program for data transmission through the antenna, such as an instant messaging application program, an online video application program, and the like.
The priority obtaining module 520 is configured to obtain the priority of each application in the application set.
The application program set comprises a plurality of application programs, and each application program corresponds to one priority. The priority may be preset by a user, or may be set by the electronic device according to the operation information or classification information of the application program. For example, the priority is set according to the category of the application program, and the priority of the instant messaging application program is higher and is set as the first-level priority; setting the priority of the online video application program as a second-level priority when the priority is medium; the application program of the backup class has a lower priority and is set as a third priority. The user can also set the priority of each application program, for example, the application program of the online game can be set as the first priority according to the user instruction.
It should be noted that, in this embodiment, the priority of the application is divided into three levels, but the number of levels of the priority of the application is not limited, and the priority of the application may include four levels, five levels, or even more.
A control module 530, configured to keep the antenna in a high-order diversity reception state if the application set includes the application of the first-order priority;
the control module 530 is further configured to control the antenna to be in the high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic device if the application set includes the application program with the second-order priority and does not include the application program with the first-order priority;
the control module 530 is further configured to control the antenna to exit the high-order diversity reception state if only the third-level priority application is included in the set of applications.
If the application program set is detected to include the application program with the first-level priority, the currently running application program is important for the user, and good antenna receiving performance needs to be kept.
It should be noted that, as long as the application program of the first level of priority is included in the application program set, the antenna is kept in the high-order diversity reception state, regardless of whether the application program of the second level of priority is included or not, or the application program of the third level of priority is included.
If the application set includes the application program with the second level priority and does not include the application program with the first level priority, it is indicated that the currently running application program is not particularly important, but is also more important, and at this time, the antenna is controlled to be in the high-order diversity reception state or to exit the high-order diversity reception state according to the running information of the electronic device. The operation information may include a remaining power of the electronic device, a data amount of the transmission data, and the like.
If the application program set only includes the application program with the third-level priority, does not include the application program with the first-level priority, and does not include the application program with the second-level priority, it indicates that the currently running application program is not of high importance to the user, and the antenna can be controlled to exit the high-level diversity reception state.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a second antenna control device according to an embodiment of the present application. The antenna control apparatus 500 further includes a data amount acquisition module 540.
And a data amount obtaining module 540, configured to obtain a data amount of data transmission of the electronic device through the antenna.
If the application program set comprises the application program with the second-level priority and does not comprise the application program with the first-level priority, the data volume transmitted by the electronic equipment through the antenna is firstly obtained, and the data volume comprises the data volume received by the electronic equipment through the antenna in unit time, such as the sum of the data volumes received in 1 minute or the average value of the data volumes received in 1 minute.
The control module 530 is further configured to control the antenna to be in a high-order diversity reception state if the data amount is greater than a preset data amount threshold; and the antenna is also used for controlling the antenna to exit the high-order diversity receiving state if the data quantity is not larger than the preset data quantity threshold value.
If the data volume is larger than the preset data volume threshold, which indicates that the currently received data volume is larger, the antenna is controlled to be in a high-order diversity receiving state, so that the electronic equipment can receive data quickly, and the problem that the electronic equipment receives data for too long time to influence the use of a user is avoided. And if the data volume is not greater than the preset data volume threshold value, which indicates that the currently received data volume is not large, controlling the antenna to exit from the high-order diversity receiving state, so that the electronic equipment reduces the power consumption of the electronic equipment while the time length for receiving the data is not influenced basically.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an antenna control apparatus according to an embodiment of the present application. The antenna control apparatus 500 further includes a target application acquisition module 550, a weight acquisition module 560, a sub-data amount acquisition module 570, a calculation module 580, and a target data amount acquisition module 590.
And a target application acquiring module 550, configured to acquire a plurality of target applications with the second level of priority.
First, a plurality of target applications with second-level priorities are obtained from the program set, and the number, name, category and the like of the target applications can also be included.
And the weight obtaining module 560 is configured to obtain a weight value of each target application according to the running information of each target application.
The running information may include at least one of the latest trigger time, whether the application is a foreground application, whether the application is a background application, the data volume received by the historical data, the total running time after the trigger, the probability of switching the background application to the foreground application, and the like.
The method comprises the steps of firstly obtaining running information of each target application program, and then obtaining a weight value of each target application program according to the running information. For example, the weight value of the foreground application is large, such as may be 1. And sequencing according to the latest triggering time and the duration of the current time, and sequentially giving a weight value, wherein the weight value is larger when the time is closer, and the weight value is smaller when the time is farther. The larger the amount of data received by the history data, the larger the weight value.
The sub-data amount obtaining module 570 is configured to obtain sub-data amounts for data transmission of each target application.
And acquiring the sub-data volume of the data transmission of each target application program, wherein the sub-data volume can be the sum of the received data in unit time of a single target application program, such as the sum of the data volume of the received data in 1 minute, or the sum of the received data in 1 minute is divided by 60 to obtain the data volume of the received data in 1 second.
The calculating module 580 is configured to calculate, according to the weight value and the sub-data amount of each target application, a plurality of weight sub-data amounts.
And multiplying the weight value of each target application program by the sub-data quantity value, and calculating to obtain the weight sub-data quantity of each target application program.
And a target data volume obtaining module 590, configured to obtain a target data volume according to the multiple weighted sub-data volumes.
And adding the weight sub-data of each target application program to obtain a target data volume. The target data amount is a value obtained by multiplying the weight of each application, so that some important target applications with small data amount can increase the specific gravity of the target applications, such as target applications in banks. Some target applications with general importance but large data volume can reduce their specific gravity, such as online video-like target applications.
The control module 530 is further configured to control the antenna to be in a high-order diversity reception state if the target data amount is greater than a preset target data amount threshold; and the antenna is also used for controlling the antenna to exit the high-order diversity receiving state if the target data volume is not larger than the preset target data volume threshold value.
And if the target data volume calculated by the weight value is larger than a preset target data volume threshold value, controlling the antenna to be in a high-order diversity receiving state, and if the target data volume calculated by the weight value is not larger than the preset target data volume threshold value, controlling the antenna to exit the high-order diversity receiving state. The data size is not judged only by the data size of the target application program any more, and the data size is adjusted by the corresponding weight value of the target application program, so that each target application program can reasonably control the antenna. For example, the influence of some target applications which are important but have small data quantity on the result is improved, and the influence of some target applications with particularly large data quantity on the result is reduced.
In some embodiments, the weight obtaining module may further include an initial weight value obtaining module and a weight value adjusting module.
And the initial weight value acquisition module is used for acquiring the initial weight value of each target application program.
The initial weight value of each target application is obtained, for example, the initial weight value of each target application can be obtained through a classification of each target application, such as 0.1 for an online video class, 0.3 for a navigation class, 0.6 for an instant messaging class, and the like. The initial weight value of each target application program can also be preset, wherein the initial weight value can be set by a manufacturer in a default mode or can be set by a user. It is also possible that all target applications initially default to a fixed initial weight value.
And the weight value adjusting module is used for adjusting the initial weight value according to the total running time and the latest triggering time of each target application program to obtain the weight value of each target application program.
And adjusting the initial weight value according to the total running time and the latest triggering time of each target application program. For example, a preset total running time may be preset, and when the total running time of the target application is greater than the preset total running time, the weight value of the target application is increased. If the weight value is larger than one threshold, the weight value of a certain proportion is increased, and if the weight value is larger than two thresholds, the weight value of a certain proportion is increased until the weight value of the maximum proportion is increased. If the preset total running time is 60 minutes, when the total running time of the target application program is greater than 60 minutes, the weight value of 10% is increased, the weight value of 70 minutes is increased, the weight value of 10% is increased, the weight value of 80 minutes is increased, and the weight value of 10% is increased until the weight value of 50% is increased, and the weight value is not increased any more than time.
And the latest one-time trigger time of the target application program can be acquired, if the latest one-time trigger time is less than the preset time, the weight value of the target application program is increased, and if the latest one-time trigger time is more than the preset time, the weight value of the target application program is reduced. Or a time range may be set first, if the time range is within the time range, the weight value is not changed, if the time range is smaller than the minimum value of the time range, the weight value of the target application program is increased, and if the time range is larger than the maximum value of the time range, the weight value of the target application program is decreased.
And the final weight value can be obtained after two times of adjustment according to the total running time and the latest triggering time. Or after two weight values are obtained according to the total running time and the latest triggering time, the average value is taken to obtain the final weight value.
In some embodiments, the apparatus further comprises a current power acquisition module. The current electric quantity obtaining module is used for obtaining the current electric quantity of the electronic equipment.
The method includes the steps of firstly obtaining the current electric quantity of the electronic equipment, namely the current residual electric quantity of the electronic equipment. And comparing the current power amount to a first power amount threshold.
The control module is further configured to control the antenna to be in a high-order diversity reception state if the current electric quantity is greater than the first electric quantity threshold; and the antenna is further used for controlling the antenna to exit the high-order diversity reception state if the current electric quantity is not greater than the first electric quantity threshold.
A first power threshold is preset, for example, 20% of the total power, and if the current power is greater than the first power threshold, it indicates that the current remaining power of the current electronic device is sufficient, the antenna is controlled to be in a high-order diversity reception state.
And if the current electric quantity is smaller than the first electric quantity threshold value, the current residual electric quantity of the current electronic equipment is insufficient, and the antenna exits the high-order diversity receiving state. Therefore, the situation that the power of the electronic equipment is quickly consumed to cause shutdown, and key functions such as a call function cannot be used is prevented.
In some embodiments, the control module is further configured to obtain a data amount of data transmission of the electronic device through the antenna if the current electric quantity is smaller than a second electric quantity threshold, where the second electric quantity threshold is larger than the first electric quantity threshold.
A second power threshold is preset, for example, 50% of the total power, where the second power threshold is greater than the first power threshold, and if the current power is greater than the first power threshold and less than the second power threshold, it indicates that the remaining power of the electronic device is not sufficient, but not very low. At this time, the data volume of the data transmission of the electronic device through the antenna is obtained, and the data volume is the uploaded data volume, the downloaded data volume, or the sum of the uploaded data volume and the downloaded data volume. The data amount refers to the sum of data amounts in a statistical unit time, and is 1 minute, 3 minutes, 5 minutes, or the like.
In some embodiments, the control module is further configured to control the antenna to be in a high-order diversity reception state if the data amount is greater than a preset data amount threshold. The control module is further configured to control the antenna to exit the high-order diversity reception state if the data amount is not greater than a preset data amount threshold.
If the data volume is larger than the data volume threshold, which indicates that the current electric quantity is not enough or not very little, if the data volume transmitted by the antenna is larger than the data volume threshold, the antenna is controlled to be in a high-order diversity receiving state. If the data volume is not greater than the data volume threshold, which indicates that the current electric quantity is not sufficient or very small, if the data volume transmitted by the antenna is also lower than the data volume threshold, the antenna can be made to exit the high-order diversity reception state, so as to save power consumption.
In some embodiments, the apparatus further comprises a radio resource control state acquisition module and a channel quality indicator acquisition module.
And the radio resource control state acquisition module is used for acquiring the radio resource control state of the antenna if the antenna of the electronic equipment is not in the high-order diversity reception state.
When the antenna of the electronic equipment is not in the high-order diversity reception state, the radio resource control state of the antenna is acquired.
Before acquiring the radio resource control state of the antenna, the following steps may be further performed: acquiring the current electric quantity of the electronic equipment; and if the current electric quantity is larger than the third electric quantity threshold value, acquiring the wireless resource control state of the antenna.
And when the residual electric quantity of the electronic equipment is larger than the third electric quantity threshold value, the wireless resource control state of the antenna is acquired. Otherwise, if the current electric quantity is smaller than the third electric quantity threshold value, the antenna is kept not in the high-order diversity reception state. The third charge threshold may be greater than or equal to the first charge threshold.
And the channel quality index acquisition module is used for acquiring the channel quality index of the antenna if the radio resource control state of the antenna is a connection state.
If the radio resource control state of the antenna is a connection state, a Channel Quality Indicator (CQI) of the antenna is acquired.
The control module is further configured to control the antenna to enter a high-order diversity reception state if the channel quality indicator is smaller than the channel quality indicator threshold. And if the channel quality index is not less than the channel quality index threshold, judging whether the electronic equipment is in a data transmission state currently. And the antenna is also used for controlling the antenna to enter a high-order diversity receiving state if the electronic equipment is in a data transmission state currently.
If the channel quality index is smaller than the channel quality index threshold value, which indicates that the signal quality of the current channel is not good, the antenna enters a high-order diversity receiving state, so that the antenna receiving capacity is improved, and the signal quality is improved. If the channel quality index is greater than the channel quality index threshold, the channel quality is better, and at this time, whether the electronic equipment is currently in the data transmission state is judged, wherein whether the electronic equipment is currently in the data transmission state refers to whether the electronic equipment is currently in the uploading state and/or the downloading state. And if the antenna is in the data transmission state, the antenna enters a high-order diversity receiving state. The data transmission speed is improved.
In particular, the modules may be implemented as independent entities, or may be implemented as one or several entities by arbitrary combination.
The embodiment of the application also provides the electronic equipment. The electronic device may be a smartphone, a tablet computer, or the like. As shown in fig. 12, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.
The processor 601 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 and processes data by running or calling a computer program stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 601 in the electronic device 600 loads instructions corresponding to one or more processes of the computer program into the memory 602 according to the following steps, and the processor 601 runs the computer program stored in the memory 602, thereby implementing various functions:
if the antenna of the electronic equipment is in a high-order diversity reception state, acquiring an application program set which is currently operated and is related to the antenna;
acquiring the priority of each application program in the application program set;
if the application program set comprises the application program with the first-level priority, keeping the antenna in a high-order diversity receiving state;
if the application program set comprises the application program with the second-level priority and does not comprise the application program with the first-level priority, controlling the antenna to be in a high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic equipment;
and if the application program set only comprises the application programs with the third-level priority, controlling the antenna to exit the high-level diversity receiving state.
In some embodiments, processor 601 performs the following steps:
acquiring the data volume of the electronic equipment for data transmission through an antenna;
if the data volume is larger than a preset data volume threshold value, controlling the antenna to be in a high-order diversity receiving state;
and if the data volume is not larger than the preset data volume threshold, controlling the antenna to exit the high-order diversity receiving state.
In some embodiments, processor 601 performs the following steps:
acquiring a plurality of target application programs with second-level priorities;
obtaining the weight value of each target application program according to the running information of each target application program;
acquiring the sub data volume of data transmission of each target application program;
calculating to obtain a plurality of weighted sub-data volumes according to the weighted values and the sub-data volumes of each target application program;
obtaining a target data volume according to the multiple weight sub-data volumes;
if the target data volume is larger than a preset target data volume threshold value, controlling the antenna to be in a high-order diversity receiving state;
and if the target data volume is not larger than the preset target data volume threshold value, controlling the antenna to exit the high-order diversity receiving state.
In some embodiments, processor 601 performs the following steps:
acquiring an initial weight value of each target application program;
and adjusting the initial weight value according to the total running time and the latest triggering time of each target application program to obtain the weight value of each target application program.
In some embodiments, processor 601 performs the following steps:
acquiring the current electric quantity of the electronic equipment;
if the current electric quantity is larger than the first electric quantity threshold value, controlling the antenna to be in a high-order diversity receiving state;
and if the current electric quantity is not larger than the first electric quantity threshold value, controlling the antenna to exit the high-order diversity receiving state.
In some embodiments, processor 601 performs the following steps:
if the current electric quantity is smaller than a second electric quantity threshold value, acquiring the data quantity of the electronic equipment transmitted by the antenna data, wherein the second electric quantity threshold value is larger than the first electric quantity threshold value;
if the data volume is larger than a preset data volume threshold value, controlling the antenna to be in a high-order diversity receiving state;
and if the data volume is not larger than the preset data volume threshold, controlling the antenna to exit the high-order diversity receiving state.
In some embodiments, processor 601 performs the following steps:
if the antenna of the electronic equipment is not in a high-order diversity reception state, acquiring a wireless resource control state of the antenna;
if the wireless resource control state of the antenna is a connection state, acquiring a channel quality index of the antenna;
if the channel quality index is smaller than the channel quality index threshold value, controlling the antenna to enter a high-order diversity receiving state;
if the channel quality index is not less than the channel quality index threshold value, judging whether the electronic equipment is in a data transmission state currently;
and if the electronic equipment is in a data transmission state currently, controlling the antenna to enter a high-order diversity receiving state.
The memory 602 may be used to store computer programs and data. The memory 602 stores computer programs comprising instructions executable in the processor. The computer program may constitute various functional modules. The processor 601 executes various functional applications and data processing by calling a computer program stored in the memory 602.
In some embodiments, as shown in fig. 13, the electronic device 600 further comprises: a radio frequency circuit 603, a display screen 604, a control circuit 605, an input unit 606, an audio circuit 607, a sensor 608, and a power supply 609. The processor 601 is electrically connected to the rf circuit 603, the display 604, the control circuit 605, the input unit 606, the audio circuit 607, the sensor 608, and the power supply 609, respectively.
The radio frequency circuit 603 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 604 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 605 is electrically connected to the display screen 604 and is used for controlling the display screen 604 to display information.
The input unit 606 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Wherein, the input unit 606 may include a fingerprint identification module.
The audio circuit 607 may provide an audio interface between the user and the electronic device through a speaker, microphone.
The sensor 608 is used to collect external environmental information. The sensors 608 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, and the like.
The power supply 609 is used to power the various components of the electronic device 600. In some embodiments, the power supply 609 may be logically connected to the processor 601 through a power management system, such that the power management system performs functions of managing charging, discharging, and power consumption.
Although not shown in fig. 13, the electronic device 600 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
The embodiment of the present application further provides a storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer executes the antenna control method according to any one of the above embodiments.
It should be noted that, those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be implemented by the relevant hardware instructed by the computer program, and the computer program can be stored in the computer readable storage medium, which can 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. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of 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 (10)

1. An antenna control method applied to an electronic device, the method comprising:
if the antenna of the electronic equipment is in a high-order diversity reception state, acquiring an application program set which is currently operated and is related to the antenna;
acquiring the priority of each application program in the application program set;
if the application program set comprises the application program of the first-level priority, keeping the antenna in a high-order diversity receiving state;
if the application program set comprises an application program with a second level priority and does not comprise the application program with the first level priority, controlling the antenna to be in a high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic equipment, wherein the priority of the second level priority is lower than the first level priority, and the controlling the antenna to be in the high-order diversity receiving state or to exit the high-order diversity receiving state according to the operation information of the electronic equipment comprises the following steps: acquiring a plurality of target application programs with second-level priorities; obtaining a weight value of each target application program according to the running information of each target application program; acquiring the sub data volume of the data transmission of each target application program; calculating to obtain a plurality of weighted sub-data volumes according to the weighted values and the sub-data volumes of the target application programs; obtaining a target data volume according to the plurality of weighted sub-data volumes; if the target data volume is larger than a preset target data volume threshold value, controlling the antenna to be in a high-order diversity receiving state; if the target data volume is not larger than a preset target data volume threshold value, controlling the antenna to exit a high-order diversity receiving state;
and if the application program set only comprises the application programs with the third-level priority, controlling the antenna to exit a high-order diversity reception state, wherein the priority of the third-level priority is lower than that of the second-level priority.
2. The antenna control method according to claim 1, wherein the step of controlling the antenna to be in a higher-order diversity reception state or to exit the higher-order diversity reception state according to the operation information of the electronic device comprises:
acquiring the data volume of the electronic equipment for data transmission through an antenna;
if the data volume is larger than a preset data volume threshold value, controlling the antenna to be in a high-order diversity receiving state;
and if the data volume is not greater than a preset data volume threshold value, controlling the antenna to exit a high-order diversity receiving state.
3. The antenna control method according to claim 1, wherein the step of obtaining the weight value of each target application according to the running information of each target application comprises:
acquiring an initial weight value of each target application program;
and adjusting the initial weight value according to the total running time and the latest triggering time of each target application program to obtain the weight value of each target application program.
4. The method for controlling the antenna according to claim 1, wherein the step of controlling the antenna to be in a high-order diversity reception state or to exit the high-order diversity reception state according to the operation information of the electronic device comprises:
acquiring the current electric quantity of the electronic equipment;
if the current electric quantity is not larger than a first electric quantity threshold value, controlling the antenna to exit a high-order diversity receiving state;
if the current electric quantity is larger than a first electric quantity threshold value and smaller than a second electric quantity threshold value, acquiring the data quantity of the electronic equipment through antenna data transmission, wherein the second electric quantity threshold value is larger than the first electric quantity threshold value;
if the data volume is larger than a preset data volume threshold value, controlling the antenna to be in a high-order diversity receiving state;
and if the data volume is not greater than a preset data volume threshold value, controlling the antenna to exit a high-order diversity receiving state.
5. The antenna control method of claim 1, further comprising:
if the antenna of the electronic equipment is not in a high-order diversity reception state, acquiring a radio resource control state of the antenna;
if the wireless resource control state of the antenna is a connection state, acquiring a channel quality index of the antenna;
if the channel quality index is smaller than the channel quality index threshold value, controlling the antenna to enter a high-order diversity receiving state;
if the channel quality index is not less than the channel quality index threshold value, judging whether the electronic equipment is in a data transmission state currently;
and if the electronic equipment is in a data transmission state at present, controlling the antenna to enter a high-order diversity reception state.
6. An antenna control device applied to an electronic device, the device comprising:
the application program set acquisition module is used for acquiring an application program set which is currently operated and is related to the antenna if the antenna of the electronic equipment is in a high-order diversity receiving state;
the priority acquisition module is used for acquiring the priority of each application program in the application program set;
the target application program acquisition module is used for acquiring a plurality of target application programs with second-level priorities;
the weight acquisition module is used for acquiring the weight value of each target application program according to the running information of each target application program;
a sub-data amount obtaining module, configured to obtain sub-data amounts for data transmission of each target application program
The calculation module is used for calculating to obtain a plurality of weighted sub-data volumes according to the weighted values and the sub-data volumes of the target application programs;
a target data volume obtaining module, configured to obtain a target data volume according to the multiple weight sub-data volumes;
a control module, configured to keep the antenna in a high-order diversity reception state if the application program set includes an application program of a first-order priority;
the antenna is further configured to control the antenna to be in a high-order diversity reception state if the set of application programs includes an application program of a second-order priority and does not include an application program of the first-order priority, and if the target data amount is greater than a preset target data amount threshold; if the target data volume is not larger than a preset target data volume threshold value, controlling the antenna to exit a high-order diversity receiving state, wherein the priority of the second-order priority is lower than that of the first-order priority;
and the antenna is further configured to control the antenna to exit a high-order diversity reception state if the application program set only includes an application program with a third-order priority, where the third-order priority is lower than the second-order priority.
7. The antenna control apparatus according to claim 6, characterized by further comprising:
the data volume acquisition module is used for acquiring the data volume of the electronic equipment through antenna data transmission;
the control module is further configured to control the antenna to be in a high-order diversity reception state if the data amount is greater than a preset data amount threshold;
and the antenna is further configured to control the antenna to exit a high-order diversity reception state if the data amount is not greater than a preset data amount threshold.
8. The antenna control apparatus according to claim 6, wherein the weight obtaining module comprises:
an initial weight value obtaining module, configured to obtain an initial weight value of each target application program;
and the weight value adjusting module is used for adjusting the initial weight value according to the total running time and the latest triggering time of each target application program to obtain the weight value of each target application program.
9. A storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the antenna control method of any one of claims 1 to 5.
10. 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 5 by calling the computer program stored in the memory.
CN201810162219.XA 2018-02-27 2018-02-27 Antenna control method, antenna control device, storage medium and electronic equipment Active CN108551685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810162219.XA CN108551685B (en) 2018-02-27 2018-02-27 Antenna control method, antenna control device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810162219.XA CN108551685B (en) 2018-02-27 2018-02-27 Antenna control method, antenna control device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108551685A CN108551685A (en) 2018-09-18
CN108551685B true CN108551685B (en) 2021-06-15

Family

ID=63516130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810162219.XA Active CN108551685B (en) 2018-02-27 2018-02-27 Antenna control method, antenna control device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108551685B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327612A (en) * 2018-09-29 2019-02-12 北京小米移动软件有限公司 A kind of multi-antenna control method and device
CN114513572A (en) * 2020-11-16 2022-05-17 深圳市万普拉斯科技有限公司 Method and device for switching antenna of terminal equipment and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8417205B2 (en) * 2007-09-17 2013-04-09 Sun Management, Llc Antenna selection scheme for multiple antennae
US20140179235A1 (en) * 2012-12-20 2014-06-26 Mediatek Inc. Method for reducing power consumption and communications apparatus utilizing the same
CN107734615A (en) * 2014-06-30 2018-02-23 华为技术有限公司 The control method and mobile terminal of the antenna of mobile terminal
CN105099717A (en) * 2015-06-30 2015-11-25 深圳走天下科技有限公司 Router, and antenna control system and method
CN105657797A (en) * 2015-08-26 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Power consumption control method and system of mobile terminal
CN105491190A (en) * 2015-11-28 2016-04-13 广东欧珀移动通信有限公司 Multi-antenna selection method and mobile terminal
CN107181700A (en) * 2017-07-19 2017-09-19 努比亚技术有限公司 Control method, mobile terminal and the storage medium of application program for mobile terminal

Also Published As

Publication number Publication date
CN108551685A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
CN110191461B (en) Data transmission control method and device and electronic equipment
CN110087294B (en) Communication control method, radio frequency circuit and electronic equipment
CN107809542B (en) Application program control method and device, storage medium and electronic equipment
CN108430101A (en) Antenna method for closing, device, storage medium and electronic equipment
CN110012169B (en) Antenna switching method and device, storage medium and electronic equipment
KR20170129197A (en) Message updating method, device and terminal
CN108494444A (en) Method of controlling antenna, antenna module, electronic equipment and storage medium
CN106776036A (en) A kind of resource allocation methods and device
CN111158455A (en) Power consumption control method and device, storage medium and terminal
CN108462522B (en) Antenna control method, antenna assembly, electronic device and storage medium
CN108647048A (en) Doze mode regulating methods, device, mobile terminal and storage medium
CN108494464B (en) Antenna control method, antenna assembly, electronic device and storage medium
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN108365881B (en) Antenna control method, antenna control device, storage medium and electronic equipment
EP3242447A1 (en) Information recommendation management method, device and system
CN106055408A (en) Application control method and mobile terminal
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
CN108415865A (en) Interface circuit and electronic device
CN108551685B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN108495359B (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN111008090A (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN109960581B (en) Hardware resource allocation method and device, mobile terminal and storage medium
CN106302101B (en) Message reminding method, terminal and server
CN114510139B (en) Frequency modulation method and device and electronic equipment
CN115668123A (en) Audio resource allocation method and device and electronic equipment

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
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.

GR01 Patent grant
GR01 Patent grant