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

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

Info

Publication number
CN112351461B
CN112351461B CN201910731137.7A CN201910731137A CN112351461B CN 112351461 B CN112351461 B CN 112351461B CN 201910731137 A CN201910731137 A CN 201910731137A CN 112351461 B CN112351461 B CN 112351461B
Authority
CN
China
Prior art keywords
wifi network
network
radio frequency
signal indication
frequency port
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
CN201910731137.7A
Other languages
Chinese (zh)
Other versions
CN112351461A (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

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

Abstract

The embodiment of the application provides a WiFi network switching method, a WiFi network switching device, a WiFi network switching terminal and a WiFi network switching storage medium. The method is applied to a terminal, and 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; 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 WiFi network signals; controlling the first radio frequency port to be connected with the second WiFi network, and keeping transmitting data through the first WiFi network; and transmitting data through the second WiFi network when the signal indicating parameter of the first WiFi network is lower than a second threshold value. The technical scheme provided by the embodiment of the application realizes seamless roaming.

Description

WiFi network switching method, wiFi network switching device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of wireless technology, in particular to a WiFi network switching method, a WiFi network switching device, a WiFi network switching terminal and a WiFi network switching storage medium.
Background
Wireless roaming refers to a process of switching from a current AP (Access Point) to another AP and maintaining a network connection.
In the related art, the terminal is in a multi-AP environment, and the terminal holds a plurality of WiFi (Wireless Fidelity ) entries. After the RSSI (Received Signal Strength Indication, received signal strength) of the WiFi connected with the terminal is less than-78 dbm, the terminal disconnects the current WiFi and establishes connection with other WiFi through a message interaction process. The message interaction process comprises the steps of scanning, authentication association, key interaction, allocation of IP (Internet Protocol, network protocol) addresses by DHCP (Dynamic Host Configuration Protocol ) and the like.
However, the above related art may take a certain time to successfully roam, which may cause a problem of unsmooth internet surfing.
Disclosure of Invention
The embodiment of the application provides a WiFi network switching method, a WiFi network switching device, a WiFi network switching terminal and a WiFi network switching storage medium. The technical scheme is as follows:
on one hand, the embodiment of the application provides a WiFi network switching method, which 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 by 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 WiFi network signals;
controlling the first radio frequency port to be connected with the second WiFi network, and keeping transmitting data through the first WiFi network;
and when the signal indication parameter of the first WiFi network is lower than a second threshold value, transmitting data through the second WiFi network.
On the other hand, the embodiment of the application provides a WiFi network switching device, which 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:
the network scanning module is used for scanning at least one WiFi network correspondingly stored by 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;
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, wherein 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 yet 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 that is loaded and executed by the processor to implement a WiFi network handover method as described in the above aspect.
In yet another aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, the computer program being loaded and executed by a processor to implement a WiFi network handover method as described in the above aspects.
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 a first threshold value, a second WiFi network with the signal indication parameter meeting the preset condition is pre-connected through the first radio frequency port, when the signal indication parameter of the first WiFi network is lower than a second threshold value, data is transmitted through the second WiFi network, and compared with the prior art that the roaming can be successfully performed only after a certain time is spent, when the first WiFi network reaches the roaming threshold value, the message interaction process is completed, seamless roaming can be realized, and the roaming efficiency is improved.
Drawings
Fig. 1 is a flowchart of a WiFi network switching method according to an embodiment of the present application;
fig. 2 is a flowchart of a WiFi network switching method according to another embodiment of the present application;
fig. 3 is a block diagram of a WiFi network switching device according to an embodiment of the application;
fig. 4 is a block diagram of a WiFi network switching device according to another embodiment of the application;
fig. 5 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a WiFi network switching method according to an embodiment of the application is shown. In this embodiment, the method is mainly applied to a terminal for illustration, where the terminal includes a first radio frequency port and a second radio frequency port. The method may comprise the following steps.
Step 101, scanning at least one WiFi network corresponding to and stored in the 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. The terminal scans at least one WiFi network stored in the 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 and the frequency band corresponding to the second radio frequency port are different, 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 implementations, 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 radio frequency ports is not limited in the embodiments of the present application. Illustratively, the radio frequency port may be provided on an antenna PCB (Printed Circuit Board ) of the terminal, which may be used to interface the antenna and the antenna PCB.
And step 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 the WiFi network with the signal indication parameter meeting the preset condition from the first target WiFi network as the second WiFi network.
In an embodiment of the application, the signal indication parameter is used to characterize the quality of the WiFi network signal. Illustratively, the signal indication parameter may be RSSI and RRSI is an indication of the strength of the received signal. The larger the RRSI, the greater the strength of the received signal.
And step 103, controlling the first radio frequency port to be connected with the 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 no data transmission occurs on the second WiFi network.
And 104, 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 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, the signal of the first WiFi network is poor, the user requirement on the strict requirement of the WiFi network cannot be met, and the first WiFi network is required to be switched to the WiFi network with the stronger signal for data transmission.
In summary, in the technical solution provided in the embodiment of the present application, when the signal indication parameter of the first WiFi network connected to the second radio frequency port is lower than the first threshold, a second WiFi network whose signal indication parameter meets the preset condition is preconnected through 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, and compared with the case that it takes a certain time to succeed in roaming in the related art, when the first WiFi network reaches the roaming threshold, the technical solution provided in the embodiment of the present application completes the message interaction process, so that seamless roaming can be implemented and roaming efficiency is improved.
Fig. 2 is a flowchart illustrating a WiFi network switching method according to another embodiment of the application. The method may comprise the following steps.
Step 201, periodically scanning at least one WiFi network stored in correspondence to the first radio frequency port, to obtain a scanned first target WiFi network.
The terminal may periodically scan at least one WiFi network stored in the frequency band corresponding to the first radio frequency port, 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 can determine the scanning period in real time according to the network state of the currently running application program, and when the requirement of the application program on the network state is high, the scanning period can be shortened; when the application program has low requirements on the network state, the scanning period can be prolonged.
Step 202, recording the variation trend of the signal indication parameters of n WiFi networks included in the first target WiFi network in each period.
Assume that the first target WiFi network includes 3 WiFi networks: a WiFi network 1, a WiFi network 2, and a WiFi network 3. The terminal records the trend of the change of the signal indicating 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 indicating parameters is rising or falling. For example, the terminal may record, in a graph, a trend of change of signal indication parameters of n WiFi networks included in the first target WiFi network in each period.
In step 203, when the signal indication parameter of the first WiFi network connected to the second radio frequency port is lower than the first threshold, the trend of the signal indication parameter is selected from the first target WiFi networks to be increased, and the WiFi network with the highest current signal indication parameter is used as the second WiFi network.
Still taking the above example as an example, assuming that the change trend of the WiFi network 1 is rising and the WiFi network with the highest current signal indicating parameter, the terminal takes the WiFi network 1 as the second WiFi network.
Step 204, controlling the first radio frequency port to connect to the second WiFi network, and maintaining data transmission 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 transmitting data through the first WiFi network at the moment.
In step 205, when the signal of the first WiFi network indicates that the parameter is lower than the second threshold, data is transmitted through the second WiFi network.
The second threshold may be referred to as a roaming threshold. The second threshold may be set by the terminal manufacturer itself or may be determined in real time by the terminal. Illustratively, the terminal determines the network state of the running application; the second threshold is set according to the network state of the application.
The terminal stores the corresponding relation between the identification 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, e.g., the identification of the application may be the package name of the application. Illustratively, the network states of the application include a first network state and a second network state. The first network state is used for representing that the application program has high requirements on the network, and the second network state is used for representing that the application program has low requirements on the network. Assuming that the running application program is application 1, the terminal searches a preset corresponding relation, and determines that the network state of application 1 is the first network state.
If the network state of the application program is the first network state, the second threshold value is increased; if the network state of the application is the second network state, the second threshold is lowered.
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 high requirement on the network, and the terminal increases the second threshold value, so as 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 application 2 has low network requirements, and the terminal lowers the second threshold.
In step 206, 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.
When the signal indication parameter of the first WiFi network is lower than a third threshold value, the signal indication parameter indicates that the signal of the first WiFi network is very low, and the terminal can disconnect the second radio frequency port from the first WiFi network.
Step 207, scanning at least one WiFi network stored in correspondence to 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.
The terminal scans at least one WiFi network stored in the frequency band corresponding to the second radio frequency port, to obtain a scanned second target WiFi network. Optionally, the terminal may periodically scan the second radio frequency port for at least one WiFi network stored correspondingly.
And step 208, when the signal indication parameter of the second WiFi network is lower than the first threshold, selecting a WiFi network whose signal indication parameter meets 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, 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 trend is rising and the current signal indicating parameter is highest.
In summary, in the technical solution provided in the embodiment of the present 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 correspondingly in the second radio frequency port is scanned, and when the signal of the second WiFi network is reduced, the terminal can more efficiently implement roaming.
In addition, the 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, and compared with the roaming initiated when the RSSI is about-78 dbm in the related art, the roaming mode of the technical scheme provided by the embodiment of the application is more flexible, and the smooth running of the application program is effectively ensured.
In an exemplary embodiment, the technical solution provided by the embodiment of the present application further includes the following steps.
1. Scanning at least one WiFi network correspondingly stored by 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 an 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 as a second WiFi network, wherein the change trend of the signal indication parameter is increased, from the first target WiFi network; and if the network state of the application program is the second network state, selecting a WiFi network with the current signal indicating parameter smaller than the current highest signal indicating 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 requirement on the network, so that the terminal needs to select a WiFi network with the highest signal indication parameter as a second WiFi network from the first target WiFi network, and the signal indication change trend is increased, so that the normal operation of the application program is ensured. The second network state is used for representing that the application program has low requirement on the network, so the terminal can select the WiFi network with the signal indicating parameter lower than the highest signal indicating parameter as the second WiFi network, and of course, in other possible implementation manners, the terminal can also select the WiFi network with the highest current signal indicating parameter as the second WiFi network.
4. Controlling the first radio frequency port to be connected with the second WiFi network, and keeping transmitting data through the first WiFi network;
5. and transmitting data through the second WiFi network when the signal indicating parameter of the first WiFi network is lower than a second threshold value.
In summary, in the technical scheme provided by the embodiment of the application, the second WiFi network is selected according to the network state of the running application program, so that the second WiFi network is more flexibly selected, and the normal running of the application program can be effectively ensured.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Referring to fig. 3, a block diagram of a WiFi network switching device according to an embodiment of the application is shown. The device has the function of realizing the method example, and the function can be realized by hardware or can be realized by executing corresponding software by hardware. The apparatus 300 may be applied in a terminal comprising a first radio frequency port and a second radio frequency port; the device comprises: a network scanning module 310, a network selection module 320, a network connection module 330 and a data transmission module 340.
The network scanning module 310 is configured to scan at least one WiFi network stored in correspondence to the first radio frequency port, to obtain a scanned first target WiFi network, where the first target WiFi network includes n WiFi networks, and n is a positive integer.
The network selection module 320 is configured to select, when the signal indication parameter of the 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 the 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 keep transmitting data through the first WiFi network.
The data transmission module 340 is configured to transmit data through the second WiFi network when the signal indicating parameter of the first WiFi network is lower than a second threshold.
In summary, in the technical solution provided in the embodiment of the present application, when the signal indication parameter of the first WiFi network connected to the second radio frequency port is lower than the first threshold, a second WiFi network whose signal indication parameter meets the preset condition is preconnected through 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, and compared with the case that it takes a certain time to succeed in roaming in the related art, when the first WiFi network reaches the roaming threshold, the technical solution provided in the embodiment of the present application completes the message interaction process, so that seamless roaming can be implemented and roaming efficiency is improved.
Optionally, the network scanning module 310 is configured to:
periodically scanning at least one WiFi network stored correspondingly by the first radio frequency port to obtain a scanned first target WiFi network;
and recording the change trend of the signal indication parameters of the n WiFi networks included in the first target WiFi network in each period.
Optionally, the network selection module 320 is configured to:
and selecting a WiFi network with the highest signal indication parameter from the first target WiFi network as the second WiFi network, wherein the change trend of the signal indication parameter is increased.
Optionally, as shown in fig. 4, the apparatus 300 further includes: the disconnect module 350.
The connection disconnection module 350 is configured to disconnect the second radio frequency port from the first WiFi network when the signal indicating 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 stored in correspondence to 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.
The network selection 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: the status determination module 360.
The state determination module 360 is configured to determine a network state of the running application.
The network selection module 320 is configured to:
and selecting the WiFi network with the signal indication parameters meeting the 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 selection 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 as the second WiFi network, wherein the change trend of the signal indication parameter is increased, from the first target WiFi network;
and if the network state of the application program is the second network state, selecting a WiFi network with the current signal indicating parameter smaller than the current highest signal indicating parameter from the first target WiFi network as the second WiFi network.
Optionally, the apparatus 300 further includes: the 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 a network state of the application program.
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 the second network state, reducing the second threshold value.
It should be noted that, when the apparatus provided in the foregoing embodiment performs the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to perform all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
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 cell phone, tablet computer, electronic book reading device, multimedia playing device, wearable device, or other portable electronic device.
The terminal in the embodiment of the application can comprise 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, 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 invoking data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 510 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU) and a modem etc. Wherein, the CPU mainly processes an operating system, application programs and the like; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 510 and may be implemented by a single chip.
Optionally, the processor 510 executes the program instructions in the memory 520 to implement the WiFi network switching method provided in the foregoing method embodiments.
The Memory 520 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 520 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 520 may be used to store instructions, programs, code sets, or instruction sets. The memory 520 may include a stored program area and a stored data area, wherein the stored program 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, etc.
The structure of the terminal described above is merely illustrative, and in actual implementation, the terminal may include more or fewer components, such as: the display screen, the bluetooth module, or the like, which is not limited in this embodiment.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, there is also provided a computer readable storage medium having stored therein a computer program loaded and executed by a processor to implement the above-described WiFi network handover method.
In an exemplary embodiment, a computer program product is also provided, which, when executed, is adapted to implement the above-described WiFi network handover method.
The foregoing description of the exemplary embodiments of the application is not intended to limit the application to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the application.

