Network switching method, electronic device, and storage medium

By detecting the signal strength and connection status of the second network, frequent network switching is avoided, which solves the problems of rapid power consumption and poor internet experience caused by incomplete WiFi signal coverage, thus improving the user experience.

CN115551040BActive Publication Date: 2026-03-24HUBEI XINGJI MEIZU TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-10
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

In some locations, incomplete WiFi signal coverage causes mobile devices to frequently switch between mobile communication networks and wireless LANs, resulting in rapid battery drain and a poor internet experience.

Method used

By scanning wireless access devices in the environment, the signal strength and network connection status of the second network are detected to determine whether the handover conditions are met. Within the trial period, it is determined whether to perform network handover to avoid frequent handover.

Benefits of technology

It improves the user experience, alleviates the problem of rapid power consumption of electronic devices, and ensures operation under a stable network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115551040B_ABST
    Figure CN115551040B_ABST
Patent Text Reader

Abstract

A network switching method, an electronic device and a storage medium, the method comprising: when the electronic device works under a first network, scanning a wireless access device in an environment to detect whether a second network exists; in response to detecting the second network, performing network switching to make the electronic device work under the second network when it is determined that a parameter associated with network quality of the second network meets a network switching condition within a try period, wherein the parameter associated with network quality of the second network comprises signal strength and network connection state of the second network. The method can avoid frequent switching between different networks of the electronic device, thereby improving user experience, and at the same time, alleviating the problem of fast power consumption of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of this disclosure relate to a network switching method, an electronic device, and a storage medium. Background Technology

[0002] With the widespread adoption of mobile devices and the rapid advancements in technology and the diversification of smart terminal devices, consumers can access the internet through various means, including mobile communication networks (e.g., 3G / 4G / 5G mobile communication networks) and wireless local area networks (e.g., WiFi). For example, smartphones and other mobile terminals can typically access the internet using both mobile communication networks (i.e., using mobile data services) and wireless local area networks. Furthermore, settings allow switching between these networks as needed, such as prioritizing mobile network access and automatically or manually switching to wireless local area networks when mobile networks are unavailable. Consumers have increasingly higher demands for their internet experience. For instance, in public places, such as waiting at a train station, users expect a strong WiFi signal to access popular information and pass the time.

[0003] However, in some cases, although some venues provide Wi-Fi, there may be Wi-Fi dead zones in certain locations, meaning there is no Wi-Fi signal coverage. This will cause mobile devices that are set to automatically switch between mobile communication networks and Wi-Fi to frequently switch between being connected to Wi-Fi and using mobile communication networks (data services) without being connected to Wi-Fi. This results in the mobile devices (such as mobile phones, laptops, tablets, etc.) consuming power quickly and having a poor internet browsing experience. Summary of the Invention

[0004] To address the aforementioned problems, at least one embodiment of this disclosure provides a network switching method. The method includes: when an electronic device is operating under a first network, scanning for wireless access devices in the environment to detect the presence of a second network; and in response to detecting the second network, performing a network switching operation to allow the electronic device to operate under the second network when, within an attempt period, parameters associated with the network quality of the second network satisfy network switching conditions. The parameters associated with the network quality of the second network include the signal strength and network connectivity status of the second network. This method can avoid frequent switching between different networks by the electronic device, thereby improving the user experience and alleviating the problem of rapid power consumption of the electronic device.

[0005] For example, a network switching method provided in one embodiment of this disclosure may further include: when it is determined during the attempt period that the parameters associated with the network quality of the second network do not meet the network switching conditions, re-determining whether the parameters associated with the network quality of the second network meet the network switching conditions in another attempt period after the attempt period.

[0006] For example, in a network switching method provided in one embodiment of this disclosure, when the parameters associated with the network quality of the second network do not meet the network switching conditions, and the number of times the parameters associated with the network quality of the second network fail to meet the network switching conditions within one or more of the attempt periods reaches a threshold number, the electronic device rescans the wireless access devices in the environment to detect whether there are other networks.

[0007] For example, in a network switching method provided in one embodiment of this disclosure, determining that the parameters of the second network associated with network quality meet the network switching conditions within the trial period includes: performing multiple scans on the second network within the trial period to determine that the parameters of the second network associated with network quality reach a quality threshold.

[0008] For example, in a network switching method provided in one embodiment of this disclosure, determining that the parameters of the second network associated with network quality reach the quality threshold includes: for each scan in multiple scans, determining that the parameters of the second network associated with network quality reach the quality threshold.

[0009] For example, in a network switching method provided in one embodiment of this disclosure, in response to the fact that the network quality-related parameters of the second network reach the quality threshold in each scan, it is determined within the trial period that the network quality-related parameters of the second network meet the network switching conditions.

