WO2023273317A1 - 通道切换方法、电子设备及存储介质 - Google Patents

通道切换方法、电子设备及存储介质 Download PDF

Info

Publication number
WO2023273317A1
WO2023273317A1 PCT/CN2022/072713 CN2022072713W WO2023273317A1 WO 2023273317 A1 WO2023273317 A1 WO 2023273317A1 CN 2022072713 W CN2022072713 W CN 2022072713W WO 2023273317 A1 WO2023273317 A1 WO 2023273317A1
Authority
WO
WIPO (PCT)
Prior art keywords
network channel
application
network
channel
electronic device
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.)
Ceased
Application number
PCT/CN2022/072713
Other languages
English (en)
French (fr)
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 EP22831151.0A priority Critical patent/EP4236434B1/en
Priority to CN202280036454.7A priority patent/CN117337588A/zh
Priority to US18/037,978 priority patent/US20240089822A1/en
Publication of WO2023273317A1 publication Critical patent/WO2023273317A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04W36/304Reselection being triggered by specific parameters by measured or perceived connection quality data due to measured or perceived resources with higher communication quality
    • 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
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/088Access security using filters or firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the embodiments of the present application relate to the technical field of communications, and in particular, to a channel switching method, electronic equipment, and a storage medium.
  • mobile devices such as mobile phones are more and more widely used in people's daily life.
  • mobile payment and games can be performed through mobile phones.
  • the user's mobile phone will be connected to the wireless network.
  • the current wireless network is not enough to meet the needs of the business (for example, the signal of the mobile phone becomes poor, etc.), which will cause the business to run stagnant.
  • the user can open an acceleration channel to meet business needs.
  • the switching of the acceleration channel will bring a relatively large time delay, and also cause the service to freeze, thereby bringing a bad experience to the user.
  • Embodiments of the present application provide a channel switching method, electronic equipment, and a storage medium, so as to provide a mode of switching from a main network channel to a backup network channel, so as to improve switching efficiency and user experience.
  • the embodiment of the present application provides a channel switching method, which is applied to an electronic device, the electronic device has multiple network channels, the electronic device runs a first application, and the first application is carried on the first network channel , the first application includes multiple message flows, including:
  • the second network channel is detected based on the service type of the first application, and the path of the second network channel is determined based on the detection result;
  • the first application may be Internet applications such as games, music, and video.
  • the scene change since the scene change may cause the business to be stuck, by detecting and storing the backup network link in advance, after confirming that the stall is identified, it is directly switched to the backup network link, reducing the time between identification and switching. time interval, thus improving the efficiency of channel switching.
  • the network channel includes at least a primary WIFI channel, a secondary WIFI channel, a primary cellular channel, and a secondary cellular channel.
  • the characteristic packet stream includes at least one of a download stream, a video stream, or a battle stream.
  • the first application is a non-sensitive application
  • the above method further includes:
  • the packets of the characteristic packet flow of the first application are counted, and the obtained second statistical results include:
  • the packets of the characteristic packet flow of the first application received within the preset first time period are counted to obtain a second statistical result.
  • sufficient packets can be obtained through a longer preset first time period, so that the quality of the current main network channel can be accurately determined.
  • the above-mentioned first application is a sensitive application.
  • obtaining the message of the first application on the first network channel includes:
  • the above method after switching the characteristic packet flow to the second network channel based on the first statistical result, the above method includes:
  • the non-featured packet flow in the first application is carried on the first network channel.
  • the above method after switching the characteristic packet flow to the second network channel based on the first statistical result, the above method includes:
  • switching all message streams of the first application to the standby network channel can improve the quality of all message streams, thereby improving user experience.
  • the method further includes:
  • the path of the second network channel is deleted based on the first statistical result.
  • the path of the second network channel can be deleted, thereby saving resources and reducing the number of electronic devices. power consumption.
  • deleting the path of the second network channel based on the first statistical result includes:
  • the path of the second network channel is deleted after a preset fourth duration.
  • the fourth time length by presetting the fourth time length, it can be ensured that within the preset fourth time length, if the quality of the feature stream deteriorates, it can be switched to the backup network channel in time to avoid the path of the backup network channel being deleted. making it impossible to switch.
  • detecting the second network channel based on the service type of the first application, and determining the path of the second network channel based on the detection result includes:
  • the round-trip delay of the message of the second network channel is detected to obtain a detection result, wherein the detection result includes the round-trip delay of the message of each network channel;
  • a path of the second network channel is determined based on the detection result.
  • the quality of the network channel can be quickly obtained by calculating the round-trip delay of the network channel.
  • the detection result also includes a history record of each network channel.
  • the quality of the network channel can be obtained more accurately by combining the round-trip delay and historical records, so that a better backup network channel can be selected more accurately.
  • the packets in the characteristic packet flow are counted, and the obtained first statistical results include:
  • the quality of the characteristic packet flow can be quickly obtained, so that a handover decision can be made quickly.
  • the electronic device further includes an acceleration sensor, and the scene is detected by the acceleration sensor.
  • the scene is obtained by detecting the movement of the electronic device in the vertical direction by the acceleration sensor.
  • an electronic device including:
  • the memory is used to store computer program codes
  • the computer program codes include instructions
  • the electronic device has multiple network channels
  • the electronic device runs a first application
  • the first application is carried on the first network channel
  • the first An application includes multiple message streams, when the above-mentioned electronic device reads the above-mentioned instruction from the above-mentioned memory, so that the above-mentioned electronic device performs the following steps:
  • the network channel includes at least a primary WIFI channel, a secondary WIFI channel, a primary cellular channel, and a secondary cellular channel.
  • the characteristic packet stream includes at least one of a download stream, a video stream, or a battle stream.
  • the above-mentioned first application is a non-sensitive application
  • the above-mentioned instruction is executed by the above-mentioned electronic device
  • the above-mentioned electronic device also performs the following steps:
  • the above-mentioned electronic device when executed by the above-mentioned electronic device, the above-mentioned electronic device is made to perform statistics on the packets of the characteristic packet flow of the first application, and the step of obtaining the second statistical result includes:
  • the above-mentioned first application is a sensitive application.
  • making the above-mentioned electronic device execute the step of obtaining the message of the first application on the first network channel includes:
  • the non-featured packet flow in the first application is carried on the first network channel.
  • the above-mentioned electronic device when executed by the above-mentioned electronic device, the above-mentioned electronic device also performs the following steps:
  • the path of the second network channel is deleted based on the first statistical result.
  • the step of causing the above-mentioned electronic device to delete the path of the second network channel based on the first statistical result includes:
  • the path of the second network channel is deleted after a preset fourth duration.
  • the above-mentioned electronic device when executed by the above-mentioned electronic device, the above-mentioned electronic device is made to detect the second network channel based on the service type of the first application, and the step of determining the second network channel based on the detection result includes:
  • the round-trip delay of the message of the second network channel is detected to obtain a detection result, wherein the detection result includes the round-trip delay of the message of each network channel;
  • a path of the second network channel is determined based on the detection result.
  • the detection result further includes a history record of each network channel.
  • the above-mentioned electronic device when executed by the above-mentioned electronic device, the above-mentioned electronic device is made to perform statistics on the packets in the characteristic packet flow, and the step of obtaining the first statistical result includes:
  • the electronic device further includes an acceleration sensor, and the scene is detected by the acceleration sensor.
  • the scene is obtained by detecting the motion of the electronic device in the vertical direction by the acceleration sensor.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is run on a computer, the computer executes the method described in the first aspect.
  • an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the above computer program is executed by a computer.
  • all or part of the program in the fourth aspect may be stored on a storage medium packaged with the processor, or part or all may be stored on a memory not packaged with the processor.
  • FIG. 1 is a schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of an embodiment of a channel switching method provided by the present application.
  • FIG. 4 is a schematic flowchart of another embodiment of the channel switching method provided by the present application.
  • FIG. 5a is a schematic diagram of a mobile phone desktop display provided by an embodiment of the present application.
  • Fig. 5b is a schematic diagram of the application interface provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of the application interface of the mobile phone using the main network speed channel provided by the embodiment of the present application;
  • FIGS. 7a-7c are schematic diagrams of stream switching provided by the embodiment of the present application.
  • Fig. 8a is an interactive schematic diagram of the non-sensitive service switching process provided by the embodiment of the present application.
  • Fig. 8b is an interactive schematic diagram of the switching process of sensitive services provided by the embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a heartbeat flow message of a voice flow provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of statistics of battle flow messages provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of the structure of the battle flow message provided by the embodiment of the present application.
  • FIG. 12 is a schematic diagram of an application interface of a mobile phone using a backup network channel provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, "plurality” means two or more.
  • mobile devices such as mobile phones are more and more widely used in people's daily life.
  • mobile payment and games can be performed through mobile phones.
  • the user's mobile phone will be connected to the wireless network.
  • the current wireless network is not enough to meet the needs of the business (for example, the signal of the mobile phone becomes poor, etc.), which will cause the business to run stagnant.
  • the user can open an acceleration channel to meet business needs.
  • the switching of the acceleration channel will bring a large delay, and it will also cause the service to freeze, which will bring a bad experience to the user.
  • the first device 10 may be a mobile terminal, a terminal device, a user equipment (User Equipment, UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal , terminal, wireless communication device, user agent or user device.
  • UE User Equipment
  • the first device 10 may be a station (STAION, ST) in the WLAN, may be a cellular phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, SIP) phone, a wireless local loop (Wireless Local Loop, WLL) station, a personal Digital processing (Personal Digital Assistant, PDA) equipment, handheld devices with wireless communication functions, computing equipment or other processing equipment connected to wireless modems, vehicle-mounted equipment, Internet of Vehicles terminals, computers, laptop computers, handheld communication equipment, Handheld computing devices, satellite radios, wireless modem cards, television set top boxes (Set Top Boxes, STBs), customer premises equipment (Customer Premise Equipment, CPEs) and/or other equipment used to communicate over wireless systems and next generation
  • a communication system for example, a mobile terminal in a 5G network or a mobile terminal in a public land mobile network (Public Land Mobile Network, PLMN) network that will evolve in the future, etc.
  • PLMN Public Land Mobile Network
  • the first device 10 may also be a wearable device.
  • Wearable devices can also be called wearable smart devices, which is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories.
  • Wearable devices are not only a hardware device, but also achieve powerful functions through software support, data interaction, and cloud interaction.
  • Generalized wearable smart devices include full-featured, large-sized, complete or partial functions without relying on smartphones, such as smart watches or smart glasses, and only focus on a certain type of application functions, which need to be used in conjunction with other devices such as smartphones , such as various smart bracelets and smart jewelry for physical sign monitoring.
  • the above-mentioned scenario of using the first device 10 to play online games is only an example, and is not enough to limit the embodiment of the present application.
  • it may also include using the first device to listen to online music, watch scenes such as video.
  • the first device 10 includes an application layer 11 , a service layer 12 , a policy layer 13 and a kernel layer 14 .
  • the first device 10 includes an application layer 11 , a service layer 12 , a policy layer 13 and a kernel layer 14 .
  • the application layer 11 may be used to provide various network applications, and the above network applications may be third-party applications or system applications, for example, network applications such as games, music, and video. This application does not specifically limit the types of network applications provided by the above application layer 11 .
  • the service layer 12 may include an environment detection component 121 , a network detection component 122 , a first path management component 123 , a first policy management component 124 and a channel and application quality assessment component 125 .
  • the environment detection component 121 can be used to detect the status of the application, for example, the status of the above application can include the status of application exit, application opening, application running, application installation and application uninstallation, etc. It can be understood that the above status is only an example It can also include more states, which will not be repeated here.
  • the network detection component 122 can be used to detect the opening state of the network channel.
  • the first path management component 123 can be used to be responsible for requesting/closing the network channel (for example, the main WIFI channel, the auxiliary WIFI channel, the main cellular channel and the auxiliary cellular channel, etc.), perceive the state change of the network channel, update the selection strategy of the network channel, Can also be used to store paths for multiple network channels.
  • the first policy management component 124 can generate different execution policies based on the input information. Exemplarily, the policy can be to enable the acceleration function of the network channel, or to enable traffic awareness (for example, to detect the traffic of the network channel), etc.
  • Channel and application quality assessment component 125 can be used to assess the quality of network channels.
  • the policy layer 13 may include a second path management component 131 , a second policy management component 132 and a traffic awareness component 133 .
  • the second path management component 131 can be used to update the selection of the network channel according to the policy change of the upper layer, trigger the quality detection of the network channel, dynamically select the optimal channel, and can also be used to store the paths of different network channels.
  • the path of the main network channel and the backup network channel can be stored.
  • the second policy management component 132 can be used to instruct switching of network channels.
  • the traffic sensing component 133 can be used to collect statistics on the reported traffic.
  • the kernel layer 14 may include a traffic reporting component 141 and a policy enforcement component 142 .
  • the traffic reporting component 141 may be used for collecting and reporting traffic information.
  • the policy enforcement component 142 can be used to perform network channel switching.
  • FIG. 2 shows a schematic structural diagram of an electronic device 100 , which may be the above-mentioned first device 10 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and A subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • 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, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled to the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface to realize the shooting function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193 , the display screen 194 , the wireless communication module 160 , the audio module 170 , the sensor module 180 and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100 , and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is configured to receive a charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 can receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 is charging the battery 142 , it can also provide power for electronic devices through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 to provide power for the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be disposed in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be set in the same device.
  • the wireless communication function of the electronic device 100 can be realized 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.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • 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 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • TD-SCDMA time-division code division multiple access
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 realizes the display function through 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 the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 193 , the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used for processing the data fed back by the camera 193 .
  • the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be located in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into image signals in standard RGB, YUV and other formats.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos in various encoding formats, for example: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity 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. Such as saving music, video and other files in the external memory card.
  • the internal memory 121 may be used to store computer-executable program codes including instructions.
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like.
  • the storage data area can store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.) and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the receiver 170B can be placed close to the human ear to receive the voice.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can put his mouth close to the microphone 170C to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 may be provided with two microphones 170C, which may also implement a noise reduction function in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions, etc.
  • the earphone interface 170D is used for connecting wired earphones.
  • the earphone interface 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a clamshell machine, the electronic device 100 can detect opening and closing of the clamshell according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 may measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F for distance measurement to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may 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 is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to make a call, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode.
  • the ambient light sensor 180L is used for sensing ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access to application locks, take pictures with fingerprints, answer incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to implement a temperature treatment strategy. For example, when the temperature reported by the temperature sensor 180J exceeds the threshold, the electronic device 100 may reduce the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from being shut down abnormally due to the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
  • the keys 190 include a power key, a volume key and the like.
  • the key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 can receive key input and generate key signal input related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used for connecting a SIM card.
  • the SIM card can be connected and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calling and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • FIG. 3 is a schematic flowchart of an embodiment of a channel switching method provided in an embodiment of the present application.
  • the channel switching method is applied to a first device 10, the first device 10 has multiple network channels, and the first device 10 runs a second An application, the first application is carried on the first network channel, the first application includes a plurality of message flows, including:
  • Step 301 in response to the monitored scene, detect the second network channel based on the service type of the first application, and determine the path of the second network channel based on the detection result.
  • the foregoing scenario may be an environment where the first device 10 is located, for example, the first device 10 is located in an environment with a poor network (eg, an elevator).
  • a poor network eg, an elevator
  • the first device 10 monitors the environment, in response to the above-mentioned monitored scene, the first device 10 can initiate a detection request of the second network channel, thereby pre-stored the backup network channel (that is, the second network channel ).
  • Step 302 acquire the message of the first application on the first network channel.
  • the first device 10 may acquire network information of the second network channel, where the network information may include a path of the second network channel.
  • the second network channel is an available network channel, so that when the first device 10 detects that the first network channel does not meet the service requirements, it can immediately switch to the second network channel, reducing the switching time. delay.
  • the packet flow of the first application may be further detected.
  • Step 303 determine the characteristic packet flow among the plurality of packet flows of the first application, perform statistics on the packets in the characteristic packet flow, obtain the first statistical result, and switch the characteristic packet flow to Second network channel.
  • the first device 10 can detect the packet flow of the first application in real time, and can identify a characteristic packet flow among multiple packet flows. Next, the packets in the characteristic packet flow can be statistically analyzed to obtain a first statistical result, wherein the first statistical result can be used to represent whether the quality of the characteristic packet flow is degraded, that is, whether it is necessary to perform switch.
  • the first device 10 After the first device 10 determines that the characteristic packet flow needs to be switched, it may switch the characteristic packet flow to the second network channel.
  • FIG. 4 is a schematic flowchart of another embodiment of the channel switching method provided by the embodiment of the present application, including:
  • Step 401 start a network application in response to a user's operation.
  • the user may perform an opening operation on the electronic device 100 to open a network application.
  • the user may click on the icon of the network application in the electronic device 100 .
  • the application layer 11 in the electronic device 100 starts a web application.
  • the aforementioned network applications may be network-type applications such as online games, online videos, and online music.
  • Fig. 5a is a schematic diagram of a desktop of a mobile phone. As shown in FIG. 5a, the user can click a video application icon on the desktop of the mobile phone to open a video application, thereby obtaining a schematic diagram of video display as shown in FIG. 5b.
  • Step 402 the environment detection component 121 detects that the network application is switched to the foreground or the network changes, and notifies the first policy management component 124 .
  • the environment detection component 121 in the service layer 120 in the electronic device 100 can continuously detect the state of the network application or the network environment.
  • a first notification message may be sent to the first policy management component 124, and the first notification message may be used to notify the first policy management component 124 that the network application has been switched to the foreground or that the network environment has changed.
  • the first notification message may also include the identity of the network application (for example, the identity of the network application may be a UID), and the identity may be used to identify the unique identity of the network application.
  • the identity identification of the above network application can be realized by the following code:
  • Step 403 the first policy management component 124 receives the first notification message sent by the environment detection component 121, and determines whether the current network application satisfies the condition for enabling acceleration.
  • the first policy management component 124 may determine from the first notification message that the network application has switched to the foreground. Next, the first policy management component 124 may further determine whether the network application is included in the preset application whitelist.
  • the first policy management component 124 can preset an application whitelist
  • the application whitelist can include multiple network applications
  • each network application can be identified by the above-mentioned identity
  • the application whitelist can be used to represent Accelerated web applications can be turned on.
  • the network applications in the preset application whitelist may include service types, for example, the service types of the network applications in the above preset application whitelist may all be sensitive, and the sensitive services may include delay-sensitive services, Packet loss rate-sensitive services, etc.
  • the network application in the first notification message is included in the preset application whitelist, it can be determined that the network application meets the conditions for enabling acceleration; if the network application in the first notification message is not included in the preset application whitelist, then It can be determined that the network application does not meet the condition for enabling acceleration.
  • Table 1 is a white list of network applications.
  • the current network application is not in the preset application whitelist, that is, the service type of the current network application is a non-sensitive service
  • the electronic device 100 detects that the main network channel is degraded, Other network channels with better quality can be further detected, so that the above-mentioned non-sensitive services can be directly switched to the network channel with better quality.
  • step 404 the first policy management component 124 sends a channel activation message to the second path management component 131, for enabling a network channel.
  • the first policy management component 124 may send a channel enablement message to the second path management component 131, wherein the channel enablement message is used to indicate that the second path management component 131 can Enable a network channel (for example, the main network channel).
  • step 405 the second path management component 131 requests the first path management component 123 for the path of the main network channel.
  • the second path management component 131 may send a main network channel request to the first path management component 123, wherein the main network channel request is used to request the main The path of the network channel.
  • the main network channel may be a main WIFI channel.
  • Step 406 the first path management component 123 sends the path of the main network channel to the second path management component 131 .
  • the first path management component 123 can pre-configure the paths of multiple network channels.
  • the multiple network channels can include a primary WIFI channel, a secondary WIFI channel, a primary cellular channel, and a secondary cellular channel, wherein the primary The WIFI channel and the auxiliary WIFI channel can work in the 2.4GHz frequency band or the 5GHz frequency band.
  • the main WIFI channel works in the 2.4GHz frequency band
  • the auxiliary WIFI channel works in the 5GHz frequency band
  • the main WIFI channel works in the 5GHz frequency band
  • the auxiliary WIFI channel works in the 5GHz frequency band.
  • the WIFI channel works in the 2.4GHz frequency band.
  • the main cellular channel and the auxiliary cellular channel can correspond to the operator's network.
  • the main cellular channel can use sim card 1 (the sim card 1 belongs to operator A), and the auxiliary cellular channel can use sim card 2 (the sim card 2 Attributable to operator B).
  • the priority of the main WIFI channel is higher than that of the other three channels. Therefore, the main network channel is usually the main WIFI channel.
  • the above-mentioned preset channels are only illustrative, and do not constitute a limitation to the embodiment of the present application, and in some embodiments, more channels may be included.
  • using the main WIFI channel as the main network channel is only a preferred solution, and does not constitute a limitation to the embodiment of the present application.
  • other network channels may also be selected as the main network channel.
  • the first path management component 123 After the first path management component 123 receives the main network channel request sent by the second path management component 131, it can select a network channel from the above-mentioned multiple network channels as the main network channel (for example, the main network channel is the main WIFI channel) ), and send the path of the main network channel to the second path management component 131.
  • the main network channel for example, the main network channel is the main WIFI channel
  • Step 407 the second path management component 131 stores the received path of the main network channel.
  • the second path management component 131 may store the path of the main network channel.
  • the path of the main network channel may be represented by WIFI1.
  • FIG. 6 is a schematic diagram of the effect after the mobile phone uses the main network channel. As shown in FIG. 6 , after the mobile phone obtains the path of the main network channel, it can use the main network channel to watch videos.
  • the current network application may include multiple streams (for example, video stream and audio stream), and the multiple streams may be carried on the above-mentioned main network channel.
  • Step 408 the first policy management component 124 sends a traffic detection request to the traffic perception component 133 .
  • the traffic detection request may be used to instruct the traffic sensing component 133 to start packet statistics of the network application on the main network channel.
  • the traffic detection request may include the identity (eg, UID) of the network application currently to be detected, and is used to request detection of the flow of the network application corresponding to the above-mentioned identity UID on the main network channel. It can be understood that the flow of the above network application may be in the form of a message.
  • step 408 may be performed simultaneously with step 404, or may be performed at any time after step 404, which is not specifically limited in this application.
  • Step 409 the traffic sensing component 133 sends a traffic reporting request to the traffic reporting component 141 .
  • the traffic sensing component 133 can send a traffic reporting request to the traffic reporting component 141, wherein the traffic reporting request can be used to instruct the traffic reporting component 141 on the current
  • the packet of the network application on the main network channel is detected, and the detected packet is reported.
  • the above traffic detection request may include the identity (eg UID) of the network application.
  • Step 410 the traffic reporting component 141 performs traffic detection, and reports the detected packets to the traffic sensing component 133 .
  • the traffic reporting component 141 may, according to the identity (such as UID) of the network application in the traffic reporting request, check the network information corresponding to the identity of the network application.
  • the packet of the application is detected, so that the packet of the network application on the main network channel can be obtained, and the packet of the detected network application can be reported to the traffic sensing component 133 .
  • the traffic reporting component 141 may call a component (for example, the Netfilter component of the Android system) to obtain the packets of the network application on the main network channel.
  • a component for example, the Netfilter component of the Android system
  • the above-mentioned Netfilter component is only an example, and does not constitute a limitation to the embodiment of the present application.
  • the detection of the above-mentioned packets can also be completed by other components.
  • the parameters of the above network channel can be implemented by the following code:
  • the above detected packets may be packets of one or more characteristic flows in the current network application, where the characteristic flow may be the most sensitive flow in the network application, that is, the flow that has a greater impact on the current network application big flow.
  • the quality of the network channel can be evaluated through the parameters of the above network channel.
  • step 411 the environment detection component 121 detects the scene where the electronic device 100 is located.
  • the foregoing scene may be a scene where the user is located, that is, a scene where the electronic device 100 is located.
  • the above scenario may be that the user is in an elevator.
  • the above elevator scenarios are only illustrative, and may also include other scenarios that may cause network changes, for example, on high-speed rail, in garages, and other scenarios.
  • the elevator ascends or descends, which will cause the user’s gravity to change.
  • the elevator ascends will cause overweight, and the elevator descends will cause weightlessness. Therefore, it can be detected by the acceleration sensor in the electronic device 100.
  • the acceleration sensor detects that the user is weightless or overweight, that is, the acceleration of the electronic device 100 in the vertical direction is detected, it can be determined that the user is in the elevator environment middle.
  • the environment detection component 121 detects that the user is in the elevator, it can send a scene change notification message to the first policy management component 124, wherein the scene change notification message is used to notify the first policy management component 124 of the user's current location.
  • the scene has changed (for example, the user enters the elevator), so that the first policy management component 124 can start the detection of the backup network channel.
  • the elevator will stop according to the needs of different users (for example, different users can click on different floors) during the process of ascending or descending, the elevator will continue to run in the vertical direction or stop and go The phenomenon. Since the electronic device 100 does not detect any horizontal movement during the above-mentioned elevator lifting process, it can still be determined that the electronic device 100 is in the elevator, wherein the above-mentioned horizontal movement can be detected by the acceleration sensor in the electronic device 100 get. For example, if acceleration in the horizontal direction is detected by the acceleration sensor, it can be determined that there is movement in the horizontal direction.
  • the electronic device 100 When the electronic device 100 detects that the electronic device 100 has an acceleration in the horizontal direction, that is, when the electronic device 100 moves horizontally, it can be determined that the user has got out of the elevator, in other words, the electronic device 100 has already got out of the elevator. At this time, there is no need to detect the backup network channel in advance, and there is no need to send a scene change notification message to the first policy management component 124, thereby saving power consumption of the electronic device 100 caused by the detection of the backup network channel.
  • the electronic device 100 may also determine whether the scene where the user is located changes by detecting the signal strength of the mobile network. For example, when the signal strength of the mobile network becomes weak, it can be determined that the user has entered a poor network environment. At this time, the electronic device 100 can determine that the scene has changed, and can send a scene change notification to the first policy management component 124 Message, used to detect the backup network channel in advance. When the signal strength of the mobile network becomes stronger, it can be determined that the user has entered a better network environment. At this time, there is no need to detect the backup network channel in advance, and there is no need to send a scene change notification message to the first policy management component 124 , so that the power consumption of the electronic device 100 caused by the detection of the backup network channel can be saved.
  • Step 412 the environment detection component 121 sends the scene change notification message to the first policy management component 124 .
  • the environment detection component 121 may send a scene change notification message to the first policy management component 124 .
  • Step 413 the first policy management component 124 forwards the scene change notification message indicating the scene change to the second path management component 131 .
  • Step 414 the second path management component 131 requests the first path management component 123 for a backup network channel.
  • a backup network channel can be selected in advance, thereby speeding up the channel switching speed and reducing the time delay brought by the channel switching to the service.
  • the second path management component 131 After the second path management component 131 receives the scene change notification message sent by the first policy management component 124, it can send a backup network channel request to the first path management component 123, wherein the backup network channel request can be used to request a Alternate network channel.
  • the above standby network channel request can also carry a label, which can be used to indicate the prediction of switching of the main network channel, and not actually switch.
  • the mobile phone has the capability of 4 network channels including main WIFI channel (eg WIFI1), auxiliary WIFI channel (eg WIFI2), main cellular channel (eg Mobile1) and auxiliary cellular channel (eg Mobile2).
  • main WIFI channel eg WIFI1
  • auxiliary WIFI channel eg WIFI2
  • main cellular channel eg Mobile1
  • auxiliary cellular channel eg Mobile2
  • stream A such as video stream
  • stream B such as audio stream
  • the mobile phone After the mobile phone receives the scene change notification, it can select a backup network channel in advance, wherein the backup network channel can be one of the above-mentioned auxiliary WIFI channel (such as WIFI2), the main cellular channel (such as Mobile1) and the secondary cellular channel (such as Mobile2). The best channel quality.
  • the backup network channel can be one of the above-mentioned auxiliary WIFI channel (such as WIFI2), the main cellular channel (such as Mobile1) and the secondary cellular channel (such as Mobile2).
  • WIFI2 auxiliary WIFI channel
  • the main cellular channel such as Mobile1
  • the secondary cellular channel such as Mobile2
  • the best channel quality After selecting one of the secondary WIFI channel (such as WIFI2), primary cellular channel (such as Mobile1) and secondary cellular channel (such as Mobile2) as a backup network channel (such as Mobile1 channel), the path of the Mobile1 channel can be to store.
  • the mobile phone finds that the quality of stream A does not meet the requirements through further message detection, it can only switch the above stream A to the standby network channel, that is, the Mobile1 channel.
  • the above-mentioned flow B can continue to be carried on the main network channel, that is, the WIFI channel, and the flow A can be carried on the backup network channel, that is, the Mobile1 channel.
  • the mobile phone when it finds that the quality of stream A does not meet the requirements through further message detection, it can switch both stream A and stream B to the standby network channel, that is, the Mobile1 channel. As shown in Fig. 7c, at this time, the above-mentioned stream A and stream B are both carried on the Mobile1 channel, and the WIFI1 channel is closed.
  • Fig. 8a is a channel switch triggering process for non-sensitive services.
  • the traffic sensing component 133 in the mobile phone receives the heartbeat flow message detected by the traffic reporting component 141 within the preset first time period, and through statistical analysis of the heartbeat flow message within the above preset first time period , you can determine whether the quality of the network channel has deteriorated.
  • the above-mentioned preset first duration may be set longer, for example, 5s.
  • the traffic perception component 133 determines that the quality of the current network channel is deteriorating, it can send a switching notification to the second policy management component 132 to trigger the switching of the network channel. For example, it can evaluate the quality of other network channels and send the current The non-sensitive business is switched to other network channels with the best quality.
  • Fig. 8b is a channel switch triggering process for sensitive services.
  • the second path management component 131 in the mobile phone may confirm that the scene has changed.
  • the second path management component 131 can request a backup network channel, so that when the quality of the characteristic stream of the network application deteriorates, it can switch to the backup network channel in time, so as to save switching time and improve user experience.
  • the traffic sensing component 133 in the mobile phone receives the heartbeat stream packets detected by the traffic reporting component 141 within the preset second time period, and can determine the current Quality of service for feature flows in network applications.
  • the preset second duration may be equal to the preset first duration, for example, 5s, or shorter than the preset first duration, for example, 3s.
  • a switching notification can be sent to the second policy management component 132 to trigger switching of the network channel, for example, the characteristic flow of the current network application can be switched to the above-mentioned standby network channel.
  • Step 415 the first path management component 123 receives the backup network channel request, and requests the activation status of each optional network channel.
  • the first path management component 123 can send a channel status request to the network detection component 122, wherein the channel status request can be used to request to obtain each The enabled state of the optional network channel.
  • the above enabling status may include available and unavailable.
  • the above available state may be used to indicate that the optional network channel can be enabled, and the above unavailable state may be used to indicate that the optional network channel cannot be enabled.
  • the optional network channel may include a secondary WIFI channel, a primary cellular channel, a secondary cellular channel, and the like.
  • Step 416 the network detection component 122 detects the enabling status of each optional network channel, and sends the enabling status of each optional network channel to the first path management component 123 .
  • the network detection component 122 may detect the enabling status of each optional network channel.
  • the network detection component 122 can be used to manage the switches of each optional network channel. When any optional network channel is opened, the optional network channel is in an available state, and when any optional network channel is closed , the optional network channel is unavailable. Therefore, after the network detection component 122 detects the activation status of all optional network channels requested by the first path management component 123 , it may send the activation status of all optional network channels to the first path management component 123 .
  • Step 417 the first path management component 123 requests the channel quality of each available network channel.
  • the first path management component 123 can select an available network channel (that is, an optional network channel in an available state), and can further send information to the channel and the application quality evaluation component.
  • an available network channel that is, an optional network channel in an available state
  • the channel evaluation request may be used to request to evaluate the quality of available network channels.
  • Step 418 the channel and application quality evaluation component 125 evaluates the quality of each available network channel, and sends the evaluation result to the first path management component 123 .
  • the channel and application quality evaluation component 125 may evaluate the quality of each available network channel according to the channel evaluation request.
  • the channel quality may include the channel delay, packet loss rate, bandwidth, rate, and the like.
  • the above evaluation may be an evaluation of the round-trip time delay (Round-Trip Time, RTT) of the available network channels, and the network channel with the smallest round-trip time delay is the best.
  • the channel quality can be evaluated in combination with the above-mentioned RTT and historical records, wherein the historical The records may include the historical receiving rate, the historical number of times when the channel quality is poor, etc., and the embodiment of the present application does not specifically limit the evaluation method of the above-mentioned channel quality.
  • the assessment result may be sent to the first path management component 123 .
  • Step 419 the first path management component 123 determines the backup network channel based on the evaluation result, and sends the path of the backup network channel to the second path management component 131 .
  • the first path management component 123 After the first path management component 123 receives the above-mentioned evaluation result, it can select the best available network channel as the backup network channel based on the above-mentioned evaluation result, and can send the path of the above-mentioned backup network channel to the first path management component. 123.
  • Step 420 the second path management component 131 receives and stores the path of the standby network channel sent by the first path management component 123.
  • the second path management component 131 may pre-store the path of the backup network channel. It can be understood that, since only a scene change is detected in step 411, that is to say, the current network may cause traffic jams, but the handover condition has not been met, and at this time, the electronic device 100 does not switch to The standby network channel, that is, the electronic device 100 is still using the main network channel.
  • the second path management component 131 may pre-store the path of the backup network channel.
  • the electronic device 100 does not switch to the standby network channel, that is, the electronic device 100 is still using the main network channel.
  • the electronic device 100 may switch the above feature stream from the main network channel to the standby network channel.
  • Step 421 the traffic reporting component 141 reports the traffic to the traffic sensing component 133 .
  • the traffic reporting component 141 can continuously detect packets of the current main network channel, and report the detected packets to the traffic sensing component 133 .
  • Step 422 the traffic sensing component 133 receives the packet reported by the traffic reporting component 141 , analyzes the packet, obtains the packet analysis result, and sends the packet analysis result to the second policy management component 132 .
  • the foregoing packets may be packets of various flows of network applications on the main network channel.
  • the traffic sensing component 133 may analyze the above packet.
  • the above packet analysis may be based on the characteristics of the packets to identify the characteristic flow, wherein the characteristic flow may be the most sensitive flow in the network application.
  • the characteristic flow may be the most sensitive flow in the network application.
  • take the Peace Elite game as an example.
  • the feature stream of the game can be a voice stream. That is to say, the voice stream has a relatively large impact on the game and is the most sensitive. When the quality of the voice stream is not good (for example, When the delay and packet loss rate do not meet the requirements), it will seriously affect the user's game experience.
  • the packet analysis result can be obtained, and the packet analysis result can be used to characterize whether the characteristic flow satisfies service requirements, for example, whether it meets the delay requirement or whether it meets the packet loss rate requirement. And the packet analysis result may be sent to the second policy management component 132 .
  • the identification of the packets of the above-mentioned voice stream can be realized by counting heartbeat packets.
  • the data packet characteristics of the voice stream can be represented by the following characteristics:
  • FIG. 9 is a schematic diagram of the heartbeat message of the voice stream of the above UDP protocol.
  • the packets of the voice stream can be counted, so that the time delay and/or packet loss rate of the packets of the voice stream can be obtained.
  • the packets of the voice stream within a preset time period may be counted.
  • a preset time period for example, 5s
  • a switch can be triggered to switch the above-mentioned voice stream to Switch to an alternate network channel.
  • the above example only uses games as an example for illustration. In specific applications, it may also include other network applications, such as Baidu Netdisk.
  • the feature stream of this network application is a download stream, that is, it can The packet of the download stream is found in the above packets, and the influencing factor of the packet of the download stream may be rate.
  • the above-mentioned network applications may also include social network applications such as WeChat, and the feature stream of the network application is a video stream, that is to say, the message of the video stream can be found in the above-mentioned message, and the impact of the message of the video stream Factors can be latency and/or packet loss.
  • the feature stream may also include a battle stream in a game.
  • Peace Elite by periodically counting the number of UDP packets, it can be judged whether the current packet flow is a battle flow.
  • the period used by Peace Elite is 500ms. Therefore, the total number of messages in the period can be counted to determine whether it is a battle flow. For example, if the total number of messages in the above-mentioned 500ms period is greater than 10, the message flow is a battle flow.
  • FIG. 10 is a schematic diagram of packet statistics of the battle flow of the UDP protocol. As shown in Figure 10, the horizontal axis is time, and the vertical axis is the total number of messages. Since the number of messages per second is basically kept at 30, it can be determined by calculation that there are 15 messages every 500 ms, and thus the message can be determined Streams are versus streams.
  • FIG. 11 is a schematic diagram of a heartbeat message of a battle flow of the UDP protocol.
  • the second policy management component 132 determines the handover based on the message analysis result, and requests to obtain the path of the standby network channel.
  • the second policy management component 132 may determine whether to perform channel switching according to the packet analysis result. In the specific implementation, if the characteristic stream of the current network application (for example, the voice stream in the game, the video stream in WeChat or the download stream of Baidu Netdisk) does not meet the requirements (for example, delay and/or packet loss rate) , it can be determined that channel switching is required. At this point, the second policy management component 132 can send a backup network channel path acquisition request to the second path management component 131 for obtaining the path of the backup network channel. For example, if the backup network channel is the main cell, the backup network channel The path of can be, for example, Mobile1.
  • the above path for requesting a backup network channel can be implemented by the following code:
  • the path of the above network channel (for example, the path can be represented by the device number of the network card or sim card) can be defined in the data structure, the code example is as follows:
  • sk_bound_dev_if is the device number of the switching target network card or target sim card. It can be understood that the message can be received through the above-mentioned network card or sim card, and the code for receiving the message can refer to the following example:
  • pktinfo is the received message
  • msg.flow_msg is the name of the message flow.
  • the first device 10 can delete the path of the backup network channel, thereby releasing resources, and also save power consumption of the first device 10.
  • the first device 10 may also delete the path of the backup network channel after a preset time period (for example, a preset third time period), so as to ensure that within the preset third time period, if the quality of the feature stream become worse, it can be switched to the backup network channel in time to avoid the inability to switch due to the deletion of the path of the backup network channel.
  • the wireless network is quite different. For example, when the electronic device 100 detects that the current network environment is poor, it can pull up a backup network. Next, when the electronic device 100 detects that the current service meets the service requirements and there is no need to switch (for example, the electronic device 100 enters a better network environment), the electronic device 100 can continue to use the current network without switching to the above-mentioned backup network Therefore, the electronic device 100 may only perform the detection of the backup network, for example, perform steps 415 to 420, so as to complete the detection of the backup network.
  • the electronic device 100 may also activate the backup network after the detection of the backup network is completed, and the activation operation may speed up the switching process, thereby saving the time delay of the switching. That is to say, when the electronic device 100 detects the current environment (for example, an elevator scene), it may only perform the detection of the backup network, or may perform the detection of the backup network and the activation of the backup network, and the above detection of the backup network Phase and activation of the standby network has not actually performed the handover. When the electronic device 100 detects that the current service cannot meet the service requirements, it may switch the current service (for example, one or more flows of the current service) to the activated standby network.
  • the current environment for example, an elevator scene
  • Step 424 the second policy management component 132 sends the path of the standby network channel to the second path management component 131 .
  • Step 425 the second policy management component 132 sends a channel switching instruction to the policy execution component 142 .
  • the second policy management component 132 can send a channel switching instruction to the policy execution component 142, wherein the channel switching instruction can be used to instruct policy execution
  • the component 142 switches the feature stream from the current main network channel to the standby network channel, so that the channel switching can be completed faster, the time delay caused by the channel switching can be reduced, and the user experience can be improved.
  • step 426 the policy enforcement component 142 performs channel switching.
  • the policy execution component 142 can switch the above-mentioned characteristic flow from the current main network channel to the standby network channel, that is, other flows of the above-mentioned network application It can continue to be carried and run on the main network channel, and the above feature stream can be carried and run on the backup network channel, so that the switching can be completed quickly, and the quality of services and user experience can be guaranteed.
  • the entire network application can be switched to the standby network channel, that is, the main network channel can be deactivated, and all streams of the network application can be carried on the standby network channel.
  • FIG. 12 is a schematic diagram of a mobile phone using a backup network channel. As shown in Figure 12, when the mobile phone receives the channel switching instruction, it can switch the video stream from the current main network channel to the backup network channel, and can use the backup network channel to watch the video to avoid video freeze.
  • the interface connection relationship between the modules shown in the embodiment of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the above-mentioned electronic devices include corresponding hardware structures and/or software modules for performing each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the example units and algorithm steps described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the embodiments of the present application.
  • the embodiment of the present application may divide the above-mentioned electronic equipment into functional modules according to the above-mentioned method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation.
  • Each functional unit in each embodiment of the embodiment of the present application may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage
  • the medium includes several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk, and other various media capable of storing program codes.