Claims (7)

1. The 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:
periodically scanning at least one WiFi network stored correspondingly by the first radio frequency port to obtain a scanned first target WiFi network;
recording the change trend of signal indication parameters of n WiFi networks included in the first target WiFi network in each period, wherein 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 highest current signal indication parameter as a second WiFi network, wherein the signal indication parameter is used for representing the quality of WiFi network signals, and the change trend of the signal indication parameter is increased from the first target WiFi network;
controlling the first radio frequency port to be connected with the second WiFi network, and keeping transmitting data through the first WiFi network;
and when the signal indication parameter of the first WiFi network is lower than a second threshold value, transmitting data through the second WiFi network, wherein the first threshold value is larger than the second threshold value.
2. The method of claim 1, further comprising, after the transmitting the data over the second WiFi network:
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 by the second radio frequency port to obtain a scanned second 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 a WiFi network with the signal indication parameter meeting a preset condition from the second target WiFi network as the first WiFi network.
3. The method according to claim 1, wherein the method further comprises:
determining a network state of an running application;
and setting the second threshold according to the network state of the application program.
4. A method according to claim 3, wherein setting the second threshold according to the network state of the application program 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 the second network state, reducing the second threshold value.
5. The 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:
the network scanning module is used for periodically scanning at least one WiFi network stored correspondingly by the first radio frequency port to obtain a scanned first target WiFi network; recording the change trend of signal indication parameters of n WiFi networks included in the first target WiFi network in each period, wherein n is a positive integer;
the network selection module is used for selecting a WiFi network with the highest current signal indication parameter from the first target WiFi network as a second 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, wherein the signal indication parameter is 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, and the first threshold value is larger than the second threshold value.
6. A terminal comprising a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the method of any one of claims 1 to 4.
7. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, which is loaded and executed by a processor to implement the method of any of claims 1 to 4.
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 CN112351461A (en) 2021-02-09
CN112351461B true 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)

