A kind of wireless switching method and terminal
Technical field
The present invention relates to wireless communication technology, more particularly to a kind of wireless switching method and terminal.
Background technology
With the high speed development of mobile communication technology, mobile terminal can not only pass through general packet radio service technology
The mode of (General Packet Radio Service, GPRS) connects network, meanwhile, there is WLAN
The intelligent terminal of (Wireless Fidelity, Wi-Fi) function can also connect network by way of accessing hotspot.
Nowadays, the particular place with multiple fixed wireless focuses is increasingly common, such as office space, market place, when terminal is in
The place of these more Wi-Fi Hotspots is simultaneously accessed after one of Wi-Fi Hotspot, due to the terminal location change or connect
Enter the change of the parameter of focus, terminal can switch other Wi-Fi Hotspots being connected in the place at any time.In the prior art,
Terminal is when carrying out Wi-Fi Hotspot switching, it is necessary to the connection with currently having accessed focus first be disconnected, then again from multiple Wi-Fi
An optimal focus is determined in focus, and establishes and connects with the optimal focus.
However, terminal disconnects the connection with having accessed wireless network when carrying out wireless network switching according to above-mentioned flow,
And the process being connected is re-established with next optimal wireless network, the business quilt that wireless network is used in terminal can be caused
The defects of interruption, influence the normal work of terminal.
The content of the invention
In view of this, the embodiments of the invention provide a kind of wireless switching method and terminal, wireless network switching is being carried out
During, the defects of can effectively overcoming the business that wireless network is used in terminal to be interrupted, ensure terminal just
Often work.
What the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of wireless switching method, including:
When accessing to the first wireless network that first radio-frequency module connects by the first radio-frequency module, according to first
Prefixed time interval, detect the first handling capacity of first wireless network, the second wireless network connected with the second radio-frequency module
Second handling capacity of network;Wherein, first wireless network is one be used in two wireless networks having connected
Wireless network;The second wireless network is a untapped wireless network in described two wireless networks;
When first handling capacity is less than second handling capacity, according to the second prefixed time interval, detection described the
First real-time throughput of one wireless network, and the second real-time throughput of the second wireless network;Wherein, described second is pre-
If time interval is less than first prefixed time interval;
According to first real-time throughput and second real-time throughput, judge whether to meet that default wireless network is cut
Change condition;
When meeting the default wireless network switching condition, second nothing is accessed to by second radio-frequency module
Gauze network.
It is described that the first nothing of the first radio-frequency module connection is being accessed to by the first radio-frequency module in such scheme
During gauze network, according to the first prefixed time interval, the first handling capacity of detection first wireless network, and the second radio-frequency module
Before second handling capacity of the second wireless network of connection, methods described also includes:
Obtain multiple alternate wireless networks;
Detect multiple handling capacities corresponding to the multiple alternate wireless network;Wherein, an alternate wireless network corresponding one
Individual handling capacity;
The multiple alternate wireless network is ranked up according to the descending order of handling capacity, it is standby after being sorted
With wireless network list;
By two alternate wireless networks that handling capacity in the alternate wireless network list is maximum, described the is identified as
One wireless network and the second wireless network;Wherein, handling capacity corresponding to first wireless network is more than second nothing
Handling capacity corresponding to gauze network.
In such scheme, two standby wireless networks that handling capacity in the alternate wireless network list is maximum
Network, it is identified as after first wireless network and the second wireless network, methods described also includes:
First radio-frequency module is connected to first wireless network, second radio-frequency module is connected to described
Two wireless networks.
It is described according to first real-time throughput and second real-time throughput in such scheme, judge whether
Meet default wireless network switching condition, including:
Scale operation is carried out to first real-time throughput and second real-time throughput, acquisition is stated first and gulped down in real time
The ratio result of the amount of telling and second real-time throughput;
When the ratio result is less than preset ratio threshold value, judgement meets the default wireless network switching condition;
When the ratio result is more than or equal to the preset ratio threshold value, judgement is unsatisfactory for the default wireless network
Network switching condition.
It is described when meeting the default wireless network switching condition in such scheme, pass through the second radio frequency mould
Block is accessed to after the second wireless network, and methods described also includes:
Disconnect the connection of first radio-frequency module and first wireless network.
In such scheme, after the connection for disconnecting first radio-frequency module and first wireless network, institute
Stating method also includes:
Reacquire multiple alternate wireless networks;
Detect multiple handling capacities corresponding to the multiple alternate wireless network;Wherein, an alternate wireless network corresponding one
Individual handling capacity;
According to alternate wireless network corresponding to maximum throughput in the multiple handling capacity, first wireless network is updated
Network;
First radio-frequency module is connected to first wireless network.
The embodiments of the invention provide a kind of terminal, the terminal includes:Processor, memory and communication bus;Institute
Communication bus is stated to be used to realize the connection communication between the processor and the memory;The processor is used to perform institute
The wireless changeover program stored in memory is stated, to realize following steps:
When accessing to the first wireless network that first radio-frequency module connects by the first radio-frequency module, according to first
Prefixed time interval, detect the first handling capacity of first wireless network, the second wireless network connected with the second radio-frequency module
Second handling capacity of network;Wherein, first wireless network is one be used in two wireless networks having connected
Wireless network;The second wireless network is a untapped wireless network in described two wireless networks;And work as institute
When stating the first handling capacity and being less than second handling capacity, according to the second prefixed time interval, first wireless network is detected
First real-time throughput, and the second real-time throughput of the second wireless network;Wherein, second prefixed time interval is small
In the very first time interval;And according to first real-time throughput and second real-time throughput, judge whether full
The default wireless network switching condition of foot;And when meeting the default wireless network switching condition, pass through second radio frequency
Module accesses to the second wireless network.
In such scheme, the processor, it is additionally operable to accessing to the first radio frequency mould by the first radio-frequency module
During the first wireless network of block connection, according to the first prefixed time interval, the first handling capacity of first wireless network is detected,
Before second handling capacity of the second wireless network connected with the second radio-frequency module, multiple alternate wireless networks are obtained;And inspection
Survey multiple handling capacities corresponding to the multiple alternate wireless network;Wherein, the corresponding handling capacity of an alternate wireless network;With
And the multiple alternate wireless network is ranked up according to the descending order of handling capacity, it is standby wireless after being sorted
Network list;And two alternate wireless networks by handling capacity maximum in the alternate wireless network list, it is identified as
First wireless network and the second wireless network;Wherein, handling capacity corresponding to first wireless network is more than described
Handling capacity corresponding to second wireless network;And first radio-frequency module is connected to first wireless network, described
Two radio-frequency modules are connected to the second wireless network;And when meeting the default wireless network switching condition, pass through institute
State the second radio-frequency module to access to after the second wireless network, disconnect first radio-frequency module and first wireless network
The connection of network;And after disconnecting the connection of first radio-frequency module and first wireless network, reacquire multiple standby
Use wireless network;And multiple handling capacities corresponding to the multiple alternate wireless network of detection;Wherein, an alternate wireless network
A corresponding handling capacity;And the alternate wireless network according to corresponding to maximum throughput in the multiple handling capacity, described in renewal
First wireless network;And first radio-frequency module is connected to first wireless network.
In such scheme, the processor, specifically for being gulped down in real time to first real-time throughput and described second
The amount of telling carries out scale operation, obtains the ratio result for stating the first real-time throughput and second real-time throughput;And work as institute
When stating ratio result and being less than preset ratio threshold value, judgement meets the default wireless network switching condition;And when the ratio
When being as a result more than or equal to the preset ratio threshold value, judgement is unsatisfactory for the default wireless network switching condition.
The embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable recording medium storage has
One or more program, one or more of programs can be walked by one or more computing device so that realization is following
Suddenly:
When accessing to the first wireless network that first radio-frequency module connects by the first radio-frequency module, according to first
Prefixed time interval, detect the first handling capacity of first wireless network, the second wireless network connected with the second radio-frequency module
Second handling capacity of network;Wherein, first wireless network is one be used in two wireless networks having connected
Wireless network;The second wireless network is a untapped wireless network in described two wireless networks;
When first handling capacity is less than second handling capacity, according to the second prefixed time interval, detection described the
First real-time throughput of one wireless network, and the second real-time throughput of the second wireless network;Wherein, described second is pre-
If time interval is less than the very first time interval;
According to first real-time throughput and second real-time throughput, judge whether to meet that default wireless network is cut
Change condition;
When meeting the default wireless network switching condition, second nothing is accessed to by second radio-frequency module
Gauze network.
As can be seen here, in the technical scheme of the embodiment of the present invention, the first radio frequency mould is being accessed to by the first radio-frequency module
During the first wireless network of block connection, according to the first prefixed time interval, the first handling capacity of the first wireless network is detected, and the
Second handling capacity of the second wireless network of two radio-frequency modules connection;Wherein, the first wireless network is that two connected are wireless
In network, a wireless network being used;Second wireless network is a untapped nothing in two wireless networks
Gauze network;When the first handling capacity is less than the second handling capacity, according to the second prefixed time interval, the of the first wireless network of detection
One real-time throughput, and the second real-time throughput of second wireless network;Wherein, the second prefixed time interval is less than the very first time
Interval;According to the first real-time throughput and the second real-time throughput, judge whether to meet default wireless network switching condition;When full
When foot presets wireless network switching condition, second wireless network is accessed to by the second radio-frequency module.As can be seen here, the present invention is real
A kind of wireless switching method and terminal of example proposition are applied, in the terminal for being configured with two radio-frequency modules, can be detected in real time
The handling capacity of two wireless networks of connection, and according to the switching of handling capacity progress wireless network, so as to carry out wireless network
During switching, the defects of can effectively overcoming the business that wireless network is used in terminal to be interrupted, ensure terminal
Normal work.
Brief description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the optional mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the implementation process schematic diagram one for the wireless switching method that the embodiment of the present invention proposes;
Fig. 4 is the implementation process schematic diagram two for the wireless switching method that the embodiment of the present invention proposes;
Fig. 5 is the alternate wireless network list schematic diagram after being sorted in the embodiment of the present invention;
Fig. 6 is the implementation process schematic diagram three for the wireless switching method that the embodiment of the present invention proposes;
Fig. 7 is the implementation process schematic diagram four for the wireless switching method that the embodiment of the present invention proposes;
Fig. 8 is the implementation process schematic diagram five for the wireless switching method that the embodiment of the present invention proposes;
Fig. 9 is the implementation process schematic diagram six for the wireless switching method that the embodiment of the present invention proposes;
Figure 10 is the composition structural representation one for the terminal that the embodiment of the present invention proposes.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware configuration signal for a kind of optional mobile terminal of each embodiment of the realization present invention
Figure, the mobile terminal 100 can include:Radio frequency (Radio Frequency, RF) unit 101, Wireless Fidelity (WIreless-
Fidelity, Wi-Fi) it is module 102, audio output unit 103, audio/video (A/V) input block 104, sensor 105, aobvious
Show the parts such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111.
It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 1 does not form the restriction to mobile terminal, it is mobile whole
End can be included than illustrating more or less parts, either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code division it is more
Location 2000 (Code Division Multiple Access 2000, CDMA2000), WCDMA (Wideband
Code Division Multiple Access, WCDMA), TD SDMA (Time Division-
Synchronous Code Division Multiple Access, TD-SCDMA), FDD Long Term Evolution
(Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex Long Term Evolution
(Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102
Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1
Wi-Fi module 102 is shown, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can basis
Need to omit in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or Wi-Fi module 102 it is receiving or
It is sound that the voice data that person stores in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit
103 can also provide performed to mobile terminal 100 the related audio output of specific function (for example, call signal reception sound,
Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include 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
Voice data, phone directory etc.) etc..In addition, memory 109 can 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 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite includes communicating the user equipment (User of connection successively for the LTE system of universal mobile communications technology, the LTE system
Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio
Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation
The IP operation 204 of business.
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include mobility management entity (Mobility Management Entity, MME) 2031, ownership
Client server (Home Subscriber Server, HSS) 2032, other MME2033, gateway (Serving Gate
Way, SGW) 2034, grouped data network gateway (PDN Gate Way, PGW) 2035 and policy and rate functional entity
(Policy and Charging Rules Function, PCRF) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IP Multimedia
Subsystem, IMS) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
Embodiment one
Fig. 3 is the implementation process schematic diagram one for the wireless switching method that the embodiment of the present invention proposes, as shown in figure 3, at this
In the embodiment of invention, the method that terminal is wirelessly switched may comprise steps of:
Step 101, by the first radio-frequency module access to the first radio-frequency module connect the first wireless network when, according to
First prefixed time interval, detect the first handling capacity of the first wireless network, the second wireless network connected with the second radio-frequency module
Second handling capacity of network;Wherein, the first wireless network is in two wireless networks connected, and one be used is wireless
Network;Second wireless network is the untapped wireless network in two wireless networks.
In an embodiment of the present invention, above-mentioned terminal is accessing to above-mentioned first radio-frequency module pair by the first radio-frequency module
During the first wireless network answered, above-mentioned first wireless network can be detected according to the first prefixed time interval pre-set
Handling capacity, i.e. the first handling capacity, meanwhile, above-mentioned terminal can also detect the second wireless network that the second radio-frequency module is connected
Handling capacity, i.e. the second handling capacity.
It should be noted that in an embodiment of the present invention, above-mentioned terminal can be to be configured with two wireless radio frequency modules
Terminal, and above-mentioned terminal can be a variety of intelligent terminals with radio function, for example, above-mentioned terminal can be mobile phone, intelligence
Energy camera, tablet personal computer etc..
Further, in an embodiment of the present invention, above-mentioned terminal can by above-mentioned two wireless radio frequency modules, i.e., on
The first radio-frequency module and above-mentioned second radio-frequency module are stated, establishes and connects with above-mentioned first wireless network and above-mentioned second wireless network
Connect.Specifically, in an embodiment of the present invention, above-mentioned first wireless network is in two wireless networks connected,
The wireless network used;Above-mentioned second wireless network is a untapped wireless network in above-mentioned two wireless network
Network.
It should be noted that in an embodiment of the present invention, above-mentioned terminal accesses to by above-mentioned first radio-frequency module
Before above-mentioned first wireless network, above-mentioned first radio-frequency module has built up with above-mentioned first wireless network and is connected, meanwhile, it is above-mentioned
Second radio-frequency module has built up with above-mentioned second wireless network and is connected.
Further, in an embodiment of the present invention, above-mentioned terminal can pre-set above-mentioned first prefixed time interval,
For example, above-mentioned time interval can be arranged to 5min by above-mentioned terminal in advance, then above-mentioned terminal is accessing to above-mentioned first nothing
, can be to be detected every 5min to above-mentioned first handling capacity and above-mentioned second handling capacity, so as to keep away after gauze network
Exempt to the problem of above-mentioned power consumption of terminal is excessive caused by above-mentioned first wireless network and second wireless network progress detection in real time.
It should be noted that in an embodiment of the present invention, due to being successfully delivered data in the unit interval for characterizing
The handling capacity of quantity can more embody the actual data transmission capabilities of wireless network, therefore tendency of the embodiment of the present invention is with wireless
The handling capacity of network represents the data transmission performance of a wireless network.
Step 102, when the first handling capacity is less than the second handling capacity, according to the second prefixed time interval, detect the first nothing
First real-time throughput of gauze network, and the second real-time throughput of second wireless network.
In an embodiment of the present invention, above-mentioned terminal is accessed to corresponding to the first radio-frequency module by the first radio-frequency module
During the first wireless network, according to the first prefixed time interval, the first handling capacity of the first wireless network of detection, and the second radio frequency mould
After second handling capacity of second wireless network corresponding to block, if above-mentioned first handling capacity is less than above-mentioned second handling capacity, that
Terminal can be according to the second prefixed time interval, to the first real-time throughput of the first wireless network, and second wireless network
The second real-time throughput detected.
It should be noted that in an embodiment of the present invention, it is default that above-mentioned first prefixed time interval is more than above-mentioned second
Time interval.For example, above-mentioned time interval can be arranged to 5s by above-mentioned terminal in advance, then above-mentioned terminal is it is determined that above-mentioned
One handling capacity is less than after above-mentioned second handling capacity, can with every 5s to above-mentioned first real-time throughput and above-mentioned second real-time
Handling capacity is detected.
Further, in an embodiment of the present invention, above-mentioned terminal detects according to above-mentioned first prefixed time interval
After above-mentioned first handling capacity and above-mentioned second handling capacity, above-mentioned first handling capacity and above-mentioned second handling capacity can be compared
Compared with if above-mentioned first handling capacity is less than above-mentioned second handling capacity, then above-mentioned terminal can start to above-mentioned first wireless network
The handling capacity of network and above-mentioned second wireless network is detected in real time, so as to obtain above-mentioned first real-time throughput and above-mentioned second
Real-time throughput.
Further, in an embodiment of the present invention, above-mentioned terminal is detecting above-mentioned first handling capacity and above-mentioned second
After handling capacity, if above-mentioned first handling capacity is less than above-mentioned second handling capacity, i.e., the actual transmissions of above-mentioned first wireless network
Ability is less than the actual transmissions ability of above-mentioned second wireless network, and switching directly can't be accessed to above-mentioned second by above-mentioned terminal
Wireless network, but first the real-time throughput of above-mentioned first wireless network and above-mentioned second wireless network is detected, enter one
Step determining the need for switching accesses to above-mentioned second wireless network.
Step 103, according to the first real-time throughput and the second real-time throughput, judge whether to meet that default wireless network is cut
Change condition.
In an embodiment of the present invention, if above-mentioned first handling capacity is less than above-mentioned second handling capacity, above-mentioned terminal by
According to the second prefixed time interval, above-mentioned first real-time throughput of above-mentioned first wireless network of detection, and above-mentioned second wireless network
After above-mentioned second real-time throughput of network, it can be sentenced according to above-mentioned first real-time throughput and above-mentioned second real-time throughput
It is disconnected whether to meet default wireless network switching condition.
Further, in an embodiment of the present invention, above-mentioned terminal is to above-mentioned first wireless network and above-mentioned second nothing
The real-time throughput of gauze network is detected, can after obtaining above-mentioned first real-time throughput and above-mentioned second real-time throughput
To be made whether to need switching to access to above-mentioned second nothing according to above-mentioned first real-time throughput and above-mentioned second real-time throughput
The judgement of gauze network, rather than it is determined that direct switch accesses to after above-mentioned first handling capacity is less than above-mentioned second handling capacity
State second wireless network, so as to overcome frequent switching access wireless network caused by power consumption increase the defects of.
Step 104, when meeting default wireless network switching condition, the second wireless network is accessed to by the second radio-frequency module
Network.
In an embodiment of the present invention, above-mentioned terminal judges according to the first real-time throughput and the second real-time throughput
After whether satisfaction presets wireless network switching condition, if it is decided that meet above-mentioned default wireless network switching condition, then on
Wireless hand-off process can be carried out by stating terminal, i.e., access to above-mentioned second wireless network by above-mentioned second radio-frequency module.
Further, in an embodiment of the present invention, if above-mentioned terminal is according to above-mentioned first real-time throughput and above-mentioned
Second real-time throughput judges to meet above-mentioned default wireless network switching condition, then terminal can be directly by above-mentioned the of access
One wireless network switches to above-mentioned second wireless network.
It should be noted that in an embodiment of the present invention, if above-mentioned terminal according to above-mentioned first real-time throughput and
Above-mentioned second real-time throughput judges to be unsatisfactory for above-mentioned default wireless network switching condition, then terminal can be continuing with above-mentioned
First wireless network, and without wireless hand-off process.
The wireless switching method that the embodiment of the present invention proposes, connect accessing to the first radio-frequency module by the first radio-frequency module
During the first wireless network connect, according to the first prefixed time interval, the first handling capacity of the first wireless network is detected, and second penetrates
Second handling capacity of the second wireless network of frequency module connection;Wherein, the first wireless network is two wireless networks connected
In, a wireless network being used;Second wireless network is a untapped wireless network in two wireless networks
Network;When the first handling capacity is less than the second handling capacity, according to the second prefixed time interval, the first of the first wireless network of detection is real
When handling capacity, and the second real-time throughput of second wireless network;Wherein, the second prefixed time interval was less than between the very first time
Every;According to the first real-time throughput and the second real-time throughput, judge whether to meet default wireless network switching condition;Work as satisfaction
During default wireless network switching condition, second wireless network is accessed to by the second radio-frequency module.As can be seen here, the present invention is implemented
A kind of wireless switching method that example proposes, in the terminal for being configured with two radio-frequency modules, can detect two connected in real time
The handling capacity of individual wireless network, and according to the switching of handling capacity progress wireless network, so as to carry out the mistake of wireless network switching
Cheng Zhong, the defects of can effectively overcoming the business that wireless network is used in terminal to be interrupted, ensure the normal work of terminal
Make.
Embodiment two
Based on above-described embodiment one, Fig. 4 is the implementation process schematic diagram for the wireless switching method that the embodiment of the present invention proposes
Two, as shown in figure 4, in an embodiment of the present invention, in access to that the first radio-frequency module connects by the first radio-frequency module the
During one wireless network, according to the first prefixed time interval, the first handling capacity of the first wireless network of detection, and the second radio-frequency module
Before second handling capacity of the second wireless network of connection, i.e., before step 101, the method that above-mentioned terminal is wirelessly switched is also
It may comprise steps of:
Step 105, obtain multiple alternate wireless networks.
In an embodiment of the present invention, above-mentioned terminal is accessing to above-mentioned first radio frequency mould by above-mentioned first radio-frequency module
Before above-mentioned first wireless network corresponding to block, multiple alternate wireless networks can be first obtained.
It should be noted that in an embodiment of the present invention, above-mentioned terminal has multiple fixed wireless wireless networks at one
When in the particular place of network, multiple alternate wireless networks in the place can be first obtained.For example, when above-mentioned terminal is in a business
When in, can obtain market wireless network 1, market wireless network 2, market wireless network 3 and market in the market without
This 4 Fixed Cellular Networks of gauze network 4.
Multiple handling capacities corresponding to step 106, the multiple alternate wireless networks of detection;Wherein, an alternate wireless network pair
Answer a handling capacity.
In an embodiment of the present invention, above-mentioned terminal can first be distinguished after above-mentioned multiple alternate wireless networks are obtained
Detect multiple handling capacities corresponding to above-mentioned multiple alternate wireless networks.Specifically, corresponding one an of alternate wireless network is handled up
Amount.
It should be noted that in an embodiment of the present invention, above-mentioned terminal is getting above-mentioned multiple alternate wireless networks
Afterwards, it is necessary to first detect the handling capacity of each wireless network, to determine the actual data transfer ability of above-mentioned each wireless network,
So as to further select the alternate wireless network that can be accessed in above-mentioned multiple alternate wireless networks.
Step 107, according to the descending order of handling capacity multiple alternate wireless networks are ranked up, after being sorted
Alternate wireless network list.
In an embodiment of the present invention, above-mentioned terminal is detecting above-mentioned corresponding to above-mentioned multiple alternate wireless networks multiple gulp down
After the amount of telling, above-mentioned multiple alternate wireless networks can be ranked up according to the descending order of handling capacity, so as to obtain
Alternate wireless network list after sequence.
Further, in an embodiment of the present invention, above-mentioned terminal is detecting the more of above-mentioned multiple alternate wireless networks
After individual handling capacity, above-mentioned multiple handling capacities are compared, to determine the actual data transfer energy of above-mentioned multiple wireless networks
Power.For example, the handling capacity 1 of the above-mentioned market wireless network 1 of above-mentioned terminal acquisition, the handling capacity 2 of above-mentioned market wireless network 2, such as
Fruit handling capacity 2 is more than handling capacity 1, then can be to illustrate that the actual data transfer ability of above-mentioned market wireless network 2 compares market
The actual data transfer ability of wireless network 1 is strong.
Specifically, in an embodiment of the present invention, above-mentioned terminal can be according to the descending order of handling capacity to above-mentioned
Multiple alternate wireless networks are ranked up, with the alternate wireless network list after being sorted.Fig. 5 is to be arranged in the embodiment of the present invention
Alternate wireless network list schematic diagram after sequence, as shown in figure 5, in an embodiment of the present invention, above-mentioned terminal obtains above-mentioned business
The handling capacity 1 of wireless network 1, the handling capacity 2 of above-mentioned market wireless network 2, the handling capacity 3 of above-mentioned market wireless network 3 with
And the handling capacity 4 of above-mentioned market wireless network 4, the descending order of handling capacity are followed successively by handling capacity 3, handling capacity 2, handling capacity
1st, handling capacity 4, then in the alternate wireless network list after the sequence, it is wireless that the order of alternate wireless network is followed successively by market
Network 3, market wireless network 2, market wireless network 1 and market wireless network 4.
Step 108, by two maximum alternate wireless networks of handling capacity in alternate wireless network list, be identified as the
One wireless network and second wireless network;Wherein, handling capacity corresponding to the first wireless network is more than corresponding to second wireless network
Handling capacity.
In an embodiment of the present invention, above-mentioned terminal according to the descending order of handling capacity to multiple standby wireless networks
Network is ranked up, and after the alternate wireless network list after being sorted, will can be handled up in above-mentioned alternate wireless network list
Two maximum alternate wireless networks are measured, are identified as above-mentioned first wireless network and above-mentioned second wireless network;Specifically,
In an embodiment of the present invention, handling capacity corresponding to above-mentioned first wireless network is more than corresponding to above-mentioned second wireless network and handled up
Amount.
It should be noted that in an embodiment of the present invention, above-mentioned terminal according to handling capacity size to above-mentioned multiple standby
It is ranked up with wireless network, and after obtaining above-mentioned alternate wireless network list, above-mentioned terminal can will be above-mentioned multiple standby
Handling capacity is defined as above-mentioned first wireless network to big alternate wireless network in wireless network, by above-mentioned multiple standby wireless networks
The alternate wireless network that handling capacity is taken second place in network is defined as above-mentioned second wireless network.That is, above-mentioned terminal can will be upper
First alternate wireless network and the second alternate wireless network in alternate wireless network list are stated, is identified as above-mentioned
One wireless network and above-mentioned second wireless network.
Further, in an embodiment of the present invention, can be true by market wireless network 3 based on above-mentioned Fig. 5, above-mentioned terminal
It is set to the first wireless network, market wireless network 2 is defined as second wireless network.
Fig. 6 is the implementation process schematic diagram three for the wireless switching method that the embodiment of the present invention proposes, as shown in fig. 6, at this
In the embodiment of invention, above-mentioned terminal by two maximum alternate wireless networks of handling capacity in above-mentioned alternate wireless network list,
It is identified as after above-mentioned first wireless network and above-mentioned second wireless network, i.e., after step 108, above-mentioned terminal carries out nothing
The method of line switching can also comprise the following steps:
Step 109, the first radio-frequency module is connected to the first wireless network, the second radio-frequency module is connected to the second wireless network
Network.
In an embodiment of the present invention, above-mentioned terminal is by two of handling capacity maximum in above-mentioned alternate wireless network list
Alternate wireless network, be identified as after above-mentioned first wireless network and above-mentioned second wireless network, i.e., will be above-mentioned multiple standby
With two most strong alternate wireless networks of the actual data transfer ability in wireless network be defined as above-mentioned first wireless network and
After above-mentioned second wireless network, above-mentioned first radio-frequency module can be connected to above-mentioned first wireless network by above-mentioned terminal, together
When above-mentioned second radio-frequency module is connected to above-mentioned second wireless network.
The wireless switching method that the embodiment of the present invention proposes, connect accessing to the first radio-frequency module by the first radio-frequency module
During the first wireless network connect, according to the first prefixed time interval, the first handling capacity of the first wireless network is detected, and second penetrates
Second handling capacity of the second wireless network of frequency module connection;Wherein, the first wireless network is two wireless networks connected
In, a wireless network being used;Second wireless network is a untapped wireless network in two wireless networks
Network;When the first handling capacity is less than the second handling capacity, according to the second prefixed time interval, the first of the first wireless network of detection is real
When handling capacity, and the second real-time throughput of second wireless network;Wherein, the second prefixed time interval was less than between the very first time
Every;According to the first real-time throughput and the second real-time throughput, judge whether to meet default wireless network switching condition;Work as satisfaction
During default wireless network switching condition, second wireless network is accessed to by the second radio-frequency module.As can be seen here, the present invention is implemented
A kind of wireless switching method that example proposes, in the terminal for being configured with two radio-frequency modules, can detect two connected in real time
The handling capacity of individual wireless network, and according to the switching of handling capacity progress wireless network, so as to carry out the mistake of wireless network switching
Cheng Zhong, the defects of can effectively overcoming the business that wireless network is used in terminal to be interrupted, ensure the normal work of terminal
Make.
Embodiment three
Based on above-described embodiment one, Fig. 7 is the implementation process schematic diagram for the wireless switching method that the embodiment of the present invention proposes
Four, as shown in fig. 7, in an embodiment of the present invention, above-mentioned terminal is sentenced according to the first real-time throughput and the second real-time throughput
The disconnected method for whether meeting default wireless network switching condition may comprise steps of:
Step 103a, scale operation is carried out to the first real-time throughput and the second real-time throughput, it is real-time that acquisition states first
The ratio result of handling capacity and the second real-time throughput.
In an embodiment of the present invention, if above-mentioned first handling capacity is less than above-mentioned second handling capacity, above-mentioned terminal is being examined
Survey above-mentioned first real-time throughput of above-mentioned first wireless network, and above-mentioned second real-time throughput of above-mentioned second wireless network
Afterwards, scale operation first can be carried out to above-mentioned first real-time throughput and above-mentioned second real-time throughput, then obtained above-mentioned
The ratio result of first real-time throughput and above-mentioned second real-time throughput.
Step 103b, when ratio result is less than preset ratio threshold value, judge to meet default wireless network switching condition.
In an embodiment of the present invention, above-mentioned terminal is carrying out ratio to the first real-time throughput and the second real-time throughput
Computing, after obtaining the ratio result for stating the first real-time throughput and the second real-time throughput, if above-mentioned ratio result is less than
During preset ratio threshold value, then above-mentioned terminal, which can be determined that, meets above-mentioned default wireless network switching condition.
Further, in the embodiment that the present invention is sent out, above-mentioned terminal can pre-set a preset ratio threshold value, on
State preset ratio threshold value is used for whether carrying out the switching of wireless wireless network and judging.Specifically, above-mentioned terminal can will be upper
State preset ratio threshold value and be arranged to 0.7, then when the above-mentioned ratio result that above-mentioned terminal calculates is less than 0.7, just can consider
Meet above-mentioned default wireless network switching condition.
Step 103c, when ratio result is more than or equal to preset ratio threshold value, judgement is unsatisfactory for default wireless network
Switching condition.
In an embodiment of the present invention, above-mentioned terminal is carrying out ratio to the first real-time throughput and the second real-time throughput
Computing, after obtaining the ratio result for stating the first real-time throughput and the second real-time throughput, if above-mentioned ratio result is more than
Or during equal to preset ratio threshold value, then above-mentioned terminal, which can be determined that, is unsatisfactory for above-mentioned default wireless network switching condition.
Further, in an embodiment of the present invention, above-mentioned terminal is to above-mentioned first wireless network and above-mentioned second nothing
The real-time throughput of gauze network is detected, can after obtaining above-mentioned first real-time throughput and above-mentioned second real-time throughput
To calculate the ratio result for obtaining above-mentioned first real-time throughput and above-mentioned second real-time throughput, then further according to above-mentioned
Ratio result and above-mentioned preset ratio threshold value are made whether to need to switch the judgement for accessing to above-mentioned second wireless network, rather than
It is determined that above-mentioned first handling capacity be less than above-mentioned second handling capacity after directly switching access to above-mentioned second wireless network, so as to
The defects of power consumption increase caused by frequent switching access wireless network can be overcome.
It can be seen from the description above, pass through above-mentioned step 103a~103c, the above-mentioned real-time throughput of terminal-pair first
Scale operation is carried out with the second real-time throughput, obtains the ratio result for stating the first real-time throughput and the second real-time throughput;
When ratio result is less than preset ratio threshold value, judge to meet default wireless network switching condition;Be more than when ratio result or
During equal to preset ratio threshold value, judgement is unsatisfactory for default wireless network switching condition;It is being configured with the terminal of two radio-frequency modules
In, the handling capacities of two wireless networks connected can be detected in real time, and the switching of wireless network is carried out according to handling capacity, from
And during wireless network switching is carried out, it can effectively overcome the business that wireless network is used in terminal to be interrupted
The defects of, ensure the normal work of terminal;Also, implement simple and convenient, be easy to popularize, the scope of application is wider.
Example IV
Based on above-described embodiment two, Fig. 8 is the implementation process schematic diagram for the wireless switching method that the embodiment of the present invention proposes
Five, as shown in figure 8, in an embodiment of the present invention, when meeting default wireless network switching condition, above-mentioned terminal is passing through the
Two radio-frequency modules are accessed to after second wireless network, i.e., after step 104, the method that above-mentioned terminal is wirelessly switched may be used also
To comprise the following steps:
Step 1010, the connection for disconnecting the first radio-frequency module and the first wireless network.
In an embodiment of the present invention, above-mentioned terminal is carrying out wireless hand-off process, while passes through above-mentioned second radio frequency mould
Block is accessed to after above-mentioned second wireless network, can disconnect the company of above-mentioned first radio-frequency module and above-mentioned first wireless network
Connect.
It should be noted that in an embodiment of the present invention, above-mentioned terminal accesses to above-mentioned second wireless network in switching
Afterwards, can be so that the connection of above-mentioned first radio-frequency module and above-mentioned first wireless network to be disconnected, to select an actual number
It is attached according to the stronger alternate wireless network of transmittability.
Fig. 9 is the implementation process schematic diagram six for the wireless switching method that the embodiment of the present invention proposes, as shown in figure 9, at this
In the embodiment of invention, above-mentioned terminal is after the connection of the first radio-frequency module and the first wireless network is disconnected, i.e. step 1010
Afterwards, the method that above-mentioned terminal is wirelessly switched can also comprise the following steps:
Step 1011, reacquire multiple alternate wireless networks.
In an embodiment of the present invention, above-mentioned terminal disconnects above-mentioned first radio-frequency module and above-mentioned first wireless network
After connection, multiple alternate wireless networks can be reacquired.
It should be noted that in an embodiment of the present invention, above-mentioned terminal can continue have multiple fixed nothings above-mentioned
Multiple alternate wireless networks in the place are obtained in the particular place of line wireless network.
Specifically, in an embodiment of the present invention, above-mentioned terminal is in multiple alternate wireless networks of reacquisition, Ke Yiwei
Multiple alternate wireless networks of above-mentioned second wireless network are not included.For example, market of the above-mentioned terminal in the market is obtained without
After this 4 Fixed Cellular Networks of gauze network 1, market wireless network 2, market wireless network 3 and market wireless network 4, on
State the first radio-frequency module and access to above-mentioned market wireless network 3, while above-mentioned market is accessed to by above-mentioned second radio-frequency module
Wireless network 2, after above-mentioned terminal accesses to above-mentioned market wireless network 2 from the switching of above-mentioned market wireless network 3, above-mentioned end
Holding in the excessively individual alternate wireless network regained does not just include above-mentioned market wireless network 2.
Multiple handling capacities corresponding to step 1012, the multiple alternate wireless networks of detection;Wherein, an alternate wireless network pair
Answer a handling capacity.
In an embodiment of the present invention, above-mentioned terminal can detect after multiple alternate wireless networks are reacquired
State multiple handling capacities corresponding to multiple alternate wireless networks.Specifically, the corresponding handling capacity of an alternate wireless network.
It should be noted that in an embodiment of the present invention, above-mentioned terminal is getting above-mentioned multiple alternate wireless networks
Afterwards, it is necessary to first detect the handling capacity of each wireless network, to determine the actual data transfer ability of above-mentioned each wireless network,
So as to further select the standby wireless network that can be connected with above-mentioned first editorial module in above-mentioned multiple alternate wireless networks
Network.
Step 1013, the alternate wireless network according to corresponding to maximum throughput in multiple handling capacities, update the first wireless network
Network.
In an embodiment of the present invention, above-mentioned terminal detect multiple handling capacities corresponding to multiple alternate wireless networks it
Afterwards, can according to corresponding to maximum throughput in above-mentioned multiple handling capacities alternate wireless network, update the first wireless network.
Further, in an embodiment of the present invention, above-mentioned terminal can from above-mentioned multiple alternate wireless networks, it is determined that
Go out a maximum alternate wireless network of handling capacity, and the maximum alternate wireless network of the handling capacity is defined as the first new nothing
Gauze network.For example, above-mentioned terminal is disconnecting with above-mentioned first wireless network for the wireless network of above-mentioned market wireless network 3
Afterwards, obtain the handling capacity 1 of above-mentioned market wireless network 1, the handling capacity 3 of above-mentioned market wireless network 3 and above-mentioned market without
The handling capacity 4 of gauze network 4, the descending order of handling capacity are followed successively by handling capacity 1, handling capacity 3, handling capacity 4, then corresponding
Ground, above-mentioned terminal can be to be updated to above-mentioned market wireless network by above-mentioned first wireless network by above-mentioned market wireless network 3
1。
Step 1014, the first radio-frequency module is connected to the first wireless network.
In an embodiment of the present invention, above-mentioned terminal standby wireless network according to corresponding to maximum throughput in multiple handling capacities
Network, after updating the first wireless network, above-mentioned first radio-frequency module can be connected to above-mentioned first wireless network.
It should be noted that in an embodiment of the present invention, above-mentioned terminal is after wireless wireless network switching is completed, i.e.,
Above-mentioned terminal is accessing above-mentioned first wireless network from by above-mentioned first radio-frequency module, switches to by above-mentioned second radio frequency mould
Block is accessed after above-mentioned second wireless network, can be detected again to the handling capacity of multiple alternate wireless networks, so as to
A maximum alternate wireless network of handling capacity is selected, is connected again with above-mentioned first radio-frequency module.
Further, above-mentioned first radio-frequency module is being connected it by above-mentioned terminal with above-mentioned first wireless network after renewal
Afterwards, can continue to examine the handling capacity of the first wireless network and second wireless network according to above-mentioned first prefixed time interval
Survey, to meet above-mentioned default wireless network switching condition, the processing of wireless wireless network switching is carried out to above-mentioned terminal.
The wireless switching method that the embodiment of the present invention proposes, connect accessing to the first radio-frequency module by the first radio-frequency module
During the first wireless network connect, according to the first prefixed time interval, the first handling capacity of the first wireless network is detected, and second penetrates
Second handling capacity of the second wireless network of frequency module connection;Wherein, the first wireless network is two wireless networks connected
In, a wireless network being used;Second wireless network is a untapped wireless network in two wireless networks
Network;When the first handling capacity is less than the second handling capacity, according to the second prefixed time interval, the first of the first wireless network of detection is real
When handling capacity, and the second real-time throughput of second wireless network;Wherein, the second prefixed time interval was less than between the very first time
Every;According to the first real-time throughput and the second real-time throughput, judge whether to meet default wireless network switching condition;Work as satisfaction
During default wireless network switching condition, second wireless network is accessed to by the second radio-frequency module.As can be seen here, the present invention is implemented
A kind of wireless switching method that example proposes, in the terminal for being configured with two radio-frequency modules, can detect two connected in real time
The handling capacity of individual wireless network, and according to the switching of handling capacity progress wireless network, so as to carry out the mistake of wireless network switching
Cheng Zhong, the defects of can effectively overcoming the business that wireless network is used in terminal to be interrupted, ensure the normal work of terminal
Make.
Embodiment five
Figure 10 is the composition structural representation one for the terminal that the embodiment of the present invention proposes, in actual applications, based on implementation
Under example one to the same inventive concept of example IV, as shown in Figure 10, the terminal 3 of the embodiment of the present invention includes:Processor 31, deposit
Reservoir 32 and communication bus 33.It should be noted that in an embodiment of the present invention, processor 31 and memory in Figure 10
32 correspond to processor 110 and memory 109 in above-mentioned figure one respectively.During specific embodiment, above-mentioned processor 31
Can be application-specific IC (Application Specific Integrated Circuit, ASIC), data signal
Processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal
Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD), scene can
Program gate array (Field Programmable Gate Array, FPGA), central processing unit (Central Processing
Unit, CPU), controller, microcontroller, at least one of microprocessor.It is to be appreciated that for different equipment, it is used for
Realize that the electronic device of above-mentioned processor function can also be other, the embodiment of the present invention is not especially limited.
In an embodiment of the present invention, above-mentioned communication bus 33 is used to realize the company between processor 31 and memory 32
Connect letter;Above-mentioned processor 31 is used to perform the wireless changeover program stored in memory 32, to realize following steps:
It is default according to first when accessing to the first wireless network that the first radio-frequency module connects by the first radio-frequency module
Time interval, the first handling capacity of the first wireless network of detection, the second of the second wireless network connected with the second radio-frequency module
Handling capacity;Wherein, the first wireless network is a wireless network being used in two wireless networks having connected;The
Two wireless networks are a untapped wireless network in two wireless networks;And when the first handling capacity gulps down less than second
During the amount of telling, according to the second prefixed time interval, the first real-time throughput of the first wireless network of detection, and second wireless network
Second real-time throughput;Wherein, the second prefixed time interval is less than very first time interval;And according to the first real-time throughput and
Second real-time throughput, judge whether to meet default wireless network switching condition;And when the default wireless network switching bar of satisfaction
During part, second wireless network is accessed to by the second radio-frequency module.
In an embodiment of the present invention, further, above-mentioned processor 31, it is additionally operable to access by the first radio-frequency module
To the connection of the first radio-frequency module the first wireless network when, according to the first prefixed time interval, the of the first wireless network of detection
One handling capacity, before the second handling capacity of the second wireless network connected with the second radio-frequency module, obtain multiple standby wireless networks
Network;And multiple handling capacities corresponding to the multiple alternate wireless networks of detection;Wherein, corresponding one an of alternate wireless network is handled up
Amount;And multiple alternate wireless networks are ranked up according to the descending order of handling capacity, the standby nothing after being sorted
Line network list;And by two maximum alternate wireless networks of handling capacity in alternate wireless network list, it is identified as the
One wireless network and second wireless network;Wherein, handling capacity corresponding to the first wireless network is more than corresponding to second wireless network
Handling capacity.
In an embodiment of the present invention, further, above-mentioned processor 31, it is additionally operable to by alternate wireless network list
Two maximum alternate wireless networks of handling capacity, are identified as after the first wireless network and second wireless network, by first
Radio-frequency module is connected to the first wireless network, and the second radio-frequency module is connected to second wireless network.
In an embodiment of the present invention, further, above-mentioned processor 31, it is additionally operable to when the default wireless network switching of satisfaction
During condition, after accessing to second wireless network by the second radio-frequency module, the first radio-frequency module and the first wireless network are disconnected
Connection.
In an embodiment of the present invention, further, above-mentioned processor 31, it is additionally operable to disconnect the first radio-frequency module and first
After the connection of wireless network, multiple alternate wireless networks are reacquired;It is and more corresponding to the multiple alternate wireless networks of detection
Individual handling capacity;Wherein, the corresponding handling capacity of an alternate wireless network;And according to maximum throughput pair in multiple handling capacities
The alternate wireless network answered, update the first wireless network;And the first radio-frequency module is connected to the first wireless network.
In an embodiment of the present invention, further, above-mentioned processor 31, specifically for the first real-time throughput and
Two real-time throughputs carry out scale operation, obtain the ratio result for stating the first real-time throughput and the second real-time throughput;And
When ratio result is less than preset ratio threshold value, judge to meet default wireless network switching condition;And when ratio result is more than
Or during equal to preset ratio threshold value, judgement is unsatisfactory for default wireless network switching condition.
The terminal that the embodiment of the present invention proposes, the first of the connection of the first radio-frequency module is being accessed to by the first radio-frequency module
During wireless network, according to the first prefixed time interval, the first handling capacity of the first wireless network of detection, and the second radio-frequency module connect
Second handling capacity of the second wireless network connect;Wherein, the first wireless network is in two wireless networks connected,
The wireless network used;Second wireless network is a untapped wireless network in two wireless networks;When first
When handling capacity is less than the second handling capacity, according to the second prefixed time interval, the first real-time throughput of the first wireless network is detected,
With the second real-time throughput of second wireless network;Wherein, the second prefixed time interval is less than very first time interval;According to first
Real-time throughput and the second real-time throughput, judge whether to meet default wireless network switching condition;When the default wireless network of satisfaction
During network switching condition, second wireless network is accessed to by the second radio-frequency module.As can be seen here, the end that the embodiment of the present invention proposes
End, in the terminal for being configured with two radio-frequency modules, can detect the handling capacity of two wireless networks connected, and root in real time
The switching of wireless network is carried out according to handling capacity, so as to during wireless network switching is carried out, can effectively overcome terminal
In the defects of business of wireless network is interrupted is used, ensure the normal work of terminal.
The embodiment of the present invention provides a kind of computer-readable recording medium, and above computer readable storage medium storing program for executing is stored with one
Individual or multiple programs, said one or multiple programs, applied in terminal, can be somebody's turn to do by one or more computing device
The method such as embodiment one to example IV is realized when program is executed by processor.
Specifically, programmed instruction corresponding to a kind of wireless switching method in the present embodiment can be stored in CD,
In the storage mediums such as hard disk, USB flash disk, when programmed instruction corresponding with a kind of wireless switching method is set by an electronics in storage medium
During for reading or be performed, comprise the following steps:
It is default according to first when accessing to the first wireless network that the first radio-frequency module connects by the first radio-frequency module
Time interval, the first handling capacity of the first wireless network of detection, the second of the second wireless network connected with the second radio-frequency module
Handling capacity;Wherein, the first wireless network is a wireless network being used in two wireless networks having connected;The
Two wireless networks are a untapped wireless network in two wireless networks;
When the first handling capacity is less than the second handling capacity, according to the second prefixed time interval, the first wireless network is detected
First real-time throughput, and the second real-time throughput of second wireless network;Wherein, when the second prefixed time interval is less than first
Between be spaced;
According to the first real-time throughput and the second real-time throughput, judge whether to meet default wireless network switching condition;
When meeting default wireless network switching condition, second wireless network is accessed to by the second radio-frequency module.
In an embodiment of the present invention, further, the connection of the first radio-frequency module is being accessed to by the first radio-frequency module
The first wireless network when, according to the first prefixed time interval, detect the first handling capacity of the first wireless network, and the second radio frequency
Module connection second wireless network the second handling capacity before, said one either multiple programs by said one or multiple
Computing device, to realize following steps:
Obtain multiple alternate wireless networks;
Detect multiple handling capacities corresponding to multiple alternate wireless networks;Wherein, corresponding one an of alternate wireless network gulps down
The amount of telling;
Multiple alternate wireless networks are ranked up according to the descending order of handling capacity, the standby nothing after being sorted
Line network list;
By two alternate wireless networks that handling capacity in alternate wireless network list is maximum, the first wireless network is identified as
Network and second wireless network;Wherein, handling capacity corresponding to the first wireless network is more than handling capacity corresponding to second wireless network
In an embodiment of the present invention, further, it is standby by two of handling capacity maximum in alternate wireless network list
Wireless network, it is identified as after the first wireless network and second wireless network, said one or multiple programs can also quilts
Said one or multiple computing devices, to realize following steps:
First radio-frequency module is connected to the first wireless network, the second radio-frequency module is connected to second wireless network.
In an embodiment of the present invention, further, it is according to the first real-time throughput and the second real-time throughput, judgement
When no satisfaction presets wireless network switching condition, either multiple programs can also be by said one or multiple processors for said one
Perform, implement following steps:
Carry out scale operation to the first real-time throughput and the second real-time throughput, the first real-time throughput and the are stated in acquisition
The ratio result of two real-time throughputs;
When ratio result is less than preset ratio threshold value, judge to meet default wireless network switching condition;
When ratio result is more than or equal to preset ratio threshold value, judgement is unsatisfactory for default wireless network switching condition.
In an embodiment of the present invention, further, when meeting default wireless network switching condition, the second radio frequency is passed through
Module is accessed to after second wireless network, and either multiple programs can also be held said one by said one or multiple processors
OK, to realize following steps:
Disconnect the connection of the first radio-frequency module and the first wireless network.
In an embodiment of the present invention, further, after the connection for disconnecting the first radio-frequency module and the first wireless network,
Either multiple programs can also be by said one or multiple computing devices, to realize following steps for said one:
Reacquire multiple alternate wireless networks;
Detect multiple handling capacities corresponding to multiple alternate wireless networks;Wherein, corresponding one an of alternate wireless network gulps down
The amount of telling;
According to alternate wireless network corresponding to maximum throughput in multiple handling capacities, the first wireless network is updated;
First radio-frequency module is connected to the first wireless network.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.