CN112351461A - WiFi network switching method, device, terminal and storage medium - Google Patents

WiFi network switching method, device, terminal and storage medium Download PDF

Info

Publication number
CN112351461A
CN112351461A CN201910731137.7A CN201910731137A CN112351461A CN 112351461 A CN112351461 A CN 112351461A CN 201910731137 A CN201910731137 A CN 201910731137A CN 112351461 A CN112351461 A CN 112351461A
Authority
CN
China
Prior art keywords
wifi network
network
signal indication
wifi
radio frequency
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.)
Granted
Application number
CN201910731137.7A
Other languages
Chinese (zh)
Other versions
CN112351461B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910731137.7A priority Critical patent/CN112351461B/en
Publication of CN112351461A publication Critical patent/CN112351461A/en
Application granted granted Critical
Publication of CN112351461B publication Critical patent/CN112351461B/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/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/03Reselecting a link using a direct mode connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application provides a WiFi network switching method, a WiFi network switching device, a terminal and a storage medium. The method is applied to a terminal, wherein the terminal comprises a first radio frequency port and a second radio frequency port; the method comprises the following steps: scanning at least one WiFi network correspondingly stored in a first radio frequency port to obtain a scanned first target WiFi network; when the signal indication parameter of the first WiFi network connected with the second radio frequency port is lower than a first threshold value, selecting the WiFi network with the signal indication parameter meeting a preset condition from the first target WiFi network as a second WiFi network, wherein the signal indication parameter is used for representing the quality of WiFi network signals; controlling the first radio frequency port to be connected with a second WiFi network and keeping transmitting data through the first WiFi network; when the signal of the first WiFi network indicates that the parameter is below a second threshold, transmitting data through a second WiFi network. The technical scheme provided by the embodiment of the application realizes seamless roaming.

Description