Landscapes

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

Abstract

本申请实施例提供一种通道切换方法、电子设备及存储介质,涉及通信技术领域,该方法包括:响应于监测到的场景,基于第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的路径;获取第一网络通道上第一应用的报文;在第一应用的多个报文流中确定特征报文流,对特征报文流中的报文进行统计,得到第一统计结果,基于第一统计结果将特征报文流切换至第二网络通道。本申请实施例提供的方法,能够提高网络通道的切换效率,进而可以保证应用的运行流畅度。

Description

通道切换方法、电子设备及存储介质
本申请要求于2021年6月29日提交中国专利局、申请号为202110729329.1、申请名称为“通道切换方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种通道切换方法、电子设备及存储介质。
背景技术
随着电子技术及互联网技术的快速发展,手机等移动设备在人们的日常生活中的应用越来越广,例如,可以通过手机进行移动支付及游戏等。为了保证常用业务(例如,游戏,通话、社交软件等业务)的正常运行,通常用户的手机都会连接无线网络。然而,在某些场景下,当前的无线网络不足以满足业务的需求(例如,手机信号变差等情况),会导致业务运行的卡顿。此时,用户可以开通加速通道,用于满足业务的需求。但是,该加速通道的切换会带来较大的时延,也会导致业务的卡顿,由此会给用户带来不好的体验。
发明内容
本申请实施例提供了一种通道切换方法、电子设备及存储介质,以提供一种从主网络通道切换至备用网络通道的方式,以提高切换的效率,提高用户的体验。
第一方面,本申请实施例提供了一种通道切换方法,应用于电子设备,该电子设备具有多个网络通道,该电子设备上运行有第一应用,该第一应用承载于第一网络通道,该第一应用包括多个报文流,包括:
响应于监测到的场景变化,基于第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的路径;其中,第一应用可以是游戏、音乐、视频等互联网应用。
获取第一网络通道上第一应用的报文;在第一应用的多个报文流中确定特征报文流,对特征报文流中的报文进行统计,得到第一统计结果,基于第一统计结果将特征报文流切换至第二网络通道。
本申请实施例中,由于场景变换可能会导致业务的卡顿,通过提前探测并存储备用网络链路,在确认识别到卡顿后直接切换到备用网络链路,减少了识别到切换之间的时间间隔,由此可以提高通道切换的效率。
其中一种可能的实现方式中,网络通道至少包括主WIFI通道、辅WIFI通道、主蜂窝通道及辅蜂窝通道。
其中一种可能的实现方式中,特征报文流包括下载流、视频流或对战流中的至少一种。
其中一种可能的实现方式中,该第一应用为非敏感类应用,上述方法还包括:
对第一应用的特征报文流的报文进行统计,得到第二统计结果,基于第二统计结果确定第一网络通道的质量;
基于第一网络通道的质量,对第二网络通道进行探测,基于探测结果确定第二网络通道的路径;
将特征报文流切换至第二网络通道。
本申请实施例中,由于非敏感类应用对切换的时刻并不敏感,因此,无需提前存储备用网络的路径,只需在探测到网络通道质量变差后,直接探测其他网络通道中较好的网络通道,并直接将当前应用切换到较好的网络通道上,由此可以提高切换的灵活度。
其中一种可能的实现方式中,对第一应用的特征报文流的报文进行统计,得到第二统计结果包括:
对在预设第一时长内接收到的第一应用的特征报文流的报文进行统计,得到第二统计结果。
本申请实施例中,可以通过较长的预设第一时长,获取足够的报文,由此可以教准确的确定当前的主网络通道的质量。
其中一种可能的实现方式中,上述第一应用为敏感类应用。
其中一种可能的实现方式中,获取第一网络通道上第一应用的报文包括:
在预设第二时长内获取第一网络通道上第一应用的报文。
本申请实施例中,通过设置较短的或和预设第一时长等长的预设第二时长可以快速确定是否需要切换。
其中一种可能的实现方式中,基于第一统计结果将特征报文流切换至第二网络通道之后,上述方法包括:
第一应用中的非特征报文流承载于第一网络通道。
本申请实施例中,仅将特征报文流进行切换,其他非特征报文流仍承载于主网络通道,由此可以提高切换效率。
其中一种可能的实现方式中,基于第一统计结果将特征报文流切换至第二网络通道之后,上述方法包括:
将第一应用中的非特征报文流切换至第二网络通道,并关闭第一网络通道。
本申请实施例中,将第一应用的所有报文流切换至备用网络通道,可以提高所有报文流的质量,进而可以提升用户感受。
其中一种可能的实现方式中,该方法还包括:
基于第一统计结果删除第二网络通道的路径。
本申请实施例中,当对特征报文流进行统计后发现,该特征报文流的质量满足要求,此时,可以删除第二网络通道的路径,由此可以节省资源,并可以减少电子设备的功耗。
其中一种可能的实现方式中,基于第一统计结果删除第二网络通道的路径包括:
基于第一统计结果,在预设第四时长后删除第二网络通道的路径。
本申请实施例中,通过预设第四时长,可以保证在该预设第四时长内,如果特征 流的质量变差,可以及时的切换至备用网络通道,避免因删除上述备用网络通道的路径导致无法切换。
其中一种可能的实现方式中,基于第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的路径包括:
基于第一应用的业务类型对第二网络通道的报文的往返时延进行探测,得到探测结果,其中,探测结果包括每条网络通道的报文的往返时延;
基于探测结果确定第二网络通道的路径。
本申请实施例中,通过计算网络通道的往返时延,可以快速获取网络通道的质量。
其中一种可能的实现方式中,探测结果还包括每条网络通道的历史记录。
本申请实施例中,通过结合往返时延和历史记录,可以更准确的获取网络通道的质量,由此可以更准确的选取较佳的备用网络通道。
其中一种可能的实现方式中,对特征报文流中的报文进行统计,得到第一统计结果包括:
对特征报文流中的报文的时延或丢包率进行统计,得到第一统计结果,其中,第一统计结果用于表征特征报文流是否满足预设时延要求或预设丢包率要求。
本申请实施例中,通过计算特征报文流的时延或丢包率,可以快速获取特征报文流的质量,由此可以快速的做出切换决策。
其中一种可能的实现方式中,电子设备还包括加速度传感器,场景由加速度传感器探测获得。
其中一种可能的实现方式中,场景由加速度传感器探测电子设备在垂直方向上的运动获得。
第二方面,本申请实施例提供一种电子设备,包括:
存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,上述电子设备具有多个网络通道,上述电子设备上运行有第一应用,上述第一应用承载于第一网络通道,上述第一应用包括多个报文流,当上述电子设备从上述存储器中读取上述指令,以使得上述电子设备执行以下步骤:
响应于监测到的场景变化,基于第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的路径;
获取第一网络通道上第一应用的报文;
在第一应用的多个报文流中确定特征报文流,对特征报文流中的报文进行统计,得到第一统计结果,基于第一统计结果将特征报文流切换至第二网络通道。
其中一种可能的实现方式中,网络通道至少包括主WIFI通道、辅WIFI通道、主蜂窝通道及辅蜂窝通道。
其中一种可能的实现方式中,特征报文流包括下载流、视频流或对战流中的至少一种。
其中一种可能的实现方式中,上述第一应用为非敏感类应用,上述指令被上述电子设备执行时,使得上述电子设备还执行如下步骤:
对第一应用的特征报文流的报文进行统计,得到第二统计结果,基于第二统计结果确定第一网络通道的质量;
基于第一网络通道的质量,对第二网络通道进行探测,基于探测结果确定第二网络通道的路径;
将特征报文流切换至第二网络通道。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备执行对所述第一应用的特征报文流的报文进行统计,得到第二统计结果的步骤包括:
对在预设第一时长内接收到的所述第一应用的特征报文流的报文进行统计,得到第二统计结果。
其中一种可能的实现方式中,上述第一应用为敏感类应用。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备执行获取所述第一网络通道上所述第一应用的报文的步骤包括:
在预设第二时长内获取第一网络通道上第一应用的报文。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备执行基于第一统计结果将特征报文流切换至第二网络通道的步骤之后,还执行如下步骤:
第一应用中的非特征报文流承载于第一网络通道。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备执行基于第一统计结果将特征报文流切换至第二网络通道的步骤之后,还执行如下步骤:
将第一应用中的非特征报文流切换至第二网络通道,并关闭第一网络通道。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备还执行如下步骤:
基于第一统计结果删除第二网络通道的路径。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备执行基于第一统计结果删除第二网络通道的路径的步骤包括:
基于第一统计结果,在预设第四时长后删除第二网络通道的路径。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备执行基于第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的步骤包括:
基于第一应用的业务类型对第二网络通道的报文的往返时延进行探测,得到探测结果,其中,探测结果包括每条网络通道的报文的往返时延;
基于探测结果确定第二网络通道的路径。
其中一种可能的实现方式中,上述探测结果还包括每条网络通道的历史记录。
其中一种可能的实现方式中,上述指令被上述电子设备执行时,使得上述电子设备执行对特征报文流中的报文进行统计,得到第一统计结果的步骤包括:
对特征报文流中的报文的时延或丢包率进行统计,得到第一统计结果,其中,第一统计结果用于表征特征报文流是否满足预设时延要求或预设丢包率要求。
其中一种可能的实现方式中,电子设备还包括加速度传感器,场景由加速度传感器探测获得。
其中一种可能的实现方式中,场景由加速度传感器探测电子设备在垂直方向上的 运动获得。
第三方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。
第四方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面所述的方法。
在一种可能的设计中,第四方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为本申请实施例提供的电子设备的软件架构示意图;
图2为本申请实施例提供的电子设备的硬件结构示意图;
图3为本申请提供的通道切换方法一个实施例的流程示意图;
图4为本申请提供的通道切换方法另一个实施例的流程示意图;
图5a为本申请实施例提供的手机桌面显示示意图;
图5b为本申请实施例提供的应用界面示意图;
图6为本申请实施例提供的手机使用主网络速通道的应用界面示意图;
图7a-图7c为本申请实施例提供的流切换示意图;
图8a为本申请实施例提供的非敏感类业务切换流程交互示意图;
图8b为本申请实施例提供的敏感类业务切换流程交互示意图;
图9为本申请实施例提供的语音流的心跳流报文结构示意图;
图10为本申请实施例提供的对战流报文统计示意图;
图11为本申请实施例提供的对战流报文结构示意图;
图12为本申请实施例提供的手机使用备用网络通道的应用界面示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
随着电子技术及互联网技术的快速发展,手机等移动设备在人们的日常生活中的应用越来越广,例如,可以通过手机进行移动支付及游戏等。为了保证常用业务(例如,游戏,通话、社交软件等业务)的正常运行,通常用户的手机都会连接无线网络。然而,在某些场景下,当前的无线网络不足以满足业务的需求(例如,手机信号变差等情况),会导致业务运行的卡顿。此时,用户可以开通加速通道,用于满足业务的需求。但是,该加速通道的切换会带来较大的时延,也会导致业务的卡顿,由此会给用户 带来不好的体验。
为了解决上述问题,本申请实施例提出了一种通道切换方法,上述通道切换方法应用于第一设备10。其中,第一设备10可以是移动终端、终端设备、用户设备(User Equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。第一设备10可以是WLAN中的站点(STAION,ST),可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、车联网终端、电脑、膝上型计算机、手持式通信设备、手持式计算设备、卫星无线设备、无线调制解调器卡、电视机顶盒(Set Top Box,STB)、用户驻地设备(Customer Premise Equipment,CPE)和/或用于在无线系统上进行通信的其它设备以及下一代通信系统,例如,5G网络中的移动终端或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)网络中的移动终端等。该第一设备10还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,如智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。
可以理解的是,上述使用第一设备10打联网游戏的场景仅为示例性说明,并不够成对本申请实施例的限定,在一些实施例中,还可以包括使用第一设备听网络音乐、观看视频等场景。
接着,结合图1对上述第一设备10的系统框架图进行说明。如图1所示,第一设备10包括应用层11、服务层12、策略层13及内核层14。其中,
应用层11可以用于提供多种网络应用,上述网络应用可以是第三方应用,也可以是系统应用,例如,游戏、音乐、视频等网络应用。本申请对上述应用层11提供的网络应用的类型不做特殊限定。
服务层12可以包括环境探测组件121、网络探测组件122、第一路径管理组件123、第一策略管理组件124及通道及应用质量评估组件125。其中,环境探测组件121可以用于对应用的状态进行探测,例如上述应用的状态可以包括应用退出、应用打开、应用运行、应用安装及应用卸载等状态,可以理解的是,上述状态仅为示例性说明,还可以包括更多的状态,在此不再赘述。网络探测组件122可以用于探测网络通道的开启状态。第一路径管理组件123可以用于负责请求/关闭网络通道(例如,主WIFI通道,辅WIFI通道,主蜂窝通道及辅蜂窝通道等),感知网络通道的状态变化,更新网络通道的选取策略,还可以用于存储多条网络通道的路径。第一策略管理组件124可以基于输入信息生成不同的执行策略,示例性的,该策略可以是启用网络通道的加速功能,也可以是启动流量感知(例如,对网络通道的流量进行探测)等。通道及应 用质量评估组件125可以用于评估网络通道的质量。
策略层13可以包括第二路径管理组件131、第二策略管理组件132及流量感知组件133。其中,第二路径管理组件131可以用于根据上层的策略变化更新网络通道的选取,触发网络通道质量探测,动态选取最优通道,还可以用于存储不同的网络通道的路径,示例性的,可以存储主网络通道及备用网络通道的路径。第二策略管理组件132可以用于指示网络通道的切换。流量感知组件133可以用于对上报的流量进行统计。
内核层14可以包括流量上报组件141及策略执行组件142。其中,流量上报组件141可以用于对流量信息的收集及上报。策略执行组件142可以用于执行网络通道的切换。
下面结合图2首先介绍本申请以下实施例中提供的示例性电子设备。图2示出了电子设备100的结构示意图,该电子设备100可以是上述第一设备10。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated  circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明, 并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集 成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图 像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A
的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传 感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro  SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
图3为本申请实施例提供的通道切换方法一个实施例的流程示意图,该通道切换方法应用于第一设备10,该第一设备10具有多个网络通道,该第一设备10上运行有第一应用,该第一应用承载于第一网络通道,该第一应用包括多个报文流,包括:
步骤301,响应于监测到的场景,基于第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的路径。
具体地,上述场景可以是第一设备10所处的环境,例如,第一设备10处在一个网络较差的环境(例如,电梯)。当第一设备10监测到所处的环境时,响应于上述监测到的场景,第一设备10可以发起第二网络通道的探测请求,由此可以预先存储备用网络通道(也就是第二网络通道)。
步骤302,获取第一网络通道上第一应用的报文。
具体地,通过对第二网络通道的探测,第一设备10可以获取第二网络通道的网络信息,其中,该网络信息可以包括第二网络通道的路径。可以理解的是,该第二网络通道是可用的网络通道,由此可以使得第一设备10在监测到第一网络通道不满足业务要求时,可以立即切换到第二网络通道,减少切换的时延。
当存储上述第二网络通道的路径后,可以进一步探测第一应用的报文流。
步骤303,在第一应用的多个报文流中确定特征报文流,对特征报文流中的报文进行统计,得到第一统计结果,基于第一统计结果将特征报文流切换至第二网络通道。
具体地,第一设备10可以实时探测第一应用的报文流,并可以在多个报文流中识别出特征报文流。接着,可以对特征报文流中的报文进行统计分析,得到第一统计结果,其中,该第一统计结果可以用于表征上述特征报文流是否质量变差,也就是说,是否需要进行切换。
当第一设备10确定上述特征报文流需要切换后,可以将上述特征报文流切换至第二网络通道。
接着,通过图4对上述通道切换方法进行示例性说明,图4为本申请实施例提供的通道切换方法另一个实施例的流程示意图,包括:
步骤401,响应于用户的操作,启动网络应用。
具体地,用户可以在电子设备100中进行打开操作,以打开一个网络应用。示例性的,用户可以在电子设备100中点击网络应用的图标。响应于用户的操作,电子设备100中的应用层11启动网络应用。可以理解的是,上述示例仅示例性的示出了通过点击方式启动网络应用的场景,并不构成对本申请实施例的限定,在一些实施例中,也可以通过其他操作(例如,双击、滑动等操作)启动网络应用。上述网络应用可以是联机游戏、在线视频及在线音乐等网络类型的应用。
图5a为手机桌面示意图。如图5a所示,用户可以在手机桌面点击视频应用图标,以打开一个视频应用,由此可以得到如图5b所示的视频显示示意图。
步骤402,环境探测组件121探测到网络应用切换到前台或网络发生变化,通知第一策略管理组件124。
具体地,电子设备100中的服务层120中的环境探测组件121可以持续对上述网络应用的状态或网络的环境进行探测,当环境探测组件121探测到任一网络应用切换到前台或网络的环境发生变化后,可以发送第一通知消息给第一策略管理组件124,该第一通知消息可以用于通知第一策略管理组件124网络应用已切换到前台或网络的环境已发生变化。可以理解的是,上述第一通知消息中还可以包括该网络应用的身份标识(例如,该网络应用的身份标识可以是UID),该身份标识可以用于标识网络应用的唯一身份。
示例性的,上述网络应用的身份标识可以通过如下代码实现:
Figure PCTCN2022072713-appb-000001
步骤403,第一策略管理组件124接收环境探测组件121发送的第一通知消息,判断当前网络应用是否满足开启加速的条件。
具体地,当第一策略管理组件124接收环境探测组件121发送的第一通知消息后,可以从第一通知消息中确定该网络应用已切换到前台。接着,第一策略管理组件124可以进一步确定该网络应用是否包含在预设应用白名单内。
在具体实现时,第一策略管理组件124中可以预设应用白名单,该应用白名单可以包括多个网络应用,每个网络应用可以通过上述身份标识进行标识,该应用白名单可以用于表征可以开启加速的网络应用。其中,上述预设应用白名单中的网络应用可以包括业务类型,例如,上述预设应用白名单中的网络应用的业务类型都可以是敏感类,该敏感类业务可以包括时延敏感类业务、丢包率敏感类业务等。当通过对第一通知消息中的网络应用的身份标识与预设应用白名单中的网络应用的身份标识的比对,可以确定第一通知消息中的网络应用是否包含在预设应用白名单中。若第一通知消息中的网络应用包含在预设应用白名单中,则可以确定该网络应用满足开启加速的条件,若第一通知消息中的网络应用不包含在预设应用白名单中,则可以确定该网络应用不满足开启加速的条件。
示例性的,表1为网络应用的白名单。
表1
应用名称 特征流类型 通道质量参数
百度网盘 下载流 速率
微信 视频流 时延/丢包
游戏 对战流 时延/丢包
可以理解的是,若当前的网络应用不在上述预设应用白名单中,也就是说,当前的网络应用的业务类型为非敏感类务,则电子设备100在探测到主网络通道变差时,可以进一步探测其他质量较好的网络通道,由此可以直接将上述非敏感类业务切换到质量较好的网络通道上。
步骤404,第一策略管理组件124向第二路径管理组件131发送通道启用消息,用于启用一条网络通道。
具体地,若第一策略管理组件124确定当前网络应用满足开启加速的条件,则可以向第二路径管理组件131发送通道启用消息,其中,该通道启用消息用于指示第二路径管理组件131可以启用一条网络通道(例如,主网络通道)。
步骤405,第二路径管理组件131向第一路径管理组件123请求主网络通道的路径。
具体地,当第二路径管理组件131接收到第一策略管理组件124发送的通道启用消息后,可以向第一路径管理组件123发送主网络通道请求,其中,该主网络通道请求用于请求主网络通道的路径。示例性的,该主网络通道可以是主WIFI通道。
步骤406,第一路径管理组件123将主网络通道的路径发送给第二路径管理组件131。
具体地,第一路径管理组件123可以预先配置多条网络通道的路径,示例性的,该多条网络通道可以包括主WIFI通道、辅WIFI通道、主蜂窝通道及辅蜂窝通道,其中,上述主WIFI通道和辅WIFI通道可以工作在2.4GHz频段或5GHz频段,示例性的,若主WIFI通道工作在2.4GHz频段,则辅WIFI通道工作在5GHz频段;若主WIFI通道工作在5GHz频段,则辅WIFI通道工作在2.4GHz频段。此外,主蜂窝通道和辅蜂窝通道可以和运营商网络对应,例如,主蜂窝通道可以使用sim卡1(该sim卡1归属于运营商A),辅蜂窝通道可以使用sim卡2(该sim卡2归属于运营商B)。在通常情况下,主WIFI通道的优先级高于其余三条通道,因此,主网络通道通常为主WIFI通道。可以理解的是,上述预置通道仅是示例性说明,并不构成对本申请实施例的限定,在一些实施例中,还可以包括更多的通道。此外,将主WIFI通道作为主网络通道也只是优选方案,并不构成对本申请实施例的限定,在一些实施例中,也可以选取其他网络通道作为主网络通道。
当第一路径管理组件123接收到第二路径管理组件131发送的主网络通道请求后,可以在上述多条网络通道中选取一条网络通道作为主网络通道(例如,该主网络通道为主WIFI通道),并将该主网络通道的路径发送给第二路径管理组件131。
步骤407,第二路径管理组件131存储接收到的主网络通道的路径。
具体地,当第二路径管理组件131接收到第一路径管理组件123发送的主网络通道的路径后,可以将该主网络通道的路径进行存储。示例性的,该主网络通道的路径可以用WIFI1表征。
图6为手机使用主网络通道后的效果示意图。如图6所示,当手机获取到主网络通道的路径后,可以使用主网络通道进行视频的观看。
可以理解的是,当前的网络应用(例如,图6中的视频应用)可以包括多个流(例 如,视频流及音频流),该多个流可以承载在上述主网络通道上。
步骤408,第一策略管理组件124向流量感知组件133发送流量探测请求。
具体地,该流量探测请求可以用于指示流量感知组件133启动主网络通道上的网络应用的报文统计。其中,该流量探测请求可以包括当前待探测的网络应用的身份标识(例如UID),用于请求对该主网络通道上的与上述身份标识UID对应的网络应用的流进行探测。可以理解的是,上述网络应用的流可以是报文的形式。
需要说明的是,本步骤408可以与步骤404同时执行,也可以在步骤404之后的任一时刻执行,本申请对此不做特殊限定。
步骤409,流量感知组件133向流量上报组件141发送流量上报请求。
具体地,当流量感知组件133收到第一策略管理组件124发送的流量探测请求后,可以向流量上报组件141发送流量上报请求,其中,该流量上报请求可以用于指示流量上报组件141对当前主网络通道上的网络应用的报文进行探测,并将探测到的报文进行上报。可以理解的是,上述流量探测请求可以包含网络应用的身份标识(例如UID)。
步骤410,流量上报组件141进行流量探测,并将探测到的报文上报给流量感知组件133。
具体地,当流量上报组件141接收到上述流量感知组件133发送的流量上报请求后,可以根据上述流量上报请求中的网络应用的身份标识(例如UID),对与网络应用的身份标识对应的网络应用的报文进行探测,由此可以得到主网络通道上网络应用的报文,并可以将上述探测到的网络应用的报文上报给流量感知组件133。
在具体实现时,上述流量上报组件141可以调用组件(例如,安卓系统的Netfilter组件)获取上述主网络通道上的网络应用的报文。可以理解的是,上述Netfilter组件仅为示例性说明,并不构成对本申请实施例的限定,在一些实施例中,也可以通过其他组件完成上述报文的探测。
示例性的,上述网络通道的参数可以通过如下代码实现:
typedef struct{
bool available;
bool slowDevForbbiden;
uint64_t qoeBadTimeStamp;
uint64_t chQoeBadStartTime;
uint32_t rcvRate;
}
可以理解的是,上述探测的报文可以是当前网络应用中一个或多个特征流的报文,其中,该特征流可以是网络应用中敏感性最高的流,也就是对当前网络应用影响较大的流。此外,通过上述网络通道的参数可以对网络通道的质量进行评估。
步骤411,环境探测组件121探测到电子设备100所处的场景。
具体地,上述场景可以是用户所处的场景,也就是电子设备100所处的场景。示例性的,上述场景可以是用户正处于电梯中。可以理解的是,上述电梯场景仅为示例性说明,还可以包括其他会引起网络变化的场景,例如,在高铁上,在车库等场景。现以电梯场景为例进行说明,当用户进入电梯后,电梯上升或下降,会导致用户的重 力发生变化,例如,电梯上升会引起超重,电梯下降会引起失重。因此,可以通过电子设备100中的加速度传感器进行探测,当加速度传感器探测到用户处于失重或超重时,也就是说,探测到电子设备100在垂直方向的加速度,由此可以确定用户正处于电梯环境中。此时,若环境探测组件121探测到用户正处于电梯中,则可以向第一策略管理组件124发送场景变化通知消息,其中,该场景变化通知消息用于通知第一策略管理组件124用户所处的场景发生了变化(例如,用户进入了电梯),由此可以使得第一策略管理组件124启动备用网络通道的探测。
此外,由于电梯在上升或下降过程中,会根据不同的用户的需求(例如,不同的用户可以点按不同的楼层)进行停靠,因此,电梯会出现在垂直方向上持续运行或走走停停的现象。由于在上述电梯升降过程中,电子设备100没有探测到水平方向的运动,因此,仍可以确定该电子设备100处于电梯中,其中,上述水平方向的运动可以通过电子设备100中的加速度传感器进行探测获得。例如,通过上述加速度传感器探测到有水平方向的加速度,则可以确定有水平方向的运动。
当电子设备100探测到电子设备100有水平方向的加速度,也就是说,电子设备100发生水平运动时,可以确定用户出了电梯,换句话说,就是该电子设备100已经出了电梯。此时,可以无需提前进行备用网络通道的检测,也就无需向第一策略管理组件124发送场景变化通知消息,由此可以节省电子设备100因备用网络通道的探测带来的电量消耗。
可选地,电子设备100也可以通过检测移动网络的信号强度的强弱,确定用户所处场景是否发生变化。例如,当移动网络的信号强度变弱,则可以确定用户进入了一个较差的网络环境,此时,电子设备100可以确定场景发生了变化,并可以向第一策略管理组件124发送场景变化通知消息,用于提前进行备用网路通道的探测。当移动网络的信号强度变强,则可以确定用户进入了一个较好的网络环境,此时,可以无需提前进行备用网络通道的检测,也就无需向第一策略管理组件124发送场景变化通知消息,由此可以节省电子设备100因备用网络通道的探测带来的电量消耗。
步骤412,环境探测组件121将场景变化通知消息发送给第一策略管理组件124。
具体地,当环境探测组件121探测到场景变化后,可以将场景变化通知消息发送给第一策略管理组件124。
步骤413,第一策略管理组件124将指示场景变化的场景变化通知消息转发给第二路径管理组件131。
步骤414,第二路径管理组件131向第一路径管理组件123请求备用网络通道。
具体地,由于在电梯中通常信号都较差,而在进电梯后再进行通道的选择并切换会造成业务较大的时延,导致用户的体验变差。因此,在探测到用户进入到电梯时,可以预先选取一条备用网络通道,由此可以加快通道切换的速度,减少通道切换给业务带来的时延。
当第二路径管理组件131接收到上述第一策略管理组件124发送的场景变化通知消息后,可以向第一路径管理组件123发送备用网络通道请求,其中,该备用网络通道请求可以用于请求一条备用网络通道。
可选地,上述备用网络通道请求还可以携带标签,该标签可以用于指示对主网络 通道的切换的预测,并不真正进行切换。
现结合图7a-7c,以手机为例对上述备用网络通道的选取进行说明。如图7a所示,手机具有主WIFI通道(例如WIFI1)、辅WIFI通道(例如WIFI2)、主蜂窝通道(例如Mobile1)及辅蜂窝通道(例如Mobile2)等4条网络通道的能力。假设手机当前在WIFI1通道(主网络通道)运行一个网络应用(例如微信),该网络应用包括流A(例如视频流)和流B(例如音频流)。当手机接收到场景变化通知后,可以提前选取备用网络通道,其中,该备用网络通道可以是上述辅WIFI通道(例如WIFI2)、主蜂窝通道(例如Mobile1)及辅蜂窝通道(例如Mobile2)中的通道质量最好的一条。当选取上述辅WIFI通道(例如WIFI2)、主蜂窝通道(例如Mobile1)及辅蜂窝通道(例如Mobile2)中的一条网络通道作为备用网络通道(例如,Mobile1通道)后,可以将该Mobile1通道的路径进行存储。
当手机通过进一步报文探测,发现流A的质量已经不满足需求,此时,可以仅将上述流A切换到备用网络通道,也就是Mobile1通道上。如图7b所示,此时,上述流B可以继续承载在主网络通道,也就是WIFI通道上,而流A可以承载在备用网络通道,也就是Mobile1通道上。
需要说明的是,上述示例仅示例性的示出了一条流进行切换的场景,并不构成对本申请实施例的限定,在一些实施例中,也可以包含多条流进行切换的场景。
可选地,当手机通过进一步报文探测,发现流A的质量已经不满足需求,此时,可以将上述流A及流B都切换到备用网络通道,也就是Mobile1通道上。如图7c所示,此时,上述流A及流B都承载在Mobile1通道上,WIFI1通道关闭。
接着,结合图8a和图8b,以手机为例对通道切换的触发条件进行说明。图8a为非敏感类业务的通道切换触发过程。如图8a所示,手机中的流量感知组件133在预设第一时长内接收流量上报组件141探测到的心跳流报文,通过对上述预设第一时长内的心跳流报文的统计分析,可以确定网络通道质量的是否变差。其中,由于当前业务是非敏感类业务,因此,上述预设第一时长可以设置的较长,例如5s。当流量感知组件133确定当前的网络通道质量变差后,可以发送切换通知给第二策略管理组件132,以触发网络通道的切换,例如,可以通过对其他网络通道的质量进行评估,并将当前的非敏感类业务切换到质量最优的其他网络通道上。
图8b为敏感类业务的通道切换触发过程。如图8b所示,手机中的第二路径管理组件131接收到第一策略管理组件124发送的场景变化通知消息后,可以确认场景发生变化。此时,该第二路径管理组件131可以请求备用网络通道,以便在网络应用的特征流质量变差时,可以及时切换到上述备用网络通道,以节省切换的时间,提升用户的感受。接着,手机中的流量感知组件133在预设第二时长内接收流量上报组件141探测到的心跳流报文,通过对上述预设第二时长内的心跳流报文的统计分析,可以确定当前网络应用中特征流的业务质量。其中,上述预设第二时长可以和预设第一时长等长,例如5s,也可以比预设第一时长设置的短,例如3s。当确定特征流的业务质量变差时,可以发送切换通知给第二策略管理组件132,以触发网络通道的切换,例如,可以将当前网络应用的特征流切换到上述备用网络通道上。
步骤415,第一路径管理组件123接收备用网络通道请求,请求各可选网络通道 的启用状态。
具体地,当第一路径管理组件123接收到上述第二路径管理组件131发送的备用网络通道请求后,可以向网络探测组件122发送通道状态请求,其中,该通道状态请求可以用于请求获得各可选网络通道的启用状态。可以理解的是,上述启用状态可以包括可用及不可用。上述可用状态可以用于表征该可选网络通道可以启用,上述不可用状态可以用于表征该可选网络通道禁止启用。该可选网络通道可以包括辅WIFI通道、主蜂窝通道及辅蜂窝通道等。
步骤416,网络探测组件122探测各可选网络通道的启用状态,并向第一路径管理组件123发送各可选网络通道的启用状态。
具体地,当网络探测组件122接收到第一路径管理组件123发送的通道状态请求后,可以检测各可选网络通道的启用状态。在具体实现时,该网络探测组件122可以用于管理各可选网络通道的开关,当任一可选网络通道开启后,该可选网络通道处于可用状态,当任一可选网络通道关闭后,该可选网络通道处于不可用状态。因此,当网络探测组件122检测到第一路径管理组件123请求的所有可选网络通道的启用状态后,可以将上述所有可选网络通道的启用状态发送给第一路径管理组件123。
步骤417,第一路径管理组件123请求各可用网络通道的通道质量。
具体地,当第一路径管理组件123接收到各可选网络通道的启用状态后,可以选取可用网络通道(也就是处于可用状态的可选网络通道),并可以进一步向通道及应用质量评估组件125发送通道评估请求,其中,该通道评估请求可以用于请求评估可用网络通道的质量。
步骤418,通道及应用质量评估组件125对各可用网络通道的质量进行评估,并将评估结果发送给第一路径管理组件123。
具体地,当通道及应用质量评估组件125接收到第一路径管理组件123发送的通道评估请求后,可以根据该通道评估请求对各可用网络通道的质量进行评估。示例性的,该通道质量可以包括该通道的时延、丢包率、带宽及速率等。上述评估可以是对可用网络通道的往返时延(Round-Trip Time,RTT)进行评估,往返时延最小的网络通道为最佳。可选地,当可用网络通道有历史选用记录时,也就是说,上述可用网络通道曾经被选用为网络通道过,此时,可以结合上述RTT及历史记录对通道质量进行评估,其中,该历史记录可以包括历史接收速率、通道质量为差的历史次数等,本申请实施例对上述通道质量的评估方式不做特殊限定。当通道及应用质量评估组件125对通道评估请求中所有可用网络通道的质量评估完成之后,可以将上述评估结果发送给第一路径管理组件123。
步骤419,第一路径管理组件123基于评估结果确定备用网络通道,并将备用网络通道的路径发送给第二路径管理组件131。
具体地,当第一路径管理组件123接收到上述评估结果后,可以基于上述评估结果选取最佳的可用网络通道作为备用网络通道,并可以将上述备用网络通道的路径发送给第一路径管理组件123。
步骤420,第二路径管理组件131接收并存储第一路径管理组件123发送的备用网络通道的路径。
具体地,当第二路径管理组件131接收到第一路径管理组件123发送的备用网络通道的路径后,可以预先存储该备用网络通道的路径。可以理解的是,由于在步骤411中仅是检测到场景变化,也就是说,当前的网络可能会对业务造成卡顿,但是还没有达到切换的条件,此时,电子设备100并不切换到该备用网络通道,也就是说,电子设备100仍在使用主网络通道。
示例性的,当第二路径管理组件131在t1时刻接收到第一路径管理组件123发送的备用网络通道的路径后,可以预先存储该备用网络通道的路径。此时,电子设备100并不切换到该备用网络通道,也就是说,电子设备100仍在使用主网络通道。接着,当在t2时刻检测到当前的网路应用的特征流的质量变差,已经达到切换的条件,此时,电子设备100可以将上述特征流由主网络通道切换到备用网络通道。
步骤421,流量上报组件141上报流量至流量感知组件133。
具体地,流量上报组件141可以持续探测当前主网络通道的报文,并将探测到的报文上报给流量感知组件133。
步骤422,流量感知组件133接收流量上报组件141上报的报文,对报文进行分析,得到报文分析结果,并将报文分析结果发送给第二策略管理组件132。
具体地,上述报文可以是主网络通道上的网络应用的各个流的报文。当流量感知组件133接收到上述报文后,可以对上述报文进行分析。其中,上述报文分析可以是基于报文的特征,以此来识别特征流,其中,该特征流可以是网络应用中敏感性最高的流。举例来说,以和平精英游戏为例,该游戏的特征流可以是语音流,也就是说,语音流对该游戏的影响是比较大的,敏感性最高,当语音流质量不好(例如,时延和丢包率都不满足要求)时,会严重影响用户的游戏体验。因此,需要识别语音流,并进一步统计及分析报文中的语音流报文。由此可以得到报文分析结果,该报文分析结果可以用于表征该特征流是否满足业务需求,例如,是否满足时延需求或是否满足丢包率需求等。并可以将上述报文分析结果发送给第二策略管理组件132。
其中,上述语音流的报文的识别可以通过心跳包统计实现。示例性的,以UDP协议为例,该语音流的数据报文特征可以通过如下特征表征:
上行:udp.payload[6]=0x64;
下行:udp.payload[6]=0x65。
图9为上述UDP协议的语音流的心跳报文示意图。
也就是说,对上述上下行报文中的载荷中的预设字段的读取,可以识别该报文是否是语音流数据包。
接着,可以对语音流的报文进行统计,由此可以获得上述语音流的报文的时延和/或丢包率。在具体实现时,可以统计预设时长(例如,5s)内的语音流的报文。示例性的,若上述语音流的报文的时延和/或丢包率达不到要求时,则可以确定该语音流的质量为差,此时,可以触发切换,用于将上述语音流切换到备用网络通道上。需要说明的是,上述示例仅以游戏为例进行示例性说明,在具体应用中,还可以包括其他网络应用,例如,百度网盘,该网络应用的特征流是下载流,也就是说,可以在上述报文中找到下载流的报文,而该下载流的报文的影响因素可以是速率。此外,上述网络应用还可以包括微信等社交网络应用,该网络应用的特征流是视频流,也就是说,可 以在上述报文中找到视频流的报文,而该视频流的报文的影响因素可以是时延/或丢包率。
可以理解的是,上述特征流除上述语音流之外,还可以包括游戏中的对战流。以和平精英为例,通过周期统计UDP报文个数可以判断当前的报文流是否是对战流。目前,和平精英采用的周期是500ms,因此,可以统计周期内的报文总数判断是否是对战流,例如,上述500ms周期的报文总数大于10个,则该报文流为对战流。图10为UDP协议的对战流的报文统计示意图。如图10所示,横轴为时间,纵轴为报文总数,由于每秒基本保持在30个报文,因此,可以通过计算确定每500ms有15个报文,由此可以确定该报文流是对战流。
接着,以王者荣耀为例,其中,王者荣耀采用过滤UDP协议号和报文头特征payload=0x00010000来过滤对战报文。图11为UDP协议的对战流的心跳报文示意图。
步骤423,第二策略管理组件132基于报文分析结果确定切换,并请求获取备用网络通道的路径。
具体地,当第二策略管理组件132接收到流量感知组件133上报的报文分析结果后,可以根据报文分析结果判断是否进行通道切换。在具体实现时,若当前的网络应用的特征流(例如,游戏中的语音流、微信中的视频流或百度网盘的下载流)不满足要求(例如,时延和/或丢包率),则可以确定需要进行通道切换。此时,第二策略管理组件132可以向第二路径管理组件131发送备用网络通道路径获取请求,用于获取备用网络通道的路径,举例来说,若备用网络通道为主蜂窝,则备用网络通道的路径例如可以是Mobile1。
示例性的,上述请求备用网络通道的路径可以通过如下代码实现:
Figure PCTCN2022072713-appb-000002
Figure PCTCN2022072713-appb-000003
此外,在具体实现时,上述网络通道的路径(例如,该路径可以用网卡或sim卡的设备号表征)可以在数据结构中进行定义,代码示例如下:
Figure PCTCN2022072713-appb-000004
Figure PCTCN2022072713-appb-000005
如上述代码所示,其中,sk_bound_dev_if为切换的目标网卡或目标sim卡的设备号。可以理解的是,通过上述网卡或sim卡可以接收报文,该接收报文的代码可以参考如下示例:
pktinfo.msg.flow_msg.dev_if=sk->sk_bound_dev_if;
其中,pktinfo为接收到的报文,msg.flow_msg为报文流的名称。
可以理解的是,若通过报文分析,确定当前的网络应用的特征流满足需求,也就是说,无需进行切换,此时,第一设备10可以删除上述备用网络通道的路径,由此可以释放资源,同时也可以节省第一设备10的功耗。可选地,第一设备10也可以在预设时长(例如,预设第三时长)后删除上述备用网络通道的路径,由此可以保证在该预设第三时长内,如果特征流的质量变差,可以及时的切换至备用网络通道,避免因删除上述备用网络通道的路径导致无法切换。
需要说明的是,由于电子设备100所处的环境的不同,无线网络的差异较大,例如,当电子设备100检测到当前所处网络环境较差时,可以拉起备用网络。接着,当电子设备100检测到当前业务满足业务需求时,无需进行切换时(例如,电子设备100进入到一个较好的网络环境),电子设备100可以继续使用当前网络,不切换到上述备用网络,因此,电子设备100可以仅执行备用网络的检测,例如执行步骤415-步骤420,以完成备用网络的检测。进一步地,电子设备100在完成上述备用网络的检测之后,还可以激活上述备用网络,上述激活操作可以加快切换的流程,由此可以节省切换的时延。也就是说,当电子设备100检测到当前所处的环境(例如,电梯场景)时,可以只进行备用网络的检测,也可以进行备用网络的检测及备用网络的激活,而上述备用网络的检测阶段及备用网络的激活还没有真正执行切换。当电子设备100检测到当前业务无法满足业务需求时,可以将当前业务(例如,当前业务的一个或多个流)切换到已激活的备用网络上。
步骤424,第二策略管理组件132向第二路径管理组件131发送备用网络通道的路径。
步骤425,第二策略管理组件132向策略执行组件142发送通道切换指示。
具体地,当第二策略管理组件132接收到第二路径管理组件131发送的备用网络通道的路径后,可以向策略执行组件142发送通道切换指示,其中,该通道切换指示可以用于指示策略执行组件142将上述特征流由当前的主网络通道切换至备用网络通道,由此可以更快的完成通道切换,减少通道切换带来的时延,提高用户的体验。
步骤426,策略执行组件142执行通道切换。
具体地,当策略执行组件142接收到第二策略管理组件132发送的通道切换指示后,可以将上述特征流由当前的主网络通道切换至备用网络通道,也就是说,上述网络应用的其他流可以继续承载在主网络通道上运行,上述特征流可以承载在备用网络通道上运行,由此可以快速的完成切换,进而可以保证业务的质量以及用户的体验。
可选地,可以将上述网络应用整个切换至备用网络通道,也就是说,可以停用上述主网络通道,上述网络应用的所有流都承载在备用网络通道上运行。
图12为手机使用备用网络通道的示意图。如图12所示,当手机接收到通道切换 指示后,可以将视频流由当前的主网络通道切换至备用网络通道,并可以使用备用网络通道进行视频的观看,以避免视频的卡顿。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
可以理解的是,上述电子设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (19)

  1. 一种通道切换方法,应用于电子设备,所述电子设备具有多个网络通道,所述电子设备上运行有第一应用,所述第一应用承载于第一网络通道,所述第一应用包括多个报文流,其特征在于,所述方法包括:
    响应于监测到的场景,基于所述第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的路径;
    获取所述第一网络通道上所述第一应用的报文;
    在所述第一应用的多个报文流中确定特征报文流,对所述特征报文流中的报文进行统计,得到第一统计结果,基于所述第一统计结果将所述特征报文流切换至所述第二网络通道。
  2. 根据权利要求1所述的方法,其特征在于,所述网络通道至少包括主WIFI通道、辅WIFI通道、主蜂窝通道及辅蜂窝通道。
  3. 根据权利要求1所述的方法,其特征在于,所述特征报文流包括下载流、视频流或对战流中的至少一种。
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一应用为非敏感类应用,所述方法还包括:
    对所述第一应用的特征报文流的报文进行统计,得到第二统计结果,基于所述第二统计结果确定所述第一网络通道的质量;
    基于所述第一网络通道的质量,对第二网络通道进行探测,基于探测结果确定第二网络通道的路径;
    将所述特征报文流切换至所述第二网络通道。
  5. 根据权利要求4所述的方法,其特征在于,所述对所述第一应用的特征报文流的报文进行统计,得到第二统计结果包括:
    对在预设第一时长内接收到的所述第一应用的特征报文流的报文进行统计,得到第二统计结果。
  6. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一应用为敏感类应用。
  7. 根据权利要求6所述的方法,其特征在于,所述获取所述第一网络通道上所述第一应用的报文包括:
    在预设第二时长内获取所述第一网络通道上所述第一应用的报文。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述基于所述第一统计结果将所述特征报文流切换至所述第二网络通道之后,所述方法包括:
    所述第一应用中的非特征报文流承载于所述第一网络通道。
  9. 根据权利要求1-7任一项所述的方法,其特征在于,所述基于所述第一统计结果将所述特征报文流切换至所述第二网络通道之后,所述方法包括:
    将所述第一应用中的非特征报文流切换至所述第二网络通道,并关闭所述第一网络通道。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述方法还包括:
    基于所述第一统计结果删除所述第二网络通道的路径。
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:所述基于所述第一统计结果删除所述第二网络通道的路径包括:
    基于所述第一统计结果,在预设第四时长后删除所述第二网络通道的路径。
  12. 根据权利要求6-11任一项所述的方法,其特征在于,所述基于所述第一应用的业务类型对第二网络通道进行探测,基于探测结果确定第二网络通道的路径包括:
    基于所述第一应用的业务类型对所述第二网络通道的报文的往返时延进行探测,得到探测结果,其中,所述探测结果包括每条网络通道的报文的往返时延;
    基于所述探测结果确定所述第二网络通道的路径。
  13. 根据权利要求12所述的方法,其特征在于,所述探测结果还包括每条网络通道的历史记录。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述对所述特征报文流中的报文进行统计,得到第一统计结果包括:
    对所述特征报文流中的报文的时延或丢包率进行统计,得到第一统计结果,其中,所述第一统计结果用于表征所述特征报文流是否满足预设时延要求或预设丢包率要求。
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述电子设备还包括加速度传感器,所述场景由所述加速度传感器探测获得。
  16. 根据权利要求15所述的方法,其特征在于,所述场景由所述加速度传感器探测所述电子设备在垂直方向上的运动获得。
  17. 一种电子设备,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述电子设备从所述存储器中读取所述指令,以使得所述电子设备执行如权利要求1-16中任一项所述的方法。
  18. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述电子设备上运行时,使得所述电子设备执行如权利要求1-16中任一项所述的方法。
  19. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-16中任一项所述的方法。
