CN108377157A - A kind of control method and device of Wi-Fi antennas - Google Patents

A kind of control method and device of Wi-Fi antennas Download PDF

Info

Publication number
CN108377157A
CN108377157A CN201810098223.4A CN201810098223A CN108377157A CN 108377157 A CN108377157 A CN 108377157A CN 201810098223 A CN201810098223 A CN 201810098223A CN 108377157 A CN108377157 A CN 108377157A
Authority
CN
China
Prior art keywords
data
antennas
frequency range
transmitting
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810098223.4A
Other languages
Chinese (zh)
Other versions
CN108377157B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810098223.4A priority Critical patent/CN108377157B/en
Publication of CN108377157A publication Critical patent/CN108377157A/en
Application granted granted Critical
Publication of CN108377157B publication Critical patent/CN108377157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details 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/38Transceivers, 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/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0404Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • H04B7/0686Hybrid systems, i.e. switching and simultaneous transmission
    • H04B7/0689Hybrid systems, i.e. switching and simultaneous transmission using different transmission schemes, at least one of them being a diversity transmission scheme
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0868Hybrid systems, i.e. switching and combining
    • H04B7/0871Hybrid systems, i.e. switching and combining using different reception schemes, at least one of them being a diversity reception scheme

Abstract

The embodiment of the present application discloses a kind of control method and device of Wi Fi antennas, and this method is applied to mobile terminal, and the mobile terminal includes two Wi Fi antennas, including:In the state of carrying out data transmit-receive based on Wi Fi, Run-time scenario information is obtained;If the Run-time scenario information meets the first predetermined condition, the transmitting-receiving that two Wi Fi antennas carry out data is enabled;If the Run-time scenario information meets the second predetermined condition, the transmitting-receiving that a Wi Fi antenna carries out data is enabled.Utilize the embodiment of the present application, two predetermined conditions and Run-time scenario information of setting can be passed through, specific judgement needs the Wi Fi antenna amounts enabled, realize the switching between single antenna and double antenna, to both improve data transmit-receive efficiency, reduce the delay of data, but also resource consumption has obtained effective control.

Description

