CN105611594B - Network switching device and method - Google Patents

Network switching device and method Download PDF

Info

Publication number
CN105611594B
CN105611594B CN201610061813.0A CN201610061813A CN105611594B CN 105611594 B CN105611594 B CN 105611594B CN 201610061813 A CN201610061813 A CN 201610061813A CN 105611594 B CN105611594 B CN 105611594B
Authority
CN
China
Prior art keywords
network
data
mobile terminal
mobile
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610061813.0A
Other languages
Chinese (zh)
Other versions
CN105611594A (en
Inventor
单掠风
吴小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610061813.0A priority Critical patent/CN105611594B/en
Publication of CN105611594A publication Critical patent/CN105611594A/en
Application granted granted Critical
Publication of CN105611594B publication Critical patent/CN105611594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/26Reselection being triggered by specific parameters by agreed or negotiated communication parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a network switching device, which comprises: the first detection module is used for detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment; and the first starting module is used for starting a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold value and lasts for a first preset duration. The invention also provides a network switching method. When the wireless network connected with the mobile terminal has faults, is invalid and has poor network conditions, the method and the device can help the user to automatically open the mobile data network channel of the mobile terminal so as to realize automatic network switching, avoid the mobile terminal from breaking the network due to the instability of the wireless network, ensure the smooth and stable network surfing of the user, avoid the user from missing important network information, network notification and the like due to network problems, and improve the network surfing experience of the user.

Description

Network switching device and method
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a network switching apparatus and method.
Background
With the continuous development of mobile communication technology and the continuous abundance of network applications of mobile terminals (such as smart phones and the like), people have higher and higher requirements on the quality of network resources, and no longer seek free network resources one by one, particularly in areas with dense personnel and huge areas, such as high-speed railway stations, airports and the like, wireless network signals in partial areas are poor, the interference is large, the network resources which can be obtained by users are few, the users can not be guaranteed to surf the internet smoothly and stably, and the surfing behavior of the users is seriously influenced.
Disclosure of Invention
The invention mainly aims to avoid the network breaking of the mobile terminal due to the instability of a wireless network, ensure smooth and stable surfing of a user and avoid the omission of important network information, network notification and the like of the user due to network problems.
To achieve the above object, an embodiment of the present invention provides a network switching apparatus, including:
the first detection module is used for detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
and the first starting module is used for starting a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold value and lasts for a first preset duration.
Preferably, the network switching apparatus further includes:
the second detection module is used for detecting the external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and the connection speed-limiting module is used for connecting the corresponding wireless network and closing or limiting the speed of the mobile data network channel of the mobile terminal when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and lasts for a second preset duration.
Preferably, the network switching apparatus further includes:
the traffic counting module is used for counting the traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module is used for closing or limiting the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold value, and prompting the current residual flow of the user.
In order to achieve the above object, an embodiment of the present invention provides a network switching method, where the network switching method includes:
detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
and when the wireless signal strength is detected to be smaller than a first preset threshold value and lasts for a first preset duration, a mobile data network channel of the mobile terminal is opened.
Preferably, the step of opening the mobile data network path of the mobile terminal further includes:
detecting external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and the second preset duration lasts, connecting the corresponding wireless network, and closing or limiting the mobile data network channel of the mobile terminal.
Preferably, the step of opening the mobile data network path of the mobile terminal further includes:
counting the flow consumed by the mobile terminal through a mobile data network channel;
and when the flow consumed by statistics reaches a preset flow threshold value, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
The method comprises the steps that the wireless signal intensity of a wireless network connected with a mobile terminal at the current moment is detected through a first detection module; then, when the wireless signal intensity is detected to be smaller than a first preset threshold value and the first preset time duration lasts, the first starting module starts a mobile data network channel of the mobile terminal, namely when a wireless network connected with the mobile terminal breaks down, is invalid and has poor network conditions, the mobile data network channel of the mobile terminal can be automatically started by a user to realize automatic network switching, the phenomenon that the mobile terminal breaks down due to instability of the wireless network is avoided, smooth and stable internet surfing of the user is guaranteed, the phenomenon that the user omits important network information, network notification and the like due to network problems is avoided, and internet surfing experience of the user is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication device of the mobile terminal of FIG. 1;
FIG. 3 is a functional block diagram of a network switching device according to a first embodiment of the present invention;
FIG. 4 is a functional block diagram of a network switching device according to a second embodiment of the present invention;
FIG. 5 is a functional block diagram of a network switching device according to a third embodiment of the present invention;
fig. 6 is a flowchart illustrating a network handover method according to a first embodiment of the present invention;
FIG. 7 is a flowchart illustrating a network handover method according to a second embodiment of the present invention;
fig. 8 is a flowchart illustrating a network handover method according to a third embodiment of the present invention;
FIG. 9 is a flowchart illustrating a fourth embodiment of a data loading method based on multiple data channels according to the present invention;
FIG. 10 is a flowchart illustrating a fifth embodiment of a data loading method based on multiple data channels according to the present invention;
FIG. 11 is a flowchart illustrating a sixth embodiment of a data loading method based on multiple data channels according to the present invention;
FIG. 12 is a timing diagram illustrating a data loading method based on multiple data channels according to an embodiment of the present invention;
FIG. 13 is a block diagram of a data loading apparatus based on multiple data channels according to four embodiments of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, a power supply unit 190, a network switching device 200, and the like. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, and a wireless internet module 113.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may be in Digital Multimedia Broadcasting (DMB)Electronic Program Guides (EPGs), digital video broadcasting-handheld (DVB-H) Electronic Service Guides (ESGs), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting devices. In particular, the broadcast receiving module 111 may receive a broadcast signal by using a signal such as multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO)@) A digital broadcasting apparatus such as a digital broadcasting apparatus, a terrestrial digital broadcasting integrated service (ISDB-T), etc. receives digital broadcasting. The broadcast receiving module 111 may be constructed as various broadcasting devices suitable for providing broadcast signals as well as the above-described digital broadcasting device. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The a/V input unit 120 is used to receive an audio or video signal.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure value, capacitance, etc. due to being touched), scroll wheel, joystick, etc. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or jerky movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like.
The output unit 150 may include a display unit 151, an audio output module 152, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure value as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a microphone, a buzzer, and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The network switching apparatus 200 includes:
the first detection module 10 is configured to detect a wireless signal strength of a wireless network to which the mobile terminal is connected at the current time;
the first starting module 20 is configured to start a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold and lasts for a first preset duration.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication means such as wired and wireless communication means and satellite-based communication means that transmit data via frames or packets.
A communication apparatus in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication devices may use different air interfaces and/or physical layers. For example, the air interface used by the communication device includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and universal mobile telecommunications device (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and so forth. The following description relates to a CDMA communication device, as a non-limiting example, but such teachings are equally applicable to other types of devices.
Referring to fig. 2, the CDMA wireless communication apparatus may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that an apparatus as shown in fig. 2 may include a plurality of BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a base transceiver sub-assembly (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the apparatus. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several global positioning device (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. As a typical operation of the wireless communication apparatus, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the hardware structure and the communication device structure of the mobile terminal, the invention provides various embodiments of the split-screen display device of the mobile terminal, and the network switching device is a part of the mobile terminal.
Referring to fig. 3, the present invention provides a network switching apparatus, which in a first embodiment of the network switching apparatus comprises:
the first detection module 10 is configured to detect a wireless signal strength of a wireless network to which the mobile terminal is connected at the current time;
the WIreless network providing the WIreless signal may be a wifi (WIreless-Fidelity) hotspot, a zigbee (zigbee protocol) hotspot, or other WIreless hotspots, taking the wifi hotspot as an example, a wifi hotspot list is obtained, and if the mobile terminal is connected to only one wifi hotspot, the first detection module 10 detects the WIreless signal intensity provided by the wifi hotspot in real time to compare with a first preset threshold; if the mobile terminal is connected to a plurality of wifi hotspots at the same time, the first detection module 10 detects the wireless signal intensity provided by all the wifi hotspots in real time, and compares the wireless signal with the maximum signal intensity with a preset first preset threshold value as a reference. For example, the mobile terminal is simultaneously connected to wifi hotspots a and B, the signal strength of wifi hotspot a is 10 units (for example, the unit may be decibel), the signal strength of wifi hotspot B is 20 units, and the wireless signal strength of wifi hotspot B is compared with the first preset threshold.
The first starting module 20 is configured to start a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold and lasts for a first preset duration.
When the intensity of the wireless signal received by the mobile terminal is detected to be smaller than a first preset threshold value, timing is started, and the intensity of the wireless signal received by the mobile terminal is continuously detected; when detecting that the intensity of the wireless signal received by the mobile terminal is less than the first preset threshold value for a first preset duration (for example, 10s), the first enabling module 20 enables the mobile data network channel of the mobile terminal, for example, if a 4G (fourth generation mobile communication technology) card is installed inside the mobile terminal, the 4G network of the mobile terminal is enabled. And if the intensity of the wireless signal received by the mobile terminal is recovered to be normal within the first preset time length, namely the intensity is greater than a first preset threshold value, timing is cancelled.
Furthermore, to avoid a situation: the wireless signal intensity of the wireless hotspot is high, but the bandwidth provided by the wireless hotspot is low, that is, the download speed of the mobile terminal after receiving the wireless signal is low, so that when the wireless signal intensity of the wireless network connected with the mobile terminal at the current moment is detected, the download speed provided by the wireless signal is detected at the same time, if the download speed is lower than a preset download speed (for example, 10Kb/s) and lasts for a third preset time (for example, 10s), the user can use the wireless network to ensure the operation of the related network application, so that the mobile data network channel of the mobile terminal is also opened at this time to ensure the network bandwidth required by internet access, and the situation of network disconnection is avoided.
In this embodiment, the first detection module 10 detects the wireless signal strength of the wireless network connected to the mobile terminal at the current moment; then, when it is detected that the wireless signal intensity is smaller than the first preset threshold and lasts for the first preset duration, the first opening module 20 opens the mobile data network channel of the mobile terminal, that is, when a wireless network (such as wifi) connected to the mobile terminal fails, is invalid and has poor network status, the mobile data network channel of the mobile terminal can be automatically opened by a user to realize automatic network switching, thereby avoiding network disconnection of the mobile terminal due to instability of the wireless network, ensuring smooth and stable network access of the user, avoiding the user from missing important network information, network notification and the like due to network problems, and improving the user experience of network access.
Further, on the basis of the first embodiment of the network switching apparatus of the present invention, a second embodiment of the network switching apparatus is proposed, and in the second embodiment, the network switching apparatus further includes:
a second detection module 30 for detecting an external wireless signal strength of a wireless network externally connectable to the mobile terminal;
and the connection speed-limiting module 40 is used for connecting the corresponding wireless network and closing or limiting the mobile data network channel of the mobile terminal when detecting that the intensity of the external wireless signal is greater than the second preset threshold value and continues for a second preset duration.
After the mobile data network channel of the mobile terminal is opened, the external wireless signal intensity of the wireless network connectable outside the scene where the mobile terminal is located is detected by the second detection module 30, if the detected external wireless signal intensity is greater than the second preset duration, that is, if the mobile terminal detects that the signal intensity of the external wireless network is greater and the network environment is better, the connection speed-limiting module 40 controls the mobile terminal to connect to the corresponding wireless network, and simultaneously closes or limits the mobile data network channel of the mobile terminal, so that when the external wireless network returns to normal, the mobile data network channel of the mobile terminal is closed or limited in time, and the user is helped to save the mobile network traffic needing to be paid.
In addition, the download speed allowed by the mobile data network channel of the mobile terminal may be correspondingly adjusted according to the magnitude of the external wireless signal strength, where the adjustment range of the download speed is 0 to V (preset maximum download speed), for example, when the external wireless signal strength is greater than a second preset threshold, the external wireless signal strength is divided into three levels, i.e., low, medium and high, according to a preset rule, and when the external wireless signal strength is at a low level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.8V; when the intensity of the external wireless signal is in a medium level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.5V, and when the intensity of the external wireless signal is in a high level, the download speed of the mobile data network channel of the mobile terminal is limited to 0, so that the download speed of the mobile data network channel of the mobile terminal is intelligently and dynamically adjusted according to the intensity of the external wireless signal.
Further, on the basis of the first embodiment of the network switching apparatus of the present invention, a third embodiment of the network switching apparatus is proposed, and in the third embodiment, the network switching apparatus further includes:
a traffic statistic module 50, configured to count traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module 60 is configured to close or limit the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold, and prompt the user of the current remaining flow.
After the mobile data network channel of the mobile terminal is opened, the traffic counting module 50 counts the traffic consumed by the mobile data network channel of the mobile terminal, when the counted consumed traffic reaches a preset traffic threshold (for example, 100M), which indicates that the network behavior performed by the user using the mobile terminal consumes more traffic at this time, the user needs to be reminded, at this time, the prompt module 60 outputs a preset prompt message (the prompt message may be in the form of one or more of voice, image, video, and vibration), the content of the hint information may include the current remaining traffic of the user, a prompt to the user to check if there is a heavy traffic consuming application that is running hidden, meanwhile, the prompt module 60 closes or limits the mobile data network channel of the mobile terminal, so as to prevent the mobile terminal from consuming too much mobile network traffic to cause that the monthly traffic consumed by the user exceeds the standard.
In addition, on the basis of the second embodiment of the network switching apparatus of the present invention, the network switching apparatus further includes:
a traffic statistic module 50, configured to count traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module 60 is configured to close or limit the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold, and prompt the user of the current remaining flow.
The present invention also provides a network switching method, which is mainly applied to a mobile terminal, and in a first embodiment of the network switching method, referring to fig. 8, the network switching method includes:
step S10, detecting the wireless signal intensity of the wireless network connected with the mobile terminal at the current moment;
the WIreless network providing the WIreless signal can be a wifi (WIreless-Fidelity) hotspot, a zigbee (zigbee protocol) hotspot and other WIreless hotspots, taking the wifi hotspot as an example, a wifi hotspot list is obtained, and if the mobile terminal is connected with only one wifi hotspot, the WIreless signal intensity provided by the wifi hotspot is detected in real time to be compared with a first preset threshold; if the mobile terminal is connected with a plurality of wifi hotspots simultaneously, the wireless signal intensity provided by all the wifi hotspots is detected in real time, and the wireless signal with the maximum signal intensity is used as a reference to be compared with a preset first preset threshold value. For example, the mobile terminal is simultaneously connected to wifi hotspots a and B, the signal strength of wifi hotspot a is 10 units (for example, the unit may be decibel), the signal strength of wifi hotspot B is 20 units, and the wireless signal strength of wifi hotspot B is compared with the first preset threshold.
Step S20, when it is detected that the wireless signal strength is less than the first preset threshold and lasts for the first preset duration, the mobile data network channel of the mobile terminal is opened.
When the intensity of the wireless signal received by the mobile terminal is detected to be smaller than a first preset threshold value, timing is started, and the intensity of the wireless signal received by the mobile terminal is continuously detected; when detecting that the intensity of the wireless signal received by the mobile terminal is less than a first preset threshold value for a first preset duration (for example, 10s), opening a mobile data network channel of the mobile terminal, for example, if a 4G (fourth generation mobile communication technology) card is installed inside the mobile terminal, opening a 4G network of the mobile terminal. And if the intensity of the wireless signal received by the mobile terminal is recovered to be normal within the first preset time length, namely the intensity is greater than a first preset threshold value, timing is cancelled.
Furthermore, to avoid a situation: the wireless signal intensity of the wireless hotspot is high, but the bandwidth provided by the wireless hotspot is low, that is, the download speed of the mobile terminal after receiving the wireless signal is low, so that when the wireless signal intensity of the wireless network connected with the mobile terminal at the current moment is detected, the download speed provided by the wireless signal is detected at the same time, if the download speed is lower than a preset download speed (for example, 10Kb/s) and lasts for a third preset time (for example, 10s), the user can use the wireless network to ensure the operation of the related network application, so that the mobile data network channel of the mobile terminal is also opened at this time to ensure the network bandwidth required by internet access, and the situation of network disconnection is avoided.
In the embodiment, the wireless signal strength of the wireless network connected with the mobile terminal at the current moment is detected; then, when the wireless signal intensity is detected to be smaller than a first preset threshold value and the first preset duration lasts, a mobile data network channel of the mobile terminal is started, namely when a wireless network (such as wifi) connected with the mobile terminal breaks down, is invalid and has poor network conditions, the mobile data network channel of the mobile terminal can be automatically started by a user to realize automatic network switching, the phenomenon that the mobile terminal breaks down due to instability of the wireless network is avoided, smooth and stable internet surfing of the user is guaranteed, the phenomenon that the user omits important network information, network notification and the like due to network problems is avoided, and internet surfing experience of the user is improved.
Further, on the basis of the first embodiment of the network handover method of the present invention, a second embodiment of the network handover method is proposed, and in the second embodiment, after the step of opening the mobile data network channel of the mobile terminal, the method further includes:
step S30, detecting the external wireless signal intensity of the wireless network which can be connected with the outside of the mobile terminal;
and step S40, when the external wireless signal strength is detected to be greater than the second preset threshold value and the second preset duration continues, connecting the corresponding wireless network, and closing or limiting the mobile data network channel of the mobile terminal.
After a mobile data network channel of the mobile terminal is opened, detecting the external wireless signal intensity of a wireless network which can be connected outside a scene where the mobile terminal is located in real time, and if the detected external wireless signal intensity is greater than a second preset duration, namely the mobile terminal detects that the signal intensity of the external wireless network is greater and the network environment is better, controlling the mobile terminal to be connected with the corresponding wireless network and simultaneously closing or limiting the mobile data network channel of the mobile terminal, so that when the external wireless network is recovered to be normal, the mobile data network channel of the mobile terminal is closed or limited in time, and the mobile network flow needing to be paid is saved for a user.
In addition, the download speed allowed by the mobile data network channel of the mobile terminal may be correspondingly adjusted according to the magnitude of the external wireless signal strength, where the adjustment range of the download speed is 0 to V (preset maximum download speed), for example, when the external wireless signal strength is greater than a second preset threshold, the external wireless signal strength is divided into three levels, i.e., low, medium and high, according to a preset rule, and when the external wireless signal strength is at a low level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.8V; when the intensity of the external wireless signal is in a medium level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.5V, and when the intensity of the external wireless signal is in a high level, the download speed of the mobile data network channel of the mobile terminal is limited to 0, so that the download speed of the mobile data network channel of the mobile terminal is intelligently and dynamically adjusted according to the intensity of the external wireless signal.
Further, on the basis of the first embodiment of the network handover method of the present invention, a third embodiment of the network handover method is proposed, and in the third embodiment, after the step of opening the mobile data network channel of the mobile terminal, the method further includes:
step S50, counting the flow consumed by the mobile terminal through the mobile data network channel;
and step S60, when the flow consumed by statistics reaches a preset flow threshold, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
After a mobile data network channel of a mobile terminal is opened, flow consumed by the mobile data network channel of the mobile terminal is counted, when the counted flow reaches a preset flow threshold (for example, 100M), it is indicated that a user consumes more flow by using a network behavior performed by the mobile terminal at the moment, the user needs to be reminded of paying attention, preset prompt information (the prompt information can be in one or more of voice, image, video and vibration) is output at the moment, the content of the prompt information can comprise the current residual flow of the user, the user is reminded of whether an application consuming large flow exists or not to carry out hidden operation, meanwhile, the mobile data network channel of the mobile terminal is closed or limited, and the phenomenon that the monthly consumed flow of the user exceeds the standard due to the fact that the mobile terminal consumes too much mobile network flow is prevented.
In addition, on the basis of the second embodiment of the network switching method of the present invention, after the step of opening the mobile data network channel of the mobile terminal, the method further includes:
step S50, counting the flow consumed by the mobile terminal through the mobile data network channel;
and step S60, when the flow consumed by statistics reaches a preset flow threshold, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
As shown in fig. 9, a fourth embodiment of the data loading method based on multiple data channels according to the present invention is proposed, and the method includes the following steps:
and S11, establishing at least two threads for loading data according to the data loading instruction.
Specifically, when a user clicks a certain link, opens a certain page or downloads a certain file, the terminal receives a data loading instruction, immediately obtains the size of the data to be loaded, determines the number of threads for loading the data according to the size of the data to be loaded, the number of cores of a Central Processing Unit (CPU) of the terminal and the optimal thread support capacity, and establishes a corresponding number of threads to divide the data to be loaded into a plurality of data blocks, wherein each thread is responsible for loading one data block.
In some embodiments, the number of threads may also be preset according to the number of CPU cores of the terminal and the optimal thread support capability, and the terminal establishes a preset number of threads each time.
The number of CPU cores refers to the number of CPU processing cores, and includes single core, double core, and multiple cores. A multi-core CPU is equivalent to integrating multiple complete compute engines (i.e., cores) on one CPU, which share caches, memory, registers, etc.
Each program running on the system is a process, and the process can also be dynamic execution of the whole program or a part of the program, and each process comprises one or more threads. A thread is a collection of instructions, or a special piece of a program, that can be executed independently within the program. Threads are typically lightweight processes that are responsible for performing multiple tasks in a single program, and the operating system is typically responsible for scheduling and execution of multiple threads. Multithreading is to enable multiple threads to work in parallel to complete multiple tasks to improve the efficiency of the system, and threads are implemented when multiple tasks need to be completed at the same time.
And S12, allocating each thread to at least two data channels.
Specifically, the network quality of each data channel is dynamically detected, and then the threads are allocated according to the network quality, that is: more threads are allocated to the data channel with better network quality, fewer threads are allocated to the data channel with poorer network quality, and when the network quality of each data channel is equivalent, the data channels can be equally allocated. The detection of the network quality may adopt the existing detection method, and is not described herein again.
The data channel comprises a mobile network data channel of the SIM card and a WIFI network data channel of the wireless network card. The mobile network data channel may be a 2G network, a 3G network or a 4G network data channel, the 4G network data channel being an LTE network data channel. When the mobile terminal is a single-card terminal, the data channel comprises a mobile network data channel and a WIFI network data channel; when the mobile terminal is a dual-card terminal such as a DSDA terminal or even a multi-card terminal, one terminal can support two or more SIM cards, each SIM card corresponds to one radio frequency antenna, so that coexistence of two or more mobile networks can be realized, and at the moment, the data channel comprises a mobile network data channel of the two or more SIM cards, and a WIFI network data channel can be further included.
For example, the DSDA terminal establishes 4 threads to load data, and if the network quality of the first LTE network data channel of the first SIM card is better than that of the second LTE network data channel of the second SIM card, 3 threads are allocated to the first LTE network data channel, and 1 thread is allocated to the second LTE network data channel.
If the single-card terminal establishes 3 threads to load data, and the network quality of the WIFI network data channel of the wireless network card is better than that of the LTE network data channel of the SIM card, 2 threads are allocated to the WIFI network data channel, and 1 thread is allocated to the LTE network data channel.
In some embodiments, threads may also be evenly or randomly assigned to data channels.
And S13, establishing at least two transmission links by utilizing each thread through a corresponding data channel.
Specifically, the terminal establishes connection with the server through respective data channels by using each thread, and establishes a transmission link.
For example, assuming that 1 thread is allocated to the LTE network data channel of the first SIM card and 3 threads are allocated to the LTE network data channel of the second SIM card, the thread allocated to the LTE network data channel of the first SIM card establishes a connection with a server in which data to be loaded is located through the LTE network data channel of the first SIM card, sends a link establishment request, and establishes a transmission link; and 3 threads of the LTE network data channel distributed to the second SIM card are respectively connected with a server where the data to be loaded are located through the LTE network data channel of the second SIM card, a link establishment request is sent, and three transmission links are established.
And S14, downloading the data in blocks according to each transmission link.
Specifically, after receiving a link establishment request sent by each thread through each data channel, the server establishes a corresponding transmission link and transmits data blocks corresponding to each thread to the terminal along the transmission link, so that the terminal downloads data in blocks according to each transmission link, and the terminal collects and receives data returned by each thread and merges the data.
Further, in the data transmission process, when it is detected that one of the data channels has transmission abnormality (for example, data service loss occurs), the partial data which is not downloaded and is completely downloaded in the data block (or data packet) downloaded through the data channel is checked, a new thread is established in the other data channel, and the partial data which is not downloaded and is completely transmitted is started to be continuously transmitted at a breakpoint.
According to the data loading method based on the multiple data channels, the multiple threads are established, the threads are distributed to the two (or multiple) data channels, the multiple transmission links are established through the corresponding data channels by utilizing the threads, and the transmission links of the two (or multiple) data channels are used for downloading the same data in blocks, so that the data loading rate is greatly improved, and the internet surfing experience of a user is improved. And the decision right of the thread is distributed on the terminal side instead of the server side, so that the load of the server is reduced, and the flat design principle is met.
As shown in fig. 10, a fifth embodiment of the data loading method based on multiple data channels according to the present invention is proposed, and the method includes the following steps:
s21, establishing a first thread and a second thread for loading data according to the data loading instruction.
The mobile terminal of the embodiment is a single-card terminal, and simultaneously starts an LTE network of an SIM card and a WIFI network of a wireless network card, and correspondingly establishes an LTE network data channel and a WIFI network data channel.
After receiving a data loading instruction, the terminal acquires the size of data to be loaded, and establishes 1 first thread and 2 second threads for loading the data, namely 3 threads are established in total, so as to divide the data to be loaded into 3 data blocks, and each thread is responsible for loading one data block.
And S22, allocating the first thread to the LTE network data channel of the SIM card, and allocating the second thread to the WIFI network data channel of the wireless network card.
Specifically, the terminal dynamically detects the network quality of the two data channels, and when the network quality of the WIFI network data channel is better than that of the LTE network data channel, 1 first thread is allocated to the LTE network data channel of the SIM card, and 2 second threads are allocated to the WIFI network data channel of the wireless network card.
And S23, establishing a first transmission link through the LTE network data channel by using the first thread, and establishing a second transmission link through the WIFI network data channel by using the second thread.
Specifically, the terminal establishes connection with a server through an LTE network data channel by using 1 first thread, and establishes a first transmission link; and establishing connection with the server through the WIFI network data channel by utilizing 2 second threads, and establishing 2 second transmission links.
And S24, downloading the data in blocks according to the first transmission link and the second transmission link.
Specifically, the server transmits the data block corresponding to the first thread to the terminal along the first transmission link, and transmits the data block corresponding to the second thread to the terminal along the second transmission link, so that the terminal downloads data in blocks according to the first transmission link and the second transmission link, and the terminal collects and receives data returned by the first thread and the second thread and combines the data.
Further, in the data transmission process, when it is detected that one of the data channels has transmission abnormality (for example, data service loss occurs), the partial data which is not downloaded in the data block (or data packet) downloaded through the data channel is checked, a new thread is established in the other data channel, and the partial data which is not downloaded is started to be continuously transmitted at the breakpoint.
In the data loading method based on multiple data channels, multiple threads are allocated to the mobile network data channel and the WIFI network data channel, multiple transmission links are established through the two data channels by utilizing the threads, and the same data is downloaded in blocks by using the transmission links of the mobile network data channel and the WIFI network data channel, so that a single-card terminal can use two networks to surf the internet simultaneously to improve the data loading rate, and the internet experience is improved.
As shown in fig. 11 and fig. 12, a sixth embodiment of the data loading method based on multiple data channels according to the present invention is proposed, where the method includes the following steps:
s31, establishing a first thread and a second thread for loading data according to the data loading instruction.
As shown in fig. 12, the mobile terminal of this embodiment is a DSDA terminal, and includes a first SIM card (hereinafter, referred to as a first card) and a second SIM card (hereinafter, referred to as a second card), after a user starts a dual-channel downloading function of the terminal, the terminal simultaneously starts a mobile network of the first card and a mobile network of the second card, and establishes a first network connection and a second network connection respectively. The mobile network of the card one forms a card one data channel, the mobile network of the card two forms a card two data channel, and the mobile networks of the card one and the card two can be 2G, 3G or 4G (such as LTE) networks.
When a user clicks a download file, the terminal receives a data loading instruction, obtains the size of the download file, specifies the number of threads required by the download file, and establishes a first thread and a second thread with corresponding numbers.
And S32, allocating the first thread to the card-one data channel and allocating the second thread to the card-two data channel.
Specifically, as shown in fig. 12, the terminal performs dual-channel link quality measurement according to a link measurement algorithm, and performs dual-channel thread allocation through a measurement report, that is: and respectively detecting the network quality of the first card data channel and the second card data channel, and distributing more threads for the data channel with better network quality.
For example, assuming that the network quality of the card-one data channel is better than that of the card-two data channel, 3 first threads and 1 second thread, 3 first threads are allocated to the card-one data channel and 1 second thread is allocated to the card-two data channel.
S33, establishing a first transmission link over the card-to-data channel using the first thread, and establishing a second transmission link over the card-to-data channel using the second thread.
Specifically, as shown in fig. 12, the terminal establishes a first transmission link through the card-data channel by using the card-data channel thread (i.e., the first thread allocated to the card-data channel), and sends a link download request to the server to request to download the first data packet of the file; establishing a second transmission link through the card-two data channel by using the card-two data channel thread (i.e., the second thread assigned to the card-two data channel), and sending a link download request to the server for downloading a second data packet of the file.
And S34, downloading the data in blocks according to the first transmission link and the second transmission link.
Specifically, as shown in fig. 12, the terminal starts a thread according to a thread request and performs data transmission: the first data packet P1 is transmitted according to a first transmission link of the card-one data channel, and the second data packet P2 is transmitted according to a second transmission link of the card-two data channel. And finally, unpacking and combining the data packets after the dual-channel downloading is finished to obtain the data packet M of the whole downloaded file.
Further, in the data transmission process, the terminal monitors channels of the two data channel nodes of the card-in-card to process the exception in real time. If the loss of the card-two data service is monitored, the partial data P3 that is not downloaded and completed in the second data packet P2 is checked, a new thread is established in the card-one data channel to start the breakpoint transmission, and the partial data P3 that is not downloaded and completed is downloaded.
In this embodiment, the data loading method based on multiple data channels fully utilizes the inherent hardware advantages of the DSDA terminal, allocates multiple threads to the data channels of the two SIM cards, establishes multiple transmission links through the data channels of the two SIM cards by using each thread, and downloads the same data in blocks by using the transmission links of the data channels of the two SIM cards. Because the DSDA terminal is provided with the two sets of radio frequency antennas, the data channels of the two SIM cards are independent and do not interfere with each other when data transmission is carried out, so that the DSDA terminal can simultaneously use the mobile network of the two SIM cards to surf the internet, the data loading rate is increased, and the internet experience of a user is improved.
The invention further provides a data loading device based on multiple data channels, which is applied to the mobile terminal. Based on the above-mentioned mobile terminal hardware structure and communication system, an embodiment of the data loading apparatus based on multiple data channels is provided. As shown in fig. 13, the apparatus includes a thread establishing module, a thread allocating module, and a data downloading module, where:
a thread establishing module: the thread is used for establishing at least two threads for loading data according to the data loading instruction.
Optionally, the thread establishing module determines the number of threads to be established for downloading the data according to the size of the data to be loaded, the number of CPU cores of the terminal and the optimal thread support capability, and establishes a corresponding number of threads.
Optionally, the thread establishing module establishes a preset number of threads according to a preset number of threads.
A thread allocation module: for assigning each thread to at least two data channels.
Optionally, the thread allocation module dynamically detects the network quality of each data channel, and allocates more threads to data channels with better network quality.
Optionally, the thread allocation module allocates each thread to each data channel averagely or randomly.
In some embodiments, the data channels include a mobile network data channel of the SIM card and a WIFI network data channel of the wireless network card.
In some embodiments, the mobile terminal is a DSDA terminal, which includes a first SIM card and a second SIM card, and supports coexistence of networks of the two SIM cards, so that the data channel includes a first mobile network data channel of the first SIM card and a second mobile network data channel of the second SIM card, or further includes a WIFI network data channel of the wireless network card.
A data downloading module: the data transmission system is used for establishing at least two transmission links through corresponding data channels by utilizing each thread and downloading data in blocks according to each transmission link.
Specifically, the data downloading module establishes a transmission link through a corresponding data channel by using each thread, collects and receives data returned by each thread by using each transmission link, and finally merges and recombines each data to obtain complete data.
Further, in the data transmission process, when it is detected that one of the data channels has transmission abnormality (for example, data service loss occurs), the partial data which is not downloaded and is completely downloaded in the data block (or data packet) downloaded through the data channel is checked, a new thread is established in the other data channel, and the partial data which is not downloaded and is completely transmitted is started to be continuously transmitted at a breakpoint.
The embodiments of the data loading device and the data loading method based on multiple data channels provided by the embodiments described above belong to the same concept, and specific implementation processes thereof are described in the embodiments of the methods, and technical features in the embodiments of the methods are correspondingly applicable in the embodiments of the devices, and are not described herein again.
According to the data loading device based on the multiple data channels, the multiple threads are established, the threads are distributed to the two (or multiple) data channels, the multiple transmission links are established through the corresponding data channels by utilizing the threads, and the transmission links of the two (or multiple) data channels are used for downloading the same data in blocks, so that the data loading rate is greatly improved, and the internet surfing experience of a user is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A network switching apparatus, comprising:
the first detection module is used for detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
the first starting module is used for starting a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold value and lasts for a first preset duration;
the thread establishing module is used for establishing at least two threads for loading data according to the data loading instruction;
the thread distribution module is used for distributing the threads to at least two data channels;
and the connection speed limit module is used for correspondingly adjusting the download speed allowed by the mobile data network channel of the mobile terminal according to the wireless signal intensity of the wireless network.
2. The network switching apparatus of claim 1, wherein the network switching apparatus further comprises:
the second detection module is used for detecting the external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and the connection speed-limiting module is used for connecting the corresponding wireless network and closing or limiting the speed of the mobile data network channel of the mobile terminal when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and lasts for a second preset duration.
3. The network switching apparatus according to claim 1 or 2, wherein the network switching apparatus further comprises:
the traffic counting module is used for counting the traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module is used for closing or limiting the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold value, and prompting the current residual flow of the user.
4. The network switching apparatus of claim 1, wherein the network switching apparatus further comprises:
and the data downloading module is used for establishing at least two transmission links through corresponding data channels by utilizing each thread and downloading the data in blocks according to each transmission link.
5. The network switching apparatus of claim 4, wherein the thread setup module is to:
and determining the number of the established threads according to the size of the data to be loaded, the number of CPU cores of the terminal and the optimal thread support capability.
6. A network switching method, characterized in that the network switching method comprises:
detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
when the wireless signal strength is detected to be smaller than a first preset threshold value and lasts for a first preset duration, a mobile data network channel of the mobile terminal is opened;
and correspondingly adjusting the download speed allowed by the mobile data network channel of the mobile terminal according to the wireless signal intensity of the wireless network.
7. The network handover method of claim 6, wherein the step of opening the mobile data network tunnel of the mobile terminal is followed by further comprising:
detecting external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and the second preset duration lasts, connecting the corresponding wireless network, and closing or limiting the mobile data network channel of the mobile terminal.
8. The network handover method according to claim 6 or 7, wherein the step of opening the mobile data network tunnel of the mobile terminal further comprises:
counting the flow consumed by the mobile terminal through a mobile data network channel;
and when the flow consumed by statistics reaches a preset flow threshold value, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
9. The network handover method according to claim 6, wherein the method further comprises:
establishing at least two threads for loading data according to the data loading instruction;
assigning the threads to at least two data channels;
and establishing at least two transmission links through corresponding data channels by utilizing each thread, and downloading the data in blocks according to each transmission link.
10. The network switching method of claim 9, wherein the establishing at least two threads to load data according to a data load instruction comprises:
acquiring the size of data to be loaded according to the data loading instruction;
and determining the number of threads for loading the data according to the size of the data, the number of CPU cores of the terminal and the optimal thread support capability, and establishing threads with corresponding number.
CN201610061813.0A 2016-01-28 2016-01-28 Network switching device and method Active CN105611594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610061813.0A CN105611594B (en) 2016-01-28 2016-01-28 Network switching device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610061813.0A CN105611594B (en) 2016-01-28 2016-01-28 Network switching device and method

Publications (2)

Publication Number Publication Date
CN105611594A CN105611594A (en) 2016-05-25
CN105611594B true CN105611594B (en) 2020-12-29

Family

ID=55991056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610061813.0A Active CN105611594B (en) 2016-01-28 2016-01-28 Network switching device and method

Country Status (1)

Country Link
CN (1) CN105611594B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592515B (en) * 2016-01-28 2020-01-10 广东电网有限责任公司中山供电局 Network switching device and method
CN105722133A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Network switching device and method
CN105916181A (en) * 2016-06-28 2016-08-31 宇龙计算机通信科技(深圳)有限公司 Network switching method and device
CN106899649B (en) * 2016-06-30 2020-09-08 阿里巴巴集团控股有限公司 Task request processing method and device and user equipment
CN108076160B (en) * 2016-11-08 2020-09-01 展讯通信(上海)有限公司 User terminal and service continuing method and device thereof
CN106790743A (en) * 2016-11-28 2017-05-31 北京小米移动软件有限公司 Information transferring method, device and mobile terminal
WO2018132938A1 (en) * 2017-01-17 2018-07-26 深圳市大疆创新科技有限公司 Unmanned aerial vehicle, remote controller and control method therefor
CN107317598A (en) * 2017-08-02 2017-11-03 四川省蓝扬科技有限公司 A kind of electrical communication system and its means of communication
CN107360601A (en) * 2017-08-16 2017-11-17 维沃移动通信有限公司 A kind of method for switching network, mobile terminal and computer-readable recording medium
CN107529204A (en) * 2017-08-21 2017-12-29 奇酷互联网络科技(深圳)有限公司 Data sharing method, device and storage medium
CN107564156B (en) * 2017-09-04 2021-06-22 深圳市盛路物联通讯技术有限公司 Door lock system control method and device based on antenna receiving sensitivity
CN109495939A (en) * 2019-01-25 2019-03-19 努比亚技术有限公司 Method for switching network, device, mobile terminal and computer readable storage medium
CN110572814A (en) * 2019-08-14 2019-12-13 深圳市优克联新技术有限公司 card selection control method and device for multi-card device, electronic device and storage medium
CN111343671B (en) * 2020-02-20 2024-04-09 北京小米移动软件有限公司 Information processing method, device and storage medium
CN111885659B (en) * 2020-07-24 2022-06-07 Oppo广东移动通信有限公司 Switching method, switching device, electronic device, and computer-readable storage medium
CN114500367B (en) * 2021-12-21 2023-10-24 联想(北京)有限公司 Path selection method and electronic equipment
CN114363981B (en) * 2022-03-21 2022-07-08 龙旗电子(惠州)有限公司 Network connection state switching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103906056A (en) * 2012-12-26 2014-07-02 中国电信股份有限公司 Unified certification method under hybrid networking and system thereof
CN104202782A (en) * 2014-09-23 2014-12-10 酷派软件技术(深圳)有限公司 Network switching method, network switching device and terminal
EP2900029A1 (en) * 2014-01-28 2015-07-29 BlackBerry Limited Joint wlan power and rate control to mitigate co-located LTE TDD interference
CN105101470A (en) * 2015-08-03 2015-11-25 努比亚技术有限公司 Conversation system and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6950670B2 (en) * 2001-10-31 2005-09-27 At&T Corp. Wireless network having joint power and data rate adaptation
CN103501507B (en) * 2013-09-05 2017-08-15 小米科技有限责任公司 A kind of method and terminal of automatic switchover wireless signal
CN105120509A (en) * 2015-06-26 2015-12-02 努比亚技术有限公司 Network access method and device
CN105228133A (en) * 2015-07-10 2016-01-06 努比亚技术有限公司 Multi-channel data method for down loading and system
CN105101173A (en) * 2015-07-20 2015-11-25 努比亚技术有限公司 Multi-data-channel-based data loading apparatus and method
CN105188101B (en) * 2015-07-21 2018-12-21 努比亚技术有限公司 network switching device and method
CN105188098B (en) * 2015-09-30 2020-09-01 努比亚技术有限公司 Network switching device and network switching method of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103906056A (en) * 2012-12-26 2014-07-02 中国电信股份有限公司 Unified certification method under hybrid networking and system thereof
EP2900029A1 (en) * 2014-01-28 2015-07-29 BlackBerry Limited Joint wlan power and rate control to mitigate co-located LTE TDD interference
CN104202782A (en) * 2014-09-23 2014-12-10 酷派软件技术(深圳)有限公司 Network switching method, network switching device and terminal
CN105101470A (en) * 2015-08-03 2015-11-25 努比亚技术有限公司 Conversation system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Characterizing performance of load-aware network selection in multi-radio (WiFi/LTE)heterogeneous networks;Mikhail Gerasimenko; Nageen Himayat,etc.;《2013 IEEE Globecom Workshops (GC Wkshps)》;20140605;397-402 *
多合路系统在室内环境下的设计与应用;谢飞;《中国优秀硕士学位论文全文数据库信息科技辑(月刊)》;20130215;全文 *

Also Published As

Publication number Publication date
CN105611594A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN105611594B (en) Network switching device and method
US10291771B2 (en) Method for managing electric quantity of battery, mobile terminal and computer storage medium
CN105681567B (en) Mobile terminal and communication method based on dual channels
CN105578112B (en) Video call method and device
CN105188098B (en) Network switching device and network switching method of mobile terminal
US10206075B2 (en) Method, apparatus, and system for processing incoming calls
CN107066320B (en) Android process freezing and unfreezing device and method
CN106304037B (en) Virtual SIM card management method and device
CN105740008B (en) Device and method for forbidding chained start of application program
CN106097952B (en) Terminal display screen resolution adjusting method and terminal
CN105813148A (en) Network switching apparatus and method
CN106803860B (en) Storage processing method and device for terminal application
CN106686687B (en) Access control method and device
CN105657733B (en) Network stability control device and method
CN107018559B (en) Terminal and method for making component processor enter dormant state
CN107070981B (en) Multi-terminal equipment cooperative control system and method
CN106055407B (en) Process resource adjusting device and method
CN105722246B (en) Network speed superposition device and method
CN106713490B (en) Process freezing and thawing device and method based on network application
CN106412878B (en) Activation device and method for subscriber identity module card
CN106686672B (en) Network connection method and terminal
CN106790126B (en) Account authorization method and device of application program and terminal
CN106791567B (en) Switching method and terminal
CN105094733B (en) Split screen display method and device
CN105722133A (en) Network switching device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant