CN114449599A - Network link switching method based on electronic equipment position and electronic equipment - Google Patents

Network link switching method based on electronic equipment position and electronic equipment Download PDF

Info

Publication number
CN114449599A
CN114449599A CN202110876161.7A CN202110876161A CN114449599A CN 114449599 A CN114449599 A CN 114449599A CN 202110876161 A CN202110876161 A CN 202110876161A CN 114449599 A CN114449599 A CN 114449599A
Authority
CN
China
Prior art keywords
network
electronic device
quality
cellular
cellular network
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
CN202110876161.7A
Other languages
Chinese (zh)
Other versions
CN114449599B (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 CN202310481503.4A priority Critical patent/CN116614848A/en
Priority to CN202110876161.7A priority patent/CN114449599B/en
Publication of CN114449599A publication Critical patent/CN114449599A/en
Application granted granted Critical
Publication of CN114449599B publication Critical patent/CN114449599B/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/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/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application provides a network link switching method based on the position of electronic equipment and the electronic equipment, wherein the method is executed by the electronic equipment, and the method comprises the following steps: the electronic device currently performs network traffic using a Wi-Fi1 network; detecting the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network under the condition that the electronic equipment meets a preset condition, wherein the preset condition comprises that the electronic equipment is in an elevator state or the electronic equipment is in a weak signal scene; and when the network quality of the Wi-Fi1 network is detected to be lower than the preset network quality, switching the traffic flow data of the network traffic on the Wi-Fi1 network to the first cellular network, wherein the network quality of the first cellular network is better than that of the Wi-Fi1 network. In the method, in a scene that network blocking easily occurs, such as an elevator, the electronic equipment detects other network links in advance, so that the blocking time of the service is shortened, and the use experience of a user is improved.

Description

Network link switching method based on electronic equipment position and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a network link switching method based on a location of an electronic device and an electronic device.
Background
The link turbo engine (linktturbo for short) is a technology that uses wireless fidelity (Wi-Fi) and a cellular network at the same time on the electronic equipment side, and can bring a mobile internet access experience of aggregating high network speed, stability and low time delay for a user through the linktturbo. After the Linkturbo function is opened, the electronic equipment can intelligently identify the network required by the Application (APP) in the using process, so that intelligent distribution and optimization are realized, for example, the network with large flow demand (such as online video or online game) preferentially calls Wi-Fi, and the network with low flow demand (such as online shopping) uses a cellular network, so as to optimize the network environment to the maximum extent.
In the above full network environment, if the network quality of one network link a is poor, the electronic device may detect the network quality of other network links, and switch the service flow data processed on the network link a to the network link B for processing.
Disclosure of Invention
The application provides a network link switching method based on the position of electronic equipment and the electronic equipment, which can shorten the pause time of a service card and improve the use experience of a user in the scene that the network card is easy to pause, such as an elevator.
In a first aspect, the present application provides a network link switching method based on a location of an electronic device, where the method is executed by the electronic device, the electronic device supports a 2.4GHz Wi-Fi1 network and a 5GHz Wi-Fi2 network, the electronic device carries a first SIM card and a second SIM card, the first SIM card corresponds to a first cellular network, and the second SIM card corresponds to a second cellular network, and the method includes: the electronic device currently performs network traffic using a Wi-Fi1 network; detecting the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network under the condition that the electronic equipment meets a preset condition, wherein the preset condition comprises that the electronic equipment is in an elevator state or the electronic equipment is in a weak signal scene; and when the network quality of the Wi-Fi1 network is detected to be lower than the preset network quality, switching the traffic flow data of the network traffic on the Wi-Fi1 network to the first cellular network, wherein the network quality of the first cellular network is better than that of the Wi-Fi1 network.
In the implementation manner, when the electronic device is in an elevator state or in a weak signal scene such as an underground garage, the electronic device pulls up the detection of other network links, and when it is detected that the network quality of the current network link (i.e., the Wi-Fi1 network) does not reach the preset network quality, the other network link (i.e., the first cellular network) with better quality is detected, and the service flow data processed on the Wi-Fi1 network is directly switched to the first cellular network for processing. Therefore, in a scene that network blocking easily occurs, such as an elevator, the electronic equipment shortens the blocking time of the service card by detecting other network links in advance, and the use experience of a user is improved.
With reference to the first aspect, in some implementations of the first aspect, the network quality of the first cellular network reaches a preset network quality.
With reference to the first aspect and the foregoing implementation manner, the electronic device switches the Wi-Fi1 network with the network quality not reaching the preset network quality to the first cellular network with the network quality reaching the preset network quality, which can improve the smoothness of processing network services to a greater extent and shorten the service pause time.
With reference to the first aspect, in some implementations of the first aspect, the network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network does not reach the preset network quality, but the network quality of the first cellular network is better than the network quality of the Wi-Fi1 network.
With reference to the first aspect and the foregoing implementation manner, although the network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network detected by the electronic device does not reach the preset network quality, the network quality of the first cellular network is better than that of the Wi-Fi1 network, and then switching the traffic flow data on the Wi-Fi1 network to the first cellular network may reduce the traffic jam to some extent.
With reference to the first aspect, in some implementations of the first aspect, the method further includes: and when the network quality of the Wi-Fi1 network is detected to reach the preset network quality, but the network quality of the first cellular network is better than that of the Wi-Fi1 network, switching the traffic flow data of the network traffic on the Wi-Fi1 network to the first cellular network.
With reference to the first aspect and the foregoing implementation manner, although the network quality of the Wi-Fi1 network detected by the electronic device reaches the preset network quality, but a better first cellular network is detected, the electronic device may also switch the traffic flow data on the Wi-Fi1 network to the first cellular network, so as to further improve the processing efficiency of the network traffic.
With reference to the first aspect, in some implementations of the first aspect, the detecting network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network includes: respectively sending data packets to a detection server through network links corresponding to a Wi-Fi2 network, a first cellular network and a second cellular network; and determining the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network according to at least one index of round trip delay, packet loss rate, packet error rate and sending rate of the sent data packet.
With reference to the first aspect and the foregoing implementation manner, the electronic device sends the data packet to the probe server through the network link to probe the network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network, so that the accuracy of the detected network quality can be improved, and an accurate data basis is provided for subsequent network link switching.
With reference to the first aspect, in some implementations of the first aspect, the packet is an internet packet explorer ping packet, and the ping packet includes an internet protocol IP address field, a packet type field, and a domain name field of the exploration server.
With reference to the first aspect and the foregoing implementation manner, the electronic device accurately determines the target detection server by sending a ping packet, so as to further improve accuracy of the detected network quality.
With reference to the first aspect, in some implementations of the first aspect, the sending the data packet to the probe server through network links corresponding to the Wi-Fi2 network, the first cellular network, and the second cellular network includes: according to the network priorities of the Wi-Fi2 network, the first cellular network and the second cellular network, sending data packets to the detection server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively; or, the data packets are simultaneously sent to the probe server through the corresponding network links of the Wi-Fi2 network, the first cellular network and the second cellular network.
With reference to the first aspect and the foregoing implementation manner, if the electronic device detects the Wi-Fi2 network, the first cellular network, and the second cellular network according to their network priorities, the detection may be stopped when a network link that can be switched is detected, so as to reduce power consumption for communication between the electronic device and the detection server, and reduce operating pressure of the electronic device. If the electronic device detects the Wi-Fi2 network, the first cellular network and the second cellular network at the same time, the detection efficiency can also be improved to a certain extent.
With reference to the first aspect, in some implementations of the first aspect, the method further includes: acquiring sensor data acquired by a sensor of electronic equipment; and determining that the electronic equipment is in the elevator state according to the sensor data.
With reference to the first aspect and the foregoing implementation manner, the electronic device determines the state of the electronic device through sensor data acquired by an internal sensor, may determine whether the electronic device is in an elevator state, and executes the network link switching process when the electronic device is in the elevator state, so as to shorten a service hang-up time in a scenario where network hang-up easily occurs, such as an elevator.
With reference to the first aspect, in some implementations of the first aspect, the sensor data includes acceleration sensor data.
With reference to the first aspect and the foregoing implementation manner, the electronic device determines whether the elevator is in an elevator state through acceleration sensor data, so as to improve accuracy of a determination result.
With reference to the first aspect, in some implementations of the first aspect, the method includes: the electronic device currently performs network traffic using a Wi-Fi1 network; under the condition that the electronic equipment is in an elevator state, sending data packets to a detection server through network links corresponding to a Wi-Fi2 network, a first cellular network and a second cellular network respectively; determining the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network according to at least one index of round-trip delay, packet loss rate, packet error rate and sending rate of a sent data packet; detecting the network quality of the Wi-Fi1 network; and when the network quality of the Wi-Fi1 network is detected to not reach the preset network quality and the network quality of the first cellular network reaches the preset network quality, switching the service flow data of the network service on the Wi-Fi1 network to the first cellular network.
With reference to the first aspect and the foregoing implementation manner, when the electronic device is in the elevator state, the electronic device pulls up the detection of the other network links, and then when it is detected that the network quality of the current network link (i.e., the Wi-Fi1 network) does not reach the preset network quality, the other network link (i.e., the first cellular network) with better quality is already detected, and the traffic flow data processed on the Wi-Fi1 network is directly switched to the first cellular network for processing. Therefore, in a scene that network blocking easily occurs, such as an elevator, the electronic equipment shortens the blocking time of the service card by detecting other network links in advance, and the use experience of a user is improved.
In a second aspect, the present application provides an apparatus, which is included in an electronic device, and which has a function of implementing the behavior of the electronic device in the first aspect and the possible implementation manners of the first aspect. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions. Such as a receiving module or unit, a processing module or unit, etc.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and an interface; the processor, the memory and the interface cooperate with each other to enable the electronic device to perform any one of the methods of the first aspect.
In a fourth aspect, the present application provides a chip comprising a processor. The processor is adapted to read and execute the computer program stored in the memory to perform the method of the first aspect and any possible implementation thereof.
Optionally, the chip further comprises a memory, the memory being connected to the processor by a circuit or a wire.
Further optionally, the chip further comprises a communication interface.
In a fifth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the processor is enabled to execute any one of the methods in the technical solutions of the first aspect.
In a sixth aspect, the present application provides a computer program product comprising: computer program code for causing an electronic device to perform any of the methods of the first aspect when the computer program code runs on the electronic device.
Drawings
FIG. 1 is a schematic diagram of an example of a Linkturbo technology provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of another Linkturbo technology according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating an example of a process for performing network link handover according to a conventional technique;
fig. 4 is a schematic diagram illustrating an example of a network link handover process according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an example of an electronic device according to an embodiment of the present disclosure;
FIG. 6 is a block diagram of an example sensor hub configuration provided by embodiments of the present application;
FIG. 7 is a block diagram of an exemplary software architecture of an electronic device according to an embodiment of the present disclosure;
FIG. 8 (a) is a schematic diagram of an example of a setup interface provided in an embodiment of the present application;
fig. 8 (b) is a schematic diagram of an example of a WLAN setting interface provided in the embodiment of the present application;
fig. 8 (c) is a schematic diagram of an example of a network acceleration setting interface provided in the embodiment of the present application;
fig. 9 is a schematic diagram of an example of a SIM card management setting interface according to an embodiment of the present application;
fig. 10 is a flowchart illustrating an example of a network link switching method based on a location of an electronic device according to an embodiment of the present application;
fig. 11 is a schematic diagram of an example of detecting network quality of the cell 1 according to the embodiment of the present application;
FIG. 12 is a schematic flowchart of an example of probing Wi-Fi2, cell 1, and cell 2 according to the embodiment of the present application;
fig. 13 is a schematic flowchart of another example of detecting Wi-Fi2, cell 1 and cell 2 according to the embodiment of the present application;
fig. 14 is a flowchart illustrating another example of a network link switching method based on a location of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" and "third" 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, features defined as "first", "second", "third" may explicitly or implicitly include one or more of the features.
First, we introduce a linktro technology, and in an embodiment, as shown in fig. 1, the linktro technology may simultaneously use a multi-path transmission control protocol (MP-TCP) and a multi-path user datagram protocol (MP-UDP), and by combining the MP-TCP protocol and the MP-UDP protocol, the linktro technology may simultaneously use a cellular network and a Wi-Fi, so as to bring a mobile internet access experience with high network speed and stable low delay for a user. The MP-UDP protocol is adopted, link establishment is not needed, the transmission speed is high, the time delay is small, and the method is suitable for real-time APP (such as video APP or game APP) with high response speed requirements, while the MP-TCP protocol is adopted, link establishment is needed, the transmission speed is slightly slow, and the method is suitable for non-real-time APP (such as social APP or shopping APP) with low response speed requirements.
In another embodiment, as shown in FIG. 2, Linkturbo technology may use MP-Flow protocol to implement simultaneous use of cellular network and Wi-Fi, and allocate different networks for different APP traffic requirements. For example, a Wi-Fi network is allocated for video APPs or gaming APPs, and a cellular network is allocated for social APPs or shopping APPs.
In a scene that a user takes an elevator with electronic equipment, supposing that the Linkturbo function is opened by the electronic equipment and the user currently uses the video APP to watch online video, the Wi-Fi network outside the elevator (marked as a first network link) provides network service for the video APP at the moment, and the network quality of the Wi-Fi network after entering the elevator is poor, so that the normal operation of the video APP is seriously influenced, for example, the video playing is blocked and the like. To solve this problem, as shown in fig. 3, when detecting that the network quality of the first network link does not reach the preset network quality, the electronic device in the conventional technology initiates activation or detection of other network links, and switches the traffic flow data of the video APP to an available second network link for processing if the available second network link exists. As can be seen from fig. 3, this process of switching the network link by the electronic device is serial, wherein the activation or detection of other network links takes the most time, usually takes 1-2 seconds(s), and then the process of switching the traffic stream data of the video APP by the electronic device onto the available second network link usually takes 3-5s, that is, 3-5s is needed for video morton recovery, which is a long recovery time, and thus the user experience is poor.
In view of this, the embodiment of the present application provides a network link switching method based on a location of an electronic device, as shown in fig. 4, when the electronic device detects that the electronic device enters an elevator, the electronic device initiates an activation or detection process on another network link, and then when the electronic device detects that the network quality of a first network link does not reach a preset network quality, an available second network link is already detected, and traffic flow data processed on the first network link is directly switched to the available second network link for processing. Therefore, in the scene that the network is easy to block, such as an elevator, the electronic equipment shortens the time of the service block in the pause period by activating or detecting other network links in advance, and the use experience of a user is improved.
It should be noted that the network link switching method based on the location of the electronic device provided in the embodiment of the present application may be applied to an electronic device having a linkto turbo function, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, a super-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the present application does not limit any specific type of the electronic device.
For example, fig. 5 is a schematic structural diagram of an example of the electronic device 100 according to the embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 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 110 may include one or more processing units, such as: the processor 110 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), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. 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 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 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 I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
MIPI interfaces may be used to connect processor 110 with peripheral devices such as display screen 194, camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. The structure of the antenna 1 and the antenna 2 in fig. 5 is merely an example. Each antenna in the electronic device 100 may be used to cover a 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 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 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 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 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 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 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, among others. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 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 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signals acquired by the bone conduction sensor 180M, and the heart rate detection function is realized.
In one embodiment, the electronic device 100 further includes a Sensor Hub (Sensor Hub), or Sensor Hub, Sensor co-processor, which is primarily connected to and processes data from the Sensor module 180 with low power consumption. As shown in fig. 6, the Sensor Hub may include, but is not limited to, a low-power processing module or processing circuit such as an application processor, a Coprocessor (Coprocessor), a micro-programmed control unit (MCU), and the like. In general, the Sensor Hub may process data of sensors such as the above-described pressure Sensor 180A, gyro Sensor 180B, air pressure Sensor 180C, magnetic Sensor 180D, acceleration Sensor 180E, distance Sensor 180F, proximity light Sensor 180G, fingerprint Sensor 180H, temperature Sensor 180J, touch Sensor 180K, ambient light Sensor 180L, bone conduction Sensor 180M, and the like, and perform fusion processing of the respective Sensor data.
According to different electronic equipment and business scene requirements, the current Sensor Hub is mainly divided into three types: one is to take the Sensor Hub as an independent chip and place the chip between an application processor and various sensors; the other method is that the Sensor Hub and various sensors are combined into a whole, the data of the various sensors are received and fused, and the fused data are provided to an application processor; and the other is that the Sensor Hub is integrated by an application processor, various sensors provide data to the Sensor Hub inside the application processor, and the Sensor Hub performs fusion processing and then provides the data to the application processor.
In one embodiment, the Sensor Hub may determine whether the electronic device is in an overweight or weightless state according to the data of the air pressure Sensor 180C or the acceleration Sensor 180E, so as to determine whether the electronic device enters the elevator with the user currently.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 7 is a block diagram of a software configuration of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 7, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 7, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
For convenience of understanding, in the following embodiments of the present application, an electronic device having a structure shown in fig. 5 and fig. 7 is taken as an example, and a network link switching method based on a location of the electronic device provided in the embodiments of the present application is specifically described in conjunction with the drawings and application scenarios.
In one embodiment, to facilitate the user to turn on the linkground function, the electronic device may provide the user with an interface for turning on the linkground function, which may be shown in fig. 8. On the interface shown in fig. 8 (a), after clicking the "WLAN" option 81, the user may jump to the interface shown in fig. 8 (b), and then click the "network acceleration" option 82, the user may jump to the interface shown in fig. 8 (c). On the interface, a user can turn on the Linkturbo function by clicking the 'network acceleration' switch 83, and at this time, the electronic device can use Wi-Fi and the cellular network at the same time.
For example, when the current electronic device is in a Wi-Fi1 network environment and a user turns on a video APP to watch a video, the electronic device can provide network services using Wi-Fi 1. When a user opens a shopping APP to view merchandise, the electronic device may provide network services using a cellular network. When a user downloads a large volume of resources, the electronic device may provide network services using both Wi-Fi1 and the cellular network.
In another embodiment, the electronic device is currently in a dual Wi-Fi network environment of Wi-Fi1 and Wi-Fi2, for example, Wi-Fi1 is a 2.4GHz band network, Wi-Fi2 is a 5GHz band network, and if the electronic device supports dual Wi-Fi connection, the electronic device can use Wi-Fi1, Wi-Fi2 and a cellular network simultaneously after the Linkturbo function is turned on by the user.
In another embodiment, if the electronic device further supports the primary and secondary card services, that is, two SIM cards are installed in the electronic device, one SIM card corresponds to the cell 1, and the other SIM card corresponds to the cell 2; then after the user turns on the linkto function, the "smart switching network card" switch 91 is turned on through the interface shown in fig. 9, and the electronic device can use the Wi-Fi1, the Wi-Fi2, the cellular 1 network and the cellular 2 network at the same time.
For the above scenario, in an embodiment, if one APP in the electronic device is running in the foreground or one APP is downloading resources in the background, it may be considered that the electronic device is executing a network service, and the electronic device may execute the network link switching method based on the location of the electronic device in the following embodiments. In another embodiment, if the electronic device does not run the APP or is in the screen lock state, it may be considered that the electronic device does not execute the network service, and the electronic device does not need to execute the network link switching method based on the electronic device location in the following embodiments.
Assuming that the electronic device is performing network traffic using Wi-Fi1 (denoted as the first network link), the electronic device may detect whether it is in an elevator state and detect the network quality of the first network link and perform a handover of the network link if a network link handover condition is satisfied. As shown in fig. 10, an embodiment of the present application provides an example of a network link switching method based on a location of an electronic device, where the method includes:
first, in the case where the electronic device is in an elevator state, the network quality of other network links is detected.
The other network links are the rest of the network links used by the electronic device except the first network link. For example, after the Linkturbo function is started, the electronic device can be connected with four networks, namely Wi-Fi1, Wi-Fi2, cell 1 and cell 2, at the same time, the first network link is Wi-Fi1, and the other network links are Wi-Fi2, cell 1 and cell 2.
For determining whether the electronic device is in the elevator state, in one embodiment, the electronic device may use the Sensor Hub to determine whether the electronic device is in the overweight or weightless state according to data of the pressure Sensor or the acceleration Sensor, so as to determine whether the electronic device is in the elevator state. In another embodiment, the electronic device may record the name Wi-Fi1 of the first network link, and if the network link is a frequently used network link (such as a home network), in the case that the electronic device is disconnected from the network link, the user may be considered to leave the home with the electronic device, i.e., to take an elevator, and it is determined that the electronic device is in the elevator state. In still another embodiment, if a card device having a Radio Frequency Identification (RFID) technology is installed in the elevator, and the electronic device receives a radio frequency signal of the card device, it is determined that the electronic device is in the elevator state. In another embodiment, if the camera of the electronic device captures an identification image (e.g., an elevator door or an identification with the word "elevator") in the elevator, it can be determined that the electronic device is in the elevator state. It should be noted that, the method for determining that the electronic device is in the elevator state is not limited in the embodiment of the present application.
Then, after determining that the electronic device is in the elevator state, the electronic device may begin to probe the network quality of the other network links, i.e., the network quality of Wi-Fi2, cell 1, and cell 2. In one embodiment, when the Sensor Hub determines that the electronic device is in the elevator state, the Sensor Hub may send a notification to linktro, and the linktro starts to detect the network quality of other network links after receiving the notification. The network quality of the network link may be measured by using Received Signal Strength Indication (RSSI), quality of service (QoS), quality of experience (QoE), and other indicators, and may be specifically determined according to at least one indicator of round-trip time (RTT), packet loss rate (packet loss rate), packet error rate (per-packet error rate), and sending rate of a data packet.
In one embodiment, the electronic device may probe the network quality for Wi-Fi2, cell 1, and cell 2 one by one according to the network priority. In another embodiment, the electronic device may simultaneously probe for network quality for Wi-Fi2, cell 1, and cell 2. As shown in fig. 11, taking the network quality of the probing cell 1 as an example, in the process of probing the network quality, the electronic device may send a group of data packets to the probing server through the base station corresponding to the cell 1 network, calculate at least one index value of the round trip delay, the packet loss rate, the packet error rate, and the sending rate of sending the data packets, and then determine the network quality of the cell 1 according to the calculation result. If the calculation result is greater than or equal to the preset threshold, determining that the network quality of the honeycomb 1 reaches the preset network quality; and if the calculation result is smaller than the preset threshold value, determining that the network quality of the honeycomb 1 does not reach the preset network quality.
In an embodiment, the electronic device may determine the calculation result corresponding to the cell 1 according to one index value of the round trip delay, the packet loss rate, the packet error rate, and the transmission rate of the transmission data packet. In another embodiment, the electronic device may determine the calculation result corresponding to the cell 1 according to the weighted result of the index values. Optionally, the data packet may be an empty packet, or may also be a packet internet protocol (packet) finder, where the ping packet may include data such as an internet protocol address (IP address), a type of the data packet, and a domain name of the probe server.
For the example of fig. 11 above, in one embodiment, the electronic device may send the data packet to the probe server only once, and determine the network quality of the cell 1 according to the probe result of this time. In another embodiment, the electronic device may send the probe server a plurality of times with a data packet, and determine the network quality of the cell 1 according to the plurality of times of probes; for example, when the network quality detected each time reaches the preset network quality, it is determined that the network quality of the cell 1 reaches the preset network quality, or when the network quality detected more than a preset ratio (e.g., 80%) reaches the preset network quality, it is determined that the network quality of the cell 1 reaches the preset network quality. In addition, there may be one or more probe servers, and when the electronic device transmits a data packet to a probe server a plurality of times, the electronic device may sequentially transmit the data packet to one probe server or may simultaneously transmit the data packet to a plurality of probe servers.
Next, the electronic device may determine whether the network link switching condition is satisfied by the following three ways, and perform network link switching if the condition is satisfied:
the first mode is as follows: and if the network quality of the first network link is detected to be lower than the preset network quality and the network quality of the second network link is detected to be higher than the preset network quality, switching the service flow data on the first network link to the second network link.
The second network link is a network link with a network quality reaching a preset network quality in other network links. Illustratively, the other network links include Wi-Fi2, cell 1, and cell 2, and after the above-mentioned detection process, it is obtained that the network quality of Wi-Fi2 does not reach the preset network quality, the network quality of cell 1 reaches the preset network quality, and the network quality of cell 2 does not reach the preset network quality, then cell 1 is the second network link.
In one embodiment, while the electronic device is performing network traffic, the electronic device may continuously detect a network quality of a first network link occupied by the network traffic. The network service corresponds to a service server, when the electronic device interacts data with the service server, at least one index value of round trip delay, packet loss rate, packet error rate and sending rate for sending the data packet can be calculated, and then the network quality of the first network link is determined according to the calculation result; it is understood that the method for determining the network quality of the first network link may refer to the above-mentioned process for determining the network quality of the cell 1, and is not described herein again.
When the electronic device detects that the first network link does not reach the preset network quality, because the electronic device has already detected the network quality of the other network links, that is, can already determine which network link has the network quality reaching the preset network quality (marked as the second network link), the service flow data of the network service can be directly switched to the second network link. Illustratively, if the cell 1 is the second network link, the traffic flow data of the network traffic is switched from Wi-Fi1 to the cell 1.
In one embodiment, the electronic device may detect the network quality of the first network link at preset time intervals. As an implementation manner, if the electronic device detects that the network quality of the first network link does not reach the preset network quality only once, the electronic device switches the traffic flow data on the first network link to the second network link. As another implementation manner, if the electronic device detects that the network quality of the first network link does not reach the preset network quality for a preset number of times (e.g., 2 times), the service flow data on the first network link is switched to the second network link, so as to avoid the error influence caused by the jitter of the first network link.
The second mode is as follows: and if the network quality of the first network link is detected to be lower than the preset network quality, the network quality of the second network link is detected to be lower than the preset network quality, but the network quality of the second network link is higher than the network quality of the first network link, the service flow data on the first network link is switched to the second network link.
The second network link is one of the other network links, and although the detected network quality of the second network link does not reach the preset network quality, the network quality of the second network link is superior to that of the first network link, then switching the traffic flow data on the first network link to the second network link reduces traffic congestion to a certain extent. The process of detecting the network quality of the first network link in this embodiment is similar to the first method, and is not described herein again.
Illustratively, the other network links include Wi-Fi2, cell 1, and cell 2, and through the above-mentioned detection process, it is obtained that the network quality of Wi-Fi2 does not reach the preset network quality, the network quality of cell 1 does not reach the preset network quality, and the network quality of cell 2 does not reach the preset network quality, but the network quality of cell 1 is better than the network quality of the first network link, and then cell 1 is the second network link.
In one embodiment, the electronic device may determine whether the network quality of the second network link is better than the network quality of the first network link according to the calculated index value of the transmission data packet. For example, if the index value of the second network link under a certain specified index is higher than the index value of the first network link under the index, determining that the network quality of the second network link is better than the network quality of the first network link; or the weighted result of the second network link under the index values is higher than the weighted result of the first network link under the index values, and the network quality of the second network link is determined to be better than the network quality of the first network link.
The third mode is as follows: and if the network quality of the first network link is detected to reach the preset network quality, but the network quality of the second network link is superior to that of the first network link, switching the service flow data on the first network link to the second network link.
The second network link is one of the other network links, and although the detected network quality of the first network link reaches the preset network quality, if a better second network link is detected, the electronic device may also switch the traffic data on the first network link to the second network link, so as to further improve the processing efficiency of the network traffic. In this embodiment, reference may be made to the description of the above embodiment for a process of detecting the network quality of the first network link and determining whether the network quality of the second network link is better than the network quality of the first network link, which is not described herein again.
It should be noted that, after the electronic device switches the traffic flow data on the first network link to the second network link, the second network link may be used as a new first network link, and the network quality of the first network link may be continuously detected. If the new first network link meets the network link switching condition, the electronic device can check whether available network links exist in other previously detected network links, and if yes, the electronic device can switch to the new network link; alternatively, the electronic device again probes the network quality of the other network links to determine a new second network link.
According to the network link switching method based on the position of the electronic equipment, when the electronic equipment is in an elevator state, the electronic equipment pulls up the detection of other network links, and when the network quality of the first network link is detected to not reach the preset network quality, an available second network link is detected, and the service flow data processed on the first network link is directly switched to the first network link for processing. Therefore, in a scene that network blocking easily occurs, such as an elevator, the electronic equipment shortens the blocking time of the service card by detecting other network links in advance, and the use experience of a user is improved.
In an embodiment, during the process that the electronic device detects the network quality of Wi-Fi2, cell 1, and cell 2 one by one according to the network priority, after the electronic device detects all Wi-Fi2, cell 1, and cell 2, one of the network links is selected as the second network link according to the detected network quality of Wi-Fi2, cell 1, and cell 2 according to the network link switching condition. Optionally, if there are multiple selectable network links, the electronic device may randomly select one of the network links as the second network link, or the electronic device may select a network link with a higher network priority as the second network link.
For example, as shown in fig. 12, assuming that the network priorities of Wi-Fi2, cell 1, and cell 2 are Wi-Fi2> cell 1> cell 2, the electronic device first probes Wi-Fi2 to obtain the network quality of Wi-Fi2, then probes cell 1 to obtain the network quality of cell 1, and finally probes cell 2 to obtain the network quality of cell 2. If the electronic device finishes detecting all the Wi-Fi2, the cell 1 and the cell 2, and the obtained result is that the network quality of the Wi-Fi2 reaches the preset network quality, the network quality of the cell 1 reaches the preset network quality, and the network quality of the cell 2 does not reach the preset network quality, the electronic device may select any one of the Wi-Fi2 and the cell 1 as the second network link, or may select the Wi-Fi2 with the high network priority as the second network link. If no network link with the network quality reaching the preset network quality exists at present, the service flow data is not switched for the moment.
In another embodiment, in the process of detecting the network quality by the electronic device simultaneously detecting the network quality of Wi-Fi2, cell 1 and cell 2, one of the network links with the network quality reaching the preset network quality may be selected as the second network link according to the detected network quality of Wi-Fi2, cell 1 and cell 2.
In the above embodiment, the detection of the other network links by the electronic device is performed when the electronic device is detected to be in the elevator state, an available network link can be detected in advance, and when the network quality of the first network link is detected to not reach the preset network quality, the traffic flow data processed on the first network link can be directly switched to the second network link for processing, so that the traffic jam duration is shortened.
In another embodiment, the electronic device performs network quality detection on Wi-Fi2, cell 1 and cell 2 one by one according to network priority, and if it can be determined that a network link switching condition is met during the detection process, the electronic device may stop the detection and use the detected network link as the second network link.
Exemplarily, continuing the network link switching process described in the first manner, as shown in fig. 13, assuming that the network priorities of Wi-Fi2, cell 1, and cell 2 are Wi-Fi2> cell 1> cell 2, the electronic device first detects Wi-Fi2 to obtain the network quality of Wi-Fi2, and if the network quality of Wi-Fi2 reaches the preset network quality, uses Wi-Fi2 as a second network link without detecting cell 1 and cell 2; and if the network quality of the Wi-Fi2 does not reach the preset network quality, detecting the honeycomb 1 to obtain the network quality of the honeycomb 1. If the network quality of the cell 1 reaches the preset network quality, taking the cell 1 as a second network link without detecting the cell 2; and if the network quality of the honeycomb 1 does not reach the preset network quality, finally detecting the honeycomb 2 to obtain the network quality of the honeycomb 2. If the network quality of the honeycomb 2 reaches the preset network quality, taking the honeycomb 2 as a second network link; if the network quality of the cell 2 does not reach the preset network quality, the service flow data is not switched first.
In the above embodiment, when the electronic device detects another network link, if the network link that can be switched is detected, the detection is stopped, so that the communication power consumption between the electronic device and the detection server can be reduced, and the working pressure of the electronic device can be reduced.
As can be seen from the above description, the electronic device may determine the network quality of the first network link according to at least one index value of the round trip delay, the packet loss rate, the packet error rate, and the transmission rate of the transmission data. In an embodiment, the electronic device may determine which index value to use according to a service type of the network service, for example, an index value of round trip delay used for a service of a network game class, and an index value of a packet loss rate used for a service of an online video class. For the network game service, if the round-trip delay of the first network link is greater than a preset delay threshold, determining that the network quality of the first network link does not reach the preset network quality; for the online video service, if the packet loss rate of the first network link is greater than a preset rate, determining that the network quality of the first network link reaches the preset network quality.
In this embodiment, the electronic device may also determine the second network link according to the traffic type of the network traffic and the detected results of the other network links. As an implementation manner, in the result of the detected other network links, as long as the index value corresponding to the service type reaches the preset threshold, the network link with the index value reaching the preset threshold may be used as the second network link. Exemplarily, assuming that the round trip delay, the packet loss rate and the transmission rate of the detected Wi-Fi2 are (a1, b1, c1), the round trip delay, the packet loss rate and the transmission rate of the cell 1 are (a2, b2, c2), and the round trip delay, the packet loss rate and the transmission rate of the cell 2 are (a3, b3, c3), the index value of the round trip delay is adopted for the traffic of the network game class. If the round-trip delay a2 of the cell 1 is less than or equal to the preset delay threshold, the cell 1 may be used as the second network link, and in case the network quality of the first network link does not reach the preset network quality, the traffic flow data of the network game may be switched to the cell 1 for processing.
As another realizable way, in the detected result of other network links, as long as the index value corresponding to the service type is better than the index value of the first network link, the network link with the index value better than the index value of the first network link is used as the second network link. Exemplarily, assuming that the round trip delay, the packet loss rate and the transmission rate of the detected Wi-Fi2 are (a1, b1, c1), the round trip delay, the packet loss rate and the transmission rate of the cell 1 are (a2, b2, c2), and the round trip delay, the packet loss rate and the transmission rate of the cell 2 are (a3, b3, c3), the index value of the round trip delay is adopted for the traffic of the network game class. If the round trip delay a3 of the cell 2 is smaller than the round trip delay of the first network link, the cell 2 may be used as the second network link, and in case the network quality of the first network link does not reach the preset network quality, the traffic flow data of the network game may be switched to the cell 2 for processing.
In another embodiment, in the case that the electronic device determines which index value to use according to the service type of the network service, when detecting the network quality of other network links, only the index value may be detected and calculated without calculating other index values, thereby reducing the calculation amount of the electronic device and improving the detection efficiency. For example, if the network game service uses the index value of the round trip delay, the electronic device does not need to calculate the packet loss rate and the transmission rate. In addition, when the network quality of the first network link is detected, only the index value may be calculated, and it is not necessary to calculate another index value.
In the above embodiment, the electronic device determines the adopted index value according to the service type of the foreground service, and is adaptable to different requirements of different service types, so as to further improve the user experience.
As to the above network link switching method based on the location of the electronic device, the network link switching process described in the first mode is taken as an example, and an embodiment thereof is described below. As shown in fig. 14, when the electronic device has a running network service, the first network link occupied by the network service is assumed to be Wi-Fi 1; at the moment, on one hand, the electronic equipment adopts a Sensor Hub to judge whether the electronic equipment is in an elevator state, and Linkturbo detects the network quality of other network links when the electronic equipment is in the elevator state; LinkTurbo, on the other hand, also continuously detects the network quality of the first network link.
If the network quality of the first network link does not reach the preset network quality and a second network link with the network quality reaching the preset network quality exists, switching the service flow data of the network service on the first network link to the second network link; for example, traffic flow data is handed over from Wi-Fi1 to cell 1. Then, the second network link is used as a new first network link, and linktro continues to detect the network quality of the first network link.
And if the network quality of the first network link reaches the preset network quality, continuously detecting the network quality of the first network link.
If the network quality of the first network link does not reach the preset network quality but an available network link with the network quality reaching the preset network quality does not exist, the service flow data of the network service is not switched first.
In the above embodiment, when the electronic device is in the elevator state, the electronic device pulls up the detection of the other network links, and then detects that the network quality of the first network link does not reach the preset network quality, the electronic device has already detected the available second network link, and directly switches the traffic flow data processed on the first network link to the second network link for processing. Therefore, in a scene that network blocking easily occurs, such as an elevator, the electronic equipment shortens the blocking time of the service card by detecting other network links in advance, and the use experience of a user is improved.
In another scenario: when the user downloads a large flow of resources, the electronic equipment simultaneously uses Wi-Fi1 and the cell 1 to provide a network service scene, namely, a part of traffic flow data of the downloading task is processed by Wi-Fi1, and another part of traffic flow data is processed by the cell 1. At this time, if the electronic device is in an elevator state, the network quality of Wi-Fi2 and cell 2 may be detected, and if it is detected that the network quality of Wi-Fi1 does not reach the preset network quality, but the network quality of cell 1 reaches the preset network quality, only a part of traffic data processed on Wi-Fi1 may be switched to other available network links for processing, such as to cell 1, or to a network link satisfying the condition in Wi-Fi2 and cell 2.
In addition, in an embodiment, the switching process of the network link provided in this embodiment may also be applied to other weak signal scenarios, such as an underground garage scenario, after a user uses an electronic device to execute a network service and enters the underground garage, if the electronic device is located at the position of the underground garage through a GPS positioning technology or a camera captures an identification image of the underground garage, the network quality of other network links may be detected, and in a case that the network link switching condition in the above embodiment is satisfied, service flow data on a first network link executing the network service is switched to a second network link for processing.
In another embodiment, the electronic device may further collect network signals of each network at the weak signal position, establish a signal fingerprint library of the position, directly acquire a network with a preset network quality from the signal fingerprint library when the electronic device arrives at the position again, and switch the service flow data to the network link with the preset network quality when the network quality of the first network link for processing the network service does not reach the preset network quality.
The foregoing details examples of the network link switching method based on the location of the electronic device according to the embodiments of the present application. It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional modules according to the method example, for example, the functional modules may be divided into the functional modules corresponding to the functions, such as the detection unit, the processing unit, the display unit, and the like, or two or more functions may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the network link switching method based on the position of the electronic device, so that the same effect as the implementation method can be achieved.
Where an integrated unit is employed, the electronic device may further include a processing module, a storage module, and a communication module. The processing module can be used for controlling and managing the action of the electronic equipment. The memory module may be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device according to this embodiment may be a device having the structure shown in fig. 5.
The embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the processor is enabled to execute the method for switching the network link based on the location of the electronic device according to any of the above embodiments.
The embodiment of the present application further provides a computer program product, when the computer program product runs on a computer, the computer is caused to execute the relevant steps, so as to implement the network link switching method based on the location of the electronic device in the foregoing embodiment.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the apparatus runs, the processor may execute the computer execution instructions stored in the memory, so as to make the chip execute the network link switching method based on the electronic device location in the above-mentioned method embodiments.
The electronic device, the computer-readable storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer-readable storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, 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 embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, 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.
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, may be located in one place, or may be distributed to 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 essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall 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 (21)