A kind of control method and device of Wi-Fi antennas
Technical field
This application involves field of computer technology more particularly to a kind of control method and device of Wi-Fi antennas.
Background technology
Increasingly be unable to do without with the continuous development of network technology and terminal technology, in people’s lives and work network and Mobile terminal, Wi-Fi (Wireless-Fidelity, Wireless Fidelity) with it is low-cost, have the high wireless sky of data bandwidth The advantages that middle interface and fast transmission speed, increasingly favored by people.With the continuous development of terminal technology, Wi-Fi is being moved Application in dynamic terminal is also more and more extensive.
As the data volume of the Internet resources of user's request is increasing, to mobile terminal (especially mobile terminal, such as hand Machine or tablet computer etc.) data transmit-receive speed and efficiency requirement it is also higher and higher, for this purpose, mobile terminal developer is original Single Wi-Fi antennas mobile terminal in again be provided with an independent Wi-Fi antenna so that have two in mobile terminal Independent Wi-Fi antennas, in this way, mobile terminal can be carried out at the same time the transmitting-receiving of data by two Wi-Fi antennas, to improve Data transmit-receive speed and efficiency.
However, the transmitting-receiving that mobile terminal is carried out at the same time data by two Wi-Fi antennas can consume the more of mobile terminal Resource, such as the more electricity of mobile terminal (the especially mobile terminals such as mobile phone or tablet computer), in the application, two can be consumed The mobile phone of the mobile phone and a Wi-Fi antenna of a Wi-Fi antennas, in receiving and dispatching identical data procedures, two Wi-Fi antennas The electric current of mobile phone increases tens of milliamperes (the case where cell voltage is 4 volts compared to the electric current of the mobile phone of a Wi-Fi antenna Under), it is seen then that mobile terminal enables two Wi-Fi antennas and carries out needing to consume a large amount of resource when data transmit-receive, moreover, usually User can not control the Wi-Fi antenna amounts of enabling, to accelerate the resource consumption of mobile terminal.
Invention content
The embodiment of the present application provides a kind of control method of Wi-Fi antennas, to solve the money of mobile terminal in the prior art Source consumes very fast problem.
In order to solve the above technical problems, what the embodiment of the present application was realized in:
In a first aspect, a kind of control method of Wi-Fi antennas provided by the embodiments of the present application, is applied to mobile terminal, institute It includes two Wi-Fi antennas to state mobile terminal, the method includes:
In the state of carrying out data transmit-receive based on Wi-Fi, Run-time scenario information is obtained;
If the Run-time scenario information meets the first predetermined condition, the receipts that two Wi-Fi antennas carry out data are enabled Hair;
If the Run-time scenario information meets the second predetermined condition, the receipts that a Wi-Fi antenna carries out data are enabled Hair.
Second aspect, the embodiment of the present application provide a kind of control device of Wi-Fi antennas, including two Wi-Fi antennas, Described device includes:
Data obtaining module, in the state of carrying out data transmit-receive based on Wi-Fi, obtaining Run-time scenario information;
Double antenna enables module, if meeting the first predetermined condition for the Run-time scenario information, enables two Wi- Fi antennas carry out the transmitting-receiving of data;
Single antenna enables module, if meeting the second predetermined condition for the Run-time scenario information, enables a Wi- Fi antennas carry out the transmitting-receiving of data.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory and are stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor The step of control method for the Wi-Fi antennas that above-mentioned first aspect provides.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the computer program realizes Wi-Fi days that above-mentioned first aspect provides when being executed by processor The step of control method of line.
By the above technical solution provided by the embodiments of the present application as it can be seen that the embodiment of the present application based on Wi-Fi by carrying out In the state of data transmit-receive, the Run-time scenario information of acquisition judges the quantity for the Wi-Fi antennas for needing to enable, to carry out data receipts Hair enables the transmitting-receiving that two Wi-Fi antennas carry out data that is, if Run-time scenario information meets the first predetermined condition, if Run-time scenario information meets the second predetermined condition, then the transmitting-receiving that a Wi-Fi antenna carries out data is enabled, in this way, passing through setting Two predetermined conditions and Run-time scenario information, specific judgement need the Wi-Fi antenna amounts enabled, realize single antenna and double Switching between antenna reduces the delay of data, but also resource consumption obtains to both improve data transmit-receive efficiency Effectively control.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of control method embodiment of Wi-Fi antennas of the application;
Fig. 2 is a kind of schematic diagram of circuit connection structure of Wi-Fi antennas of the application;
Fig. 3 is the control method embodiment of the application another kind Wi-Fi antennas;
Fig. 4 is the page display schematic diagram that the page is arranged in a kind of white list of the application;
Fig. 5 is a kind of control device embodiment of Wi-Fi antennas of the application;
Fig. 6 is a kind of mobile terminal embodiment of the application.
Specific implementation mode
The embodiment of the present application provides a kind of control method and device of Wi-Fi antennas.
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The every other embodiment that technical staff is obtained without creative efforts should all belong to the application protection Range.
Embodiment one
As shown in Figure 1, the embodiment of the present application provides a kind of control method of Wi-Fi antennas, the executive agent of this method can Think mobile terminal, may include two Wi-Fi antennas in the mobile terminal, wherein the mobile terminal can be such as individual calculus The equipment such as machine, can also such as mobile phone, tablet computer mobile terminal device, which can be mobile end for using of user End.This method can be applied to two Wi-Fi antennas of mobile terminal enable in the processing such as control.This method specifically may be used To include the following steps:
In step s 102, in the state of carrying out data transmit-receive based on Wi-Fi, Run-time scenario information is obtained.
Wherein, Run-time scenario information can be indicated for mobile terminal and be currently at data in the state of Wi-Fi connection The size of handling capacity may include much information in Run-time scenario information, specifically may be set according to actual conditions, specifically such as The letter of the data volume of data, the data volume of the data of transmission, the application program having been turned in mobile terminal that Wi-Fi antennas receive Breath, the remaining capacity data (i.e. electricity data) of mobile terminal and the working frequency range etc. of Wi-Fi antennas.
In force, Wi-Fi (Wireless-Fidelity, Wireless Fidelity) is a kind of Wireless networking technologies, and Wi-Fi is The wireless network being made of AP (Access Point) and wireless network card, AP are commonly referred to as network bridge or access point, Wi-Fi It is as the bridge between conventional wired LAN network and Wireless LAN, therefore, any one is equipped with wireless network card Mobile terminal can share limited the local area network even resource of Wide Area Network by AP, and AP therein is equivalent to nothing built in one The multiport transponder or router of line transmitter, and wireless network card is then comparable to be responsible for receiving the visitor by the emitted signals of AP Family end equipment.Although the radio communication quality transmitted by Wi-Fi technology is not fine, data safety performance is compared to bluetooth etc. Difference, transmission quality also have much room for improvement, but the transmission speed of Wi-Fi is very fast, meet personal and society information system requirement, and And Wi-Fi expenses are extremely cheap and have the high wireless air interface of data bandwidth, user can be in the overlay areas Wi-Fi Interior fast browsing webpage, answers make a phone call whenever and wherever possible, without worrying that speed is slow or spending high problem.With terminal The continuous development of technology, the applications of Wi-Fi on mobile terminals are also more and more extensive, and mobile terminal passes through Wi-Fi shared verifications Very convenient, user need not carry out any setting in the terminal, you can in the coverage area of Wi-Fi signal, and Under the default setting of mobile terminal and the wireless router of generation Wi-Fi signal, mobile terminal can obtain network address automatically (such as IP (Internet Protocol, the agreement interconnected between network) address etc.) is wirelessly connected, and can utilize movement Browser, instant messaging application of terminal etc. carry out wireless networking.
With the continuous development of network technology and terminal technology, in order to attract user, many webpages whether to be set in the space of a whole page Meter, or on content of pages it is all very rich and varied, but the webpage data volume that includes for being also in this way is excessive, example Such as, game developer, can be by the increasingly finer and smoother of the picture making of mobile phone games, clarity in order to improve the game experiencing of user Higher, and the data volume of game picture transmission will certainly be increased in this way, for another example with the development of Internet video, people are to regarding The pursuit of frequency clarity is constantly promoted, for this purpose, the clarity for the video that video provider provides to the user in Video Applications is got over Carry out higher, and high-definition video, the transmission that the current situation necessarily carries out mass data is watched in user.It is received to improve data The speed and efficiency of hair, mobile terminal developer are provided with a Wi- again in the mobile terminal of original single Wi-Fi antennas Fi antennas so that have two Wi-Fi antennas in mobile terminal, in this way, mobile terminal is carried out respectively by two Wi-Fi antennas The transmitting-receiving of data, to mitigate the big data quantity pressure of single Wi-Fi antenna surfaces pair.However, two Wi-Fi antennas carry out respectively Although the transmitting-receiving of data can mitigate the data pressure of single Wi-Fi antennas, it can also increase the resource consumption of mobile terminal, Especially mobile terminal, such as mobile phone or tablet computer, since the electricity of battery of mobile terminal is limited, two Wi-Fi antennas are same Enablings of the Shi Qiyong relative to single Wi-Fi antennas, can consume the more electricity of mobile terminal, that is to say:Single Wi-Fi antennas Consumption electricity is relatively fewer, but the data volume received and dispatched in the unit interval is less, and the electricity of two Wi-Fi antennas consumption is relatively It is more, but the data volume received and dispatched in the unit interval is more, therefore, enables single Wi-Fi antennas and two Wi-Fi antennas of enabling are each Advantageous and disadvantage, if carrying out coordinated management to the two becomes problem to be solved.For this purpose, the embodiment of the present application provides one Kind enables single Wi-Fi antennas and enables the switching method of two Wi-Fi antennas, can specifically include the following contents:
User, in order to reduce the consumption to mobile data flow, is going back home when using mobile terminal, is reaching place of working Point or certain appointed places or when region, can be made by the Wireless LAN in above-mentioned place or region mobile terminal with Network connection, to carry out network access, specifically, for example, being equipped with wireless router in the family of user, which can To be the router based on more working frequency range, more working frequency range therein may include 2.4GHz frequency ranges and 5GHz frequency ranges, alternatively, The wireless router can also be the router based on single working frequency range, and working frequency range therein may include 2.4GHz frequency ranges Or 5GHz frequency ranges etc..After user goes back home, the wireless router can be opened, wireless router can emit wireless signal.Together When, user can open the Wi-Fi switches of mobile terminal, to receive wireless signal, when mobile terminal to search to the wireless routing After the wireless signal of device transmitting, network connection can be carried out with the wireless router, after successful connection, user can pass through movement Terminal is based on Wi-Fi and carries out data transmit-receive.Since there are two Wi-Fi antennas for setting in mobile terminal, in order to reduce mobile terminal Resource consumption, and as early as possible complete data transmitting-receiving, the enabling quantity of Wi-Fi antennas can be selected, specifically, work as shifting After dynamic terminal is connected to Wireless LAN, in order to improve the transmitting-receiving rate of data, it can first enable two Wi-Fi antennas and carry out Data transmit-receive can also first enable a Wi-Fi antenna and carry out data transmit-receive alternatively, in order to reduce resource consumption, specifically can be with It is set according to actual conditions, the embodiment of the present application does not limit this.At this point, mobile terminal can collect itself Wi-Fi days The data volume of data that line receives, the data volume of the data of transmission, the information for the application program having been turned in mobile terminal, movement The information such as the remaining capacity data (i.e. electricity data) of terminal and the working frequency range of Wi-Fi antennas, and generated by above- mentioned information Run-time scenario information.
In step S104, if above-mentioned Run-time scenario information meets the first predetermined condition, two Wi-Fi antennas are enabled Carry out the transmitting-receiving of data.
Wherein, the first predetermined condition may be set according to actual conditions, specifically such as, the data of Wi-Fi antenna transceiving datas Amount is more than predetermined amount of data threshold value, and remaining capacity data are more than predetermined power threshold in mobile terminal, and mobile terminal is currently The application program of operation is scheduled application program (such as Video Applications or game application) etc., and in practical applications, first is pre- Fixed condition may include one of above-mentioned condition, can also include the combination of above-mentioned multiple conditions, and a combination thereof mode can be with It is set according to actual conditions, the first predetermined condition can also include other conditions in addition to above-mentioned condition, the embodiment of the present application pair This is not limited.
In force, the first predetermined condition can be previously provided in mobile terminal, which can basis The demand of user is set, and can also be set according to actual conditions by the developer of mobile terminal, such as developer uses shifting The disposition of the dynamic single Wi-Fi days demand pairs evidence of terminal test, therefrom analyzes in the unit interval that single Wi-Fi antennas can The maximum amount of data of processing, and can be based on Wi-Fi antenna transceiving datas in the maximum amount of data setting unit interval analyzed Data volume threshold value, can be stored in this, as the first predetermined condition in mobile terminal, the first predetermined condition storage to shifting After in dynamic terminal, it can also be updated according to actual conditions, specifically can be according to actual needs updated by user, It can also be and Run-time scenario information in certain a period of time is learnt by way of machine learning by mobile terminal, obtain new The first predetermined condition, and the first predetermined condition stored before is updated by the first new predetermined condition.
After acquisition for mobile terminal to Run-time scenario information, Run-time scenario information can be analyzed, therefrom extract with The relevant Run-time scenario information of first predetermined condition, it is then possible to by the Run-time scenario information extracted and the first predetermined condition It is matched, if the Run-time scenario information extracted meets the first predetermined condition, shows that mobile terminal is currently carrying out The larger transmitting-receiving operation of data volume improves user experience, mobile terminal can be to two Wi- at this point, in order to reduce data delay Fi antennas send enabled instruction, as shown in Fig. 2, mobile terminal includes two Wi-Fi antennas, each Wi-Fi antennas can be sent out The wireless signal of two kinds of different frequency ranges (i.e. 2.4GHz frequency ranges and 5.8GHz frequency ranges), each Wi-Fi antennas is sent to be both provided with one Switch can control whether the Wi-Fi antennas enable by switch, refer to when mobile terminal sends to start to two Wi-Fi antennas When enabling, the switch of two Wi-Fi antennas can be closed, to enable two Wi-Fi antennas.Meanwhile mobile terminal can be passed through In related driver programs drive two Wi-Fi antennas to start operation simultaneously, to which two Wi-Fi antennas of realization are carried out at the same time number According to transmitting-receiving, accelerates the transmitting-receiving rate of data, reduce the delay of data.
In addition, if above-mentioned Run-time scenario information is unsatisfactory for the first predetermined condition, it can execute following step S106's Processing, alternatively, mobile terminal maintains current operating status constant etc..
In step s 106, if above-mentioned Run-time scenario information meets the second predetermined condition, a Wi-Fi antenna is enabled Carry out the transmitting-receiving of data.
Wherein, the second predetermined condition may be set according to actual conditions, specifically such as, the data of Wi-Fi antenna transceiving datas Amount is less than predetermined amount of data threshold value, and remaining capacity data are less than predetermined power threshold in mobile terminal, and mobile terminal is currently just It is not scheduled application program (such as Video Applications or game application) etc. in the application program of operation, in practical applications, the Two predetermined conditions may include one of above-mentioned condition, can also include the combination of above-mentioned multiple conditions, a combination thereof mode It may be set according to actual conditions, the second predetermined condition can also include other conditions in addition to above-mentioned condition.In addition, second is pre- Fixed condition can be the condition runed counter to above-mentioned first predetermined condition, can also be not have any pass with above-mentioned first predetermined condition The condition of connection relationship, the embodiment of the present application do not limit this.
The second predetermined condition can be previously provided in mobile terminal, which can be according to the demand of user It is set, can also be set according to actual conditions by the developer of mobile terminal, such as developer uses mobile terminal test Single Wi-Fi antennas and two Wi-Fi antennas therefrom analyze single Wi- in the unit interval to the wear rate situation of electricity The electric quantity consumption value of the electric quantity consumption value of Fi antennas and two Wi-Fi antennas, and can be set based on the electric quantity consumption value analyzed Determine power threshold, can be stored into mobile terminal in this, as the second predetermined condition, the storage of the second predetermined condition is whole to movement After in end, it can also be updated according to actual conditions, specifically can be according to actual needs updated by user, may be used also By be by mobile terminal by machine learning in a manner of Run-time scenario information in certain a period of time is learnt, obtain new Two predetermined conditions, and the second predetermined condition stored before is updated by the second new predetermined condition.
After acquisition for mobile terminal to Run-time scenario information, Run-time scenario information can be analyzed, therefrom extract with The relevant Run-time scenario information of second predetermined condition, it is then possible to by the Run-time scenario information extracted and the second predetermined condition It is matched, if the Run-time scenario information extracted meets the second predetermined condition, shows that mobile terminal current data is received and dispatched Data volume is smaller or the remaining capacity of mobile terminal deficiency etc. improves user experience at this point, in order to reduce resource consumption, Mobile terminal can be thereto a Wi-Fi antenna send enabled instruction, at this point, as shown in Fig. 2, can be by two Wi-Fi The switch of a Wi-Fi antenna is closed in antenna, and the switch of another Wi-Fi antenna is opened, and passes through the phase in mobile terminal Closing driver drives the Wi-Fi antennas to start operation, to realize that a Wi-Fi antenna carries out data transmit-receive, reduces resource Consumption.Wherein, it should be noted that if mobile terminal connects network local network, two Wi-Fi antennas are enabled, and Run-time scenario information meets the second predetermined condition, then the Wi-Fi antenna that mobile terminal can be thereto sends out of service Instruction enable a Wi-Fi antenna if when mobile terminal connects network local network, and Run-time scenario information meets Second predetermined condition, then mobile terminal can not do any operation.In addition, when mobile terminal connects network local network, may be used also First not enable Wi-Fi antennas, but, S104 or step S106 judges to enable the quantity of Wi-Fi antennas through the above steps.
In addition, if above-mentioned Run-time scenario information had both been unsatisfactory for the first predetermined condition, it is also unsatisfactory for the second predetermined condition, then The operating status that mobile terminal remains current is constant.
The embodiment of the present application provides a kind of control method of Wi-Fi antennas, by carrying out data transmit-receive based on Wi-Fi Under state, the current Run-time scenario information of acquisition judges the quantity for the Wi-Fi antennas for needing to enable, to carry out data transmit-receive, I.e. if Run-time scenario information meets the first predetermined condition, the transmitting-receiving that two Wi-Fi antennas carry out data is enabled, if operation Scene information meets the second predetermined condition, then the transmitting-receiving that a Wi-Fi antenna carries out data is enabled, in this way, pass through setting two A predetermined condition and Run-time scenario information, specific judgement need the Wi-Fi antenna amounts enabled, realize single antenna and double antenna Between switching reduce the delay of data, but also resource consumption has obtained effectively to both improving data transmit-receive efficiency Control.
Embodiment two
As shown in figure 3, the embodiment of the present application provides a kind of control method of Wi-Fi antennas, the executive agent of this method can Think mobile terminal, may include two Wi-Fi antennas in the mobile terminal, wherein the mobile terminal can be such as individual calculus The equipment such as machine, can also such as mobile phone, tablet computer mobile terminal device, which can be mobile end for using of user End.This method can be applied to two Wi-Fi antennas of mobile terminal enable in the processing such as control.This method specifically may be used To include the following steps:
In step s 302, in the state of carrying out data transmit-receive based on Wi-Fi, Run-time scenario information is obtained.
The step content of above-mentioned steps S302 is identical as the step content of step S102 in above-described embodiment one, step The concrete processing procedure of S302 may refer to the related content in above-mentioned steps S102, and details are not described herein.
In step s 304, if the data volume of above-mentioned Run-time scenario information instruction current data transmitting-receiving is more than the number of setting According to amount threshold value, then the transmitting-receiving that two Wi-Fi antennas carry out data is enabled.
Wherein, data-quantity threshold may be set according to actual conditions, such as single Wi-Fi antennas can be located in the unit interval The maximum amount of data of reason is as above-mentioned data-quantity threshold etc..
In force, can by under the different terminal operating scene of mobile terminal test, Wi-Fi antenna processing data Ability, for example, the application program of multiple and different types is equipped in mobile terminal, such as instant messaging application, Video Applications and trip Play application etc., user can be started one or more of application programs by mobile terminal and constitute a variety of different terminal fortune Row scene, can test respectively under above-mentioned multiple and different terminal operating scenes the data volume of single Wi-Fi antenna transceiving datas and The data volume of two Wi-Fi antenna transceiving datas, it is then possible to determine above-mentioned data-quantity threshold in conjunction with obtained result, and can The corresponding information of terminal operating scene the data volume of Wi-Fi antenna transceiving datas to be more than to the data-quantity threshold is set to white In list, as shown in Figure 4, wherein described in white list is the end that can enable the transmitting-receiving that two Wi-Fi antennas carry out data Run-time scenario (that is to say the larger scene of the data volume of Wi-Fi antenna transceiving datas) is held, user can also be by shown in Fig. 4 White list is arranged the page and is transported to the terminal that currently used terminal operating scene is managed and (such as deletes, changes) or addition is new Row scene etc..
After acquisition for mobile terminal is to Run-time scenario information, Run-time scenario information can be analyzed, if it is determined that fortune The corresponding terminal operating scene of row scene information is in above-mentioned white list, then can determine that mobile terminal needs to enable two Wi-Fi antennas carry out the transmitting-receiving of data, if mobile terminal can not judge its corresponding terminal operating by Run-time scenario information Whether scene is in above-mentioned white list, alternatively, above-mentioned judgement processing time-out, then mobile terminal can be based on more simplified data The mode of amount threshold value determines whether mobile terminal needs to enable the transmitting-receiving that two Wi-Fi antennas carry out data, i.e. mobile terminal can To analyze Run-time scenario information, information related with the data volume of Wi-Fi antenna transceiving datas is therefrom extracted, so Afterwards, the information extracted can be analyzed, determines the data volume of Wi-Fi antenna transceiving datas.Wi-Fi antennas can be received The data volume of hair data is compared with above-mentioned data-quantity threshold, if the data volume of the Wi-Fi antenna transceiving datas extracted More than data-quantity threshold, then show that mobile terminal is currently carrying out the larger transmitting-receiving operation of data volume, at this point, mobile terminal can To enable the transmitting-receiving that two Wi-Fi antennas carry out data, wherein enabling the specific place that two Wi-Fi antennas carry out the transmitting-receiving of data Reason process may refer to the related content in above-described embodiment one, and details are not described herein.
In addition, the case where carrying out the transmitting-receiving of data by two Wi-Fi antennas is not limited to a kind of above-mentioned realization method, It can also include a variety of achievable modes in practical application, below based on the above, then provide a kind of optional processing mode, The specific processing that may refer to following step S306~step S310.
In step S306, if the data volume of above-mentioned Run-time scenario information instruction current data transmitting-receiving is no more than setting Data-quantity threshold then obtains the working frequency range of Wi-Fi antennas.
Wherein, the range of the working frequency used when working frequency range can be Wi-Fi Antenna Operations, such as 2.4GHz frequency ranges Or 5GHz frequency ranges etc., may include multiple working frequencies in working frequency range, working frequency can be that Wi-Fi antennas carry out data receipts Used frequency when hair, working frequency can be different according to the difference of working frequency range, such as 2.45GHz or 5.5GHz etc..
In force, the working frequency range of Wi-Fi antennas may include a variety of, such as 2.4GHz frequency ranges, 5GHz frequency ranges etc., In, the frequency for including in 2.4GHz frequency ranges is smaller, and the frequency for including in 5GHz frequency ranges is larger, and the working frequency of Wi-Fi antennas is got over Greatly, the information that can be carried in the Wi-Fi antennas unit interval is more, and transmission speed also can be faster, on the contrary, Wi-Fi days The working frequency of line is smaller, and the information that can be carried in the Wi-Fi antenna unit interval is fewer, and transmission speed also can be slower, Single Wi-Fi antennas that working frequency range is 5GHz be that is to say compared with the single Wi-Fi antennas that working frequency range is 2.4GHz, unit The information that can be carried in time is more, and transmission speed is very fast.If by way of above-mentioned white list or data-quantity threshold Mode determine that the data volume of Run-time scenario information instruction current data transmitting-receiving, then can be into no more than the data-quantity threshold of setting The transmitting-receiving that one step by the working frequency range of Wi-Fi antennas judges whether that two Wi-Fi antennas of enabling is needed to carry out data, for this purpose, The working frequency information of Wi-Fi antennas can be obtained, wherein the working frequency information of the Wi-Fi antennas can be contained in above-mentioned It can also be to be obtained in real time by mobile terminal in Run-time scenario information, can be determined based on the working frequency information of Wi-Fi antennas The working frequency range of Wi-Fi antennas can then determine Wi-Fi antennas for example, the working frequency information of Wi-Fi antennas is 5.5GHz Working frequency range be 5GHz frequency ranges.
In step S308, if the working frequency range of Wi-Fi antennas is the first frequency range, electricity data, the first frequency are obtained Frequency in section is less than the frequency threshold of setting.
Wherein, frequency threshold may be set according to actual conditions, and the embodiment of the present application does not limit this.First frequency range can Include wherein the smaller corresponding frequency range of frequency to be, for example, currently, the working frequency range of Wi-Fi antennas includes 2.4GHz frequency ranges With 5GHz frequency ranges, then the first frequency range can be 2.4GHz frequency ranges.
In force, if the first frequency range is 2.4GHz frequency ranges, the working frequency of the Wi-Fi antennas of acquisition for mobile terminal Information is any one frequency in 2.4GHz~2.483GHz, correspondingly, for example, if arrive Wi-Fi days of acquisition for mobile terminal The working frequency information of line is 2.45GHz, then can determine that 2.45GHz is located at 2.4GHz frequency ranges according to above-mentioned working frequency information It is interior, hence, it can be determined that the working frequency range of Wi-Fi antennas is since the frequency for including in the first frequency range is smaller for the first frequency range It determines the need for enabling the transmitting-receiving that two Wi-Fi antennas carry out data, can further pass through the residue electricity of mobile terminal Amount is judged, for this purpose, electricity data can be obtained, wherein the acquisition electricity data can be contained in above-mentioned Run-time scenario letter Can also be to be obtained in real time by mobile terminal in breath.
In addition, if mobile terminal determines the work of Wi-Fi antennas according to the working frequency information of the Wi-Fi antennas of acquisition Frequency range not instead of the first frequency range, the 5GHz frequency range bigger than the frequency in 2.4GHz frequency range, then mobile terminal can execute following The processing of step S318.
In step S310, if above-mentioned electricity data be more than setting power threshold, enable two Wi-Fi antennas into The transmitting-receiving of row data.
Wherein, power threshold may be set according to actual conditions, for example, mobile terminal Full Charge Capacity 10% or 20% etc..
In force, the power threshold of obtained electricity data and setting can be compared, if electricity data is big In the power threshold of setting, then at this point, Wi-Fi antenna current datas transmitting-receiving data volume no more than setting data-quantity threshold or Be not in white list, the working frequency range of Wi-Fi antennas is 2.4GHz frequency ranges, and the remaining capacity of mobile terminal is more, is Reduction data delay, improves user experience, and mobile terminal can enable the transmitting-receiving that two Wi-Fi antennas carry out data.
In addition, the case where carrying out the transmitting-receiving of data by two Wi-Fi antennas is not limited to a kind of above-mentioned realization method, It can also include other a variety of achievable modes in practical application, a kind of optional processing mode be provided again below, it specifically can be with Referring to following the description:Above-mentioned Run-time scenario information includes the mark for the application being currently running, then if the application being currently running The intended application for being identified as setting mark, then enable the transmitting-receiving that two Wi-Fi antennas carry out data.
Wherein, the mark of application can be title, coding or icon of application program etc..Intended application can be with the unit interval (or more than predetermined threshold) application program for inside needing the data volume for carrying out data processing larger, such as watching video Video Applications, the application for net cast, the application etc. for listening to audio online.
In force, mobile terminal can detect in real time currently in the application program of the front stage operation of mobile terminal whether Including intended application, if including intended application, show that mobile terminal is currently carrying out the larger transmitting-receiving operation of data volume, At this point, mobile terminal can enable the transmitting-receiving that two Wi-Fi antennas carry out data.
In addition, in addition to that can determine whether mobile terminal needs to enable two Wi-Fi antennas into line number through the above way According to transmitting-receiving outside, mobile terminal can also be determined by following processing modes whether need to enable Wi-Fi antenna to carry out data Transmitting-receiving, specifically may refer to the processing of following step S312~step S318.
In step S312, if the data volume of above-mentioned Run-time scenario information instruction current data transmitting-receiving is no more than setting Data-quantity threshold then obtains the working frequency range of Wi-Fi antennas.
In step S314, if the working frequency range of Wi-Fi antennas is the first frequency range, electricity data, the first frequency are obtained Frequency in section is less than the frequency threshold of setting.
The concrete processing procedure of above-mentioned steps S312 and step S 314 may refer to above-mentioned steps S306's and step S308 Related content, details are not described herein.
In addition, if mobile terminal determines the work of Wi-Fi antennas according to the working frequency information of the Wi-Fi antennas of acquisition Frequency range not instead of the first frequency range (i.e. 2.4GHz frequency ranges), the 5GHz frequency range bigger than the frequency in 2.4GHz frequency range are then mobile whole End can execute the processing of following step S318.
In step S316, if above-mentioned electricity data be less than setting power threshold, enable a Wi-Fi antenna into The transmitting-receiving of row data.
The concrete processing procedure of above-mentioned steps S316 can refer to the related content of above-mentioned steps S310, no longer superfluous herein It states.
In step S318, if the working frequency range of Wi-Fi antennas be the second frequency range, enable a Wi-Fi antenna into The transmitting-receiving of row data, the frequency in the second frequency range are more than the frequency in the first frequency range.
Wherein, the second frequency range can be include wherein the larger corresponding frequency range of frequency, for example, currently, Wi-Fi antennas Working frequency range includes 2.4GHz frequency ranges and 5GHz frequency ranges, then the second frequency range can be 5GHz frequency ranges.
In force, if the first frequency range is 2.4GHz frequency ranges, the second frequency range is 5GHz frequency ranges, acquisition for mobile terminal The working frequency informations of Wi-Fi antennas be any one frequency in 5.2GHz~5.8GHz, correspondingly, for example, if mobile The working frequency information for the Wi-Fi antennas that terminal is got is 5.5GHz, then can be determined according to above-mentioned working frequency information 5.5GHz is located in 5GHz frequency ranges, hence, it can be determined that the working frequency range of Wi-Fi antennas is the second frequency range, due to the second frequency range In include frequency it is larger, at this point, due to Wi-Fi antenna current datas transmitting-receiving data volume no more than setting data-quantity threshold Or be not in white list, and the working frequency range of Wi-Fi antennas is 5GHz frequency ranges, Wi-Fi can be carried in the antenna unit interval Information it is more, transmission speed is very fast, can meet the primary demand of user, at this point, mobile terminal can enable a Wi- Fi antennas carry out the transmitting-receiving of data.
The embodiment of the present application provides a kind of control method of Wi-Fi antennas, by carrying out data transmit-receive based on Wi-Fi Under state, the current Run-time scenario information of acquisition judges the quantity for the Wi-Fi antennas for needing to enable, to carry out data transmit-receive, I.e. if Run-time scenario information meets the first predetermined condition, the transmitting-receiving that two Wi-Fi antennas carry out data is enabled, if operation Scene information meets the second predetermined condition, then the transmitting-receiving that a Wi-Fi antenna carries out data is enabled, in this way, pass through setting two A predetermined condition and Run-time scenario information, specific judgement need the Wi-Fi antenna amounts enabled, realize single antenna and double antenna Between switching reduce the delay of data, but also resource consumption has obtained effectively to both improving data transmit-receive efficiency Control.
Embodiment three
It is the control method of Wi-Fi antennas provided by the embodiments of the present application above, is based on same thinking, the application is implemented Example also provides a kind of control device of Wi-Fi antennas, including two Wi-Fi antennas, as shown in Figure 5.
The control device of the Wi-Fi antennas includes:Data obtaining module 501, double antenna enable module 502 and single antenna Module 503 is enabled, wherein:
Data obtaining module 501, in the state of carrying out data transmit-receive based on Wi-Fi, obtaining current operation field Scape information;
Double antenna enables module 502, if meeting the first predetermined condition for the Run-time scenario information, enables two Wi-Fi antennas carry out the transmitting-receiving of data;
Single antenna enables module 503, if meeting the second predetermined condition for the Run-time scenario information, enables one Wi-Fi antennas carry out the transmitting-receiving of data.
In the embodiment of the present application, the double antenna enables module 502, if current for Run-time scenario information instruction The data volume of data transmit-receive is more than the data-quantity threshold of setting, then enables the transmitting-receiving that two Wi-Fi antennas carry out data.
In the embodiment of the present application, described device further includes:
Working frequency acquisition module, if the data volume for Run-time scenario information instruction current data transmitting-receiving is little In the data-quantity threshold of setting, then the working frequency range of the Wi-Fi antennas is obtained;
Electricity acquisition module obtains electricity number if the working frequency range for the Wi-Fi antennas is the first frequency range According to;
The double antenna enables module 502, if being more than the power threshold of setting for the electricity data, enables two A Wi-Fi antennas carry out the transmitting-receiving of data.
In the embodiment of the present application, the Run-time scenario information includes the mark for the application being currently running, the double antenna Module 502 is enabled, if the mark of the intended application for being identified as setting for the application being currently running, enables two Wi-Fi antennas carry out the transmitting-receiving of data.
In the embodiment of the present application, the single antenna enables module 503, including:
Frequency acquisition unit is set if the data volume for Run-time scenario information instruction current data transmitting-receiving is not more than Fixed data-quantity threshold then obtains the working frequency range of the Wi-Fi antennas;
Electricity acquiring unit obtains electricity number if the working frequency range for the Wi-Fi antennas is the first frequency range According to the frequency in first frequency range is less than the frequency threshold of setting;
Single antenna enables unit, if being less than the power threshold of setting for the electricity data, enables a Wi-Fi Antenna carries out the transmitting-receiving of data.
In the embodiment of the present application, the single antenna enables module 503, if the working frequency range for the Wi-Fi antennas For the second frequency range, then the transmitting-receiving that a Wi-Fi antenna carries out data is enabled, the frequency in second frequency range is more than described first Frequency in frequency range.
The control device of Wi-Fi antennas provided by the embodiments of the present application can be realized to be moved in the embodiment of the method for Fig. 1 to Fig. 4 Each process that dynamic terminal is realized, to avoid repeating, which is not described herein again.
The embodiment of the present application provides a kind of control device of Wi-Fi antennas, by carrying out data transmit-receive based on Wi-Fi Under state, the current Run-time scenario information of acquisition judges the quantity for the Wi-Fi antennas for needing to enable, to carry out data transmit-receive, I.e. if Run-time scenario information meets the first predetermined condition, the transmitting-receiving that two Wi-Fi antennas carry out data is enabled, if operation Scene information meets the second predetermined condition, then the transmitting-receiving that a Wi-Fi antenna carries out data is enabled, in this way, pass through setting two A predetermined condition and Run-time scenario information, specific judgement need the Wi-Fi antenna amounts enabled, realize single antenna and double antenna Between switching reduce the delay of data, but also resource consumption has obtained effectively to both improving data transmit-receive efficiency Control.
Example IV
Fig. 6 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the application,
The mobile terminal 600 includes two Wi-Fi antennas, in addition, it can include but being not limited to:Radio frequency unit 601, net Network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, The components such as interface unit 608, memory 609, processor 610 and power supply 611.It will be understood by those skilled in the art that Fig. 6 Shown in mobile terminal structure do not constitute the restriction to mobile terminal, mobile terminal may include more more or less than illustrating Component, either combine certain components or different components arrangement.In the embodiment of the present application, mobile terminal includes but not It is limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 610, in the state of carrying out data transmit-receive based on Wi-Fi, obtaining current Run-time scenario Information;
Processor 610 enables two Wi-Fi if being additionally operable to the Run-time scenario information meets the first predetermined condition Antenna carries out the transmitting-receiving of data;
Processor 610 enables a Wi-Fi if being additionally operable to the Run-time scenario information meets the second predetermined condition Antenna carries out the transmitting-receiving of data.
In addition, processor 610, if the data volume for being additionally operable to the Run-time scenario information instruction current data transmitting-receiving is more than The data-quantity threshold of setting then enables the transmitting-receiving that two Wi-Fi antennas carry out data.
In addition, processor 610, if the data volume for being additionally operable to the Run-time scenario information instruction current data transmitting-receiving is little In the data-quantity threshold of setting, then the working frequency range of the Wi-Fi antennas is obtained;
Processor 610 obtains electricity data if the working frequency range for being additionally operable to the Wi-Fi antennas is the first frequency range;
Processor 610 enables two Wi-Fi days if being additionally operable to the power threshold that the electricity data is more than setting Line carries out the transmitting-receiving of data.
In addition, processor 610, if being additionally operable to the mark of the intended application for being identified as setting of the application being currently running Know, then enables the transmitting-receiving that two Wi-Fi antennas carry out data.
In addition, processor 610, if the data volume for being additionally operable to the Run-time scenario information instruction current data transmitting-receiving is little In the data-quantity threshold of setting, then the working frequency range of the Wi-Fi antennas is obtained;
Processor 610 obtains electricity data if the working frequency range for being additionally operable to the Wi-Fi antennas is the first frequency range, Frequency in first frequency range is less than the frequency threshold of setting;
Processor 610 enables one Wi-Fi days if being additionally operable to the power threshold that the electricity data is less than setting Line carries out the transmitting-receiving of data.
In addition, processor 610 enables one if the working frequency range for being additionally operable to the Wi-Fi antennas is the second frequency range Wi-Fi antennas carry out the transmitting-receiving of data, and the frequency in second frequency range is more than the frequency in first frequency range.
The embodiment of the present application provides a kind of mobile terminal, by the state of carrying out data transmit-receive based on Wi-Fi, obtaining Current Run-time scenario information judge the quantity of the Wi-Fi antennas for needing to enable, to carry out data transmit-receive, i.e., if operation field Scape information meets the first predetermined condition, then enables the transmitting-receiving that two Wi-Fi antennas carry out data, if Run-time scenario information meets Second predetermined condition then enables the transmitting-receiving that Wi-Fi antenna carries out data, in this way, by two predetermined conditions of setting and Run-time scenario information, specific judgement need the Wi-Fi antenna amounts enabled, realize the switching between single antenna and double antenna, To both improve data transmit-receive efficiency, reduce the delay of data, but also resource consumption has obtained effective control.
It should be understood that the embodiment of the present application in, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 610 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 601 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 602 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 603 can receive radio frequency unit 601 or network module 602 or in memory 609 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 603 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 600 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 603 includes loud speaker, buzzer and receiver etc..
Input unit 604 is for receiving audio or video signal.Input unit 604 may include graphics processor (Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 606.Through graphics processor 6041, treated that picture frame can be deposited Storage is sent in memory 609 (or other storage mediums) or via radio frequency unit 601 or network module 602.Mike Wind 6042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 601 by being converted in the case of telephone calling model.
Mobile terminal 600 further includes at least one sensor 605, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 6061, and proximity sensor can close when mobile terminal 600 is moved in one's ear Display panel 6061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 605 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 606 is for showing information input by user or being supplied to the information of user.Display unit 606 can wrap Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 6061.
User input unit 607 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 607 include touch panel 6071 and Other input equipments 6072.Touch panel 6071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 6071 or in touch panel 6071 Neighbouring operation).Touch panel 6071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, receiving area It manages the order that device 610 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 6071.In addition to touch panel 6071, user input unit 607 can also include other input equipments 6072.Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 6071 can be covered on display panel 6061, when touch panel 6071 is detected at it On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touch The type for touching event provides corresponding visual output on display panel 6061.Although in figure 6, touch panel 6071 and display Panel 6061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 6071 and display panel 6061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 608 is the interface that external device (ED) is connect with mobile terminal 600.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 608 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 600 or can be used in 600 He of mobile terminal Transmission data between external device (ED).
Memory 609 can be used for storing software program and various data.Memory 609 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 609 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 609, and calls and is stored in storage Data in device 609 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 610 may include one or more processing units;Preferably, processor 610 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Mobile terminal 600 can also include the power supply 611 (such as battery) powered to all parts, it is preferred that power supply 611 Can be logically contiguous by power-supply management system and processor 610, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Preferably, the embodiment of the present application also provides a kind of mobile terminal, including processor 610, and memory 609 is stored in On memory 609 and the computer program that can be run on the processor 610, the computer program are executed by processor 610 Each process of the control method embodiment of the above-mentioned Wi-Fi antennas of Shi Shixian, and identical technique effect can be reached, to avoid weight Multiple, which is not described herein again.
Embodiment five
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of the control method embodiment of above-mentioned Wi-Fi antennas when being executed by processor Journey, and identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
The embodiment of the present application provides a kind of computer readable storage medium, by carrying out data transmit-receive based on Wi-Fi Under state, the current Run-time scenario information of acquisition judges the quantity for the Wi-Fi antennas for needing to enable, to carry out data transmit-receive, I.e. if Run-time scenario information meets the first predetermined condition, the transmitting-receiving that two Wi-Fi antennas carry out data is enabled, if operation Scene information meets the second predetermined condition, then the transmitting-receiving that a Wi-Fi antenna carries out data is enabled, in this way, pass through setting two A predetermined condition and Run-time scenario information, specific judgement need the Wi-Fi antenna amounts enabled, realize single antenna and double antenna Between switching reduce the delay of data, but also resource consumption has obtained effectively to both improving data transmit-receive efficiency Control.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, the application can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to method, the flow of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described There is also other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
Above is only an example of the present application, it is not intended to limit this application.For those skilled in the art For, the application can have various modifications and variations.It is all within spirit herein and principle made by any modification, equivalent Replace, improve etc., it should be included within the scope of claims hereof.