[0010] For example, in a network switching method provided in an embodiment of this disclosure, in response to the fact that the parameters associated with network quality of the second network do not reach the quality threshold in each scan, it is determined within the trial period that the parameters associated with network quality of the second network do not meet the network switching conditions.

[0011] For example, a network switching method provided in one embodiment of this disclosure may further include: stopping scanning of the second network in response to the fact that a parameter associated with the network quality of the second network has not reached the quality threshold.

[0012] For example, a network switching method provided in one embodiment of this disclosure may further include: after stopping scanning of the second network, determining whether the number of scans of the second network has reached a scanning threshold. In response to the fact that the number of scans of the second network has not reached the scanning threshold, re-scanning the second network. In response to the fact that the number of scans of the second network has reached the scanning threshold, receiving a first input to the electronic device to trigger scanning of the second network.

[0013] For example, in a network switching method provided in an embodiment of this disclosure, the first network is a cellular network and the second network is a wireless local area network.

[0014] For example, in a network switching method provided in an embodiment of this disclosure, the network switching conditions include: the signal strength is greater than or equal to a preset strength value, and the network connection status meets the network connection smoothness condition.

[0015] For example, in a network switching method provided in an embodiment of this disclosure, the signal strength includes a received signal strength indication value, and the network connection status includes network latency.

[0016] For example, in a network switching method provided in one embodiment of this disclosure, the wireless access device is an access point that has been stored in the electronic device and / or an access point that emits periodic broadcasts.

[0017] According to at least one embodiment of this disclosure, an electronic device is also provided, comprising: a communication unit configured to establish communication connections with different wireless networks; and a control unit configured to control the electronic device to switch between the different wireless networks. The switching includes: when the electronic device is operating under a first network, scanning for wireless access devices in the surrounding environment to detect the presence of a second network; in response to detecting the second network, determining whether parameters associated with network quality of the second network meet network switching conditions within a predetermined time period; and in response to the network quality associated parameters of the second network meeting the network switching conditions, performing network switching to enable the electronic device to operate under the second network, wherein the parameters associated with network quality of the second network include the signal strength and network connection status of the second network.

[0018] According to at least one embodiment of this disclosure, an electronic device is also provided, comprising a processor and a memory, the memory including one or more computer program modules. The one or more computer program modules are stored in the memory and configured to be executed by the processor, and the one or more computer program modules include instructions for implementing the data processing method described above.

[0019] According to at least one embodiment of the present disclosure, a computer-readable storage medium is also provided for storing non-transitory computer-readable instructions, wherein the above-described data processing method can be implemented when the non-transitory computer-readable instructions are executed by a computer. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings of the embodiments will be briefly described below. Obviously, the drawings described below only relate to some embodiments of this disclosure and are not intended to limit this disclosure.

[0021] Figure 1A A flowchart of a network switching method according to at least one embodiment of the present disclosure is shown.

[0022] Figure 1B A schematic diagram of a hardware architecture according to at least one embodiment of the present disclosure is shown.

[0023] Figure 2 Another flowchart of a network handover method according to at least one embodiment of the present disclosure is shown.

[0024] Figure 3 A flowchart illustrating the determination of network quality-related parameters of a second network that satisfy network switching conditions during a trial period, according to at least one embodiment of the present disclosure, is shown.

[0025] Figure 4 An example flowchart of scanning a second network according to at least one embodiment of the present disclosure is shown.

[0026] Figure 5 A schematic diagram of an electronic device according to at least one embodiment of the present disclosure is shown.

[0027] Figure 6 A schematic diagram of another electronic device according to at least one embodiment of the present disclosure is shown.

[0028] Figure 7 A schematic diagram of a computer-readable storage medium according to at least one embodiment of the present disclosure is shown. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the described embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0030] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0031] Unless otherwise defined, the technical or scientific terms used in this disclosure shall have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” and similar terms used in this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an,” “a,” or “the,” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising,” “including,” or “including,” and similar terms mean that the element or object preceding the term encompasses the elements or objects listed following the term and their equivalents, without excluding other elements or objects. The terms “connected,” “linked,” or “connected,” and similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0032] As mentioned above, when a device is set to automatically switch between mobile communication networks and wireless local area networks (WLANs) to connect to WiFi in public places, there are often situations where there is no WiFi signal coverage. This causes the mobile device to frequently switch between two network connection states: connecting to WiFi and using WLAN, and not connecting to WiFi and using mobile communication networks. As a result, the mobile device consumes power quickly and has a poor internet experience.