1. A network link switching method based on the position of an electronic device, wherein the method is executed by the electronic device, and the electronic device supports a 2.4GHz Wi-Fi1 network and a 5GHz Wi-Fi2 network, and the electronic device carries a first SIM card and a second SIM card, the first SIM card corresponds to a first cellular network, and the second SIM card corresponds to a second cellular network, the method comprising:
the electronic device currently performs network traffic using the Wi-Fi1 network;
detecting network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network if the electronic device satisfies a preset condition, the preset condition including the electronic device being in an elevator state or the electronic device being in a weak signal scenario;
and when the network quality of the Wi-Fi1 network is detected to be lower than the preset network quality, switching the traffic flow data of the network service on the Wi-Fi1 network to the first cellular network, wherein the network quality of the first cellular network is superior to that of the Wi-Fi1 network.
2. The method of claim 1, wherein the network quality of the first cellular network reaches the predetermined network quality.
3. The method of claim 1, wherein the network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network do not reach the preset network quality, but the network quality of the first cellular network is better than the network quality of the Wi-Fi1 network.
4. The method of claim 1, further comprising:
when the network quality of the Wi-Fi1 network is detected to reach the preset network quality, but the network quality of the first cellular network is better than that of the Wi-Fi1 network, switching the traffic flow data of the network traffic on the Wi-Fi1 network to the first cellular network.
5. The method according to any of claims 1-4, wherein said probing network qualities of the Wi-Fi2 network, the first cellular network, and the second cellular network comprises:
sending data packets to a probe server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively;
and determining the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network according to at least one index of round-trip delay, packet loss rate, packet error rate and sending rate of the data packet.
6. The method of claim 5, wherein the packet is an Internet packet explorer ping packet that includes an Internet Protocol (IP) address field, a packet type field, and a probing server domain name field.
7. The method according to claim 5 or 6, wherein the sending the data packet to the probe server via the corresponding network links of the Wi-Fi2 network, the first cellular network, and the second cellular network, respectively, comprises:
according to the network priorities of the Wi-Fi2 network, the first cellular network and the second cellular network, sending data packets to the probe server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively;
alternatively, the first and second electrodes may be,
and simultaneously sending data packets to the probe server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively.
8. The method according to any one of claims 1-7, further comprising:
acquiring sensor data acquired by a sensor of the electronic equipment;
determining that the electronic device is in an elevator state based on the sensor data.
9. The method of claim 8, wherein the sensor data comprises acceleration sensor data.
10. The method according to claim 1, characterized in that it comprises:
the electronic device currently performs network traffic using the Wi-Fi1 network;
sending data packets to a detection server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively under the condition that the electronic equipment is in an elevator state;
determining the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network according to at least one index of round-trip delay, packet loss rate, packet error rate and sending rate of the data packet;
detecting a network quality of the Wi-Fi1 network;
and when the network quality of the Wi-Fi1 network is detected not to reach the preset network quality and the network quality of the first cellular network reaches the preset network quality, switching the traffic flow data of the network traffic on the Wi-Fi1 network to the first cellular network.
11. An electronic device, comprising:
one or more processors;
one or more memories;
a module installed with a plurality of applications;
the electronic equipment supports a 2.4GHz Wi-Fi1 network and a 5GHz Wi-Fi2 network, and carries a first SIM card and a second SIM card, wherein the first SIM card corresponds to a first cellular network, and the second SIM card corresponds to a second cellular network;
the memory stores one or more programs that, when executed by the processor, cause the electronic device to perform the steps of:
the electronic device currently performs network traffic using the Wi-Fi1 network;
detecting network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network if the electronic device satisfies a preset condition, the preset condition including the electronic device being in an elevator state or the electronic device being in a weak signal scenario;
when the network quality of the Wi-Fi1 network is detected to not reach the preset network quality, switching the traffic flow data of the network service on the Wi-Fi1 network to the network link of the first cellular network, wherein the network quality of the first cellular network is superior to that of the Wi-Fi1 network.
12. The electronic device of claim 11, wherein the network quality of the first cellular network reaches the predetermined network quality.
13. The electronic device of claim 11, wherein the network quality of the Wi-Fi2 network, the first cellular network, and the second cellular network do not reach the preset network quality, but the network quality of the first cellular network is better than the network quality of the Wi-Fi1 network.
14. The electronic device of claim 11, wherein the one or more programs, when executed by the processor, cause the electronic device to perform the steps of:
when the network quality of the Wi-Fi1 network is detected to reach the preset network quality, but the network quality of the first cellular network is better than that of the Wi-Fi1 network, switching the service flow data of the network service on the Wi-Fi1 network to the first cellular network.
15. The electronic device of any of claims 11-14, wherein the one or more programs, when executed by the processor, cause the electronic device to perform the steps of:
sending data packets to a probe server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively;
and determining the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network according to at least one index of round-trip delay, packet loss rate, packet error rate and sending rate of the data packet.
16. The electronic device of claim 15, wherein the packet is a ping packet comprising an Internet Protocol (IP) address field, a packet type field, and a probe server domain name field.
17. The electronic device of claim 15 or 16, wherein the one or more programs, when executed by the processor, cause the electronic device to perform the steps of:
according to the network priorities of the Wi-Fi2 network, the first cellular network and the second cellular network, sending data packets to the probe server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively;
alternatively, the first and second electrodes may be,
and simultaneously sending data packets to the probe server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively.
18. The electronic device of any of claims 11-17, wherein the one or more programs, when executed by the processor, cause the electronic device to perform the steps of:
acquiring sensor data acquired by a sensor of the electronic equipment;
determining that the electronic device is in an elevator state based on the sensor data.
19. The electronic device of claim 18, wherein the sensor data comprises acceleration sensor data.
20. The electronic device of claim 11, wherein the one or more programs, when executed by the processor, cause the electronic device to perform the steps of:
the electronic device currently performs network traffic using the Wi-Fi1 network;
sending data packets to a detection server through network links corresponding to the Wi-Fi2 network, the first cellular network and the second cellular network respectively under the condition that the electronic equipment is in an elevator state;
determining the network quality of the Wi-Fi2 network, the first cellular network and the second cellular network according to at least one index of round-trip delay, packet loss rate, packet error rate and sending rate of the data packet;
detecting a network quality of the Wi-Fi1 network;
and when the network quality of the Wi-Fi1 network is detected not to reach the preset network quality and the network quality of the first cellular network reaches the preset network quality, switching the traffic flow data of the network traffic on the Wi-Fi1 network to the first cellular network.
21. A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the method of any one of claims 1 to 10.
CN202110876161.7A 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment Active CN114449599B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310481503.4A CN116614848A (en) 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment
CN202110876161.7A CN114449599B (en) 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110876161.7A CN114449599B (en) 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310481503.4A Division CN116614848A (en) 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment

Publications (2)

Publication Number Publication Date
CN114449599A true CN114449599A (en) 2022-05-06
CN114449599B CN114449599B (en) 2023-05-12

Family

ID=81362612

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310481503.4A Pending CN116614848A (en) 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment
CN202110876161.7A Active CN114449599B (en) 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310481503.4A Pending CN116614848A (en) 2021-07-30 2021-07-30 Network link switching method based on electronic equipment position and electronic equipment

Country Status (1)

Country Link
CN (2) CN116614848A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115038134A (en) * 2022-06-29 2022-09-09 支付宝(杭州)信息技术有限公司 Service request processing method, device, equipment and medium
CN115767602A (en) * 2022-11-01 2023-03-07 荣耀终端有限公司 Automatic error correction method for device protocol subsystem exception and electronic device
CN116232959A (en) * 2023-02-21 2023-06-06 荣耀终端有限公司 Network quality detection method and device
CN116390142A (en) * 2023-02-23 2023-07-04 荣耀终端有限公司 Network detection method and electronic equipment
CN116709442A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Wireless network switching method and electronic equipment
CN116709369A (en) * 2022-10-21 2023-09-05 荣耀终端有限公司 Network acceleration method and electronic equipment
CN116744328A (en) * 2022-10-17 2023-09-12 荣耀终端有限公司 Network acceleration method and device
WO2023216236A1 (en) * 2022-05-13 2023-11-16 北京小米移动软件有限公司 Network access method and apparatus, and communication device and storage medium
WO2024001773A1 (en) * 2022-06-29 2024-01-04 华为技术有限公司 Data migration method, electronic device and networking system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170086120A1 (en) * 2015-09-22 2017-03-23 Beijing Zhigu Rui Tuo Tech Co., Ltd. Switching method and switching apparatus
CN109041148A (en) * 2018-08-27 2018-12-18 维沃移动通信有限公司 A kind of mobile terminal operating method and mobile terminal
CN111132270A (en) * 2018-11-01 2020-05-08 华为终端有限公司 Method and terminal equipment for rapidly searching high-standard network
US20200196110A1 (en) * 2018-09-27 2020-06-18 Amber Solutions, Inc. Methods and apparatus for device location services
CN112243278A (en) * 2020-10-16 2021-01-19 Oppo广东移动通信有限公司 Cell search method, device, chip, mobile terminal and storage medium
CN112954749A (en) * 2019-12-11 2021-06-11 华为技术有限公司 Network switching method and electronic equipment
CN113055962A (en) * 2021-03-05 2021-06-29 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170086120A1 (en) * 2015-09-22 2017-03-23 Beijing Zhigu Rui Tuo Tech Co., Ltd. Switching method and switching apparatus
CN109041148A (en) * 2018-08-27 2018-12-18 维沃移动通信有限公司 A kind of mobile terminal operating method and mobile terminal
US20200196110A1 (en) * 2018-09-27 2020-06-18 Amber Solutions, Inc. Methods and apparatus for device location services
CN111132270A (en) * 2018-11-01 2020-05-08 华为终端有限公司 Method and terminal equipment for rapidly searching high-standard network
CN112954749A (en) * 2019-12-11 2021-06-11 华为技术有限公司 Network switching method and electronic equipment
CN112243278A (en) * 2020-10-16 2021-01-19 Oppo广东移动通信有限公司 Cell search method, device, chip, mobile terminal and storage medium
CN113055962A (en) * 2021-03-05 2021-06-29 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023216236A1 (en) * 2022-05-13 2023-11-16 北京小米移动软件有限公司 Network access method and apparatus, and communication device and storage medium
WO2024001773A1 (en) * 2022-06-29 2024-01-04 华为技术有限公司 Data migration method, electronic device and networking system
CN115038134B (en) * 2022-06-29 2024-04-26 支付宝(中国)网络技术有限公司 Service request processing method, device, equipment and medium
CN115038134A (en) * 2022-06-29 2022-09-09 支付宝(杭州)信息技术有限公司 Service request processing method, device, equipment and medium
CN116744328B (en) * 2022-10-17 2024-04-23 荣耀终端有限公司 Network acceleration method and device
CN116709442A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Wireless network switching method and electronic equipment
CN116744328A (en) * 2022-10-17 2023-09-12 荣耀终端有限公司 Network acceleration method and device
CN116709369A (en) * 2022-10-21 2023-09-05 荣耀终端有限公司 Network acceleration method and electronic equipment
CN115767602A (en) * 2022-11-01 2023-03-07 荣耀终端有限公司 Automatic error correction method for device protocol subsystem exception and electronic device
CN115767602B (en) * 2022-11-01 2023-07-07 荣耀终端有限公司 Automatic error correction method for equipment protocol subsystem abnormality and electronic equipment
CN116232959B (en) * 2023-02-21 2023-11-21 荣耀终端有限公司 Network quality detection method and device
CN116232959A (en) * 2023-02-21 2023-06-06 荣耀终端有限公司 Network quality detection method and device
CN116390142B (en) * 2023-02-23 2023-11-28 荣耀终端有限公司 Network detection method and electronic equipment
CN116390142A (en) * 2023-02-23 2023-07-04 荣耀终端有限公司 Network detection method and electronic equipment