Claims (10)

1. a kind of control method of Wi-Fi antennas, which is characterized in that be applied to mobile terminal, the mobile terminal includes two Wi-Fi antennas, the method includes:
In the state of carrying out data transmit-receive based on Wi-Fi, Run-time scenario information is obtained;
If the Run-time scenario information meets the first predetermined condition, the transmitting-receiving that two Wi-Fi antennas carry out data is enabled;
If the Run-time scenario information meets the second predetermined condition, the transmitting-receiving that a Wi-Fi antenna carries out data is enabled.
2. if according to the method described in claim 1, it is characterized in that, Run-time scenario information satisfaction first is predetermined Condition then enables the transmitting-receiving that two Wi-Fi antennas carry out data, including:
If the data volume of the Run-time scenario information instruction current data transmitting-receiving is more than the data-quantity threshold of setting, two are enabled A Wi-Fi antennas carry out the transmitting-receiving of data.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
If the data volume of the Run-time scenario information instruction current data transmitting-receiving is obtained no more than the data-quantity threshold of setting The working frequency range of the Wi-Fi antennas;
If the working frequency range of the Wi-Fi antennas is the first frequency range, electricity data, the frequency in first frequency range are obtained Less than the frequency threshold of setting;
If the electricity data is more than the power threshold of setting, the transmitting-receiving that two Wi-Fi antennas carry out data is enabled.
4. if according to the method described in claim 1, it is characterized in that, Run-time scenario information satisfaction second is predetermined Condition then enables the transmitting-receiving that a Wi-Fi antenna carries out data, including:
If the data volume of the Run-time scenario information instruction current data transmitting-receiving is obtained no more than the data-quantity threshold of setting The working frequency range of the Wi-Fi antennas;
If the working frequency range of the Wi-Fi antennas is the first frequency range, electricity data, the frequency in first frequency range are obtained Less than the frequency threshold of setting;
If the electricity data is less than the power threshold of setting, the transmitting-receiving that a Wi-Fi antenna carries out data is enabled.
5. according to the method described in claim 4, it is characterized in that, after the working frequency range for obtaining the Wi-Fi antennas, Further include:
If the working frequency range of the Wi-Fi antennas is the second frequency range, the transmitting-receiving that a Wi-Fi antenna carries out data is enabled, Frequency in second frequency range is more than the frequency in first frequency range.
6. a kind of control device of Wi-Fi antennas, which is characterized in that including two Wi-Fi antennas, described device includes:
Data obtaining module, in the state of carrying out data transmit-receive based on Wi-Fi, obtaining Run-time scenario information;
Double antenna enables module, if meeting the first predetermined condition for the Run-time scenario information, enables two Wi-Fi days Line carries out the transmitting-receiving of data;
Single antenna enables module, if meeting the second predetermined condition for the Run-time scenario information, enables one Wi-Fi days Line carries out the transmitting-receiving of data.
7. device according to claim 6, which is characterized in that the double antenna enables module, if being used for the operation Scene information indicates that the data volume of current data transmitting-receiving is more than the data-quantity threshold of setting, then enables two Wi-Fi antennas and carry out The transmitting-receiving of data.
8. device according to claim 7, which is characterized in that described device further includes:
Working frequency acquisition module is set if the data volume for Run-time scenario information instruction current data transmitting-receiving is not more than Fixed data-quantity threshold then obtains the working frequency range of the Wi-Fi antennas;
Electricity acquisition module obtains electricity data, institute if the working frequency range for the Wi-Fi antennas is the first frequency range State the frequency threshold that the frequency in the first frequency range is less than setting;
The double antenna enables module, if being more than the power threshold of setting for the electricity data, enables two Wi-Fi Antenna carries out the transmitting-receiving of data.
9. device according to claim 6, which is characterized in that the single antenna enables module, including:
Frequency acquisition unit, if the data volume for Run-time scenario information instruction current data transmitting-receiving is no more than setting Data-quantity threshold then obtains the working frequency range of the Wi-Fi antennas;
Electricity acquiring unit obtains electricity data, institute if the working frequency range for the Wi-Fi antennas is the first frequency range State the frequency threshold that the frequency in the first frequency range is less than setting;
Single antenna enables unit, if being less than the power threshold of setting for the electricity data, enables a Wi-Fi antenna Carry out the transmitting-receiving of data.
10. device according to claim 9, which is characterized in that the single antenna enables module, if being used for the Wi- The working frequency range of Fi antennas is the second frequency range, then the transmitting-receiving of one Wi-Fi antennas progress data of enabling, in second frequency range Frequency is more than the frequency in first frequency range.
CN201810098223.4A 2018-01-31 2018-01-31 Control method and device of Wi-Fi antenna Active CN108377157B (en)

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 true CN108377157A (en) 2018-08-07
CN108377157B 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)