WiFi network switching method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the field of wireless technologies, and in particular, to a WiFi network switching method, device, terminal, and storage medium.
Background
Wireless roaming refers to a process of switching from a current AP (Access Point) to another AP and maintaining network connection.
In the related art, a terminal is in a multi-AP environment, and the terminal stores a plurality of WiFi (Wireless Fidelity) entries. When the RSSI (Received Signal Strength) of the WiFi connected to the terminal is less than-78 dbm, the terminal disconnects the current WiFi and establishes a connection with other WiFi through a message interaction process. The message interaction process includes scanning, authentication association, key interaction, DHCP (Dynamic Host Configuration Protocol) allocation of an IP (Internet Protocol) address, and the like.
However, the above related art may take a certain time to successfully roam, which may cause a problem of unsmooth access to the internet.
Disclosure of Invention
The embodiment of the application provides a WiFi network switching method, a WiFi network switching device, a terminal and a storage medium. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a WiFi network switching method, which is applied to a terminal, where the terminal includes a first radio frequency port and a second radio frequency port; the method comprises the following steps:
scanning at least one WiFi network correspondingly stored in the first radio frequency port to obtain a scanned first target WiFi network, wherein the first target WiFi network comprises n WiFi networks, and n is a positive integer;
when the signal indication parameter of the first WiFi network connected with the second radio frequency port is lower than a first threshold value, selecting a WiFi network with the signal indication parameter meeting a preset condition from the first target WiFi network as a second WiFi network, wherein the signal indication parameter is used for representing the quality of a WiFi network signal;
controlling the first radio frequency port to be connected with the second WiFi network and keeping transmitting data through the first WiFi network;
transmitting data over the second WiFi network when the signal indication parameter of the first WiFi network is below a second threshold.
On the other hand, an embodiment of the present application provides a WiFi network switching apparatus, which is applied to a terminal, where the terminal includes a first radio frequency port and a second radio frequency port; the device comprises:
a network scanning module, configured to scan at least one WiFi network correspondingly stored in the first radio frequency port to obtain a first scanned target WiFi network, where the first target WiFi network includes n WiFi networks, and n is a positive integer;
the network selection module is used for selecting a WiFi network with signal indication parameters meeting preset conditions from the first target WiFi network as a second WiFi network when the signal indication parameters of the first WiFi network connected with the second radio frequency port are lower than a first threshold value, and the signal indication parameters are used for representing the quality of WiFi network signals;
the network connection module is used for controlling the first radio frequency port to be connected with the second WiFi network and keeping transmitting data through the first WiFi network;
and the data transmission module is used for transmitting data through the second WiFi network when the signal indication parameter of the first WiFi network is lower than a second threshold value.
In still another aspect, an embodiment of the present application provides a terminal, where the terminal includes a processor and a memory, where the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the WiFi network handover method according to the above aspect.
In still another aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the WiFi network handover method according to the above aspect.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
when the signal indication parameter of the first WiFi network connected with the second radio frequency port is lower than the first threshold value, the second WiFi network with the signal indication parameter meeting the preset condition is pre-connected through the first radio frequency port, and when the signal indication parameter of the first WiFi network is lower than the second threshold value, data are transmitted through the second WiFi network.
Drawings
Fig. 1 is a flowchart of a WiFi network handover method provided by an embodiment of the present application;
fig. 2 is a flowchart of a WiFi network handover method provided by another embodiment of the present application;
fig. 3 is a block diagram of a WiFi network switching device provided by an embodiment of the present application;
fig. 4 is a block diagram of a WiFi network switching device provided in another embodiment of the present application;
fig. 5 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a WiFi network handover method provided by an embodiment of the present application is shown. In this embodiment, the method is mainly used for an example of a terminal, and the terminal includes a first rf port and a second rf port. The method may include the following steps.
Step 101, scanning at least one WiFi network correspondingly stored in a first radio frequency port to obtain a scanned first target WiFi network.
In the embodiment of the present application, the first target WiFi network includes n WiFi networks, where n is a positive integer. Illustratively, the terminal scans at least one saved WiFi network on a frequency band corresponding to the first radio frequency port. The radio frequency ports are different, and the corresponding frequency bands are also different. For example, the frequency band corresponding to the first radio frequency port is different from the frequency band corresponding to the second radio frequency port, the frequency band corresponding to the first radio frequency port may be 2.4G, and the frequency band corresponding to the second radio frequency port may be 5G. Of course, in other possible implementation manners, the terminal may further include other radio frequency ports besides the first radio frequency port and the second radio frequency port, and the number of the radio frequency ports is not limited in this embodiment of the application. For example, the rf port may be disposed on an antenna PCB (Printed Circuit Board) of the terminal, and may be used to connect the antenna and the antenna PCB.
And 102, when the signal indication parameter of the first WiFi network connected with the second radio frequency port is lower than a first threshold value, selecting a WiFi network with the signal indication parameter meeting a preset condition from the first target WiFi network as a second WiFi network.
In the embodiment of the application, the signal indication parameter is used for characterizing the quality of the WiFi network signal. Illustratively, the signal indication parameter may be RSSI and the RRSI is an indication of the strength of the received signal. The larger the RRSI, the greater the received signal strength.
And 103, controlling the first radio frequency port to be connected with a second WiFi network, and keeping transmitting data through the first WiFi network.
After the terminal is connected with the first WiFi network (also called as a primary WiFi network) through the second radio frequency port, the terminal can be pre-connected with the second WiFi network (also called as a secondary WiFi network) through the first radio frequency port, at this time, the terminal still transmits data through the first WiFi network, and data transmission does not occur on the second WiFi network.
And step 104, when the signal indication parameter of the first WiFi network is lower than a second threshold value, transmitting data through a second WiFi network.
In an exemplary embodiment, the first threshold is greater than the second threshold. When the signal indication parameter is RSSI, the first threshold may be-65 dbm and the second threshold may be-75 dbm. When the signal indication parameter of the first WiFi network is lower than the second threshold, it indicates that the signal of the first WiFi network is poor and cannot meet the user requirement that the WiFi network has a relatively strict requirement, and at this time, the WiFi network with a relatively strong signal needs to be switched to perform data transmission.
To sum up, in the technical solution provided in this application embodiment, when the signal indication parameter of the first WiFi network connected to the second radio frequency port is lower than the first threshold, the second WiFi network whose signal indication parameter satisfies the preset condition is pre-connected to the first radio frequency port, and when the signal indication parameter of the first WiFi network is lower than the second threshold, data is transmitted through the second WiFi network.
Referring to fig. 2, a flowchart of a WiFi network handover method provided in another embodiment of the present application is shown. The method may include the following steps.
Step 201, periodically scanning at least one WiFi network stored corresponding to the first radio frequency port to obtain a scanned first target WiFi network.
For example, the terminal may periodically scan at least one WiFi network stored in a frequency band corresponding to the first radio frequency port, so as to obtain a scanned first target WiFi network. The scanning period may be a preset constant or a value set by the terminal in real time according to the current environment. For example, the terminal may determine the scanning period in real time according to the network state of the currently running application program, and when the application program has a high requirement on the network state, the scanning period may be shortened; the scan period may be extended when the application has low requirements on the network state.
In step 202, the variation trend of the signal indication parameters of the n WiFi networks included in the first target WiFi network is recorded in each period.
Assume that the first target WiFi network includes 3 WiFi networks: WiFi network 1, WiFi network 2, and WiFi network 3. The terminal records the variation trend of the signal indication parameters of the WiFi network 1, the WiFi network 2 and the WiFi network 3 in each period, for example, whether the trend of the signal indication parameters is increased or decreased. Illustratively, the terminal may record, in the form of a graph, a trend of a change of the signal indication parameter of the n WiFi networks included in the first target WiFi network in each period.
Step 203, when the signal indication parameter of the first WiFi network connected to the second rf port is lower than the first threshold, selecting the WiFi network with the highest signal indication parameter change trend as the second WiFi network from the first target WiFi network.
Still taking the above example as an example, assuming that the WiFi network 1 changes to be increasing and is the WiFi network with the highest current signal indication parameter, the terminal regards the WiFi network 1 as the second WiFi network.
And step 204, controlling the first radio frequency port to be connected with a second WiFi network, and keeping transmitting data through the first WiFi network.
And after the terminal determines the second WiFi network, controlling the first radio frequency port to be connected with the second WiFi network, and still transmitting data through the first WiFi network.
And step 205, when the signal indication parameter of the first WiFi network is lower than the second threshold value, transmitting data through the second WiFi network.
The second threshold may be referred to as a roaming threshold. The second threshold value can be set by the terminal manufacturer or determined by the terminal in real time. Illustratively, the terminal determines the network status of the running application; the second threshold is set according to the network status of the application.
The terminal stores the corresponding relation between the identifier of the application program and the network state of the application program in advance. The identification of the application is used to uniquely characterize the application, for example, the identification of the application may be the package name of the application. Illustratively, the network state of the application includes a first network state and a second network state. The first network state is used for representing that the application program has high requirement on the network, and the second network state is used for representing that the application program has low requirement on the network. Assuming that the running application program is application 1, the terminal searches for a preset corresponding relation and determines that the network state of the application 1 is a first network state.
If the network state of the application program is the first network state, the second threshold value is increased; and if the network state of the application program is the second network state, reducing the second threshold value.
Still taking the above example as an example, if the network state of the application 1 is the first network state, the application 1 has a high requirement on the network, and the terminal raises the second threshold value to ensure the network environment required by the application 1. Assuming that the network state of the application 2 is the second network state, the requirement of the application 2 on the network is low, and the terminal lowers the second threshold.
And step 206, disconnecting the second radio frequency port from the first WiFi network when the signal indication parameter of the first WiFi network is lower than a third threshold value.
When the signal indication parameter of the first WiFi network is lower than the third threshold, it indicates that the signal of the first WiFi network is very low, and at this time, the terminal may disconnect the second rf port from the first WiFi network.
Step 207, scanning at least one WiFi network correspondingly stored in the second radio frequency port to obtain a scanned second target WiFi network, where the second target WiFi network includes m WiFi networks, and m is a positive integer.
Illustratively, the terminal scans at least one WiFi network stored in a frequency band corresponding to the second radio frequency port to obtain a scanned second target WiFi network. Optionally, the terminal may periodically scan at least one WiFi network stored corresponding to the second rf port.
And step 208, when the signal indication parameter of the second WiFi network is lower than the first threshold, selecting the WiFi network with the signal indication parameter meeting the preset condition from the second target WiFi network as the first WiFi network.
When the signal indication parameter of the second WiFi network is lower than the first threshold, it indicates that the signal of the second WiFi network is reduced, and the terminal may select, in advance, a WiFi network whose signal indication parameter meets a preset condition from the second target WiFi network as the first WiFi network, and control the second radio frequency port to connect to the first WiFi network. Illustratively, the preset condition may be that the signal indicating parameter is trending upward and the current signal indicating parameter is highest.
To sum up, in the technical solution provided in this embodiment of the application, when the signal indication parameter of the first WiFi network is lower than the third threshold, the connection between the second radio frequency port and the first WiFi network is disconnected, and at least one WiFi network stored in the second radio frequency port correspondingly is scanned, and when the signal of the second WiFi network is reduced, the terminal can implement roaming more efficiently.
In addition, a roaming threshold is set according to the network state of the running application program, so that the normal running of the application program can be effectively ensured, compared with the prior art that the roaming is initiated when the RSSI is about-78 dbm, the technical scheme provided by the embodiment of the application has a more flexible roaming mode, and the smooth running of the application program is effectively ensured.
In an exemplary embodiment, the technical solution provided in the embodiment of the present application further includes the following steps.
1. Scanning at least one WiFi network correspondingly stored in a first radio frequency port to obtain a scanned first target WiFi network, wherein the first target WiFi network comprises n WiFi networks, and n is a positive integer;
2. determining a network state of the running application;
3. when the signal indication parameter of the first WiFi network connected with the second radio frequency port is lower than a first threshold value, selecting a WiFi network with the signal indication parameter meeting a target condition from the first target WiFi network as a second WiFi network according to the network state of the application program;
if the network state of the application program is the first network state, selecting a WiFi network with the highest signal indication parameter change trend of rising from the first target WiFi network as a second WiFi network; and if the network state of the application program is the second network state, selecting a WiFi network with the current signal indication parameter smaller than the current highest signal indication parameter from the first target WiFi network as the second WiFi network.
The first network state is used for representing that the application program has high requirements on the network, so that the terminal needs to select the WiFi network with the highest signal indication parameter as the second WiFi network from the first target WiFi network to indicate that the signal indication change trend is increased, and the normal operation of the application program is ensured. The second network state is used to represent that the application has low network requirements, so the terminal may select a WiFi network with a signal indication parameter lower than the highest signal indication parameter as the second WiFi network.
4. Controlling the first radio frequency port to be connected with a second WiFi network and keeping transmitting data through the first WiFi network;
5. when the signal of the first WiFi network indicates that the parameter is below a second threshold, transmitting data through a second WiFi network.
In summary, in the technical scheme provided in the embodiment of the present application, the second WiFi network is selected according to the network state of the running application, and the selection of the second WiFi network is more flexible, so that the normal running of the application can be effectively ensured.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 3, a block diagram of a WiFi network switching device provided by an embodiment of the present application is shown. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus 300 may be applied to a terminal, which includes a first rf port and a second rf port; the device comprises: a network scanning module 310, a network selecting module 320, a network connecting module 330 and a data transmitting module 340.
The network scanning module 310 is configured to scan at least one WiFi network correspondingly stored in the first radio frequency port to obtain a first scanned target WiFi network, where the first target WiFi network includes n WiFi networks, and n is a positive integer.
The network selecting module 320 is configured to select, when a signal indication parameter of a first WiFi network connected to the second radio frequency port is lower than a first threshold, a WiFi network whose signal indication parameter meets a preset condition from the first target WiFi network as a second WiFi network, where the signal indication parameter is used to characterize quality of a WiFi network signal.
The network connection module 330 is configured to control the first radio frequency port to connect to the second WiFi network, and maintain data transmission through the first WiFi network.
The data transmission module 340 is configured to transmit data through the second WiFi network when the signal indication parameter of the first WiFi network is lower than a second threshold.
To sum up, in the technical solution provided in this application embodiment, when the signal indication parameter of the first WiFi network connected to the second radio frequency port is lower than the first threshold, the second WiFi network whose signal indication parameter satisfies the preset condition is pre-connected to the first radio frequency port, and when the signal indication parameter of the first WiFi network is lower than the second threshold, data is transmitted through the second WiFi network.
Optionally, the network scanning module 310 is configured to:
periodically scanning at least one WiFi network correspondingly stored in the first radio frequency port to obtain a scanned first target WiFi network;
and recording the variation trend of the signal indication parameters of the n WiFi networks included in the first target WiFi network in each period.
Optionally, the network selecting module 320 is configured to:
and selecting the WiFi network with the highest signal indication parameter change trend to be increased from the first target WiFi network as the second WiFi network.
Optionally, as shown in fig. 4, the apparatus 300 further includes: a connection disconnection module 350.
The disconnection module 350 is configured to disconnect the second radio frequency port from the first WiFi network when the signal indication parameter of the first WiFi network is lower than a third threshold.
The network scanning module 310 is further configured to scan at least one WiFi network correspondingly stored in the second radio frequency port to obtain a second scanned target WiFi network, where the second target WiFi network includes m WiFi networks, and m is a positive integer.
The network selecting module 320 is further configured to select, when the signal indication parameter of the second WiFi network is lower than the first threshold, a WiFi network whose signal indication parameter meets a preset condition from the second target WiFi network as the first WiFi network.
Optionally, the apparatus 300 further includes: a status determination module 360.
The state determination module 360 is configured to determine a network state of the running application.
The network selecting module 320 is configured to:
and selecting a WiFi network with signal indication parameters meeting target conditions from the first target WiFi network as the second WiFi network according to the network state of the application program.
Optionally, the network selecting module 320 is configured to:
if the network state of the application program is a first network state, selecting a WiFi network with the highest signal indication parameter change trend to be increased from the first target WiFi network as the second WiFi network;
and if the network state of the application program is a second network state, selecting a WiFi network with current signal indication parameters smaller than current highest signal indication parameters from the first target WiFi network as the second WiFi network.
Optionally, the apparatus 300 further comprises: a threshold setting module 370.
The state determination module 360 is further configured to determine a network state of the running application.
The threshold setting module 370 is configured to set the second threshold according to the network status of the application.
Optionally, the threshold setting module 370 is configured to:
if the network state of the application program is the first network state, the second threshold value is increased;
and if the network state of the application program is a second network state, reducing the second threshold value.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 5, a block diagram of a terminal according to an embodiment of the present application is shown. The terminal may be a mobile phone, a tablet computer, an electronic book reading device, a multimedia playing device, a wearable device, or other portable electronic devices.
The terminal in the embodiment of the present application may include one or more of the following components: a processor 510 and a memory 520.
Processor 510 may include one or more processing cores. The processor 510 connects various parts within the overall terminal using various interfaces and lines, and performs various functions of the terminal and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 520 and calling data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 510 may integrate one or a combination of a Central Processing Unit (CPU) and a modem. Wherein, the CPU mainly processes an operating system, an application program and the like; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 510, but may be implemented by a single chip.
Optionally, the processor 510, when executing the program instructions in the memory 520, implements the WiFi network handover method provided by the various method embodiments described above.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 520 includes a non-transitory computer-readable medium. The memory 520 may be used to store instructions, programs, code sets, or instruction sets. The memory 520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the various method embodiments described above, and the like; the storage data area may store data created according to the use of the terminal, and the like.
The structure of the terminal described above is only illustrative, and in actual implementation, the terminal may include more or less components, such as: a display screen or a bluetooth module, etc., which is not limited in this embodiment.
Those skilled in the art will appreciate that the configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer-readable storage medium is also provided, in which a computer program is stored, the computer program being loaded and executed by a processor to implement the above-mentioned WiFi network handover method.
In an exemplary embodiment, a computer program product is also provided for implementing the WiFi network handover method described above when the computer program product is executed.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A wireless fidelity WiFi network switching method is characterized by being applied to a terminal, wherein the terminal comprises a first radio frequency port and a second radio frequency port; the method comprises the following steps:
scanning at least one WiFi network correspondingly stored in the first radio frequency port to obtain a scanned first target WiFi network, wherein the first target WiFi network comprises n WiFi networks, and n is a positive integer;
when the signal indication parameter of the first WiFi network connected with the second radio frequency port is lower than a first threshold value, selecting a WiFi network with the signal indication parameter meeting a preset condition from the first target WiFi network as a second WiFi network, wherein the signal indication parameter is used for representing the quality of a WiFi network signal;
controlling the first radio frequency port to be connected with the second WiFi network and keeping transmitting data through the first WiFi network;
transmitting data over the second WiFi network when the signal indication parameter of the first WiFi network is below a second threshold.
2. The method of claim 1, wherein the scanning at least one WiFi network stored on the first rf port to obtain a first target WiFi network comprises:
periodically scanning at least one WiFi network correspondingly stored in the first radio frequency port to obtain a scanned first target WiFi network;
and recording the variation trend of the signal indication parameters of the n WiFi networks included in the first target WiFi network in each period.
3. The method of claim 2, wherein the selecting, as the second WiFi network, a WiFi network from the first target WiFi networks whose signal indication parameters satisfy a preset condition includes:
and selecting the WiFi network with the highest signal indication parameter change trend to be increased from the first target WiFi network as the second WiFi network.
4. The method of claim 1, wherein after the transmitting data over the second WiFi network, further comprising:
when the signal indication parameter of the first WiFi network is lower than a third threshold value, disconnecting the second radio frequency port from the first WiFi network;
scanning at least one WiFi network correspondingly stored in the second radio frequency port to obtain a second scanned target WiFi network, wherein the second target WiFi network comprises m WiFi networks, and m is a positive integer;
and when the signal indication parameter of the second WiFi network is lower than the first threshold value, selecting the WiFi network with the signal indication parameter meeting the preset condition from the second target WiFi network as the first WiFi network.
5. The method of claim 1, further comprising:
determining a network state of the running application;
the selecting, from the first target WiFi network, a WiFi network whose signal indication parameter meets a preset condition as a second WiFi network includes:
and selecting a WiFi network with signal indication parameters meeting target conditions from the first target WiFi network as the second WiFi network according to the network state of the application program.
6. The method according to claim 5, wherein the selecting, as the second WiFi network, a WiFi network from the first target WiFi networks whose signal indication parameter satisfies a target condition according to the network status of the application program comprises:
if the network state of the application program is a first network state, selecting a WiFi network with the highest signal indication parameter change trend to be increased from the first target WiFi network as the second WiFi network;
and if the network state of the application program is a second network state, selecting a WiFi network with current signal indication parameters smaller than current highest signal indication parameters from the first target WiFi network as the second WiFi network.
7. The method of claim 1, further comprising:
determining a network state of the running application;
and setting the second threshold according to the network state of the application program.
8. The method of claim 7, wherein setting the second threshold according to the network status of the application comprises:
if the network state of the application program is the first network state, the second threshold value is increased;
and if the network state of the application program is a second network state, reducing the second threshold value.
9. A wireless fidelity WiFi network switching device is characterized by being applied to a terminal, wherein the terminal comprises a first radio frequency port and a second radio frequency port; the device comprises:
a network scanning module, configured to scan at least one WiFi network correspondingly stored in the first radio frequency port to obtain a first scanned target WiFi network, where the first target WiFi network includes n WiFi networks, and n is a positive integer;
the network selection module is used for selecting a WiFi network with signal indication parameters meeting preset conditions from the first target WiFi network as a second WiFi network when the signal indication parameters of the first WiFi network connected with the second radio frequency port are lower than a first threshold value, and the signal indication parameters are used for representing the quality of WiFi network signals;
the network connection module is used for controlling the first radio frequency port to be connected with the second WiFi network and keeping transmitting data through the first WiFi network;
and the data transmission module is used for transmitting data through the second WiFi network when the signal indication parameter of the first WiFi network is lower than a second threshold value.
10. A terminal, characterized in that the terminal comprises a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the method according to any of claims 1 to 8.
11. A computer-readable storage medium, in which a computer program is stored which is loaded and executed by a processor to implement the method according to any one of claims 1 to 8.
CN201910731137.7A 2019-08-08 2019-08-08 WiFi network switching method, wiFi network switching device, terminal and storage medium Active CN112351461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910731137.7A CN112351461B (en) 2019-08-08 2019-08-08 WiFi network switching method, wiFi network switching device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910731137.7A CN112351461B (en) 2019-08-08 2019-08-08 WiFi network switching method, wiFi network switching device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN112351461A true CN112351461A (en) 2021-02-09
CN112351461B CN112351461B (en) 2023-08-22

