CN113784408A - Network switching method and electronic equipment - Google Patents

Network switching method and electronic equipment Download PDF

Info

Publication number
CN113784408A
CN113784408A CN202111334336.8A CN202111334336A CN113784408A CN 113784408 A CN113784408 A CN 113784408A CN 202111334336 A CN202111334336 A CN 202111334336A CN 113784408 A CN113784408 A CN 113784408A
Authority
CN
China
Prior art keywords
network
electronic device
service server
server
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111334336.8A
Other languages
Chinese (zh)
Other versions
CN113784408B (en
Inventor
何彦召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111334336.8A priority Critical patent/CN113784408B/en
Publication of CN113784408A publication Critical patent/CN113784408A/en
Application granted granted Critical
Publication of CN113784408B publication Critical patent/CN113784408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0066Transmission or use of information for re-establishing the radio link of control information between different types of networks in order to establish a new radio link in the target network
    • 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/14Reselecting a network or an air interface
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a network switching method and electronic equipment, relates to the field of electronic equipment, and can improve the network switching efficiency of the electronic equipment. The specific scheme is as follows: the method comprises the steps that under the condition that network parameters of a first network meet first switching conditions, the electronic equipment obtains an address of a service server; the electronic equipment determines a detection server according to the address of the service server; the distance between the detection server and the service server is smaller than a distance threshold value; the electronic equipment sends a detection message to the detection server through a second network; the electronic equipment receives a confirmation message from the detection server; the electronic equipment determines the network parameters of the second network according to the detection message and the confirmation message; and under the condition that the network parameters of the second network meet the second switching condition, at least one application program in the plurality of application programs of the electronic equipment accesses the corresponding service server through the second network.

Description

Network switching method and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a network switching method and an electronic device.
Background
At present, a mobile phone can start a full network convergence technology (Link Turbo) function or a Wireless Local Area Network (WLAN) + function, so that a WLAN network or a cellular network can be automatically switched according to a network congestion condition. For example, when the mobile phone detects that the network speed of the currently connected WLAN network is slow and the network speed of the cellular network is fast, the mobile phone may automatically switch to the cellular network, so as to use the cellular network to surf the internet.
Before the mobile phone is switched to the cellular network, quality of experience (QoE) detection needs to be performed on the cellular network. The QoE detection process may be: the mobile phone sends a QoE detection message to the detection server through the cellular network, the detection server sends a confirmation message to the mobile phone after receiving the QoE detection message, and the mobile phone receives the confirmation message sent by the detection server. The mobile phone may determine whether the cellular network meets the handover requirement according to a QoE detection result, that is, a network parameter of the cellular network, such as round-trip-time (RTT), in a process from sending the QoE detection packet to receiving the confirmation packet. The handset may be handed over to the cellular network in the event that the network parameters of the cellular network meet the requirements for handoff.
However, the location of the probe server is usually fixed, and the service server to be accessed by the handset is usually not in the same location as the probe server. This results in the QoE detection result not matching the network parameters of the actual service between the mobile phone and the service server, that is, the QoE detection result is inaccurate. This may cause the traffic after the network is switched by the handset to be unexpected, for example, the network speed is still slow after the network is switched.
Disclosure of Invention
The embodiment of the application provides a network switching method and electronic equipment, which can improve the accuracy of QoE detection, so that the network switching efficiency of a mobile phone is improved.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides a network switching method, which is applied to an electronic device, where the electronic device supports a first network and a second network, the electronic device includes a plurality of application programs, the plurality of application programs includes a first application program, and the first application program accesses a service server through the first network, where the network switching method may include: the method comprises the steps that under the condition that network parameters of a first network meet first switching conditions, the electronic equipment obtains an address of a service server; the electronic equipment determines a detection server according to the address of the service server; the distance between the detection server and the service server is smaller than a distance threshold value; the electronic equipment sends a detection message to the detection server through a second network; the electronic equipment receives a confirmation message from the detection server; the electronic equipment determines the network parameters of the second network according to the detection message and the confirmation message; and under the condition that the network parameters of the second network meet the second switching condition, at least one application program in the plurality of application programs of the electronic equipment accesses the corresponding service server through the second network.
Based on the method in the first aspect, before the electronic device is switched from the first network to the second network, a detection server closest to the location of the service server may be selected for QoE detection according to the location of the service server to be accessed by the application program of the electronic device, so that a QoE detection result is close to a network parameter of an actual service of the electronic device, and accuracy of QoE detection can be improved. Furthermore, network switching is carried out according to the QoE detection result, so that the network switching efficiency can be improved, and network switching failure, network switching post-jamming or ping-pong switching can be avoided.
With reference to the first aspect, in another possible implementation manner, the determining, by the electronic device, the probe server according to the address of the service server may include: the electronic equipment determines the position of the service server according to the address of the service server; the address of the service server corresponds to the position of the service server; the electronic equipment determines a detection server according to the position of the service server; the distance between the probe server and the service server is less than a distance threshold.
Based on the possible implementation manner, the electronic device can determine the detection server closest to the service server accessed by the application program, so that the detection server closest to the position of the service server performs QoE detection, the QoE detection result can be close to the network parameters of the actual service of the electronic device, and the accuracy of QoE detection can be improved.
With reference to the first aspect, in another possible implementation manner, the first handover condition may include at least one of that the signal strength of the first network is smaller than a first strength threshold, that the network delay of the first network is larger than a first delay threshold, or that the network speed of the first network is smaller than a first network speed threshold; the second handover condition may include at least one of a signal strength of the second network being greater than a second strength threshold, a network latency of the second network being less than a second latency threshold, or a wire speed of the second network being less than a second wire speed threshold.
Based on the possible implementation manner, the electronic device can determine that the first network cannot meet the use requirement of the user, and the second network can meet the use requirement of the user, so that the electronic device can perform network switching, and the network switching efficiency is improved.
With reference to the first aspect, in another possible implementation manner, the at least one application may include a first application.
Based on the possible implementation mode, the electronic equipment can switch the application program currently used by the user to a network capable of meeting the use requirement of the user, so that the use of the user is not influenced, and the experience of the user is improved.
With reference to the first aspect, in another possible implementation manner, the first network may be a wireless local area network WLAN network, and the second network may be a cellular network.
Based on the possible implementation manner, the electronic device can be switched to the cellular network under the condition that the current connection WLAN network cannot meet the use requirement of the user and the cellular network can meet the use requirement of the user, so that the use of the user is not influenced, and the user experience is improved.
With reference to the first aspect, in another possible implementation manner, before at least one application program of the multiple application programs of the electronic device accesses the corresponding service server through the second network, the network switching method may further include: the electronic equipment displays a prompt window, and the prompt window is used for a user to confirm whether at least one application program in the plurality of application programs accesses the corresponding service server through the second network; the electronic equipment receives a first operation of a user, wherein the first operation is used for confirming that at least one application program in the plurality of application programs accesses the corresponding service server through the second network.
Based on the possible implementation manner, the electronic device can perform network switching according to the requirements of the user by displaying a prompt window for the user to confirm whether to switch to the second network, so that the user experience can be improved.
With reference to the first aspect, in another possible implementation manner, the network handover method may further include: and under the condition that the network parameters of the first network do not meet the first switching condition, the plurality of application programs of the electronic equipment access the corresponding servers through the first network.
Based on the possible implementation manner, under the condition that the first network connected currently can meet the use requirement of the user, the electronic device may not perform network switching, and keeps the first network connection, that is, a plurality of application programs included in the electronic device access the corresponding server through the first network, so that the user experience can be improved.
With reference to the first aspect, in another possible implementation manner, the network handover method may further include: and under the condition that the network parameters of the second network do not meet the second switching condition, the plurality of application programs of the electronic equipment access the corresponding servers through the first network.
Based on the possible implementation manner, under the condition that the second network cannot meet the use requirement of the user, the electronic device may not perform network switching, and maintain the first network connection, that is, a plurality of application programs included in the electronic device access the corresponding server through the first network, so that the user experience can be improved.
In a second aspect, an embodiment of the present application provides a network switching apparatus, which can be applied to an electronic device, for implementing the method in the first aspect. The function of the network switching device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, for example, a determination module, an acquisition module, a transmission module, a reception module, an access module, and the like.
The determining module may be configured to determine whether a network parameter of the first network satisfies a first handover condition.
The obtaining module may be configured to obtain an address of a service server accessed by the first application program when the network parameter of the first network satisfies the first switching condition.
The determining module can also be used for determining the detection server according to the address of the service server. The distance between the probe server and the service server is less than a distance threshold.
The sending module may be configured to send the probe packet to the probe server through the second network.
The receiving module may be configured to receive an acknowledgement message from the probe server.
The determining module may be further configured to determine a network parameter of the second network according to the probe packet and the confirmation packet.
The determining module may be further configured to determine whether the network parameter of the second network satisfies a second handover condition.
The access module may be configured to, when the indicator of the second network satisfies the second switching condition, access the corresponding service server through the second network by at least one application program of the plurality of application programs of the electronic device.
With reference to the second aspect, in another possible implementation manner, the determining module may be specifically configured to determine the location of the service server according to an address of the service server; the address of the service server corresponds to the location of the service server. The determining module can be further used for determining the detection server according to the position of the service server; the distance between the probe server and the service server is less than a distance threshold.
With reference to the second aspect, in another possible implementation manner, the first handover condition may include at least one of that the signal strength of the first network is smaller than a first strength threshold, that the network delay of the first network is larger than a first delay threshold, or that the network speed of the first network is smaller than a first network speed threshold; the second handover condition may include at least one of a signal strength of the second network being greater than a second strength threshold, a network latency of the second network being less than a second latency threshold, or a wire speed of the second network being less than a second wire speed threshold.
With reference to the second aspect, in another possible implementation manner, the at least one application may include a first application.
With reference to the second aspect, in another possible implementation manner, the first network may be a wireless local area network WLAN network, and the second network may be a cellular network.
With reference to the second aspect, in another possible implementation manner, the network switching apparatus may further include a display module. And the display module can be used for displaying a prompt window which is used for confirming whether at least one application program in the plurality of application programs accesses the corresponding service server through the second network or not by the user. The receiving module may be further configured to receive a first operation of the user, where the first operation is used to confirm that at least one of the plurality of application programs accesses the corresponding service server through the second network.
With reference to the second aspect, in another possible implementation manner, the access module may be further configured to, when the network parameter of the first network does not satisfy the first switching condition, access the corresponding server through the first network by the plurality of application programs of the electronic device.
With reference to the second aspect, in another possible implementation manner, the access module may be further configured to, when the network parameter of the second network does not satisfy the second switching condition, access the corresponding server through the first network by the plurality of application programs of the electronic device.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions to enable the electronic device to implement the network switching method according to the first aspect or any one of the possible implementation manners of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having computer program instructions stored thereon. The computer program instructions, when executed by the electronic device, cause the electronic device to implement the network handover method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which includes computer readable code, and when the computer readable code is run in an electronic device, causes the electronic device to implement the network switching method according to the first aspect or any one of the possible implementation manners of the first aspect.
It should be understood that the beneficial effects of the second to fifth aspects can be seen from the description of the first aspect, and are not repeated herein.
Drawings
Fig. 1 is a first schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of network handover provided in an embodiment of the present application;
fig. 3 is a schematic flow chart of QoE detection provided in the embodiment of the present application;
fig. 4 is a scene schematic diagram of QoE detection provided in the embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a first flowchart illustrating a network handover method according to an embodiment of the present application;
fig. 7 is a second schematic display interface diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a second flowchart illustrating a network handover method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a network switching device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
Currently, WLAN networks have been widely used. For example, the user may connect to a wireless fidelity (Wi-Fi) network in the WLAN network using a mobile phone to surf the internet. However, sometimes, after the mobile phone is connected to the Wi-Fi network, the signal of the Wi-Fi network displayed on the mobile phone is full, but the network speed of the mobile phone is slow, which affects the use of the user. At this time, the user can turn on the Link Turbo function or the WLAN + function on the mobile phone, so that the mobile phone can automatically switch to other WLAN networks or cellular networks according to the congestion condition of the network. For example, when the network speed of the Wi-Fi network currently connected to the mobile phone is slow, and the network speed of the cellular network is fast, the mobile phone may automatically switch to the cellular network, so as to use the cellular network to surf the internet.
For example, the user clicks on an icon of a WLAN application on the handset. In response to a user clicking on an icon of the WLAN application, as shown in fig. 1, the handset displays a main interface 101 of the WLAN application, and the user selects a WLAN + option 102 in the main interface 101. And responding to the selection operation of the user on the WLAN +102, and starting the WLAN + function by the mobile phone, so that the mobile phone can automatically switch the WLAN network or the cellular network according to the congestion condition of the network.
Referring to fig. 2, taking the WLAN network to which the mobile phone is currently connected as a Wi-Fi network as an example, the process of switching the network by the mobile phone may include the following S201 to S207.
S201, connecting the mobile phone with the Wi-Fi network.
S202, the mobile phone determines whether the Wi-Fi network is jammed or not.
The mobile phone can detect the network speed of the currently connected Wi-Fi network in real time, so that whether the Wi-Fi network is jammed or not is determined. The mobile phone can detect the network speed of the Wi-Fi network connected currently when the Link Turbo function or the WLAN + function is started, so that whether the Wi-Fi network is blocked or not is determined. The mobile phone can keep the Wi-Fi network connection under the condition that the mobile phone determines that the Wi-Fi network is not blocked, and can determine whether to switch to the cellular network or not under the condition that the mobile phone determines that the Wi-Fi network is blocked, namely the mobile phone is connected with the cellular network.
When the mobile phone determines that the currently connected Wi-Fi network is stuck, the mobile phone may pull up the cellular network, and perform QoE detection with the detection server through the cellular network, that is, the mobile phone may continue to perform S203. In the case that the handset determines that the currently connected Wi-Fi network is not stuck, the handset may continue to detect whether the currently connected Wi-Fi network is stuck, that is, the handset may continue to perform S202.
S203, the mobile phone performs QoE detection with the detection server through the cellular network.
The mobile phone performs QoE detection with the detection server through the cellular network, and can determine whether the cellular network meets the handover requirement according to the result of the network parameters of the cellular network detected by the QoE.
Referring to fig. 3, the process of the mobile phone performing QoE detection with the detection server through the cellular network, that is, S203 described above may include the following S301-S304.
S301, the mobile phone sends a QoE detection message to the detection server through the cellular network.
When the mobile phone detects that the currently connected Wi-Fi network card is switched on, the mobile phone can pull up the cellular network, namely the mobile phone can start the data connection of the cellular network, so that the QoE detection message is sent to the detection server through the cellular network.
S302, the detection server receives the QoE detection message sent by the mobile phone.
S303, the detection server sends a confirmation message to the mobile phone.
After the detection server receives the QoE detection message sent by the mobile phone, the detection server can immediately send a confirmation message to the mobile phone. The acknowledgement message may be an ACK.
S304, the mobile phone receives the confirmation message sent by the detection server.
S204, the mobile phone determines the network parameters of the cellular network.
After the mobile phone receives the confirmation message sent by the detection server, the mobile phone may determine the detection result of the QoE detection, that is, the network parameter of the cellular network, such as round trip delay RTT, during the process from the sending of the QoE detection message to the receiving of the confirmation message by the mobile phone.
S205, the mobile phone determines whether the network parameters of the cellular network meet the requirement of switching.
After the handset determines the network parameters of the cellular network, the handset may determine whether the network parameters satisfy the requirements for handoff. When the network parameters meet the requirements of handover, the handset can be handed over to the cellular network. For example, in the case that the network parameter is the round trip delay RTT, the mobile phone may determine whether the round trip delay RTT is smaller than a delay threshold, and in the case that the round trip delay RTT is smaller than the delay threshold, the mobile phone may determine that the network parameter of the cellular network meets the requirement of handover.
In the event that the handset determines that the network parameters of the cellular network meet the requirements for handoff, the handset may proceed to S206. In the event that the handset determines that the network parameters of the cellular network do not meet the requirements for handover, the handset may proceed to S207.
And S206, switching the mobile phone to the cellular network or shunting to the cellular network.
Under the condition that the mobile phone determines that the network parameters of the cellular network meet the switching requirement, namely the Wi-Fi network currently connected with the mobile phone is blocked, the network condition of the cellular network is good, the mobile phone can be switched to the cellular network, or the mobile phone can be shunted to the cellular network.
S207, the mobile phone keeps Wi-Fi network connection.
Under the condition that the mobile phone determines that the network parameters of the cellular network do not meet the switching requirement, namely the Wi-Fi network currently connected with the mobile phone is blocked, but the network condition of the cellular network is not good, the mobile phone can not be switched to the cellular network, and the Wi-Fi network connection is continuously kept.
However, during QoE detection of the mobile phone, the location of the detection server is usually fixed, and the service server to be accessed by the mobile phone is usually not at the same location as the detection server. This results in the QoE detection result not being consistent with the network parameters of the actual service between the mobile phone and the service server, i.e., the QoE detection result is inaccurate, which results in the service not being expected after the mobile phone switches the network, for example, the network speed is still slow after the switching.
For example, as shown in fig. 4, the handset 401 is located closer to the probe server 402, while the handset 401 is located farther from the actually accessed service server 403. For example, the handset 401 is located in the same city as the probe server 402, and the service server 403 actually accessed by the handset 401 is located in another city.
When the mobile phone 401 detects that the network speed of the currently connected WLAN network is slow, the mobile phone 401 sends a QoE probe packet to the probe server 402 through the cellular network. After receiving the QoE detection message, the detection server 402 sends an acknowledgement message to the mobile phone 401. After the mobile phone 401 receives the acknowledgment packet sent by the probe server 402, the mobile phone 401 determines the QoE probe result, that is, the network parameter (such as round trip delay RTT) of the cellular network during the process from sending the QoE probe packet to receiving the acknowledgment packet. When the network parameters of the cellular network meet the requirement of handover, that is, the round trip delay RTT is smaller than the delay threshold, the mobile phone 401 may handover to the cellular network, so that the mobile phone 401 performs data interaction with the service server 403 through the cellular network.
Since the handset 401 and the probe server 402 are located closer together, the round trip delay RTT between the handset 401 and the probe server 402 during QoE detection is usually smaller. The mobile phone 401 is far away from the service server 403 actually accessed, so the round trip delay RTT of the actual service between the mobile phone 401 and the service server 403 is usually large. That is, the QoE detection result is not consistent with the network parameters of the actual service between the mobile phone and the service server, i.e., the QoE detection result is inaccurate. If the mobile phone 401 switches to the cellular network according to the inaccurate QoE detection result, the service of the mobile phone 401 after switching the network is not expected, for example, the network speed after switching the network may still be slow, which may cause the problems of network switching failure of the mobile phone 401, network blocking after switching, ping-pong switching, and the like.
In view of the above problems, an embodiment of the present application provides a network switching method, which is applied to an electronic device, and before the electronic device is switched from a first network to a second network, according to a location of a service server to be accessed by the electronic device, a detection server closest to the location of the service server is selected to perform QoE detection, so that a QoE detection result is close to a network parameter of an actual service of the electronic device, and accuracy of QoE detection can be improved. And then, network switching is carried out according to the QoE detection result, so that the network switching efficiency can be improved, and network switching failure, network switching post-jamming or ping-pong switching can be avoided.
The following describes a network handover method provided in an embodiment of the present application.
In some examples, the electronic device may be a mobile phone, a tablet computer, a handheld computer, a Personal Computer (PC), a cellular phone, a Personal Digital Assistant (PDA), a wearable device, or other electronic device having a full network convergence technology (Link Turbo) function or a WLAN + function. The embodiment of the present application does not limit the specific form of the electronic device.
Exemplarily, taking an electronic device as a mobile phone as an example, fig. 5 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
As shown in fig. 5, the electronic device may include a processor 510, an external memory interface 520, an internal memory 521, a Universal Serial Bus (USB) interface 530, a charging management module 540, a power management module 541, a battery 542, an antenna 1, an antenna 2, a mobile communication module 550, a wireless communication module 560, an audio module 570, a speaker 570A, a receiver 570B, a microphone 570C, an earphone interface 570D, a sensor module 580, a button 590, a motor 591, an indicator 592, a camera 593, a display 594, a Subscriber Identification Module (SIM) card interface 595, and the like. Among them, the sensor module 580 may include a pressure sensor 580A, a gyro sensor 580B, an air pressure sensor 580C, a magnetic sensor 580D, an acceleration sensor 580E, a distance sensor 580F, a proximity light sensor 580G, a fingerprint sensor 580H, a temperature sensor 580J, a touch sensor 580K, an ambient light sensor 580L, a bone conduction sensor 580M, and the like.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 510 may include one or more processing units, such as: processor 510 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be a neural center and a command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 510 for storing instructions and data. In some embodiments, the memory in processor 510 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 510. If the processor 510 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 510, thereby increasing the efficiency of the system.
In some embodiments, processor 510 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 550, the wireless communication module 560, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device may be used to block single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 550 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device. The mobile communication module 550 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 550 can receive electromagnetic waves from the antenna 1, and can perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 550 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 550 may be disposed in the processor 510. In some embodiments, at least some of the functional modules of the mobile communication module 550 may be disposed in the same device as at least some of the modules of the processor 510.
The wireless communication module 560 may provide a solution for wireless communication applied to an electronic device, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 560 may be one or more devices integrating at least one communication processing module. The wireless communication module 560 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 510. The wireless communication module 560 may also receive a signal to be transmitted from the processor 510, frequency-modulate it, amplify it, and convert it into electromagnetic waves via the antenna 2 to radiate it.
In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module 550 and antenna 2 is coupled to the wireless communication module 560 so that the electronic device can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device implements display functions via the GPU, the display screen 594, and the application processor. The GPU is an image processing microprocessor connected to a display screen 594 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 510 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 594 is used for displaying images, video, and the like. The display screen 594 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device may include 1 or N display screens 594, N being a positive integer greater than 1.
The electronic device may implement a capture function via the ISP, the camera 593, the video codec, the GPU, the display screen 594, and the application processor. In some embodiments, the electronic device may include 1 or N cameras 593, N being a positive integer greater than 1.
Of course, it should be understood that fig. 5 is only an exemplary illustration of the electronic device in the form of a mobile phone. If the electronic device is in the form of a tablet computer, a handheld computer, a PC, a PDA, a wearable device (e.g., a smart watch, a smart bracelet), or other devices, the structure of the electronic device may include fewer structures than those shown in fig. 5, or may include more structures than those shown in fig. 5, and is not limited herein.
The methods in the following embodiments may be implemented in an electronic device having the above hardware structure.
After the Link Turbo function or the WLAN + function is turned on, the electronic device may automatically switch to the second network or shunt to the second network according to the congestion condition of the first network and the congestion condition of the second network, so as to use the second network to surf the internet.
The first network may be a WLAN network, which may be a Wi-Fi network. The first network may also be a cellular network. The embodiment of the present application does not limit the specific type of the first network.
The second network may be a WLAN network, which may be a Wi-Fi network. The second network may also be a cellular network. The embodiment of the present application does not limit the specific type of the second network.
The type of the first network and the type of the second network may be the same. For example, the first network and the second network may be different WLAN networks. The first network and the second network may be both cellular networks, for example, networks corresponding to different Subscriber Identity Modules (SIMs) on the electronic device.
The type of the first network may also be different from the type of the second network. For example, the first network may be a WLAN network and the second network a cellular network.
As shown in fig. 6, taking the first network as a Wi-Fi network and the second network as a cellular network as an example, the network handover method provided in the embodiment of the present application may include the following S601-S611.
S601, the electronic equipment is connected with a Wi-Fi network.
For example, after the user arrives at a home or office, the user may use the electronic device to connect to a Wi-Fi network of the home or office, so that the user may use the electronic device to play internet or network games. After the electronic device is connected to the first network, a plurality of application programs included in the electronic device can access the service server through the first network.
S602, the electronic equipment determines whether the network parameters of the Wi-Fi network meet a first preset condition.
After the electronic device is connected with the Wi-Fi network, the network condition of the Wi-Fi network may fluctuate or become poor, and if the number of electronic devices accessing the same network increases, the network speed of each electronic device fluctuates or the network speed of each electronic device decreases, so that after the electronic device is connected with the Wi-Fi network, the electronic device can determine whether the currently connected Wi-Fi network meets a first preset condition, and under the condition that the electronic device determines that the Wi-Fi network does not meet the first preset condition, that is, the network condition of the Wi-Fi network is good, and the use requirement of a user can be met. When the electronic device determines that the Wi-Fi network meets the first preset condition, that is, the Wi-Fi network has a poor network condition and cannot meet the use requirement of the user, the electronic device may continue to determine whether to perform network handover, for example, to switch to the cellular network, when the electronic device supports network handover, for example, when the electronic device turns on a Link Turbo function or a WLAN + function.
In the case where the electronic device determines that the Wi-Fi network does not satisfy the first preset condition, the electronic device may remain connected to the Wi-Fi network, and in the case where the electronic device determines that the Wi-Fi network satisfies the first preset condition, the electronic device may continue to determine whether to switch to the cellular network, i.e., the electronic device may continue to perform S603-S611 described below.
The network parameters of the Wi-Fi network can include at least one of a signal strength of the Wi-Fi network, a network latency of the Wi-Fi network, or a wire speed of the Wi-Fi network. This is not limited in the examples of the present application.
The first preset condition may include at least one of a signal strength of the Wi-Fi network being less than a strength threshold, a network latency of the Wi-Fi network being greater than a latency threshold, or a wire speed of the Wi-Fi network being less than a wire speed threshold. In the embodiment of the application, a first preset condition that the network speed of the Wi-Fi network is smaller than the network speed threshold is taken as an example for illustration, that is, under the condition that the network speed of the Wi-Fi network is smaller than the network speed threshold, the electronic device determines that the Wi-Fi network meets the first preset condition. The strength threshold, the delay threshold, and the network speed threshold may be set according to actual conditions, which is not limited in the implementation of the present application.
For example, after the electronic device is connected to a Wi-Fi network of a home, a user can play a network game using the electronic device. When there are many electronic devices connected to the Wi-Fi network of the home, the network speed of each electronic device may fluctuate or decrease, and further, the experience of the user in playing the network game using the electronic device may be affected. Therefore, after the electronic device is connected with the Wi-Fi network of the family, the electronic device may determine whether the currently connected Wi-Fi network of the family meets a first preset condition, and when it is determined that the Wi-Fi network of the family does not meet the first preset condition, the Wi-Fi network of the family may meet the use requirement of the user, if the electronic device determines that the network speed of the Wi-Fi network of the family is better, the electronic device may continue to maintain the Wi-Fi network connection, that is, may continue to use the Wi-Fi network of the family to perform internet surfing or network game.
The method includes the steps that when the electronic equipment determines that the Wi-Fi network of the family meets a first preset condition, namely the Wi-Fi network of the family cannot meet the use requirement of a user, if the electronic equipment determines that the network speed of the Wi-Fi network of the family is poor, the electronic equipment can continuously determine that network switching is carried out, and if the electronic equipment determines that the network speed of the cellular network is good, the electronic equipment can be switched to the cellular network, so that the cellular network can be used for surfing the internet or playing a network game.
In some examples, after the electronic device connects to the Wi-Fi network, the electronic device may automatically determine whether the currently connected Wi-Fi network satisfies a first preset condition. For example, after the electronic device connects to the Wi-Fi network, the electronic device may automatically determine whether the network speed of the currently connected Wi-Fi network is less than a network speed threshold, and in a case where the electronic device determines that the network speed of the currently connected Wi-Fi network is less than the network speed threshold, the electronic device may prompt the user whether to turn on a Link Turbo function or a WLAN + function on the electronic device. When the user turns on the Link Turbo function or the WLAN + function on the electronic device, the electronic device may continue to determine whether to switch to another network, such as a cellular network.
In other examples, when the electronic device connects to a Wi-Fi network and turns on a Link Turbo function or a WLAN + function, it is determined whether the currently connected Wi-Fi network satisfies a first preset condition. This is not limited in the examples of the present application. For example, when the electronic device is connected to a Wi-Fi network and the electronic device turns on a Link Turbo function or a WLAN + function, the electronic device may determine whether the network speed of the currently connected Wi-Fi network is less than a network speed threshold, and in a case where the electronic device determines that the network speed of the currently connected Wi-Fi network is less than the network speed threshold, the electronic device may continue to determine whether to switch to another network, such as a cellular network.
In the case where the electronic device determines that the Wi-Fi network satisfies the first preset condition, the electronic device may continue to perform S603. In the case where the electronic device determines that the Wi-Fi network does not satisfy the first preset condition, the electronic device may proceed to S602.
S603, the electronic equipment acquires the address of the service server accessed by the current application program.
After the electronic equipment is connected with the Wi-Fi network, the electronic equipment can determine whether the currently connected Wi-Fi network meets a first preset condition, and under the condition that the electronic equipment determines that the Wi-Fi network meets the first preset condition, namely that the Wi-Fi network cannot meet the use requirement of a user, the electronic equipment can determine the address of a service server accessed by the current application program according to the service of the current application program.
And the service server is the service server which the electronic equipment is to access currently. The electronic device can obtain the destination address of the current application program interaction, namely the address of the service server, according to the service of the current application program.
The electronic device may include a plurality of applications. The current application is one of the plurality of applications. For example, when a user uses an electronic device to chat, the chat application is a current application program, and a service server corresponding to the chat application is a service server. For another example, when the user uses the electronic device to play the network game, the network game is the current application program, and the service server corresponding to the network game is the service server.
S604, the electronic equipment determines the position of the service server according to the address of the service server accessed by the current application program.
After the electronic device obtains the address of the service server accessed by the current application program, the electronic device may determine the location of the service server according to the address of the service server accessed by the current application program.
The location of the service server may be a geographical location where the service server is located, such as information of a country or city where the service server is located. The Address of the service server may be an Internet Protocol Address (IP) or a Fully Qualified Domain Name (FQDN) Address. This is not limited in the examples of the present application.
For example, after the electronic device is connected to a Wi-Fi network of a home, the user uses the electronic device to play a network game. When a user uses the electronic device to play a network game, the electronic device may determine whether the network speed of the Wi-Fi network of the home is less than a network speed threshold. Under the condition that the electronic equipment determines that the network speed of the Wi-Fi network of the family is smaller than the network speed threshold value, the electronic equipment can determine that the Wi-Fi network meets a first preset condition. Then, the electronic device may obtain a destination address of the current online game according to the current online game, for example, an address of a server corresponding to the current online game, that is, an address of a service server. Therefore, the electronic equipment can determine the position of the service server according to the address of the service server.
In some examples, after acquiring the address of the service server, the electronic device may establish a connection with a location query server, through which the location of the service server is acquired. The location query server may include a correspondence between the address of the service server and the location of the service server.
For example, the electronic device may obtain an IP address of a server corresponding to a current online game according to the current online game, and after establishing a connection with the location query server, the electronic device may send the IP address of the server corresponding to the online game, that is, the IP address of the service server, to the location query server. After the location query server receives the IP address of the service server sent by the electronic device, the location query server may determine the location of the service server according to the correspondence between the address of the service server and the location of the service server stored in the location query server, and send the location of the service server to the electronic device.
After the electronic device finds the location of the service server corresponding to the address of the service server through the location query server, that is, the electronic device receives the location of the service server sent by the location query server, the electronic device can store the corresponding relationship between the address of the service server and the location of the service server, thereby facilitating the next finding of the location of the corresponding service server. For example, taking the address of the service server as an IP address as an example, the electronic device searches through the location query server that the address of the service server is IP1, the corresponding location is beijing, the address of the service server is IP2, the corresponding location is shanghai, the address of the service server is IP3, the corresponding location is shenzhen, the address of the service server is IP4, and the corresponding location is zhenjiang, and the electronic device can store the correspondence between the address of the service server and the location of the service server, as shown in table 1, thereby facilitating the next search of the location of the corresponding service server. As shown in table 1, the location of the service server with IP address IP1 is beijing, the location of the service server with IP address IP2 is shanghai, the location of the service server with IP3 is shenzhen, and the location of the service server with IP address IP4 is zhenjiang.
TABLE 1
Figure 87560DEST_PATH_IMAGE001
In other examples, the electronic device may pre-store a correspondence between an address of the service server and a location of the service server, and after the electronic device acquires the address of the service server, the location of the service server corresponding to the address of the service server may be determined by pre-storing the correspondence between the address of the service server and the location of the service server. For example, as shown in table 1, the correspondence between the address of the service server and the location of the service server may be stored in advance in the electronic device, that is, the service server with the address IP1, the corresponding location being beijing, the service server with the address IP2, the corresponding location being shanghai, the service server with the address IP3, the corresponding location being shenzhen, the service server with the address IP4, and the corresponding location being zhenjiang. After the electronic equipment acquires the address of the service server, the position of the service server corresponding to the address of the service server is determined according to the corresponding relation between the address of the service server and the position of the service server which is pre-stored in the electronic equipment.
S605, the electronic equipment determines a detection server according to the position of the service server.
Under the condition that the electronic equipment determines that the currently connected Wi-Fi network meets a first preset condition, namely that the Wi-Fi network cannot meet the use requirement of a user, the electronic equipment can acquire the position of a service server according to the service of the current application program. After obtaining the location of the service server, the electronic device may determine the probe server according to the location of the service server. After the electronic device determines the probe server, the electronic device may perform QoE probe with the probe server through the cellular network, thereby determining whether the cellular network meets the handover requirement. The electronic device may perform a network handover if it is determined that the cellular network meets the requirements of the handover.
After the electronic device determines the location of the service server to be accessed by the electronic device, the electronic device may determine the probe server according to a pre-stored mapping relationship between different probe servers and the locations (such as countries and cities) of different service servers. For example, the electronic device may use a probe server closest to the location of the service server as a probe server for performing QoE detection according to a pre-stored mapping relationship between different probe servers and different service servers. That is, the distance between the probe server and the traffic server is less than the distance threshold. The distance threshold may be set according to actual conditions, and is not limited in this embodiment of the application.
For example, after the electronic device is connected to a Wi-Fi network of a home, the user uses the electronic device to play a network game. When a user uses the electronic device to play a network game, the electronic device may determine that the Wi-Fi network satisfies a first preset condition when the electronic device determines that the network speed of the Wi-Fi network of the home is less than a network speed threshold. Then, the electronic device may obtain a destination address of the network game, that is, an address of a server corresponding to the network game, according to the currently played network game. The electronic device can determine the location of the service server according to the address of the service server, such as beijing. After determining the location of the service server corresponding to the network game, the electronic device may determine, according to the location of the service server, a probe server closest to the location of the service server as a probe server for performing QoE detection, and if the location of the service server is beijing, may use the probe server closest to beijing as the probe server for performing QoE detection, and if the location of the service server is beijing, use the probe server located in beijing as the probe server for performing QoE detection. Therefore, the electronic equipment can perform QoE detection with the detection server located in Beijing through the cellular network, so as to determine whether the cellular network meets the requirement of handover. The electronic device may perform a network handover if it is determined that the cellular network meets the requirements of the handover.
In the embodiment of the application, different detection servers can be preset, each detection server can correspond to a service server in a different position, and the electronic device can prestore the mapping relationship between the detection server and the positions of the different service servers. For example, one probe server may correspond to service servers of multiple cities, that is, after the electronic device determines the location of the service server, that is, the city where the service server is located, the corresponding probe server may be determined according to the city where the service server is located. The location of different probe servers may be different, for example, different probe servers may be located in different cities. The mapping relationship between the positions of different probe servers and different service servers may be stored in the electronic device in advance, and the mapping relationship may be as shown in table 2.
TABLE 2
Figure 154873DEST_PATH_IMAGE002
As shown in table 2, when the electronic device determines that the location of the service server is sika, according to a mapping relationship between different probe servers and the locations of the different service servers preset by the electronic device, it may be determined that the probe server with the address of IP2 corresponds to the location of the service server, that is, the probe server with the address of IP2 is closest to the location of the service server, and the electronic device may determine that the probe server with the address of IP2 is the probe server performing QoE detection. When it is determined that the probe server closest to the location of the service server cannot be found according to the mapping relationship between the locations of different probe servers and different service servers preset by the electronic device, the electronic device may determine that the Default probe server is the probe server performing QoE detection, for example, the probe server addressed to the Default FQDN/IP is the probe server performing QoE detection.
In some examples, the electronic device may update a pre-stored mapping between the locations of the probe server and the different business servers. For example, when the electronic device determines that the probe server performing QoE detection is a probe server located in beijing according to the location of the service server and the pre-stored mapping relationship between the probe server and the locations of different service servers, the electronic device may perform QoE detection with the probe server through the cellular network, thereby determining whether the cellular network meets the handover requirement. The electronic device may perform a network handover if it is determined that the cellular network meets the requirements of the handover. After the electronic device performs network handover, and when the network speed of the cellular network is low, the electronic device may determine that the detection result of the probe server located in beijing is inaccurate, and the electronic device may determine the probe server again, for example, the electronic device may use another probe server closest to the location of the service server as the probe server for performing QoE detection, and for example, may use the probe server located in tianjin as the probe server.
After the electronic device re-determines the probe server, the electronic device may perform QoE probe with the new probe server through the cellular network, thereby determining whether the cellular network meets the handover requirement. The electronic device may perform a network handover if it is determined that the cellular network meets the requirements of the handover. After the electronic device performs network handover, when the network speed of the cellular network is high, the electronic device may determine that the probe server corresponding to the location of the service server is a new probe server. The electronic device may update the correspondence between the location of the service server and the new probe server to a mapping relationship between different probe servers and locations of different service servers, which are pre-stored in the electronic device.
And S606, the electronic equipment sends the QoE detection message to the detection server through the cellular network.
After the electronic device determines the probe server, the electronic device may perform QoE probe with the probe server through the cellular network, thereby determining whether the cellular network meets the handover requirement.
For example, on the Android platform, when an electronic device such as a mobile phone is connected to a Wi-Fi network, the mobile phone may call a RequestNetwork interface, and the mobile phone may establish a cellular network connection through the interface while maintaining the Wi-Fi network connection. The handset may then send a QoE probe message over the cellular network. For example, the handset may call the RequestNetwork interface by:
public NetworkRequest requestNetwork(NetworkCapabilities networkCapabilities,
Messenger messenger, int timeoutMs, IBinder binder, int legacyType,
@NonNull String callingPackageName)
the QoE detection packet may be an internet packet finder (ping) packet or a hypertext transfer protocol (Http) packet. The specific type of the QoE detection packet is not limited in the embodiment of the present application. For example, the mobile phone may construct a common Http message, and then, the mobile phone may call the network interface to obtain the address of the cellular network card, and then send the Http message through the Socket interface.
In some examples, the process of the electronic device sending the QoE probe message to the probe server through the cellular network may include: the electronic device may send the QoE probe message to an access network, such as a base station, via a cellular network. And after receiving the QoE detection message sent by the electronic equipment, the access network sends the QoE detection message to a core network. After receiving the QoE detection message sent by the access network, the core network sends the QoE detection message to the backbone network. After receiving the QoE detection message sent by the core network, the backbone network sends the QoE detection message to a detection server.
S607, the electronic device receives the confirmation message sent by the detection server.
After the detection server receives the QoE detection message sent by the electronic device, the detection server may immediately send a confirmation message to the electronic device. The acknowledgement message may be an ACK.
In some examples, the process of sending the acknowledgement message to the electronic device by the probe server may include: the detection server sends the confirmation message to the backbone network. After receiving the confirmation message sent by the detection server, the backbone network sends the confirmation message to the core network. After receiving the acknowledgement message, the core network sends the acknowledgement message to an access network, such as a base station. And after receiving the confirmation message, the access network sends the confirmation message to the electronic equipment.
And S608, the electronic equipment determines the network parameters of the cellular network according to the QoE detection message and the confirmation message.
After the electronic device receives the confirmation message sent by the probe server, the electronic device may determine a network parameter of the cellular network, that is, a network parameter of the cellular network during a process from when the electronic device sends the QoE probe message to when the confirmation message is received, such as round trip delay RTT of the cellular network, signal strength of the cellular network being greater than a strength threshold, or network speed of the cellular network.
The network parameter of the cellular network may comprise at least one of a signal strength of the cellular network, a network latency of the cellular network, or a network speed of the cellular network. This is not limited in the examples of the present application.
And S609, the electronic equipment determines whether the network parameters of the cellular network meet a second preset condition.
After the electronic device determines the network parameters of the cellular network, the electronic device may determine whether the network parameters of the cellular network satisfy a second preset condition, that is, determine whether the cellular network satisfies a requirement for network handover. The second preset condition may include at least one of a signal strength of the cellular network being greater than a strength threshold, a round trip delay of the cellular network being less than a delay threshold, or a wire speed of the cellular network being less than a wire speed threshold. For example, in the case that the network parameter of the cellular network is round trip delay RTT, the second preset condition may be that the round trip delay RTT is smaller than the delay threshold.
For example, when a user uses an electronic device to play a network game, and the electronic device can determine whether the network speed of a currently connected Wi-Fi network is less than a network speed threshold value, that is, the currently connected Wi-Fi network cannot meet the requirements of the user, the electronic device can obtain an address of a service server corresponding to the current network game according to the currently played network game, so that the position of the service server can be determined according to the address of the service server. And then, a detection server can be determined according to the position of the service server, and QoE detection is performed with the detection server through the cellular network, so that network parameters of the cellular network are determined, namely the network parameters of the cellular network in the process that the electronic equipment sends the QoE detection message to the receiving confirmation message. And determining whether the cellular network can meet the requirements of the user according to the network parameters of the cellular network. Under the condition that the cellular network is determined to meet the requirements of the user, the electronic equipment can be switched to the cellular network, so that the user can continue to use the cellular network to play the network game, and the user experience is improved.
When the electronic device determines that the network parameter of the cellular network satisfies the second preset condition, that is, the network condition of the cellular network is good and can satisfy the user requirement, the electronic device may continue to perform S610. When the electronic device determines that the network parameter of the cellular network does not satisfy the second preset condition, that is, the network condition of the cellular network is poor and cannot satisfy the use requirement of the user, the electronic device may continue to perform S611.
S610, at least one application program in the plurality of application programs of the electronic equipment accesses the corresponding service server through the cellular network.
When the electronic device determines that the network parameter of the cellular network meets the second preset condition, that is, the cellular network can meet the use requirement of the user, for example, the network speed of the cellular network is high, the requirement that the user uses the electronic device to perform a network game can be met, the electronic device can perform network switching, and the electronic device switches at least one application program of the plurality of application programs to the second network.
At least one application of the plurality of applications of the electronic device accesses the corresponding service server via the cellular network, which may include the electronic device switching to or offloading to the cellular network.
The electronic device may switch all applications comprised by the electronic device to the cellular network, i.e. all applications comprised by the electronic device use the cellular network for surfing the internet. That is, the electronic device switches to the cellular network, i.e., the electronic device disconnects the Wi-Fi network, connects to the cellular network, and uses the cellular network to surf the internet.
The electronic device switches a part of all the applications included in the electronic device to the cellular network, that is, the electronic device branches to the cellular network, and the rest of the applications can continue to use the Wi-Fi network. For example, the electronic device may switch the current application to the cellular network, i.e., the currently used application is surfing the internet via the cellular network, while other applications are surfing the internet via the Wi-Fi network. In the case where the electronic device is shunted to the cellular network, the electronic device may maintain the Wi-Fi network connection and pull up the cellular network, i.e., establish the cellular network connection, thereby performing two-way communication.
In some examples, prior to the electronic device switching to or offloading to the cellular network, the electronic device may display a prompt window asking the user whether to approve switching of at least one of a plurality of applications included with the electronic device to the cellular network, i.e., whether to switch the network, e.g., the electronic device may display the prompt window in an interface of a current application.
For example, when the electronic device is connected to a Wi-Fi network and a user uses the electronic device to chat, the electronic device may detect a network speed of the Wi-Fi network, and when the network speed of the Wi-Fi network is smaller than a network speed threshold, the electronic device may determine that the Wi-Fi network cannot meet the use requirement of the user. Furthermore, the electronic device can obtain the position of the service server of the chat application, and the detection server can be determined according to the position of the service server. When the electronic device performs QoE detection with the detection server through the cellular network and determines that switching to the cellular network is possible, as shown in fig. 7 (a), the electronic device may display a prompt window in the current chat interface 701, for querying whether the user switches the network. The prompt window may include the word "whether to switch networks" and may also include two options, a yes and no option.
When the electronic device receives a user's trigger operation, such as a click operation, on the "yes" option in the prompt window, the electronic device may determine that the user needs to switch the network. In response, as shown in fig. 7 (b), the electronic device may disconnect the Wi-Fi network, connect the cellular network, and chat using the cellular network.
When the electronic device receives a user's trigger operation, such as a click operation, on the "no" option in the prompt window, the electronic device may determine that the user does not need to switch networks. In response, the electronic device may continue to maintain the Wi-Fi network connection.
S611, the plurality of application programs of the electronic equipment access the corresponding server through the Wi-Fi network.
The plurality of applications of the electronic device access the corresponding server through the Wi-Fi network, i.e., the electronic device maintains the first network connection and the electronic device does not switch to the cellular network.
Under the condition that the electronic equipment determines that the network parameters of the cellular network do not meet the requirements, namely the network condition of the Wi-Fi network to which the electronic equipment is currently connected is good, the use requirements of users can be met. The electronic device may continue to maintain the Wi-Fi network connection without switching networks.
According to the method, before the electronic equipment is switched to the cellular network from the Wi-Fi network which is currently connected, the detection server closest to the position of the service server can be selected according to the position of the service server to be accessed by the electronic equipment to perform QoE detection, so that the QoE detection result is close to the network parameters of the actual service of the electronic equipment, and the accuracy of QoE detection can be improved. Furthermore, network switching is carried out according to the QoE detection result, so that the network switching efficiency can be improved, and network switching failure, network switching post-jamming or ping-pong switching can be avoided.
For convenience of understanding, the network handover method provided in the embodiment of the present application is described below with reference to fig. 8. As shown in fig. 8, the network switching method may include the following S801-S811.
S801, the electronic device is connected with a first network.
The first network may be a WLAN network, which may be a Wi-Fi network. The first network may also be a cellular network. The embodiment of the present application does not limit the specific type of the first network. In addition, in a case where the first network is a cellular network and the electronic device includes a plurality of SIM cards, the first network may be a cellular network corresponding to any one of the SIM cards included in the electronic device.
For example, after the user arrives at a certain place, the user can use the electronic device to connect with a Wi-Fi network of the place, or can connect with a cellular network without connecting with the Wi-Fi network. That is, after the electronic device connects to the first network, the electronic device includes a plurality of applications that access the service server via the first network.
S802, the electronic equipment determines whether the network parameters of the first network meet a first switching condition.
After the electronic device is connected to the first network, the network condition of the first network may fluctuate or become poor, which affects the use of the user. Accordingly, after the electronic device connects to the first network, the electronic device may determine whether the currently connected first network satisfies the first handover condition.
When the electronic device determines that the first network does not satisfy the first switching condition, that is, the network condition of the first network is good, the use requirement of the user can be satisfied. When the electronic device determines that the first network meets the first handover condition, that is, the network condition of the first network is poor and cannot meet the use requirement of the user, the electronic device may continue to determine whether to perform network handover, for example, handover to a cellular network, when the electronic device supports network handover, for example, when the electronic device turns on a Link Turbo function or a WLAN + function.
In the case where the electronic device determines that the first network does not satisfy the first handover condition, the electronic device may remain connected to the first network, and in the case where the electronic device determines that the first network satisfies the first handover condition, the electronic device may continue to determine whether to handover the second network, i.e., the electronic device may continue to perform S803-S811 described below.
The network parameter of the first network may include at least one of a signal strength of the first network, a network latency of the first network, or a wire speed of the first network. This is not limited in the examples of the present application.
The first handover condition may include at least one of a signal strength of the first network being less than a first strength threshold, a network latency of the first network being greater than a first latency threshold, or a wire speed of the first network being less than a first wire speed threshold. The first strength threshold, the first time delay threshold, and the first network speed threshold may be set according to actual situations, which is not limited in the implementation of the present application.
When the electronic device determines that the first network meets the first switching condition, that is, the network condition of the first network is poor, the use requirement of the user cannot be met. The electronic device may continue to perform S803. When the electronic device determines that the first network does not satisfy the first handover condition, that is, the network condition of the first network is good and can satisfy the user requirement, the electronic device may continue to perform S802.
S803, the electronic equipment acquires the address of the service server accessed by the first application program.
When the electronic device determines that the first network meets the first preset condition, that is, the first network cannot meet the use requirement of the user, the electronic device may determine, according to the service of the first application program, an address of a service server accessed by the current application program. The first application program can be an application program currently used by the electronic equipment
The service server is a service server to which a first application of the electronic device, such as a current application, is to access. For example, the electronic device may obtain a destination address of the current application interaction, that is, an address of the service server, according to the service of the current application.
The electronic device may include a plurality of applications. The plurality of applications includes a first application. For example, when the application currently used by the electronic device is the first application, and when the user uses the electronic device to perform chat, the chat application is the current application, and the service server corresponding to the chat application is the service server. For another example, when the user uses the electronic device to play the network game, the network game is the current application program, and the service server corresponding to the network game is the service server.
S804, the electronic equipment determines the position of the service server according to the address of the service server accessed by the first application program.
The first application accesses an application that may be currently used by the electronic device. After the electronic device obtains the address of the service server accessed by the current application program, the electronic device may determine the location of the service server according to the address of the service server accessed by the current application program.
When the electronic device determines that the first network meets the first switching condition, that is, the first network cannot meet the use requirement of the user, the electronic device may obtain, according to the service of the current application program, the position of the service server accessed by the current application program, so that the detection server may be determined according to the position of the service server.
The electronic device determines the location of the service server accessed by the first application program according to the address of the service server accessed by the first application program, which may refer to S604 above, and this embodiment of the present application is not described herein again.
S805, the electronic device determines a detection server according to the position of the service server.
And the electronic equipment determines a detection server according to the position of the service server, wherein the distance between the detection server and the service server is smaller than a distance threshold value.
The electronic device determines the process of detecting the server according to the location of the service server to be accessed, which may refer to S605 described above, and this embodiment is not described herein again.
S806, the electronic device sends the detection message to the detection server through the second network.
In a case where the electronic device determines that the first network satisfies the first handover condition, that is, the first network cannot satisfy the user requirement, the electronic device may determine the probe server, and thereby determine, by the probe server, whether the second network satisfies the second handover condition, that is, determine whether the second network can satisfy the user requirement.
The detection message may be a QoE detection message. The QoE detection message may be a ping packet or an Http message. The specific type of the QoE detection packet is not limited in the embodiment of the present application.
The second network may be a WLAN network, which may be a Wi-Fi network. The second network may also be a cellular network. The embodiment of the present application does not limit the specific type of the second network.
The type of the first network and the type of the second network may be the same. For example, the first network and the second network may be different WLAN networks. The first network and the second network may both be cellular networks, e.g., networks corresponding to different SIM cards on the electronic device. That is, the electronic device may switch from one WLAN network to another WLAN network, the electronic device may also switch from the network corresponding to SIM card 1 on the electronic device to the network corresponding to SIM card 2 on the electronic device,
the type of the first network may also be different from the type of the second network. For example, the first network may be a WLAN network and the second network a cellular network. That is, the electronic device may switch from the WLAN network to the cellular network, or the electronic device may switch from the cellular network to the WLAN network.
In a case that the first network is a WLAN network and the second network is a cellular network, reference may be made to the above S606, that is, a process in which the mobile phone sends the QoE detection packet to the detection server through the cellular network, where the process is performed when the electronic device sends the QoE detection packet to the detection server through the second network, and this embodiment of the present application is not described herein again.
S807, the electronic equipment receives the confirmation message sent by the detection server.
After the detection server receives the QoE detection message sent by the electronic device, the detection server may immediately send a confirmation message to the electronic device. The acknowledgement message may be an ACK.
In a case that the first network is a WLAN network and the second network is a cellular network, reference may be made to the above S606 in a process that the electronic device receives the confirmation message sent by the probe server, which is not described herein again in this embodiment of the present application.
S808, the electronic device determines the network parameters of the second network according to the detection message and the confirmation message.
After the electronic device receives the confirmation message sent by the detection server, the electronic device determines the network parameters of the second network according to the detection message and the confirmation message, that is, the network parameters of the second network, such as round trip delay RTT of the second network, signal strength of the second network, or network speed of the second network, in the process from the electronic device sending the QoE detection message to the reception of the confirmation message.
The network parameter of the second network may include at least one of a signal strength of the second network, a network delay of the second network, or a wire speed of the second network. This is not limited in the examples of the present application.
S809, the electronic device determines whether the network parameter of the second network satisfies the second handover condition.
After the electronic device determines the network parameters of the second network, the electronic device may determine whether the network parameters of the second network satisfy the second handover condition, i.e., determine whether the second network satisfies the handover requirement.
The second handover condition may include at least one of a signal strength of the second network being greater than a second strength threshold, a round trip delay of the second network being less than a second delay threshold, or a wire speed of the second network being less than a second wire speed threshold. For example, in the case that the network parameter of the second network is round trip delay RTT, the second handover condition may be that the round trip delay RTT is smaller than the second delay threshold. The second strength threshold, the second delay threshold, and the second network speed threshold may be set according to actual conditions, which is not limited in the implementation of the present application.
When the electronic device determines that the network parameter of the second network satisfies the second handover condition, that is, the network condition of the second network is good and can satisfy the user requirement, the electronic device may continue to execute S810. In a case that the electronic device determines that the network parameter of the second network does not satisfy the second handover condition, that is, the network condition of the second network is poor and cannot satisfy the user requirement, the electronic device may continue to perform S811.
And S810, at least one application program in the plurality of application programs of the electronic equipment accesses the corresponding service server through the second network.
And under the condition that the electronic equipment determines that the network parameter of the second network meets the second switching condition, the electronic equipment can perform network switching, namely at least one application program in a plurality of application programs of the electronic equipment accesses the corresponding service server through the second network.
At least one application program of the plurality of application programs of the electronic device accesses the corresponding service server through the second network, which may include switching the electronic device to the second network or shunting the electronic device to the second network.
The electronic device may switch all applications included in the electronic device to the second network, that is, all applications included in the electronic device use the second network to surf the internet. That is, the electronic device switches to the second network, that is, the electronic device disconnects from the first network and connects to the second network, and all applications included in the electronic device use the second network to surf the internet.
The electronic device switches part of the application to the second network, that is, the electronic device branches to the second network, for example, the electronic device may switch the currently used application to the second network, that is, the currently used application surfs the internet through the second network. In the case where the electronic device is shunted to the second network, the electronic device may maintain the first network connection and pull up the second network, i.e., establish the connection of the second network, thereby performing two-way communication.
In some examples, before the electronic device switches the at least one of the plurality of applications to the second network, the electronic device may display a prompt window asking the user whether to approve switching the at least one of the plurality of applications included in the electronic device to the second network, i.e., whether to switch the network, e.g., the electronic device may display the prompt window in an interface of the current application. When the electronic device receives a trigger operation (the trigger operation may be referred to as a first operation in the embodiment of the present application) that the user agrees to switch at least one of the plurality of applications included in the electronic device to the second network, such as a click operation, in response, the electronic device may switch at least one of the plurality of applications to the second network.
S811, the plurality of applications of the electronic device access the corresponding server through the first network.
And the plurality of application programs of the electronic equipment access the corresponding servers through the first network, namely the electronic equipment keeps the first network connection and does not switch to the second network.
And under the condition that the electronic equipment determines that the network parameter of the second network does not meet the second switching condition, namely the network condition of the second network is poor, the use requirement of the user cannot be met. The electronic device may not switch networks, and continue to maintain the first network connection, that is, all the applications included in the electronic device use the first network to surf the internet.
According to the method, before the electronic equipment is switched from the first network to the second network, the detection server closest to the position of the service server can be selected according to the position of the service server to be accessed by the electronic equipment to perform QoE detection, so that the QoE detection result is close to the network parameters of the actual service of the electronic equipment, and the accuracy of QoE detection can be improved. Furthermore, network switching is carried out according to the QoE detection result, so that the network switching efficiency can be improved, and network switching failure, network switching post-jamming or ping-pong switching can be avoided.
Corresponding to the method in the foregoing embodiment, an embodiment of the present application further provides a network switching apparatus. The network switching device can be applied to electronic equipment and is used for realizing the method in the embodiment. The functions of the network device can be realized by hardware, and can also be realized by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
For example, fig. 9 shows a schematic structural diagram of a network switching apparatus 900, and as shown in fig. 9, the network switching apparatus 900 may include: a determining module 901, an obtaining module 902, a sending module 903, a receiving module 904, an accessing module 905, and the like.
The determining module 901 may be configured to determine whether a network parameter of the first network satisfies a first handover condition.
The obtaining module 902 may be configured to obtain an address of a service server accessed by the first application program when the network parameter of the first network satisfies the first handover condition.
The determining module 901 may also be configured to determine the probe server according to the address of the service server. The distance between the probe server and the service server is less than a distance threshold.
The sending module 903 may be configured to send the probe packet to the probe server through the second network.
The receiving module 904 may be configured to receive an acknowledgement message from the probe server.
The determining module 901 may further be configured to determine a network parameter of the second network according to the detection packet and the confirmation packet.
The determining module 901 may further be configured to determine whether the network parameter of the second network satisfies the second handover condition.
The accessing module 905 may be configured to, when the indicator of the second network meets the second switching condition, access the corresponding service server through the second network by at least one application program of the multiple application programs of the electronic device.
In another possible implementation manner, the determining module 901 may be specifically configured to determine the location of the service server according to the address of the service server; the address of the service server corresponds to the location of the service server. The determining module 901 may also be configured to determine a probe server according to the location of the service server; the distance between the probe server and the service server is less than a distance threshold.
In another possible implementation manner, the first switching condition may include at least one of that the signal strength of the first network is less than a first strength threshold, that the network delay of the first network is greater than a first delay threshold, or that the network speed of the first network is less than a first network speed threshold; the second handover condition may include at least one of a signal strength of the second network being greater than a second strength threshold, a network latency of the second network being less than a second latency threshold, or a wire speed of the second network being less than a second wire speed threshold.
In another possible implementation manner, the at least one application program may include a first application program.
In another possible implementation manner, the first network may be a wireless local area network WLAN network, and the second network may be a cellular network.
In another possible implementation manner, the network switching apparatus may further include a display module 906. The display module 906 may be configured to display a prompt window, where the prompt window is used for the user to confirm whether to access the corresponding service server through the second network by at least one of the plurality of application programs. The receiving module 904 may be further configured to receive a first operation of the user, where the first operation is used to confirm that at least one of the plurality of application programs accesses the corresponding service server through the second network.
In another possible implementation manner, the accessing module 905 is further configured to, in a case that the network parameter of the first network does not satisfy the first switching condition, access the corresponding server through the first network by the plurality of applications of the electronic device.
In another possible implementation manner, the accessing module 905 may be further configured to, when the network parameter of the second network does not satisfy the second switching condition, access the corresponding server through the first network by the multiple applications of the electronic device.
It should be understood that the division of units or modules (hereinafter referred to as units) in the above apparatus is only a division of logical functions, and may be wholly or partially integrated into one physical entity or physically separated in actual implementation. And the units in the device can be realized in the form of software called by the processing element; or may be implemented entirely in hardware; part of the units can also be realized in the form of software called by a processing element, and part of the units can be realized in the form of hardware.
For example, each unit may be a processing element separately set up, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory in the form of a program, and a function of the unit may be called and executed by a processing element of the apparatus. In addition, all or part of the units can be integrated together or can be independently realized. The processing element described herein, which may also be referred to as a processor, may be an integrated circuit having signal processing capabilities. In the implementation process, the steps of the method or the units above may be implemented by integrated logic circuits of hardware in a processor element or in a form called by software through the processor element.
In one example, the units in the above apparatus may be one or more integrated circuits configured to implement the above method, such as: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of at least two of these integrated circuit forms.
As another example, when a unit in a device may be implemented in the form of a processing element scheduler, the processing element may be a general purpose processor, such as a CPU or other processor capable of invoking programs. As another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In one implementation, the means for implementing the respective corresponding steps of the above method by the above apparatus may be implemented in the form of a processing element scheduler. For example, the apparatus may include a processing element and a memory element, the processing element calling a program stored by the memory element to perform the method described in the above method embodiments. The memory elements may be memory elements on the same chip as the processing elements, i.e. on-chip memory elements.
In another implementation, the program for performing the above method may be in a memory element on a different chip than the processing element, i.e. an off-chip memory element. At this time, the processing element calls or loads a program from the off-chip storage element onto the on-chip storage element to call and execute the method described in the above method embodiment.
For example, the embodiments of the present application may also provide an apparatus, such as: an electronic device may include: a processor, a memory for storing instructions executable by the processor. The processor is configured to execute the above instructions, so that the electronic device implements the network switching method according to the foregoing embodiment. The memory may be located within the electronic device or external to the electronic device. And the processor includes one or more.
In yet another implementation, the unit of the apparatus for implementing the steps of the method may be configured as one or more processing elements, and these processing elements may be disposed on the electronic device corresponding to the foregoing, where the processing elements may be integrated circuits, for example: one or more ASICs, or one or more DSPs, or one or more FPGAs, or a combination of these types of integrated circuits. These integrated circuits may be integrated together to form a chip.
For example, the embodiment of the present application also provides a chip, and the chip can be applied to the electronic device. The chip includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected through a line; the processor receives and executes computer instructions from the memory of the electronic device through the interface circuitry to implement the methods described in the method embodiments above.
Embodiments of the present application further provide a computer program product, which includes computer instructions executed by the electronic device as described above.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of software products, such as: and (5) programming. The software product is stored in a program product, such as a computer readable storage medium, and includes several instructions for causing a device (which may be a single chip, a chip, or the like) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
For example, embodiments of the present application may also provide a computer-readable storage medium having stored thereon computer program instructions. The computer program instructions, when executed by the electronic device, cause the electronic device to implement the network switching method as described in the aforementioned method embodiments.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A network switching method applied to an electronic device supporting a first network and a second network, the electronic device including a plurality of applications including a first application, the first application accessing a service server through the first network, the method comprising:
the electronic equipment acquires the address of the service server under the condition that the network parameters of the first network meet a first switching condition;
the electronic equipment determines a detection server according to the address of the service server; the distance between the detection server and the service server is smaller than a distance threshold value;
the electronic equipment sends a detection message to the detection server through the second network;
the electronic equipment receives a confirmation message from the detection server;
the electronic equipment determines the network parameters of the second network according to the detection message and the confirmation message;
and under the condition that the network parameters of the second network meet a second switching condition, at least one application program in the plurality of application programs of the electronic equipment accesses a corresponding service server through the second network.
2. The method of claim 1, wherein the electronic device determines a probe server according to the address of the service server, comprising:
the electronic equipment determines the position of the service server according to the address of the service server; the address of the service server corresponds to the position of the service server;
the electronic equipment determines the detection server according to the position of the service server; and the distance between the detection server and the service server is smaller than the distance threshold value.
3. The method of claim 1, wherein the first handover condition comprises at least one of a signal strength of the first network being less than a first strength threshold, a network latency of the first network being greater than a first latency threshold, or a wire speed of the first network being less than a first wire speed threshold;
the second handover condition includes at least one of a signal strength of the second network being greater than a second strength threshold, a network latency of the second network being less than a second latency threshold, or a wire speed of the second network being less than a second wire speed threshold.
4. The method of claim 1, wherein the at least one application comprises the first application.
5. The method according to any of claims 1-4, wherein the first network is a wireless local area network, WLAN, network and the second network is a cellular network.
6. The method of any of claims 1-4, wherein before at least one of the plurality of applications of the electronic device accesses a corresponding service server over the second network, the method further comprises:
the electronic equipment displays a prompt window, and the prompt window is used for a user to confirm whether at least one application program in the plurality of application programs accesses a corresponding service server through the second network;
and the electronic equipment receives a first operation of a user, wherein the first operation is used for confirming that at least one application program in the plurality of application programs accesses a corresponding service server through the second network.
7. The method according to any one of claims 1-4, further comprising:
the plurality of applications of the electronic device access a corresponding server through the first network if the network parameter of the first network does not satisfy the first handover condition.
8. The method according to any one of claims 1-4, further comprising:
and under the condition that the network parameters of the second network do not meet the second switching condition, the plurality of application programs of the electronic equipment access the corresponding servers through the first network.
9. An electronic device, comprising a processor, a memory for storing processor-executable instructions; the processor is configured to, when executing the instructions, cause the electronic device to implement the method of any of claims 1-8.
10. A computer readable storage medium having stored thereon computer program instructions; it is characterized in that the preparation method is characterized in that,
the computer program instructions, when executed by an electronic device, cause the electronic device to implement the method of any of claims 1 to 8.
CN202111334336.8A 2021-11-11 2021-11-11 Network switching method and electronic equipment Active CN113784408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111334336.8A CN113784408B (en) 2021-11-11 2021-11-11 Network switching method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111334336.8A CN113784408B (en) 2021-11-11 2021-11-11 Network switching method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113784408A true CN113784408A (en) 2021-12-10
CN113784408B CN113784408B (en) 2022-02-08

Family

ID=78873826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111334336.8A Active CN113784408B (en) 2021-11-11 2021-11-11 Network switching method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113784408B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065996A (en) * 2021-12-14 2022-09-16 荣耀终端有限公司 Method, terminal and communication system for generating electronic fence

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716402A (en) * 2013-12-31 2014-04-09 北京邮电大学 Selection system and method of servers
US20140206344A1 (en) * 2010-12-15 2014-07-24 At&T Intellectual Property I, L.P. Method and apparatus for correlating end to end measurements through control plane monitoring of wireless traffic
CN107592291A (en) * 2017-07-25 2018-01-16 北京奇艺世纪科技有限公司 A kind of IP address detection method, system, device and electronic equipment
CN108777640A (en) * 2018-06-04 2018-11-09 腾讯科技(深圳)有限公司 A kind of server detection method, device, system and storage medium
WO2019184805A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Network switching method, communication apparatus and communication device
CA3108097A1 (en) * 2018-08-02 2020-02-06 Huawei Technologies Co., Ltd. Network switching method, electronic device, and system on chip
CN111371675A (en) * 2020-02-26 2020-07-03 腾讯云计算(北京)有限责任公司 Intelligent addressing method, device, equipment and storage medium thereof
CN111526529A (en) * 2020-04-30 2020-08-11 维沃移动通信有限公司 Network prompting method and device and electronic equipment
WO2021051286A1 (en) * 2019-09-17 2021-03-25 Oppo广东移动通信有限公司 Method for switching network devices, terminal device and network device
WO2021115007A1 (en) * 2019-12-11 2021-06-17 华为技术有限公司 Network switching method and electronic device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140206344A1 (en) * 2010-12-15 2014-07-24 At&T Intellectual Property I, L.P. Method and apparatus for correlating end to end measurements through control plane monitoring of wireless traffic
CN103716402A (en) * 2013-12-31 2014-04-09 北京邮电大学 Selection system and method of servers
CN107592291A (en) * 2017-07-25 2018-01-16 北京奇艺世纪科技有限公司 A kind of IP address detection method, system, device and electronic equipment
WO2019184805A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Network switching method, communication apparatus and communication device
CN108777640A (en) * 2018-06-04 2018-11-09 腾讯科技(深圳)有限公司 A kind of server detection method, device, system and storage medium
CA3108097A1 (en) * 2018-08-02 2020-02-06 Huawei Technologies Co., Ltd. Network switching method, electronic device, and system on chip
WO2021051286A1 (en) * 2019-09-17 2021-03-25 Oppo广东移动通信有限公司 Method for switching network devices, terminal device and network device
WO2021115007A1 (en) * 2019-12-11 2021-06-17 华为技术有限公司 Network switching method and electronic device
CN111371675A (en) * 2020-02-26 2020-07-03 腾讯云计算(北京)有限责任公司 Intelligent addressing method, device, equipment and storage medium thereof
CN111526529A (en) * 2020-04-30 2020-08-11 维沃移动通信有限公司 Network prompting method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065996A (en) * 2021-12-14 2022-09-16 荣耀终端有限公司 Method, terminal and communication system for generating electronic fence

Also Published As

Publication number Publication date
CN113784408B (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN113630297B (en) Method and terminal for controlling first equipment
CN110225563B (en) Network registration method and equipment
US8885009B2 (en) Method for switching video calls between devices
US20200029200A1 (en) Access method, network device, terminal device, and amf device
CN110622571B (en) Network connection method, device and terminal
CN113382363B (en) Method and device for sending messages based on different networks
CN106888495B (en) Network access method and terminal
EP4228374A1 (en) Service processing method and apparatus in terminal device supporting double cards
CN114077373A (en) Interaction method between electronic devices and electronic devices
US20220232445A1 (en) Communications System Switching Method and Terminal Device
US20210235360A1 (en) Transmission path switching method and apparatus
CN113784408B (en) Network switching method and electronic equipment
US20220353665A1 (en) Device capability discovery method and p2p device
CN113950028B (en) Communication method for terminal equipment and network side equipment and terminal equipment
JP2023519614A (en) Device localization method and related apparatus
JP6155953B2 (en) Information communication apparatus, information communication system, information communication method, and program
CN115633340A (en) File transmission method, terminal, electronic device and storage medium
CN115997470A (en) Session distinguishing method and device
US20240236927A9 (en) Ranging method and apparatus, terminal device and storage medium
US20240137903A1 (en) Ranging method and apparatus, terminal device and storage medium
RU2812310C2 (en) Method and device for processing services in two-card terminal device
CN114697438B (en) Method, device, equipment and storage medium for carrying out call by utilizing intelligent equipment
CN117639820B (en) Wi-Fi device and radio frequency control method
CN110430525B (en) Positioning method, server and mobile terminal
EP4203409A1 (en) Method and devices for configuring device

Legal Events

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