WO2024037070A1 - Method and apparatus for implementing a switch between networks, and electronic device - Google Patents

Method and apparatus for implementing a switch between networks, and electronic device Download PDF

Info

Publication number
WO2024037070A1
WO2024037070A1 PCT/CN2023/094174 CN2023094174W WO2024037070A1 WO 2024037070 A1 WO2024037070 A1 WO 2024037070A1 CN 2023094174 W CN2023094174 W CN 2023094174W WO 2024037070 A1 WO2024037070 A1 WO 2024037070A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
preset
quality
switching
threshold
Prior art date
Application number
PCT/CN2023/094174
Other languages
French (fr)
Chinese (zh)
Inventor
王国龙
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2024037070A1 publication Critical patent/WO2024037070A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/165Performing reselection for specific purposes for reducing network power consumption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Definitions

  • This application relates to but is not limited to the field of communication technology, and in particular, to a method, device and electronic equipment for realizing handover between networks.
  • Wi-Fi wireless fidelity
  • cellular networks mobile cellular networks
  • Wi-Fi First Wi-Fi First
  • Best Effort Wi-Fi best effort mode
  • This application provides a method, device and electronic device for realizing switching between networks, which can realize switching between networks in a timely manner and improve user experience.
  • the embodiment of the present application provides a method for implementing handover between networks, including:
  • the electronic device determines that the quality of the first network has deteriorated based on the network quality of the currently accessed first network
  • Network speed detection is performed on the first network. If the time difference between two consecutive network speed detections is greater than a preset time length threshold, the electronic device switches from the first network to the second network.
  • the electronic device When the network signal quality of the first network currently accessed by the electronic device deteriorates, the electronic device will access the second network in advance, so that when the signal quality of the first network deteriorates, the electronic device will access the second network in advance. timely switching When it came to the second network, the user experience was improved.
  • Embodiments of the present application also provide a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute any of the above methods for implementing switching between networks.
  • An embodiment of the present application further provides an electronic device that implements switching between networks, including a memory and a processor, wherein the memory stores the following instructions that can be executed by the processor: for executing any one of the above-mentioned instructions for implementing inter-network switching. Steps for switching methods.
  • the embodiment of the present application also provides a device for realizing handover between networks, including a determination module and a processing module; wherein,
  • the determining module is configured to determine that the quality of the first network has deteriorated based on the network quality of the first network currently accessed;
  • the processing module is configured to perform network speed detection on the first network, and switch from the first network to the second network if the time difference between two consecutive network speed detections is greater than a preset duration threshold.
  • Figure 1 is a schematic flowchart of a method for implementing handover between networks in an embodiment of the present application
  • Figure 2 is a schematic flowchart of switching from a Wi-Fi network to a cellular network in an embodiment of the present application
  • Figure 3 is a schematic flowchart of switching from a cellular network to a Wi-Fi network in an embodiment of the present application
  • Figure 4 is a schematic flowchart of another embodiment of a method for implementing handover between networks in the embodiment of the present application
  • Figure 5 is a schematic structural diagram of a device that implements handover between networks in an embodiment of the present application.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer-readable media, random access memory (RAM), and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is a computer Examples of readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information.
  • Information may be computer-readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • read-only memory read-only memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • compact disc read-only memory CD-ROM
  • DVD digital versatile disc
  • Magnetic tape cassettes tape disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device.
  • computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • Figure 1 is a schematic flowchart of a method for implementing handover between networks in an embodiment of the present application. As shown in Figure 1, it may include:
  • Step 100 The electronic device determines that the quality of the first network has deteriorated based on the network quality of the first network currently accessed.
  • the first network is a Wi-Fi network
  • step 100 may include:
  • round-trip time RTT, Round-Trip Time
  • Wi-Fi transmission power Tx Power
  • RTT represents the total delay experienced from the time the sender sends data to the time the sender receives the confirmation from the receiver.
  • the larger the RTT the longer the round trip time, which means the longer the network delay.
  • the smaller the Wi-Fi Tx Power the smaller the transmit power level of the electronic device connected to the control channel of the cell, which means the worse the network signal.
  • the first network is a Wi-Fi network
  • step 100 may include:
  • the RTT is greater than the preset RTT duration threshold and the throughput (Throughput) is less than the preset throughput threshold, and it is determined that the first network quality has deteriorated.
  • throughput represents the amount of data that the router can process per second.
  • Wi-Fi Throughput the lower the network rate will be.
  • the first network is a Wi-Fi network
  • step 100 may include:
  • the RTT is greater than the preset RTT duration threshold
  • the Wi-Fi Tx Power is less than the preset first transmission power threshold
  • the throughput is less than the preset throughput threshold
  • the first network is a cellular network (Cellular Network), also called a mobile network (Mobile Network).
  • Step 100 may include:
  • RSSI received signal strength indicator
  • Tx Power cellular transmission power
  • RSSI reflects the received signal strength and interference level of the current channel. The smaller the RSSI, the weaker the received signal.
  • the first network is a cellular network
  • step 100 may include:
  • the RSSI is less than the preset RSSI threshold, and the Clear Channel Assessment (CCA, Clear Channel Assessment) level (Level) is less than the preset assessment threshold, and it is determined that the first network quality has deteriorated.
  • CCA Clear Channel Assessment
  • Level Level
  • the first network is a cellular network
  • step 100 may include:
  • the RSSI is less than the preset RSSI threshold
  • the cellular Tx Power is less than the preset second transmission power threshold
  • the CCA Level is less than the preset evaluation threshold
  • parameters reflecting network quality listed in the embodiments of this application such as Tx Power, Throughput, RTT, HTTP and other parameters, are only some implementation examples and are not used to limit the scope of protection of this application.
  • the parameters that affect network quality are not limited to the above parameters. In actual evaluation, other parameters can be selected to evaluate network quality.
  • Step 101 Perform network speed detection on the first network. If the time difference between two consecutive network speed detections is greater than the preset time length threshold, the electronic device switches from the first network to the second network.
  • network speed detection may include but is not limited to detection methods such as Hypertext Transfer Protocol (HTTP, Hypertext Transfer Protocol) network signal quality detection, Ping, Domain Name System (DNS, Domain Name System) information detection, and other detection methods.
  • HTTP Hypertext Transfer Protocol
  • DNS Domain Name System
  • DNS Domain Name System
  • the electronic device when the network signal quality of the first network currently accessed by the electronic device deteriorates, the electronic device will access the second network in advance, so that when the signal quality of the first network deteriorates, the electronic device will access the second network in advance. It switched to the second network in time, which improved the user experience.
  • the Wi-Fi network can be connected first; and when the Wi-Fi signal becomes poor, the cellular network can be switched. In this way, when Wi-Fi is encountered When the Fi signal is poor, it will not be affected due to timely switching to the cellular network. impact user experience.
  • Figure 2 is a schematic flowchart of the first embodiment of switching from a Wi-Fi network to a cellular network in this embodiment of the present application. As shown in Figure 2, it may include:
  • Step 200 Determine whether the Wi-Fi transmission power is less than the first transmission power threshold. If the Wi-Fi transmission power is less than the first transmission power threshold, proceed to step 201; if the Wi-Fi transmission power is not less than the first transmission power threshold, proceed to step 200. 203.
  • Step 201 Determine whether the throughput is less than the throughput threshold. If the throughput is less than the throughput threshold, go to step 202; if the throughput is not less than the throughput threshold, go to step 203.
  • Step 202 Determine whether the RTT is greater than the first duration threshold. If the RTT is greater than the first duration threshold, proceed to step 204; if the RTT is not greater than the first duration threshold, proceed to step 203.
  • Step 203 After the preset first time interval ⁇ t11, return to step 200 and continue to detect WIFI signals.
  • Step 204 HTTP network detects network signal quality.
  • Step 205 Check whether the time difference between two consecutive HTTP network detections is greater than the preset duration threshold. If the time difference is greater than the preset duration threshold, proceed to step 206; if the time difference is not greater than the preset duration threshold, return to step 203.
  • Step 206 The electronic device switches from the Wi-Fi network to the cellular network.
  • the electronic device will access the cellular network in advance, so that When the Wi-Fi network signal is poor, it switches to the cellular network in time, improving the user experience. For example: when going out to take a taxi, if the Wi-Fi signal connected to the mobile phone becomes poor, it will switch to the cellular network in time to ensure that the taxi information can be refreshed; another example: when playing games at home, when the game freezes, It will no longer continue to connect to the Wi-Fi network, but will switch to the cellular network to play games, ensuring user experience.
  • Figure 3 is a schematic flowchart of the first embodiment of switching from a cellular network to a Wi-Fi network in this embodiment of the present application. As shown in Figure 3, it may include:
  • Step 300 Determine whether the cellular transmission power is less than the second transmission power threshold. If the cellular transmission power is less than the second transmission power threshold, proceed to step 301; if the cellular transmission power is not less than the second transmission power threshold, proceed to step 303.
  • Step 301 Determine whether the RSSI is less than the preset RSSI threshold. If the RSSI is less than the preset RSSI threshold, go to step 302; if the RSSI is not less than the preset RSSI threshold, go to step 303.
  • Step 302 Determine whether the CCA Level is less than the preset evaluation threshold. If the CCA Level is less than the preset evaluation threshold, proceed to step 304; if the CCA Level is not less than the preset evaluation threshold, proceed to Step 303.
  • Step 303 After the preset first time interval ⁇ t11, return to step 300 and continue to detect cellular signals.
  • Step 304 HTTP network detects network signal quality.
  • Step 305 Check whether the time difference between two consecutive HTTP network detections is greater than the preset duration threshold. If the time difference is greater than the preset duration threshold, proceed to step 306; if the time difference is not greater than the preset duration threshold, return to step 303.
  • Step 306 The electronic device switches from the cellular network to the Wi-Fi network.
  • the electronic device will access the Wi-Fi network in advance, so that When the cellular network signal is poor, it switches to the Wi-Fi network in time, improving the user experience. For example: after entering the home, due to poor cellular network signal in certain locations in the home, such as the bathroom, etc., and the cellular signal connected to the mobile phone becomes poor, it will switch to the Wi-Fi network in time to ensure the user's network experience. .
  • the method for switching between a Wi-Fi network and a cellular network evaluates and evaluates the network status of the network currently accessed by the electronic device before switching the network. Judgment to determine whether network switching is ultimately required.
  • the signal quality of the currently accessed Wi-Fi network is first evaluated, and then it is determined whether to trigger the switching to the cellular network.
  • the Wi-Fi network signal quality was evaluated, but the cellular network signal was not evaluated. In this way, there is a possibility that the cellular network signal is worse than the Wi-Fi network.
  • the signal quality is poor Switching from a Wi-Fi network to a cellular network will still cause electronic devices to be in an environment with poor network signals.
  • similar problems also exist for the first embodiment of switching the Wi-Fi network from the cellular network shown in FIG. 3 .
  • the method for implementing handover between networks may also include:
  • Step 400 Evaluate the network signal quality of the first network and the second network respectively.
  • step 400 may include:
  • the multiple parameters may include one or any combination of the following: RTT, transmission power, throughput, HTTP continuous detection time difference, etc. It should be noted that this is only an example of multiple parameters that affect the signal quality of the first network, and is not used to limit the scope of protection of the present application.
  • Parameter A, parameter B, parameter C, and parameter ⁇ t in Table 1 can all be preset to participate in the evaluation of network quality. In actual applications, they can be adjusted accordingly according to actual scenarios.
  • the first transmission power threshold/the second transmission power threshold may be less than or equal to A*50%
  • the throughput threshold may be less than or equal to B*50%
  • the RTT duration threshold may be greater than or equal to C*85%
  • the duration threshold can be greater than or equal to ⁇ t*85%.
  • the evaluation strategy may include:
  • Tx pwr ⁇ A*85% the corresponding level of Tx pwr is excellent.
  • the scoring of Tx pwr is shown in Table 2. The first scoring value/second scoring value of S_tx pwr obtained after scoring is 100;
  • Tx pwr When A*85%>Tx pwr ⁇ A*70%, the corresponding level of Tx pwr is good.
  • the scoring of Tx pwr is shown in Table 2. The first scoring value/second scoring value of S_tx pwr obtained after scoring is 80;
  • Tx pwr When A*70%>Tx pwr ⁇ A*50%, the corresponding level of Tx pwr is medium.
  • the scoring of Wi-Fi Tx pwr is shown in Table 2. After scoring, the S_tx pwr first score value/second The score value is 60;
  • Tx pwr ⁇ A*50% When Tx pwr ⁇ A*50%, the corresponding level of Tx pwr is poor.
  • the scoring of Tx pwr is shown in Table 2. The first scoring value/second scoring value of S_tx pwr obtained after scoring is 30.
  • the throughput score is shown in Table 2.
  • the first score value/second score value of S_throughput obtained after scoring is 100;
  • the throughput score is shown in Table 2.
  • the first score value/second score value of S_throughput obtained after scoring is 80 ;
  • the throughput score is shown in Table 2.
  • the first score value/second score value of S_throughput obtained after scoring is 60 ;
  • the throughput score is shown in Table 2.
  • the first score value/second score value of S_throughput obtained after scoring is 30 .
  • the scoring of RTT is shown in Table 2.
  • the first scoring value/second scoring value of S_RTT obtained after scoring is 100;
  • the scoring of RTT is shown in Table 2.
  • the first scoring value/second scoring value of S_RTT obtained after scoring is 80;
  • the scoring of RTT is shown in Table 2.
  • the first scoring value/second scoring value of S_RTT obtained after scoring is 60;
  • the scoring of RTT is shown in Table 2.
  • the first scoring value/second scoring value of S_RTT obtained after scoring is 30.
  • the corresponding level of the HTTP continuous detection time difference is excellent.
  • the scoring of the HTTP continuous detection time difference is shown in Table 2. After scoring, the S_http first score value/second score value is obtained is 100;
  • Http continuous detection time difference When ⁇ t*50% ⁇ Http continuous detection time difference ⁇ t*70%, the corresponding level of Http continuous detection time difference is good.
  • the scoring of Http continuous detection time difference is shown in Table 2.
  • the first score of S_http obtained after scoring Value/second scoring value is 80;
  • Http continuous detection time difference When ⁇ t*70% ⁇ Http continuous detection time difference ⁇ t*85%, the corresponding level of Http continuous detection time difference is medium.
  • the scoring of Http continuous detection time difference is shown in Table 2. The first score of S_http obtained after scoring Value/second scoring value is 60;
  • the corresponding level of the HTTP continuous detection time difference is difference.
  • the scoring of the HTTP continuous detection time difference is shown in Table 2. After scoring, the S_http first score value/second score value is obtained is 30.
  • Pa1, Pb1, Pc1, and Pd1 are the weight values of the continuous detection time difference indicators of tx pwr1, throughput1, RTT1, and Http1 respectively.
  • Step 401 The evaluation result of the second network is better than the evaluation result of the first network, and switching from the first network to the second network is performed.
  • step 401 may include: comparing the first score value and the second score value, determining that the second score value of the second network is greater than the first score value of the first network, and performing switching from the first network to the second network.
  • the second score value of the second network is not greater than the first score value of the first network, and after the preset second time interval ⁇ t22, the results of the first network and the second network are returned.
  • the signal quality is evaluated separately until it is determined that the second score value of the second network is higher than the first score value of the first network, and switching from the first network to the second network is performed.
  • the network signal quality of the first network is evaluated, and the network signal of the second network is also evaluated, which avoids that the network signal of the second network is worse than that of the first network.
  • the possibility better ensures that the signal quality of the second network to be switched to is indeed better than that of the first network, and achieving timely switching also ensures the stability of the switching and improves the user experience.
  • the method may further include:
  • the step of switching from the first network to the second network is performed.
  • the handover confirmation value is a preset parameter value used to ensure that the signal quality of the second network to which the handover is switched is indeed stably better than the signal quality of the first network.
  • the problem of endless switching between the first network and the second network is avoided when the score values of the first network and the second network are different, and the electronic device will not be left in a network unstable state.
  • the environment effectively avoids the "ping-pong effect" of back-and-forth switching and ensures the user's network experience.
  • This application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used for any of the above-mentioned methods for implementing switching between networks.
  • the present application further provides an electronic device for realizing switching between networks, including a memory and a processor, wherein the memory stores the following instructions that can be executed by the processor: for executing any of the above-mentioned methods for realizing switching between networks. Method steps.
  • Figure 5 is a schematic structural diagram of a device for implementing handover between networks in an embodiment of the present application. As shown in Figure 5, it at least includes: a determination module and a processing module; wherein,
  • a determining module configured to determine that the quality of the first network has deteriorated based on the network quality of the currently accessed first network
  • the processing module is used to perform network speed detection on the first network, and switch from the first network to the second network if the time difference between two consecutive network speed detections is greater than a preset time length threshold.
  • the first network is a Wi-Fi network
  • the determining module is configured to:
  • the RTT is greater than the preset RTT duration threshold, and the Wi-Fi Tx Power is less than the preset first transmission power threshold, and it is determined that the first network quality has deteriorated; or,
  • the RTT is greater than the preset RTT duration threshold and the throughput is less than the preset throughput threshold, and it is determined that the first network quality has deteriorated; or,
  • the RTT is greater than the preset RTT duration threshold
  • the Wi-Fi Tx Power is less than the preset first transmission power threshold
  • the throughput is less than the preset throughput threshold
  • the first network is a cellular network
  • the determining module is configured to:
  • the RSSI is less than the preset RSSI threshold, and the cellular Tx Power is less than the preset second transmission power threshold, and it is determined that the second network quality has deteriorated; or,
  • the RSSI is less than the preset RSSI threshold and the CCA level is less than the preset evaluation threshold, and it is determined that the quality of the second network has deteriorated; or,
  • the RSSI is less than the preset RSSI threshold
  • the cellular Tx Power is less than the preset second transmission power threshold
  • the CCA Level is less than the preset evaluation threshold
  • the electronic device when the network signal quality of the first network currently accessed by the electronic device deteriorates, the electronic device will access the second network in advance, thus avoiding the problem of switching between the first network and the first network.
  • the problem of being unable to switch to the second network in time due to time differences has improved the user experience.
  • the Wi-Fi network can be connected first; and when the Wi-Fi signal becomes poor, the cellular network can be switched. In this way, when Wi-Fi is encountered Even when the Fi signal is very poor, the user experience will not be affected because it switches to the cellular network in time.
  • processing module is also used to:
  • the evaluation result of the second network is better than the evaluation result of the first network, and perform switching from the first network to the second network.
  • Second network Before switching from the first network to the second network, evaluate the network signal quality of the first network and the second network respectively; the evaluation result of the second network is better than the evaluation result of the first network, and perform switching from the first network to the second network. Second network.
  • the processing module separately evaluates the network signal quality of the first network and the second network, which may include:
  • the multiple parameters may include one or any combination of the following: RTT, transmission power, throughput, HTTP continuous detection time difference, etc. It should be noted that this is only an example of multiple parameters that affect the signal quality of the first network, and is not used to limit the scope of protection of the present application.
  • the evaluation result of the second network in the processing module is better than the evaluation result of the first network, and performing switching from the first network to the second network may include:
  • the network signal quality of the first network is evaluated, and the network signal of the second network is also evaluated, thereby avoiding the possibility that the network signal of the second network is worse than that of the first network.
  • This better ensures that the signal quality of the second network to which the switch is made is indeed better than that of the first network, and achieving timely switching also ensures the stability of the switching and improves the user experience.
  • processing module is also used to:
  • the second score value of the second network is not greater than the first score value of the first network. After the preset second time interval ⁇ t22, continue to detect the signal quality of the first network and the second network respectively until it is determined If the second score value of the second network is higher than the first score value of the first network, switching from the first network to the second network is performed.
  • processing module can also be used to:
  • the problem of endless switching between the first network and the second network is avoided when the score values of the first network and the second network are different, and the electronics will not be let go.
  • the device is in an unstable network environment, which avoids the "ping-pong effect" of back-and-forth switching and ensures the user's network experience.