Cited By (6)

* 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
CN109362121A (en) * 2018-11-20 2019-02-19 Oppo(重庆)智能科技有限公司 Sharing method, device, storage medium and the terminal of WLAN
CN109618354A (en) * 2018-10-25 2019-04-12 惠州Tcl移动通信有限公司 A kind of Wi-Fi receiving and sending control method and device
CN110234178A (en) * 2019-06-11 2019-09-13 深圳云里物里科技股份有限公司 A kind of Bluetooth gateway and setting method, system, computer readable storage medium
WO2021036711A1 (en) * 2019-08-30 2021-03-04 Oppo广东移动通信有限公司 Network control method and related product
CN114598371A (en) * 2022-05-10 2022-06-07 荣耀终端有限公司 Method for obtaining antenna combination, electronic device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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
CN106231662A (en) * 2016-09-30 2016-12-14 维沃移动通信有限公司 The method for handover control of a kind of terminal antenna and terminal
CN107566015A (en) * 2017-08-29 2018-01-09 广东欧珀移动通信有限公司 Method of controlling antenna, device, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN106231662A (en) * 2016-09-30 2016-12-14 维沃移动通信有限公司 The method for handover control of a kind of terminal antenna and terminal
CN107566015A (en) * 2017-08-29 2018-01-09 广东欧珀移动通信有限公司 Method of controlling antenna, device, storage medium and electronic equipment