PCT/CN2022/072713 2021-06-29 2022-01-19 通道切换方法、电子设备及存储介质 Ceased WO2023273317A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP22831151.0A EP4236434B1 (en) 2021-06-29 2022-01-19 Channel switching method, electronic device, and storage medium
CN202280036454.7A CN117337588A (zh) 2021-06-29 2022-01-19 通道切换方法、电子设备及存储介质
US18/037,978 US20240089822A1 (en) 2021-06-29 2022-01-19 Channel switching method, electronic device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110729329.1 2021-06-29
CN202110729329.1A CN113810938B (zh) 2021-06-29 2021-06-29 通道切换方法、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023273317A1 true WO2023273317A1 (zh) 2023-01-05

Family

ID=78893131

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072713 Ceased WO2023273317A1 (zh) 2021-06-29 2022-01-19 通道切换方法、电子设备及存储介质

Country Status (4)

Country Link
US (1) US20240089822A1 (zh)
EP (1) EP4236434B1 (zh)
CN (2) CN113810938B (zh)
WO (1) WO2023273317A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810938B (zh) * 2021-06-29 2022-09-27 荣耀终端有限公司 通道切换方法、电子设备及存储介质
CN114268936B (zh) * 2022-03-01 2022-07-12 荣耀终端有限公司 数据传输方法及装置
CN114679443A (zh) * 2022-03-03 2022-06-28 北京百度网讯科技有限公司 一种下载视频数据的方法、装置、电子设备及存储介质
CN114710814B (zh) * 2022-03-16 2024-12-17 达闼机器人股份有限公司 终端设备的控制方法、装置、系统、存储介质及电子设备
CN116709367B (zh) * 2022-10-17 2024-07-12 荣耀终端有限公司 一种网络加速方法和装置
CN115563543B (zh) * 2022-10-28 2024-03-29 国网江苏省电力有限公司无锡供电分公司 基于通道质量多端电气量保护原理选取方法、装置及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119314A (zh) * 2007-09-14 2008-02-06 中国科学院计算技术研究所 一种多模终端业务流的控制系统和装置以及方法
CN102448150A (zh) * 2011-12-30 2012-05-09 上海顶竹通讯技术有限公司 多模终端的业务处理系统及方法
WO2021019549A1 (en) * 2019-07-26 2021-02-04 Telefonaktiebolaget Lm Ericsson (Publ) Mobile device and methods for travelling towards a destination using a communication network
CN112738745A (zh) * 2019-10-14 2021-04-30 Oppo广东移动通信有限公司 控制网络连接的方法及相关产品
CN113810938A (zh) * 2021-06-29 2021-12-17 荣耀终端有限公司 通道切换方法、电子设备及存储介质