Abstract

Disclosed in the present application are a method and apparatus for implementing a switch between networks, and an electronic device, which allow an electronic device to have access to a second network in advance when the network signal quality of a first network currently accessed by the electronic device becomes poor, thereby implementing a timely switch to the second network when a first network signal is poor and thus improving the user experience.

Description

一种实现网络间切换的方法、装置及电子设备A method, device and electronic equipment for realizing handover between networks
本申请要求于2022年08月16日提交中国专利局、申请号为202210981961.X、申请名称为“一种实现网络间切换的方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on August 16, 2022, with the application number 202210981961. The contents are incorporated into this application by reference.
技术领域Technical field
本申请涉及但不限于通信技术领域,尤指一种实现网络间切换的方法、装置及电子设备。This application relates to but is not limited to the field of communication technology, and in particular, to a method, device and electronic equipment for realizing handover between networks.
背景技术Background technique
随着通信网络以及终端技术的发展,目前许多电子设备(如手机等)不仅支持利用无线保真(Wi-Fi,wireless fidelity)网络进行无线通信,还支持利用移动蜂窝网络(简称蜂窝网络)进行无线通信。With the development of communication networks and terminal technologies, many electronic devices (such as mobile phones, etc.) currently not only support wireless communication using wireless fidelity (Wi-Fi, wireless fidelity) networks, but also support using mobile cellular networks (referred to as cellular networks). Wireless communication.
一般情况下,电子设备会遵循Wi-Fi优先原则(Wi-Fi First)选择Wi-Fi尽力而为模式(Best Effort)接入网络。也就是说,只要有WI-FI信号,就会优先连接WI-FI网络;而只有当Wi-Fi网络无法接入的情况下,电子设备才会切换到蜂窝网络。但是,Wi-Fi网络可以接入并不意味着Wi-Fi信号质量好,因此,基于Wi-Fi优先原则,势必会造成在WI-FI信号差时不能及时切换到蜂窝网络的窘境,大大降低了用户体验。Under normal circumstances, electronic devices will follow the Wi-Fi priority principle (Wi-Fi First) and select the Wi-Fi best effort mode (Best Effort) to access the network. In other words, as long as there is a Wi-Fi signal, the Wi-Fi network will be connected first; and only when the Wi-Fi network cannot be accessed, the electronic device will switch to the cellular network. However, just because the Wi-Fi network is accessible does not mean that the Wi-Fi signal quality is good. Therefore, based on the Wi-Fi priority principle, it will inevitably cause the dilemma of not being able to switch to the cellular network in time when the Wi-Fi signal is poor, which greatly reduces user experience.
发明内容Contents of the invention
本申请提供一种实现网络间切换的方法、装置及电子设备,能够及时实现网络间的切换,提升用户体验。This application provides a method, device and electronic device for realizing switching between networks, which can realize switching between networks in a timely manner and improve user experience.
本申请实施例提供一种实现网络间切换的方法,包括:The embodiment of the present application provides a method for implementing handover between networks, including:
电子设备根据当前接入的第一网络的网络质量确定出第一网络质量变差;The electronic device determines that the quality of the first network has deteriorated based on the network quality of the currently accessed first network;
对所述第一网络进行网速探测,连续两次网速探测之间的时间差大于预设时长阈值,电子设备从所述第一网络切换至第二网络。Network speed detection is performed on the first network. If the time difference between two consecutive network speed detections is greater than a preset time length threshold, the electronic device switches from the first network to the second network.
通过本申请实施例提供的实现网络间切换的方法,实现了在电子设备当前接入的第一网络的网络信号质量变差时,就会提前接入第二网络,使得在第一网络信号差时及时切换 到了第二网络,提升了用户体验。Through the method for implementing handover between networks provided by the embodiments of the present application, when the network signal quality of the first network currently accessed by the electronic device deteriorates, the electronic device will access the second network in advance, so that when the signal quality of the first network deteriorates, the electronic device will access the second network in advance. timely switching When it came to the second network, the user experience was improved.
本申请实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项所述的实现网络间切换的方法。Embodiments of the present application also provide a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute any of the above methods for implementing switching between networks.
本申请实施例再提供一种实现网络间切换的电子设备,包括存储器和处理器,其中,存储器中存储有以下可被处理器执行的指令:用于执行上述任一项所述的实现网络间切换的方法的步骤。An embodiment of the present application further provides an electronic device that implements switching between networks, including a memory and a processor, wherein the memory stores the following instructions that can be executed by the processor: for executing any one of the above-mentioned instructions for implementing inter-network switching. Steps for switching methods.
本申请实施例还提供一种实现网络间切换的装置,包括确定模块、处理模块;其中,The embodiment of the present application also provides a device for realizing handover between networks, including a determination module and a processing module; wherein,
所述确定模块,用于根据当前接入的第一网络的网络质量确定出第一网络质量变差;The determining module is configured to determine that the quality of the first network has deteriorated based on the network quality of the first network currently accessed;
所述处理模块,用于对所述第一网络进行网速探测,连续两次网速探测之间的时间差大于预设时长阈值,从所述第一网络切换至第二网络。The processing module is configured to perform network speed detection on the first network, and switch from the first network to the second network if the time difference between two consecutive network speed detections is greater than a preset duration threshold.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and obtained by the structure particularly pointed out in the written description, claims and appended drawings.
附图说明Description of drawings
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The drawings are used to provide a further understanding of the technical solution of the present application and constitute a part of the specification. They are used to explain the technical solution of the present application together with the embodiments of the present application and do not constitute a limitation of the technical solution of the present application.
图1为本申请实施例中实现网络间切换的方法一实施例的流程示意图;Figure 1 is a schematic flowchart of a method for implementing handover between networks in an embodiment of the present application;
图2为本申请实施例中Wi-Fi网络切换至蜂窝网络的实施例流程示意图;Figure 2 is a schematic flowchart of switching from a Wi-Fi network to a cellular network in an embodiment of the present application;
图3为本申请实施例中蜂窝网络切换至Wi-Fi网络的实施例流程示意图;Figure 3 is a schematic flowchart of switching from a cellular network to a Wi-Fi network in an embodiment of the present application;
图4为本申请实施例中实现网络间切换的方法另一实施例的流程示意图;Figure 4 is a schematic flowchart of another embodiment of a method for implementing handover between networks in the embodiment of the present application;
图5为本申请实施例中实现网络间切换的装置的组成结构示意图。Figure 5 is a schematic structural diagram of a device that implements handover between networks in an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solutions and advantages of the present application more clear, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, as long as there is no conflict, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other.
在本申请一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration of this application, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机 可读介质的示例。Memory may include non-permanent storage in computer-readable media, random access memory (RAM), and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is a computer Examples of readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory. (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, tape disk storage or other magnetic storage devices or any other non-transmission medium can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowcharts of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, although a logical order is shown in the flowchart diagrams, in some cases the steps shown or described may be performed in a different order than herein.
图1为本申请实施例中实现网络间切换的方法的流程示意图,如图1所示,可以包括:Figure 1 is a schematic flowchart of a method for implementing handover between networks in an embodiment of the present application. As shown in Figure 1, it may include:
步骤100:电子设备根据当前接入的第一网络的网络质量确定出第一网络质量变差。Step 100: The electronic device determines that the quality of the first network has deteriorated based on the network quality of the first network currently accessed.
在一种示例性实例中,第一网络为Wi-Fi网络,步骤100可以包括:In an exemplary example, the first network is a Wi-Fi network, and step 100 may include:
判断出往返时间(RTT,Round-Trip Time)大于预先设置的RTT时长阈值,且Wi-Fi发射功率(Tx Power)小于预先设置的第一发射功率阈值,确定出第一网络质量变差。It is determined that the round-trip time (RTT, Round-Trip Time) is greater than the preset RTT duration threshold, and the Wi-Fi transmission power (Tx Power) is less than the preset first transmission power threshold, and it is determined that the first network quality has deteriorated.
其中,RTT表示从发送端发送数据开始,到发送端收到来自接收端的确认,总共经历的时延,RTT越大,代表往返时间越长,也就意味着网络延时越长。Wi-Fi Tx Power越小,电子设备接入本小区控制信道的发射功率电平就越小,也就意味着网络信号越差。Among them, RTT represents the total delay experienced from the time the sender sends data to the time the sender receives the confirmation from the receiver. The larger the RTT, the longer the round trip time, which means the longer the network delay. The smaller the Wi-Fi Tx Power, the smaller the transmit power level of the electronic device connected to the control channel of the cell, which means the worse the network signal.
在一种示例性实例中,第一网络为Wi-Fi网络,步骤100可以包括:In an exemplary example, the first network is a Wi-Fi network, and step 100 may include:
判断出RTT大于预先设置的RTT时长阈值,且吞吐量(Throughput)小于预先设置的吞吐量阈值,确定出第一网络质量变差。It is determined that the RTT is greater than the preset RTT duration threshold and the throughput (Throughput) is less than the preset throughput threshold, and it is determined that the first network quality has deteriorated.
其中,吞吐量表示的是路由器每秒能处理的数据量,Wi-Fi Throughput越小,将导致网络速率越低。Among them, throughput represents the amount of data that the router can process per second. The smaller the Wi-Fi Throughput, the lower the network rate will be.
在一种示例性实例中,第一网络为Wi-Fi网络,步骤100可以包括: In an exemplary example, the first network is a Wi-Fi network, and step 100 may include:
判断出RTT大于预先设置的RTT时长阈值、Wi-Fi Tx Power小于预先设置的第一发射功率阈值,且Throughput小于预先设置的吞吐量阈值,确定出第一网络质量变差。It is determined that the RTT is greater than the preset RTT duration threshold, the Wi-Fi Tx Power is less than the preset first transmission power threshold, and the throughput is less than the preset throughput threshold, and it is determined that the first network quality has deteriorated.
在一种示例性实例中,第一网络为蜂窝网络(Cellular Network),也称移动网络(Mobile Network),步骤100可以包括:In an exemplary example, the first network is a cellular network (Cellular Network), also called a mobile network (Mobile Network). Step 100 may include:
判断出接收信号强度指示(RSSI,Received Signal Strength Indicator)小于预先设置的RSSI阈值,且蜂窝发射功率(Tx Power)小于预先设置的第二发射功率阈值,确定出第一网络质量变差。It is determined that the received signal strength indicator (RSSI, Received Signal Strength Indicator) is less than the preset RSSI threshold, and the cellular transmission power (Tx Power) is less than the preset second transmission power threshold, and it is determined that the first network quality has deteriorated.
其中,RSSI反映了当前信道的接收信号强度和干扰程度,RSSI越小,意味着接收信号越弱。Among them, RSSI reflects the received signal strength and interference level of the current channel. The smaller the RSSI, the weaker the received signal.
在一种示例性实例中,第一网络为蜂窝网络,步骤100可以包括:In an exemplary example, the first network is a cellular network, and step 100 may include:
判断出RSSI小于预先设置的RSSI阈值,且空闲信道评估(CCA,Clear Channel Assessment)水平(Level)小于预先设置的评估阈值,确定出第一网络质量变差。It is determined that the RSSI is less than the preset RSSI threshold, and the Clear Channel Assessment (CCA, Clear Channel Assessment) level (Level) is less than the preset assessment threshold, and it is determined that the first network quality has deteriorated.
其中,CCA Level越小,意味着可用信道越少,也就是网络即将出现拥塞。Among them, the smaller the CCA Level, the fewer available channels, which means the network is about to be congested.
在一种示例性实例中,第一网络为蜂窝网络,步骤100可以包括:In an exemplary example, the first network is a cellular network, and step 100 may include:
判断出RSSI小于预先设置的RSSI阈值、蜂窝Tx Power小于预先设置的第二发射功率阈值,且CCA Level小于预先设置的评估阈值,确定出第一网络质量变差。It is determined that the RSSI is less than the preset RSSI threshold, the cellular Tx Power is less than the preset second transmission power threshold, and the CCA Level is less than the preset evaluation threshold, and it is determined that the first network quality has deteriorated.
需要说明的是,本申请实施例中列举的体现网络质量的参数,如Tx Power、Throughput、RTT、Http等参数,仅仅是一些实现示例,并不用于限定本申请的保护范围。影响网络质量的参数不限于以上参数,在实际评估中可以选择其他参数来评估网络质量。It should be noted that the parameters reflecting network quality listed in the embodiments of this application, such as Tx Power, Throughput, RTT, HTTP and other parameters, are only some implementation examples and are not used to limit the scope of protection of this application. The parameters that affect network quality are not limited to the above parameters. In actual evaluation, other parameters can be selected to evaluate network quality.
步骤101:对第一网络进行网速探测,连续两次网速探测之间的时间差大于预设时长阈值,电子设备从第一网络切换至第二网络。Step 101: Perform network speed detection on the first network. If the time difference between two consecutive network speed detections is greater than the preset time length threshold, the electronic device switches from the first network to the second network.
在一种示例性实例中,网速探测可以包括但不限于如超文本传输协议(HTTP,Hypertext Transfer Protocol)网络信号质量探测、Ping、域名系统(DNS,Domain Name System)信息探测等探测方式。In an exemplary example, network speed detection may include but is not limited to detection methods such as Hypertext Transfer Protocol (HTTP, Hypertext Transfer Protocol) network signal quality detection, Ping, Domain Name System (DNS, Domain Name System) information detection, and other detection methods.
通过本申请实施例提供的实现网络间切换的方法,实现了在电子设备当前接入的第一网络的网络信号质量变差时,就会提前接入第二网络,使得在第一网络信号差时及时切换到了第二网络,提升了用户体验。以蜂窝网络和Wi-Fi网络切换机制为例,可以只要有Wi-Fi信号,优先连接Wi-Fi网络;而当Wi-Fi信号变差时,就切换至蜂窝网络,这样在遇到Wi-Fi信号差的情况下,由于及时切换到了蜂窝网络,也不会影 响用户体验。Through the method for implementing handover between networks provided by the embodiments of the present application, when the network signal quality of the first network currently accessed by the electronic device deteriorates, the electronic device will access the second network in advance, so that when the signal quality of the first network deteriorates, the electronic device will access the second network in advance. It switched to the second network in time, which improved the user experience. Taking the cellular network and Wi-Fi network switching mechanism as an example, as long as there is a Wi-Fi signal, the Wi-Fi network can be connected first; and when the Wi-Fi signal becomes poor, the cellular network can be switched. In this way, when Wi-Fi is encountered When the Fi signal is poor, it will not be affected due to timely switching to the cellular network. impact user experience.
图2为本申请实施例中Wi-Fi网络切换至蜂窝网络的第一实施例流程示意图,如图2所示,可以包括:Figure 2 is a schematic flowchart of the first embodiment of switching from a Wi-Fi network to a cellular network in this embodiment of the present application. As shown in Figure 2, it may include:
步骤200:判断Wi-Fi发射功率是否小于第一发射功率阈值,如果Wi-Fi发射功率小于第一发射功率阈值,进入步骤201;如果Wi-Fi发射功率不小于第一发射功率阈值,进入步骤203。Step 200: Determine whether the Wi-Fi transmission power is less than the first transmission power threshold. If the Wi-Fi transmission power is less than the first transmission power threshold, proceed to step 201; if the Wi-Fi transmission power is not less than the first transmission power threshold, proceed to step 200. 203.
步骤201:判断吞吐量是否小于吞吐量阈值,如果吞吐量小于吞吐量阈值,进入步骤202;如果吞吐量不小于吞吐量阈值,进入步骤203。Step 201: Determine whether the throughput is less than the throughput threshold. If the throughput is less than the throughput threshold, go to step 202; if the throughput is not less than the throughput threshold, go to step 203.
步骤202:判断RTT是否大于第一时长阈值,如果RTT大于第一时长阈值,进入步骤204;如果RTT不大于第一时长阈值,进入步骤203。Step 202: Determine whether the RTT is greater than the first duration threshold. If the RTT is greater than the first duration threshold, proceed to step 204; if the RTT is not greater than the first duration threshold, proceed to step 203.
步骤203:经过预设第一时间间隔△t11后返回步骤200,继续检测WIFI信号。Step 203: After the preset first time interval Δt11, return to step 200 and continue to detect WIFI signals.
步骤204:Http网络探测网络信号质量。Step 204: HTTP network detects network signal quality.
步骤205:连续两次Http网络探测之间的时间差是否大于预先设置的时长阈值,如果时间差大于预先设置的时长阈值,进入步骤206;如果时间差不大于预先设置的时长阈值,返回步骤203。Step 205: Check whether the time difference between two consecutive HTTP network detections is greater than the preset duration threshold. If the time difference is greater than the preset duration threshold, proceed to step 206; if the time difference is not greater than the preset duration threshold, return to step 203.
步骤206:电子设备从Wi-Fi网络切换到蜂窝网络。Step 206: The electronic device switches from the Wi-Fi network to the cellular network.
通过图2所示的Wi-Fi网络切换至蜂窝网络的第一实施例,实现了在电子设备当前接入的Wi-Fi网络的网络信号质量变差时,就会提前接入蜂窝网络,使得在Wi-Fi网络信号差时及时切换到了蜂窝网络,提升了用户体验。比如:对于出门打车的场景,手机连接的Wi-Fi信号变差,就会及时切换到蜂窝网络,保证了能够刷新出打车信息;再如:对于在家打游戏的场景,当出现游戏卡顿时,是不会再继续连接Wi-Fi网络的,而是会切换至蜂窝网络打游戏,保证了用户体验。Through the first embodiment of switching from the Wi-Fi network to the cellular network shown in Figure 2, when the network signal quality of the Wi-Fi network currently connected to the electronic device deteriorates, the electronic device will access the cellular network in advance, so that When the Wi-Fi network signal is poor, it switches to the cellular network in time, improving the user experience. For example: when going out to take a taxi, if the Wi-Fi signal connected to the mobile phone becomes poor, it will switch to the cellular network in time to ensure that the taxi information can be refreshed; another example: when playing games at home, when the game freezes, It will no longer continue to connect to the Wi-Fi network, but will switch to the cellular network to play games, ensuring user experience.
图3为本申请实施例中蜂窝网络切换至Wi-Fi网络的第一实施例流程示意图,如图3所示,可以包括:Figure 3 is a schematic flowchart of the first embodiment of switching from a cellular network to a Wi-Fi network in this embodiment of the present application. As shown in Figure 3, it may include:
步骤300:判断蜂窝发射功率是否小于第二发射功率阈值,如果蜂窝发射功率小于第二发射功率阈值,进入步骤301;如果蜂窝发射功率不小于第二发射功率阈值,进入步骤303。Step 300: Determine whether the cellular transmission power is less than the second transmission power threshold. If the cellular transmission power is less than the second transmission power threshold, proceed to step 301; if the cellular transmission power is not less than the second transmission power threshold, proceed to step 303.
步骤301:判断RSSI是否小于预先设置的RSSI阈值,如果RSSI小于预先设置的RSSI阈值,进入步骤302;如果RSSI不小于预先设置的RSSI阈值,进入步骤303。Step 301: Determine whether the RSSI is less than the preset RSSI threshold. If the RSSI is less than the preset RSSI threshold, go to step 302; if the RSSI is not less than the preset RSSI threshold, go to step 303.
步骤302:判断CCA Level是否小于预先设置的评估阈值,如果CCA Level小于预先设置的评估阈值,进入步骤304;如果CCA不小于预先设置的评估阈值,进入 步骤303。Step 302: Determine whether the CCA Level is less than the preset evaluation threshold. If the CCA Level is less than the preset evaluation threshold, proceed to step 304; if the CCA Level is not less than the preset evaluation threshold, proceed to Step 303.
步骤303:经过预设第一时间间隔△t11后返回步骤300,继续检测蜂窝信号。Step 303: After the preset first time interval Δt11, return to step 300 and continue to detect cellular signals.
步骤304:Http网络探测网络信号质量。Step 304: HTTP network detects network signal quality.
步骤305:连续两次Http网络探测之间的时间差是否大于预先设置的时长阈值,如果时间差大于预先设置的时长阈值,进入步骤306;如果时间差不大于预先设置的时长阈值,返回步骤303。Step 305: Check whether the time difference between two consecutive HTTP network detections is greater than the preset duration threshold. If the time difference is greater than the preset duration threshold, proceed to step 306; if the time difference is not greater than the preset duration threshold, return to step 303.
步骤306:电子设备从蜂窝网络切换到Wi-Fi网络。Step 306: The electronic device switches from the cellular network to the Wi-Fi network.
通过图3所示的蜂窝网络切换至Wi-Fi网络的第一实施例,实现了在电子设备当前接入的蜂窝网络的网络信号质量变差时,就会提前接入Wi-Fi网络,使得在蜂窝网络信号差时及时切换到了Wi-Fi网络,提升了用户体验。比如:在进家后,由于家里面某些位置的蜂窝网络信号不佳,比如卫生间等,手机连接的蜂窝信号变差,就会及时切换到Wi-Fi网络,保证了用户对网络的使用体验。Through the first embodiment of switching from a cellular network to a Wi-Fi network as shown in Figure 3, when the network signal quality of the cellular network currently accessed by the electronic device deteriorates, the electronic device will access the Wi-Fi network in advance, so that When the cellular network signal is poor, it switches to the Wi-Fi network in time, improving the user experience. For example: after entering the home, due to poor cellular network signal in certain locations in the home, such as the bathroom, etc., and the cellular signal connected to the mobile phone becomes poor, it will switch to the Wi-Fi network in time to ensure the user's network experience. .
从图2、图3所示实施例可见,本申请实施例提供的Wi-Fi网络和蜂窝网络间切换的方法,在切网之前,会对电子设备当前接入的网络的网络状态进行评估和判断,以确定出最终是否需要进行网络切换。It can be seen from the embodiments shown in Figures 2 and 3 that the method for switching between a Wi-Fi network and a cellular network provided by embodiments of the present application evaluates and evaluates the network status of the network currently accessed by the electronic device before switching the network. Judgment to determine whether network switching is ultimately required.
以图2所示的Wi-Fi网络切换至蜂窝网络的第一实施例为例,是先针对当前接入的Wi-Fi网络信号质量进行评估后,再判断是否触发切换到蜂窝网络的操作。在这个过程中,针对Wi-Fi网络信号质量进行了评估,但是没有对蜂窝网络信号进行评估,这样,存在蜂窝网络信号比Wi-Fi网络还要差的可能性,此时若从信号质量差的Wi-Fi网络切换到蜂窝网络,还是会造成电子设备处于所接网络信号差的环境。同样,对于图3所示的从蜂窝网络切换Wi-Fi网络的第一实施例,同样存在类似的问题。Taking the first embodiment of switching from a Wi-Fi network to a cellular network shown in Figure 2 as an example, the signal quality of the currently accessed Wi-Fi network is first evaluated, and then it is determined whether to trigger the switching to the cellular network. In this process, the Wi-Fi network signal quality was evaluated, but the cellular network signal was not evaluated. In this way, there is a possibility that the cellular network signal is worse than the Wi-Fi network. At this time, if the signal quality is poor Switching from a Wi-Fi network to a cellular network will still cause electronic devices to be in an environment with poor network signals. Similarly, similar problems also exist for the first embodiment of switching the Wi-Fi network from the cellular network shown in FIG. 3 .
如图4所示,在电子设备从第一网络切换至第二网络之前,本申请实施例提供的实现网络间切换的方法还可以包括:As shown in Figure 4, before the electronic device switches from the first network to the second network, the method for implementing handover between networks provided by the embodiment of the present application may also include:
步骤400:对第一网络和第二网络的网络信号质量分别进行评估。Step 400: Evaluate the network signal quality of the first network and the second network respectively.
在一种示例性实例中,步骤400可以包括:In an exemplary example, step 400 may include:
根据预先设置的评估策略对影响第一网络的信号质量的多个参数进行打分得到第一打分值,根据预先设置的评估策略对影响第二网络的信号质量的多个参数进行打分得到第二打分值;Score multiple parameters that affect the signal quality of the first network according to the preset evaluation strategy to obtain a first scoring value, and score multiple parameters that affect the signal quality of the second network according to the preset evaluation strategy to obtain a second score. value;
按照预先设置的各参数的权重及得到的第一打分值,计算第一网络的网络信号质量的第一分数值,按照预先设置的各参数的权重及得到的第二打分值,计算第二网络的网络信号质量的第二分数值。 Calculate the first score value of the network signal quality of the first network according to the preset weight of each parameter and the obtained first score value, and calculate the first score value of the network signal quality of the second network according to the preset weight of each parameter and the obtained second score value The second fractional value of network signal quality.
在一种示例性实例中,多个参数可以包括以下之一或任意组合:RTT、发射功率、吞吐量和Http连续探测时间差等。需要说明的是,这里仅仅是举例说明影响第一网络的信号质量的多个参数,并不用于限定本申请的保护范围。In an exemplary example, the multiple parameters may include one or any combination of the following: RTT, transmission power, throughput, HTTP continuous detection time difference, etc. It should be noted that this is only an example of multiple parameters that affect the signal quality of the first network, and is not used to limit the scope of protection of the present application.
以对网络的网络信号质量进行评估,假设多个参数包括RTT、Wi-Fi发射功率、吞吐量和Http连续探测时间差,评估策略如表1、表2所示:
To evaluate the network signal quality of the network, assuming multiple parameters including RTT, Wi-Fi transmission power, throughput and HTTP continuous detection time difference, the evaluation strategy is shown in Table 1 and Table 2:
表1
Table 1
表2Table 2
表1中的参数A、参数B、参数C、参数△t均可以预先设置,用来参与评估网络质量,在实际应用中可以根据实际场景进行相应调整。在一种实施例中,第一发射功率阈值/第二发射功率阈值可以小于或等于A*50%,吞吐量阈值可以小于或等于B*50%,RTT时长阈值可以大于或等于C*85%,时长阈值可以大于或等于△t*85%。Parameter A, parameter B, parameter C, and parameter △t in Table 1 can all be preset to participate in the evaluation of network quality. In actual applications, they can be adjusted accordingly according to actual scenarios. In an embodiment, the first transmission power threshold/the second transmission power threshold may be less than or equal to A*50%, the throughput threshold may be less than or equal to B*50%, and the RTT duration threshold may be greater than or equal to C*85% , the duration threshold can be greater than or equal to △t*85%.
如表1、表2所示,在一种实施例中,评估策略可以包括:As shown in Table 1 and Table 2, in one embodiment, the evaluation strategy may include:
对于参数中的Tx pwr:For Tx pwr in parameters:
当Tx pwr≥A*85%时,Tx pwr对应的级别为优,对Tx pwr的打分如表2所示,打分后得到的S_tx pwr第一打分值/第二打分值为100;When Tx pwr ≥ A*85%, the corresponding level of Tx pwr is excellent. The scoring of Tx pwr is shown in Table 2. The first scoring value/second scoring value of S_tx pwr obtained after scoring is 100;
当A*85%>Tx pwr≥A*70%时,Tx pwr对应的级别为良,对Tx pwr的打分如表2所示,打分后得到的S_tx pwr第一打分值/第二打分值为80;When A*85%>Tx pwr≥A*70%, the corresponding level of Tx pwr is good. The scoring of Tx pwr is shown in Table 2. The first scoring value/second scoring value of S_tx pwr obtained after scoring is 80;
当A*70%>Tx pwr≥A*50%时,Tx pwr对应的级别为中,对Wi-Fi Tx pwr的打分如表2所示,打分后得到的S_tx pwr第一打分值/第二打分值为60;When A*70%>Tx pwr≥A*50%, the corresponding level of Tx pwr is medium. The scoring of Wi-Fi Tx pwr is shown in Table 2. After scoring, the S_tx pwr first score value/second The score value is 60;
当Tx pwr<A*50%时,Tx pwr对应的级别为差,对Tx pwr的打分如表2所示,打分后得到的S_tx pwr第一打分值/第二打分值为30。When Tx pwr<A*50%, the corresponding level of Tx pwr is poor. The scoring of Tx pwr is shown in Table 2. The first scoring value/second scoring value of S_tx pwr obtained after scoring is 30.
对于参数中的吞吐量: For throughput in parameters:
当吞吐量≥B*85%时,吞吐量对应的级别为优,对吞吐量的打分如表2所示,打分后得到的S_throughput第一打分值/第二打分值为100;When the throughput ≥ B*85%, the corresponding level of the throughput is excellent. The throughput score is shown in Table 2. The first score value/second score value of S_throughput obtained after scoring is 100;
当B*85%>吞吐量≥B*70%时,吞吐量对应的级别为良,对吞吐量的打分如表2所示,打分后得到的S_throughput第一打分值/第二打分值为80;When B*85%>throughput ≥B*70%, the corresponding level of throughput is good. The throughput score is shown in Table 2. The first score value/second score value of S_throughput obtained after scoring is 80 ;
当B*70%>吞吐量≥B*50%时,吞吐量对应的级别为中,对吞吐量的打分如表2所示,打分后得到的S_throughput第一打分值/第二打分值为60;When B*70%>throughput ≥B*50%, the corresponding level of throughput is medium. The throughput score is shown in Table 2. The first score value/second score value of S_throughput obtained after scoring is 60 ;
当B*50%>吞吐量≥B*50%时,吞吐量对应的级别为差,对吞吐量的打分如表2所示,打分后得到的S_throughput第一打分值/第二打分值为30。When B*50%>throughput ≥B*50%, the corresponding level of throughput is poor. The throughput score is shown in Table 2. The first score value/second score value of S_throughput obtained after scoring is 30 .
对于参数中的RTT:For RTT in parameters:
当RTT<C*50%时,RTT对应的级别为优,对RTT的打分如表2所示,打分后得到的S_RTT第一打分值/第二打分值为100;When RTT<C*50%, the corresponding level of RTT is excellent. The scoring of RTT is shown in Table 2. The first scoring value/second scoring value of S_RTT obtained after scoring is 100;
当C*50%<RTT<C*70%时,RTT对应的级别为良,对RTT的打分如表2所示,打分后得到的S_RTT第一打分值/第二打分值为80;When C*50%<RTT<C*70%, the corresponding level of RTT is good. The scoring of RTT is shown in Table 2. The first scoring value/second scoring value of S_RTT obtained after scoring is 80;
当C*70%<RTT<C*85%时,RTT对应的级别为中,对RTT的打分如表2所示,打分后得到的S_RTT第一打分值/第二打分值为60;When C*70%<RTT<C*85%, the corresponding level of RTT is medium. The scoring of RTT is shown in Table 2. The first scoring value/second scoring value of S_RTT obtained after scoring is 60;
当RTT≥C*85%时,RTT对应的级别为差,对RTT的打分如表2所示,打分后得到的S_RTT第一打分值/第二打分值为30。When RTT ≥ C*85%, the corresponding level of RTT is poor. The scoring of RTT is shown in Table 2. The first scoring value/second scoring value of S_RTT obtained after scoring is 30.
对于参数中的Http连续探测时间差:For the Http continuous detection time difference in the parameters:
当Http连续探测时间差<△t*50%时,Http连续探测时间差对应的级别为优,对Http连续探测时间差的打分如表2所示,打分后得到的S_http第一打分值/第二打分值为100;When the HTTP continuous detection time difference is <△t*50%, the corresponding level of the HTTP continuous detection time difference is excellent. The scoring of the HTTP continuous detection time difference is shown in Table 2. After scoring, the S_http first score value/second score value is obtained is 100;
当△t*50%<Http连续探测时间差<△t*70%时,Http连续探测时间差对应的级别为良,对Http连续探测时间差的打分如表2所示,打分后得到的S_http第一打分值/第二打分值为80;When △t*50%<Http continuous detection time difference<△t*70%, the corresponding level of Http continuous detection time difference is good. The scoring of Http continuous detection time difference is shown in Table 2. The first score of S_http obtained after scoring Value/second scoring value is 80;
当△t*70%<Http连续探测时间差<△t*85%时,Http连续探测时间差对应的级别为中,对Http连续探测时间差的打分如表2所示,打分后得到的S_http第一打分值/第二打分值为60;When △t*70% <Http continuous detection time difference <△t*85%, the corresponding level of Http continuous detection time difference is medium. The scoring of Http continuous detection time difference is shown in Table 2. The first score of S_http obtained after scoring Value/second scoring value is 60;
当Http连续探测时间差≥△t*85%时,Http连续探测时间差对应的级别为差,对Http连续探测时间差的打分如表2所示,打分后得到的S_http第一打分值/第二打分值为30。When the HTTP continuous detection time difference ≥ △t*85%, the corresponding level of the HTTP continuous detection time difference is difference. The scoring of the HTTP continuous detection time difference is shown in Table 2. After scoring, the S_http first score value/second score value is obtained is 30.
在一种示例性实例中,按照预先设置的各参数的权重及第一打分值/第二打分值, 计算第一网络/第二网络的网络信号质量的第一分数值S1/第二分数值S2,可以包括:S1=Pa1*S_tx pwr1+Pb1*S_throughput1+Pc1*S_RTT1+Pd1*S_http1,S2=Pa2*S_tx pwr2+Pb2*S_throughput2+Pc2*S_RTT2+Pd2*S_http2。其中,Pa1、Pb1、Pc1、Pd1分别为tx pwr1、throughput1、RTT1、Http1连续探测时间差指标的权重值,其中,0<Pa1<1,0<Pb1<1,0<Pc1<1,0<Pd1<1,且Pa1+Pb1+Pc1+Pd1=1。Pa2、Pb2、Pc2、Pd2分别为tx pwr2、throughput2、RTT2、Http2连续探测时间差指标的权重值,其中,0<Pa2<1,0<Pb2<1,0<Pc2<1,0<Pd2<1,且Pa2+Pb2+Pc2+Pd2=1。In an exemplary example, according to the preset weight of each parameter and the first scoring value/second scoring value, Calculating the first score S1/the second score S2 of the network signal quality of the first network/second network may include: S1=Pa1*S_tx pwr1+Pb1*S_throughput1+Pc1*S_RTT1+Pd1*S_http1, S2=Pa2 *S_tx pwr2+Pb2*S_throughput2+Pc2*S_RTT2+Pd2*S_http2. Among them, Pa1, Pb1, Pc1, and Pd1 are the weight values of the continuous detection time difference indicators of tx pwr1, throughput1, RTT1, and Http1 respectively. Among them, 0<Pa1<1, 0<Pb1<1, 0<Pc1<1, 0<Pd1 <1, and Pa1+Pb1+Pc1+Pd1=1. Pa2, Pb2, Pc2 and Pd2 are the weight values of tx pwr2, throughput2, RTT2 and Http2 continuous detection time difference indicators respectively, among which, 0<Pa2<1, 0<Pb2<1, 0<Pc2<1, 0<Pd2<1 , and Pa2+Pb2+Pc2+Pd2=1.
步骤401:第二网络的评估结果优于第一网络的评估结果,执行从第一网络切换至第二网络。Step 401: The evaluation result of the second network is better than the evaluation result of the first network, and switching from the first network to the second network is performed.
在一种示例性实例中,步骤401可以包括:比较第一分数值和第二分数值,确定出第二网络的第二分数值大于第一网络的第一分数值,执行从第一网络切换至第二网络。In an exemplary example, step 401 may include: comparing the first score value and the second score value, determining that the second score value of the second network is greater than the first score value of the first network, and performing switching from the first network to the second network.
在一种示例性实例中,确定出第二网络的第二分数值不大于第一网络的第一分数值,经过预设第二时间间隔△t22后,返回对第一网络和第二网络的信号质量分别进行评估的步骤,直到确定出第二网络的第二分数值高于第一网络的第一分数值,执行从第一网络切换至第二网络。在一种实施例中,当对第一网络和第二网络的信号质量分别进行检测的次数超过预设次数阈值,也可以选择退出此次检测,不执行网络切换。In an exemplary example, it is determined that the second score value of the second network is not greater than the first score value of the first network, and after the preset second time interval Δt22, the results of the first network and the second network are returned. The signal quality is evaluated separately until it is determined that the second score value of the second network is higher than the first score value of the first network, and switching from the first network to the second network is performed. In one embodiment, when the number of times of detecting the signal quality of the first network and the second network exceeds a preset threshold, you can also choose to exit the detection and not perform network switching.
通过图4所示的实施例,即针对第一网络的网络信号质量做了评估,也对第二网络的网络信号进行了评估,避免了第二网络的网络信号比第一网络的还要差的可能性,更好地保证了切换至的第二网络的信号质量确实优于第一网络的,及实现了及时切换也保证了切换的稳定性,提升了用户体验。Through the embodiment shown in Figure 4, the network signal quality of the first network is evaluated, and the network signal of the second network is also evaluated, which avoids that the network signal of the second network is worse than that of the first network. The possibility better ensures that the signal quality of the second network to be switched to is indeed better than that of the first network, and achieving timely switching also ensures the stability of the switching and improves the user experience.
在一种示例性实例中,在确定出第二网络的第二分数值大于第一网络的第一分数值之后,执行从第一网络切换至第二网络之前,还可以包括:In an exemplary example, after determining that the second score value of the second network is greater than the first score value of the first network and before performing the switch from the first network to the second network, the method may further include:
计算第二网络的第二分数值与预先设置的切换确认值的差值;Calculate the difference between the second score value of the second network and the preset handover confirmation value;
计算出的差值大于第一网络的第一分数值,执行从第一网络切换至第二网络的步骤。If the calculated difference is greater than the first score of the first network, the step of switching from the first network to the second network is performed.
在一种实施例中,切换确认值是预先设置的参数值,用于保证切换至的第二网络的信号质量确实稳定优于第一网络的信号质量。In one embodiment, the handover confirmation value is a preset parameter value used to ensure that the signal quality of the second network to which the handover is switched is indeed stably better than the signal quality of the first network.
通过增加切换确认值的进一步确认,避免了在第一网络和第二网络的分数值不同,第一网络和第二网络之间进行无休止的切换的问题,不会让电子设备处于网络不稳定的环境,很好地避免了出现往复切换到“乒乓效应”,保证了用户的网络体验。 By adding further confirmation of the switching confirmation value, the problem of endless switching between the first network and the second network is avoided when the score values of the first network and the second network are different, and the electronic device will not be left in a network unstable state. The environment effectively avoids the "ping-pong effect" of back-and-forth switching and ensures the user's network experience.
本申请还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于上述任一项所述的实现网络间切换的方法。This application also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used for any of the above-mentioned methods for implementing switching between networks.
本申请再提供一种实现网络间切换的电子设备,包括存储器和处理器,其中,存储器中存储有以下可被处理器执行的指令:用于执行上述任一项所述的实现网络间切换的方法的步骤。The present application further provides an electronic device for realizing switching between networks, including a memory and a processor, wherein the memory stores the following instructions that can be executed by the processor: for executing any of the above-mentioned methods for realizing switching between networks. Method steps.
图5为本申请实施例中实现网络间切换的装置的组成结构示意图,如图5所示,至少包括:确定模块、处理模块;其中,Figure 5 is a schematic structural diagram of a device for implementing handover between networks in an embodiment of the present application. As shown in Figure 5, it at least includes: a determination module and a processing module; wherein,
确定模块,用于根据当前接入的第一网络的网络质量确定出第一网络质量变差;A determining module, configured to determine that the quality of the first network has deteriorated based on the network quality of the currently accessed first network;
处理模块,用于对第一网络进行网速探测,连续两次网速探测之间的时间差大于预设时长阈值,从第一网络切换至第二网络。The processing module is used to perform network speed detection on the first network, and switch from the first network to the second network if the time difference between two consecutive network speed detections is greater than a preset time length threshold.
在一种示例性实例中,第一网络为Wi-Fi网络,确定模块用于:In an exemplary example, the first network is a Wi-Fi network, and the determining module is configured to:
判断出RTT大于预先设置的RTT时长阈值,且Wi-Fi Tx Power小于预先设置的第一发射功率阈值,确定出第一网络质量变差;或者,It is determined that the RTT is greater than the preset RTT duration threshold, and the Wi-Fi Tx Power is less than the preset first transmission power threshold, and it is determined that the first network quality has deteriorated; or,
判断出RTT大于预先设置的RTT时长阈值,且Throughput小于预先设置的吞吐量阈值,确定出第一网络质量变差;或者,It is determined that the RTT is greater than the preset RTT duration threshold and the throughput is less than the preset throughput threshold, and it is determined that the first network quality has deteriorated; or,
判断出RTT大于预先设置的RTT时长阈值、Wi-Fi Tx Power小于预先设置的第一发射功率阈值,且Throughput小于预先设置的吞吐量阈值,确定出第一网络质量变差。It is determined that the RTT is greater than the preset RTT duration threshold, the Wi-Fi Tx Power is less than the preset first transmission power threshold, and the throughput is less than the preset throughput threshold, and it is determined that the first network quality has deteriorated.
在一种示例性实例中,第一网络为蜂窝网络,确定模块用于:In an exemplary example, the first network is a cellular network, and the determining module is configured to:
判断出RSSI小于预先设置的RSSI阈值,且蜂窝Tx Power小于预先设置的第二发射功率阈值,确定出第二网络质量变差;或者,It is determined that the RSSI is less than the preset RSSI threshold, and the cellular Tx Power is less than the preset second transmission power threshold, and it is determined that the second network quality has deteriorated; or,
判断出RSSI小于预先设置的RSSI阈值,且CCA水平小于预先设置的评估阈值,确定出第二网络质量变差;或者,It is determined that the RSSI is less than the preset RSSI threshold and the CCA level is less than the preset evaluation threshold, and it is determined that the quality of the second network has deteriorated; or,
判断出RSSI小于预先设置的RSSI阈值、蜂窝Tx Power小于预先设置的第二发射功率阈值,且CCA Level小于预先设置的评估阈值,确定出第二网络质量变差。It is determined that the RSSI is less than the preset RSSI threshold, the cellular Tx Power is less than the preset second transmission power threshold, and the CCA Level is less than the preset evaluation threshold, and it is determined that the second network quality has deteriorated.
通过本申请实施例提供的实现网络间切换的装置,实现了在电子设备当前接入的第一网络的网络信号质量变差时,就会提前接入第二网络,避免了在第一网络信号差时不能及时切换到第二网络的问题,提升了用户体验。以蜂窝网络和Wi-Fi网络切换机制为例,可以只要有Wi-Fi信号,优先连接Wi-Fi网络;而当Wi-Fi信号变差时,就切换至蜂窝网络,这样在遇到Wi-Fi信号很差的情况下,由于及时切换到了蜂窝网络,也不会影响用户体验。 Through the device for realizing handover between networks provided by the embodiments of the present application, when the network signal quality of the first network currently accessed by the electronic device deteriorates, the electronic device will access the second network in advance, thus avoiding the problem of switching between the first network and the first network. The problem of being unable to switch to the second network in time due to time differences has improved the user experience. Taking the cellular network and Wi-Fi network switching mechanism as an example, as long as there is a Wi-Fi signal, the Wi-Fi network can be connected first; and when the Wi-Fi signal becomes poor, the cellular network can be switched. In this way, when Wi-Fi is encountered Even when the Fi signal is very poor, the user experience will not be affected because it switches to the cellular network in time.
在一种示例性实例中,处理模块还用于:In an illustrative example, the processing module is also used to:
在从第一网络切换至第二网络之前,对第一网络和第二网络的网络信号质量分别进行评估;第二网络的评估结果优于第一网络的评估结果,执行从第一网络切换至第二网络。Before switching from the first network to the second network, evaluate the network signal quality of the first network and the second network respectively; the evaluation result of the second network is better than the evaluation result of the first network, and perform switching from the first network to the second network. Second network.
在一种是理性实例中,处理模块中的对第一网络和第二网络的网络信号质量分别进行评估,可以包括:In a rational example, the processing module separately evaluates the network signal quality of the first network and the second network, which may include:
根据预先设置的评估策略对影响第一网络的信号质量的多个参数进行打分得到第一打分值,根据预先设置的评估策略对影响第二网络的信号质量的多个参数进行打分得到第二打分值;Score multiple parameters that affect the signal quality of the first network according to the preset evaluation strategy to obtain a first scoring value, and score multiple parameters that affect the signal quality of the second network according to the preset evaluation strategy to obtain a second score. value;
按照预先设置的各参数的权重及得到的第一打分值,计算第一网络的网络信号质量的第一分数值,按照预先设置的各参数的权重及得到的第二打分值,计算第二网络的网络信号质量的第二分数值。Calculate the first score value of the network signal quality of the first network according to the preset weight of each parameter and the obtained first score value, and calculate the first score value of the network signal quality of the second network according to the preset weight of each parameter and the obtained second score value The second fractional value of network signal quality.
在一种示例性实例中,多个参数可以包括以下之一或任意组合:RTT、发射功率、吞吐量和Http连续探测时间差等。需要说明的是,这里仅仅是举例说明影响第一网络的信号质量的多个参数,并不用于限定本申请的保护范围。In an exemplary example, the multiple parameters may include one or any combination of the following: RTT, transmission power, throughput, HTTP continuous detection time difference, etc. It should be noted that this is only an example of multiple parameters that affect the signal quality of the first network, and is not used to limit the scope of protection of the present application.
在一种示例性实例中,处理模块中的第二网络的评估结果优于第一网络的评估结果,执行从第一网络切换至第二网络,可以包括:In an illustrative example, the evaluation result of the second network in the processing module is better than the evaluation result of the first network, and performing switching from the first network to the second network may include:
比较第一分数值和第二分数值,确定出第二网络的第二分数值大于第一网络的第一分数值,执行从第一网络切换至第二网络。Compare the first score value and the second score value, determine that the second score value of the second network is greater than the first score value of the first network, and perform switching from the first network to the second network.
本实施例中,即针对第一网络的网络信号质量做了评估,也对第二网络的网络信号进行了评估,避免了第二网络的网络信号比第一网络的还要差的可能性,更好地保证了切换至的第二网络的信号质量确实优于第一网络的,及实现了及时切换也保证了切换的稳定性,提升了用户体验。In this embodiment, the network signal quality of the first network is evaluated, and the network signal of the second network is also evaluated, thereby avoiding the possibility that the network signal of the second network is worse than that of the first network. This better ensures that the signal quality of the second network to which the switch is made is indeed better than that of the first network, and achieving timely switching also ensures the stability of the switching and improves the user experience.
在一种示例性实例中,处理模块还用于:In an illustrative example, the processing module is also used to:
确定出第二网络的第二分数值不大于第一网络的第一分数值,经过预设第二时间间隔△t22后,继续对第一网络和第二网络的信号质量分别进行检测,直到确定出第二网络的第二分数值高于第一网络的第一分数值,执行从第一网络切换至第二网络。It is determined that the second score value of the second network is not greater than the first score value of the first network. After the preset second time interval Δt22, continue to detect the signal quality of the first network and the second network respectively until it is determined If the second score value of the second network is higher than the first score value of the first network, switching from the first network to the second network is performed.
在一种示例性实例中,处理模块还可以用于:In an illustrative example, the processing module can also be used to:
在确定出第二网络的评估结果优于第一网络的评估结果之后,执行从第一网络切换至第二网络之前,计算第二网络的评估结果与预先设置的切换确认值的差值;计算出的差值大于第一网络的评估结果,执行从第一网络切换至第二网络。在一种实施例 中,在确定出第二网络的第二分数值大于第一网络的第一分数值之后,执行从第一网络切换至第二网络之前,计算第二网络的第二分数值与预先设置的切换确认值的差值;计算出的差值大于第一网络的第一分数值,执行从第一网络切换至第二网络。After it is determined that the evaluation result of the second network is better than the evaluation result of the first network, before switching from the first network to the second network, calculate the difference between the evaluation result of the second network and the preset switching confirmation value; calculate If the difference is greater than the evaluation result of the first network, switching from the first network to the second network is performed. In one embodiment , after it is determined that the second score value of the second network is greater than the first score value of the first network, before switching from the first network to the second network, calculate the second score value of the second network and the preset handover value The difference in values is confirmed; the calculated difference is greater than the first score value of the first network, and switching from the first network to the second network is performed.
本实施例中,通过增加切换确认值的进一步确认,避免了在第一网络和第二网络的分数值不同,第一网络和第二网络之间进行无休止的切换的问题,不会让电子设备处于网络不稳定的环境,很好地避免了出现往复切换到“乒乓效应”,保证了用户的网络体验。In this embodiment, by adding further confirmation of the switching confirmation value, the problem of endless switching between the first network and the second network is avoided when the score values of the first network and the second network are different, and the electronics will not be let go. The device is in an unstable network environment, which avoids the "ping-pong effect" of back-and-forth switching and ensures the user's network experience.
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。 Although the embodiments disclosed in the present application are as above, the described contents are only used to facilitate the understanding of the present application and are not intended to limit the present application. Anyone skilled in the field to which this application belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in this application. However, the scope of patent protection of this application still must The scope is defined by the appended claims.

Claims (18)

  1. 一种实现网络间切换的方法,其特征在于,包括:A method for realizing handover between networks, characterized by including:
    电子设备根据当前接入的第一网络的网络质量确定出第一网络质量变差;The electronic device determines that the quality of the first network has deteriorated based on the network quality of the currently accessed first network;
    对所述第一网络进行网速探测,连续两次网速探测之间的时间差大于预设时长阈值,电子设备从所述第一网络切换至第二网络。Network speed detection is performed on the first network. If the time difference between two consecutive network speed detections is greater than a preset time length threshold, the electronic device switches from the first network to the second network.
  2. 根据权利要求1所述的方法,其中,所述第一网络为无线保真Wi-Fi网络;所述确定出第一网络质量变差,包括:The method according to claim 1, wherein the first network is a wireless fidelity Wi-Fi network; and determining that the quality of the first network has deteriorated includes:
    判断出往返时间RTT大于预先设置的RTT时长阈值,且Wi-Fi发射功率小于预先设置的第一发射功率阈值,确定出所述第一网络质量变差;It is determined that the round trip time RTT is greater than the preset RTT duration threshold, and the Wi-Fi transmission power is less than the preset first transmission power threshold, and it is determined that the first network quality has deteriorated;
    或者,判断出RTT大于预先设置的RTT时长阈值,且吞吐量小于预先设置的吞吐量阈值,确定出所述第一网络质量变差;Alternatively, it is determined that the RTT is greater than a preset RTT duration threshold and the throughput is less than a preset throughput threshold, and it is determined that the first network quality has deteriorated;
    或者,判断出RTT大于预先设置的RTT时长阈值、Wi-Fi发射功率小于预先设置的第一发射功率阈值,且吞吐量小于预先设置的吞吐量阈值,确定出所述第一网络质量变差。Alternatively, it is determined that the RTT is greater than the preset RTT duration threshold, the Wi-Fi transmission power is less than the preset first transmission power threshold, and the throughput is less than the preset throughput threshold, and it is determined that the first network quality has deteriorated.
  3. 根据权利要求1所述的方法,其中,所述第一网络为蜂窝网络;所述确定出第一网络质量变差,包括:The method according to claim 1, wherein the first network is a cellular network; and determining that the quality of the first network has deteriorated includes:
    判断出接收信号强度指示RSSI小于预先设置的RSSI阈值,且蜂窝发射功率小于预先设置的第二发射功率阈值,确定出所述第一网络质量变差;It is determined that the received signal strength indicator RSSI is less than a preset RSSI threshold, and the cellular transmission power is less than a preset second transmission power threshold, and it is determined that the first network quality has deteriorated;
    或者,判断出RSSI小于预先设置的RSSI阈值,且空闲信道评估CCA水平小于预先设置的评估阈值,确定出所述第一网络质量变差;Or, it is determined that the RSSI is less than a preset RSSI threshold, and the idle channel evaluation CCA level is less than a preset evaluation threshold, and it is determined that the first network quality has deteriorated;
    或者,判断出RSSI小于预先设置的RSSI阈值、蜂窝发射功率小于预先设置的第二发射功率阈值,且CCA水平小于预先设置的评估阈值,确定出所述第一网络质量变差。Alternatively, it is determined that the RSSI is less than a preset RSSI threshold, the cellular transmission power is less than a preset second transmission power threshold, and the CCA level is less than a preset evaluation threshold, and it is determined that the first network quality has deteriorated.
  4. 根据权利要求1所述的方法,其中,所述网速探测包括超文本传输协议HTTP网络信号质量探测。The method according to claim 1, wherein the network speed detection includes Hypertext Transfer Protocol (HTTP) network signal quality detection.
  5. 根据权利要求1所述的方法,所述确定出第一网络质量变差之前,还包括:根据当前接入的第一网络的网络质量确定第一网络质量是否变差;The method according to claim 1, before determining that the quality of the first network has deteriorated, further comprising: determining whether the quality of the first network has deteriorated based on the network quality of the first network currently accessed;
    确定出所述第一网络质量未变差,预设第一时间间隔后返回所述确定第一网络质量是否变差的步骤。It is determined that the first network quality has not deteriorated, and the step of determining whether the first network quality has deteriorated is returned after presetting a first time interval.
  6. 根据权利要求5所述的方法,还包括:所述连续两次网速探测之间的时间差不大于预设时长阈值,预设第一时间间隔后返回所述确定第一网络质量是否变差的步骤。The method according to claim 5, further comprising: the time difference between the two consecutive network speed detections is not greater than a preset time length threshold, and returning the step of determining whether the first network quality has deteriorated after presetting the first time interval. step.
  7. 根据权利要求1所述的方法,所述从第一网络切换至第二网络之前,还包括:The method according to claim 1, before switching from the first network to the second network, further comprising:
    对所述第一网络和所述第二网络的网络信号质量分别进行评估; Evaluate the network signal quality of the first network and the second network respectively;
    确定出所述第二网络的评估结果优于所述第一网络的评估结果,执行从所述第一网络切换至所述第二网络的步骤。It is determined that the evaluation result of the second network is better than the evaluation result of the first network, and the step of switching from the first network to the second network is performed.
  8. 根据权利要求7所述的方法,其中,所述对所述第一网络和所述第二网络的网络信号质量分别进行评估,包括:The method according to claim 7, wherein said evaluating the network signal quality of the first network and the second network respectively includes:
    根据预先设置的评估策略对影响所述第一网络的信号质量的多个参数进行打分得到第一打分值,根据所述评估策略对影响所述第二网络的信号质量的多个参数进行打分得到第二打分值;Score multiple parameters that affect the signal quality of the first network according to a preset evaluation strategy to obtain a first scoring value. Score multiple parameters that affect the signal quality of the second network according to the evaluation strategy to obtain a first score value. second scoring value;
    按照预先设置的各参数的权重及所述第一打分值,计算所述第一网络的网络信号质量的第一分数值,按照所述权重及所述第二打分值,计算所述第二网络的网络信号质量的第二分数值。Calculate the first score value of the network signal quality of the first network according to the preset weight of each parameter and the first score value, and calculate the first score value of the network signal quality of the second network according to the weight and the second score value. The second fractional value of network signal quality.
  9. 根据权利要求8所述的方法,其中,多个参数包括以下之一或任意组合:RTT、发射功率、吞吐量和Http连续探测时间差。The method of claim 8, wherein the plurality of parameters include one or any combination of the following: RTT, transmission power, throughput, and HTTP continuous detection time difference.
  10. 根据权利要求7所述的方法,其中,所述确定出所述第二网络的评估结果优于所述第一网络的评估结果,包括:The method of claim 7, wherein determining that the evaluation result of the second network is better than the evaluation result of the first network includes:
    比较所述第一分数值和所述第二分数值,确定出所述第二分数值大于所述第一分数值,执行所述从所述第一网络切换至所述第二网络的步骤。Compare the first score value and the second score value, determine that the second score value is greater than the first score value, and perform the step of switching from the first network to the second network.
  11. 根据权利要求10所述的方法,所述确定出所述第二分数值大于所述第一分数值之后,从所述第一网络切换至所述第二网络之前,还包括:The method according to claim 10, after determining that the second score value is greater than the first score value and before switching from the first network to the second network, further comprising:
    计算所述第二分数值与预先设置的切换确认值的差值;Calculate the difference between the second score value and a preset switching confirmation value;
    计算出的差值大于所述第一分数值,执行从所述第一网络切换至所述第二网络的步骤。If the calculated difference is greater than the first fractional value, the step of switching from the first network to the second network is performed.
  12. 根据权利要求7所述的方法,还包括:确定出所述第二分数值不大于所述第一分数值,预设第二时间间隔后,返回对所述第一网络和所述第二网络的信号质量分别进行评估的步骤。The method according to claim 7, further comprising: determining that the second score value is not greater than the first score value, and returning to the first network and the second network after presetting a second time interval. The signal quality is assessed separately.
  13. 根据权利要求1、7、或11所述的方法,其中,所述第一网络为Wi-Fi网络,所述第二网络为蜂窝网络;The method according to claims 1, 7, or 11, wherein the first network is a Wi-Fi network and the second network is a cellular network;
    或者,所述第一网络为蜂窝网络,所述第二网络为Wi-Fi网络。Alternatively, the first network is a cellular network, and the second network is a Wi-Fi network.
  14. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~权利要求13任一项所述的实现网络间切换的方法。A computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the method for implementing switching between networks according to any one of claims 1 to 13.
  15. 一种实现网络间切换的电子设备,包括存储器和处理器,其中,存储器中存储有以下可被处理器执行的指令:用于执行权利要求1~权利要求13任一项所述的实现网络间切换的方法的步骤。 An electronic device that implements switching between networks, including a memory and a processor, wherein the memory stores the following instructions that can be executed by the processor: for executing the inter-network switching described in any one of claims 1 to 13. Steps for switching methods.
  16. 一种实现网络间切换的装置,其特征在于,包括确定模块、处理模块;其中,A device for realizing handover between networks, characterized in that it includes a determination module and a processing module; wherein,
    所述确定模块,用于根据当前接入的第一网络的网络质量确定出第一网络质量变差;The determining module is configured to determine that the quality of the first network has deteriorated based on the network quality of the first network currently accessed;
    所述处理模块,用于对所述第一网络进行网速探测,连续两次网速探测之间的时间差大于预设时长阈值,从所述第一网络切换至第二网络。The processing module is configured to perform network speed detection on the first network, and switch from the first network to the second network if the time difference between two consecutive network speed detections is greater than a preset duration threshold.
  17. 根据权利要求16所述的装置,所述处理模块还用于:The device according to claim 16, the processing module is further used for:
    在从所述第一网络切换至所述第二网络之前,对所述第一网络和所述第二网络的网络信号质量分别进行评估;所述第二网络的评估结果优于所述第一网络的评估结果,执行从所述第一网络切换至所述第二网络。Before switching from the first network to the second network, the network signal quality of the first network and the second network are separately evaluated; the evaluation result of the second network is better than that of the first network. Based on the evaluation result of the network, switching from the first network to the second network is performed.
  18. 根据权利要求16所述的装置,所述处理模块还用于:The device according to claim 16, the processing module is further used for:
    所述第二网络的评估结果优于所述第一网络的评估结果之后,执行从所述第一网络切换至所述第二网络之前,计算所述第二网络的评估结果与预先设置的切换确认值的差值;计算出的差值大于所述第一网络的评估结果,执行从所述第一网络切换至所述第二网络。 After the evaluation result of the second network is better than the evaluation result of the first network, before switching from the first network to the second network, calculate the evaluation result of the second network and the preset switching The difference in values is confirmed; the calculated difference is greater than the evaluation result of the first network, and switching from the first network to the second network is performed.
PCT/CN2023/094174 2022-08-16 2023-05-15 Method and apparatus for implementing a switch between networks, and electronic device WO2024037070A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210981961.X 2022-08-16
CN202210981961.XA CN115209503A (en) 2022-08-16 2022-08-16 Method and device for realizing switching between networks and electronic equipment

Publications (1)

Publication Number Publication Date
WO2024037070A1 true WO2024037070A1 (en) 2024-02-22

Family

ID=83586847

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/094174 WO2024037070A1 (en) 2022-08-16 2023-05-15 Method and apparatus for implementing a switch between networks, and electronic device

Country Status (2)

Country Link
CN (1) CN115209503A (en)
WO (1) WO2024037070A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115209503A (en) * 2022-08-16 2022-10-18 Oppo广东移动通信有限公司 Method and device for realizing switching between networks and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472678A (en) * 2014-07-31 2016-04-06 腾讯科技(深圳)有限公司 Wireless network switching method, wireless network switching device and terminal equipment
CN106658616A (en) * 2016-12-26 2017-05-10 北京奇虎科技有限公司 Network switching method and apparatus based on network speed, and terminal device
CN109756940A (en) * 2018-06-19 2019-05-14 北京字节跳动网络技术有限公司 A kind of method for switching network and mobile terminal
CN111586782A (en) * 2020-05-25 2020-08-25 维沃移动通信有限公司 Network connection method and device
CN112004253A (en) * 2020-08-11 2020-11-27 北京小米移动软件有限公司 Network control method, device and storage medium
CN112492654A (en) * 2020-11-16 2021-03-12 北京小米移动软件有限公司 Network control method, device and storage medium
CN115209503A (en) * 2022-08-16 2022-10-18 Oppo广东移动通信有限公司 Method and device for realizing switching between networks and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479955B2 (en) * 2012-03-30 2016-10-25 Qualcomm Incorporated Dynamic measurement rates to speed up cell reselections
CN105657753A (en) * 2014-12-08 2016-06-08 中国移动通信集团山东有限公司 Method and device for redirecting among systems
CN109819476B (en) * 2017-11-21 2021-11-05 腾讯科技(深圳)有限公司 Network optimization method, terminal and storage medium
CN110868742A (en) * 2019-11-22 2020-03-06 上海商米科技集团股份有限公司 Network switching method and device
CN114828119A (en) * 2022-04-22 2022-07-29 深圳市卓讯通信息技术有限公司 Method and device for dynamically and intelligently switching dual-card network according to signal intensity

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105472678A (en) * 2014-07-31 2016-04-06 腾讯科技(深圳)有限公司 Wireless network switching method, wireless network switching device and terminal equipment
CN106658616A (en) * 2016-12-26 2017-05-10 北京奇虎科技有限公司 Network switching method and apparatus based on network speed, and terminal device
CN109756940A (en) * 2018-06-19 2019-05-14 北京字节跳动网络技术有限公司 A kind of method for switching network and mobile terminal
CN111586782A (en) * 2020-05-25 2020-08-25 维沃移动通信有限公司 Network connection method and device
CN112004253A (en) * 2020-08-11 2020-11-27 北京小米移动软件有限公司 Network control method, device and storage medium
CN112492654A (en) * 2020-11-16 2021-03-12 北京小米移动软件有限公司 Network control method, device and storage medium
CN115209503A (en) * 2022-08-16 2022-10-18 Oppo广东移动通信有限公司 Method and device for realizing switching between networks and electronic equipment

Also Published As

Publication number Publication date
CN115209503A (en) 2022-10-18

Similar Documents

Publication Publication Date Title
US10652774B2 (en) Prediction of quality of service of a possible future connection of a device to a wireless network
US20120003941A1 (en) Method, Apparatus, and Terminal for Determining Transmission Mode
WO2024037070A1 (en) Method and apparatus for implementing a switch between networks, and electronic device
US10645600B2 (en) Channel detection method and apparatus
US9357465B2 (en) Multimode handover method and multimode terminal
US9936028B2 (en) Method and system for client association management based on estimated session duration
EP2446665A1 (en) Methods and arrangements for mobility management
CN107113641A (en) WLAN user Quality of experience is controlled in multi-access point environment
CN111866932B (en) Network measurement method and device and electronic equipment
CN109413701B (en) VoLTE service switching method and system
EP3046372B1 (en) Method and apparatus for selecting power preference information in a wireless communication system network
WO2021115423A1 (en) Communication link control method, device, mobile terminal, and readable storage medium
CN110933724A (en) Switching method of VoWiFi and VoLTE voice services and mobile terminal
JP2018520552A (en) Techniques for managing SIFS bursting in WLAN systems
CA2647190C (en) Mobile communication terminal and program
CN107105464B (en) Network switching method and device and user equipment
JP2014522160A (en) Load compensation method, load estimation measurement method, base station, and user equipment
CN110505037B (en) Network interface communication rate matching method, device, equipment and storage medium
WO2022242368A1 (en) Network connection control method, terminal device and storage medium
US8982698B2 (en) Technique for transmission by a node of a communications network
JP6382530B2 (en) Communication terminal and program
WO2019028784A1 (en) Router side wifi switching method and router
CN113542215A (en) Method for improving streaming media transmission performance and related device
KR100772535B1 (en) Method for controlling congestion of node consisting ad-hoc network and apparatus thereof
WO2022242293A1 (en) Cell selection method and apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23853977

Country of ref document: EP

Kind code of ref document: A1