Also Published As

Publication number Publication date
CN116614848A (en) 2023-08-18
CN114449599B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN114449599B (en) Network link switching method based on electronic equipment position and electronic equipment
CN113747527B (en) Network link switching method based on electronic equipment state and electronic equipment
CN111095723B (en) Wireless charging method and electronic equipment
CN112954749B (en) Network switching method and electronic equipment
CN113704205B (en) Log storage method, chip, electronic device and readable storage medium
CN110636554B (en) Data transmission method and device
CN112637758B (en) Equipment positioning method and related equipment thereof
CN113452945A (en) Method and device for sharing application interface, electronic equipment and readable storage medium
CN114995715B (en) Control method of floating ball and related device
CN113641271A (en) Application window management method, terminal device and computer readable storage medium
CN111343326A (en) Method and related device for acquiring test log
JP7193647B2 (en) Connection establishment method and terminal device
CN113490291B (en) Data downloading method and device and terminal equipment
CN113596919B (en) Data downloading method and device and terminal equipment
CN113243126B (en) Network management method for terminal and terminal
CN116389884B (en) Thumbnail display method and terminal equipment
CN114911400A (en) Method for sharing pictures and electronic equipment
CN114828098B (en) Data transmission method and electronic equipment
CN115022807A (en) Express delivery information reminding method and electronic equipment
CN112840680A (en) Position information processing method and related device
CN116321265B (en) Network quality evaluation method, electronic device and storage medium
CN115513571B (en) Control method of battery temperature and terminal equipment
CN117354876A (en) Data migration method, electronic equipment and networking system
CN115269167A (en) Resource scheduling method and electronic equipment
CN115792431A (en) Abnormal position detection method and electronic equipment

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