[0033] To address the aforementioned problems, at least one embodiment of this disclosure provides a network switching method. This method can avoid frequent switching between different networks by electronic devices, thereby improving user experience and alleviating the problem of rapid power consumption of electronic devices. The following will combine... Figure 1A and Figure 1B To better illustrate the network switching method provided in this disclosure.

[0034] Figure 1A A flowchart of a network switching method provided in at least one embodiment of the present disclosure is shown.

[0035] like Figure 1A As shown, the network switching method may include the following steps S110 and S120.

[0036] Step S110: When the electronic device is operating under the first network, it scans for wireless access devices in the environment to detect the presence of a second network.

[0037] Step S120: In response to the detection of a second network, when it is determined within the trial period that the parameters of the second network associated with network quality meet the network switching conditions, a network switching is performed to enable the electronic device to operate under the second network, wherein the parameters of the second network associated with network quality include the signal strength and network connection status of the second network.

[0038] Figure 1B A schematic diagram of a hardware architecture provided by at least one embodiment of the present disclosure is shown, wherein, Figure 1A The network switching method shown above can be implemented in this hardware architecture.

[0039] For example, in Figure 1B In this configuration, when electronic device 10 operates under the first network 15A (access service provided by cellular base station 12 in the covered cells), it scans the environment for wireless access devices 14 to detect the presence of a second network 15B. In response to the detection of the second network 15B, and when electronic device 10 determines within the attempt period that the network quality-related parameters of the second network 15B meet the network handover conditions, a network handover is performed, causing electronic device 10 to switch from the first network 15A and access the second network 15B, thereby operating under the second network 15B. Here, the network quality-related parameters of the second network 15B include the signal strength and network connectivity status of the second network 15B.

[0040] In some embodiments, an electronic device 10 operating under a first network 15A, such as a cellular network (e.g., a mobile communication network) (e.g., receiving instant messaging information, browsing media and information), can scan for wireless access devices 14 in the environment to detect the presence of a second network 15B, such as a wireless local area network. For example, the electronic device 10 can be a portable electronic device, such as a mobile phone, netbook, tablet computer with a network card, etc. In a wireless communication system, the electronic device 10 can act as a station (STA) device.

[0041] Wireless access device 14 may be an access point (AP) device that is already stored in an electronic device and / or an access point device that can make periodic broadcasts in a wireless communication system.

[0042] Typically, STA devices can obtain information about surrounding WiFi hotspots through WiFi scanning and selectively or automatically join the wireless LAN of AP devices. Depending on the WiFi scanning method, WiFi scanning can be further divided into active scanning and passive scanning.

[0043] Active scanning refers to the process where a STA device actively sends Probe Request frames on the WiFi channel during scanning, and discovers surrounding WiFi hotspots by receiving Probe Response frames from AP devices. The Probe Response frame may include, but is not limited to, wireless network information such as Service Set Identifier (SSID), Basic Service Set Identifier (BSSID), encryption and authentication methods, etc.

[0044] Passive scanning refers to the process where a STA device discovers nearby WiFi hotspots by listening to beacon frames periodically sent by an AP device. In other words, the AP device periodically broadcasts beacon frames on the WiFi channel, which include wireless network information such as SSID, BSSID, encryption and authentication methods. The STA device switches between different WiFi channels, listening for these beacon frames.

[0045] For example, the wireless LAN can be a type of wireless LAN based on different network protocols. The network protocol of the wireless LAN can be, for example, the 802.11 protocol, the 802.16 protocol, etc. For example, the wireless LAN network can be a wireless fidelity network (WiFi). In the following description, WiFi will be used as an example without limitation.

[0046] like Figure 1BAs shown, when an electronic device 10 operating under a cellular network 15A (a first network 15A) detects an available wireless local area network 15B (a second network 15B) in the environment, for example, when an available WiFi hotspot for wireless local area network is detected in the surrounding environment, it determines whether to attempt to connect to the WiFi hotspot by determining whether the network quality-related parameters of the second network 15B meet the network switching conditions within an attempt period (i.e., a predetermined time interval for attempting a connection). The length of the attempt period can be predetermined for factors such as different network types, and the embodiments of this disclosure do not impose specific limitations on this. For example, the second network 15B is scanned multiple times within the attempt period of the predetermined length to determine whether the network quality-related parameters of the second network 15B reach a quality threshold. The network quality-related parameters of the second network 15B may include, but are not limited to, the signal strength and network connection status of the second network. For example, the signal strength of the second network may include a Received Signal Strength Indicator (RSSI), which indicates the signal strength at a location within the coverage of the second network. Generally, the received signal strength indicator value can be simply indicated by, for example, the number of signal bars displayed in the signal strength icon of the electronic device, such as 1 to 5 bars, where more signal bars indicate a better signal strength. In some other embodiments, the received signal strength indicator value may also be indicated in other forms, such as a percentage value of received strength, etc., which is not limited here. Network connectivity status may include network latency time, for example, the network latency time when using a wireless LAN can be calculated by monitoring the ping command sent by the electronic device when connected to a wireless LAN, thereby detecting the ping packet data sent.

