The method, apparatus and terminal of connection wireless network are shunted based on APP network occupancy
Technical field
The present invention relates to the radio network technique fields of mobile terminal, are based on APP network occupancy more particularly to one kind
Shunt the method, apparatus and terminal of connection wireless network.
Background technique
Wireless network (wireless network) is the network realized using wireless communication technique.With wireless network skill
The development of art is embodied in WIFI or WLAN that user passes through mobile terminal currently, being widely applied on mobile terminals
Function connects wireless networks is surfed the Internet.In traditional technology, mobile terminal still uses one-to-one when connecting wireless network
Mode carries out, and when user needs to be connected to other wireless networks, first has to closing and the connection of active wireless network then
Carry out other attended operations again, this connection type lacks intelligence, and step is relatively complicated, strong influence user's
Usage experience.Then there is a kind of new technology again --- mobile terminal, can be with while connecting active wireless network
Speed detecting is carried out to other available wireless networks around, if detected than current faster wireless network, eventually
Only transfer to connect faster wireless network with the connection of active wireless network.
Although this mode improves the intelligence of wireless network connection, but also have certain defect simultaneously: mobile
Terminal is still carried out using one-to-one mode when connecting wireless network, when program run case is more on mobile terminal, i.e.,
Make to be connected to faster wireless network, may not necessarily also support the consumption of high network occupancy, in this case, if local environment
Inside there are other available wireless networks, such as wireless network 1, then wireless network 1 can not be connect again with mobile terminal, i.e., cannot be right
The network speed demand of mobile terminal is alleviated, to result in waste of resources.
In addition, the corresponding network occupancy of different APP is also different in practical application, such as the APP of video playback class
Network occupancy is relatively high, that is, needs higher network speed support that can just operate normally;And general application APP is then not necessarily to high net
The support of speed can also normal use.However in the prior art, not occurring can be according to the difference for opening APP on mobile terminal
The relevant technologies of the wireless network of corresponding switching friction speed, to not be available the available wireless net in the terminal local environment of family
The utilization that network is rationalized impacts the use of user.
Therefore, the present inventor, which feels the above problem very, the necessity of its improvement, is engaged in related fields then with its many years
Design and professional manufacturing experience, energetically for a kind of side for shunting connection wireless network based on APP network occupancy
Method, device and terminal carry out research improvement, develop the present invention finally under careful consideration of the conditions of all parties.
Summary of the invention
For above situation, the shortcomings that in order to overcome the prior art, the embodiment of the invention provides one kind to be based on APP network
Occupancy shunts the method, apparatus and terminal of connection wireless network, can effectively solve the problems, such as to mention in above-mentioned background technique.
The embodiment of the present invention adopts the following technical scheme that
A method of connection wireless network is shunted based on APP network occupancy, this method comprises:
WIFI module in mobile terminal is divided into several WIFI units, wherein big in usable wireless network quantity
In the environment of 1, each usable wireless network is corresponding mono- with a WIFI by the connection request issued based on the mobile terminal
Member establishes connection;
Each WIFI unit obtains the network speed for the wireless network being correspondingly connected with, and the network speed for the wireless network that will acquire into
Row integration and seniority among brothers and sisters;
Classified according to the application attribute of APP to mounted APP in the mobile terminal, classification results are belonged into view
The APP of frequency broadcast message class is determined as the APP of high network occupancy;
It, will be currently used when the APP for detecting only high network occupancy in the mobile terminal is in initiate mode
Wireless network switch to network speed and rank highest wireless network;It is accounted in the APP for detecting high network occupancy with non-high network
When with the APP of rate all in initiate mode, the APP for controlling high network occupancy, which is corresponded to, ranks highest wireless network using network speed
Network, and the APP correspondence of the non-high network occupancy of control rank non-highest wireless network using network speed.
As a kind of enforceable mode, it is determined as high network in the APP that classification results are belonged to video playback class and occupies
After the APP of rate, the method also includes:
Find out the APP that classification results belong to social application, communication class;
The detecting of the real-time status in mass file transmission is made whether to the APP of social application, communication class;
It is when the APP for detecting social application, communication class is in the real-time status of mass file transmission, such APP is true
It is set to the APP of high network occupancy;
Wherein, the method additionally includes: the social application of real-time status of the detecting in mass file transmission, communication
Whether interrupting or stopping carries out mass file transmission to the APP of class;If interrupting or stopping, such APP is switched to be determined as it is non-
The APP of high network occupancy.
As a kind of enforceable mode, the APP of social application, communication class is made whether in mass file transmission
The detecting of real-time status includes:
Judge social application, whether the APP of communication class is in the real-time status that file transmits;
Monitor transmission speed value variation when above-mentioned APP carries out file transmission in real time if being in;
When monitoring transmission speed value added more than a preset threshold, it is determined that above-mentioned APP is in mass file transmission
Real-time status.
As a kind of enforceable mode, social application, communication class APP mark will be added on file when transmitting file
First gear shows file type on the header file, such as text, picture, video;Wherein, to the APP of social application, communication class
It is made whether that the detecting for being in the real-time status of mass file transmission includes:
Judge social application, whether the APP of communication class is in the real-time status that file transmits;
The header file of transmission file is obtained if being in and the file type shown on the header file is identified;
When identifying file type is video, it is determined that above-mentioned APP is in the real-time status of mass file transmission.
A kind of device shunting connection wireless network based on APP network occupancy, comprising:
WIFI divides module, for the WIFI module in mobile terminal to be divided into several WIFI units, wherein can
In the environment of being greater than 1 using wireless network quantity, each connection that wireless network that can be used will issue based on the mobile terminal
Request is corresponding to establish connection with a WIFI unit;
Network speed obtains module, and the network speed for the wireless network being correspondingly connected with is obtained for each WIFI unit, and will acquire
The network speed of wireless network integrated and ranked;
Categorization module, for being classified according to the application attribute of APP to mounted APP in the mobile terminal;
First determining module, the APP for classification results to be belonged to video playback class are determined as high network occupancy
APP;
Wireless network application module, for being in the APP for detecting only high network occupancy in the mobile terminal
When initiate mode, currently used wireless network is switched into network speed and ranks highest wireless network;It is accounted for detecting high network
When with the APP of rate and the APP of non-high network occupancy all in initiate mode, the corresponding use of APP of high network occupancy is controlled
Network speed ranks highest wireless network, and the APP correspondence of the non-high network occupancy of control ranks non-highest nothing using network speed
Gauze network.
As a kind of enforceable mode, further includes:
APP search module belongs to the APP of social application, communication class for finding out classification results;
First state detecting module is made whether for the APP to social application, communication class in mass file transmission
The detecting of real-time status;
Second determining module, for when detect social application, the APP of communication class be in mass file transmit real-time shape
When state, such APP is determined as to the APP of high network occupancy;
Second state detecting module, for detecting social application, the communication class of the real-time status for being in mass file transmission
APP whether interrupting or stopping carry out mass file transmission;
Such APP is switched to if being used for interrupting or stopping and is determined as non-high network occupancy by third determining module
APP。
As a kind of enforceable mode, the first state detecting module includes:
First state judgment module, for judging whether the APP of social application, communication class is in the real-time shape of file transmission
State;
Speed monitoring module, the APP for social application, communication class are monitored in real time when being in the real-time status of file transmission
Above-mentioned APP carries out transmission speed value variation when file transmission;
4th determining module, for when monitoring transmission speed value added more than a preset threshold, it is determined that above-mentioned APP
Real-time status in mass file transmission.
As a kind of enforceable mode, social application, communication class APP mark will be added on file when transmitting file
First gear shows file type on the header file, such as text, picture, video;Wherein, the first state detecting module packet
It includes:
Second condition judgment module, for judging whether the APP of social application, communication class is in the real-time shape of file transmission
State;
File type identification module, the APP for social application, communication class are obtained when being in the real-time status of file transmission
It transmits the header file of file and the file type shown on the header file is identified;
5th determining module, for when identifying file type is video, it is determined that above-mentioned APP is in mass file biography
Defeated real-time status.
A kind of mobile terminal, the mobile terminal include processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured to:
WIFI module in mobile terminal is divided into several WIFI units, wherein big in usable wireless network quantity
In the environment of 1, each usable wireless network is corresponding mono- with a WIFI by the connection request issued based on the mobile terminal
Member establishes connection;
Each WIFI unit obtains the network speed for the wireless network being correspondingly connected with, and the network speed for the wireless network that will acquire into
Row integration and seniority among brothers and sisters;
Classified according to the application attribute of APP to mounted APP in the mobile terminal, classification results are belonged into view
The APP of frequency broadcast message class is determined as the APP of high network occupancy;
It, will be currently used when the APP for detecting only high network occupancy in the mobile terminal is in initiate mode
Wireless network switch to network speed and rank highest wireless network;It is accounted in the APP for detecting high network occupancy with non-high network
When with the APP of rate all in initiate mode, the APP for controlling high network occupancy, which is corresponded to, ranks highest wireless network using network speed
Network, and the APP correspondence of the non-high network occupancy of control rank non-highest wireless network using network speed.
Technical solution provided in an embodiment of the present invention has the benefit that using technical solution of the present invention, passes through
WIFI module in mobile terminal is divided into several WIFI units, is correspondingly connected with using the acquisition of each WIFI unit wireless
The network speed of network, and the network speed for the wireless network that will acquire is integrated and is ranked, then according to the application attribute of APP to institute
It states mounted APP in mobile terminal to classify, the APP that classification results belong to video playback class is determined as high network and is occupied
The APP of rate will be currently used when the APP for detecting only high network occupancy in the mobile terminal is in initiate mode
Wireless network switch to network speed and rank highest wireless network, accounted in the APP for detecting high network occupancy with non-high network
When with the APP of rate all in initiate mode, the APP for controlling high network occupancy, which is corresponded to, ranks highest wireless network using network speed
Network, and the APP correspondence of the non-high network occupancy of control rank non-highest wireless network using network speed.In addition, passing through implementation
The APP of the social application for transmitting mass file, communication class can also be determined as the APP of high network occupancy by the present invention.
In this way, can the network speed demand effectively to mobile terminal alleviate, improve the mobile terminal APP speed of service so that user terminal
The utilization that available wireless network in local environment is rationalized enhances the Experience Degree of user.
Detailed description of the invention
In order to which the above-mentioned and other purposes of the present invention, feature, advantage can be clearer and more comprehensible, embodiment will hereafter be described
Needed in attached drawing make one and simply introduce, it should be apparent that, the accompanying drawings in the following description is only of the invention one
A little embodiments, for those of ordinary skill in the art, do not pay create it is laborious under the premise of, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of method for shunting connection wireless network based on APP network occupancy that the embodiment of the present invention one provides
Flow diagram;
Fig. 2 is the WIFI module and wireless network connection schematic diagram that the embodiment of the present invention one provides;
Fig. 3 is a kind of method flow schematic diagram of determining APP network occupancy provided by Embodiment 2 of the present invention;
The method that the APP of a kind of pair of social application, communication class that Fig. 4 provides for the embodiment of the present invention three carries out state detecting
Flow diagram;
The method that the APP of a kind of pair of social application, communication class that Fig. 5 provides for the embodiment of the present invention four carries out state detecting
Flow diagram;
Fig. 6 is a kind of device that connection wireless network is shunted based on APP network occupancy that the embodiment of the present invention five provides
Structural schematic diagram;
Fig. 7 is a kind of first state detecting module structural schematic diagram that the embodiment of the present invention five provides;
Fig. 8 is another first state detecting module structural schematic diagram that the embodiment of the present invention five provides;
Fig. 9 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention six provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, belongs to protection scope of the present invention.
Embodiment one
Fig. 1 and Fig. 2 is please referred to, Fig. 1 is that one kind that the embodiment of the present invention one provides is based on the shunting connection of APP network occupancy
The method flow schematic diagram of wireless network, Fig. 2 are that the WIFI module that the embodiment of the present invention one provides and wireless network connection are illustrated
Figure.Specifically, the present embodiment provides a kind of method for shunting connection wireless network based on APP network occupancy, including following step
It is rapid:
WIFI module in mobile terminal is divided into several WIFI units by step 101, wherein in usable wireless network
Network quantity is greater than in the environment of 1, each usable wireless network by the connection request issued based on the mobile terminal it is corresponding and
One WIFI unit establishes connection;
Step 102, each WIFI unit obtain the network speed for the wireless network being correspondingly connected with, and the wireless network that will acquire
Network speed integrated and ranked;
Step 103 classifies to mounted APP in the mobile terminal according to the application attribute of APP, and classification is tied
The APP that fruit belongs to video playback class is determined as the APP of high network occupancy;
Step 104, detect in the mobile terminal only have high network occupancy APP be in initiate mode when, general
Currently used wireless network switches to network speed and ranks highest wireless network;The APP for detecting high network occupancy with it is non-
When the APP of high network occupancy is all in initiate mode, control high network occupancy APP it is corresponding ranked using network speed it is highest
Wireless network, and the APP correspondence of the non-high network occupancy of control rank non-highest wireless network using network speed.
As shown in Fig. 2, the WIFI module for setting in the mobile terminal is divided into three WIFI units, respectively first
WIFI unit, the second WIFI unit and third WIFI unit, these three WIFI units are independently arranged, each WIFI unit
The function being had is fully contemplated by the function that traditionally WIFI module has.Wherein, wireless network is in the mobile terminal
When under network environment, if workable wireless network (can normally connect online) only one, then be attached based on user
In the state of operation, terminal system will issue corresponding control instruction and give WIFI module, and WIFI module will control three WIFI units
In one of them be attached with usable wireless network.If the usable wireless network under wireless network environment has several
It is a, such as two, it is respectively set as wireless network 1, wireless network 2, then is attached in the state of operation based on user, terminal
System will issue corresponding control instruction and give WIFI module, and it is right respectively that WIFI module will control the two of them in three WIFI units
It should be attached with usable wireless network, such as control the first WIFI unit connection wireless network 1, the second WIFI unit connects nothing
Gauze network 2.
Based under above-mentioned connection status, the first WIFI unit will acquire the network speed of wireless network 1, and the second WIFI unit will obtain
The network speed of wireless network 2 is taken, the mode that wherein network speed obtains can be used existing wire-speed detection technology and carry out.Getting correspondence
Network speed after, the network speed respectively got is reported to WIFI module respectively by the first WIFI unit and the second WIFI unit, by
WIFI module is integrated, then reports to terminal system, finally carries out speed seniority among brothers and sisters by terminal system, such as rank from high to low
It is followed successively by wireless network 1, wireless network 2.
In step 103, terminal system carries out APP mounted in the mobile terminal according to the application attribute of APP
When classification, it is specifically classified into video playback class APP and non-video broadcast message class APP.Wherein, video playback class APP such as youku.com, soil
The application software such as beans, iqiyi.com, LeEco, PPTV, the network speed that such APP needs to consume is larger, therefore terminal system ties classification
The APP that fruit belongs to video playback class is determined as the APP of high network occupancy, that is, determines it as the APP for needing high network speed support.
In step 104, terminal system specifically will carry out condition monitoring, monitor mode table to the APP installed in mobile terminal
It is existing are as follows: when having detected APP unlatching, then judge whether the APP opened is the above-mentioned APP for being confirmed as high network occupancy,
If then continuing whether detecting has the APP of other non-high network occupancies in the open state, if otherwise determining described mobile whole
The APP of only high network occupancy is in initiate mode in end, and currently used wireless network is switched to network speed by terminal system
Rank highest wireless network, specific switching mode are as follows: terminal system determines the wireless network currently connected first, if
Determine currently to connect with mobile terminal is wireless network 2, then issues corresponding instruction, WIFI module control the to WIFI module
The disconnecting of two WIFI units and wireless network 2, and control the first WIFI unit and establish a connection with wireless network 1;Separately
A kind of definitive result, if determine currently to connect with mobile terminal is wireless network 1, then terminal system is not to WIFI module
Instruction is issued, that is, keeps current connection status.
Further, in this step, when terminal system detect high network occupancy APP and non-high network occupancy
When APP is all in initiate mode, i.e., existing video playback class APP is in the open state, and has non-video broadcast message class APP to be in and open
State is opened, such terminal system will issue corresponding instruction to WIFI module, and WIFI module is by the first WIFI unit of control and wirelessly
Network 1 establishes a connection, while also the second WIFI unit of control establishing a connection with wireless network 2.
Wherein, terminal system will assign wireless network 1 application permission different from wireless network 2, will specifically assign wireless
The permission that the APP of high network occupancy is used is given in 1, network offer network service, assigns 2 offer network services of wireless network
Give the permission that the APP of non-high network occupancy is used.For example, setting youku.com APP is in the open state, then it only corresponds to and uses nothing
Gauze network 1;It is in the open state to set QQ, then it only corresponds to and uses wireless network 2.
Embodiment two
Referring to FIG. 3, Fig. 3 is that a kind of method flow of determining APP network occupancy provided by Embodiment 2 of the present invention shows
It is intended to.Specifically, the present embodiment and embodiment one are substantially consistent, difference place is, in the present embodiment, by classification results
The APP for belonging to video playback class is determined as after the APP of high network occupancy, and the method also includes following steps:
Step 201 finds out the APP that classification results belong to social application, communication class;
Step 202 is made whether detecing for the real-time status in mass file transmission to the APP of social application, communication class
It surveys;
When the APP for detecting social application, communication class is in the real-time status of mass file transmission, execution step 203,
Such APP is determined as to the APP of high network occupancy;
Step 204, detecting are in the social application of real-time status of mass file transmission, whether the APP of communication class interrupts
Or stop carrying out mass file transmission;If interrupting or stopping, 205 are thened follow the steps, such APP is switched to is determined as non-high net
The APP of network occupancy.
Wherein, the application software such as social application, the APP such as QQ of communication class, wechat, microblogging, Michat, Ali Wang Wang, this
Class APP, which is applied, does not need the too big network speed of consumption in normal chat, and if when transmitting mass file, then need to consume
Network speed it is larger, therefore classification results are belonged to the APP of social application, communication class by terminal system, and are detected and be in big
When the real-time status of type file transmission, then the APP of high network occupancy is determined it as, that is, determines it as and need high network speed branch
The APP of support.
Further, the social application of real-time status of the terminal system also by detecting in mass file transmission, communication class
APP whether interrupting or stopping carries out mass file transmission, if interrupting or stopping, mean that its restores normal software application,
The too big network speed of consumption is not needed, therefore in this case, terminal system, which switches to such APP, is determined as non-high network occupancy
The APP of rate.
For example, terminal system determines it as the APP of high network occupancy when QQ is transmitting mass file;Work as QQ
When interrupting or stopping transmits mass file, terminal system determines it as the APP of non-high network occupancy.
In step 202, if detecting social application, the APP of communication class is not on the real-time of mass file transmission
When state, then terminate process;In step 204, if detect in mass file transmission real-time status social application,
When the APP of communication class does not have interrupting or stopping to carry out mass file transmission, then return step 203.
Embodiment three
Referring to FIG. 4, Fig. 4 is a kind of pair of social application, the APP progress state of communication class that the embodiment of the present invention three provides
The method flow schematic diagram of detecting.Specifically, the present embodiment and embodiment two are substantially consistent, difference place is, this implementation
Example in, to the APP of social application, communication class be made whether in mass file transmission real-time status detecting specifically include with
Lower step:
Step 301, judge social application, the APP of communication class whether be in file transmission real-time status;
If in the transmission speed value variation thened follow the steps when 302, the above-mentioned APP of real time monitoring carries out file transmission;
Step 303, when monitoring transmission speed value added more than a preset threshold, determine that above-mentioned APP is in large-scale text
The real-time status of part transmission.
Wherein, terminal system is sentenced in the real-time status whether APP to social application, communication class is in file transmission
When disconnected, particular by detecting social application, communication class APP in such as text, picture, video, compressed package text whether occurs
The transmission event of part form, if the APP for determining social application, communication class to be then in the real-time status of file transmission.
After the real-time status that the APP for determining social application, communication class is in file transmission, terminal system will be in monitoring
State transmission speed value variation when APP carries out file transmission, such as transmission speed during monitoring, before above-mentioned a certain APP
Angle value is a1 M/S, and the transmission speed value then changed reaches a3 M/S, is more than if calculating a3 and subtracting the value obtained after a1
Above-mentioned preset threshold, it is determined that above-mentioned APP is in the real-time status of mass file transmission.In practical application, a1 M/S be can be
Such as speed when transmission picture, a3 M/S can be speed when for example transmitting big memory video or big memory compressed package, so
And it's not limited to that.
In step 301, if it is determined that the APP of social application, communication class is not on the real-time status of file transmission, then
Terminate process.
Example IV
Referring to FIG. 5, Fig. 5 is a kind of pair of social application, the APP progress state of communication class that the embodiment of the present invention four provides
The method flow schematic diagram of detecting.Specifically, the present embodiment and embodiment two are substantially consistent, difference place is, this implementation
Example in, social application, communication class APP header file will be added on file when transmitting file, shown on the header file
File type, such as text, picture, video.Wherein, the APP of social application, communication class is made whether to transmit in mass file
Real-time status detecting specifically includes the following steps:
Step 401, judge social application, the APP of communication class whether be in file transmission real-time status;
If in thening follow the steps 402, obtaining the header file of transmission file and to the files classes shown on the header file
Type is identified;
Step 403, when identifying file type is video, it is determined that above-mentioned APP be in mass file transmission it is real-time
State.
For example, then will acquire the mark of transmission file when terminal system judges that QQ is in the real-time status of file transmission
First gear simultaneously identifies the file type shown on the header file, if identifying the files classes shown on the header file
Type is text, any one in picture, then terminal system will determine that QQ is not on the real-time status of mass file transmission;Phase
Instead, when terminal system identifies that the file type shown on the header file is video, then terminal system will determine that QQ is in big
The real-time status of type file transmission.
If function described in the present embodiment method is realized in the form of SFU software functional unit and as independent product pin
It sells or in use, can store in a storage medium readable by a compute device.Based on this understanding, the embodiment of the present invention
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, this is soft
Part product is stored in a storage medium, including some instructions are used so that calculating equipment (it can be personal computer,
Server, mobile computing device or network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk.
Embodiment five
Referring to FIG. 6, Fig. 6 is that one kind that the embodiment of the present invention five provides is based on APP network occupancy shunting connection wirelessly
The apparatus structure schematic diagram of network.Specifically, present embodiments providing a kind of shunt based on APP network occupancy connects wireless network
The device 500 of network, comprising:
WIFI divides module 501, for the WIFI module in mobile terminal to be divided into several WIFI units, wherein
Wireless network quantity can be used to be greater than in the environment of 1, the company that each usable wireless network will be issued based on the mobile terminal
It connects request correspondence and establishes connection with a WIFI unit;
Network speed obtains module 502, and the network speed for the wireless network being correspondingly connected with is obtained for each WIFI unit, and will acquire
To the network speed of wireless network integrated and ranked;
Categorization module 503, for being classified according to the application attribute of APP to mounted APP in the mobile terminal;
First determining module 504, the APP for classification results to be belonged to video playback class are determined as high network occupancy
APP;
Wireless network application module 505, for detecting at the APP for only having high network occupancy in the mobile terminal
When initiate mode, currently used wireless network is switched into network speed and ranks highest wireless network;Detecting high network
When the APP of occupancy and the APP of non-high network occupancy are all in initiate mode, the APP correspondence for controlling high network occupancy makes
It is ranked with the APP correspondence of the highest wireless network of network speed seniority among brothers and sisters, and the non-high network occupancy of control using network speed non-highest
Wireless network.
As one embodiment of the present invention, in the present embodiment, described device 500 further include:
APP search module 506 belongs to the APP of social application, communication class for finding out classification results;
First state detecting module 507 is made whether to pass in mass file for the APP to social application, communication class
The detecting of defeated real-time status;
Second determining module 508, for when detect social application, the APP of communication class be in mass file transmit reality
When state when, such APP is determined as to the APP of high network occupancy;
Second state detecting module 509, for detecting social application, the communication of the real-time status for being in mass file transmission
Whether interrupting or stopping carries out mass file transmission to the APP of class;
Such APP is switched to if being used for interrupting or stopping and is determined as non-high network occupancy by third determining module 510
The APP of rate.
Referring to FIG. 7, Fig. 7 is a kind of first state detecting module structural schematic diagram that the embodiment of the present invention five provides.Make
For one embodiment of the present invention, in the present embodiment, the first state detecting module 507 includes:
First state judgment module 511, for judging whether the APP of social application, communication class is in the reality of file transmission
When state;
Speed monitoring module 512, the APP for social application, communication class are in real-time when the real-time status of file transmission
Monitor transmission speed value variation when above-mentioned APP carries out file transmission;
4th determining module 513, for when monitoring transmission speed value added more than a preset threshold, it is determined that above-mentioned
APP is in the real-time status of mass file transmission.
Referring to FIG. 8, Fig. 8 is another first state detecting module structural schematic diagram that the embodiment of the present invention five provides.
As one embodiment of the present invention, in the present embodiment, social application, communication class APP will be in file when transmitting file
Upper addition header file shows file type on the header file, such as text, picture, video;Wherein, the first state is detectd
Surveying module 507 includes:
Second condition judgment module 514, for judging whether the APP of social application, communication class is in the reality of file transmission
When state;
File type identification module 515, when the APP for social application, communication class is in the real-time status of file transmission
It obtains the header file of transmission file and the file type shown on the header file is identified;
5th determining module 516, for when identifying file type is video, it is determined that above-mentioned APP is in large-scale text
The real-time status of part transmission.
It should be understood that the specific implementation process in embodiment five can be corresponding with the description of above method embodiment, herein
It is not described in detail.
Device provided by above-described embodiment five is only the example of the division of the above functional modules actually answered
In, it can according to need and be completed by different functional modules appeal function distribution, i.e., by the internal junction in described device
Structure is divided into different functional modules, to complete all or part of the functions described above.
Embodiment six
Referring to FIG. 9, Fig. 9 is a kind of structural schematic diagram for mobile terminal that the embodiment of the present invention six provides.The movement is whole
End can be smart phone or tablet computer etc..
Mobile terminal 600 may include following one or more components: processing component 601, memory 602, power supply module
603, multimedia component 604, audio component 605, the interface 606 of input/output (I/O), sensor module 607, Yi Jitong
Believe component 608.
The integrated operation of the usually control mobile terminal 600 of processing component 601, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing element may include one or more processors to execute instruction,
To perform all or part of the steps of the methods described above.In addition, processing component 601 may include one or more modules, it is convenient for
Interaction between processing component 601 and other assemblies.For example, processing component 601 may include multi-media module, to facilitate more matchmakers
Interaction between body component 604 and processing component 601.
Memory 602 is configured as storing various types of data to support the operation in mobile terminal 600.These data
Example include any application or method for being operated on mobile terminal 600 instruction, contact data, telephone directory
Data, message, picture, video etc..Memory 602 can by any kind of volatibility or non-volatile memory device or it
Combination realize, such as static random access memory 602 (SRAM), electrically erasable programmable read-only memory 602
(EEPROM), Erasable Programmable Read Only Memory EPROM 602 (EPROM), programmable read only memory 602 (PROM) are read-only to deposit
Reservoir 602 (ROM), magnetic memory 602, flash memory 602, disk or CD.Electric power assembly is each of mobile terminal 600
Kind component provides electric power.Electric power assembly may include power-supply management system, one or more power supplys and other with for mobile terminal
600 generate, manage, and distribute the associated component of electric power.
Multimedia component 604 includes the screen of one output interface of offer between the mobile terminal 600 and user.
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touching
Panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touchings
Sensor is touched to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or cunning
The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.In some embodiments
In, multimedia component 604 includes a front camera and/or rear camera.When mobile terminal 600 is in operation mode,
Such as in a shooting mode or a video mode, front camera and/or rear camera can receive external multi-medium data.Each
Front camera and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 605 is configured as output and/or input audio signal.For example, audio component 605 includes a Mike
Wind (MIC), when mobile terminal 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 602 or via logical
Believe that component 608 is sent.In some embodiments, audio component 605 further includes a loudspeaker, is used for output audio signal.
I/O interface 606 provides interface between processing component 601 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 607 includes one or more sensors, for providing the state of various aspects for mobile terminal 600
Assessment.For example, sensor module 607 can detecte the state that opens/closes of terminal, and the relative positioning of component, for example, it is described
Component is the display and keypad of terminal, and sensor module 607 can also detect mobile terminal 600 or mobile terminal 600 1
The position change of a component, the existence or non-existence that user contacts with mobile terminal 600,600 orientation of mobile terminal or acceleration/subtract
The temperature change of speed and mobile terminal 600.Sensor module 607 may include proximity sensor, be configured to do not appointing
What detected the presence of nearby objects when physical contact.Sensor module 607 can also include optical sensor, such as CMOS or
CCD imaging sensor, for being used in imaging applications.In some embodiments, which can also include
Acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 608 is configured to facilitate the communication of wired or wireless way between mobile terminal 600 and other equipment.
Mobile terminal 600 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In this hair
In bright embodiment, communication component receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel
Breath.In embodiments of the present invention, the communication component further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) can be based in NFC module
Technology, bluetooth (BT) technology and other technologies are realized.
In embodiments of the present invention, mobile terminal 600 can by one or more application specific integrated circuit (ASIC),
Digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field-programmable
Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In embodiments of the present invention, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 602 of instruction, above-metioned instruction can be executed by the processor of mobile terminal 600 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory 602 (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal
When row, so that mobile terminal 600 is able to carry out a kind of method for shunting connection wireless network based on APP network occupancy, the party
Method includes:
WIFI module in mobile terminal is divided into several WIFI units, wherein big in usable wireless network quantity
In the environment of 1, each usable wireless network is corresponding mono- with a WIFI by the connection request issued based on the mobile terminal
Member establishes connection;
Each WIFI unit obtains the network speed for the wireless network being correspondingly connected with, and the network speed for the wireless network that will acquire into
Row integration and seniority among brothers and sisters;
Classified according to the application attribute of APP to mounted APP in the mobile terminal, classification results are belonged into view
The APP of frequency broadcast message class is determined as the APP of high network occupancy;
It, will be currently used when the APP for detecting only high network occupancy in the mobile terminal is in initiate mode
Wireless network switch to network speed and rank highest wireless network;It is accounted in the APP for detecting high network occupancy with non-high network
When with the APP of rate all in initiate mode, the APP for controlling high network occupancy, which is corresponded to, ranks highest wireless network using network speed
Network, and the APP correspondence of the non-high network occupancy of control rank non-highest wireless network using network speed.
As a kind of enforceable mode, it is determined as high network in the APP that classification results are belonged to video playback class and occupies
After the APP of rate, the method also includes:
Find out the APP that classification results belong to social application, communication class;
The detecting of the real-time status in mass file transmission is made whether to the APP of social application, communication class;
It is when the APP for detecting social application, communication class is in the real-time status of mass file transmission, such APP is true
It is set to the APP of high network occupancy;
Wherein, the method additionally includes: the social application of real-time status of the detecting in mass file transmission, communication
Whether interrupting or stopping carries out mass file transmission to the APP of class;If interrupting or stopping, such APP is switched to be determined as it is non-
The APP of high network occupancy.
As a kind of enforceable mode, the APP of social application, communication class is made whether in mass file transmission
The detecting of real-time status includes:
Judge social application, whether the APP of communication class is in the real-time status that file transmits;
Monitor transmission speed value variation when above-mentioned APP carries out file transmission in real time if being in;
When monitoring transmission speed value added more than a preset threshold, it is determined that above-mentioned APP is in mass file transmission
Real-time status.
As a kind of enforceable mode, social application, communication class APP mark will be added on file when transmitting file
First gear shows file type on the header file, such as text, picture, video;Wherein, to the APP of social application, communication class
It is made whether that the detecting for being in the real-time status of mass file transmission includes:
Judge social application, whether the APP of communication class is in the real-time status that file transmits;
The header file of transmission file is obtained if being in and the file type shown on the header file is identified;
When identifying file type is video, it is determined that above-mentioned APP is in the real-time status of mass file transmission.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Following advantages can be achieved in the present invention:
By the present invention, by the way that the WIFI module in mobile terminal is divided into several WIFI units, using each
WIFI unit obtains the network speed for the wireless network being correspondingly connected with, and the network speed for the wireless network that will acquire is integrated and arranged
Row, then classifies to mounted APP in the mobile terminal according to the application attribute of APP, classification results is belonged to view
The APP of frequency broadcast message class is determined as the APP of high network occupancy, only has high network occupancy in the mobile terminal detecting
When APP is in initiate mode, currently used wireless network is switched into network speed and ranks highest wireless network, is detecting height
When the APP of network occupancy and the APP of non-high network occupancy are all in initiate mode, APP pairs of high network occupancy is controlled
Network speed should be used to rank highest wireless network, and the non-high network occupancy of control APP it is corresponding using network speed rank it is non-most
High wireless network.In addition, by applying the present invention, the social application of mass file, communication class can also will be being transmitted
APP is determined as the APP of high network occupancy.In this way, can the network speed demand effectively to mobile terminal alleviate, improve it is mobile eventually
The APP speed of service is held, so that the utilization that the available wireless network in user terminal local environment is rationalized, enhances user's
Experience Degree.