Families Citing this family (2)

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

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016165235A1 (en) * 2015-04-15 2016-10-20 中兴通讯股份有限公司 Wireless network connection method, device and terminal
WO2017140127A1 (en) * 2016-02-17 2017-08-24 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for processing network connection, and terminal
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
WO2018064897A1 (en) * 2016-10-08 2018-04-12 中兴通讯股份有限公司 Wireless fidelity connection hotspot switching method and hotspot access device
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
CN109089261A (en) * 2018-10-18 2018-12-25 Oppo广东移动通信有限公司 Method, apparatus, computer equipment and the storage medium of radio roaming triggering
CN109379766A (en) * 2018-11-27 2019-02-22 青岛海信宽带多媒体技术有限公司 A kind of method and device switching WiFi network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10341193B2 (en) * 2016-03-18 2019-07-02 Plume Design, Inc. Optimization on multiple timescales in a distributed Wi-Fi system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016165235A1 (en) * 2015-04-15 2016-10-20 中兴通讯股份有限公司 Wireless network connection method, device and terminal
CN107615818A (en) * 2015-06-09 2018-01-19 华为技术有限公司 A kind of frequency band switching method, terminal
WO2017140127A1 (en) * 2016-02-17 2017-08-24 宇龙计算机通信科技(深圳)有限公司 Method and apparatus for processing network connection, and terminal
CN107852655A (en) * 2016-05-31 2018-03-27 华为技术有限公司 Switch the method and terminal device of access point
WO2018064897A1 (en) * 2016-10-08 2018-04-12 中兴通讯股份有限公司 Wireless fidelity connection hotspot switching method and hotspot access device
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
CN109089261A (en) * 2018-10-18 2018-12-25 Oppo广东移动通信有限公司 Method, apparatus, computer equipment and the storage medium of radio roaming triggering
CN109089327A (en) * 2018-10-23 2018-12-25 Oppo(重庆)智能科技有限公司 wireless network connecting method, device, terminal and storage medium
CN109379766A (en) * 2018-11-27 2019-02-22 青岛海信宽带多媒体技术有限公司 A kind of method and device switching WiFi network

Also Published As

Publication number Publication date
CN112351461A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
JP7366066B2 (en) Signal reception method and terminal device
US11330650B2 (en) Wireless connection method and device
CN106230492B (en) Terminal antenna switching method and device and mobile terminal
JP6961708B2 (en) Network connection method and equipment
RU2742143C1 (en) Method for configuring measurement interval and corresponding apparatus, device, terminal device and system
CN109089327B (en) Wireless network connection method, device, terminal and storage medium
CN109379498B (en) Electromagnetic interference control method and related device
CN108055687B (en) Wireless network connection method and device and terminal equipment
CN109495875B (en) SIM card selection method and device, electronic equipment and storage medium
CN102158934A (en) Network selection method and equipment
CN112351461B (en) WiFi network switching method, wiFi network switching device, terminal and storage medium
CN113316206B (en) Cell reselection method, device, terminal equipment and storage medium
CN105813221A (en) WIFI disconnected network reconnection method of intelligent device in WIFI wireless local network environment
US20230300703A1 (en) Cell switching method and apparatus, storage medium, and electronic device
CN116546485A (en) Capability indication method, terminal and network side network element
EP4336744A1 (en) Electronic device, and method for reducing current consumption in electronic device connected to communication network
CN107222937B (en) Data transmission method, device and terminal
CN113660653B (en) Transmission method and device and electronic equipment
CN112867069B (en) Interference processing method and device, storage medium and electronic equipment
KR20230122668A (en) DC position processing method and related devices
US20240098771A1 (en) Request Information Sending Method Device and Non-Transitory Readable Storage Medium
US20230026710A1 (en) Base Station Switching Method and Apparatus
US20230164681A1 (en) Access control method and apparatus, terminal, and network device
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
CN106488571B (en) Channel selection method and system

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