[0047] like Figure 1B As shown, when the parameters associated with network quality of the second network 15B are determined to meet the network switching conditions within the trial period, the electronic device 10 performs network switching so that the electronic device 10 can connect to an available WiFi hotspot and process communication information, browse media information, etc. through the connected WiFi hotspot.

[0048] For the two network quality-related parameters, signal strength and network connectivity status, network handover conditions can include: signal strength greater than or equal to a preset strength value, and network connectivity status meeting the network connectivity availability condition. Only when the signal strength is determined to be greater than or equal to the preset strength value and the network connectivity status meets the network connectivity availability condition within the attempt period can the network handover conditions, along with the parameters associated with determining network quality, be met. In other words, as... Figure 1BAs shown, when it is determined within the trial period that, for example, the received signal strength indication value of the second network 15B is greater than or equal to a preset strength value and the network delay time meets the network connection conditions, the electronic device 10 performs a network switch from the first network 15A to the second network 15B so that the electronic device 10 can operate under the second network 15B.

[0049] By determining, as described above, that the parameters of the second network associated with network quality meet the network switching conditions within the trial period, and then performing network switching to enable the electronic device to operate under the second network, the electronic device can avoid switching back to the first network due to instability of the second network, or switching back and forth between the first and second networks. In other words, the network switching method according to at least one embodiment of this disclosure enables the electronic device operating under the first network to perform network switching only after detecting a stable second network, thereby avoiding frequent switching between different networks, improving the user's internet experience, and alleviating the problem of rapid power consumption of electronic devices.

[0050] The following will combine Figure 2 To further explain the process by which an electronic device performs a network switch to operate under the second network in response to the detection of the second network. Figure 2 Another flowchart illustrating a network switching method according to at least one embodiment of the present disclosure is shown.

[0051] like Figure 2 As shown, the network switching method may include the following steps S210, S220, S230, S240 and S250.

[0052] Step S210: The electronic device detects the second network.

[0053] Step S220: In response to the detection of a second network, determine within the trial period whether the parameters of the second network associated with network quality meet the network switching conditions.

[0054] Step S230: During the trial period, determine that the parameters of the second network associated with network quality meet the network switching conditions, and perform network switching to enable the electronic device to operate under the second network.

[0055] Step S240: Within the trial period, determine whether the parameters of the second network associated with network quality do not meet the network switching conditions, and determine whether the number of times the parameters of the second network associated with network quality do not meet the network switching conditions has reached a threshold number.

[0056] Step S250: When the number of times the parameters associated with the network quality of the second network fail to meet the network handover conditions reaches a threshold number, the electronic device rescans the wireless access devices in the environment to detect the presence of other networks. When the number of times the parameters associated with the network quality of the second network fail to meet the network handover conditions does not reach the threshold number, it is re-determined whether the parameters associated with the network quality of the second network will meet the network handover conditions in a future attempt cycle (e.g., another attempt cycle immediately following the current attempt cycle (e.g., the first attempt cycle)).

[0057] In some other embodiments, at step S220, after determining that the parameters associated with network quality of the second network do not meet the network switching conditions within the trial period, it can be directly re-determined whether the parameters associated with network quality of the second network meet the network switching conditions in a future trial period (e.g., another trial period immediately following the current trial period).

[0058] Combination Figure 2 According to at least one embodiment of this disclosure, when it is determined within a first attempt period that the parameters associated with the network quality of the second network do not meet the network switching conditions, the electronic device can determine whether to continue attempting to connect to the second network, for example, based on the number of times the parameters associated with the network quality of the second network do not meet the network switching conditions. For example, if the number of times the parameters associated with the network quality of the second network do not meet the network switching conditions does not exceed a threshold number, the parameters associated with the network quality of the second network can be re-determined within another attempt period, such as the second attempt period, to increase the accuracy of the confirmation of the stability of the second network through multiple confirmations. For example, if the number of times the parameters associated with the network quality of the second network do not meet the network switching conditions exceeds the threshold number, that is, if multiple confirmations of the parameters associated with the network quality of the second network within the attempt period do not meet the network switching conditions, it indicates that the second network is indeed unstable. In this case, alternatively, the environment can be rescanned for other connectable networks, such as a third network, which may be a different wireless local area network from the aforementioned wireless local area network. This avoids the electronic device connecting to an unstable second network and allows the electronic device to promptly detect the existence of other available communication networks after determining that the second network is unstable.

[0059] Figure 3 The flowchart further illustrates a process for determining whether parameters associated with network quality in the second network meet the network switching conditions during the trial period.

[0060] like Figure 3 As shown, Figure 2Step S220 may further include the following steps S2310, S2320, S2330 and S2340.

[0061] Step S2310: Scan the second network multiple times during the trial period to determine whether the parameters of the second network associated with network quality have reached the quality threshold.

[0062] Step S2320: For each scan in the multiple scans, determine whether the parameters of the second network associated with network quality have reached the quality threshold.

[0063] Step S2330: When the parameters of the second network associated with network quality reach the quality threshold in each scan, determine that the parameters of the second network associated with network quality meet the network switching conditions within the trial period.

[0064] Step S2340: When the parameters of the second network associated with network quality do not reach the quality threshold in every scan, determine within the trial period that the parameters of the second network associated with network quality do not meet the network switching conditions.

[0065] As described above, in at least one embodiment, determining that the network quality-related parameters of the second network meet the network switching conditions within the attempt period may include, for example, performing multiple scans of the second network within the attempt period to determine that the network quality-related parameters of the second network reach a quality threshold. In some examples, it may be determined whether the network quality-related parameters of the second network reach the quality threshold for each scan in the multiple scans within the attempt period. For example, it may be determined whether the signal strength reaches the quality threshold by judging whether the number of signal bars indicating the received signal strength indicator value is more than or equal to 2 bars. When the number of signal bars indicating the received signal strength indicator value is more than or equal to 2 bars, it is determined that the signal strength reaches the quality threshold. When the number of signal bars indicating the received signal strength indicator value is less than 2 bars, for example, 1 bar or no bars are displayed, it is determined that the signal strength does not reach the quality threshold. For example, it may be determined whether the network connection status reaches the quality threshold by judging whether the network latency time (e.g., calculated by monitoring ping packet data) reaches a latency time condition. When the network latency time calculated from the detected ping packet data reaches the latency time condition, it is determined that the network connection status reaches the quality threshold. Otherwise, it is determined that the network connection status does not reach the quality threshold.

[0066] For example, in step S210, the electronic device detects the presence of a second network in the environment, such as an available WiFi hotspot.

[0067] In response to the detection of the second network at step S210, at step S2310, the electronic device performs multiple scans of the second network within an attempt cycle to determine whether parameters associated with the network quality of the second network have reached a quality threshold. In at least one embodiment, the total time for making attempts may include one or more consecutive attempt cycles, and each attempt cycle may include at least one scan. For example, in some embodiments, the electronic device may scan the second network over, for example, four consecutive attempt cycles, wherein eight scans are performed on the second network in each attempt cycle; that is, the electronic device may perform a total of 32 scans on the second network over the total time for making attempts (i.e., four consecutive attempt cycles). Here, the description of the number of attempt cycles in the total time for making attempts and the number of scans in each attempt cycle is merely exemplary and not limiting. In other embodiments, the electronic device may scan the second network over three, five, or eight attempt cycles, and three or seven scans may be performed on the second network in each attempt cycle, without limitation.

[0068] At step S2320, for each of the multiple scans, it is determined whether the parameters associated with network quality of the second network have reached a quality threshold. For example, it is determined whether the parameters associated with network quality of the second network have reached a quality threshold. In some implementations, in each of the 32 scans performed on the second network as described above, it is determined whether the signal strength and network connectivity status of the second network have reached a quality threshold. For example, in each scan, it is determined whether the number of signal bars indicating the received signal strength of the second network is greater than or equal to 2 bars, and whether the network latency time calculated from the detected ping packet data has reached a latency time condition.

[0069] In response to the fact that the network quality-related parameters of the second network (e.g., the signal strength and network connectivity status of the second network) reach a quality threshold in each scan, at step S2330, it is determined within the attempt period that the network quality-related parameters of the second network meet the network switching conditions; or in response to the fact that the network quality-related parameters of the second network (e.g., the signal strength and network connectivity status of the second network) do not reach the quality threshold in each scan, at step S2340, it is determined within the attempt period that the network quality-related parameters of the second network do not meet the network switching conditions. For example, in the embodiment of performing 32 scans on the second network as described above, in response to the fact that the signal strength and network connectivity status of the second network reach the quality threshold in each of the 32 scans, for example, in each scan, the number of signal bars indicating the received signal strength indicator value of the second network is more than or equal to 2 bars, and the network delay time calculated from the detected ping packet data reaches the delay time condition, then it is determined within the attempt period that the network quality-related parameters of the second network meet the network switching conditions. If, during the trial period, it is determined that the parameters of the second network associated with network quality meet the network switching conditions, then proceed to step S230 and perform network switching to enable the electronic device to operate under the second network.

[0070] If the signal strength and network connectivity status of the second network do not reach the quality threshold in every one of the 32 scans—for example, if in at least one of the 32 scans the number of signal bars indicating the received signal strength of the second network is less than 2 bars, or the number of signal bars indicating the received signal strength of the second network is greater than or equal to 2 bars but the network latency calculated from the detected ping packet data does not meet the latency condition—then it is determined that the parameters associated with the network quality of the second network do not meet the network handover conditions within that attempt period. When it is determined within the attempt period that the parameters associated with the network quality of the second network do not meet the network handover conditions, the process proceeds to step S250, where the electronic device rescans the wireless access devices in the environment to detect the presence of other networks. In at least one other embodiment, in response to the parameters associated with the network quality of the second network not reaching the quality threshold, the electronic device rescans the wireless access devices in the environment to detect the presence of other networks.

[0071] The following will combine Figure 4 Describe in detail the process of each scan of the second network. Figure 4 An example flowchart of scanning a second network according to at least one embodiment of the present disclosure is shown.

[0072] like Figure 4 As shown, Figure 4 The steps may include S410, S420, S430, S440, and S450.

[0073] Step S410: Scan the second network to determine if the parameters of the second network associated with network quality have reached a quality threshold.

[0074] Step S420: In response to the fact that the parameters associated with the network quality of the second network have not reached the quality threshold, stop scanning the second network.

[0075] Step S430: Determine whether the number of scans of the second network has reached the scan threshold.

[0076] Step S440: In response to the fact that the number of scans of the second network has not reached the scan threshold, the second network is scanned multiple times again.

[0077] Step S450: In response to the number of scans of the second network reaching the scan threshold, a first input is received to the electronic device to trigger a scan of the second network.

[0078] For example, in the embodiment described above that performs 32 scans on the second network, for each scan, the second network is scanned to determine if a parameter associated with network quality has reached a quality threshold. As described above, if the number of signal bars indicating the received signal strength of the second network is less than 2 bars and / or the network latency calculated from the detected ping packet data does not meet the latency condition, it is determined that the parameter associated with network quality of the second network has not reached the quality threshold. In response to the parameter associated with network quality of the second network not reaching the quality threshold, scanning of the second network is stopped. For example, if the number of signal bars indicating the received signal strength of the second network is less than 2 bars during the 19th scan of the second network, subsequent scans of the second network are stopped; that is, the remaining 13 scans of the second network are not performed. In other words, scanning of the second network is stopped immediately once the parameter associated with network quality of the second network does not reach the quality threshold. This saves time for the electronic device to determine whether the parameter associated with network quality of the second network has reached the quality threshold within the trial cycle, thereby helping the electronic device to determine whether to perform network switching more quickly.

[0079] Then, after stopping the scanning of the second network, it is determined whether the number of scans of the second network has reached a scanning threshold. The scanning threshold can be preset, or it can be determined based on the number of trial cycles and the number of scans included in each trial cycle. For example, the scanning threshold can be three-quarters of the total number of scans, such as in an embodiment where the second network is scanned 32 times, the scanning threshold can be set to 24 times. As described above, when the scanning of the second network is stopped at the 19th scan, since the number of scans of 19 does not exceed the scanning threshold of 24, the second network can be scanned again for 32 times. In another example, if the scanning of the second network is stopped at the 29th scan, since the number of scans of 29 exceeds the scanning threshold of 24, if the electronic device is expected to scan the second network again, the electronic device needs to receive a first input to trigger the scanning of the second network, for example, to scan the second network again for 32 times or to continue scanning the second network for the remaining 3 times. By setting a scan threshold, it's possible to avoid scan interruptions due to sudden network instability or other unexpected factors. For example, if scanning of the second network stops on the 27th scan, the user of the electronic device can input information based on location movement (e.g., moving away from a location) to trigger a rescan of the second network. Alternatively, the user can instruct the electronic device to continue scanning the second network. If, in subsequent scans, the network quality-related parameters of the second network reach the quality threshold, the second network can be considered stable. In this case, network switching can be performed to allow the electronic device to operate on the second network.

[0080] At least one embodiment of this disclosure also provides an electronic device including a communication unit and a control unit. The communication unit is configured to establish communication connections with different wireless networks (e.g., wireless communication networks); the control unit is configured to control the electronic device to switch between different wireless networks.

[0081] Figure 5 A schematic diagram of an electronic device 500 provided according to at least one embodiment of the present disclosure is shown.

[0082] like Figure 5As shown, the electronic device 500 includes a communication unit 510 and a control unit 520. The communication unit 510 is configured to establish communication connections with different wireless communication networks, such as mobile communication networks (e.g., cellular networks) or wireless local area networks. For example, the communication unit 510 can establish a communication connection with a WiFi hotspot detected in the environment, and can also establish a communication connection using, for example, a 5G mobile communication network. The control unit 520 is configured to control the electronic device 500 to switch between different networks. For example, the control unit 520 can be configured to control the electronic device 500 to switch between a first network, such as a cellular network, and a second network, such as a wireless local area network. The specific switching process can be referred to above. Figures 1A to 4 The description will not be repeated here.

[0083] The control unit 520 can be implemented as a processor, microcontroller, etc., such as a CPU, SoC, FPGA, ASIC, or any combination of hardware, firmware, and software. The communication unit 510 can be implemented as including multiple antennas, a wireless network card, a mobile communication baseband, etc., and these antennas include different antennas for different types of networks, such as antennas for mobile communication networks and antennas for wireless local area networks. The embodiments of this disclosure do not limit the implementation of the communication unit 510 and the control unit 520, etc.

[0084] It should be noted that the embodiments disclosed herein do not limit the specific implementation of the aforementioned units. Furthermore, Figure 5 The components and structures of the electronic device 500 shown are exemplary and not limiting. The electronic device 500 may also include other components and structures as needed, such as displays, speakers, microphones, memory, and various sensors.

[0085] At least one embodiment of this disclosure also provides another electronic device, which includes a processor and a memory, the memory including one or more computer program modules. The one or more computer program modules are stored in the memory and configured to be executed by the processor, and the one or more computer program modules include instructions for implementing the data processing method described above.

[0086] Figure 6 A schematic diagram of an electronic device 600 according to at least one embodiment of the present disclosure is shown. Figure 6 As shown, electronic device 600 may include a processor (e.g., central processing unit) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from memory 606 into random access memory (RAM) 603.

[0087] The RAM 603 also stores various programs and data required for the operation of the electronic device 600. The processor 601, ROM 602, and RAM 603 are interconnected via bus 604. The input / output (I / O) interface 605 is also connected to bus 604.

[0088] For example, memory 606 may include magnetic tape, disk, solid-state drive, etc.; communication module 607 allows electronic device 600 to wirelessly exchange data with other electronic devices, connects to an antenna, and transmits and receives wireless signals to achieve data transmission and reception. These devices can be connected to I / O interface 605. Although Figure 6 Some components of the electronic device 600 are shown, but it should be understood that the electronic device 600 of this disclosure embodiment may have more or fewer components.

[0089] For example, processor 601 may be a central processing unit (CPU), a graphics processing unit (GPU), or other form of processing unit with data processing and / or program execution capabilities. For example, the CPU may be based on x86, RISC-V, or ARM architectures. Processor 601 may be a general-purpose processor or a special-purpose processor, capable of controlling other components in electronic device 600 to perform desired functions.

[0090] For example, memory 606 may include any combination of one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include random access memory (RAM) and / or cache memory. Non-volatile memory may include read-only memory (ROM), hard disk, erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, flash memory, etc. One or more computer program modules may be stored on the computer-readable storage medium, and processor 601 may run one or more computer program modules to implement various functions of electronic device 600. Various application programs and various data, as well as various data used and / or generated by the application programs, may also be stored in the computer-readable storage medium.

[0091] It should be noted that, in the embodiments of this disclosure, the specific functions and technical effects of the electronic device 600 can be referred to the description of the data processing method above, and will not be repeated here.

[0092] Figure 7 A schematic diagram of a computer-readable storage medium 700 according to at least one embodiment of the present disclosure is shown. Figure 7As shown, the storage medium 700 is used to store non-transitory computer-readable instructions 710. For example, when the non-transitory computer-readable instructions 710 are executed by a computer, one or more steps in the data processing method described above can be performed.

[0093] For example, the storage medium 700 can be used in the aforementioned electronic device 600. For example, the storage medium 700 can be... Figure 6 The memory 606 in the illustrated electronic device 600. For example, a description of the storage medium 700 can be found here. Figure 6 The corresponding description of the memory 606 in the illustrated electronic device 600 will not be repeated here.

[0094] In addition, the following points need to be explained:

[0095] (1) The accompanying drawings of the embodiments of this disclosure only involve the structures involved in the embodiments of this disclosure. Other structures can be referred to the general design.

[0096] (2) Where there is no conflict, the embodiments of this disclosure and the features in the embodiments can be combined with each other to obtain new embodiments.

[0097] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. The scope of protection of this disclosure should be determined by the scope of protection of the claims.

Claims

1. A network handover method, wherein, The method includes: When the electronic device is operating under the first network, it scans the wireless access devices in the environment to detect the presence of a second network; In response to the detection of the second network, when it is determined within the attempt period that the network quality-related parameters of the second network meet the network switching conditions, a network switch is performed to enable the electronic device to operate under the second network, wherein the network quality-related parameters of the second network include the signal strength and network connectivity status of the second network; The determination that the network quality-related parameters of the second network meet the network switching conditions within the trial period includes: The second network is scanned multiple times during the trial period to determine whether the parameters of the second network associated with network quality have reached a quality threshold. Wherein, in response to the network quality-related parameters of the second network reaching the quality threshold in each scan, it is determined within the trial period that the network quality-related parameters of the second network meet the network switching conditions; Wherein, in response to the fact that the network quality-related parameters of the second network do not reach the quality threshold in each scan, it is determined within the trial period that the network quality-related parameters of the second network do not meet the network switching conditions; The network switching method further includes: If the parameters associated with the network quality of the second network do not reach the quality threshold, the scanning of the second network is stopped. After stopping the scanning of the second network, determine whether the number of scans of the second network has reached the scanning threshold. In response to the fact that the number of scans of the second network has not reached the scanning threshold, the second network is scanned multiple times again; Specifically, in response to the number of scans of the second network reaching the scan threshold number, a first input is received to the electronic device to trigger a scan of the second network.

2. The method according to claim 1, further comprising: If, during the trial period, it is determined that the parameters associated with network quality of the second network do not meet the network switching conditions, then it is re-determined whether the parameters associated with network quality of the second network meet the network switching conditions in another trial period following the trial period.

3. The method according to claim 2, wherein, When the network quality-related parameters of the second network do not meet the network switching conditions, and the number of times the network quality-related parameters of the second network fail to meet the network switching conditions within one or more of the attempt cycles reaches a threshold number, the electronic device rescans the wireless access devices in the environment to detect the presence of other networks.

4. The method according to any one of claims 1-3, wherein, The first network is a cellular network, and the second network is a wireless local area network.

5. The method according to any one of claims 1-3, wherein, The network switching conditions include: The signal strength is greater than or equal to a preset strength value, and The network connection status meets the conditions for smooth network connection.

6. The method according to claim 5, wherein, The signal strength includes a received signal strength indication value, and the network connection status includes network latency.

7. The method according to any one of claims 1-3, wherein, The wireless access device is an access point that is already stored in the electronic device and / or an access point that emits periodic broadcasts.

8. An electronic device, wherein, The electronic device includes: The communication unit is configured to establish communication connections with different wireless networks; and A control unit is configured to control the electronic device to switch between different wireless networks, wherein the switching includes: When the electronic device is operating under the first network, it scans the surrounding environment for wireless access devices to detect the presence of a second network; In response to the detection of the second network, it is determined whether the parameters of the second network associated with network quality meet the network switching conditions within the trial period; In response to the network quality-related parameters of the second network satisfying the network switching conditions, a network switch is performed to enable the electronic device to operate under the second network. Among them, the parameters of the second network that are associated with network quality include the signal strength and network connection status of the second network; The switching also includes: The second network is scanned multiple times during the trial period to determine whether the parameters of the second network associated with network quality have reached a quality threshold. Wherein, in response to the network quality-related parameters of the second network reaching the quality threshold in each scan, it is determined within the trial period that the network quality-related parameters of the second network meet the network switching conditions; Wherein, in response to the fact that the network quality-related parameters of the second network do not reach the quality threshold in each scan, it is determined within the trial period that the network quality-related parameters of the second network do not meet the network switching conditions; The switching also includes: If the parameters associated with the network quality of the second network do not reach the quality threshold, the scanning of the second network is stopped. After stopping the scanning of the second network, determine whether the number of scans of the second network has reached the scanning threshold. In response to the fact that the number of scans of the second network has not reached the scanning threshold, the second network is scanned multiple times again; Specifically, in response to the number of scans of the second network reaching the scan threshold number, a first input is received to the electronic device to trigger a scan of the second network.

9. An electronic device, wherein, The electronic device includes: processor; Memory, including one or more computer program modules; The one or more computer program modules are stored in the memory and configured to be executed by the processor, and the one or more computer program modules include instructions for implementing the network switching method according to any one of claims 1-7.

10. A computer-readable storage medium for storing non-transitory computer-readable instructions, wherein, The network switching method according to any one of claims 1-7 can be implemented when the non-transitory computer-readable instructions are executed by a computer.

Citation Information

Patent Citations

  • Network switching method of terminal and terminal equipment

    CN101668322A

  • Network switching method, network switching device and terminal

    CN104349411A

  • Method and device for switching networks of mobile terminal

    CN105163355A