CN114501566A - Network switching method and device - Google Patents

Network switching method and device Download PDF

Info

Publication number
CN114501566A
CN114501566A CN202210174398.5A CN202210174398A CN114501566A CN 114501566 A CN114501566 A CN 114501566A CN 202210174398 A CN202210174398 A CN 202210174398A CN 114501566 A CN114501566 A CN 114501566A
Authority
CN
China
Prior art keywords
wifi network
target
setting information
information
connectable
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.)
Pending
Application number
CN202210174398.5A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210174398.5A priority Critical patent/CN114501566A/en
Publication of CN114501566A publication Critical patent/CN114501566A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0033Control or signalling for completing the hand-off for data sessions of end-to-end connection with transfer of context information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/165Performing reselection for specific purposes for reducing network power consumption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Abstract

The application discloses a network switching method and device, and belongs to the technical field of intelligent terminals. The method comprises the following steps: acquiring setting information under the condition that a target WiFi network is searched; the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of the following: connection times, connection frequency and historical transmission data volume; determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information; and connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable.

Description

Network switching method and device
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a network switching method and device.
Background
After the UE is automatically connected to a WiFi network, the WiFi network may have a problem of poor network quality due to weak signals or many connected users, which may cause a situation that the network speed suddenly slows down or even cuts off the flow after the UE is connected to the WiFi network, and bring inconvenience to users in a scene requiring smooth network (such as ticket robbery, game playing, etc.).
Disclosure of Invention
The embodiment of the application aims to provide a network switching method and a network switching device, which can solve the problem that in the prior art, in a scene requiring smooth network, the network speed suddenly slows down or even cuts off after the network is switched.
In a first aspect, an embodiment of the present application provides a network handover method, where the method includes: acquiring setting information under the condition that a target WiFi network is searched; the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of the following: connection times, connection frequency and historical transmission data volume; determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information; and connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable.
In a second aspect, an embodiment of the present application provides an apparatus for network handover, where the apparatus includes: the acquisition module is used for acquiring the setting information under the condition that the target WiFi network is searched; wherein the setting information includes any one of: the WiFi network identification, the connection frequency and the historical transmission data volume of the target WiFi network; the determining module is used for determining whether the target WiFi network can be connected or not according to the setting information and the corresponding connection setting information; and the processing module is used for connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement a method as in the first aspect.
In the embodiment of the application, the setting information can be acquired under the condition that the target WiFi network is searched; the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of the following: connection times, connection frequency and historical transmission data volume; then, determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information; and connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable. Therefore, when the target WiFi network is searched, the target WiFi network is not directly connected, the target WiFi network is connected under the condition that the target WiFi network is determined to be connectable according to the WiFi network identification of the target WiFi network or the set information such as WiFi network use information and the corresponding connection setting information, the problem that the network speed suddenly slows down or even cuts off after the network is switched in the scene needing smooth network in the prior art is solved, the situation that the network speed suddenly slows down or even cuts off the network due to network switching is effectively avoided, and the smooth network is guaranteed.
Drawings
Fig. 1 is a method flow diagram of a network handover method according to some embodiments of the present application;
fig. 2 is a method flow diagram of another method of network handover according to some embodiments of the present application;
fig. 3 is a method flow diagram of yet another network handover method according to some embodiments of the present application;
FIG. 4 is a functional block diagram of a network switching device according to some embodiments of the present application;
FIG. 5 is a functional block diagram of an electronic device according to some embodiments of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The network switching method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart of a method for network handover according to an embodiment of the present disclosure. As shown in fig. 1, the method includes the following steps S110 to S130.
Step S110: acquiring setting information under the condition that a target WiFi network is searched; the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of the following: connection times, connection frequency, and historical transmission data volume.
The WiFi network Identifier may be a Basic Service Set Identifier (BBSID), or other identification information such as a WiFi network name capable of identifying the WiFi network.
The connection times are the first total times for connecting the target WiFi network within a set time interval, for example, a time interval within a first time length (for example, 24 hours, 7 days, etc.) from the current time, and the first time length may be set by a person skilled in the art or a user according to actual situations.
The connection frequency is the number of times of connecting the target WiFi network per unit time. For example, the connection frequency is a ratio of a second total number of times of connecting to the target WiFi network within the preset time interval to a second time duration corresponding to the preset time interval, for example, the second total number of times is 3 times, the second time duration is 6 hours, and the connection frequency is 3 times/6 hours — 0.5 times/hour.
The historical transmission data volume is the total amount of data volume which has been transmitted, and the total amount of data volume which is transmitted can be the total amount of data volume which is uploaded and/or downloaded.
In some embodiments, the WiFi network identifier of the target WiFi network may be directly obtained as the setting information of the target WiFi network. This approach is suitable for determining whether to connect WiFi of a public place after searching WiFi of the public place. For example, for a user, the public places where the user is located may include a company, a mall, a station (e.g., a subway station, a high-speed rail station, etc.), an airport, etc. The WiFi of the company is frequently used by users, and the fluency of the users in using the network can be ensured. In this case, the network identifier of the target WiFi network is acquired as the setting information of the target WiFi network, so that the user can set the connection setting information corresponding to the WiFi identifier of each public place according to the actual needs of the user (see the corresponding description in step S120), and thereby the target WiFi network is set to be connectable or not connectable, so as to meet the actual needs of the user.
In other embodiments, the WiFi network usage information of the target WiFi network may be directly obtained as the setting information of the target WiFi network. This approach is suitable for identifying whether the searched WiFi network is an unfamiliar WiFi network or a non-unfamiliar WiFi network that may be of poor quality. Generally, WiFi networks frequently used by users are safe and quality-guaranteed for users, WiFi networks not frequently used by users may have poor quality, and for unfamiliar WiFi networks, in addition to the poor quality, there may also be safety problems, both of which may cause network disconnection. By acquiring the WiFi network usage information, in the subsequent steps (corresponding to steps S120 to S130), it can be determined whether the WiFi network is an unfamiliar WiFi network or a non-unfamiliar WiFi network that may be of poor quality according to the WiFi network usage information, and in the case where it is determined that the searched WiFi network is an unfamiliar WiFi network or a non-unfamiliar WiFi network that may be of poor quality, connection to the WiFi network is denied.
In some cases, after acquiring the WiFi network identifier of the target WiFi network, if the user does not set corresponding connection setting information for the WiFi network identifier (see corresponding descriptions in embodiments below, which are not described herein), the subsequent steps (corresponding steps S120 to S130) cannot be performed continuously in this case. Based on this, in still other implementations, as shown in fig. 2, the execution process of step S110 may include the following steps S210 to S230:
step S210: and acquiring the WiFi network identification of the target WiFi network.
The target list is used for recording preset WiFi network identifications of preset WiFi networks, and the preset WiFi network identifications are set with corresponding connection setting information.
The preset WiFi network identification may be an identification of a WiFi network to which the user has connected. Any one of WiFi networks which are connected by a user is used as a preset WiFi network, and connection setting information corresponding to a preset WiFi network identifier is preset aiming at the preset WiFi network identifier of the preset WiFi network. The connection setting information corresponding to the preset WiFi network identifier may be preset by the user according to the actual needs of the user.
After step S210 is executed, step S220 or step S230 may be executed according to whether there is a WiFi network identifier in the target list. Wherein, in case that the WiFi network identifier of the target WiFi network exists in the target list, step S220 is executed; in case that the WiFi network identification of the target WiFi network does not exist in the target list, step S230 is performed.
Step S220: under the condition that the WiFi network identification of the target WiFi network exists in the target list, the WiFi network identification is used as setting information; the target list is used for recording preset WiFi network identifications of preset WiFi networks, and the preset WiFi network identifications are set with corresponding connection setting information.
In the case where the WiFi network identifier of the target WiFi network exists in the target list, it is described that the corresponding connection setting information has been set for the WiFi network identifier, and the WiFi network identifier is taken as the setting information, so that the subsequent step is performed (corresponding to step S120).
Step S230: and acquiring WiFi network use information of the target WiFi network as setting information under the condition that the WiFi network identification does not exist in the target list.
In the case where the WiFi network identifier does not exist in the target list, the corresponding connection setting information is not set in advance for the WiFi network identifier of the target WiFi network, and in this case, the WiFi network usage information of the target WiFi network is acquired as the setting information, so that the subsequent step is performed (corresponding to step S120).
In some embodiments, the setting information further includes usage scenario information, the usage scenario information including any one of: the current location and the current time. The current location is location coordinates of a current location of a terminal (e.g., a mobile phone) that has searched for the target WiFi network, and the current time is, for example, a system time of the terminal that has searched for the target WiFi network.
When the setting information of the target WiFi network is obtained, a network identifier of the target WiFi network may be obtained, and under the condition that the WiFi network identifier does not exist in a target list (see the above description about the target list, which is not repeated here), a first priority of WiFi network usage information and a second priority of usage scenario information are obtained, and under the condition that the first priority is higher than the second priority, the WiFi network usage information is obtained as the setting information; in the case where the second priority is higher than the first priority, the usage scene information is acquired as the setting information. The order of the first priority and the second priority may be set by the user according to actual needs.
Step S120: and determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information.
And under the condition that the setting information is the WiFi network identifier, the connection setting information is the setting value of the WiFi network identifier. The setting value includes a first setting value to which the corresponding connection is possible or a second setting value to which the corresponding connection is not possible.
Illustratively, the first setting value is 1, and the second setting value is 0; or the first setting value is 0 and the second setting value is 1.
In some examples, the WiFi network identifier and the corresponding connection setting information are associated in advance, for example, a corresponding relationship between a plurality of preset WiFi network identifiers and a plurality of preset connection setting information is preset. In this case, after the WiFi network identifier is obtained, the preset connection setting information corresponding to the WiFi network identifier is searched in the correspondence as the connection setting information corresponding to the WiFi network identifier.
The WiFi network identifier and the corresponding connection setting information may be associated by setting a key value pair. For example, the WiFi network identification is BSSID1, and BSSID1 corresponds to connection setting information of 1. In this case, a key-value pair < BSSID1, 1> is set and then stored in a preset WiFi network identification list. And under the condition that the acquired setting information is BSSID1, searching a key value pair containing BSSID1 in a preset WiFi network identification list to be < BSSID1, 1>, and determining that the corresponding connection setting information of BSSID1 is 1.
Under the condition that the setting information is WiFi network use information, the connection setting information corresponding to the WiFi network use information comprises the following steps: a preset usage threshold. In step S120, it may be first determined whether the WiFi network usage information is greater than or equal to the usage threshold, and in case that the WiFi network usage information is greater than or equal to the usage threshold, it is determined that the target WiFi network is connectable; and determining that the target WiFi network is not connectable under the condition that the WiFi network use information is smaller than the use threshold.
The preset usage threshold (for example, the following connection number threshold or connection frequency threshold or data amount threshold) may be set by a person skilled in the art according to actual situations, and is not limited in this embodiment of the present application.
Illustratively, the WiFi network usage information is a connection number, and the connection setting information corresponding to the connection number is a connection number threshold. In this case, it may be first determined whether the connection number is greater than or equal to a connection number threshold, and in a case where the connection number is greater than or equal to the connection number threshold, it is determined that the target WiFi network is connectable; and under the condition that the connection times are less than the connection time threshold value, determining that the target WiFi network is not connectable.
As another example, the WiFi network usage information is a connection frequency, and the connection setting information corresponding to the connection frequency is a connection frequency threshold. In this case, it may be first determined whether the connection frequency is greater than or equal to the connection frequency threshold, and in a case where the connection frequency is greater than or equal to the connection frequency threshold, it is determined that the target WiFi network is connectable; and determining that the target WiFi network is not connectable under the condition that the connection frequency is less than the connection frequency threshold value.
As another example, the WiFi network usage information is historical transmission data volume, and the connection setting information corresponding to the connection times is a data volume threshold. In this case, it may be first determined whether the historical transmission data amount is greater than or equal to the data amount threshold, and in the case that the historical transmission data amount is greater than or equal to the data amount threshold, it is determined that the target WiFi network is connectable; and determining that the target WiFi network is not connectable under the condition that the historical transmission data amount is smaller than the data amount threshold value.
Of course, it is understood that the above listed WiFi network usage information is only exemplary, and the WiFi network usage information in the present application includes, but is not limited to, the above listed information as long as the information is related to the WiFi network usage, for example, the duration of using the WiFi network after connecting the WiFi network may also be.
When the setting information is the use scene information, the connection setting information corresponding to the use scene information includes: and (4) presetting a scene information range. In step S120, it may be determined whether the usage scene information is located in the scene information range. Determining that the target WiFi network is connectable under the condition that the usage scenario information is within the scenario information range; and in the case that the usage context information is out of the context information range, determining that the target WiFi network is not connectable.
The specific range value of the preset scene information range (for example, the following area range or time range) may be set by a person skilled in the art according to practical situations, and is not limited in this embodiment of the present application.
Illustratively, the scene information is used as the current position, and the preset scene information range is a preset area range. And determining that the target WiFi network is connectable when the current position is within the area range, and determining that the target WiFi network is not connectable when the current position is outside the area range.
Further illustratively, the scene information is used as the current time, and the preset scene information range is a preset time range. And determining that the target WiFi network is connectable when the current time is within the time range, and determining that the target WiFi network is not connectable when the current time is outside the time range.
Step S130: and connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable.
Specifically, under the condition that the target WiFi network is determined to be connectable, connecting the target WiFi network; and under the condition that the target WiFi network is determined to be not connectable, not connecting the target WiFi network, and continuing to connect the currently connected network. The currently connected network may be a data network or a WiFi network.
It is to be understood that the above listed usage scenario information is only exemplary, and the usage scenario information in the embodiment of the present application includes, but is not limited to, the above listed usage scenario information as long as it is information related to the current connection scenario.
The manner of obtaining the connection setting information may be set by a person skilled in the art according to an actual situation, and is not limited in this embodiment of the present application.
In some examples, the connection setting information of the WiFi network identifier may be a preset first setting value or a second setting value, or a mapping relationship set according to the WiFi network identifier and the preset first setting value or second setting value. The first setting value is connectable correspondingly, and the second setting value is not connectable correspondingly.
Illustratively, the connection setting information of the BBSID is a first setting value or a second setting value set in advance. For example, the first setting value is set to 1 and the second setting value is set to 0 in advance. The connection setting information of the BBSID is 1.
In order to obtain the above target list, before performing step S110, a first input to the preset WiFi network identifier may be received, and then the connection setting information of the preset WiFi network identifier may be determined according to the first input.
In some examples, the first input to the preset WiFi network identification is: and setting the connection setting information of the preset WiFi network identifier as an input corresponding to a connectable operation or setting the connection setting information of the preset WiFi network identifier as an input corresponding to a non-connectable operation.
For example, a connection information setup page containing the target WiFi network is displayed to the user. The connection information setting page is provided with a first selection control corresponding to the connectable or non-connectable WiFi network and a second selection control corresponding to the non-connectable WiFi network, and the first input may be an input corresponding to a preset operation (for example, a click operation) performed on the first selection control or the second selection control of each WiFi network. Setting a target WiFi network in a page aiming at the connection information, and setting the connection setting information of the target WiFi network to be connectable under the condition that the first input is the input of the preset operation on a first selection control of the target WiFi network; and under the condition that the first input is input for the user to perform preset operation on the second selection control of the target WiFi network, setting the available information of the target WiFi network as unavailable connection.
In some embodiments, in the case that there is a WiFi network identifier of the target WiFi network in the target list, after performing step S130, the target list may also be pushed to other users who search for the target WiFi network, so that other users may select whether to use the user experience configuration as needed, thereby popularizing the user private subscription universally. The promotion is mainly directed to that target WiFi is public place WiFi, such as subway WiFi, shopping mall WiFi, company WiFi and the like.
In some embodiments, in the case that the currently connected network is a data network, after performing step S120, in the case that it is determined that the target WiFi network is not connectable, as shown in fig. 3, the embodiment of the present application may further perform the following steps S310 to S320.
Step S310: under the condition that a preset event is detected to occur, outputting a network switching prompt message to remind a user of network switching; wherein the preset event comprises any one of: the remaining flow of the user package is less than the remaining flow threshold and the level of the network performance of the data network is lower than a preset level.
The level of network performance of the data network being below the predetermined level may include: the bandwidth of the data network is smaller than a preset bandwidth threshold, or the time delay of the data network is larger than a preset time delay threshold.
The preset bandwidth threshold and the preset delay threshold may be set by those skilled in the art according to actual situations, and are not limited in the embodiment of the present application. Taking the preset delay threshold as an example, it can be set to 150 ms.
When a preset event occurs, a network switching prompt message can be popped up in the current display interface to remind a user of network switching. For example, when the remaining flow of the user package is smaller than the remaining flow threshold, a network switching prompting message "the remaining flow is not too much or is about to be used up, whether to switch to the target WiFi network" or other similar information may be popped up to remind the user that the data flow may be attempted to be switched to the target WiFi network due to too little remaining flow; if the data network is smaller than the preset bandwidth threshold or the data network delay is larger than the preset delay threshold, a network switching prompt message, such as "network quality is poor, whether to switch to the target WiFi network" or the like, may be popped up to remind the user that the current network quality is poor and the data traffic may be attempted to be switched to the target WiFi network.
Step S320: and under the condition that a second input indicating network switching is received, connecting the target WiFi network according to the second input.
And under the condition of receiving the second input, switching the connection data network to a connection target WiFi network according to the second input so as to transmit data by using the target WiFi network, so that the purpose of switching the connection data network to the connection target WiFi network in time according to a network switching instruction sent by a user under the condition of less residual flow or poorer network quality is realized, and the condition that the connection data network cannot be switched to the connection target WiFi network in time under the condition of excessive flow or poorer network quality is avoided.
The application of the solution in the embodiments of the present application is illustrated below by means of several examples.
Example 1
The UE card is registered on a fourth Generation mobile phone mobile communication standard (4Generation, 4G)/fifth Generation mobile phone mobile communication standard (5Generation, 5G) network, a data network is used for surfing the internet (uploading or downloading data), a user sets WiFi1 to be connectable (corresponding to the connection information corresponding to the target WiFi network is set to be allowed to be connected), the UE records the setting, the WiFi1 is connected when the WiFi1 is scanned, and the WiFi1 is preferentially used for surfing the internet. After leaving the coverage of the WiFi1, the UE scans to the WiFi2, the user sets the WiFi2 to be disconnected, the UE does not connect to the WiFi2 when scanning to the WiFi2, and the UE uses the data network to surf the internet. After leaving the coverage of the WiFi2, when the UE scans the WiFi3 again, the user sets the WiFi3 available, and the UE preferentially uses the WiFi3 to surf the internet.
The UE plug-in card is registered on a 4G/5G network, the connection times of the UE for connecting the WiFi1 is smaller than a preset time threshold value set by a user or the data volume used by the UE through the WiFi1 is smaller than a preset data volume threshold value set by the user, the WiFi1 is set to be disconnected, the setting is recorded, and the UE is not connected with the WiFi1 when scanning the WiFi1 and preferentially uses the data network. After leaving the coverage of the WiFi1, the UE scans the WiFi2, the connection times of the UE connecting to the WiFi2 is greater than a preset time threshold set by the user, or the data volume used by the UE through the WiFi2 is greater than a preset data volume threshold set by the user, the WiFi2 is set to be connectable, and the UE connects to the WiFi2 and uses the WiFi2 to surf the internet when the UE goes to the WiFi 2. After leaving the coverage of the WiFi2, the UE scans the WiFi3, the connection times of the UE to the WiFi3 is less than the preset time threshold set by the user, or the data volume used by the UE through the WiFi3 is less than the preset data volume threshold set by the user, the WiFi3 is set to be disconnected, and the UE does not connect the WiFi3 but preferentially uses the data network when scanning the WiFi 3.
Example three
The UE plug-in card is registered on the 4G/5G network, the current position of the UE is not in the preset position range or the system time of the UE is not in the preset time range, WiFi1 is set to be disconnected, the setting is recorded, the UE is not connected with the WiFi1 when the WiFi1 is scanned, and the data network is preferentially used. After leaving the coverage of the WiFi1, the UE scans the WiFi2, the current location of the UE is within the preset location range or the system time of the UE is within the preset time range, the WiFi2 is set to be connectable, and the UE connects the WiFi2 and uses the WiFi2 to surf the internet. After leaving the coverage of the WiFi2, the UE scans the WiFi3, the current location of the UE is not within the preset location range or the system time of the UE is not within the preset time range, the WiFi3 is set to be disconnected, and the UE does not connect the WiFi3 when scanning the WiFi3, but preferentially uses the data network.
In the embodiment of the application, the setting information can be acquired under the condition that the target WiFi network is searched; the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of the following: connection times, connection frequency and historical transmission data volume; then, determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information; and connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable. Therefore, when the target WiFi network is searched, the target WiFi network is not directly connected, the target WiFi network is connected under the condition that the target WiFi network is determined to be connectable according to the WiFi network identification of the target WiFi network or the set information such as WiFi network use information and the corresponding connection setting information, the problem that the network speed suddenly slows down or even cuts off after the network is switched in the scene needing smooth network in the prior art is solved, the situation that the network speed suddenly slows down or even cuts off the network due to network switching is effectively avoided, and the smooth network is guaranteed.
In the network switching method provided by the embodiment of the application, the execution main body can be a network switching device. In the embodiment of the present application, a network switching device is taken as an example to execute the method in the above embodiment, and the network switching device provided in the embodiment of the present application is described.
As shown in fig. 4, the network switching apparatus 400 includes: an acquisition module 401, a determination module 402 and a processing module 403.
An obtaining module 401, configured to obtain setting information when a target WiFi network is searched; wherein the setting information includes any one of: a WiFi network identification of the target WiFi network or WiFi network usage information of the target WiFi network, the WiFi network usage information including any of: connection times, connection frequency, and historical transmission data volume.
A determining module 402, configured to determine whether the target WiFi network is connectable according to the setting information and the corresponding connection setting information.
A processing module 403, configured to connect the target WiFi network if it is determined that the target WiFi network is connectable.
Optionally, the obtaining module 401 includes: the first obtaining submodule is used for obtaining a WiFi network identifier of a target WiFi network; the first processing submodule is used for taking the WiFi network identification as the setting information under the condition that the WiFi network identification exists in the target list; the target list is used for recording preset WiFi network identifications of preset WiFi networks, and the preset WiFi network identifications are set with corresponding connection setting information; and the second processing submodule is used for acquiring the WiFi network use information of the target WiFi network as the setting information under the condition that the WiFi network identification does not exist in the target list.
Optionally, in the case that the setting information is a WiFi network identifier, the connection setting information is a setting value of the WiFi network identifier;
the determining module comprises: the second obtaining submodule is used for obtaining a setting value corresponding to the WiFi network identifier; the setting values comprise first setting values which can be connected correspondingly or second setting values which can not be connected correspondingly; the first determining submodule is used for determining that the target WiFi network is connectable under the condition that the set value is the first set value; and the second determining submodule is used for determining that the target WiFi network is not connectable under the condition that the connection setting information is the second setting value.
Optionally, the setting information is WiFi network usage information, and the connection setting information includes: a preset usage threshold; the determination module is to: in the case that the WiFi network usage information is greater than or equal to the usage threshold, determining that the target WiFi network is connectable.
Optionally, the setting information further includes usage scenario information, and the usage scenario information includes any one of: a current location and a current time; the connection setting information includes: a preset scene information range; the determination module is to: and determining that the target WiFi network is connectable in the case that the usage context information is within the context information range.
Optionally, the obtaining module is configured to: acquiring a WiFi network identifier of a target WiFi network; under the condition that the WiFi network identification does not exist in the target list, acquiring a first priority of WiFi network use information and a second priority of use scene information; the target list is used for recording a preset WiFi network identifier of a preset WiFi network, and the preset WiFi network identifier is set with corresponding connection setting information; acquiring WiFi network use information as setting information under the condition that the first priority is higher than the second priority; in the case where the second priority is higher than the first priority, the usage scene information is acquired as the setting information.
In the embodiment of the application, the setting information can be acquired under the condition that the target WiFi network is searched; the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of the following: connection times, connection frequency and historical transmission data volume; then, determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information; and connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable. Therefore, when the target WiFi network is searched, the target WiFi network is not directly connected, the target WiFi network is connected under the condition that the target WiFi network is determined to be connectable according to the WiFi network identification of the target WiFi network or the set information such as WiFi network use information and the corresponding connection setting information, the problem that the network speed suddenly slows down or even cuts off after the network is switched in the scene needing smooth network in the prior art is solved, the situation that the network speed suddenly slows down or even cuts off the network due to network switching is effectively avoided, and the smooth network is guaranteed. The network switching device in the embodiment of the present application may be an electronic device, and may also be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The network switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The network switching device provided in the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to fig. 3, and is not described herein again to avoid repetition.
As shown in fig. 5, an electronic device 500 is further provided in the embodiment of the present application, and includes a processor 501 and a memory 502, where the memory 502 stores a program or an instruction that can be executed on the processor 501, and when the program or the instruction is executed by the processor 501, the steps of the foregoing network switching method embodiment are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to acquire setting information when a target WiFi network is searched; the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of the following: connection times, connection frequency and historical transmission data volume; determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information; and connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable.
Optionally, the processor 1010 is configured to: acquiring a WiFi network identifier of a target WiFi network; under the condition that the WiFi network identification exists in the target list, the WiFi network identification is used as setting information; the target list is used for recording preset WiFi network identifications of preset WiFi networks, and the preset WiFi network identifications are set with corresponding connection setting information; and acquiring WiFi network use information of the target WiFi network as setting information under the condition that the WiFi network identification does not exist in the target list.
Optionally, in the case that the setting information is a WiFi network identifier, the connection setting information is a setting value of the WiFi network identifier; processor 1010 is configured to: acquiring a setting value corresponding to the WiFi network identifier; the setting values comprise first setting values which can be connected correspondingly or second setting values which can not be connected correspondingly; under the condition that the set value is a first set value, determining that the target WiFi network is connectable; and determining that the target WiFi network is not connectable under the condition that the connection setting information is the second setting value.
Optionally, the setting information is WiFi network usage information, and the connection setting information includes: a preset usage threshold; processor 1010 is configured to: in the case that the WiFi network usage information is greater than or equal to the usage threshold, determining that the target WiFi network is connectable.
Optionally, the setting information further includes usage scenario information, and the usage scenario information includes any one of: a current location and a current time; the connection setting information includes: a preset scene information range; the processor 1010 is configured to: and determining that the target WiFi network is connectable in the case that the usage context information is within the context information range.
Optionally, the processor 1010 is configured to: acquiring a WiFi network identifier of a target WiFi network; under the condition that the WiFi network identification does not exist in the target list, acquiring a first priority of WiFi network use information and a second priority of use scene information; the target list is used for recording preset WiFi network identifications of preset WiFi networks, and the preset WiFi network identifications are set with corresponding connection setting information; acquiring WiFi network use information as setting information under the condition that the first priority is higher than the second priority; in the case where the second priority is higher than the first priority, the usage scene information is acquired as the setting information.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or non-volatile memory, or the memory 1009 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the subject application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network handover method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer readable storage media such as computer read only memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing network switching method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing network handover method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not described here again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for network handover, comprising:
acquiring setting information under the condition that a target WiFi network is searched; wherein the setting information includes a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, and the WiFi network usage information includes any one of: connection times, connection frequency and historical transmission data volume;
determining whether the target WiFi network is connectable or not according to the setting information and the corresponding connection setting information;
connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable.
2. The method of claim 1, wherein the obtaining the configuration information of the target WiFi network comprises:
acquiring a WiFi network identifier of the target WiFi network;
taking the WiFi network identification as the setting information under the condition that the WiFi network identification exists in a target list; the target list is used for recording a preset WiFi network identifier of a preset WiFi network, and the preset WiFi network identifier is set with corresponding connection setting information;
and acquiring WiFi network use information of the target WiFi network as the setting information under the condition that the WiFi network identification does not exist in the target list.
3. The method according to claim 1 or 2, wherein in the case that the setting information is the WiFi network identifier, the connection setting information is a setting value of the WiFi network identifier;
the determining whether the target WiFi network is connectable according to the setting information and the corresponding connection setting information includes:
acquiring a setting value corresponding to the WiFi network identifier; wherein the setting value comprises a first setting value which can be connected and corresponds to or a second setting value which can not be connected and corresponds to;
determining that the target WiFi network is connectable under the condition that the set value is the first set value; and determining that the target WiFi network is not connectable under the condition that the connection setting information is the second setting value.
4. The method according to claim 1 or 2, wherein the setting information is the WiFi network usage information, and the connection setting information comprises: a preset usage threshold;
the determining whether the target WiFi network is connectable according to the setting information and the corresponding connection setting information includes:
determining that the target WiFi network is connectable if the WiFi network usage information is greater than or equal to the usage threshold.
5. The method according to claim 1, wherein the setting information further includes usage scenario information, the usage scenario information including any one of: a current location and a current time; the connection setting information includes: a preset scene information range;
the determining whether the target WiFi network is connectable according to the setting information and the corresponding connection setting information includes:
determining that the target WiFi network is connectable if the usage context information is within the context information range.
6. The method of claim 5, wherein the obtaining the configuration information of the target WiFi network comprises:
acquiring a WiFi network identifier of the target WiFi network;
under the condition that the WiFi network identification does not exist in a target list, acquiring a first priority of the WiFi network use information and a second priority of the use scene information; the target list is used for recording a preset WiFi network identifier of a preset WiFi network, and the preset WiFi network identifier is set with corresponding connection setting information;
acquiring the WiFi network use information as the setting information under the condition that the first priority is higher than the second priority;
acquiring the usage scenario information as the setting information in a case where the second priority is higher than the first priority.
7. An apparatus for network handover, comprising:
the acquisition module is used for acquiring the setting information under the condition that the target WiFi network is searched; wherein the setting information includes any one of: a WiFi network identifier of the target WiFi network or WiFi network usage information of the target WiFi network, the WiFi network usage information including any of: connection times, connection frequency and historical transmission data volume;
the determining module is used for determining whether the target WiFi network can be connected or not according to the setting information and the corresponding connection setting information;
and the processing module is used for connecting the target WiFi network under the condition that the target WiFi network is determined to be connectable.
8. The apparatus of claim 7, wherein the obtaining module comprises:
the first obtaining submodule is used for obtaining a WiFi network identifier of a target WiFi network;
the first processing submodule is used for taking the WiFi network identification as the setting information under the condition that the WiFi network identification exists in a target list; the target list is used for recording a preset WiFi network identifier of a preset WiFi network, and the preset WiFi network identifier is set with corresponding connection setting information;
and the second processing submodule is used for acquiring WiFi network use information of the target WiFi network as the setting information under the condition that the WiFi network identification does not exist in the target list.
9. The apparatus according to claim 7 or 8, wherein in the case where the setting information is the WiFi network identifier, the connection setting information is a setting value of the WiFi network identifier;
the determining module includes:
the second obtaining submodule is used for obtaining a setting value corresponding to the WiFi network identifier; wherein the setting value comprises a first setting value which can be connected and corresponds to or a second setting value which can not be connected and corresponds to;
a first determining submodule, configured to determine that the target WiFi network is connectable if the setting value is the first setting value;
and the second determining submodule is used for determining that the target WiFi network is not connectable under the condition that the connection setting information is the second setting value.
10. The apparatus according to claim 7 or 8, wherein the setting information is WiFi network usage information, and the connection setting information includes: a preset usage threshold;
the determination module is to:
determining that the target WiFi network is connectable if the WiFi network usage information is greater than or equal to the usage threshold.
CN202210174398.5A 2022-02-24 2022-02-24 Network switching method and device Pending CN114501566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210174398.5A CN114501566A (en) 2022-02-24 2022-02-24 Network switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210174398.5A CN114501566A (en) 2022-02-24 2022-02-24 Network switching method and device

Publications (1)

Publication Number Publication Date
CN114501566A true CN114501566A (en) 2022-05-13

Family

ID=81484451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210174398.5A Pending CN114501566A (en) 2022-02-24 2022-02-24 Network switching method and device

Country Status (1)

Country Link
CN (1) CN114501566A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038131A (en) * 2022-05-31 2022-09-09 Oppo广东移动通信有限公司 Cell search method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277896A (en) * 2017-08-08 2017-10-20 广东欧珀移动通信有限公司 Wifi hotspot management method, device and terminal device
CN109089327A (en) * 2018-10-23 2018-12-25 Oppo(重庆)智能科技有限公司 wireless network connecting method, device, terminal and storage medium
CN111669799A (en) * 2020-05-21 2020-09-15 维沃移动通信有限公司 Network connection method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107277896A (en) * 2017-08-08 2017-10-20 广东欧珀移动通信有限公司 Wifi hotspot management method, device and terminal device
CN109089327A (en) * 2018-10-23 2018-12-25 Oppo(重庆)智能科技有限公司 wireless network connecting method, device, terminal and storage medium
CN111669799A (en) * 2020-05-21 2020-09-15 维沃移动通信有限公司 Network connection method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038131A (en) * 2022-05-31 2022-09-09 Oppo广东移动通信有限公司 Cell search method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10708543B1 (en) Video communication sessions between whitelisted devices
US20170063657A1 (en) Connection status prompting method and device
CN106897937B (en) Method and device for displaying social sharing information
CN112286887A (en) File sharing method and device and electronic equipment
CN110113250B (en) Method for sharing wireless access point through instant messaging software
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
CN111866885A (en) Verification information sharing method and device and electronic equipment
MX2008010732A (en) Location information communication.
CN112528266A (en) Visiting registration method and related device
CN102929947A (en) Data processing method and device
CN106330681B (en) Method, system and related equipment for sharing film watching information
CA3102425C (en) Video processing method, device, terminal and storage medium
EP3647970A1 (en) Method and apparatus for sharing information
CN114501566A (en) Network switching method and device
US20170180671A1 (en) Method for displaying operation trajectory , an electronic device and a non-transitory computer-readable storage medium
EP3852341B1 (en) Information sharing method, device and non-transitory computer readable storage medium thereof
CN105933922B (en) Information sending method, information receiving method and device
CN113170215A (en) Video live broadcast method, system and computer storage medium
CN116193419A (en) Communication method, device and equipment
CN115567901A (en) Method, device, equipment and storage medium for operating user identity identification card
CN113709300B (en) Display method and device
CN113364915B (en) Information display method and device and electronic equipment
CN113993164A (en) File transmission method and file transmission device
US20170171596A1 (en) Electronic device and method for video program interaction
CN114726662A (en) Group chat session management method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination