Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
The general thought of the data transmission method of the multiple data channel of the embodiment of the present invention is: open at least two data channel; Respectively link quality measurements is carried out to the data channel of opening; According to link quality measurement, select the data channel transmission data to be transmitted business of link-quality optimum.
In order to there be understanding clearly to technical characteristic of the present invention, object and effect, now contrast accompanying drawing and describe the specific embodiment of the present invention in detail.
See the demonstration network topology diagram that Fig. 1 is the embodiment of the present invention.At least Liang Ge communication site illustrate terminal 100 in Fig. 1, communicate to connect with terminal 100, and the server 400 that communicates to connect of communication site.
Server 400 can comprise suitable hardware, logical device, circuit and/or coding, for storing and providing terminal 100 to need the data service of downloading, comprises app application, game etc.
Communication site can comprise suitable hardware, logical device, circuit and/or coding, for providing data transmission channel.This data transmission channel is the physical data interface channel between terminal 100 and server 400, between terminal 100 and other terminal.Should be understood that communication site can be: LTE website, GSM website, GPRS website, CDMA website, EDGE website, WLAN website, CDMA-2000 website, TD-SCDMA website, WCDMA website or WIFI website.
Terminal 100 can comprise suitable hardware, logical device, circuit and/or coding, such as, can comprise one or more subscriber identification module (SIM), at least two radio frequency transmission modules, processor, memories etc.Terminal 100 by setting up wireless connections between radio frequency transmission module and communication site, to realize the communication connection with server 400 and/or other terminal.
The different user that this one or more subscriber identification module (SIM) ALARA Principle is associated with similar and different technical standard.In specific limiting examples, technical standard can be the 2G communication technology (such as, GSM, GPRS, EDGE), the 3G communication technology (such as, WCDMA, TDS-CDMA), the 4G communication technology (such as, LTE, TD-LTE), or other mobile communication technology any.This wireless access technology involved by least two radio frequency transmission modules can comprise LTE, GSM, GPRS, CDMA, EDGE, WLAN, CDMA-2000, TD-SCDMA, WCDMA, WIFI etc.
Thus, in the embodiment of the present invention, at least two in the data channel that terminal 100 relates to by LTE data channel, GPRS data passage, EDGE data channel, WLAN data passage, CDMA-2000 data channel, TD-SCDMA data channel, WCDMA data channel, WIFI data channel and other mobile communication technology (such as, 4G, 4.5G etc.) and carry out transfer of data between server 400.
Such as, the terminal 100 of the embodiment of the present invention can be double card bilateral terminal, it comprises first user identification module (GSM) and the second subscriber identification module (LTE), and the radio frequency transmission module that these two subscriber identification modules are corresponding different respectively, thus, terminal 100 can support LTE data channel and GPRS data passage.
In another embodiment, terminal 100 can comprise the radio frequency transmission module corresponding with a subscriber identification module (LTE) and WIFI radio frequency transmission module, and thus, terminal 100 can support LTE data channel and WIFI data channel.
Should be understood that the terminal 100 of the embodiment of the present invention is by comprising at least two radio frequency transmission modules, can realize supporting that at least two data channel carry out transfer of data.
It is the flow chart of the data transmission method of the multiple data channel of the embodiment of the present invention see Fig. 2.It comprises:
Step S1, unlatching at least two data channel.
Concrete, from the above mentioned, the terminal 100 of the embodiment of the present invention supports that at least two data channel carry out transfer of data.In practice, by controlling the data switch turn-on data passage corresponding to data channel.In some terminals 100, by arranging, make to realize giving tacit consent to the data channel (such as, LTE data channel and GPRS data passage) of opening terminal and comprising according to corresponding function lower floor framework.
If terminal 100 supports LTE data channel and WIFI data channel, then also can realize the unlatching to these two data channel in such a way: after terminal 100 successfully connects WIFI hot spot, the time interval sending " turn-off request " is set to endless (such as, 100 hours), make the PDPcontext of terminal 100 not deexcitation card data service, thus, the data channel of subscriber identification module is kept to be held open.Should understand, should " turn-off request " be that the order of PDPcontext for making the data service of terminal deexcitation card is to close the data channel of blocking in the prior art, in an embodiment of the present invention by not triggering the mode of this order, the data channel of card can not be closed, thus WIFI data channel and LTE data channel can be all unlocked.
Thus, when terminal 100 has data service to need to transmit (such as, downloading), namely realize adopting multiple data channel and server 400 or other terminal room to carry out the transmission of data to be transmitted business by follow-up step.Data to be transmitted business can be the APP application, game, webpage etc. that are stored in server 400, also can be PS speech business.
Step S2, respectively to open data channel carry out link quality measurements.
In an embodiment of the present invention, link quality measurements is carried out by following three kinds of modes:
Mode one
S201, send lead data bag respectively by the data channel of opening;
S202, the reply data bag returned by the data channel reception network opened, and the link quality measurement of each data channel is obtained according to transmission lead data bag and the time difference receiving reply data bag.
Lead data bag does not carry any user data.Namely the effect sending lead data bag is measure current ink quality.Lead data bag can be the self-defined test packet of ping bag or similar ping bag.This self-defined test packet does not comprise user data, only for link quality measurements.
After current derivative sends according to bag, the reply data bag (ACK) that terminal wait network returns, can determine chain-circuit time delay and the congestion situation of current data passage by the time delay sending and receive.
In addition, in order to ensure the accuracy measured, also by carrying out link quality measurements with under type two:
S211, respectively by open data channel send multiple lead data bag continuously;
S212, the multiple reply data bags returned by the data channel reception network opened;
S213, calculate the average of the time difference sending multiple lead data bag by each data channel and receive multiple reply data bag respectively;
S214, the average of gained will be calculated as the link quality measurement of each data channel.
Which, by calculating the average of the link quality measurement of each data channel, can realize the measurement of link-quality more accurately.
Aforesaid way one and mode two can realize, to the real-time measurement of link-quality, obtaining the measurement result of the link-quality such as chain-circuit time delay, congestion ratio by the mode sending lead data bag.
In addition, also by mode three, based on parameter preset, link-quality is measured.Concrete, parameter preset can comprise: signal strength signal intensity (RSSI), signal to noise ratio (SNR), Reference Signal Received Power (RSRR), bandwidth, packet loss etc.When adopting this kind of method of measurement, obtain the link quality measurement of each data channel according to the above-mentioned preset parameter value of each data channel obtained.Should be understood that above-mentioned parameter preset can obtain from cell information.
Should be understood that also can combination one and three, or combination two and three, or combination one, two and three carries out link quality measurements.
Preferably, according to above-mentioned three kinds of metering systems or its metering system combined, the link-quality of the embodiment of the present invention at least comprise following one of them: link delay, congestion ratio, signal strength signal intensity, signal to noise ratio, Reference Signal Received Power, bandwidth, packet loss.
Step S3, according to link quality measurement, select the data channel transmission data to be transmitted business of link-quality optimum.
Concrete, this step comprises: compared by the link quality measurement of each data channel, and the data channel selecting link-quality optimum (such as, time delay is minimum) carries out the transmission of data to be transmitted business.
See Fig. 3, the data transmission method of the embodiment of the present invention also comprises:
Step S4, after step S3, in the transmitting procedure of data to be transmitted business, measure according to the link-quality of prefixed time interval to each data channel, if the link-quality of the data channel of current use is not optimum, then the data channel switching to link-quality optimum proceeds data traffic transmission.
Concrete, in the transmitting procedure of data service, the link-quality of each data channel is measured according to prefixed time interval, such as, within every 10 seconds, measure once.
When should be understood that the measurement carried out when transmitting data service, carry out link quality measurements according to aforesaid way one or two, then during the measurement carried out when transmitting data service in two kinds of situation:
(1) to the measurement of the link-quality of the data channel of current use: lead data bag need not be sent as the aforementioned and measure, and link quality measurement can be obtained according to the packet sending data service with the time difference receiving the reply data bag (ACK) corresponding with the packet sent.Thus, decrease the signaling consumption that link quality measurements needs, improve measurement efficiency.
(2) do not use but the link quality measurements of the data channel of opening current: by sending lead data bag, and receive the reply data bag that network returns, the link quality measurement of current non-usage data passage is obtained according to the time difference sending lead data bag and receive reply data bag.
In practice, in order to avoid " ping-pong ", only within the time period of preset duration, if the link-quality of a certain data channel exceedes the link-quality of other all data channel, and the amount of exceeding reaches predetermined threshold value, then switch to this data channel and carry out data traffic transmission.Such as, data channel 2 is the data channel of current use, in preset duration (30S), the link delay of data channel 1 is less than the link delay of data channel 2 always, and reach predetermined threshold value (0.1ms), namely within the time of 30S, the time delay of data channel 1 is less than the time delay 0.1ms of data channel 2 always, then switch, make to carry out data traffic transmission by data channel 1.
After data traffic transmission, terminal 100 initiatively discharges multiple data channel with releasing resource, and stops the transmission of lead data bag.
The data transmission method of the multiple data channel of the embodiment of the present invention, by selecting and switching, the data channel of link-quality optimum is utilized to carry out transmitting data service, improve transmission rate, and make data service in transmitting procedure, can remain and use optimal data passage, maximize the utilance of high-quality data channel, improve network interaction speed and Consumer's Experience; And link measurement mechanism is simple, real-time, efficient.On the other hand, by data traffic transmission process, utilize packet to carry out link quality measurements, decrease the signaling consumption that link quality measurements needs, improve measurement efficiency.
See Fig. 4, if terminal 100 comprises two data channel, i.e. LTE data channel and WIFI data channel, then the data traffic transmission process of terminal 100 comprises:
Data channel opens step: open LTE data channel and WIFI data channel.
Concrete, can realize the unlatching of LTE data channel with WIFI data channel in such a way: after terminal 100 is successfully connected WIFI hot spot, the time interval sending " turn-off request " is set to endless (such as, 100 hours), make the PDPcontext of terminal 100 not deexcitation card data service, thus, the data channel of subscriber identification module is kept to be held open.Should understand, should " turn-off request " be that the order of PDPcontext for making the data service of terminal deexcitation card is to close the data channel of blocking in the prior art, in an embodiment of the present invention by not triggering the mode of this order, the data channel of card can not be closed, thus WIFI data channel and LTE data channel can be all unlocked.
Thus, when terminal 100 has data service to need transmission (such as, download), namely realize adopting LTE data channel and WIFI data channel and server 400 or other terminal room to carry out the transmission of data to be transmitted business by follow-up step.Data to be transmitted business can be the APP application, game, webpage etc. that are stored in server 400, also can be PS speech business.
Link quality measurements step: respectively link quality measurements is carried out to LTE data channel and WIFI data channel.
Concrete, in an embodiment of the present invention, carry out link quality measurements by following three kinds of modes:
Mode one
S201, send lead data bag respectively by LTE data channel and WIFI data channel;
S202, the reply data bag returned respectively by LTE data channel and WIFI data channel reception network, and according to sending lead data bag and receiving the time difference acquisition LTE data channel of reply data bag and the link quality measurement of WIFI data channel.
Lead data bag does not carry any user data.Namely the effect sending lead data bag is measure current ink quality.Lead data bag can be the self-defined test packet of ping bag or similar ping bag.This self-defined test packet does not comprise user data, only for link quality measurements.
After current derivative sends according to bag, the reply data bag (ACK) that terminal wait network returns, can determine chain-circuit time delay and the congestion situation of current data passage by the time delay sending and receive.
In addition, in order to ensure the accuracy measured, also by carrying out link quality measurements with under type two:
S211, send multiple lead data bag continuously respectively by LTE data channel and WIFI data channel;
S212, the multiple reply data bags returned respectively by LTE data channel and WIFI data channel reception network;
S213, calculate the average of the time difference sending multiple lead data bag by LTE data channel and WIFI data channel and receive multiple reply data bag respectively;
S214, the link quality measurement of average as LTE data channel and WIFI data channel of gained will be calculated.
Which, by calculating the average of the link quality measurement of each data channel, can realize the measurement of link-quality more accurately.
Aforesaid way one and mode two can realize, to the real-time measurement of link-quality, obtaining the measurement result of the link-quality such as chain-circuit time delay, congestion ratio by the mode sending lead data bag.
In addition, also by mode three, based on parameter preset, link-quality is measured.Concrete, parameter preset can comprise: signal strength signal intensity (RSSI), signal to noise ratio (SNR), Reference Signal Received Power (RSRR), bandwidth, packet loss etc.When adopting this kind of method of measurement, obtain the link quality measurement of each data channel according to the above-mentioned preset parameter value of each data channel obtained.Should be understood that above-mentioned parameter preset can obtain from cell information.
Should be understood that also can combination one and three, or combination two and three, or combination one, two and three carries out link quality measurements.
Preferably, according to above-mentioned three kinds of metering systems or its metering system combined, the link-quality of the embodiment of the present invention at least comprise following one of them: link delay, congestion ratio, signal strength signal intensity, signal to noise ratio, Reference Signal Received Power, bandwidth, packet loss.
Data channel selects step: according to link quality measurement, selects the data channel transmission data to be transmitted business of link-quality optimum.
Concrete, this step comprises: compared by the link quality measurement of each data channel, and the data channel selecting link-quality optimum (such as, time delay is minimum) carries out the transmission of data to be transmitted business.
In addition, the data transmission method of this embodiment also comprises:
Data channel switch step: in the transmitting procedure of data to be transmitted business, measure according to the link-quality of prefixed time interval to LTE data channel and WIFI data channel, if the link-quality of the data channel of current use is not optimum, then the data channel switching to link-quality optimum proceeds data traffic transmission.
Concrete, in the transmitting procedure of data service, the link-quality of each data channel is measured according to prefixed time interval, such as, within every 10 seconds, measure once.
When should be understood that the measurement carried out when transmitting data service, carry out link quality measurements according to aforesaid way one or two, then during the measurement carried out when transmitting data service in two kinds of situation:
(1) to the measurement of the link-quality of the data channel of current use: lead data bag need not be sent as the aforementioned and measure, and link quality measurement can be obtained according to the packet sending data service with the time difference receiving the reply data bag (ACK) corresponding with the packet sent.Thus, decrease the signaling consumption that link quality measurements needs, improve measurement efficiency.
(2) do not use but the link quality measurements of the data channel of opening current: by sending lead data bag, and receive the reply data bag that network returns, the link quality measurement of current non-usage data passage is obtained according to the time difference sending lead data bag and receive reply data bag.
In practice, in order to avoid " ping-pong ", only within the time period of preset duration, if the link-quality of a certain data channel exceedes the link-quality of other all data channel, and the amount of exceeding reaches predetermined threshold value, then switch to this data channel and carry out data traffic transmission.Such as, data channel 2 is the data channel of current use, in preset duration (30S), the link delay of data channel 1 is less than the link delay of data channel 2 always, and reach predetermined threshold value (0.1ms), namely within the time of 30S, the time delay of data channel 1 is less than the time delay 0.1ms of data channel 2 always, then switch, make to carry out data traffic transmission by data channel 1.
After data traffic transmission, terminal 100 initiatively discharges multiple data channel with releasing resource, and stops the transmission of lead data bag.
Thus, can realize terminal 100 utilizes the data channel of link-quality optimum (WIFI data channel or LTE data channel) to carry out the transmission of data service all the time, improve transmission rate, and make data service in transmitting procedure, can remain and use optimal data passage, maximize the utilance of high-quality data channel, improve network interaction speed and Consumer's Experience.
Be the structural representation of the data transmission device of the multiple data channel of the embodiment of the present invention see Fig. 5, it comprises:
First data channel opening module 201, for opening at least two data channel.
First measurement module 202, for carrying out link quality measurements to the data channel of opening respectively.
First selects module 203, for according to link quality measurement, selects the data channel transmission data to be transmitted business of link-quality optimum.
First handover module 204, for in the transmitting procedure of data to be transmitted business, measure according to the link-quality of prefixed time interval to each data channel, if the link-quality of the data channel of current use is not optimum, then the data channel switching to link-quality optimum proceeds data traffic transmission.
In order to avoid " ping-pong ", within the time period of preset duration, if the link-quality of a certain data channel exceedes the link-quality of other all data channel, and the amount of exceeding reaches predetermined threshold value, then handover module 204 carries out data traffic transmission for data channel being switched to this data channel.
In a preferred embodiment, in a preferred embodiment, measurement module 202 comprises:
First gives out a contract for a project submodule 2021, for sending lead data bag respectively by the data channel of opening.
The very first time poor acquisition submodule 2022, for the reply data bag that the data channel reception network by opening returns, and obtains the link quality measurement of each data channel according to transmission lead data bag and the time difference receiving reply data bag.
See Fig. 6, in another preferred embodiment, link quality measurements module 202 comprises:
Second gives out a contract for a project submodule 2023, for sending multiple lead data bag continuously respectively by the data channel of opening;
Second time difference obtained submodule 2024, for multiple reply data bags that the data channel reception network by opening returns, and calculate respectively and send multiple lead data bag by each data channel and receive the average of time difference of multiple reply data bag, and the link quality measurement of average as each data channel of gained will be calculated.
In addition, see Fig. 7, in a further preferred embodiment, link quality measurements module 202 comprises:
Parameter preset acquisition module 2025, for obtaining the parameter preset of each data channel, and obtains the link quality measurement of each data channel according to the preset parameter value of each data channel obtained.
Should understand, in non-limiting example, the data distribution device of multiple data channel can comprise the first give out a contract for a project submodule 2021, very first time difference simultaneously and obtain submodule 2022, second submodule 2023, second time difference of giving out a contract for a project and obtain submodule 2024 and parameter preset acquisition module 2025, also only can comprise the first give out a contract for a project submodule 2021, very first time difference and obtain submodule 2022 and parameter preset acquisition module 2025, or only comprise for second submodule 2023, second time difference of giving out a contract for a project and obtain submodule 2024 and parameter preset acquisition module 2025.
Should be understood that the specific implementation process of above-mentioned modules or device can be corresponding with the description of said method embodiment, be not described in detail herein.
See Fig. 8, in one more embodiment of the present invention, the data transmission device of multiple data channel comprises:
Second data channel opening module 301, for opening LTE data channel and WIFI data channel;
Second measurement module 302, for carrying out link quality measurements to LTE data channel and WIFI data channel respectively;
Second selects module 303, for according to link quality measurement, selects the data channel transmission data to be transmitted business of link-quality optimum.
Second handover module 304, for in the transmitting procedure of data to be transmitted business, measure according to the link-quality of prefixed time interval to LTE data channel and WIFI data channel, if the link-quality of the data channel of current use is not optimum, then the data channel switching to link-quality optimum proceeds data traffic transmission.
Should be understood that the specific implementation process of above-mentioned modules or device can be corresponding with the description of said method embodiment, be not described in detail herein.
By data transmission method and the device of the multiple data channel of the embodiment of the present invention, terminal 100 is by selecting and switching, the data channel of link-quality optimum is utilized to carry out transmitting data service, improve transmission rate, and make data service in transmitting procedure, can remain and use optimal data passage, maximize the utilance of high-quality data channel, improve network interaction speed and Consumer's Experience, and the transmission problem that the link-quality occurring a certain data channel is deteriorated or generation interruption brings can be avoided; And link measurement mechanism is simple, real-time, efficient.On the other hand, by data traffic transmission process, utilize packet to carry out link quality measurements, decrease the signaling consumption that link quality measurements needs, improve measurement efficiency.
Based on above-mentioned mobile terminal hardware configuration, communication apparatus structure, propose mobile terminal of the present invention and divide screen display device each embodiment, network switching device is a part for mobile terminal.
With reference to Fig. 9, the invention provides a kind of network switching device, in network switching device the 4th embodiment, this device comprises:
First detection module 10, for detecting the wireless signal strength of mobile terminal current time institute connecting wireless network;
There is provided the wireless network of wireless signal can be wifi (WIreless-Fidelity, Wireless Fidelity) hotspot such as focus, zigbee (ZigBee protocol) focus, for wifi hotspot, obtain wifi hotspot (i.e. wireless network) list that mobile terminal current time connects, if mobile terminal only connects a wifi hotspot, then first detection module 10 detects in real time wireless signal strength that this wifi hotspot provides to compare with the first predetermined threshold value; If mobile terminal connects multiple wifi hotspot simultaneously, then first detection module 10 detects the wireless signal strength that all wifi hotspot provide in real time, and by wireless signal maximum for signal strength signal intensity as a reference, compares with default first predetermined threshold value.Such as, mobile terminal is connected with wifi hotspot A and B simultaneously simultaneously, the signal strength signal intensity of wifi hotspot A is 10 units (such as unit can be decibel), the signal strength signal intensity of wifi hotspot B is 20 units, then the wireless signal strength of wifi hotspot B and the first predetermined threshold value are compared.
First opening module 20, for when detecting that wireless signal strength is less than the first predetermined threshold value and continues the first preset duration, opens the mobile data network passage of mobile terminal.
When the wireless signal strength detecting that mobile terminal receives is less than the first predetermined threshold value, start timing, and continue the wireless signal strength detecting mobile terminal reception; When the wireless signal strength detecting that mobile terminal receives is less than the first predetermined threshold value lasting first preset duration (such as 10s), first opening module 20 opens the mobile data network passage of mobile terminal, such as, what mobile terminal inside was installed is 4G (forth generation mobile communication technology) card, then open the 4G network of mobile terminal.If the wireless signal strength that mobile terminal receives in the first preset duration recovers normal, when being namely greater than the first predetermined threshold value, cancel timing.
In addition, in order to avoid a kind of situation: the wireless signal strength of hotspot is larger, but the bandwidth that this hotspot provides is very little, namely after mobile terminal receives this wireless signal, speed of download is very slow, so when detecting the wireless signal strength of mobile terminal current time institute connecting wireless network, detect the speed of download that this wireless signal provides simultaneously, if speed of download is less than default speed of download (such as 10Kb/s) and continue the 3rd preset duration (such as 10s), user utilizes this wireless network to ensure the operation of network of relation application, so the mobile data network passage now also opening mobile terminal ensures the network bandwidth needed for online, avoid the situation occurring suspension.
In the present embodiment, the wireless signal strength of mobile terminal current time institute connecting wireless network is detected by first detection module 10, then when detecting that wireless signal strength is less than the first predetermined threshold value and continues the first preset duration, first opening module 20 opens the mobile data network passage of mobile terminal, namely the wireless network (as wifi) connected at mobile terminal breaks down, invalid, during network condition difference, the mobile data network passage that user can be helped automatically to open mobile terminal automatically switches to realize network, avoid mobile terminal suspension because wireless network is unstable, ensure that user is smooth, stable online, avoid making user omit critical network information because of network problem, network advertisement etc., improve user to surf the Net experience.
Further, on the basis of network switching device of the present invention 4th embodiment, propose network switching device the 5th embodiment, in the 5th embodiment, network switching device also comprises:
Second detection module 30, for detecting the external wireless signals intensity of the outside attachable wireless network of mobile terminal;
Connecting speed limit module 40, for when detecting that external wireless signals intensity is greater than the second predetermined threshold value and continues the second preset duration, connecting corresponding wireless network, and the mobile data network passage of closedown or speed limit mobile terminal.
After the mobile data network passage opening mobile terminal, the external wireless signals intensity of mobile terminal place scene outside attachable wireless network is detected during real second detection module 30, if the external wireless signals intensity detected is greater than second when presetting preset and lasting second preset duration, namely mobile terminal detects that the signal strength signal intensity of external wireless network is larger, when network environment is better, connection speed limit module 40 controls mobile terminal and connects corresponding wireless network, the mobile data network passage of closedown or speed limit mobile terminal simultaneously, thus when outside wireless network recovers normal, the mobile data network passage of timely closedown or speed limit mobile terminal, user is helped to save the mobile network's flow needing paying.
In addition, can according to the size of external wireless signals intensity, the speed of download that the corresponding mobile data network passage adjusting mobile terminal allows, the adjusting range of this speed of download is 0 to V (default maximum speed of download), such as, when external wireless signals intensity is greater than the second predetermined threshold value, according to preset rules, external wireless signals intensity is divided into basic, normal, high Three Estate, when external wireless signals intensity is inferior grade, the speed of download of the mobile data network passage of mobile terminal is restricted to 0.8V; When external wireless signals intensity is middle grade, the speed of download of the mobile data network passage of mobile terminal is restricted to 0.5V when external wireless signals intensity is high-grade, the speed of download of the mobile data network passage of mobile terminal is restricted to 0, thus according to the intensity of external wireless signals, intelligence, dynamically adjust the speed of download of the mobile data network passage of mobile terminal.
Further, on the basis of network switching device of the present invention 4th embodiment, propose network switching device the 6th embodiment, in the sixth embodiment, network switching device also comprises:
Traffic statistics module 50, for adding up mobile terminal by the flow spent by mobile data network passage;
Reminding module 60, for when the flow spent by adding up reaches preset flow threshold value, the mobile data network passage of closedown or speed limit mobile terminal, and point out user's current residual flow.
After the mobile data network passage opening mobile terminal, traffic statistics module 50 adds up the flow spent by the mobile data network passage through mobile terminal, when the flow spent by adding up reaches preset flow threshold value (such as 100M), show that the network behavior that now user utilizes mobile terminal to carry out consumes comparatively various flow, need call user's attention, now reminding module 60 export preset information (form of this information can be voice, image, video, one or more in vibrations), the content of this information can comprise user's current residual flow, reminding user checks whether that expending large being applied in of flow hides operation, simultaneously, reminding module 60 is closed or the mobile data network passage of speed limit mobile terminal, prevent from mobile terminal from expending too much mobile network's flow and cause user to expend flow the moon exceeding standard.
In addition, on the basis of network switching device of the present invention 5th embodiment, network switching device also comprises:
Traffic statistics module 50, for adding up mobile terminal by the flow spent by mobile data network passage;
Reminding module 60, for when the flow spent by adding up reaches preset flow threshold value, the mobile data network passage of closedown or speed limit mobile terminal, and point out user's current residual flow.
The present invention also provides a kind of method for switching network, and this method for switching network is mainly used on mobile terminal, and in method for switching network the 4th embodiment, with reference to Fig. 8, method for switching network comprises:
Step S10, detects the wireless signal strength of mobile terminal current time institute connecting wireless network;
There is provided the wireless network of wireless signal can be wifi (WIreless-Fidelity, Wireless Fidelity) hotspot such as focus, zigbee (ZigBee protocol) focus, for wifi hotspot, obtain wifi hotspot (i.e. wireless network) list that mobile terminal current time connects, if mobile terminal only connects a wifi hotspot, then detect wireless signal strength that this wifi hotspot provides in real time to compare with the first predetermined threshold value; If mobile terminal connects multiple wifi hotspot simultaneously, then detect the wireless signal strength that all wifi hotspot provide in real time, and by wireless signal maximum for signal strength signal intensity as a reference, compare with default first predetermined threshold value.Such as, mobile terminal is connected with wifi hotspot A and B simultaneously simultaneously, the signal strength signal intensity of wifi hotspot A is 10 units (such as unit can be decibel), the signal strength signal intensity of wifi hotspot B is 20 units, then the wireless signal strength of wifi hotspot B and the first predetermined threshold value are compared.
Step S20, when detecting that wireless signal strength is less than the first predetermined threshold value and continues the first preset duration, opens the mobile data network passage of mobile terminal.
When the wireless signal strength detecting that mobile terminal receives is less than the first predetermined threshold value, start timing, and continue the wireless signal strength detecting mobile terminal reception; When the wireless signal strength detecting that mobile terminal receives is less than the first predetermined threshold value lasting first preset duration (such as 10s), open the mobile data network passage of mobile terminal, such as, what mobile terminal inside was installed is 4G (forth generation mobile communication technology) card, then open the 4G network of mobile terminal.If the wireless signal strength that mobile terminal receives in the first preset duration recovers normal, when being namely greater than the first predetermined threshold value, cancel timing.
In addition, in order to avoid a kind of situation: the wireless signal strength of hotspot is larger, but the bandwidth that this hotspot provides is very little, namely after mobile terminal receives this wireless signal, speed of download is very slow, so when detecting the wireless signal strength of mobile terminal current time institute connecting wireless network, detect the speed of download that this wireless signal provides simultaneously, if speed of download is less than default speed of download (such as 10Kb/s) and continue the 3rd preset duration (such as 10s), user utilizes this wireless network to ensure the operation of network of relation application, so the mobile data network passage now also opening mobile terminal ensures the network bandwidth needed for online, avoid the situation occurring suspension.
In the present embodiment, by detecting the wireless signal strength of mobile terminal current time institute connecting wireless network, then when detecting that wireless signal strength is less than the first predetermined threshold value and continues the first preset duration, open the mobile data network passage of mobile terminal, namely the wireless network (as wifi) connected at mobile terminal breaks down, invalid, during network condition difference, the mobile data network passage that user can be helped automatically to open mobile terminal automatically switches to realize network, avoid mobile terminal suspension because wireless network is unstable, ensure that user is smooth, stable online, avoid making user omit critical network information because of network problem, network advertisement etc., improve user to surf the Net experience.
Further, on the basis of method for switching network of the present invention 4th embodiment, propose method for switching network the 5th embodiment, in the 5th embodiment, also comprise after opening the step of the mobile data network passage of mobile terminal:
Step S30, detects the external wireless signals intensity of the outside attachable wireless network of mobile terminal;
Step S40, when detecting that external wireless signals intensity is greater than the second predetermined threshold value and continues the second preset duration, connects corresponding wireless network, and the mobile data network passage of closedown or speed limit mobile terminal.
After the mobile data network passage opening mobile terminal, the external wireless signals intensity of the outside attachable wireless network of real-time detection mobile terminal place scene, if the external wireless signals intensity detected is greater than second when presetting preset and lasting second preset duration, namely mobile terminal detects that the signal strength signal intensity of external wireless network is larger, when network environment is better, control mobile terminal and connect corresponding wireless network, the mobile data network passage of closedown or speed limit mobile terminal simultaneously, thus when outside wireless network recovers normal, the mobile data network passage of timely closedown or speed limit mobile terminal, user is helped to save the mobile network's flow needing paying.
In addition, can according to the size of external wireless signals intensity, the speed of download that the corresponding mobile data network passage adjusting mobile terminal allows, the adjusting range of this speed of download is 0 to V (default maximum speed of download), such as, when external wireless signals intensity is greater than the second predetermined threshold value, according to preset rules, external wireless signals intensity is divided into basic, normal, high Three Estate, when external wireless signals intensity is inferior grade, the speed of download of the mobile data network passage of mobile terminal is restricted to 0.8V; When external wireless signals intensity is middle grade, the speed of download of the mobile data network passage of mobile terminal is restricted to 0.5V when external wireless signals intensity is high-grade, the speed of download of the mobile data network passage of mobile terminal is restricted to 0, thus according to the intensity of external wireless signals, intelligence, dynamically adjust the speed of download of the mobile data network passage of mobile terminal.
Further, on the basis of method for switching network of the present invention 4th embodiment, propose method for switching network the 6th embodiment, in the sixth embodiment, also comprise after opening the step of the mobile data network passage of mobile terminal:
Step S50, statistics mobile terminal is by the flow spent by mobile data network passage;
Step S60, when the flow spent by adding up reaches preset flow threshold value, the mobile data network passage of closedown or speed limit mobile terminal, and export the information preset.
After the mobile data network passage opening mobile terminal, add up through mobile terminal mobile data network passage spent by flow, when the flow spent by adding up reaches preset flow threshold value (such as 100M), show that the network behavior that now user utilizes mobile terminal to carry out consumes comparatively various flow, need call user's attention, (form of this information can be voice now to export default information, image, video, one or more in vibrations), the content of this information can comprise user's current residual flow, reminding user checks whether that expending large being applied in of flow hides operation, simultaneously, the mobile data network passage of closedown or speed limit mobile terminal, prevent from mobile terminal from expending too much mobile network's flow and cause user to expend flow the moon exceeding standard.
In addition, on the basis of method for switching network of the present invention 5th embodiment, also comprise after opening the step of the mobile data network passage of mobile terminal:
Step S50, statistics mobile terminal is by the flow spent by mobile data network passage;
Step S60, when the flow spent by adding up reaches preset flow threshold value, the mobile data network passage of closedown or speed limit mobile terminal, and export the information preset.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.