Family Cites Families (84)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI110658B (fi) * 1998-01-15 2003-02-28 Nokia Corp Parannettu paikannusgeometria ja solupohjainen paikannusjärjestelmä
US6453687B2 (en) * 2000-01-07 2002-09-24 Robertshaw Controls Company Refrigeration monitor unit
US6944158B1 (en) * 2000-02-18 2005-09-13 Alcatel Flow integrity for path transitioning data switch
WO2002093813A1 (en) * 2001-05-15 2002-11-21 Nokia Corporation A method of channel allocation for a mobile terminal moving in a cellular communication network
US7010301B2 (en) * 2001-06-28 2006-03-07 Lucent Technologies Inc. Apparatus, method and system for mobile wireless communication hand-off utilizing ISDN multiway capabilities
SE0104325D0 (sv) * 2001-12-20 2001-12-20 Ericsson Telefon Ab L M A method and apparatus for switching access between mobile networks
US20050185630A1 (en) * 2002-11-07 2005-08-25 Nobuhisa Aoki Mobile communication system
KR100705579B1 (ko) * 2005-08-01 2007-04-10 삼성전자주식회사 복합망을 이용한 핸드오프 구현 시스템 및 그 방법
US20070165574A1 (en) * 2006-01-13 2007-07-19 Motorola, Inc. Method and apparatus to minimize packet loss during active data hard handoff
CN101155124B (zh) * 2006-09-27 2011-09-14 华为技术有限公司 一种实现组播快速重路由的方法
CN101094175B (zh) * 2007-06-14 2011-06-01 华为技术有限公司 一种组播流量保护方法、装置及系统
US20120063428A1 (en) * 2008-10-08 2012-03-15 Panasonic Corporation Interface Switching System, Mobile Node, Proxy Node, and Mobile Management Node
US9104986B2 (en) * 2009-03-09 2015-08-11 Centurylink Intellectual Property Llc Customer premise equipment with access to free market based pricing for bandwidth on a communications network
EP2465325B1 (en) * 2009-08-12 2019-06-12 Apple Inc. Providing a deny response that specifies a delay time
US8346274B2 (en) * 2010-05-21 2013-01-01 Apple Inc. Method to control multiple radio access bearers in a wireless device
WO2011158431A1 (ja) * 2010-06-17 2011-12-22 日本電気株式会社 経路制御装置及び経路制御方法
US20120311173A1 (en) * 2011-05-31 2012-12-06 Broadcom Corporation Dynamic Wireless Channel Selection And Protocol Control For Streaming Media
US8811187B2 (en) * 2011-08-17 2014-08-19 Verizon Patent And Licensing Inc. Radio access network technology optimization based on application type
WO2013044967A1 (en) * 2011-09-29 2013-04-04 Telefonaktiebolaget L M Ericsson (Publ) Adding new alternative paths for restoration in wson network
JP2013078065A (ja) * 2011-09-30 2013-04-25 Fujitsu Mobile Communications Ltd 無線通信端末及び無線通信方法
EP2621135B1 (en) * 2012-01-24 2018-06-13 ADVA Optical Networking SE A method and a system for providing a flexible secondary data path
US9585184B1 (en) * 2012-10-29 2017-02-28 Google Inc. Using multiple wireless connections
US9203699B2 (en) * 2014-02-11 2015-12-01 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Constructing and verifying switch fabric cabling schemes
US9678840B2 (en) * 2014-04-29 2017-06-13 Cisco Technology, Inc. Fast failover for application performance based WAN path optimization with multiple border routers
KR102126994B1 (ko) * 2014-06-17 2020-06-25 삼성전자주식회사 채널 선택을 위한 방법 및 그 전자 장치
KR101746191B1 (ko) * 2014-06-27 2017-06-12 주식회사 케이티 다중 경로 통신을 위한 네트워크 장치 및 단말, 이들의 동작 방법, 그리고 동작 방법을 구현한 프로그램
US9893995B1 (en) * 2014-09-25 2018-02-13 Cisco Technology, Inc. Systems, methods, and apparatus for implementing agents in service appliances
US20160094462A1 (en) * 2014-09-26 2016-03-31 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for dynamically adjusting retransmission timing in a transport layer
US20160112941A1 (en) * 2014-10-21 2016-04-21 Microsoft Corporation Connection selection in hybrid networks
US9210625B1 (en) * 2015-04-24 2015-12-08 Amazon Technologies, Inc. Systems and methods for managing network connections
US10122801B2 (en) * 2015-07-02 2018-11-06 Qualcomm Incorporated Service discovery and topology management
US10242556B2 (en) * 2015-10-21 2019-03-26 Mutualink, Inc. Wearable smart router
US20170156083A1 (en) * 2015-11-30 2017-06-01 Zynga Inc. Maintaining persistent mobile device session
US20180338268A1 (en) * 2015-12-01 2018-11-22 Lg Electronics Inc. Method and apparatus for performing application category based traffic steering in wireless communication system
US9998507B2 (en) * 2015-12-22 2018-06-12 Rapidsos, Inc. Systems and methods for robust and persistent emergency communications
US20170214626A1 (en) * 2016-01-25 2017-07-27 Rivet Networks Llc Application based link selection based on link characteristics
CN105786618B (zh) * 2016-02-24 2019-06-18 华为技术有限公司 加速器网络中路由报文的方法和装置
US10024671B2 (en) * 2016-11-16 2018-07-17 Allstate Insurance Company Multi-stop route selection system
US10749970B1 (en) * 2016-12-28 2020-08-18 Wells Fargo Bank, N.A. Continuous task-based communication sessions
US10575128B2 (en) * 2017-02-20 2020-02-25 JVC Kenwood Corporation Management device, management method, and terminal device for displaying additional information on image and displaying image
WO2018171460A1 (en) * 2017-03-24 2018-09-27 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for determining a modulation scheme in direct link-based communication
CN107612825B (zh) * 2017-08-04 2020-10-27 华为技术有限公司 建立灵活以太网路径的方法和网络设备
LT3767494T (lt) * 2017-08-28 2023-03-10 Bright Data Ltd. Būdas pagerinti turinio parsisiuntimą, pasirenkant tunelinius įrenginius
US12080953B2 (en) * 2017-10-26 2024-09-03 Mitsubishi Electric Corporation Monitoring device and monitoring system
JP2019083459A (ja) * 2017-10-31 2019-05-30 日本電気株式会社 通信装置、制御方法およびプログラム
US11516705B2 (en) * 2017-12-27 2022-11-29 Huawei Technologies Co., Ltd. Network performance improvement method and device
EP3897009B1 (en) * 2018-02-22 2023-05-31 SZ DJI Technology Co., Ltd. Monitoring method and device
CN110248376B (zh) * 2018-03-08 2022-05-24 华为技术有限公司 一种链路维护的方法及装置
US10986219B2 (en) * 2018-06-19 2021-04-20 At&T Intellectual Property I, L.P. LTE fault-tolerant signaling approach
US10602551B2 (en) * 2018-06-27 2020-03-24 Charter Communications Operating, Llc Methods and apparatus for testing alternative wireless connections and selecting a wireless connection
US11627587B2 (en) * 2018-07-23 2023-04-11 Magic Leap, Inc. Coexistence interference avoidance between two different radios operating in the same band
EP3827611A4 (en) * 2018-07-26 2021-08-04 Razer (Asia-Pacific) Pte Ltd. INTELLIGENT ADAPTIVE CHANNEL SWITCHING GAME ROUTER
FR3084549B1 (fr) * 2018-07-30 2022-02-18 Ingenico Group Procede de transmission de donnees vers deux passerelles distinctes, et dispositif correspondant.
CN110972177B (zh) * 2018-09-28 2022-10-11 华为技术有限公司 一种链路检测方法及装置
WO2020076331A1 (en) * 2018-10-11 2020-04-16 Nokia Technologies Oy Active mode traffic steering and switching between cellular and non-cellular systems
WO2020077517A1 (zh) * 2018-10-16 2020-04-23 华为技术有限公司 一种高速移动场景下的小区切换方法及装置
US10813009B2 (en) * 2018-12-04 2020-10-20 T-Mobile Usa, Inc. Changing radio access technologies to connect to a network
US11445422B2 (en) * 2018-12-13 2022-09-13 At&T Intellectual Property I, L.P. Adaptable network communications
KR102775191B1 (ko) * 2019-02-15 2025-03-05 삼성전자주식회사 무선 네트워크 환경에서 핸드오버를 수행하기 위한 전자 장치 및 그에 관한 방법
US11452014B2 (en) * 2019-03-08 2022-09-20 Meta Platforms Technologies, Llc Secondary link for AR/VR applications
CN110072263B (zh) * 2019-03-26 2021-08-03 华为技术有限公司 一种切换上网卡的方法和电子设备
EP3723444A1 (en) * 2019-04-12 2020-10-14 Samsung Electronics Co., Ltd. Electronic device supporting dual connectivity and method of operating the same
US20220210833A1 (en) * 2019-04-30 2022-06-30 Nokia Technologies Oy Channel detection before transmission
WO2021003694A1 (en) * 2019-07-10 2021-01-14 Micro Focus Llc Device debugging connection control and maintenance
US11245742B2 (en) * 2019-07-19 2022-02-08 Juniper Networks, Inc Apparatus, system, and method for flow-level switchover of video streams
CN110505601A (zh) * 2019-07-30 2019-11-26 大连理工大学 一种车联网中基于车辆行驶态势场模型的信息发送频率优化方法
US10880356B1 (en) * 2019-08-05 2020-12-29 Amazon Technologies, Inc. Techniques for switching communication channels
WO2021031031A1 (zh) * 2019-08-16 2021-02-25 华为技术有限公司 确定信道的方法和装置
CN113037624A (zh) * 2019-12-25 2021-06-25 华为技术有限公司 一种数据流控制的方法和装置
CN113115251B (zh) * 2020-01-09 2023-10-31 博泰车联网科技(上海)股份有限公司 用于信息处理的方法、设备和计算机存储介质
US10939367B1 (en) * 2020-01-28 2021-03-02 Dell Products, L.P. Predictive scanning and handover
CN111355732B (zh) * 2020-02-28 2021-06-11 腾讯科技(深圳)有限公司 链接检测方法、装置、电子设备及存储介质
KR102894604B1 (ko) * 2020-03-03 2025-12-03 삼성전자주식회사 복수의 통신 방식들을 이용하는 전자 장치 및 그 제어 방법
US11743709B2 (en) * 2020-04-08 2023-08-29 Qualcomm Incorporated Context updates for multi-link devices
CN115428411B (zh) * 2020-04-23 2024-05-28 瞻博网络公司 使用会话建立度量的会话监测
US11412511B2 (en) * 2020-05-05 2022-08-09 Facebook Technologies, Llc Switching between different communication protocols
US12348361B2 (en) * 2020-06-30 2025-07-01 New H3C Technologies Co., Ltd. Method and apparatus for failure detection and PE device
US11582068B2 (en) * 2020-07-24 2023-02-14 Cisco Technology, Inc. Scalable mechanism for optimized application performance in SD-WAN
US11637886B2 (en) * 2020-09-25 2023-04-25 Apple Inc. Cellular communication protocol aware multimedia streaming
CN112217679B (zh) * 2020-10-16 2024-05-31 腾讯科技(深圳)有限公司 应用程序加速方法、装置、计算机设备和存储介质
US11750497B2 (en) * 2021-01-14 2023-09-05 Ciena Corporation BGP route aggregation exception systems and methods
US11463365B1 (en) * 2021-01-15 2022-10-04 Cisco Technology, Inc. Preempting time-based SLA violations in computer networks
US11720835B2 (en) * 2021-02-25 2023-08-08 Avaya Management L.P. Context based channel switchover
US20220394439A1 (en) * 2021-06-08 2022-12-08 Arlo Technologies, Inc Electronic Monitoring System with Secondary Communication Path for Evaluating Device Locations

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119314A (zh) * 2007-09-14 2008-02-06 中国科学院计算技术研究所 一种多模终端业务流的控制系统和装置以及方法
CN102448150A (zh) * 2011-12-30 2012-05-09 上海顶竹通讯技术有限公司 多模终端的业务处理系统及方法
WO2021019549A1 (en) * 2019-07-26 2021-02-04 Telefonaktiebolaget Lm Ericsson (Publ) Mobile device and methods for travelling towards a destination using a communication network
CN112738745A (zh) * 2019-10-14 2021-04-30 Oppo广东移动通信有限公司 控制网络连接的方法及相关产品
CN113810938A (zh) * 2021-06-29 2021-12-17 荣耀终端有限公司 通道切换方法、电子设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4236434A4

