CN107466081B - Wireless switching method and terminal - Google Patents

Wireless switching method and terminal Download PDF

Info

Publication number
CN107466081B
CN107466081B CN201710832915.2A CN201710832915A CN107466081B CN 107466081 B CN107466081 B CN 107466081B CN 201710832915 A CN201710832915 A CN 201710832915A CN 107466081 B CN107466081 B CN 107466081B
Authority
CN
China
Prior art keywords
wireless network
throughput
radio frequency
frequency module
wireless
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
CN201710832915.2A
Other languages
Chinese (zh)
Other versions
CN107466081A (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.)
Nantong Yuanchang Electronic Technology Co.,Ltd.
Original Assignee
Taizhou Yuanheda Electronic 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 Taizhou Yuanheda Electronic Technology Co ltd filed Critical Taizhou Yuanheda Electronic Technology Co ltd
Priority to CN201710832915.2A priority Critical patent/CN107466081B/en
Publication of CN107466081A publication Critical patent/CN107466081A/en
Application granted granted Critical
Publication of CN107466081B publication Critical patent/CN107466081B/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/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0094Definition of hand-off measurement parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/22Performing reselection for specific purposes for handling the traffic

Landscapes

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

Abstract

The embodiment of the invention discloses a wireless switching method and a terminal, wherein the wireless switching method comprises the following steps: when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting first throughput of the first wireless network and second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, the wireless network is accessed to a second wireless network through a second radio frequency module. The wireless switching method provided by the embodiment of the invention can effectively overcome the defect that the service using the wireless network in the terminal is interrupted when the wireless network is switched.

Description

Wireless switching method and terminal
Technical Field
The present invention relates to wireless communication technologies, and in particular, to a wireless handover method and a terminal.
Background
With the rapid development of mobile communication technology, a mobile terminal can not only connect to a network by a General Packet Radio Service (GPRS) method, but also connect to a network by a Wireless hotspot access method through a Wireless local area network (Wi-Fi) intelligent terminal. Nowadays, specific places with a plurality of fixed wireless hotspots are increasingly common, such as office places, shopping malls and the like, and after a terminal is located in the places with a plurality of Wi-Fi hotspots and accesses one of the Wi-Fi hotspots, the terminal can be switched to connect to other Wi-Fi hotspots in the place at any time due to the change of the position of the terminal or the change of parameters of the accessed hotspot. In the prior art, when a terminal performs Wi-Fi hotspot switching, the terminal needs to disconnect a currently accessed hotspot, then determine an optimal hotspot from a plurality of Wi-Fi hotspots, and establish a connection with the optimal hotspot.
However, when the terminal performs the wireless network handover according to the above procedure, the process of disconnecting the connection with the accessed wireless network and re-establishing the connection with the next best wireless network may cause a defect that the service in the terminal using the wireless network is interrupted, which affects the normal operation of the terminal.
Disclosure of Invention
In view of this, embodiments of the present invention provide a wireless handover method and a terminal, which can effectively overcome the defect that a service in a terminal that is using a wireless network is interrupted during a wireless network handover process, and ensure that the terminal operates normally.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a wireless switching method, which comprises the following steps:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; wherein the first wireless network is one of two connected wireless networks which is in use; the second wireless network is an unused one of the two wireless networks;
when the first throughput is smaller than the second throughput, detecting a first real-time throughput of the first wireless network and a second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first preset time interval;
judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput;
and when the preset wireless network switching condition is met, accessing the second wireless network through the second radio frequency module.
In the foregoing solution, before the detecting, by a first radio frequency module, a first throughput of a first wireless network connected to the first radio frequency module and a second throughput of a second wireless network connected to a second radio frequency module according to a first preset time interval, the method further includes:
acquiring a plurality of standby wireless networks;
detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput;
sequencing the plurality of standby wireless networks according to the sequence of throughput from large to small to obtain a sequenced standby wireless network list;
determining two standby wireless networks with the maximum throughput in the standby wireless network list as the first wireless network and the second wireless network respectively; and the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network.
In the foregoing solution, after the determining the two standby wireless networks with the largest throughput in the standby wireless network list as the first wireless network and the second wireless network, respectively, the method further includes:
and connecting the first radio frequency module to the first wireless network, and connecting the second radio frequency module to the second wireless network.
In the foregoing solution, the determining whether a preset wireless network handover condition is met according to the first real-time throughput and the second real-time throughput includes:
carrying out proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput;
when the ratio result is smaller than a preset ratio threshold value, judging that the preset wireless network switching condition is met;
and when the ratio result is greater than or equal to the preset ratio threshold, judging that the preset wireless network switching condition is not met.
In the foregoing solution, after the wireless network is accessed to the second wireless network through the second radio frequency module when the preset wireless network switching condition is met, the method further includes:
and disconnecting the first radio frequency module from the first wireless network.
In the foregoing solution, after the disconnecting the first radio frequency module from the first wireless network, the method further includes:
reacquiring a plurality of standby wireless networks;
detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput;
updating the first wireless network according to a standby wireless network corresponding to the maximum throughput in the plurality of throughputs;
connecting the first radio frequency module to the first wireless network.
An embodiment of the present invention provides a terminal, where the terminal includes: a processor, a memory, and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory; the processor is configured to execute the wireless handover program stored in the memory to implement the steps of:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; wherein the first wireless network is one of two connected wireless networks which is in use; the second wireless network is an unused one of the two wireless networks; when the first throughput is smaller than the second throughput, detecting a first real-time throughput of the first wireless network and a second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, accessing the second wireless network through the second radio frequency module.
In the above scheme, the processor is further configured to, when the first radio frequency module is accessed to a first wireless network connected to the first radio frequency module, detect a first throughput of the first wireless network and a second throughput of a second wireless network connected to the second radio frequency module at a first preset time interval, and acquire a plurality of standby wireless networks; detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput; sequencing the plurality of standby wireless networks according to the sequence of throughput from large to small to obtain a sequenced standby wireless network list; determining two standby wireless networks with the maximum throughput in the standby wireless network list as the first wireless network and the second wireless network respectively; wherein the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network; and connecting the first radio frequency module to the first wireless network, the second radio frequency module being connected to the second wireless network; when the preset wireless network switching condition is met, after the second wireless network is accessed through the second radio frequency module, the connection between the first radio frequency module and the first wireless network is disconnected; after the first radio frequency module is disconnected from the first wireless network, a plurality of standby wireless networks are obtained again; detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput; updating the first wireless network according to the standby wireless network corresponding to the maximum throughput in the plurality of throughputs; and connecting the first radio frequency module to the first wireless network.
In the foregoing scheme, the processor is specifically configured to perform proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput; when the ratio result is smaller than a preset ratio threshold value, judging that the preset wireless network switching condition is met; and when the ratio result is greater than or equal to the preset ratio threshold, judging that the preset wireless network switching condition is not met.
An embodiment of the present invention provides a computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; wherein the first wireless network is one of two connected wireless networks which is in use; the second wireless network is an unused one of the two wireless networks;
when the first throughput is smaller than the second throughput, detecting a first real-time throughput of the first wireless network and a second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval;
judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput;
and when the preset wireless network switching condition is met, accessing the second wireless network through the second radio frequency module.
Therefore, in the technical solution of the embodiment of the present invention, when accessing to a first wireless network connected to a first radio frequency module through the first radio frequency module, a first throughput of the first wireless network and a second throughput of a second wireless network connected to a second radio frequency module are detected according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is one of the two wireless networks which is not used; when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, the wireless network is accessed to a second wireless network through a second radio frequency module. Therefore, according to the wireless switching method and the terminal provided by the embodiment of the invention, in the terminal configured with two radio frequency modules, the throughput of two connected wireless networks can be detected in real time, and the wireless networks are switched according to the throughput, so that the defect that the service using the wireless networks in the terminal is interrupted can be effectively overcome in the process of switching the wireless networks, and the normal work of the terminal is ensured.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
fig. 3 is a first schematic flow chart illustrating an implementation of a wireless handover method according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a second implementation flow of the wireless handover method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a sorted list of standby wireless networks according to an embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating a third implementation of the wireless handover method according to the embodiment of the present invention;
fig. 7 is a schematic flow chart illustrating a fourth implementation process of the wireless handover method according to the embodiment of the present invention;
fig. 8 is a schematic flow chart illustrating an implementation of a wireless handover method according to an embodiment of the present invention;
fig. 9 is a sixth schematic flow chart illustrating an implementation of a wireless handover method according to an embodiment of the present invention;
fig. 10 is a first schematic structural diagram of a terminal according to an embodiment of the present invention.
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.
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 itself. Thus, "module", "component" or "unit" may be used mixedly.
The 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 tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which 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 Radio Frequency (RF) unit 101, a WIreless-Fidelity (Wi-Fi) module 102, an audio output unit 103, an audio/video (a/V) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access 2000(Code Division Multiple Access 2000, CDMA2000), Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), Frequency Division duplex Long Term Evolution (FDD-LTE), and Time Division duplex Long Term Evolution (TDD-LTE), etc.
Wi-Fi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through a Wi-Fi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the Wi-Fi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi-Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 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 unit 103 may also 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 unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the Wi-Fi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 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 interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a User Equipment (UE) 201, an Evolved UMTS Terrestrial radio access Network (E-UTRAN) 202, an Evolved Packet Core (EPC) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include a Mobility Management Entity (MME) 2031, a Home Subscriber Server (HSS) 2032, other MMEs 2033, a Serving GateWay (SGW) 2034, a packet data network GateWay (PDN GateWay, PGW)2035, and a Policy and Charging Rules Function (PCRF) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IP Multimedia Subsystem (IMS), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
Fig. 3 is a first schematic flow chart illustrating an implementation of a wireless handover method according to an embodiment of the present invention, as shown in fig. 3, in an embodiment of the present invention, a method for a terminal to perform wireless handover may include the following steps:
step 101, when accessing a first wireless network connected with a first radio frequency module through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with a second radio frequency module according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is an unused one of the two wireless networks.
In an embodiment of the present invention, when the terminal accesses to the first wireless network corresponding to the first radio frequency module through the first radio frequency module, the terminal may detect a throughput of the first wireless network, that is, a first throughput, according to a preset first preset time interval, and meanwhile, the terminal may also detect a throughput of a second wireless network connected to the second radio frequency module, that is, a second throughput.
It should be noted that, in the embodiment of the present invention, the terminal may be a terminal configured with two radio frequency modules, and the terminal may be a variety of intelligent terminals with a wireless function, for example, the terminal may be a mobile phone, a smart camera, a tablet computer, and the like.
Further, in an embodiment of the present invention, the terminal may establish a connection with the first wireless network and the second wireless network through the two wireless radio frequency modules, that is, the first radio frequency module and the second radio frequency module. Specifically, in the embodiment of the present invention, the first wireless network is one of two connected wireless networks that is in use; the second wireless network is an unused one of the two wireless networks.
It should be noted that, in an embodiment of the present invention, before the terminal accesses the first wireless network through the first radio frequency module, the first radio frequency module already establishes a connection with the first wireless network, and meanwhile, the second radio frequency module already establishes a connection with the second wireless network.
Further, in the embodiment of the present invention, the terminal may preset the first preset time interval, for example, the terminal may preset the time interval to be 5min, and then the terminal may detect the first throughput and the second throughput every 5min after accessing to the first wireless network, so as to avoid a problem of excessive power consumption of the terminal caused by performing real-time detection on the first wireless network and the second wireless network.
It should be noted that, in the embodiment of the present invention, since the throughput for characterizing the amount of data successfully transmitted per unit time is more representative of the actual data transmission capability of the wireless network, the embodiment of the present invention tends to use the throughput of the wireless network to represent the data transmission performance of a wireless network.
And 102, when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval.
In an embodiment of the present invention, when the terminal accesses to the first wireless network corresponding to the first radio frequency module through the first radio frequency module, after detecting a first throughput of the first wireless network and a second throughput of the second wireless network corresponding to the second radio frequency module according to a first preset time interval, if the first throughput is smaller than the second throughput, the terminal may detect a first real-time throughput of the first wireless network and a second real-time throughput of the second wireless network according to a second preset time interval.
It should be noted that, in the embodiment of the present invention, the first preset time interval is greater than the second preset time interval. For example, the terminal may set the time interval to 5s in advance, and after determining that the first throughput is smaller than the second throughput, the terminal may detect the first real-time throughput and the second real-time throughput every 5 s.
Further, in an embodiment of the present invention, after the terminal detects the first throughput and the second throughput at the first preset time interval, the terminal may compare the first throughput with the second throughput, and if the first throughput is smaller than the second throughput, the terminal may start to detect the throughputs of the first wireless network and the second wireless network in real time, so as to obtain the first real-time throughput and the second real-time throughput.
Further, in an embodiment of the present invention, after the terminal detects the first throughput and the second throughput, if the first throughput is less than the second throughput, that is, the actual transmission capability of the first wireless network is lower than the actual transmission capability of the second wireless network, the terminal does not directly access the handover to the second wireless network, but detects the real-time throughputs of the first wireless network and the second wireless network, and further determines whether the handover access to the second wireless network is needed.
And 103, judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput.
In an embodiment of the present invention, if the first throughput is smaller than the second throughput, the terminal may determine whether a predetermined wireless network handover condition is satisfied based on the first real-time throughput and the second real-time throughput after detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network at a second predetermined time interval.
Further, in an embodiment of the present invention, after detecting the real-time throughputs of the first wireless network and the second wireless network and obtaining the first real-time throughput and the second real-time throughput, the terminal may determine whether to switch to the second wireless network according to the first real-time throughput and the second real-time throughput, instead of directly switching to the second wireless network after determining that the first throughput is less than the second throughput, so as to overcome a defect of power consumption increase caused by frequent switching to the wireless network.
And 104, when the preset wireless network switching condition is met, accessing to a second wireless network through a second radio frequency module.
In an embodiment of the present invention, after the terminal determines whether a preset wireless network switching condition is satisfied according to the first real-time throughput and the second real-time throughput, if it is determined that the preset wireless network switching condition is satisfied, the terminal may perform a wireless switching process, that is, access to the second wireless network through the second radio frequency module.
Further, in an embodiment of the present invention, if the terminal determines that the preset wireless network switching condition is satisfied according to the first real-time throughput and the second real-time throughput, the terminal may directly switch the first wireless network to the second wireless network.
It should be noted that, in the embodiment of the present invention, if the terminal determines, according to the first real-time throughput and the second real-time throughput, that the preset wireless network handover condition is not satisfied, the terminal may continue to use the first wireless network without performing the wireless handover process.
According to the wireless switching method provided by the embodiment of the invention, when a first wireless network connected with a first radio frequency module is accessed through the first radio frequency module, the first throughput of the first wireless network and the second throughput of a second wireless network connected with a second radio frequency module are detected according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is one of the two wireless networks which is not used; when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, the wireless network is accessed to a second wireless network through a second radio frequency module. Therefore, in the wireless switching method provided by the embodiment of the invention, in the terminal configured with two radio frequency modules, the throughput of two connected wireless networks can be detected in real time, and the wireless networks are switched according to the throughput, so that the defect that the service using the wireless networks in the terminal is interrupted in the process of switching the wireless networks can be effectively overcome, and the normal work of the terminal is ensured.
Example two
Based on the first embodiment, fig. 4 is a schematic flow chart illustrating an implementation process of a wireless handover method according to an embodiment of the present invention, as shown in fig. 4, in an embodiment of the present invention, when accessing a first wireless network connected to a first radio frequency module through a first radio frequency module, before detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected to a second radio frequency module according to a first preset time interval, that is, before step 101, the method for performing wireless handover by a terminal may further include the following steps:
step 105, acquiring a plurality of standby wireless networks.
In an embodiment of the present invention, before the terminal accesses the first wireless network corresponding to the first radio frequency module through the first radio frequency module, the terminal may first acquire a plurality of standby wireless networks.
In the embodiment of the present invention, when the terminal is located in a specific location having a plurality of fixed wireless networks, the terminal may first acquire a plurality of standby wireless networks in the location. For example, when the terminal is in a mall, 4 fixed wireless networks, namely, a mall wireless network 1, a mall wireless network 2, a mall wireless network 3 and a mall wireless network 4 in the mall can be obtained.
Step 106, detecting a plurality of throughputs corresponding to a plurality of standby wireless networks; where one standby wireless network corresponds to one throughput.
In an embodiment of the present invention, after acquiring the plurality of standby wireless networks, the terminal may first detect a plurality of throughputs corresponding to the plurality of standby wireless networks, respectively. Specifically, one standby wireless network corresponds to one throughput.
It should be noted that, in the embodiment of the present invention, after the terminal acquires the multiple standby wireless networks, it needs to detect the throughput of each wireless network first to determine the actual data transmission capability of each wireless network, so as to further select a standby wireless network that can be accessed from the multiple standby wireless networks.
And 107, sequencing the plurality of standby wireless networks according to the sequence of the throughput from large to small to obtain a sequenced standby wireless network list.
In an embodiment of the present invention, after detecting the throughputs corresponding to the standby wireless networks, the terminal may sort the standby wireless networks in order of throughput from high to low, so as to obtain a sorted standby wireless network list.
Further, in an embodiment of the present invention, after detecting a plurality of throughputs of the plurality of standby wireless networks, the terminal compares the plurality of throughputs to determine actual data transmission capabilities of the plurality of wireless networks. For example, if the throughput 2 is greater than the throughput 1, it can be shown that the actual data transmission capability of the mall wireless network 2 is stronger than the actual data transmission capability of the mall wireless network 1.
Specifically, in the embodiment of the present invention, the terminal may sort the plurality of standby wireless networks in order from high throughput to low throughput to obtain a sorted standby wireless network list. Fig. 5 is a schematic diagram of a sorted standby wireless network list in an embodiment of the present invention, as shown in fig. 5, in the embodiment of the present invention, the terminal obtains throughput 1 of the mall wireless network 1, throughput 2 of the mall wireless network 2, throughput 3 of the mall wireless network 3, and throughput 4 of the mall wireless network 4, where the throughputs are throughput 3, throughput 2, throughput 1, and throughput 4 in the descending order, and then in the sorted standby wireless network list, the order of the standby wireless network is the mall wireless network 3, the mall wireless network 2, the mall wireless network 1, and the mall wireless network 4 in sequence.
Step 108, respectively determining two standby wireless networks with the maximum throughput in the standby wireless network list as a first wireless network and a second wireless network; and the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network.
In an embodiment of the present invention, after the terminal sorts the plurality of standby wireless networks in order of throughput from high to low to obtain a sorted standby wireless network list, two standby wireless networks with the highest throughput in the standby wireless network list may be respectively determined as the first wireless network and the second wireless network; specifically, in the embodiment of the present invention, the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network.
In an embodiment of the present invention, after the terminal sorts the plurality of standby wireless networks according to throughput and obtains the list of standby wireless networks, the terminal may determine a standby wireless network with a relatively large throughput among the plurality of standby wireless networks as the first wireless network and determine a standby wireless network with a second lowest throughput among the plurality of standby wireless networks as the second wireless network. That is, the terminal may determine the first standby wireless network and the second standby wireless network in the standby wireless network list as the first wireless network and the second wireless network, respectively.
Further, in an embodiment of the present invention, based on the above fig. 5, the terminal may determine the mall wireless network 3 as the first wireless network and determine the mall wireless network 2 as the second wireless network.
Fig. 6 is a third schematic flow chart of an implementation of a wireless handover method according to an embodiment of the present invention, as shown in fig. 6, in an embodiment of the present invention, after the terminal determines two standby wireless networks with the maximum throughput in the standby wireless network list as the first wireless network and the second wireless network, respectively, that is, after step 108, the method for the terminal to perform wireless handover may further include the following steps:
step 109, connecting the first radio frequency module to a first wireless network, and connecting the second radio frequency module to a second wireless network.
In an embodiment of the present invention, after the terminal determines the two standby wireless networks with the highest throughput in the standby wireless network list as the first wireless network and the second wireless network respectively, that is, after the two standby wireless networks with the highest actual data transmission capability in the plurality of standby wireless networks are determined as the first wireless network and the second wireless network, the terminal may connect the first radio frequency module to the first wireless network and connect the second radio frequency module to the second wireless network.
According to the wireless switching method provided by the embodiment of the invention, when a first wireless network connected with a first radio frequency module is accessed through the first radio frequency module, the first throughput of the first wireless network and the second throughput of a second wireless network connected with a second radio frequency module are detected according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is one of the two wireless networks which is not used; when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, the wireless network is accessed to a second wireless network through a second radio frequency module. Therefore, in the wireless switching method provided by the embodiment of the invention, in the terminal configured with two radio frequency modules, the throughput of two connected wireless networks can be detected in real time, and the wireless networks are switched according to the throughput, so that the defect that the service using the wireless networks in the terminal is interrupted in the process of switching the wireless networks can be effectively overcome, and the normal work of the terminal is ensured.
EXAMPLE III
Based on the first embodiment, fig. 7 is a schematic flow chart of a fourth implementation process of the wireless handover method according to the first embodiment of the present invention, as shown in fig. 7, in the embodiment of the present invention, the method for the terminal to determine whether the preset wireless network handover condition is met according to the first real-time throughput and the second real-time throughput may include the following steps:
step 103a, performing proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput.
In an embodiment of the present invention, if the first throughput is smaller than the second throughput, after detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network, the terminal may perform a proportional operation on the first real-time throughput and the second real-time throughput, and then obtain a ratio result of the first real-time throughput and the second real-time throughput.
And 103b, judging that the preset wireless network switching condition is met when the ratio result is smaller than the preset ratio threshold.
In an embodiment of the present invention, after the terminal performs a proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput, if the ratio result is smaller than a preset ratio threshold, the terminal may determine that the preset wireless network handover condition is satisfied.
Further, in the embodiment of the present invention, the terminal may preset a preset ratio threshold, where the preset ratio threshold is used to determine whether to perform wireless network handover. Specifically, the terminal may set the preset ratio threshold to 0.7, and when the ratio calculated by the terminal is less than 0.7, the terminal may determine that the preset wireless network handover condition is satisfied.
And 103c, when the ratio result is greater than or equal to the preset ratio threshold, judging that the preset wireless network switching condition is not met.
In an embodiment of the present invention, after the terminal performs a proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput, if the ratio result is greater than or equal to a preset ratio threshold, the terminal may determine that the preset wireless network switching condition is not satisfied.
Further, in an embodiment of the present invention, after detecting the real-time throughputs of the first wireless network and the second wireless network and obtaining the first real-time throughput and the second real-time throughput, the terminal may calculate a ratio result of the first real-time throughput and the second real-time throughput, and then further determine whether to switch to the second wireless network according to the ratio result and the preset ratio threshold, instead of directly switching to access the second wireless network after determining that the first throughput is smaller than the second throughput, so that a defect of power consumption increase caused by frequently switching to access the wireless network may be overcome.
As can be seen from the above description, in the steps 103a to 103c, the terminal performs proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput; when the ratio result is smaller than a preset ratio threshold value, judging that a preset wireless network switching condition is met; when the ratio result is greater than or equal to a preset ratio threshold value, judging that the preset wireless network switching condition is not met; in a terminal configured with two radio frequency modules, the throughput of two connected wireless networks can be detected in real time, and the wireless networks are switched according to the throughput, so that the defect that the service using the wireless networks in the terminal is interrupted can be effectively overcome in the process of switching the wireless networks, and the normal work of the terminal is ensured; moreover, the method is simple and convenient to realize, convenient to popularize and wide in application range.
Example four
Based on the second embodiment, fig. 8 is a schematic flow chart of a fifth implementation process of the wireless handover method according to the second embodiment of the present invention, as shown in fig. 8, in the embodiment of the present invention, when a preset wireless network handover condition is satisfied, after the terminal accesses the second wireless network through the second radio frequency module, that is, after step 104, the method for performing wireless handover by the terminal may further include the following steps:
step 1010, disconnecting the first radio frequency module from the first wireless network.
In an embodiment of the present invention, after the terminal performs the wireless handover processing and accesses to the second wireless network through the second rf module, the terminal may disconnect the connection between the first rf module and the first wireless network.
It should be noted that, in the embodiment of the present invention, after the terminal switches to the second wireless network, the connection between the first radio frequency module and the first wireless network may be disconnected, so as to select a backup wireless network with a stronger actual data transmission capability for connection.
Fig. 9 is a sixth schematic flow chart of an implementation process of the wireless handover method according to an embodiment of the present invention, as shown in fig. 9, in an embodiment of the present invention, after the terminal disconnects the first radio frequency module from the first wireless network, that is, after step 1010, the method for the terminal to perform the wireless handover may further include the following steps:
step 1011, reacquire a plurality of alternate wireless networks.
In an embodiment of the present invention, after the terminal disconnects the first radio frequency module from the first wireless network, the terminal may reacquire a plurality of standby wireless networks.
It should be noted that, in the embodiment of the present invention, the terminal may continue to acquire, in the specific location having the plurality of fixed wireless networks, the plurality of standby wireless networks in the location.
Specifically, in the embodiment of the present invention, the plurality of standby wireless networks that the terminal is reacquiring may be a plurality of standby wireless networks that do not include the second wireless network. For example, after the terminal acquires 4 fixed wireless networks, namely, a mall wireless network 1, a mall wireless network 2, a mall wireless network 3 and a mall wireless network 4 in the mall, the first radio frequency module is connected to the mall wireless network 3, and is connected to the mall wireless network 2 through the second radio frequency module, when the terminal is switched to be connected to the mall wireless network 2 from the mall wireless network 3, the spare wireless network acquired again by the terminal does not include the mall wireless network 2.
Step 1012, detecting a plurality of throughputs corresponding to a plurality of standby wireless networks; where one standby wireless network corresponds to one throughput.
In an embodiment of the present invention, after the terminal reacquires the plurality of standby wireless networks, the terminal may detect a plurality of throughputs corresponding to the plurality of standby wireless networks. Specifically, one standby wireless network corresponds to one throughput.
It should be noted that, in the embodiment of the present invention, after the terminal acquires the plurality of standby wireless networks, it is necessary to detect the throughput of each wireless network first to determine the actual data transmission capability of each wireless network, so as to further select a standby wireless network that can be connected to the first social evaluation module from the plurality of standby wireless networks.
Step 1013 is to update the first wireless network according to the standby wireless network corresponding to the maximum throughput among the plurality of throughputs.
In an embodiment of the present invention, after detecting a plurality of throughputs corresponding to a plurality of standby wireless networks, the terminal may update the first wireless network according to a standby wireless network corresponding to a maximum throughput among the plurality of throughputs.
Further, in an embodiment of the present invention, the terminal may determine, from the plurality of standby wireless networks, one standby wireless network with the highest throughput, and determine the standby wireless network with the highest throughput as a new first wireless network. For example, after the terminal is disconnected from the first wireless network, which is the mall wireless network 3, the throughput 1 of the mall wireless network 1, the throughput 3 of the mall wireless network 3, and the throughput 4 of the mall wireless network 4 are obtained, and the throughputs are throughput 1, throughput 3, and throughput 4 in the descending order, so that the terminal can update the mall wireless network 3 to the mall wireless network 1.
Step 1014, connect the first radio frequency module to the first wireless network.
In an embodiment of the present invention, after the terminal updates the first wireless network according to the standby wireless network corresponding to the maximum throughput of the plurality of throughputs, the terminal may connect the first radio frequency module to the first wireless network.
It should be noted that, in the embodiment of the present invention, after the terminal completes the wireless network handover, that is, after the terminal switches from accessing the first wireless network through the first radio frequency module to accessing the second wireless network through the second radio frequency module, the throughput of the multiple standby wireless networks may be detected again, so as to select one standby wireless network with the largest throughput and reconnect to the first radio frequency module.
Further, after the terminal connects the first radio frequency module to the updated first wireless network, the terminal may continue to detect the throughput of the first wireless network and the throughput of the second wireless network according to the first preset time interval, so as to perform wireless network handover on the terminal when the preset wireless network handover condition is met.
According to the wireless switching method provided by the embodiment of the invention, when a first wireless network connected with a first radio frequency module is accessed through the first radio frequency module, the first throughput of the first wireless network and the second throughput of a second wireless network connected with a second radio frequency module are detected according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is one of the two wireless networks which is not used; when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, the wireless network is accessed to a second wireless network through a second radio frequency module. Therefore, in the wireless switching method provided by the embodiment of the invention, in the terminal configured with two radio frequency modules, the throughput of two connected wireless networks can be detected in real time, and the wireless networks are switched according to the throughput, so that the defect that the service using the wireless networks in the terminal is interrupted in the process of switching the wireless networks can be effectively overcome, and the normal work of the terminal is ensured.
EXAMPLE five
Fig. 10 is a schematic diagram of a composition structure of a terminal according to an embodiment of the present invention, and in practical applications, based on the same inventive concept of the first to fourth embodiments, as shown in fig. 10, a terminal 3 according to an embodiment of the present invention includes: a processor 31, a memory 32, and a communication bus 33. It should be noted that, in the embodiment of the present invention, the processor 31 and the memory 32 in fig. 10 correspond to the processor 110 and the memory 109 in the above-mentioned first drawing, respectively. In the process of the Specific embodiment, the Processor 31 may be 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 Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic devices used to implement the processor functions described above may be other devices, and embodiments of the present invention are not limited in particular.
In the embodiment of the present invention, the communication bus 33 is used for realizing connection communication between the processor 31 and the memory 32; the processor 31 is configured to execute the wireless handover program stored in the memory 32, so as to implement the following steps:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting first throughput of the first wireless network and second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is one of the two wireless networks which is not used; when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, accessing the second wireless network through the second radio frequency module.
In an embodiment of the present invention, the processor 31 is further configured to, when accessing to a first wireless network connected to a first radio frequency module through the first radio frequency module, detect a first throughput of the first wireless network and a second throughput of a second wireless network connected to a second radio frequency module according to a first preset time interval, and acquire a plurality of standby wireless networks; detecting a plurality of throughputs corresponding to a plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput; sequencing the plurality of standby wireless networks according to the sequence of throughput from large to small to obtain a sequenced standby wireless network list; determining two standby wireless networks with the maximum throughput in the standby wireless network list as a first wireless network and a second wireless network respectively; and the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network.
In an embodiment of the present invention, the processor 31 is further configured to connect the first radio frequency module to the first wireless network and connect the second radio frequency module to the second wireless network after determining two standby wireless networks with the highest throughput in the standby wireless network list as the first wireless network and the second wireless network, respectively.
In an embodiment of the present invention, the processor 31 is further configured to disconnect the connection between the first radio frequency module and the first wireless network after the second radio frequency module accesses the second wireless network when the preset wireless network handover condition is met.
In an embodiment of the present invention, the processor 31 is further configured to reacquire a plurality of standby wireless networks after disconnecting the first radio frequency module from the first wireless network; detecting a plurality of throughputs corresponding to a plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput; updating the first wireless network according to the standby wireless network corresponding to the maximum throughput in the plurality of throughputs; and connecting the first radio frequency module to the first wireless network.
In an embodiment of the present invention, further, the processor 31 is specifically configured to perform a proportional operation on a first real-time throughput and a second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput; when the ratio result is smaller than a preset ratio threshold value, judging that a preset wireless network switching condition is met; and when the ratio result is greater than or equal to the preset ratio threshold, judging that the preset wireless network switching condition is not met.
When the terminal provided by the embodiment of the invention is accessed to a first wireless network connected with a first radio frequency module through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with a second radio frequency module according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is one of the two wireless networks which is not used; when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; and when the preset wireless network switching condition is met, the wireless network is accessed to a second wireless network through a second radio frequency module. Therefore, the terminal provided by the embodiment of the invention can detect the throughput of two connected wireless networks in real time in the terminal configured with two radio frequency modules, and switch the wireless networks according to the throughput, so that the defect that the service using the wireless network in the terminal is interrupted can be effectively overcome in the process of switching the wireless networks, and the normal work of the terminal is ensured.
The embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored, where the one or more programs are executable by one or more processors and applied to a terminal, and when the program is executed by the processors, the method according to the first to fourth embodiments is implemented.
Specifically, the program instructions corresponding to a wireless switching method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the program instructions corresponding to a wireless switching method in the storage medium are read or executed by an electronic device, the method includes the following steps:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting first throughput of the first wireless network and second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; the first wireless network is one of two connected wireless networks which is in use; the second wireless network is one of the two wireless networks which is not used;
when the first throughput is smaller than the second throughput, detecting the first real-time throughput of the first wireless network and the second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first time interval;
judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput;
and when the preset wireless network switching condition is met, the wireless network is accessed to a second wireless network through a second radio frequency module.
In an embodiment of the present invention, further, when accessing a first wireless network connected to a first radio frequency module through the first radio frequency module, before detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected to a second radio frequency module according to a first preset time interval, the one or more programs are executed by the one or more processors to implement the following steps:
acquiring a plurality of standby wireless networks;
detecting a plurality of throughputs corresponding to a plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput;
sequencing the plurality of standby wireless networks according to the sequence of throughput from large to small to obtain a sequenced standby wireless network list;
respectively determining two standby wireless networks with the maximum throughput in the standby wireless network list as a first wireless network and a second wireless network; wherein the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network
In an embodiment of the present invention, further, after determining two standby wireless networks with the highest throughput in the standby wireless network list as the first wireless network and the second wireless network, respectively, the one or more programs may be further executable by the one or more processors to implement the following steps:
the first radio frequency module is connected to a first wireless network, and the second radio frequency module is connected to a second wireless network.
In the embodiment of the present invention, further, when determining whether the preset wireless network handover condition is satisfied according to the first real-time throughput and the second real-time throughput, the one or more programs may be further executed by the one or more processors, and the following steps are specifically implemented:
carrying out proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput;
when the ratio result is smaller than a preset ratio threshold value, judging that a preset wireless network switching condition is met;
and when the ratio result is greater than or equal to the preset ratio threshold, judging that the preset wireless network switching condition is not met.
In an embodiment of the present invention, further, when a preset wireless network handover condition is satisfied, after the second radio frequency module accesses to the second wireless network, the one or more programs may be further executed by the one or more processors to implement the following steps:
and disconnecting the first radio frequency module from the first wireless network.
In an embodiment of the present invention, further, after the first radio frequency module and the first wireless network are disconnected, the one or more programs may be further executed by the one or more processors to implement the following steps:
reacquiring a plurality of standby wireless networks;
detecting a plurality of throughputs corresponding to a plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput;
updating the first wireless network according to the standby wireless network corresponding to the maximum throughput in the plurality of throughputs;
the first radio frequency module is connected to a first wireless network.
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 (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.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method of wireless handover, the method comprising:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; wherein the first wireless network is one of two connected wireless networks which is in use; the second wireless network is an unused one of the two wireless networks;
when the first throughput is smaller than the second throughput, detecting a first real-time throughput of the first wireless network and a second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first preset time interval;
judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput;
when the preset wireless network switching condition is met, the wireless network is accessed to the second wireless network through the second radio frequency module;
before the first radio frequency module accesses to the first wireless network, the first radio frequency module establishes connection with the first wireless network, and meanwhile, the second radio frequency module establishes connection with the second wireless network;
wherein, when the preset wireless network switching condition is met, after the second wireless network is accessed through the second radio frequency module, the method further comprises:
disconnecting the first radio frequency module from the first wireless network;
wherein after disconnecting the first radio frequency module from the first wireless network, the method further comprises:
reacquiring a plurality of standby wireless networks; the plurality of standby wireless networks are a plurality of standby wireless networks that do not include the second wireless network;
detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput;
updating the first wireless network according to a standby wireless network corresponding to the maximum throughput in the plurality of throughputs;
connecting the first radio frequency module to the first wireless network.
2. The method of claim 1, wherein before detecting the first throughput of the first wireless network and the second throughput of the second wireless network connected to the second radio frequency module at a first preset time interval when accessing the first wireless network connected to the first radio frequency module through the first radio frequency module, the method further comprises:
acquiring a plurality of standby wireless networks;
detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput;
sequencing the plurality of standby wireless networks according to the sequence of throughput from large to small to obtain a sequenced standby wireless network list;
determining two standby wireless networks with the maximum throughput in the standby wireless network list as the first wireless network and the second wireless network respectively; and the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network.
3. The method of claim 2, wherein after determining the two alternative wireless networks with the highest throughput in the alternative wireless network list as the first wireless network and the second wireless network, respectively, the method further comprises:
and connecting the first radio frequency module to the first wireless network, and connecting the second radio frequency module to the second wireless network.
4. The method of claim 1, wherein the determining whether a preset wireless network handover condition is met according to the first real-time throughput and the second real-time throughput comprises:
carrying out proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput;
when the ratio result is smaller than a preset ratio threshold value, judging that the preset wireless network switching condition is met;
and when the ratio result is greater than or equal to the preset ratio threshold, judging that the preset wireless network switching condition is not met.
5. A terminal, characterized in that the terminal comprises: a processor, a memory, and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory; the processor is configured to execute the wireless handover program stored in the memory to implement the steps of:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; wherein the first wireless network is one of two connected wireless networks which is in use; the second wireless network is an unused one of the two wireless networks; when the first throughput is smaller than the second throughput, detecting a first real-time throughput of the first wireless network and a second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first preset time interval; judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput; when the preset wireless network switching condition is met, the wireless network is accessed to the second wireless network through the second radio frequency module; before the first radio frequency module accesses the first wireless network, the first radio frequency module establishes connection with the first wireless network, and meanwhile, the second radio frequency module establishes connection with the second wireless network; when the preset wireless network switching condition is met, after the second wireless network is accessed through the second radio frequency module, the connection between the first radio frequency module and the first wireless network is disconnected; after the first radio frequency module is disconnected from the first wireless network, a plurality of standby wireless networks are obtained again; the plurality of standby wireless networks are a plurality of standby wireless networks that do not include the second wireless network; detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput; updating the first wireless network according to the standby wireless network corresponding to the maximum throughput in the plurality of throughputs; and connecting the first radio frequency module to the first wireless network.
6. The terminal of claim 5,
the processor is further configured to, when the first wireless network connected to the first radio frequency module is accessed through the first radio frequency module, detect a first throughput of the first wireless network and a second throughput of a second wireless network connected to the second radio frequency module at a first preset time interval, and acquire a plurality of standby wireless networks; detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput; sequencing the plurality of standby wireless networks according to the sequence of throughput from large to small to obtain a sequenced standby wireless network list; determining two standby wireless networks with the maximum throughput in the standby wireless network list as the first wireless network and the second wireless network respectively; wherein the throughput corresponding to the first wireless network is greater than the throughput corresponding to the second wireless network; and connecting the first radio frequency module to the first wireless network, and connecting the second radio frequency module to the second wireless network.
7. The terminal of claim 5,
the processor is specifically configured to perform proportional operation on the first real-time throughput and the second real-time throughput to obtain a ratio result of the first real-time throughput and the second real-time throughput; when the ratio result is smaller than a preset ratio threshold value, judging that the preset wireless network switching condition is met; and when the ratio result is greater than or equal to the preset ratio threshold, judging that the preset wireless network switching condition is not met.
8. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for performing the steps of:
when the first wireless network connected with the first radio frequency module is accessed through the first radio frequency module, detecting a first throughput of the first wireless network and a second throughput of a second wireless network connected with the second radio frequency module according to a first preset time interval; wherein the first wireless network is one of two connected wireless networks which is in use; the second wireless network is an unused one of the two wireless networks;
when the first throughput is smaller than the second throughput, detecting a first real-time throughput of the first wireless network and a second real-time throughput of the second wireless network according to a second preset time interval; wherein the second preset time interval is smaller than the first preset time interval;
judging whether a preset wireless network switching condition is met or not according to the first real-time throughput and the second real-time throughput;
when the preset wireless network switching condition is met, the wireless network is accessed to the second wireless network through the second radio frequency module;
before the first radio frequency module accesses to the first wireless network, the first radio frequency module establishes connection with the first wireless network, and meanwhile, the second radio frequency module establishes connection with the second wireless network;
wherein, when the preset wireless network switching condition is satisfied, after the second wireless network is accessed through the second radio frequency module, the steps further include:
disconnecting the first radio frequency module from the first wireless network;
wherein, after disconnecting the first radio frequency module from the first wireless network, the steps further comprise:
reacquiring a plurality of standby wireless networks; the plurality of standby wireless networks are a plurality of standby wireless networks that do not include the second wireless network;
detecting a plurality of throughputs corresponding to the plurality of standby wireless networks; wherein one standby wireless network corresponds to one throughput;
updating the first wireless network according to a standby wireless network corresponding to the maximum throughput in the plurality of throughputs;
connecting the first radio frequency module to the first wireless network.
CN201710832915.2A 2017-09-15 2017-09-15 Wireless switching method and terminal Active CN107466081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710832915.2A CN107466081B (en) 2017-09-15 2017-09-15 Wireless switching method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710832915.2A CN107466081B (en) 2017-09-15 2017-09-15 Wireless switching method and terminal

Publications (2)

Publication Number Publication Date
CN107466081A CN107466081A (en) 2017-12-12
CN107466081B true CN107466081B (en) 2020-10-30

Family

ID=60552445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710832915.2A Active CN107466081B (en) 2017-09-15 2017-09-15 Wireless switching method and terminal

Country Status (1)

Country Link
CN (1) CN107466081B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618394B (en) * 2019-02-13 2021-04-27 Oppo广东移动通信有限公司 Wireless network access method, device, terminal equipment and storage medium
CN109699038A (en) * 2019-02-19 2019-04-30 维沃移动通信有限公司 A kind of method for connecting network and terminal
CN115412985A (en) * 2020-01-13 2022-11-29 Oppo广东移动通信有限公司 Wireless communication method, terminal and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090054145A (en) * 2007-11-26 2009-05-29 주식회사 케이티 Method for performing fast handover traffic based on network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106332201B (en) * 2015-07-07 2021-04-20 西安中兴新软件有限责任公司 Wireless hotspot switching method and mobile terminal
CN106686687B (en) * 2016-12-29 2020-12-08 努比亚技术有限公司 Access control method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090054145A (en) * 2007-11-26 2009-05-29 주식회사 케이티 Method for performing fast handover traffic based on network

Also Published As

Publication number Publication date
CN107466081A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN107046696B (en) Communication network switching method and mobile terminal
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN109195143B (en) Network access method, mobile terminal and readable storage medium
CN109005574B (en) Cell selection method, mobile terminal and computer readable storage medium
CN107423238B (en) Screen projection connection method and device and computer readable storage medium
CN107832032B (en) Screen locking display method and mobile terminal
CN108121681B (en) Hot plug implementation method, terminal and storage medium
CN107155203B (en) Cell reselection method, device and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN112399215A (en) Screen projection parameter regulation and control method and device and computer readable storage medium
CN108563388B (en) Screen operation method, mobile terminal and computer-readable storage medium
CN112261535A (en) Major-minor switching method and device for wireless earphone and readable storage medium
CN114258005A (en) Method for registering from 4G to 5G, mobile terminal and readable storage medium
CN107707755B (en) Key using method, terminal and computer readable storage medium
CN107466081B (en) Wireless switching method and terminal
CN109491577B (en) Holding interaction method and device and computer readable storage medium
CN107517487B (en) Call control method and mobile terminal
CN107239208B (en) Method, apparatus, and computer-readable storage medium for processing screenshot
CN107066327B (en) Timing task processing method, mobile terminal and computer readable storage medium
CN112954755A (en) Method and device for optimizing network switching and computer readable storage medium
CN112888084A (en) Full-band communication method and device and mobile terminal
CN112770279A (en) Network sharing method, mobile terminal and computer readable storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN110099173B (en) Touch experience mode switching method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200928

Address after: 225300 No. 999, Nanhuan West Road, Luotang Street, Jiangyan District, Taizhou City, Jiangsu Province (in Jiangyan High-tech Venture Center)

Applicant after: TAIZHOU YUANHEDA ELECTRONIC TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231025

Address after: Building 3-002, Building 2, No. 15 Yinxing Road, Suxitong Science and Technology Industrial Park, Nantong City, Jiangsu Province, 226000

Patentee after: Nantong Yuanchang Electronic Technology Co.,Ltd.

Address before: 225300 No. 999, Nanhuan West Road, Luotang street, Jiangyan District, Taizhou City, Jiangsu Province (in Jiangyan District high tech entrepreneurship center)

Patentee before: TAIZHOU YUANHEDA ELECTRONIC TECHNOLOGY CO.,LTD.