Cited By (8)

* 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
CN109618354A (en) * 2018-10-25 2019-04-12 惠州Tcl移动通信有限公司 A kind of Wi-Fi receiving and sending control method and device
CN109362121A (en) * 2018-11-20 2019-02-19 Oppo(重庆)智能科技有限公司 Sharing method, device, storage medium and the terminal of WLAN
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
WO2021036711A1 (en) * 2019-08-30 2021-03-04 Oppo广东移动通信有限公司 Network control method and related product
CN114598371A (en) * 2022-05-10 2022-06-07 荣耀终端有限公司 Method for obtaining antenna combination, electronic device and computer readable storage medium
CN114598371B (en) * 2022-05-10 2022-09-09 荣耀终端有限公司 Method for acquiring antenna combination, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN108377157B (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN108377157A (en) A kind of control method and device of Wi-Fi antennas
CN108021321B (en) A kind of application operating status control method and mobile terminal
CN108255378A (en) A kind of display control method and mobile terminal
CN108347759A (en) A kind of anti-interference method and mobile terminal of flexible screen
CN108055408A (en) A kind of application control method and mobile terminal
CN108062190A (en) A kind of application operation condition control method and mobile terminal
CN106454404A (en) Live video playing method, device and system
CN105828145A (en) Interaction method and interaction device
CN108494947A (en) A kind of images share method and mobile terminal
CN108052368B (en) A kind of application display interface control method and mobile terminal
CN110034876A (en) PUCCH resource instruction, processing method, network side equipment, user terminal
CN108628521A (en) A kind of screen operating method and mobile terminal
CN108710458A (en) A kind of split screen control method and terminal device
CN108509299A (en) Message treatment method, equipment and computer readable storage medium
CN110162254A (en) A kind of display methods and terminal device
CN109814930A (en) A kind of application loading method, device and mobile terminal
CN109947312A (en) A kind of control method and terminal device
CN110035505A (en) Semi-static SRS resource instruction, processing method, network side equipment, user terminal
CN110351040A (en) Sounding reference signal transmission enhancement, configuration method, user equipment and network side equipment
CN106200897B (en) A kind of method and apparatus of display control menu
CN109407948A (en) A kind of interface display method and mobile terminal
CN108320148A (en) A kind of resource transfers method and relevant device
CN104991699A (en) Video display control method and apparatus
CN109062634A (en) A kind of application starting method and mobile terminal
CN108744495A (en) A kind of control method of virtual key, terminal and computer storage media

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