Also Published As

Publication number Publication date
EP4236434B1 (en) 2025-04-30
EP4236434A4 (en) 2024-05-22
EP4236434A1 (en) 2023-08-30
CN117337588A (zh) 2024-01-02
CN113810938A (zh) 2021-12-17
CN113810938B (zh) 2022-09-27
US20240089822A1 (en) 2024-03-14

Similar Documents

Publication Publication Date Title
US11736224B2 (en) Data transmission method and electronic device
CN112954749B (zh) 一种网络切换方法及电子设备
CN113810938B (zh) 通道切换方法、电子设备及存储介质
CN113795040B (zh) 通道切换方法、电子设备及存储介质
CN113316199B (zh) 一种连接管理方法及相关设备
CN113163435B (zh) 确定回退功率的方法和调整发射功率的方法
US20230189366A1 (en) Bluetooth Communication Method, Terminal Device, and Computer-Readable Storage Medium
EP4216501B1 (en) Method for switching channels, electronic device, and storage medium
WO2020192781A1 (zh) 一种上报能力的方法及用户设备
CN115484649B (zh) 通道切换方法、电子设备及存储介质
WO2020134868A1 (zh) 一种连接建立方法及终端设备
WO2022262492A1 (zh) 数据下载方法、装置和终端设备
CN113890905B (zh) 通道切换方法、电子设备及存储介质
WO2020124447A1 (zh) 面向多卡的网络管理
CN111615177A (zh) 一种小区搜索方法及用户设备
CN116405960B (zh) 一种网络质量的检测方法及相关电子设备
CN113596919B (zh) 数据下载方法、装置和终端设备
US12445968B2 (en) Transmit power control method, terminal, chip system, and system
CN113810965B (zh) 通道切换方法、电子设备及存储介质
CN112996066B (zh) 驻网方法及相关设备
WO2024001773A1 (zh) 一种数据迁移方法、电子设备和组网系统
WO2023134672A1 (zh) 确定侧行链路发生无线链路失败的方法、装置和终端设备
RU2811567C1 (ru) Способ переключения каналов, электронное устройство и носитель данных
CN116546596A (zh) 通信方法、装置和终端设备
HK40068161B (zh) 通道切换方法、电子设备及存储介质

Legal Events

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

Ref document number: 22831151

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18037978

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2022831151

Country of ref document: EP

Effective date: 20230522

WWE Wipo information: entry into national phase

Ref document number: 202280036454.7

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

WWG Wipo information: grant in national office

Ref document number: 2022831151

Country of ref document: EP