CN114867075B - Wireless network switching method, device, equipment, storage medium and product - Google Patents

Wireless network switching method, device, equipment, storage medium and product Download PDF

Info

Publication number
CN114867075B
CN114867075B CN202210643477.6A CN202210643477A CN114867075B CN 114867075 B CN114867075 B CN 114867075B CN 202210643477 A CN202210643477 A CN 202210643477A CN 114867075 B CN114867075 B CN 114867075B
Authority
CN
China
Prior art keywords
network
determining
current
target
candidate
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
CN202210643477.6A
Other languages
Chinese (zh)
Other versions
CN114867075A (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.)
Xi'an Ziguang Zhanrui Technology Co ltd
Original Assignee
Xi'an Ziguang Zhanrui Technology Co ltd
Filing date
Publication date
Application filed by Xi'an Ziguang Zhanrui Technology Co ltd filed Critical Xi'an Ziguang Zhanrui Technology Co ltd
Priority to CN202210643477.6A priority Critical patent/CN114867075B/en
Publication of CN114867075A publication Critical patent/CN114867075A/en
Application granted granted Critical
Publication of CN114867075B publication Critical patent/CN114867075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a wireless network switching method, a device, equipment, a storage medium and a product, wherein the method comprises the following steps: determining a current use scene; determining a target network condition corresponding to the current use scene; and if the current network does not meet the target network condition, determining the target network meeting the target network condition, and switching from the current network to the target network. In this way, different current use scenes correspond to different target network conditions, and when the current network cannot meet the requirements of the current use scenes, the terminal equipment is switched to the target network. Therefore, the flexibility of wireless network switching is improved, and the method and the device are more suitable for the actual use requirements of users in different scenes.

Description

Wireless network switching method, device, equipment, storage medium and product
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a wireless network switching method, device, apparatus, storage medium, and product.
Background
With the continuous development of information technology, terminal devices have been widely used in the production and life of people. In the use process of the terminal equipment, a wireless network communication technology (Wi-Fi) is a mainstream wireless internet surfing mode of the terminal equipment.
In the related art, when a wireless network to which a terminal device is connected is not available or the wireless network is disconnected, the terminal device may reconnect to other available wireless networks. The switching condition of the wireless network switching mode is single, and the switching condition cannot meet the actual requirements of users in different scenes.
Disclosure of Invention
The application provides a wireless network switching method, a device, equipment, a storage medium and a product, which can improve the flexibility of network switching conditions and more meet the actual demands of users.
In a first aspect, an embodiment of the present application provides a wireless network handover method, including:
determining a current use scene;
determining a target network condition corresponding to the current use scene;
And if the current network does not meet the target network condition, determining a target network meeting the target network condition, and switching from the current network to the target network.
In one possible implementation manner, the determining a target network that meets the target network condition includes:
acquiring network parameters of a plurality of candidate networks;
And determining the target network in the plurality of candidate networks according to the target network condition and network parameters of the plurality of candidate networks.
In one possible implementation manner, the acquiring network parameters of the plurality of candidate networks includes:
determining a parameter identifier corresponding to the target network condition;
Acquiring network parameters of the candidate networks according to the parameter identification; the network parameters are parameters corresponding to the parameter identifiers.
In a possible implementation manner, the determining the target network from the plurality of candidate networks according to the target network condition and the network parameters of the plurality of candidate networks includes:
determining a default ranking order of the plurality of candidate networks;
And sequentially judging whether the network parameters of the candidate networks meet the target network conditions according to the default arrangement sequence until the target network is determined to be obtained in the plurality of candidate networks.
In a possible implementation manner, the determining the target network from the plurality of candidate networks according to the target network condition and the network parameters of the plurality of candidate networks includes:
determining network quality of the plurality of candidate networks according to network parameters of the plurality of candidate networks;
sorting the plurality of candidate networks according to the order of the network quality from high to low;
Determining the network quality of the current network according to the network parameters of the current network;
And if the network quality of the current network is lower than the network quality of the first candidate network after sequencing, determining the first candidate network as the target network.
In a possible implementation manner, the determining the target network condition corresponding to the current usage scenario includes:
Determining a target network condition corresponding to the current use scene according to a preset scene list; the preset scene list comprises the corresponding relation between each use scene and the network condition.
In one possible implementation manner, the determining the current usage scenario includes:
determining an application program operated by a foreground;
and determining the current use scene according to the type of the application program.
In one possible embodiment, the method further comprises:
if the network state of the terminal equipment changes, determining whether the current network meets the target network condition.
In one possible implementation manner, the network state of the terminal device changes, including at least one of the following cases:
the moving distance of the terminal equipment is larger than or equal to a preset distance;
Detecting a new candidate network;
the signal intensity of the current network is smaller than or equal to the preset signal intensity;
The current usage scenario changes.
In a second aspect, an embodiment of the present application provides a wireless network switching apparatus, including: the device comprises a first determining module, a second determining module and a switching module, wherein,
The first determining module is used for determining a current use scene;
The second determining module is used for determining a target network condition corresponding to the current use scene;
and the switching module is used for determining a target network meeting the target network condition if the current network does not meet the target network condition and switching from the current network to the target network.
In one possible implementation, the switching module includes an acquisition sub-module and a determination sub-module, where,
The acquisition sub-module is used for acquiring network parameters of a plurality of candidate networks;
The determining submodule is used for determining the target network in the candidate networks according to the target network condition and network parameters of the candidate networks.
In a possible implementation manner, the acquiring sub-module is specifically configured to:
determining a parameter identifier corresponding to the target network condition;
Acquiring network parameters of the candidate networks according to the parameter identification; the network parameters are parameters corresponding to the parameter identifiers.
In a possible embodiment, the determining submodule is specifically configured to:
determining a default ranking order of the plurality of candidate networks;
And sequentially judging whether the network parameters of the candidate networks meet the target network conditions according to the default arrangement sequence until the target network is determined to be obtained in the plurality of candidate networks.
In a possible embodiment, the determining submodule is specifically configured to:
determining network quality of the plurality of candidate networks according to network parameters of the plurality of candidate networks;
sorting the plurality of candidate networks according to the order of the network quality from high to low;
Determining the network quality of the current network according to the network parameters of the current network;
And if the network quality of the current network is lower than the network quality of the first candidate network after sequencing, determining the first candidate network as the target network.
In a possible implementation manner, the first determining module is specifically configured to:
determining an application program operated by a foreground;
and determining the current use scene according to the type of the application program.
In a possible implementation manner, the second determining module is specifically configured to:
Determining a target network condition corresponding to the current use scene according to a preset scene list; the preset scene list comprises the corresponding relation between each use scene and the network condition.
In a possible implementation manner, the device further comprises a third determining module, specifically configured to:
if the network state of the terminal equipment changes, determining whether the current network meets the target network condition.
In one possible implementation manner, the network state of the terminal device changes, including at least one of the following cases:
the moving distance of the terminal equipment is larger than or equal to a preset distance;
Detecting a new candidate network;
the signal intensity of the current network is smaller than or equal to the preset signal intensity;
The current usage scenario changes.
In a third aspect, an embodiment of the present application provides a wireless network switching device, including: a processor, a memory;
The memory stores computer-executable instructions;
The processor executing computer-executable instructions stored in the memory causing the processor to perform the method of any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for performing the method of any of the first aspects when the computer-executable instructions are executed by a processor.
In a fifth aspect, an embodiment of the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to any of the first aspects.
The wireless network switching method, the wireless network switching device, the wireless network switching equipment, the wireless network switching storage medium and the wireless network switching product provided by the embodiment of the application determine the current use scene; determining a target network condition corresponding to the current use scene; and if the current network does not meet the target network condition, determining the target network meeting the target network condition, and switching from the current network to the target network. In this way, different current use scenes correspond to different target network conditions, and when the current network cannot meet the requirements of the current use scenes, the terminal equipment is switched to the target network. Therefore, the flexibility of wireless network switching is improved, and the method and the device are more suitable for the actual use requirements of users in different scenes.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a flow chart of a wireless network switching method according to an embodiment of the present application;
fig. 3 is a flow chart of another wireless network switching method according to an embodiment of the present application;
Fig. 4 is a schematic diagram of execution logic of a wireless network switching method according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a wireless network switching device according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of a wireless network switching device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application. Referring to fig. 1, the wireless Access Point (AP) includes a terminal device 101, an AP 102, and an AP 103. The terminal equipment can be mobile phones, computers and other equipment, and the embodiment of the application is not limited to the specific type of the terminal equipment.
When a user is in a large area such as a home or public place, a plurality of different wireless access points may be installed at different locations in the area to provide wireless network services, where the wireless access points have different service set identifiers (SERVICE SET IDENTIFIER, SSID) or different Basic server set identifiers (Basic SERVICE SET, BSSID), where the server set identifiers may be names of the respective wireless access points, and the Basic server set identifiers may be media access Control addresses (MEDIA ACCESS Control addresses, MACs) of the respective wireless access points AP. For example, as shown in fig. 1, in a home scenario, a wireless access point 102 is provided in a bedroom, and a wireless access point 103 is provided in a living room. When a user holds the terminal device 101 in his/her hand to get online in a bedroom, it is connected to the wireless access point 102.
In the related art, the terminal device reconnects the wireless network when the network to which the terminal device is currently connected is not valid or the terminal device has disconnected the network connection. Under the network switching mechanism, when a user roams in a larger area such as a home scene and the like and holds the terminal equipment, the terminal equipment cannot switch the network even if the current network quality of the current connection is poor and the current network requirement of the user cannot be met. For example, as shown in fig. 1, after the user moves from the bedroom to the living room, since the distance between the user and the wireless access point 102 increases, even if the network quality of the wireless access point 102 is poor, the handover condition that the network is invalid or the network is disconnected in the related art is not reached, and the terminal device is not automatically connected to the wireless access point 103 with higher network quality. That is, in the related art, the wireless network switching condition is single, and the wireless network cannot be automatically switched to a better wireless network when the network quality is poor, so that the wireless network cannot meet the actual use requirements of users in different scenes.
In the embodiment of the application, the current use scene of the user terminal equipment is determined, then the target network condition corresponding to the current use scene is determined, when the current network connected with the terminal equipment does not meet the target network condition, the terminal equipment determines the target network meeting the target network condition and switches to the target network from the current network. In this way, the corresponding target network condition is determined based on the current use scenario of the user, and when the current network does not meet the target network condition, the target network meeting the target network condition is automatically switched to. In this way, different switching conditions are determined according to different use scenes, so that the flexibility of wireless network switching is improved; meanwhile, when the quality of the current network is poor, the wireless network with better quality can be automatically switched to, and the actual requirements of users under the current use scene are more met.
The following describes the embodiments of the present application in detail by way of specific examples. It should be noted that the following embodiments may exist independently or may be combined with each other, and for the same or similar content, the description will not be repeated in different embodiments.
Next, a procedure of wireless network handover will be described with reference to the embodiment shown in fig. 2.
Fig. 2 is a flow chart of a wireless network switching method according to an embodiment of the present application. Referring to fig. 2, the method may include:
S201, determining a current use scene.
In the embodiment of the application, the current use scene can refer to a specific scene where the user currently uses the terminal equipment, and can refer to a network game scene, an audio-video call scene, a video watching scene or a file downloading scene and the like. The current usage scenario may be determined based on network operation of the user or an application program run by the terminal device, and the embodiment of the present application is not limited to a specific type and a specific determination manner of the usage scenario.
S202, determining a target network condition corresponding to the current use scene.
In the process of using the terminal equipment, the requirements of different use scenes on the wireless network are different, for example, in the network game scene, in order to realize the rapid data interaction between the user and the game server, the wireless network needs to have lower time delay; in order to realize bidirectional transmission of audio and video data in an audio and video call scene, a wireless network needs to have higher uplink and downlink network speeds; in order to realize smooth playing of video in a video watching scene, a wireless network needs to have higher downlink network speed.
In the embodiment of the application, the target network condition can refer to the minimum requirement of the terminal equipment on the wireless network in the current use scene. If the current network connected by the current using scene terminal equipment does not meet the target network condition, the quality of the current network is poor, and the normal use of the user is influenced. The target network condition may specifically refer to that the network delay is smaller than a preset delay threshold, the uplink and downlink network speeds are both greater than a first preset network speed threshold, or the downlink network speed is greater than a second preset network speed threshold, etc. The specific values of the preset delay threshold, the first preset network speed threshold or the second preset network speed threshold and other thresholds can be obtained by testing in advance in a manual experiment mode based on the chip type of the terminal equipment, and the embodiment of the application is not limited to the specific values.
S203, if the current network does not meet the target network condition, determining the target network meeting the target network condition, and switching from the current network to the target network.
In the embodiment of the application, the target network can be a wireless network meeting the target network condition in the current use scene. Under the condition that the current network does not meet the target network condition, the current network is not capable of meeting the actual requirement of a user in the current use scene, and at the moment, the terminal equipment can determine the target network meeting the target network condition in other wireless networks and disconnect the current network from the target network. Therefore, the terminal equipment can be automatically switched to the target network with higher network quality when the current network is not good, and the actual requirement of a user on the wireless network under the current use scene is met.
The wireless network switching method provided by the embodiment of the application determines the current use scene; determining a target network condition corresponding to the current use scene; and if the current network does not meet the target network condition, determining the target network meeting the target network condition, and switching from the current network to the target network. In this way, different current use scenes correspond to different target network conditions, and when the current network cannot meet the requirements of the current use scenes, the terminal equipment is switched to the target network. Therefore, the flexibility of wireless network switching is improved, and the method and the device are more suitable for the actual use requirements of users in different scenes.
On the basis of any one of the above embodiments, a process of wireless network handover will be described in detail with reference to the embodiment shown in fig. 3.
Fig. 3 is a flowchart of another wireless network switching method according to an embodiment of the present application. Referring to fig. 3, the method may include:
S301, determining an application program operated by a foreground.
S302, determining a current use scene according to the type of the application program.
In the embodiment of the application, the application program operated by the foreground can reflect the actual operation currently performed by the user, and the current use scene of the terminal equipment can be rapidly judged according to the type of the application program operated by the foreground. The terminal device may store in advance the correspondence between different usage scenarios and application types, and may store a plurality of applications included in each application type. The association relationships between different usage scenarios, different application types, and multiple applications may be stored in the form of a list, a manifest, or a preset database, which is not limited in the embodiment of the present application.
For example, the network game scene may correspond to a game application program, the audio-video call scene may correspond to an instant messaging application program or an office conference application program, etc., and a plurality of application programs included in each application program type may be set by default when the terminal device leaves the factory, or may be set by a user in a user-defined manner based on actual requirements, which is not limited by the embodiment of the present application.
Specifically, after detecting an application program running in the foreground, the terminal device can determine the type of the application program, and then determine the current use scene of the terminal device based on the corresponding relation between the type of the application program and the use scene. Therefore, the current use scene of the user aiming at the terminal equipment can be rapidly determined, and the efficiency and accuracy of use scene determination are improved.
S303, determining a target network condition corresponding to the current use scene according to a preset scene list; the preset scene list comprises the corresponding relation between each use scene and the network condition.
In the embodiment of the present application, the terminal device may pre-store a preset scene list, where a correspondence between each usage scene and a network condition is set, for example, a target network condition corresponding to a network game scene is that a network delay is smaller than a preset delay threshold; the target network condition corresponding to the audio and video call scene is that the uplink and downlink network speeds are both greater than a first preset network speed threshold; the video watching scene is that the downlink network speed is larger than a second preset network speed threshold value, and the like. After determining the current use scene, the terminal device can search in a preset scene list to determine the target network condition corresponding to the current use scene.
S304, if the network state of the terminal equipment changes, determining whether the current network meets the target network condition; the network state of the terminal device changes, including at least one of: the moving distance of the terminal equipment is larger than or equal to a preset distance, a new candidate network is detected, the signal intensity of the current network is smaller than or equal to the preset signal intensity, and the current use scene is changed.
In the embodiment of the application, the network state can refer to various states when the terminal equipment uses the wireless network. The moving distance may refer to a distance that the terminal device actually moves, and the moving distance may be specifically determined according to a positioning module (Global Positioning System, GPS) of the terminal device. The preset distance may be a preset critical value for determining the moving distance of the user, and specifically may be 5 meters, 10 meters, and the like. When the moving distance of the terminal equipment is greater than or equal to the preset distance, the terminal equipment can be judged to be in roaming by the user, namely, the terminal equipment can be moved from one area to another area, and at the moment, whether the current network meets the target network condition can be determined by the terminal equipment, so that the condition that the network quality of the current network connected with the terminal equipment is poor at the current position of the user is avoided.
The candidate network may refer to a connectable wireless network that the terminal device can scan for. When a new candidate network appears, the terminal device can judge whether the current network meets the target network condition, if not, the target network can be determined in the candidate network so as to meet the actual use requirement of the user.
The signal strength may refer to a received signal strength (RECEIVED SIGNAL STRENGTH Indication, RSSI) of the current network. The preset signal strength may refer to a preset threshold value for determining the signal strength. When the current network signal strength of the terminal equipment is smaller than or equal to the preset signal strength, the fact that the current network signal of the terminal equipment is weak at the moment is indicated, and the terminal equipment can determine whether the current network meets the target network condition or not so as to avoid the fact that the user normally uses the mobile terminal due to poor current network signal.
If the current usage scenario changes, for example, the terminal device switches from the first scenario to the second scenario, the terminal device needs to determine a new current usage scenario, that is, a target network condition corresponding to the second scenario, then determine whether the current network meets the target network condition corresponding to the new current usage scenario, and if not, execute a subsequent network switching process. Therefore, whether the current network meets the actual requirement of a new scene or not can be timely judged when the scene is switched, and the normal use of the terminal equipment by a user is ensured.
It should be noted that, the network state change of the terminal device may have multiple situations, which may be one of the four situations, or two or more of the four situations may occur at the same time, so that in order to meet the actual requirement of the user, after detecting that the network state change occurs, the terminal device needs to determine whether the current network meets the target network condition. Meanwhile, in addition to the above four cases, other cases may exist for the network state change of the terminal device, which is not limited in the embodiment of the present application.
Specifically, in this step, the terminal device may detect the current usage scenario at the first time and record and store the current usage scenario, and then at the second time, the terminal device detects that the network state changes, so that the terminal device may acquire a target network condition corresponding to the current usage scenario at the second time, and determine a network parameter of the current network to which the terminal device is connected. If the network parameters of the current network meet the target network conditions, the current network meets the network requirements of the current use scene at the second moment, and switching is not needed. If the network parameters of the current network do not meet the target network conditions, the current network cannot meet the network requirements of the current use scene at the second moment, and the wireless network needs to be switched.
S305, if the current network does not meet the target network condition, determining a parameter identifier corresponding to the target network condition.
In the embodiment of the application, the parameter identifier may refer to a specific parameter type of the wireless network, for example, network delay, uplink network speed, downlink network speed, and the like. In the case that the current network does not meet the target network condition, the terminal device may first determine a parameter identifier included in the target network condition, and subsequently may determine a specific parameter value based on the parameter identifier.
S306, acquiring network parameters of a plurality of candidate networks according to the parameter identification; the network parameters are parameters corresponding to the parameter identifiers.
In the embodiment of the application, the network parameter can be a specific parameter value corresponding to the parameter identification of the candidate network. After determining the target network condition corresponding to the current usage scenario and determining the parameter identifier, the terminal device may determine network parameters of the plurality of candidate networks respectively. Specifically, the terminal device may determine network parameters of the candidate network based on the network probe test manner. Taking the parameter identification as the network delay as an example, the terminal device may send a probe frame to the candidate network AP, then receive the response returned by the candidate network AP, and determine the specific value of the network delay based on the process. Of course, other manners may be used to obtain the network parameters of the candidate network, which is not limited by the embodiment of the present application.
S307, determining a target network in the candidate networks according to the target network conditions and the network parameters of the candidate networks, and switching from the current network to the target network.
In the embodiment of the application, after the network parameters of the candidate networks are determined, the terminal equipment can determine the target network meeting the target network conditions based on the network parameters of the candidate networks, and finally disconnect the current network and connect the current network to the target network, so that the switching of the wireless network is realized, and the actual requirements of users under the current use situation are met.
In one possible implementation manner, step S307 may specifically include the following two implementations:
The method comprises the steps of firstly, determining a default arrangement sequence of a plurality of candidate networks; and sequentially judging whether the network parameters of the candidate networks meet the target network conditions according to the default arrangement sequence until the target network is determined to be obtained in the plurality of candidate networks.
In the embodiment of the present application, the default arrangement sequence may refer to the ordering of the terminal device for the plurality of candidate networks according to the preset index. The preset index may be signal strength, packet rate (PACKET RATE), whether it is valid for a long period of time, whether it is an open Network, whether it is a history connected Network, whether it is a fifth generation mobile communication Network (5G Network), etc. The specific type of the preset index and the judgment standard can be flexibly set based on the actual requirement, and the embodiment of the application is not limited to this.
In this step, for a plurality of candidate networks ordered according to a default arrangement sequence, the terminal device may first determine a network parameter of a first candidate network, and determine whether the network parameter meets a target network condition. If so, determining the first candidate network as a target network, connecting the first candidate network from the current network to the target network, and not testing and judging the subsequent candidate networks any more so as to avoid the waste of computing resources. If not, the terminal equipment continues to collect the network parameters of the second candidate network, judges whether the network parameters meet the target network conditions, and so on until the target network is determined from the candidate networks. Therefore, by sequentially acquiring the network parameters of the candidate networks and judging whether the network parameters meet the target network conditions, the candidate networks after the target network is determined do not need to be tested and verified, so that the computing resources are saved, and the computing efficiency is improved.
Of course, if the network parameters of the plurality of candidate networks cannot meet the target network condition, the terminal device may not perform network switching, continue to use the current network, or switch to the candidate network with the best network parameters, which is not limited in the embodiment of the present application.
According to the second implementation mode, network quality of a plurality of candidate networks is determined according to network parameters of the plurality of candidate networks; sequencing a plurality of candidate networks according to the sequence of the network quality from high to low; determining the network quality of the current network according to the network parameters of the current network; and if the network quality of the current network is lower than the network quality of the first candidate network after sequencing, determining the first candidate network as a target network.
In the embodiment of the application, the network quality can refer to an index which is determined based on network parameters and used for representing the quality of the wireless network. The specific judgment standard of the network quality corresponds to the parameter identification, for example, the lower the network delay is, the better the network quality is; or the higher the uplink and downlink network speed is, the better the network quality is, etc.
In the step, after determining network parameters of a plurality of candidate networks, the terminal device may determine network quality of the candidate networks according to the network parameters, and then sort the plurality of candidate networks according to a sequence from high to low of the network quality; determining the network quality of the current network according to the network parameters of the current network; and then the terminal equipment can judge whether the network quality of the current network is higher than the network quality of the first candidate network after sequencing, if the network quality of the current network is higher than the network quality of the first candidate network, or the network quality of the current network is equal to the network quality of the first candidate network, the terminal equipment does not perform switching operation. If the network quality of the current network is lower than the network quality of the first candidate network, the terminal device may switch to the candidate network ranked first. Therefore, the current network with poor network quality can be switched to the target network with better network quality, and the actual requirement of the user on the wireless network in the current use scene is met.
It should be noted that, the first candidate network after the sorting may or may not meet the target network condition, in this step, the network quality of the current network is compared with the first candidate network with the best network quality, and if the network quality of the first candidate network is better, the switching is performed. Therefore, even if the candidate networks do not meet the target network conditions, the terminal equipment can be switched to the wireless network with better network quality, and the network quality of the user can be improved to a certain extent. Of course, if the current network and all candidate networks do not meet the target network condition, the terminal device may not perform wireless network handover, which is not limited by the embodiment of the present application.
In the embodiment shown in FIG. 3, a foreground running application is determined; determining a current use scene according to the type of the application program; determining a target network condition corresponding to a current use scene according to a preset scene list; if the network state of the terminal equipment changes, determining whether the current network meets the target network condition; if the current network does not meet the target network condition, determining a parameter identifier corresponding to the target network condition; acquiring network parameters of a plurality of candidate networks according to the parameter identification; and determining a target network in the plurality of candidate networks according to the target network condition and the network parameters of the plurality of candidate networks, and switching from the current network to the target network. In this way, different current use scenes correspond to different target network conditions, and when the current network cannot meet the target network conditions of the current use scenes, the terminal equipment is switched to the target network. Therefore, the flexibility of wireless network switching is improved, and the method and the device are more suitable for the actual use requirements of users in different scenes.
Fig. 4 is a schematic diagram illustrating execution logic of a wireless network handover method according to an embodiment of the present application. As shown in fig. 4, the terminal device first determines the current usage scenario. After detecting the change in the network state, the terminal device determines a corresponding target network condition of the current usage scenario (after the change in the network state), and determines whether the current network satisfies the target network condition. If yes, the wireless network is not switched, and the process is ended. If not, the terminal equipment determines a target network in the candidate networks. The specific determination process can be to judge whether the candidate networks meet the target network condition one by one until the target network is determined; or acquiring network parameters of all candidate networks, and selecting the candidate network with the best network quality from the candidate networks meeting the target network conditions as the target network. After determining the target network, the terminal device may disconnect the current network and connect to the target network.
In this way, the embodiment of the application can determine different target network conditions according to different use scenes, thereby improving the flexibility of wireless network switching; when the current network does not meet the target network conditions, the target network meeting the target network conditions can be determined from the candidate networks, so that the network quality of the network connected with the terminal equipment is improved, and the actual requirements of users under the current use scene are more met.
Fig. 5 is a schematic structural diagram of a wireless network switching device according to an embodiment of the present application. Referring to fig. 5, the wireless network switching apparatus 10 may include: a first determination module 11, a second determination module 12 and a switching module 13, wherein,
The first determining module 11 is configured to determine a current usage scenario;
the second determining module 12 is configured to determine a target network condition corresponding to the current usage scenario;
The switching module 13 is configured to determine a target network that satisfies the target network condition if the current network does not satisfy the target network condition, and switch from the current network to the target network.
The wireless network switching device provided by the embodiment of the application can execute the technical scheme shown in the embodiment of the method, and the implementation principle and the beneficial effects are similar, and are not repeated here.
In a possible embodiment, the switching module 13 comprises an acquisition sub-module and a determination sub-module, wherein,
The acquisition submodule is used for acquiring network parameters of a plurality of candidate networks;
A determining sub-module for determining a target network among the plurality of candidate networks according to the target network condition and network parameters of the plurality of candidate networks.
In a possible implementation manner, the obtaining sub-module is specifically configured to:
Determining a parameter identifier corresponding to the target network condition;
acquiring network parameters of a plurality of candidate networks according to the parameter identification; the network parameters are parameters corresponding to the parameter identifiers.
In one possible embodiment, the determination sub-module is specifically used for:
determining a default ranking order of the plurality of candidate networks;
and sequentially judging whether the network parameters of the candidate networks meet the target network conditions according to the default arrangement sequence until the target network is determined to be obtained in the plurality of candidate networks.
In one possible embodiment, the determination sub-module is specifically used for:
Determining network quality of the plurality of candidate networks according to network parameters of the plurality of candidate networks;
Sequencing a plurality of candidate networks according to the sequence of the network quality from high to low;
determining the network quality of the current network according to the network parameters of the current network;
and if the network quality of the current network is lower than the network quality of the first candidate network after sequencing, determining the first candidate network as a target network.
In a possible embodiment, the first determining module 11 is specifically configured to:
determining an application program operated by a foreground;
The current usage scenario is determined according to the type of the application.
In a possible embodiment, the second determining module 12 is specifically configured to:
determining a target network condition corresponding to a current use scene according to a preset scene list; the preset scene list comprises the corresponding relation between each use scene and the network condition.
In a possible embodiment, the apparatus 10 further comprises a third determining module, in particular for:
if the network state of the terminal equipment changes, determining whether the current network meets the target network condition.
In one possible embodiment, the network state of the terminal device changes, including at least one of the following:
the moving distance of the terminal equipment is larger than or equal to a preset distance;
Detecting a new candidate network;
The signal intensity of the current network is smaller than or equal to the preset signal intensity;
The current usage scenario changes.
The wireless network switching device provided by the embodiment of the application can execute the technical scheme shown in the embodiment of the method, and the implementation principle and the beneficial effects are similar, and are not repeated here.
The wireless network switching device 10 may be a chip, a chip module, or the like.
Fig. 6 is a schematic structural diagram of a wireless network switching device according to an embodiment of the present application. Referring to fig. 6, the wireless network switching apparatus 20 may include: a memory 21, and a processor 22. The memory 21, the processor 22, are illustratively interconnected by a bus 23.
The memory 21 is used for storing program instructions;
The processor 22 is configured to execute the program instructions stored in the memory, so that the processor performs the wireless network handover method according to the above embodiment.
The wireless network switching device shown in the embodiment of fig. 6 may execute the technical solution shown in the embodiment of the method, and its implementation principle and beneficial effects are similar, and will not be described herein again.
Embodiments of the present application provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the above-described wireless network handover method when the computer-executable instructions are executed by a processor.
Embodiments of the present application may also provide a computer program product, including a computer program, which when executed by a processor, may implement the above-mentioned wireless network handover method.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (abbreviated as ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape (English: MAGNETIC TAPE), floppy disk (English: floppy disk), optical disk (English: optical disk), and any combination thereof.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
With respect to each of the apparatuses and each of the modules/units included in the products described in the above embodiments, it may be a software module/unit, a hardware module/unit, or a software module/unit, and a hardware module/unit. The individual devices, products may be applied to or integrated in a chip, a chip module or a terminal. For example, for each device or product applied to or integrated on a chip, each module/chip included in the device or product may be implemented in hardware such as a circuit, or at least part of the modules/units may be implemented in software program, where the software program runs on a processor integrated inside the chip, and the rest of the modules/units may be implemented in hardware such as a circuit.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is also intended to include such modifications and variations.
In the present disclosure, the term "include" and variations thereof may refer to non-limiting inclusion; the term "or" and variations thereof may refer to "and/or". The terms "first," "second," and the like in this specification are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. In the present application, "a plurality of" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.

Claims (9)

1. A wireless network switching method, comprising:
determining a current use scene;
Determining a target network condition corresponding to the current use scene; the network game scene is a network game scene, wherein the target network condition corresponding to the network game scene is that the network time delay is smaller than a preset time delay threshold value; the target network condition corresponding to the audio and video call scene is that the uplink and downlink network speeds are both greater than a first preset network speed threshold; the audio and video watching scene is that the downlink network speed is larger than a second preset network speed threshold value;
If the current network does not meet the target network conditions, determining a target network meeting the target network conditions, and switching from the current network to the target network;
The determining a target network that satisfies the target network condition includes:
acquiring network parameters of a plurality of candidate networks;
determining a default ranking order of the plurality of candidate networks;
Sequentially judging whether the network parameters of the candidate networks meet the target network conditions according to the default arrangement sequence until the target network is determined to be obtained in the plurality of candidate networks;
If the network parameters of the candidate networks cannot meet the target network conditions, network switching is not performed, or the candidate network with the optimal network parameters is switched to;
or acquiring network parameters of a plurality of candidate networks;
determining network quality of the plurality of candidate networks according to network parameters of the plurality of candidate networks;
sorting the plurality of candidate networks according to the order of the network quality from high to low;
Determining the network quality of the current network according to the network parameters of the current network;
if the network quality of the current network is lower than the network quality of the first candidate network after sequencing, determining the first candidate network as the target network;
And if the network quality of the current network is higher than or equal to the network quality of the first candidate network, not switching.
2. The method of claim 1, wherein the obtaining network parameters for a plurality of candidate networks comprises:
determining a parameter identifier corresponding to the target network condition;
Acquiring network parameters of the candidate networks according to the parameter identification; the network parameters are parameters corresponding to the parameter identifiers.
3. The method of claim 1, wherein the determining the current usage scenario comprises:
determining an application program operated by a foreground;
and determining the current use scene according to the type of the application program.
4. The method of claim 1, wherein the determining the target network condition corresponding to the current usage scenario comprises:
Determining a target network condition corresponding to the current use scene according to a preset scene list; the preset scene list comprises the corresponding relation between each use scene and the network condition.
5. The method of any one of claims 1-2 or 3-4, further comprising:
if the network state of the terminal equipment changes, determining whether the current network meets the target network condition.
6. The method of claim 5, wherein the network state of the terminal device changes, comprising at least one of:
the moving distance of the terminal equipment is larger than or equal to a preset distance;
Detecting a new candidate network;
the signal intensity of the current network is smaller than or equal to the preset signal intensity;
The current usage scenario changes.
7. A wireless network switching apparatus, comprising: the device comprises a first determining module, a second determining module and a switching module, wherein,
The first determining module is used for determining a current use scene;
The second determining module is used for determining a target network condition corresponding to the current use scene; the network game scene is a network game scene, wherein the target network condition corresponding to the network game scene is that the network time delay is smaller than a preset time delay threshold value; the target network condition corresponding to the audio and video call scene is that the uplink and downlink network speeds are both greater than a first preset network speed threshold; the audio and video watching scene is that the downlink network speed is larger than a second preset network speed threshold value;
The switching module is used for determining a target network meeting the target network condition if the current network does not meet the target network condition, and switching from the current network to the target network;
The switching module comprises:
an acquisition sub-module for acquiring network parameters of a plurality of candidate networks;
A determining submodule, configured to determine a target network among a plurality of candidate networks according to a target network condition and network parameters of the plurality of candidate networks;
The determining submodule is specifically configured to determine a default arrangement sequence of the plurality of candidate networks;
Sequentially judging whether the network parameters of the candidate networks meet the target network conditions according to the default arrangement sequence until the target network is determined to be obtained in the plurality of candidate networks; if the network parameters of the candidate networks cannot meet the target network conditions, network switching is not performed, or the candidate network with the optimal network parameters is switched to;
Or the determining submodule is specifically configured to determine network quality of the multiple candidate networks according to network parameters of the multiple candidate networks;
sorting the plurality of candidate networks according to the order of the network quality from high to low;
Determining the network quality of the current network according to the network parameters of the current network;
If the network quality of the current network is lower than the network quality of the first candidate network after sequencing, determining the first candidate network as the target network; and if the network quality of the current network is higher than or equal to the network quality of the first candidate network, not switching.
8. A wireless network switching device, comprising: a processor, a memory;
The memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of any one of claims 1 to 6.
9. A computer readable storage medium having stored therein computer executable instructions for implementing the method of any of claims 1 to 6 when the computer executable instructions are executed by a processor.
CN202210643477.6A 2022-06-09 Wireless network switching method, device, equipment, storage medium and product Active CN114867075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210643477.6A CN114867075B (en) 2022-06-09 Wireless network switching method, device, equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210643477.6A CN114867075B (en) 2022-06-09 Wireless network switching method, device, equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN114867075A CN114867075A (en) 2022-08-05
CN114867075B true CN114867075B (en) 2024-06-07

Family

ID=

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065495A (en) * 2009-11-13 2011-05-18 大唐移动通信设备有限公司 Method, system and base station for selecting target cell
CN102111853A (en) * 2009-12-25 2011-06-29 联想(北京)有限公司 Method and device for automatically switching network connection as well as mobile terminal
CN104936240A (en) * 2015-05-28 2015-09-23 魅族科技(中国)有限公司 Network switching method and terminal
WO2017012299A1 (en) * 2015-07-20 2017-01-26 中兴通讯股份有限公司 Selection method and device for cell reestablishment in network sharing
CN106817731A (en) * 2015-11-30 2017-06-09 华为终端(东莞)有限公司 The method for switching network and terminal device of terminal
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN108566660A (en) * 2017-12-29 2018-09-21 咪咕文化科技有限公司 A kind of method for switching network, device and computer readable storage medium
CN110891292A (en) * 2019-11-20 2020-03-17 三星电子(中国)研发中心 Method and device for automatically switching network for terminal
WO2020063921A1 (en) * 2018-09-29 2020-04-02 闻泰通讯股份有限公司 Wireless network autonomous optimization method, apparatus and device, and medium
US10831971B1 (en) * 2019-06-05 2020-11-10 International Business Machines Corporation Net layer promotion with swap capability in electronic design
WO2021129742A1 (en) * 2019-12-24 2021-07-01 深圳市万普拉斯科技有限公司 Network data recovery method and device, and mobile terminal
CN114125974A (en) * 2021-12-03 2022-03-01 Oppo广东移动通信有限公司 Cell selection method, device, terminal and storage medium
CN114363973A (en) * 2022-01-05 2022-04-15 Oppo广东移动通信有限公司 Network switching method and device, electronic equipment and computer readable storage medium
CN114449617A (en) * 2020-11-06 2022-05-06 中兴通讯股份有限公司 Network access method, terminal and computer readable storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065495A (en) * 2009-11-13 2011-05-18 大唐移动通信设备有限公司 Method, system and base station for selecting target cell
CN102111853A (en) * 2009-12-25 2011-06-29 联想(北京)有限公司 Method and device for automatically switching network connection as well as mobile terminal
CN104936240A (en) * 2015-05-28 2015-09-23 魅族科技(中国)有限公司 Network switching method and terminal
WO2017012299A1 (en) * 2015-07-20 2017-01-26 中兴通讯股份有限公司 Selection method and device for cell reestablishment in network sharing
CN106376015A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Selection method and device for re-establishing cell in network sharing
CN106817731A (en) * 2015-11-30 2017-06-09 华为终端(东莞)有限公司 The method for switching network and terminal device of terminal
CN107466077A (en) * 2017-07-24 2017-12-12 维沃移动通信有限公司 A kind of method for switching network and mobile terminal
CN108566660A (en) * 2017-12-29 2018-09-21 咪咕文化科技有限公司 A kind of method for switching network, device and computer readable storage medium
WO2020063921A1 (en) * 2018-09-29 2020-04-02 闻泰通讯股份有限公司 Wireless network autonomous optimization method, apparatus and device, and medium
US10831971B1 (en) * 2019-06-05 2020-11-10 International Business Machines Corporation Net layer promotion with swap capability in electronic design
CN110891292A (en) * 2019-11-20 2020-03-17 三星电子(中国)研发中心 Method and device for automatically switching network for terminal
WO2021129742A1 (en) * 2019-12-24 2021-07-01 深圳市万普拉斯科技有限公司 Network data recovery method and device, and mobile terminal
CN114449617A (en) * 2020-11-06 2022-05-06 中兴通讯股份有限公司 Network access method, terminal and computer readable storage medium
WO2022095436A1 (en) * 2020-11-06 2022-05-12 中兴通讯股份有限公司 Network access method, terminal, and computer-readable storage medium
CN114125974A (en) * 2021-12-03 2022-03-01 Oppo广东移动通信有限公司 Cell selection method, device, terminal and storage medium
CN114363973A (en) * 2022-01-05 2022-04-15 Oppo广东移动通信有限公司 Network switching method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CATT.R2-1906645 "Discussion on UE Behavior When More than One Candidate Cell Meets the Condition".3GPP tsg_ran\wg2_rl2.2019,(第tsgr2_106期),全文. *

Similar Documents

Publication Publication Date Title
US11240740B2 (en) Method for processing radio frequency resources and terminal
US10028196B2 (en) Method and apparatus for selecting an access point based on direction of movement
US7496383B2 (en) Mobile communication system and base station control apparatus
CN102084688B (en) Method and system for inter-frequency or inter-RATcell reselection
CN109089261B (en) Method, apparatus, computer device and storage medium for wireless roaming triggering
CN109076357A (en) Application method, relevant device and system are migrated in mobile limbic system
CN111988819A (en) Method, system and base station for keeping continuity of slicing service in cell switching scene
CN103517363B (en) Differentiation system quick return method and terminal
CN104852937B (en) Method for network access and device for mobile application
CN105101357A (en) Method and apparatus for controlling network connection
CN110839263A (en) Information configuration method, device, equipment and storage medium
CN108541029A (en) A kind of cell switching method and device
CN105306725A (en) Information processing method and electronic equipment
US20170325242A1 (en) Improving voice call performance testing
CN104427561A (en) Communication apparatus, methods for determining whether to perform cell measurement and methods for cell reselection
CN111093238B (en) Wireless network control method and device, storage medium and electronic equipment
CN114867075B (en) Wireless network switching method, device, equipment, storage medium and product
CN113543245A (en) Method for switching base station by user equipment and network element equipment
CN110602738B (en) Network connection method and device and electronic device
CN109819482B (en) Data processing method and device
CN114867075A (en) Wireless network switching method, device, equipment, storage medium and product
US20090275336A1 (en) Mobile station capable of switching connection destination radio base station and method of switching connection destination
CN111787584B (en) Data acquisition method and system based on Internet of things
CN114980234A (en) Pilot frequency switching method, device and storage medium
EP2451210A1 (en) Communication service handover processing system for femtocells and method thereof

Legal Events

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