Family

ID=74366758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910731137.7A Active CN112351461B (en) 2019-08-08 2019-08-08 WiFi network switching method, wiFi network switching device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112351461B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666857A (en) * 2022-04-27 2022-06-24 中国电信股份有限公司 Communication networking control method, device, medium and electronic equipment
WO2022222811A1 (en) * 2021-04-19 2022-10-27 华为技术有限公司 Data transmission method and data transmission apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170272313A1 (en) * 2016-03-18 2017-09-21 Plume Design, Inc. Optimization on multiple timescales in a distributed wi-fi system
CN107426781A (en) * 2017-08-16 2017-12-01 深圳市中兴物联科技有限公司 A kind of double frequency WiFi automatic switching methods, device and computer-readable recording medium
CN107615818A (en) * 2015-06-09 2018-01-19 华为技术有限公司 A kind of frequency band switching method, terminal
CN107852655A (en) * 2016-05-31 2018-03-27 华为技术有限公司 Switch the method and terminal device of access point
CN108834223A (en) * 2018-06-22 2018-11-16 中国联合网络通信集团有限公司 A kind of method and electronic equipment switching WiFi frequency range
CN109089327A (en) * 2018-10-23 2018-12-25 Oppo(重庆)智能科技有限公司 wireless network connecting method, device, terminal and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162696A (en) * 2015-04-15 2016-11-23 中兴通讯股份有限公司 Method, device and the terminal that a kind of wireless network connects
CN105592517A (en) * 2016-02-17 2016-05-18 宇龙计算机通信科技(深圳)有限公司 Network connection processing method, network connection processing device, and network connection processing terminal
CN107920353A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of method and hot spot access device of Wireless Fidelity connection switching hot spot
CN109089261B (en) * 2018-10-18 2020-12-18 Oppo广东移动通信有限公司 Method, apparatus, computer device and storage medium for wireless roaming triggering
CN109379766A (en) * 2018-11-27 2019-02-22 青岛海信宽带多媒体技术有限公司 A kind of method and device switching WiFi network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107615818A (en) * 2015-06-09 2018-01-19 华为技术有限公司 A kind of frequency band switching method, terminal
US20170272313A1 (en) * 2016-03-18 2017-09-21 Plume Design, Inc. Optimization on multiple timescales in a distributed wi-fi system
CN107852655A (en) * 2016-05-31 2018-03-27 华为技术有限公司 Switch the method and terminal device of access point
CN107426781A (en) * 2017-08-16 2017-12-01 深圳市中兴物联科技有限公司 A kind of double frequency WiFi automatic switching methods, device and computer-readable recording medium
CN108834223A (en) * 2018-06-22 2018-11-16 中国联合网络通信集团有限公司 A kind of method and electronic equipment switching WiFi frequency range
CN109089327A (en) * 2018-10-23 2018-12-25 Oppo(重庆)智能科技有限公司 wireless network connecting method, device, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222811A1 (en) * 2021-04-19 2022-10-27 华为技术有限公司 Data transmission method and data transmission apparatus
CN114666857A (en) * 2022-04-27 2022-06-24 中国电信股份有限公司 Communication networking control method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN112351461B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
JP7366066B2 (en) Signal reception method and terminal device
CN106464303B (en) Data transmission method and terminal
JP4899665B2 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and wireless communication program
US11272480B2 (en) Method for indicating resource location to receive broadcast message, network device, user equipment and system
CN106230492B (en) Terminal antenna switching method and device and mobile terminal
JP6961708B2 (en) Network connection method and equipment
CN108055687B (en) Wireless network connection method and device and terminal equipment
CN109379498B (en) Electromagnetic interference control method and related device
CN112867069B (en) Interference processing method and device, storage medium and electronic equipment
WO2021036881A1 (en) Wifi roaming method and device, mobile terminal, and storage medium
KR20200108546A (en) Method for controlling frequency band for communication and electronic device thereof
CN107222937B (en) Data transmission method, device and terminal
CN116546485A (en) Capability indication method, terminal and network side network element
CN112351461B (en) WiFi network switching method, wiFi network switching device, terminal and storage medium
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
KR20230122668A (en) DC position processing method and related devices
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
KR20220041662A (en) Electronic device supporting multiple sim and method for operating thereof
EP4195756A1 (en) Measurement method, measurement apparatus, terminal and network device
CN115665828A (en) WiFi data transmission method and device, electronic equipment, wireless access equipment and readable storage medium
CN113543237B (en) Cell selection method and device
CN115474255A (en) Relay service method and device based on sidelink, terminal and network side equipment
CN112055372A (en) Client front-end equipment and working method thereof
KR20210060069A (en) Electronic device for providing dual connectivy and method for operating thereof

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
GR01 Patent grant
GR01 Patent grant