CN108377157B - Control method and device of Wi-Fi antenna - Google Patents
Control method and device of Wi-Fi antenna Download PDFInfo
- Publication number
- CN108377157B CN108377157B CN201810098223.4A CN201810098223A CN108377157B CN 108377157 B CN108377157 B CN 108377157B CN 201810098223 A CN201810098223 A CN 201810098223A CN 108377157 B CN108377157 B CN 108377157B
- Authority
- CN
- China
- Prior art keywords
- data
- antenna
- frequency band
- antennas
- mobile terminal
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/40—Circuits
- H04B1/401—Circuits for selecting or indicating operating mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/0404—Diversity 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/06—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
- H04B7/0686—Hybrid systems, i.e. switching and simultaneous transmission
- H04B7/0689—Hybrid systems, i.e. switching and simultaneous transmission using different transmission schemes, at least one of them being a diversity transmission scheme
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/02—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
- H04B7/04—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
- H04B7/08—Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
- H04B7/0868—Hybrid systems, i.e. switching and combining
- H04B7/0871—Hybrid systems, i.e. switching and combining using different reception schemes, at least one of them being a diversity reception scheme
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses a control method and a device of Wi-Fi antennas, the method is applied to a mobile terminal, the mobile terminal comprises two Wi-Fi antennas, and the method comprises the following steps: acquiring operation scene information in a Wi-Fi-based data receiving and sending state; if the operation scene information meets a first preset condition, enabling two Wi-Fi antennas to receive and transmit data; and if the operation scene information meets a second preset condition, starting a Wi-Fi antenna to transmit and receive data. By utilizing the embodiment of the application, the number of the Wi-Fi antennas needing to be started can be specifically judged through the set two preset conditions and the set operation scene information, and the switching between the single antenna and the double antennas is realized, so that the data receiving and transmitting efficiency is improved, the data delay is reduced, and the resource consumption is effectively controlled.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a Wi-Fi antenna.
Background
With the continuous development of network technology and terminal technology, people are increasingly unable to leave networks and mobile terminals in life and work, and Wi-Fi (Wireless-Fidelity) is increasingly favored by people due to its advantages of low cost, extremely high data bandwidth of Wireless air interface, high transmission speed and the like. With the continuous development of terminal technology, Wi-Fi is applied to mobile terminals more and more widely.
With the increasing data volume of network resources requested by a user, the requirements on the data receiving and sending speed and efficiency of a mobile terminal (especially a mobile terminal such as a mobile phone or a tablet personal computer) are also increased, and therefore, a mobile terminal developer sets an independent Wi-Fi antenna in the original mobile terminal with a single Wi-Fi antenna, so that the mobile terminal is provided with two independent Wi-Fi antennas, and thus, the mobile terminal can simultaneously receive and send data through the two Wi-Fi antennas, and the data receiving and sending speed and efficiency are improved.
However, the mobile terminal simultaneously transmits and receives data through the two Wi-Fi antennas may consume more resources of the mobile terminal, for example, more electric quantity of the mobile terminal (especially, a mobile terminal such as a mobile phone or a tablet computer) may be consumed, in an application, in the process of transmitting and receiving the same data, currents of the mobile phones of the two Wi-Fi antennas are increased by tens of milliamperes (under the condition that a battery voltage is 4 volts) compared with a current of the mobile phone of one Wi-Fi antenna, it is apparent that a large amount of resources are consumed when the mobile terminal starts the two Wi-Fi antennas to transmit and receive data, and a user cannot control the number of enabled Wi-Fi antennas, so that resource consumption of the mobile terminal is accelerated.
Disclosure of Invention
The embodiment of the application provides a control method of a Wi-Fi antenna, and aims to solve the problem that in the prior art, the resource consumption of a mobile terminal is high.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, a method for controlling a Wi-Fi antenna provided in an embodiment of the present application is applied to a mobile terminal, where the mobile terminal includes two Wi-Fi antennas, and the method includes:
acquiring operation scene information in a Wi-Fi-based data receiving and sending state;
if the operation scene information meets a first preset condition, enabling two Wi-Fi antennas to receive and transmit data;
and if the operation scene information meets a second preset condition, starting a Wi-Fi antenna to transmit and receive data.
In a second aspect, an embodiment of the present application provides a control apparatus for Wi-Fi antennas, including two Wi-Fi antennas, the apparatus including:
the information acquisition module is used for acquiring the running scene information in the state of data receiving and sending based on Wi-Fi;
the dual-antenna starting module is used for starting the two Wi-Fi antennas to receive and transmit data if the running scene information meets a first preset condition;
and the single antenna starting module is used for starting one Wi-Fi antenna to receive and transmit data if the operation scene information meets a second preset condition.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the Wi-Fi antenna control method provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for controlling a Wi-Fi antenna provided in the first aspect are implemented.
According to the technical scheme provided by the embodiment of the application, the number of the Wi-Fi antennas needing to be started is judged through the acquired operation scene information in the Wi-Fi-based data receiving and sending state so as to receive and send data, namely if the operation scene information meets a first preset condition, two Wi-Fi antennas are started to receive and send data, and if the operation scene information meets a second preset condition, one Wi-Fi antenna is started to receive and send data.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 illustrates an embodiment of a method for controlling a Wi-Fi antenna according to the present application;
FIG. 2 is a schematic diagram of a circuit connection structure of a Wi-Fi antenna according to the present application;
FIG. 3 is another embodiment of a Wi-Fi antenna control method according to the present application;
FIG. 4 is a schematic view of a page display of a white list setup page according to the present application;
FIG. 5 is a schematic diagram of an embodiment of a Wi-Fi antenna control apparatus according to the present application;
fig. 6 is a diagram of an embodiment of a mobile terminal according to the present application.
Detailed Description
The embodiment of the application provides a control method and device of a Wi-Fi antenna.
In order to make those skilled in the art better understand the technical solutions in the present application, 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
As shown in fig. 1, an execution main body of the method may be a mobile terminal, and the mobile terminal may include two Wi-Fi antennas, where the mobile terminal may be a device such as a personal computer, or a mobile terminal device such as a mobile phone and a tablet computer, and the mobile terminal may be a mobile terminal used by a user. The method can be applied to the processes of starting control and the like of the two Wi-Fi antennas of the mobile terminal. The method may specifically comprise the steps of:
in step S102, the operation scene information is acquired in a state where data transmission and reception are performed based on Wi-Fi.
The operation scenario information may be used to indicate the data throughput of the mobile terminal currently in a Wi-Fi connection state, and the operation scenario information may include various information, which may be specifically set according to an actual situation, such as data amount of data received by a Wi-Fi antenna, data amount of data sent by the Wi-Fi antenna, information of an application program started in the mobile terminal, remaining power data (i.e., power data) of the mobile terminal, and a working frequency band of the Wi-Fi antenna.
In the implementation, Wi-Fi (Wireless-Fidelity) is a Wireless networking technology, where Wi-Fi is a Wireless network composed of an AP (access point) and a Wireless network card, the AP is generally called a network bridge or an access point, and Wi-Fi is used as a bridge between a traditional wired local area network and a Wireless local area network, so that any mobile terminal equipped with the Wireless network card can share resources of a limited local area network or even a wide area network through the AP, where the AP is equivalent to a multi-port repeater or a router with a built-in Wireless transmitter, and the Wireless network card is equivalent to a client device responsible for receiving signals transmitted by the AP. Although the wireless communication quality transmitted by the Wi-Fi technology is not good, the data security performance is poor compared with that of Bluetooth and the like, the transmission quality is still to be improved, but the Wi-Fi transmission speed is very high and meets the information requirements of individuals and the society, moreover, the Wi-Fi cost is extremely low and is provided with a wireless air interface with extremely high data bandwidth, and a user can quickly browse a webpage in a Wi-Fi coverage area and answer and dial calls anytime and anywhere without worrying about the problems of low speed or high cost. With the continuous development of terminal technology, Wi-Fi is also more and more widely applied to mobile terminals, the mobile terminals are very convenient to access the Internet through Wi-Fi sharing, a user can be within the coverage range of Wi-Fi signals without any setting in the mobile terminals, and under the default setting of the mobile terminals and wireless routers generating the Wi-Fi signals, the mobile terminals can automatically acquire network addresses (such as Internet Protocol (IP) addresses and the like) to perform wireless connection, and can perform wireless Internet access by using browsers, instant messaging applications and the like of the mobile terminals.
With the continuous development of network technology and terminal technology, in order to attract users, many webpages are very colorful both in layout design and page content, but the data volume contained in one webpage is too large, for example, in order to improve the game experience of users, a game developer can make pictures of mobile games more and more exquisite and have higher definition, and thus the data volume of game picture transmission is increased, and for example, with the development of network videos, people pursue the video definition to be improved continuously, and for this reason, the video provider provides videos for users in video application with higher and higher definition, and videos with high definition inevitably need to be transmitted by a large amount of data when users watch the videos. In order to improve the speed and efficiency of data receiving and sending, a mobile terminal developer sets a Wi-Fi antenna in an original mobile terminal with a single Wi-Fi antenna, so that the mobile terminal is provided with two Wi-Fi antennas, and the mobile terminal respectively receives and sends data through the two Wi-Fi antennas, thereby reducing the pressure of large data volume facing the single Wi-Fi antenna. However, although data pressure of a single Wi-Fi antenna can be relieved by the two Wi-Fi antennas respectively receiving and transmitting data, resource consumption of the mobile terminal may also be increased, especially for a mobile terminal, such as a mobile phone or a tablet computer, because the electric quantity of a battery of the mobile terminal is limited, the two Wi-Fi antennas are enabled simultaneously, and compared with the enabling of the single Wi-Fi antenna, more electric quantity of the mobile terminal may be consumed, that is: the single Wi-Fi antenna consumes relatively less electric quantity, but the data volume received and transmitted in unit time is less, the electric quantity consumed by the two Wi-Fi antennas is relatively more, but the data volume received and transmitted in unit time is more, so that the starting of the single Wi-Fi antenna and the starting of the two Wi-Fi antennas have advantages and disadvantages, and if the two Wi-Fi antennas are coordinated and managed, the problem needs to be solved. To this end, an embodiment of the present application provides a method for enabling a single Wi-Fi antenna and enabling two Wi-Fi antennas to be switched, which may specifically include the following:
when a user uses a mobile terminal, in order to reduce consumption of mobile data traffic, when the user returns home, arrives at a working location or some designated location or area, the mobile terminal may be connected to a network through a wireless local area network in the location or area to perform network access, specifically, for example, a wireless router is installed in the home of the user, and the wireless router may be a router based on multiple working frequency bands, where the multiple working frequency bands may include a 2.4GHz band and a 5GHz band, or the wireless router may be a router based on a single working frequency band, where the working frequency band may include a 2.4GHz band, a 5GHz band, or the like. After the user returns home, the wireless router can be started, and the wireless router can transmit wireless signals. Meanwhile, the user can start a Wi-Fi switch of the mobile terminal to receive wireless signals, network connection can be carried out between the mobile terminal and the wireless router after the mobile terminal searches the wireless signals transmitted by the wireless router, and after the connection is successful, the user can carry out data receiving and sending through the mobile terminal based on Wi-Fi. The mobile terminal is provided with two Wi-Fi antennas, so that resource consumption of the mobile terminal is reduced, and data receiving and sending are completed as soon as possible, the starting number of the Wi-Fi antennas can be selected, specifically, after the mobile terminal is connected to a wireless local area network, in order to improve the data receiving and sending rate, the two Wi-Fi antennas can be started for data receiving and sending first, or in order to reduce resource consumption, one Wi-Fi antenna can be started for data receiving and sending first, and the setting can be specifically carried out according to actual conditions. At this time, the mobile terminal may collect information such as a data amount of data received by its own Wi-Fi antenna, a data amount of data transmitted, information of an application program started in the mobile terminal, remaining power data (i.e., power data) of the mobile terminal, and a working frequency band of the Wi-Fi antenna, and generate operation scene information according to the information.
In step S104, if the operating scenario information satisfies a first predetermined condition, two Wi-Fi antennas are enabled to transmit and receive data.
In an actual application, the first predetermined condition may include one of the above conditions, or may also include a combination of the above conditions, where the combination may be set according to an actual situation, and the first predetermined condition may also include other conditions besides the above conditions, which is not limited in this application embodiment.
In implementation, a first predetermined condition may be preset in the mobile terminal, where the first predetermined condition may be set according to a requirement of a user, or may be set by a developer of the mobile terminal according to an actual situation, for example, the developer uses the mobile terminal to test a data processing condition of a single Wi-Fi antenna, analyzes a maximum data amount that the single Wi-Fi antenna can process in a unit time from the data processing condition, and may set a threshold of a data amount of data transmitted and received by the Wi-Fi antenna in the unit time based on the analyzed maximum data amount, and may be stored in the mobile terminal as the first predetermined condition, after the first predetermined condition is stored in the mobile terminal, the first predetermined condition may be updated according to the actual situation, specifically, the first predetermined condition may be updated by the user according to an actual need, or the mobile terminal learns operation scene information in a certain period of time in a machine learning manner, a new first predetermined condition is obtained and the previously stored first predetermined condition is updated by the new first predetermined condition.
After the mobile terminal acquires the operation scene information, the operation scene information can be analyzed, the operation scene information related to a first preset condition is extracted from the operation scene information, then the extracted operation scene information can be matched with the first preset condition, if the extracted operation scene information meets the first preset condition, the mobile terminal is indicated to be currently performing transceiving operation with a large data volume, at the moment, in order to reduce data delay and improve user experience, the mobile terminal can send a starting instruction to two Wi-Fi antennas, as shown in fig. 2, the mobile terminal comprises two Wi-Fi antennas, each Wi-Fi antenna can send wireless signals of two different frequency bands (namely a 2.4GHz frequency band and a 5.8GHz frequency band), each Wi-Fi antenna is provided with a switch, and whether the Wi-Fi antenna is started or not can be controlled through the switch, when the mobile terminal sends a start instruction to the two Wi-Fi antennas, switches of the two Wi-Fi antennas can be closed to enable the two Wi-Fi antennas. Meanwhile, the two Wi-Fi antennas can be driven to start and operate simultaneously through related drivers in the mobile terminal, so that the two Wi-Fi antennas can receive and transmit data simultaneously, the data receiving and transmitting speed is increased, and the data delay is reduced.
In addition, if the operation scenario information does not satisfy the first predetermined condition, the following process of step S106 may be performed, or the mobile terminal may maintain the current operation state.
In step S106, if the operating scenario information satisfies a second predetermined condition, a Wi-Fi antenna is enabled to transmit and receive data.
The second predetermined condition may be set according to an actual situation, specifically, for example, the data amount of data transmitted and received by the Wi-Fi antenna does not exceed the predetermined data amount threshold, the remaining power data in the mobile terminal is smaller than the predetermined power threshold, the application program currently running by the mobile terminal is not a predetermined application program (such as a video application or a game application), and the like, in an actual application, the second predetermined condition may include one of the above conditions, or may include a combination of the above conditions, a combination manner of the above conditions may be set according to an actual situation, and the second predetermined condition may include other conditions besides the above conditions. The second predetermined condition may be a condition that is contrary to the first predetermined condition, or may be a condition that has no relationship with the first predetermined condition, and the embodiment of the present application is not limited thereto.
The mobile terminal may be preset with a second predetermined condition, which may be set according to a requirement of a user, or may be set by a developer of the mobile terminal according to an actual situation, for example, the developer uses the mobile terminal to test consumption rate of electric quantity by a single Wi-Fi antenna and two Wi-Fi antennas, and analyzes an electric quantity consumption value of the single Wi-Fi antenna and electric quantity consumption values of the two Wi-Fi antennas in a unit time from the electric quantity consumption values, and may set an electric quantity threshold value based on the analyzed electric quantity consumption values, and may be stored in the mobile terminal as the second predetermined condition, after the second predetermined condition is stored in the mobile terminal, the second predetermined condition may be updated according to the actual situation, specifically, the second predetermined condition may be updated by the user according to an actual need, or the mobile terminal may learn operation scene information within a certain period of time in a machine learning manner, and obtaining a new second preset condition, and updating the previously stored second preset condition through the new second preset condition.
After the mobile terminal acquires the operation scene information, the operation scene information can be analyzed, the operation scene information related to a second preset condition is extracted from the operation scene information, then the extracted operation scene information can be matched with the second preset condition, if the extracted operation scene information meets the second preset condition, the fact that the data quantity of current data receiving and sending of the mobile terminal is small or the residual electricity quantity of the mobile terminal is insufficient is indicated, at the moment, in order to reduce resource consumption and improve user experience, the mobile terminal can send a starting instruction to one Wi-Fi antenna, at the moment, as shown in figure 2, a switch of one Wi-Fi antenna of the two Wi-Fi antennas can be closed, a switch of the other Wi-Fi antenna can be opened, and the Wi-Fi antenna is driven to start to operate through a related driving program in the mobile terminal, therefore, data receiving and transmitting are carried out by one Wi-Fi antenna, and resource consumption is reduced. It should be noted that, if the mobile terminal is connected to the network local area network, two Wi-Fi antennas are enabled, and the operating scenario information satisfies the second predetermined condition, the mobile terminal may send an instruction to stop operating to one of the Wi-Fi antennas, and if the mobile terminal is connected to the network local area network, one Wi-Fi antenna is enabled, and the operating scenario information satisfies the second predetermined condition, the mobile terminal may not perform any operation. In addition, when the mobile terminal is connected to the local area network, the Wi-Fi antennas may not be enabled, but the number of the enabled Wi-Fi antennas is determined through the step S104 or the step S106.
In addition, if the operation scene information neither meets the first predetermined condition nor the second predetermined condition, the mobile terminal maintains the current operation state unchanged.
The embodiment of the application provides a control method of Wi-Fi antennas, which judges the number of the Wi-Fi antennas needing to be started through current operation scene information acquired under the Wi-Fi-based data receiving and sending state so as to receive and send data, namely, if the operation scene information meets a first preset condition, two Wi-Fi antennas are started to receive and send data, and if the operation scene information meets a second preset condition, one Wi-Fi antenna is started to receive and send data.
Example two
As shown in fig. 3, an execution main body of the method may be a mobile terminal, and the mobile terminal may include two Wi-Fi antennas, where the mobile terminal may be a device such as a personal computer, or a mobile terminal device such as a mobile phone and a tablet computer, and the mobile terminal may be a mobile terminal used by a user. The method can be applied to the processes of starting control and the like of the two Wi-Fi antennas of the mobile terminal. The method may specifically comprise the steps of:
in step S302, the operation scene information is acquired in a state where data transmission and reception are performed based on Wi-Fi.
The content of the step S302 is the same as the content of the step S102 in the first embodiment, and the specific processing procedure of the step S302 may refer to the related content in the step S102, which is not described herein again.
In step S304, if the operation scenario information indicates that the data amount of the current data transceiving is greater than the set data amount threshold, the two Wi-Fi antennas are enabled to transmit and receive data.
The data amount threshold may be set according to actual conditions, for example, the maximum data amount that can be processed by a single Wi-Fi antenna in a unit time is used as the data amount threshold.
In implementation, the capability of the Wi-Fi antenna to process data in different terminal operation scenarios may be tested by the mobile terminal, for example, a plurality of different types of application programs are installed in the mobile terminal, such as an instant messaging application, a video application, a game application, and the like, a user may start one or more of the application programs through the mobile terminal to form a plurality of different terminal operation scenarios, and may respectively test a data amount of data received and transmitted by a single Wi-Fi antenna and a data amount of data received and transmitted by two Wi-Fi antennas in the plurality of different terminal operation scenarios, and then may determine the data amount threshold according to the obtained result, and may set information corresponding to a terminal operation scenario in which the data amount of data received and transmitted by the Wi-Fi antennas is greater than the data amount threshold in a white list, as shown in fig. 4, where information recorded in the white list is a terminal operation scenario in which two Wi-Fi antennas can be enabled to receive and transmit data (that is, in a scenario where the amount of data transmitted and received by the Wi-Fi antenna is large), the user may also manage (such as delete, modify, etc.) the currently used terminal operation scenario or add a new terminal operation scenario through the white list setting page shown in fig. 4.
After the mobile terminal acquires the operation scene information, the operation scene information can be analyzed, if the terminal operation scene corresponding to the operation scene information is determined to be in the white list, it may be determined that the mobile terminal needs to enable two Wi-Fi antennas for transceiving data, if the mobile terminal cannot judge whether the terminal operation scene corresponding to the mobile terminal is in the white list through the operation scene information, or if the above judgment processing is overtime, the mobile terminal can determine whether the mobile terminal needs to start two Wi-Fi antennas for data transceiving based on a more simplified data volume threshold, namely, the mobile terminal can analyze the operation scene information, extract the information related to the data amount of the data transmitted and received by the Wi-Fi antenna, the extracted information may then be analyzed to determine the amount of data that the Wi-Fi antenna is transmitting and receiving data. The data volume of the data received and transmitted by the Wi-Fi antenna may be compared with the data volume threshold, and if the extracted data volume of the data received and transmitted by the Wi-Fi antenna is greater than the data volume threshold, it indicates that the mobile terminal is currently performing the receiving and transmitting operation with a large data volume, at this time, the mobile terminal may enable the two Wi-Fi antennas to perform the data receiving and transmitting, where a specific processing procedure for enabling the two Wi-Fi antennas to perform the data receiving and transmitting may refer to relevant contents in the first embodiment, and is not described herein again.
In addition, the case of performing data transmission and reception through two Wi-Fi antennas is not limited to the above-mentioned one implementation manner, but may also include multiple implementation manners in practical applications, and based on the above-mentioned contents, an alternative processing manner is provided, which may be specifically referred to the processing in step S306 to step S310 below.
In step S306, if the operation scenario information indicates that the data amount of the current data transceiving is not greater than the set data amount threshold, the operating frequency band of the Wi-Fi antenna is obtained.
The working frequency band may be a range of working frequencies used by the Wi-Fi antenna when the Wi-Fi antenna works, for example, a 2.4GHz frequency band or a 5GHz frequency band, the working frequency band may include a plurality of working frequencies, the working frequencies may be frequencies used by the Wi-Fi antenna when the Wi-Fi antenna performs data transceiving, and the working frequencies may be different according to different working frequency bands, for example, 2.45GHz or 5.5GHz, and the like.
In implementation, the working frequency bands of the Wi-Fi antennas may include multiple types, for example, a 2.4GHz frequency band, a 5GHz frequency band, and the like, where a frequency included in the 2.4GHz frequency band is smaller, a frequency included in the 5GHz frequency band is larger, the working frequency of the Wi-Fi antenna is larger, the more information that can be carried in a unit time of the Wi-Fi antenna is, and the faster the transmission speed of the Wi-Fi antenna is, and conversely, the smaller the working frequency of the Wi-Fi antenna is, the less information that can be carried in a unit time of the Wi-Fi antenna is, and the slower the transmission speed of the Wi-Fi antenna is, that is, compared with a single Wi-Fi antenna having a working frequency band of 2.4GHz, the more information that can be carried in a unit time of a single Wi-Fi antenna having a working frequency band of 5GHz is, and the. If it is determined that the operation scene information indicates that the data volume of the current data transmission and reception is not greater than the set data volume threshold value through the white list mode or the data volume threshold value mode, it may be further determined whether two Wi-Fi antennas need to be enabled to transmit and receive data through the working frequency band of the Wi-Fi antennas, and therefore, the working frequency information of the Wi-Fi antennas may be acquired, where the working frequency information of the Wi-Fi antennas may be included in the operation scene information or acquired by the mobile terminal in real time, and the working frequency band of the Wi-Fi antennas may be determined based on the working frequency information of the Wi-Fi antennas, for example, the working frequency information of the Wi-Fi antennas is 5.5GHz, and the working frequency band of the Wi-Fi antennas may be determined to be a 5GHz band.
In step S308, if the working frequency band of the Wi-Fi antenna is the first frequency band, the electric quantity data is acquired, and the frequency in the first frequency band is smaller than the set frequency threshold.
The frequency threshold may be set according to an actual situation, which is not limited in this embodiment of the present application. The first frequency band may be a frequency band including a smaller frequency, for example, currently, an operating frequency band of a Wi-Fi antenna includes a 2.4GHz frequency band and a 5GHz frequency band, and then the first frequency band may be the 2.4GHz frequency band.
In implementation, if the first frequency band is a 2.4GHz frequency band, the working frequency information of the Wi-Fi antenna acquired by the mobile terminal is any one of frequencies from 2.4GHz to 2.483GHz, and accordingly, for example, if the working frequency information of the Wi-Fi antenna acquired by the mobile terminal is 2.45GHz, it may be determined that the 2.45GHz is located in the 2.4GHz frequency band according to the working frequency information, and therefore, it may be determined that the working frequency band of the Wi-Fi antenna is the first frequency band, and since the frequency included in the first frequency band is small, in order to determine whether two Wi-Fi antennas need to be enabled to transmit and receive data, it may further determine through the remaining power of the mobile terminal, and for this reason, power data may be acquired, where the acquired power data may be included in the operation scenario information, or may be acquired by the mobile terminal in real time.
In addition, if the mobile terminal determines that the operating frequency band of the Wi-Fi antenna is not the first frequency band but a 5GHz frequency band having a frequency greater than that of the 2.4GHz frequency band according to the acquired operating frequency information of the Wi-Fi antenna, the mobile terminal may perform the process of step S318 described below.
In step S310, if the power data is greater than the set power threshold, two Wi-Fi antennas are enabled to transmit and receive data.
The power threshold may be set according to actual conditions, for example, 10% or 20% of the full power of the mobile terminal.
In implementation, the obtained electric quantity data can be compared with a set electric quantity threshold, if the electric quantity data is greater than the set electric quantity threshold, at this time, the data quantity of current data receiving and sending of the Wi-Fi antenna is not greater than the set data quantity threshold or is not in a white list, the working frequency band of the Wi-Fi antenna is a 2.4GHz frequency band, the residual electric quantity of the mobile terminal is large, and in order to reduce data delay and improve user experience, the mobile terminal can start the two Wi-Fi antennas to receive and send data.
In addition, the situation of transmitting and receiving data through the two Wi-Fi antennas is not limited to the above-mentioned one implementation, and may also include other various implementations in practical applications, and a further optional processing manner is provided below, which may be specifically referred to as the following: and if the running application identifier is the set target application identifier, enabling the two Wi-Fi antennas to receive and transmit data.
The identifier of the application may be a name, code, icon, or the like of the application program. The target application may be an application program with a large amount of data to be processed per unit time (or exceeding a predetermined threshold), such as a video application for viewing a video, an application for live video, an application for listening to audio online, and the like.
In implementation, the mobile terminal may detect whether a target application is included in an application program currently running in a foreground of the mobile terminal in real time, and if the target application is included, it indicates that the mobile terminal is currently performing a transceiving operation with a large data volume, and at this time, the mobile terminal may enable the two Wi-Fi antennas to perform transceiving of data.
In addition, it can be determined whether the mobile terminal needs to enable two Wi-Fi antennas for data transmission and reception in the above manner, and it can also be determined whether the mobile terminal needs to enable one Wi-Fi antenna for data transmission and reception in the following processing manner, which may be specifically referred to the processing of steps S312 to S318.
In step S312, if the operation scenario information indicates that the data size of the current data transceiver is not greater than the set data size threshold, the operating frequency band of the Wi-Fi antenna is obtained.
In step S314, if the working frequency band of the Wi-Fi antenna is a first frequency band, the electric quantity data is acquired, and the frequency in the first frequency band is smaller than a set frequency threshold.
For the specific processing procedures of step S312 and step S314, reference may be made to the relevant contents of step S306 and step S308, which are not described herein again.
In addition, if the mobile terminal determines that the operating frequency band of the Wi-Fi antenna is not the first frequency band (i.e., the 2.4GHz band) but a 5GHz band having a frequency greater than that of the 2.4GHz band according to the acquired operating frequency information of the Wi-Fi antenna, the mobile terminal may perform the process of step S318 described below.
In step S316, if the power data is smaller than the set power threshold, a Wi-Fi antenna is enabled to transmit and receive data.
The specific processing procedure of step S316 may refer to the related content of step S310, and is not described herein again.
In step S318, if the working frequency band of the Wi-Fi antenna is the second frequency band, one Wi-Fi antenna is enabled to transmit and receive data, and the frequency in the second frequency band is greater than the frequency in the first frequency band.
The second frequency band may be a frequency band including a larger frequency, for example, currently, the working frequency band of the Wi-Fi antenna includes a 2.4GHz frequency band and a 5GHz frequency band, and then the second frequency band may be the 5GHz frequency band.
In implementation, if the first frequency band is a 2.4GHz frequency band, the second frequency band is a 5GHz frequency band, and the working frequency information of the Wi-Fi antenna acquired by the mobile terminal is any one of frequencies from 5.2GHz to 5.8GHz, correspondingly, for example, if the working frequency information of the Wi-Fi antenna acquired by the mobile terminal is 5.5GHz, it can be determined that 5.5GHz is located in the 5GHz frequency band according to the working frequency information, and therefore, it can be determined that the working frequency band of the Wi-Fi antenna is the second frequency band, because the frequency included in the second frequency band is relatively large, at this time, because the data volume of the current data receiving and sending of the Wi-Fi antenna is not greater than the set data volume threshold or is not in the white list, and the working frequency band of the Wi-Fi antenna is the 5GHz frequency band, there are many information that can be carried by the Wi-Fi antenna in unit time, the transmission speed is relatively fast, and the basic requirements of the user, at this time, the mobile terminal may enable one Wi-Fi antenna to transmit and receive data.
The embodiment of the application provides a control method of Wi-Fi antennas, which judges the number of the Wi-Fi antennas needing to be started through current operation scene information acquired under the Wi-Fi-based data receiving and sending state so as to receive and send data, namely, if the operation scene information meets a first preset condition, two Wi-Fi antennas are started to receive and send data, and if the operation scene information meets a second preset condition, one Wi-Fi antenna is started to receive and send data.
EXAMPLE III
Based on the same idea, the Wi-Fi antenna control method provided in the embodiment of the present application further provides a Wi-Fi antenna control device, which includes two Wi-Fi antennas, as shown in fig. 5.
The Wi-Fi antenna control device comprises: an information acquisition module 501, a dual antenna enabling module 502, and a single antenna enabling module 503, wherein:
the information acquisition module 501 is configured to acquire current operation scene information in a Wi-Fi-based data transceiving state;
a dual antenna enabling module 502, configured to enable two Wi-Fi antennas to receive and transmit data if the operation scene information meets a first predetermined condition;
a single antenna enabling module 503, configured to enable a Wi-Fi antenna to receive and transmit data if the operation scenario information satisfies a second predetermined condition.
In this embodiment of the application, the dual-antenna enabling module 502 is configured to enable two Wi-Fi antennas to receive and transmit data if the operation scenario information indicates that the data amount of the current data received and transmitted is greater than a set data amount threshold.
In an embodiment of the present application, the apparatus further includes:
the working frequency acquisition module is used for acquiring the working frequency band of the Wi-Fi antenna if the running scene information indicates that the data volume of the current data receiving and sending is not larger than a set data volume threshold value;
the electric quantity acquisition module is used for acquiring electric quantity data if the working frequency band of the Wi-Fi antenna is a first frequency band;
the dual antenna enabling module 502 is configured to enable the two Wi-Fi antennas to receive and transmit data if the electric quantity data is greater than a set electric quantity threshold.
In this embodiment of the application, the running scenario information includes an identifier of a running application, and the dual-antenna enabling module 502 is configured to enable two Wi-Fi antennas to receive and transmit data if the identifier of the running application is the identifier of a set target application.
In this embodiment, the single antenna enabling module 503 includes:
the frequency acquisition unit is used for acquiring the working frequency band of the Wi-Fi antenna if the operation scene information indicates that the data volume of the current data receiving and sending is not larger than a set data volume threshold value;
the electric quantity acquisition unit is used for acquiring electric quantity data if the working frequency band of the Wi-Fi antenna is a first frequency band, wherein the frequency in the first frequency band is less than a set frequency threshold value;
and the single antenna starting unit is used for starting one Wi-Fi antenna to receive and transmit data if the electric quantity data is smaller than a set electric quantity threshold value.
In this embodiment of the application, the single antenna enabling module 503 is configured to enable a Wi-Fi antenna to receive and transmit data if the working frequency band of the Wi-Fi antenna is a second frequency band, where a frequency in the second frequency band is greater than a frequency in the first frequency band.
The control device for the Wi-Fi antenna provided in the embodiment of the present application can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.
The embodiment of the application provides a control device of Wi-Fi antennas, which judges the number of the Wi-Fi antennas to be started through the acquired current operation scene information in a Wi-Fi-based data receiving and sending state so as to receive and send data, namely, if the operation scene information meets a first preset condition, two Wi-Fi antennas are started to receive and send data, and if the operation scene information meets a second preset condition, one Wi-Fi antenna is started to receive and send data.
Example four
Figure 6 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application,
the mobile terminal 600 includes two Wi-Fi antennas, and may further include, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present application, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to obtain current operation scene information in a Wi-Fi based data transceiving state;
the processor 610 is further configured to enable the two Wi-Fi antennas to receive and transmit data if the operating scenario information meets a first predetermined condition;
the processor 610 is further configured to enable a Wi-Fi antenna to transmit and receive data if the operating scenario information satisfies a second predetermined condition.
In addition, the processor 610 is further configured to enable the two Wi-Fi antennas to transmit and receive data if the operation scenario information indicates that the data amount of the current data transmission and reception is greater than a set data amount threshold.
In addition, the processor 610 is further configured to obtain a working frequency band of the Wi-Fi antenna if the operation scenario information indicates that a data amount of current data transceiving is not greater than a set data amount threshold;
the processor 610 is further configured to obtain power data if the working frequency band of the Wi-Fi antenna is a first frequency band;
the processor 610 is further configured to enable the two Wi-Fi antennas to transmit and receive data if the power data is greater than a set power threshold.
The processor 610 is further configured to enable two Wi-Fi antennas to transmit and receive data if the identifier of the running application is the identifier of the set target application.
In addition, the processor 610 is further configured to obtain a working frequency band of the Wi-Fi antenna if the operation scenario information indicates that a data amount of current data transceiving is not greater than a set data amount threshold;
the processor 610 is further configured to obtain electric quantity data if a working frequency band of the Wi-Fi antenna is a first frequency band, where a frequency in the first frequency band is smaller than a set frequency threshold;
the processor 610 is further configured to enable a Wi-Fi antenna to receive and transmit data if the power data is smaller than a set power threshold.
In addition, the processor 610 is further configured to enable a Wi-Fi antenna to receive and transmit data if the working frequency band of the Wi-Fi antenna is a second frequency band, where a frequency in the second frequency band is greater than a frequency in the first frequency band.
The embodiment of the application provides a mobile terminal, which judges the number of Wi-Fi antennas needing to be started through current operation scene information acquired in a Wi-Fi-based data receiving and sending state to receive and send data, namely, if the operation scene information meets a first preset condition, two Wi-Fi antennas are started to receive and send data, and if the operation scene information meets a second preset condition, one Wi-Fi antenna is started to receive and send data.
It should be understood that, in the embodiment of the present application, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 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 (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 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.
The processor 610 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
Preferably, an embodiment of the present application further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above Wi-Fi antenna control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
EXAMPLE five
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the Wi-Fi antenna control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the application provides a computer-readable storage medium, which judges the number of Wi-Fi antennas to be started through current operation scene information acquired in a Wi-Fi-based data receiving and sending state to receive and send data, namely, if the operation scene information meets a first preset condition, two Wi-Fi antennas are started to receive and send data, and if the operation scene information meets a second preset condition, one Wi-Fi antenna is started to receive and send data.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (6)
1. A Wi-Fi antenna control method is applied to a mobile terminal, wherein the mobile terminal comprises two Wi-Fi antennas, and the method comprises the following steps:
acquiring operation scene information in a Wi-Fi-based data receiving and sending state;
if the operation scene information indicates that the data volume of the current data receiving and sending is larger than a set data volume threshold value, enabling two Wi-Fi antennas to receive and send data;
if the operation scene information meets a second preset condition, starting a Wi-Fi antenna to receive and transmit data;
if the operation scene information indicates that the data volume of the current data receiving and sending is not larger than a set data volume threshold value, acquiring the working frequency band of the Wi-Fi antenna; if the working frequency band of the Wi-Fi antenna is a first frequency band, acquiring electric quantity data, wherein the frequency in the first frequency band is smaller than a set frequency threshold value; and if the electric quantity data is larger than the set electric quantity threshold value, enabling the two Wi-Fi antennas to receive and transmit data.
2. The method according to claim 1, wherein if the operation scenario information satisfies a second predetermined condition, enabling a Wi-Fi antenna to transmit and receive data comprises:
if the operation scene information indicates that the data volume of the current data receiving and sending is not larger than a set data volume threshold value, acquiring the working frequency band of the Wi-Fi antenna;
if the working frequency band of the Wi-Fi antenna is a first frequency band, acquiring electric quantity data, wherein the frequency in the first frequency band is smaller than a set frequency threshold value;
and if the electric quantity data is smaller than the set electric quantity threshold value, starting a Wi-Fi antenna to receive and transmit data.
3. The method of claim 2, wherein after obtaining the operating frequency band of the Wi-Fi antenna, further comprising:
and if the working frequency band of the Wi-Fi antenna is a second frequency band, starting one Wi-Fi antenna to receive and transmit data, wherein the frequency in the second frequency band is greater than the frequency in the first frequency band.
4. A control device for Wi-Fi antennas, comprising two Wi-Fi antennas, the device comprising:
the information acquisition module is used for acquiring the running scene information in the state of data receiving and sending based on Wi-Fi;
the dual-antenna starting module is used for starting the two Wi-Fi antennas to receive and transmit data if the operation scene information indicates that the data volume of the current data receiving and transmitting is larger than a set data volume threshold value;
the single antenna starting module is used for starting a Wi-Fi antenna to receive and transmit data if the operation scene information meets a second preset condition; the working frequency acquisition module is used for acquiring the working frequency band of the Wi-Fi antenna if the running scene information indicates that the data volume of the current data receiving and sending is not larger than a set data volume threshold value;
the electric quantity acquisition module is used for acquiring electric quantity data if the working frequency band of the Wi-Fi antenna is a first frequency band, wherein the frequency in the first frequency band is less than a set frequency threshold value;
and the dual-antenna starting module is used for starting the two Wi-Fi antennas to receive and transmit data if the electric quantity data is larger than a set electric quantity threshold value.
5. The apparatus of claim 4, wherein the single antenna enable module comprises:
the frequency acquisition unit is used for acquiring the working frequency band of the Wi-Fi antenna if the operation scene information indicates that the data volume of the current data receiving and sending is not larger than a set data volume threshold value;
the electric quantity acquisition unit is used for acquiring electric quantity data if the working frequency band of the Wi-Fi antenna is a first frequency band, wherein the frequency in the first frequency band is less than a set frequency threshold value;
and the single antenna starting unit is used for starting one Wi-Fi antenna to receive and transmit data if the electric quantity data is smaller than a set electric quantity threshold value.
6. The apparatus of claim 5, wherein the single antenna enabling module is configured to enable a Wi-Fi antenna to transmit and receive data if an operating frequency band of the Wi-Fi antenna is a second frequency band, and a frequency in the second frequency band is greater than a frequency in the first frequency band.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810098223.4A CN108377157B (en) | 2018-01-31 | 2018-01-31 | Control method and device of Wi-Fi antenna |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810098223.4A CN108377157B (en) | 2018-01-31 | 2018-01-31 | Control method and device of Wi-Fi antenna |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108377157A CN108377157A (en) | 2018-08-07 |
CN108377157B true CN108377157B (en) | 2020-04-24 |
Family
ID=63017237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810098223.4A Active CN108377157B (en) | 2018-01-31 | 2018-01-31 | Control method and device of Wi-Fi antenna |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108377157B (en) |
Families Citing this family (6)
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 |
CN109618354A (en) * | 2018-10-25 | 2019-04-12 | 惠州Tcl移动通信有限公司 | A kind of Wi-Fi receiving and sending control method and device |
CN109362121B (en) * | 2018-11-20 | 2021-02-26 | Oppo(重庆)智能科技有限公司 | Sharing method and device of wireless local area network, storage medium and terminal |
CN110234178A (en) * | 2019-06-11 | 2019-09-13 | 深圳云里物里科技股份有限公司 | A kind of Bluetooth gateway and setting method, system, computer readable storage medium |
CN110430592B (en) * | 2019-08-30 | 2022-10-28 | Oppo广东移动通信有限公司 | Network control method and related product |
CN114598371B (en) * | 2022-05-10 | 2022-09-09 | 荣耀终端有限公司 | Method for acquiring antenna combination, electronic device and computer readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202602915U (en) * | 2012-05-14 | 2012-12-12 | 成都飞鱼星科技开发有限公司 | Wireless router |
US9331835B1 (en) * | 2014-03-19 | 2016-05-03 | Amazon Technologies, Inc. | Radio frequency (RF) front-end circuitry for wireless local area network (WLAN), wide area network (WAN) and global positioning system (GPS) communications |
CN106231662B (en) * | 2016-09-30 | 2019-08-20 | 维沃移动通信有限公司 | A kind of method for handover control and terminal of terminal antenna |
CN107566015B (en) * | 2017-08-29 | 2020-06-12 | Oppo广东移动通信有限公司 | Antenna control method, antenna control device, storage medium and electronic equipment |
-
2018
- 2018-01-31 CN CN201810098223.4A patent/CN108377157B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108377157A (en) | 2018-08-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108377157B (en) | Control method and device of Wi-Fi antenna | |
CN110324859B (en) | Method for selecting transmission resource of sidelink, configuration method, terminal and network equipment | |
CN110753389A (en) | Network control method and electronic equipment | |
CN108874352B (en) | Information display method and mobile terminal | |
CN108880631B (en) | Information receiving and transmitting switching method and terminal | |
WO2021104246A1 (en) | Network connection method and electronic device | |
CN103488450A (en) | Method, device and terminal equipment for projecting picture | |
US11259323B2 (en) | Random access method and user equipment | |
CN111615198B (en) | Resource determining method, resource indicating method, terminal and network side equipment | |
CN111371705B (en) | Download task execution method and electronic device | |
JP7252259B2 (en) | Access control method, message broadcasting method and related device | |
CN107682541B (en) | Audio control method for screen projection, mobile terminal and storage medium | |
CN111158815B (en) | Dynamic wallpaper blurring method, terminal and computer readable storage medium | |
CN111818657B (en) | Uplink transmission discarding method, uplink transmission discarding configuration method and related equipment | |
CN113596231B (en) | Screen-throwing display control method, device and computer readable storage medium | |
CN109151741B (en) | Multimedia message receiving method and terminal | |
CN108419283B (en) | WIFI hotspot scanning method and mobile terminal | |
CN108235084B (en) | Video playing method and mobile terminal | |
CN107678622B (en) | Application icon display method, terminal and storage medium | |
CN111343591B (en) | Session information processing method and electronic equipment | |
WO2020052635A1 (en) | Communication method for mobile terminal, and mobile terminal | |
CN109450508B (en) | Antenna determination method and device and mobile terminal | |
CN106815077B (en) | Data processing method based on intelligent device architecture and intelligent device | |
CN112867171B (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN111970668B (en) | Bluetooth audio control method, device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |