WO2020078199A1 - 链路连接方法及相关装置 - Google Patents

链路连接方法及相关装置 Download PDF

Info

Publication number
WO2020078199A1
WO2020078199A1 PCT/CN2019/108578 CN2019108578W WO2020078199A1 WO 2020078199 A1 WO2020078199 A1 WO 2020078199A1 CN 2019108578 W CN2019108578 W CN 2019108578W WO 2020078199 A1 WO2020078199 A1 WO 2020078199A1
Authority
WO
WIPO (PCT)
Prior art keywords
local area
area network
wireless local
target application
communication module
Prior art date
Application number
PCT/CN2019/108578
Other languages
English (en)
French (fr)
Inventor
林进全
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020078199A1 publication Critical patent/WO2020078199A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Definitions

  • the present application relates to the technical field of electronic equipment, in particular to a link connection method and related devices.
  • Wi-Fi wireless local area network
  • Embodiments of the present application provide a link connection method and related devices, with a view to increasing the speed of link connection, reducing network delay, and optimizing the user's gaming experience.
  • an embodiment of the present application provides a link connection method, which is applied to an electronic device, and the method includes:
  • the preset period is the The period of time when the target application is running in the foreground of the electronic device.
  • an embodiment of the present application provides a link connection device, which is applied to an electronic device.
  • the link connection device includes a detection unit and a control unit, wherein,
  • the detection unit is configured to detect whether the wireless local area network communication module of the electronic device is turned on when it is detected that the target application is running in the foreground;
  • the control unit is configured to, when detecting that the wireless local area network communication module of the electronic device is in an on state, control the wireless local area network communication module to maintain a network service interruption state for the target application within a preset period of time.
  • the preset time period is a time period in which the target application program runs in the foreground of the electronic device.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be processed by the above
  • the above program includes instructions for performing the steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application.
  • the computer program causes the computer to execute the first embodiment of the present application.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in any method of the first aspect.
  • the computer program product may be a software installation package.
  • the electronic device first detects whether the wireless local area network communication module of the electronic device is turned on when it detects that the target application is running in the foreground, and secondly, detects the wireless local area network communication of the electronic device When the module is in the on state, the wireless local area network communication module is controlled to maintain a network service interruption state for the target application program for a preset period of time, the preset period of time is a period during which the target application program is running in the foreground of the electronic device .
  • the electronic device can control the connection between the cellular mobile network and the wireless local area network when running the target application, and disconnect the wireless local area network by interrupting the wireless local area network module to avoid the network disconnection caused by the unstable wireless local area network.
  • Connection which in turn affects the experience of the target application, can improve the stability of the link connection, reduce network latency, and improve the link connection quality of the electronic device.
  • FIG. 1 is an exemplary system architecture diagram of a wireless communication system in which an electronic device is provided according to an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a link connection method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another link connection method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a block diagram of functional units of a link connection device provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may be electronic devices with data transmission capabilities, and the electronic devices may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or devices connected to a wireless modem Other processing equipment, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
  • UE User Equipment
  • MS Mobile Station
  • terminal device terminal device
  • Link aggregation means that the device can use two or more network ports to access the Internet at the same time, such as using Wi-Fi and a data network for network access through link aggregation on a mobile phone.
  • Android network system when Wi-Fi is enabled, will cause the data network to be unusable (connectivityService network scoring mechanism causes the data network to be disconnected), and link aggregation requires at least two or more available networks, so the service The prerequisite for a service-level agreement (abbreviated as SLA) is to make Wi-Fi and data networks coexist. As shown in FIG.
  • SLA service-level agreement
  • the electronic device 101 can be connected to a data network 103, which is a communication network for transmitting data services; Wi-Fi 102, Wi-Fi is a technology that allows electronic devices to connect to a wireless local area network; Usually use 2.4G UHF or 5G SHF ISM radio frequency band; and Bluetooth 104, a wireless technology standard, can achieve short-range data exchange between fixed equipment, mobile equipment and building personal area network (using 2.4-2.485GHz ISM band UHF radio waves) etc.
  • a data network 103 which is a communication network for transmitting data services
  • Wi-Fi 102 Wi-Fi is a technology that allows electronic devices to connect to a wireless local area network
  • Bluetooth 104 a wireless technology standard, can achieve short-range data exchange between fixed equipment, mobile equipment and building personal area network (using 2.4-2.485GHz ISM band UHF radio waves) etc.
  • FIG. 2 is a schematic flowchart of a link connection method provided by an embodiment of the present application, which is applied to an electronic device. As shown in the figure, the link connection method includes:
  • Step 201 When detecting that the target application is running in the foreground, the electronic device detects whether the wireless local area network communication module of the electronic device is turned on.
  • the target application program may be a game application, a video application, etc., which is not limited here.
  • the electronic device will split the data stream to be processed, and shunt transmission of the link connection task to be processed by enabling the cellular mobile network module and the wireless local area network communication module. For example, by marking data packets with different mark values, and by matching different mark values, query different routing tables to enable data packets to access the network from different interfaces.
  • Step 202 When detecting that the wireless local area network communication module of the electronic device is in an on state, control the wireless local area network communication module to maintain a network service interruption state for the target application for a preset period of time, the preset period of time The time period during which the target application is running in the foreground of the electronic device.
  • the wireless local area network in the module when the wireless local area network communication module is in an on state, the wireless local area network in the module may be in an unconnected state or connected and then disconnected.
  • the electronic device first detects whether the wireless local area network communication module of the electronic device is turned on when it detects that the target application is running in the foreground, and secondly, detects the wireless local area network communication of the electronic device When the module is in the on state, the wireless local area network communication module is controlled to maintain a network service interruption state for the target application program for a preset period of time, the preset period of time is a period during which the target application program is running in the foreground of the electronic device .
  • the electronic device can control the connection between the cellular mobile network and the wireless local area network when running the target application, and disconnect the wireless local area network by interrupting the wireless local area network module to avoid the network disconnection caused by the unstable wireless local area network.
  • Connection which in turn affects the experience of the target application, can improve the stability of the link connection, reduce network latency, and improve the link connection quality of the electronic device.
  • the controlling the wireless local area network communication module to maintain a network service interruption state for the target application for a preset period includes: determining at least one wireless network scanned by the wireless local area network communication module Local area network; add the at least one wireless local area network to a blacklist; restrict the target application to always perform data transmission through the mobile network through the blacklist.
  • the blacklist is a list that refuses network connection, does not allow access, or does not allow verification.
  • the electronic device can interrupt the wireless LAN communication module in disguise through a blacklist mechanism, further ensuring that the data transmission of the target application is performed through the mobile network, and avoids connecting to the wireless LAN when using the mobile network
  • the resulting network instability contributes to the stability of the link connection, reduces network delay, and improves the link connection quality of electronic devices.
  • the method further includes: generating a removal instruction when it is detected that the target application exits from the foreground; The removing instruction removes the at least one wireless local area network from the blacklist; when it is detected that the target application is restored to the foreground operation, selecting from the at least one wireless local area network to satisfy a preset Conditional access to a wireless local area network, and control the target application to perform data transmission through the accessed wireless local area network.
  • the preset condition may be the signal strength of the network, the distance and transmission rate of the network signal source and the electronic device, etc., which is not limited here.
  • the electronic device can flexibly adjust the link according to the operation of the foreground.
  • the mobile network When running the target application, the mobile network is used.
  • the wireless LAN When exiting the target application, the wireless LAN can be reused to ensure that it is running. Link stability during target application is helpful to improve link connection convenience and stability.
  • the controlling the wireless local area network communication module to maintain a network service interruption state for the target application for a preset period includes: turning off when the target application is detected in a team battle scenario The wireless local area network communication module; after the closing the wireless local area network communication module, the method further includes: turning on the wireless local area network communication module when it is detected that the target application exits from the team battle scenario, Detect whether there is a wireless local area network that meets the preset conditions; if so, access a wireless local area network that meets the preset conditions, and control the target application to perform data transmission through the wireless local area network; if not, keep all The status of the target application accessing the mobile network.
  • the electronic device can flexibly control the switching and connection of the two networks according to the team battle scenario, which ensures the stability of the link when running the target application, which is conducive to improving the convenience and stability of the link connection .
  • the electronic device can first determine the correspondence between the link connection task and the wireless communication module bracket based on the task type or the channel quality of the wireless communication module, and then obtain the data of the link connection task split according to the number of channels and the channel quality parameter of the wireless communication module The amount of grouped data. It ensures that big data matches high-quality channels, and small data matches poor channels, which ensures the increase of link connection speed and avoids network delays.
  • the method before the target application is detected to be running in the foreground, the method further includes: switching the network accessed by the target application from the first wireless local area network to the mobile network Time, obtain the running time of the target application in the foreground; determine that the running time exceeds the preset running time, and connect to the mobile network.
  • the preset running time may be one minute, three minutes, five minutes, etc., which is not limited here.
  • the electronic device can determine whether the user enters the target application through the running time, and then change the network link connection, which is beneficial to improve the convenience and stability of the link connection.
  • the method before detecting that the network accessed by the target application is switched from the first wireless local area network to the mobile network, the method further includes detecting that the wireless local area network passes the wireless local area network within a reference time period The number of times the communication module connects to the first wireless local area network; if the number of connections is greater than the preset number of times, it is determined that the first wireless local area network is unstable.
  • the preset number of times may be ten times, five times, eight times, etc., which is not limited here.
  • the electronic device can obtain the connection frequency according to the reference time period and the number of connections.
  • the connection frequency reaches more than 70%, it is determined that the current wireless local area network is unstable.
  • the electronic device can determine the stability according to the attributes of the network, and then interrupt the connection of the wireless local area network, thereby ensuring the quality of the link connection, increasing the speed of the link connection, and avoiding delay.
  • the method further includes: detecting that the target application exits When the time in the foreground is greater than the reference time, turn on the wireless local area network communication module; search the wireless local area network communication module to obtain at least one wireless local area network; obtain the signal strength of each wireless local area network in the at least one wireless local area network; select Connect to a wireless local area network that exceeds the preset strength.
  • the reference time may be one minute, two minutes, or three minutes, etc., which is not limited here.
  • the preset strength can be set by the manufacturer or dynamically set according to the average value of the signal strength of all current wireless local area networks, which is not limited here.
  • the electronic device after detecting that the target application exits, the electronic device adjusts the connection link in time, avoiding the situation of continued use even when the mobile network is delayed, which is beneficial to the stability of the link connection. Reduce network delay and improve the quality of the link connection of electronic devices.
  • the method when it is detected that the target application is running in the foreground, the method includes: acquiring a data stream to be processed by the target application; enabling the cellular mobile network module and the wireless local area network communication module to perform the data flow Perform offload transmission.
  • the wireless local area network in the module when the wireless local area network communication module is in an on state, the wireless local area network in the module may be in an unconnected state or connected and then disconnected.
  • FIG. 3 is a schematic flowchart of a link connection method provided by an embodiment of the present application, which is applied to the electronic device shown in FIG. As shown, this link connection method includes:
  • the electronic device detects whether the wireless local area network communication module of the electronic device is turned on.
  • the electronic device determines at least one wireless local area network scanned by the wireless local area network communication module.
  • the electronic device adds the at least one wireless local area network to a blacklist.
  • the electronic device restricts the target application to always perform data transmission through the mobile network through the blacklist.
  • the electronic device first detects whether the wireless local area network communication module of the electronic device is turned on when it detects that the target application is running in the foreground, and secondly, detects the wireless local area network communication of the electronic device When the module is in the on state, the wireless local area network communication module is controlled to maintain a network service interruption state for the target application program for a preset period of time, the preset period of time is a period during which the target application program is running in the foreground of the electronic device .
  • the electronic device can control the connection between the cellular mobile network and the wireless local area network when running the target application, and disconnect the wireless local area network by interrupting the wireless local area network module to avoid the network disconnection caused by the unstable wireless local area network.
  • Connection which in turn affects the experience of the target application, can improve the stability of the link connection, reduce network latency, and improve the link connection quality of the electronic device.
  • the electronic device can interrupt the wireless LAN communication module in disguise through a blacklist mechanism, further ensuring that the data transmission of the target application is carried out through the mobile network, avoiding the connection to the wireless LAN when using the mobile network, which in turn leads to Network instability is conducive to the stability of the link connection, reduces network delay, and improves the link connection quality of electronic devices.
  • FIG. 4 is a schematic flowchart of a link connection method provided by an embodiment of the present application, which is applied to an electronic device. As shown in the figure, this link is connected Methods include:
  • the electronic device When detecting that a target application is running in the foreground, the electronic device detects whether the wireless local area network communication module of the electronic device is turned on.
  • the electronic device When detecting that the wireless local area network communication module of the electronic device is in an on state, the electronic device turns off the wireless local area network communication module when detecting that the target application is in a team battle scenario.
  • the electronic device turns on the wireless local area network communication module when it detects that the target application exits the foreground for more than the reference time.
  • the electronic device searches the wireless local area network communication module to obtain at least one wireless local area network.
  • the electronic device obtains the signal strength of each wireless local area network in the at least one wireless local area network.
  • S406 The electronic device selects a wireless local area network that exceeds a preset strength to connect.
  • the electronic device first detects whether the wireless local area network communication module of the electronic device is turned on when it detects that the target application is running in the foreground, and secondly, detects the wireless local area network communication of the electronic device When the module is in the on state, the wireless local area network communication module is controlled to maintain a network service interruption state for the target application program for a preset period of time, the preset period of time is a period during which the target application program is running in the foreground of the electronic device .
  • the electronic device can control the connection between the cellular mobile network and the wireless local area network when running the target application, and disconnect the wireless local area network by interrupting the wireless local area network module to avoid the network disconnection caused by the unstable wireless local area network.
  • Connection which in turn affects the experience of the target application, can improve the stability of the link connection, reduce network latency, and improve the link connection quality of the electronic device.
  • the electronic device can flexibly control the switching and connection of the two networks according to the team battle scenario, which ensures the stability of the link when running the target application, which is conducive to improving the convenience and stability of the link connection.
  • the electronic device adjusts the connection link in time, avoiding the situation of continued use in the case of delay in the mobile network, which is conducive to the stability of the link connection and reduces network delay. Improve the quality of the link connection of electronic equipment.
  • FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application.
  • the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, wherein the one or more programs 521 are stored in the above-mentioned memory 520 and are configured to be executed by the above-mentioned application processor 510,
  • the one or more programs 521 include instructions for performing the following steps:
  • the preset period is the A part or all of the time period in which the target application program runs in the foreground of the electronic device.
  • the electronic device first detects whether the wireless local area network communication module of the electronic device is turned on when it detects that the target application is running in the foreground, and secondly, detects the wireless local area network communication of the electronic device When the module is in the on state, the wireless local area network communication module is controlled to maintain a network service interruption state for the target application program for a preset period of time, the preset period of time is a period during which the target application program is running in the foreground of the electronic device .
  • the electronic device can control the connection between the cellular mobile network and the wireless local area network when running the target application, and disconnect the wireless local area network by interrupting the wireless local area network module to avoid the network disconnection caused by the unstable wireless local area network.
  • Connection which in turn affects the experience of the target application, can improve the stability of the link connection, reduce network latency, and improve the link connection quality of the electronic device.
  • the instructions in the program are specifically used to perform the following operations: determination At least one wireless local area network scanned by the wireless local area network communication module; adding the at least one wireless local area network to a blacklist; restricting the target application to always perform data transmission through the mobile network through the blacklist.
  • the instructions in the program are also used to perform the following operations: when it is detected that the target application is exited by the foreground , Generate a removal instruction; remove the at least one wireless local area network from the blacklist according to the removal instruction; when it is detected that the target application is restored to the foreground operation, from the at least one In the wireless local area network, a wireless local area network that meets a preset condition is selected for access, and the target application program is controlled to perform data transmission through the accessed wireless local area network.
  • the instructions in the program are specifically used to perform the following operations: When the target application is in a team battle scenario, close the wireless local area network communication module; after the close of the wireless local area network communication module, the method further includes: after detecting that the target application is controlled by the group When the battle scenario exits, turn on the wireless LAN communication module to detect whether there is a wireless LAN that meets the preset conditions; if so, access a wireless LAN that meets the preset conditions and control the target application to pass the The wireless local area network performs data transmission; if not, the state where the target application is connected to the mobile network is maintained.
  • the instructions in the program are also used to perform the following operations: after detecting that the network accessed by the target application is a first wireless local area network When the network is switched to the mobile network, the running time of the target application in the foreground is obtained; it is determined that the running time exceeds a preset running time, and the mobile network is connected.
  • the instructions in the program are also used to perform the following operations: detect at the reference time The number of times that the first wireless local area network is connected by the wireless local area network communication module in the segment; if the number of connections is greater than a preset number of times, it is determined that the first wireless local area network is unstable.
  • the instructions in the program are also used to perform the following operations: When the time when the target application exits the foreground is greater than the reference time, turn on the wireless local area network communication module; search the wireless local area network communication module to obtain at least one wireless local area network; obtain each wireless in the at least one wireless local area network The signal strength of the local area network; select a wireless local area network that exceeds the preset strength to connect.
  • the instructions in the program are also used to perform the following operations: obtain a pending data stream of the target application; enable a cellular mobile network
  • the module and the wireless local area network communication module perform offload transmission on the data stream.
  • the wireless local area network in the module when the wireless local area network communication module is in an on state, the wireless local area network in the module may be in an unconnected state or connected and then disconnected.
  • the electronic device includes a hardware structure and / or a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the functional unit of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
  • FIG. 6 is a block diagram of the functional units of the link connection device 600 involved in the embodiment of the present application.
  • the link connection device 600 is applied to electronic equipment, including a detection unit 601 and a control unit 602, where,
  • the detection unit 601 is configured to detect whether the wireless local area network communication module of the electronic device is turned on when it is detected that the target application is running in the foreground;
  • the control unit 602 is configured to, when detecting that the wireless local area network communication module of the electronic device is in an on state, control the wireless local area network communication module to maintain a network service interruption state for the target application within a preset period of time,
  • the preset time period is a time period in which the target application program runs in the foreground of the electronic device.
  • the link connection device 600 may further include a storage unit 603 for storing program codes and data of electronic devices.
  • the storage unit 603 may be a memory.
  • the electronic device first detects whether the wireless local area network communication module of the electronic device is turned on when it detects that the target application is running in the foreground, and second, detects the wireless local area network communication of the electronic device When the module is in the on state, the wireless local area network communication module is controlled to maintain a network service interruption state for the target application program for a preset period of time, the preset period of time is a period during which the target application program is running in the foreground of the electronic device .
  • the electronic device can control the connection between the cellular mobile network and the wireless local area network when running the target application, and disconnect the wireless local area network by interrupting the wireless local area network module to avoid the network disconnection caused by the unstable wireless local area network.
  • Connection which in turn affects the experience of the target application, can improve the stability of the link connection, reduce network latency, and improve the link connection quality of the electronic device.
  • control unit 602 is specifically configured to: determine to pass the wireless At least one wireless local area network scanned by the local area network communication module; adding the at least one wireless local area network to a blacklist; restricting the target application to always perform data transmission through the mobile network through the blacklist.
  • control unit 602 is further specifically configured to: when detecting that the target application is exited by the foreground, generate a mobile In addition to instructions; remove the at least one wireless local area network from the blacklist according to the removal instruction; when it is detected that the target application resumes to the foreground operation, from the at least one wireless local area network Select a wireless local area network access that meets the preset conditions, and control the target application to perform data transmission through the accessed wireless local area network.
  • the control unit 602 is specifically configured to: detect the target When the application is in a team battle scenario, the wireless LAN communication module is turned off; after the wireless LAN communication module is turned off, the method further includes: when it is detected that the target application is exited by the team battle scenario , Turn on the wireless local area network communication module, detect whether there is a wireless local area network that meets the preset conditions; if so, access a wireless local area network that meets the preset conditions, and control the target application to proceed through the wireless local area network data transmission;
  • the detection unit 601 is further specifically configured to switch the network accessed by the target application from the first wireless local area network to During the mobile network, obtain the running time of the target application in the foreground; determine that the running time exceeds a preset running time, and connect to the mobile network.
  • the detection unit 601 before detecting that the network accessed by the target application is switched from the first wireless local area network to the mobile network, the detection unit 601 is specifically configured to: The number of times the wireless local area network communication module connects to the first wireless local area network; if the number of connections is greater than a preset number of times, it is determined that the first wireless local area network is unstable.
  • the control unit 602 is specifically configured to: detect the target When the time when the application exits the foreground is greater than the reference time, turn on the wireless local area network communication module; search the wireless local area network communication module to obtain at least one wireless local area network; obtain the signal of each wireless local area network in the at least one wireless local area network Strength; select a wireless LAN network that exceeds the preset strength to connect.
  • the detection unit 602 when it is detected that a target application is running in the foreground, the detection unit 602 is specifically configured to: obtain a data stream to be processed of the target application; enable a cellular mobile network module and a wireless local area network The communication module performs offload transmission on the data stream.
  • the wireless local area network in the module when the wireless local area network communication module is in an on state, the wireless local area network in the module may be in an unconnected state or connected and then disconnected.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, which causes the computer to perform part or all of the steps of any method described in the above method embodiments ,
  • the above computer includes electronic devices.
  • Embodiments of the present application also provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium that stores the computer program, and the computer program is operable to cause the computer to perform any of the methods described in the foregoing method embodiments Some or all steps of the method.
  • the computer program product may be a software installation package, and the computer includes an electronic device.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the above-mentioned unit division is only a logical function division.
  • there may be other division modes for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a memory
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the foregoing memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , Read-Only Memory (English: Read-Only Memory, abbreviation: ROM), Random Access Device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
  • ROM Read-Only Memory
  • RAM Random Access Device
  • magnetic disk or optical disk etc.

Landscapes

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

Abstract

本申请实施例公开了一种链路连接方法,应用于电子设备,所述方法包括:在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启;在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。有利于减少链路连接消耗的时间,减少网络延迟,优化用户的游戏体验。

Description

链路连接方法及相关装置 技术领域
本申请涉及电子设备技术领域,具体涉及一种链路连接方法及相关装置。
背景技术
随着移动通信技术的发展,用户对数据通信的需求越来越大,目前市面上的智能终端在进行数据传输时,一般通过蜂窝移动网络通信或者Wi-Fi通信等方式发送数据,在移动环境有些Wi-Fi信号非常弱,或是需要认证才能上网的Wi-Fi,此时用户的手机是不能上网的,严重影响了用户的正常使用,并且随着环境的更改,手机网络的不断变化,会出现卡顿、延迟的情况,严重影响了用户使用体验。
发明内容
本申请实施例提供了一种链路连接方法及相关装置,以期提高链路连接的速度,减少网络延迟,优化用户的游戏体验。
第一方面,本申请实施例提供一种链路连接方法,应用于电子设备,所述方法包括:
在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启;
在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。
第二方面,本申请实施例提供一种链路连接装置,应用于电子设备,所述链路连接装置包括检测单元和控制单元,其中,
所述检测单元,用于在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启;
所述控制单元,用于在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
可以看出,本申请实施例中,电子设备首先在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启,其次,在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。可见,电子设备能够在运行目标应用程序时,对蜂窝移动网络和无线局域网络进行连接控制,通过中断无线局域网模块来断开无线局域网络,避免了因为无线局域网络不稳定,导致网络断开重连,进而影响目标应用程序的使用体验,能够提高链路连接的稳定性,降低网 络延迟,提高了电子设备的链路连接质量。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种电子设备所处无线通信系统的示例系统架构图;
图2是本申请实施例提供的一种链路连接方法的流程示意图;
图3是本申请实施例提供的另一种链路连接方法的流程示意图;
图4是本申请实施例提供的另一种链路连接方法的流程示意图;
图5是本申请实施例提供的一种电子设备的结构示意图;
图6是本申请实施例提供的一种链路连接装置的功能单元组成框图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以是具备数据传输能力的电子设备,该电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。
下面对本申请实施例进行详细介绍。
链路聚合,是指使设备可以同时使用两个或者两个以上的网口同时进行上网,比如在手机上通过链路聚合的同时使用Wi-Fi和数据网络来进行网络访问。android网络系统,当Wi-Fi被使能的时候,会导致数据网络不可使用(connectivityService网络评分机制导致数据网络断开),而链路聚合至少需要两个或两个以上的可用网络,所以服务等级协议(Service-Level Agreement,缩写为SLA)的前提条件就是要使Wi-Fi和数据网络共存。如图1所示,目前电子设备101可以连接数据网络103,数据网为用于传输数据业务的通信网;Wi-Fi 102,Wi-Fi是一种允许电子设备连接到一个无线局域网的技术;通常使用2.4G UHF或5G SHF ISM射频频段;以及蓝牙104,一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换(使用2.4—2.485GHz的ISM波段的UHF无线电波)等。
请参阅图2,图2是本申请实施例提供了一种链路连接方法的流程示意图,应用于电子设备,如图所示,本链路连接方法包括:
步骤201,电子设备在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启。
其中,所述目标应用程序可以为游戏应用、视频应用等,此处不做限定。
具体实现中,电子设备会通过将待处理的数据流进行拆分,通过启用蜂窝移动网络模块和无线局域网通信模块对待处理的链路连接任务进行分流传输。例如通过给数据包打上不同的mark值,从而通过匹配不同的mark值,查询不同的路由表,使数据包从不同的接口访问网络。
步骤202,在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。
其中,所述无线局域网通信模块处于开启状态时,模块中的无线局域网络可处于未连接状态或先连接后断开状态。
可以看出,本申请实施例中,电子设备首先在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启,其次,在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。可见,电子设备能够在运行目标应用程序时,对蜂窝移动网络和无线局域网络进行连接控制,通过中断无线局域网模块来断开无线局域网络,避免了因为无线局域网络不稳定,导致网络断开重连,进而影响目标应用程序的使用体验,能够提高链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
在一个可能的示例中,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,包括:确定通过所述无线局域网通信模块扫描到的至少一个无线局域网络;将所述至少一个无线局域网络加入黑名单;通过所述黑名单约束所述目标应用程序始终通过所述移动网络进行数据传输。
其中,黑名单为拒绝网络连接、不允许访问或者不允许通过验证的名单。
可见,本示例中,电子设备能够通过黑名单机制,变相将无线局域网通信模块中断,进一步的保证了目标应用程序的数据传输是通过移动网络进行,避免了在使用移动网络时,连接上无线局域网,进而导致的网络不稳定性,有利于链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
在一个可能的示例中,所述将所述至少一个无线局域网络加入黑名单之后,所述方法还包括:在检测到所述目标应用程序由所述前台退出时,生成移除指令;根据所述移除指令将所述至少一个无线局域网络从所述黑名单中移除;在检测到所述目标应用程序恢复到所述前台运行时,从所述至少一个无线局域网络中选择满足预设条件的一个无线局域网络接入,并控制所述目标应用程序通过接入的所述无线局域网络进行数据传输。
其中,预设条件可以为网络的信号强度、网络信号源与电子设备的距离及传输速率等,此处不做唯一限定。
可见,本示例中,电子设备能够灵活的根据前台运行情况对链路进行调整,在运行目标应用程序时,使用到移动网络,在退出目标应用程序时,可重新使用无线局域网,保证了在运行目标应用程序时的链路稳定性,有利于提高链路连接便利性,稳定性。
在一个可能的示例中,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序网络服务中断状态,包括:在检测到所述目标应用程序处于团战场景时,关闭所述无线局域网通信模块;在所述关闭所述无线局域网通信模块之后,所述方法还包括:在检测到所述目标应用程序由所述团战场景退出时,开启所述无线局域网通信模块,检测是否存在满足预设条件的无线局域网络;若是,则接入满足预设条件的一个无线局域网络,并控制所述目标应用程序通过所述无线局域网络进行数据传输;若否,则保持所述目标应用程序接入所述移动网络的状态。
可见,本示例中,电子设备能够根据团战场景,灵活的控制两个网络的切换与连接,保证了在运行目标应用程序时的链路稳定性,有利于提高链路连接便利性,稳定性。
电子设备能够基于任务类型或无线通信模块的信道质量先确定链路连接任务与无线通 信模块支架的对应关系,再根据通道数量和无线通信模块的信道质量参数得出链路连接任务拆分的数据分组的数据量。保证了大数据匹配优质信道,小数据匹配较差信道,保证了链路连接速度的提高,避免网络延迟。
在一个可能的示例中,在所述检测到前台运行有目标应用程序之前,所述方法还包括:在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络时,获取所述目标应用程序在前台的运行时间;确定所述运行时间超过预设运行时间,连接所述移动网络。
其中,预设运行时间可以为一分钟、三分钟、五分钟等,此处不做唯一限定。
可见,本示例中,电子设备可通过运行时间,确定用户是否进入目标应用程序,进而更改网络链路连接,有利于提高链路连接便利性,稳定性。
在一个可能的示例中,在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络之前,所述方法还包括:检测在参考时间段内通过所述无线局域网通信模块连接所述第一无线局域网络的次数;若所述连接次数大于预设次数,则确定所述第一无线局域网络不稳定。
其中,预设次数可以为十次、五次、八次等,此处不做唯一限定。
其中,电子设备根据参考时间段和连接次数可以得到连接频率,当连接频率达到百分之七十以上时,就确定当前无线局域网络不稳定。
可见,本示例中,电子设备根据网络的属性,能判断出稳定性,进而中断无线局域网络的连接,保证了链路连接质量,提高链路连接的速度,避免延迟。
在一个可能的示例中,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态之后,所述方法还包括:在检测到所述目标应用程序退出前台的时间大于参考时间时,开启无线局域网通信模块;对所述无线局域网通信模块进行搜索,得到至少一个无线局域网络;获取所述至少一个无线局域网络中每个无线局域网络的信号强度;选取超过预设强度的无线局域网络进行连接。
其中,参考时间可以为一分钟、两分钟或三分钟等,此处不做唯一限定。
其中,预设强度可以为厂商自行设定或是根据当前所有无线局域网络的信号强度的平均值进行动态设定,此处不做唯一限定。
可见,本示例中,电子设备在检测到目标应用程序退出后,及时的调整连接链路,避免了在移动网络有延迟的情况下,还继续使用的情况,有利于链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
在一个可能的示例中,所述在检测到前台运行有目标应用程序时,包括:获取所述目标应用程序的待处理的数据流;启用蜂窝移动网络模块和无线局域网通信模块对所述数据流进行分流传输。
举例来说,通过给数据包打上不同的mark值,从而通过匹配不同的mark值,查询不同的路由表,使数据包从不同的接口访问网络。
在一个可能的示例中,所述无线局域网通信模块处于开启状态时,模块中的无线局域网络可处于未连接状态或先连接后断开状态。
与上述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种链路连接方法的流程示意图,应用于如图1所述的电子设备,如图所示,本链路连接方法包括:
S301,电子设备在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启。
S302,所述电子设备在检测到所述电子设备的无线局域网通信模块处于开启状态时,确定通过所述无线局域网通信模块扫描到的至少一个无线局域网络。
S303,所述电子设备将所述至少一个无线局域网络加入黑名单。
S304,所述电子设备通过所述黑名单约束所述目标应用程序始终通过所述移动网络进行 数据传输。
可以看出,本申请实施例中,电子设备首先在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启,其次,在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。可见,电子设备能够在运行目标应用程序时,对蜂窝移动网络和无线局域网络进行连接控制,通过中断无线局域网模块来断开无线局域网络,避免了因为无线局域网络不稳定,导致网络断开重连,进而影响目标应用程序的使用体验,能够提高链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
此外,电子设备能够通过黑名单机制,变相将无线局域网通信模块中断,进一步的保证了目标应用程序的数据传输是通过移动网络进行,避免了在使用移动网络时,连接上无线局域网,进而导致的网络不稳定性,有利于链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
与上述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种链路连接方法的流程示意图,应用于电子设备,如图所示,本链路连接方法包括:
S401,电子设备在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启。
S402,所述电子设备在检测到所述电子设备的无线局域网通信模块处于开启状态时,在检测到所述目标应用程序处于团战场景时,关闭所述无线局域网通信模块。
S403,所述电子设备在检测到所述目标应用程序退出前台的时间大于参考时间时,开启无线局域网通信模块。
S404,所述电子设备对所述无线局域网通信模块进行搜索,得到至少一个无线局域网络。
S405,所述电子设备获取所述至少一个无线局域网络中每个无线局域网络的信号强度。
S406,所述电子设备选取超过预设强度的无线局域网络进行连接。
可以看出,本申请实施例中,电子设备首先在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启,其次,在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。可见,电子设备能够在运行目标应用程序时,对蜂窝移动网络和无线局域网络进行连接控制,通过中断无线局域网模块来断开无线局域网络,避免了因为无线局域网络不稳定,导致网络断开重连,进而影响目标应用程序的使用体验,能够提高链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
此外,电子设备能够根据团战场景,灵活的控制两个网络的切换与连接,保证了在运行目标应用程序时的链路稳定性,有利于提高链路连接便利性,稳定性。
此外,电子设备在检测到目标应用程序退出后,及时的调整连接链路,避免了在移动网络有延迟的情况下,还继续使用的情况,有利于链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
与上述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,如图所示,所述电子设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令:
在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启;
在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通 信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的部分或全部时段。
可以看出,本申请实施例中,电子设备首先在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启,其次,在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。可见,电子设备能够在运行目标应用程序时,对蜂窝移动网络和无线局域网络进行连接控制,通过中断无线局域网模块来断开无线局域网络,避免了因为无线局域网络不稳定,导致网络断开重连,进而影响目标应用程序的使用体验,能够提高链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
在一个可能的示例中,在所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态方面,所述程序中的指令具体用于执行以下操作:确定通过所述无线局域网通信模块扫描到的至少一个无线局域网络;将所述至少一个无线局域网络加入黑名单;通过所述黑名单约束所述目标应用程序始终通过所述移动网络进行数据传输。
在一个可能的示例中,在所述将所述至少一个无线局域网络加入黑名单之后,所述程序中的指令还用于执行以下操作:在检测到所述目标应用程序由所述前台退出时,生成移除指令;根据所述移除指令将所述至少一个无线局域网络从所述黑名单中移除;在检测到所述目标应用程序恢复到所述前台运行时,从所述至少一个无线局域网络中选择满足预设条件的一个无线局域网络接入,并控制所述目标应用程序通过接入的所述无线局域网络进行数据传输。
在一个可能的示例中,在所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序网络服务中断状态方面,所述程序中的指令具体用于执行以下操作:在检测到所述目标应用程序处于团战场景时,关闭所述无线局域网通信模块;在所述关闭所述无线局域网通信模块之后,所述方法还包括:在检测到所述目标应用程序由所述团战场景退出时,开启所述无线局域网通信模块,检测是否存在满足预设条件的无线局域网络;若是,则接入满足预设条件的一个无线局域网络,并控制所述目标应用程序通过所述无线局域网络进行数据传输;若否,则保持所述目标应用程序接入所述移动网络的状态。
在一个可能的示例中,在所述检测到前台运行有目标应用程序之前,所述程序中的指令还用于执行以下操作:在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络时,获取所述目标应用程序在前台的运行时间;确定所述运行时间超过预设运行时间,连接所述移动网络。
在一个可能的示例中,在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络之前,所述程序中的指令还用于执行以下操作:检测在参考时间段内通过所述无线局域网通信模块连接所述第一无线局域网络的次数;若所述连接次数大于预设次数,则确定所述第一无线局域网络不稳定。在一个可能的示例中,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态之后,所述程序中的指令还用于执行以下操作:在检测到所述目标应用程序退出前台的时间大于参考时间时,开启无线局域网通信模块;对所述无线局域网通信模块进行搜索,得到至少一个无线局域网络;获取所述至少一个无线局域网络中每个无线局域网络的信号强度;选取超过预设强度的无线局域网络进行连接。
在一个可能的示例中,所述在检测到前台运行有目标应用程序时,所述程序中的指令还用于执行以下操作:获取所述目标应用程序的待处理的数据流;启用蜂窝移动网络模块和无线局域网通信模块对所述数据流进行分流传输。
在一个可能的示例中,所述无线局域网通信模块处于开启状态时,模块中的无线局域网络可处于未连接状态或先连接后断开状态。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域 技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
图6是本申请实施例中所涉及的链路连接装置600的功能单元组成框图。该链路连接装置600应用于电子设备,包括检测单元601和控制单元602,其中,
所述检测单元601,用于在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启;
所述控制单元602,用于在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。
其中,所述链路连接装置600还可以包括存储单元603,用于存储电子设备的程序代码和数据。存储单元603可以是存储器。
可以看出,本申请实施例中,电子设备首先在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启,其次,在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。可见,电子设备能够在运行目标应用程序时,对蜂窝移动网络和无线局域网络进行连接控制,通过中断无线局域网模块来断开无线局域网络,避免了因为无线局域网络不稳定,导致网络断开重连,进而影响目标应用程序的使用体验,能够提高链路连接的稳定性,降低网络延迟,提高了电子设备的链路连接质量。
在一个可能的示例中,在所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态方面,所述控制单元602具体用于:确定通过所述无线局域网通信模块扫描到的至少一个无线局域网络;将所述至少一个无线局域网络加入黑名单;通过所述黑名单约束所述目标应用程序始终通过所述移动网络进行数据传输。
在一个可能的示例中,在所述将所述至少一个无线局域网络加入黑名单之后,所述控制单元602还具体用于:在检测到所述目标应用程序由所述前台退出时,生成移除指令;根据所述移除指令将所述至少一个无线局域网络从所述黑名单中移除;在检测到所述目标应用程序恢复到所述前台运行时,从所述至少一个无线局域网络中选择满足预设条件的一个无线局域网络接入,并控制所述目标应用程序通过接入的所述无线局域网络进行数据传输。
在一个可能的示例中,在所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序网络服务中断状态方面,所述控制单元602具体用于:在检测到所述目标应用程序处于团战场景时,关闭所述无线局域网通信模块;在所述关闭所述无线局域网通信模块之后,所述方法还包括:在检测到所述目标应用程序由所述团战场景退出时,开启所述无线局域网通信模块,检测是否存在满足预设条件的无线局域网络;若是,则接入满足预设条件的一个无线局域网络,并控制所述目标应用程序通过所述无线局域网络进行数据传输;
若否,则保持所述目标应用程序接入所述移动网络的状态。
在一个可能的示例中,在所述检测到前台运行有目标应用程序之前,所述检测单元601还具体用于:在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络时,获取所述目标应用程序在前台的运行时间;确定所述运行时间超过预设运行时间,连 接所述移动网络。
在一个可能的示例中,在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络之前,所述检测单元601具体用于:检测在参考时间段内通过所述无线局域网通信模块连接所述第一无线局域网络的次数;若所述连接次数大于预设次数,则确定所述第一无线局域网络不稳定。
在一个可能的示例中,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态之后,所述控制单元602具体用于:在检测到所述目标应用程序退出前台的时间大于参考时间时,开启无线局域网通信模块;对所述无线局域网通信模块进行搜索,得到至少一个无线局域网络;获取所述至少一个无线局域网络中每个无线局域网络的信号强度;选取超过预设强度的无线局域网络进行连接。
在一个可能的示例中,所述在检测到前台运行有目标应用程序时,所述检测单元602具体用于:获取所述目标应用程序的待处理的数据流;启用蜂窝移动网络模块和无线局域网通信模块对所述数据流进行分流传输。
在一个可能的示例中,所述无线局域网通信模块处于开启状态时,模块中的无线局域网络可处于未连接状态或先连接后断开状态。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random  Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种链路连接方法,其特征在于,应用于电子设备,所述方法包括:
    在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启;
    在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。
  2. 根据权利要求1所述的方法,其特征在于,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,包括:
    确定通过所述无线局域网通信模块扫描到的至少一个无线局域网络;
    将所述至少一个无线局域网络加入黑名单;
    通过所述黑名单约束所述目标应用程序始终通过所述移动网络进行数据传输。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述至少一个无线局域网络加入黑名单之后,所述方法还包括:
    在检测到所述目标应用程序由所述前台退出时,生成移除指令;
    根据所述移除指令将所述至少一个无线局域网络从所述黑名单中移除;
    在检测到所述目标应用程序恢复到所述前台运行时,从所述至少一个无线局域网络中选择满足预设条件的一个无线局域网络接入,并控制所述目标应用程序通过接入的所述无线局域网络进行数据传输。
  4. 根据权利要求1所述的方法,其特征在于,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序网络服务中断状态,包括:
    在检测到所述目标应用程序处于团战场景时,关闭所述无线局域网通信模块;
    在所述关闭所述无线局域网通信模块之后,所述方法还包括:
    在检测到所述目标应用程序由所述团战场景退出时,开启所述无线局域网通信模块,检测是否存在满足预设条件的无线局域网络;
    若是,则接入满足预设条件的一个无线局域网络,并控制所述目标应用程序通过所述无线局域网络进行数据传输;
    若否,则保持所述目标应用程序接入所述移动网络的状态。
  5. 根据权利要求1所述的方法,其特征在于,在所述检测到前台运行有目标应用程序时,所述方法还包括:
    在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络时,获取所述目标应用程序在前台的运行时间;
    确定所述运行时间超过预设运行时间,连接所述移动网络。
  6. 根据权利要求5所述的方法,其特征在于,在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络之前,所述方法还包括:
    检测在参考时间段内通过所述无线局域网通信模块连接所述第一无线局域网络的次数;
    若所述连接次数大于预设次数,则确定所述第一无线局域网络不稳定。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态之后,所述方法还包括:
    在检测到所述目标应用程序退出前台的时间大于参考时间时,开启无线局域网通信模块;
    对所述无线局域网通信模块进行搜索,得到至少一个无线局域网络;
    获取所述至少一个无线局域网络中每个无线局域网络的信号强度;
    选取超过预设强度的无线局域网络进行连接。
  8. 根据权利要求1所述的方法,其特征在于,所述在检测到前台运行有目标应用程序时,包括:
    获取所述目标应用程序的待处理的数据流;
    启用蜂窝移动网络模块和无线局域网通信模块对所述数据流进行分流传输。
  9. 根据权利要求1所述的方法,其特征在于,所述无线局域网通信模块处于开启状态时,模块中的无线局域网络可处于未连接状态或先连接后断开状态。
  10. 一种链路连接装置,其特征在于,应用于电子设备,所述链路连接装置包括检测单元和控制单元,其中,
    所述检测单元,用于在检测到前台运行有目标应用程序时,检测所述电子设备的无线局域网通信模块是否开启;
    所述控制单元,用于在检测到所述电子设备的无线局域网通信模块处于开启状态时,控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态,所述预设时段为所述电子设备前台运行所述目标应用程序的时段。
  11. 根据权利要求10所述的装置,其特征在于,在所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态方面,所述控制单元具体用于:确定通过所述无线局域网通信模块扫描到的至少一个无线局域网络;将所述至少一个无线局域网络加入黑名单;通过所述黑名单约束所述目标应用程序始终通过所述移动网络进行数据传输。
  12. 根据权利要求11所述的装置,其特征在于,所述将所述至少一个无线局域网络加入黑名单之后,所述控制单元还具体用于:在检测到所述目标应用程序由所述前台退出时,生成移除指令;根据所述移除指令将所述至少一个无线局域网络从所述黑名单中移除;在检测到所述目标应用程序恢复到所述前台运行时,从所述至少一个无线局域网络中选择满足预设条件的一个无线局域网络接入,并控制所述目标应用程序通过接入的所述无线局域网络进行数据传输。
  13. 根据权利要求10所述的装置,其特征在于,在控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序网络服务中断状态方面,所述控制单元具体用于:在检测到所述目标应用程序处于团战场景时,关闭所述无线局域网通信模块;在所述关闭所述无线局域网通信模块之后,所述方法还包括:在检测到所述目标应用程序由所述团战场景退出时,开启所述无线局域网通信模块,检测是否存在满足预设条件的无线局域网络;若是,则接入满足预设条件的一个无线局域网络,并控制所述目标应用程序通过所述无线局域网络进行数据传输;若否,则保持所述目标应用程序接入所述移动网络的状态。
  14. 根据权利要求10所述的装置,其特征在于,在所述检测到前台运行有目标应用程序时,所述检测单元还具体用于:在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络时,获取所述目标应用程序在前台的运行时间;确定所述运行时间超过预设运行时间,连接所述移动网络。
  15. 根据权利要求14所述的装置,其特征在于,在检测到所述目标应用程序接入的网络由第一无线局域网络切换为所述移动网络之前,所述检测单元还具体用于:检测在参考时间段内通过所述无线局域网通信模块连接所述第一无线局域网络的次数;若所述连接次数大于预设次数,则确定所述第一无线局域网络不稳定。
  16. 根据权利要求10-14任一项所述的装置,其特征在于,,所述控制所述无线局域网通信模块在预设时段内保持针对所述目标应用程序的网络服务中断状态之后,所述控制单元还具体用于:在检测到所述目标应用程序退出前台的时间大于参考时间时,开启无线局域网通信模块;对所述无线局域网通信模块进行搜索,得到至少一个无线局域网络;获取所述至少一个无线局域网络中每个无线局域网络的信号强度;选取超过预设强度的无线局域网络进行连接。
  17. 根据权利要求10所述的装置,其特征在于,所述在检测到前台运行有目标应用程序时,所述检测单元具体用于:获取所述目标应用程序的待处理的数据流;启用蜂窝移动网络模块和无线局域网通信模块对所述数据流进行分流传输。
  18. 根据权利要求10所述的方法,其特征在于,所述无线局域网通信模块处于开启状态 时,模块中的无线局域网络可处于未连接状态或先连接后断开状态。
  19. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2019/108578 2018-10-15 2019-09-27 链路连接方法及相关装置 WO2020078199A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811197595.9A CN109287001B (zh) 2018-10-15 2018-10-15 链路连接方法及相关装置
CN201811197595.9 2018-10-15

Publications (1)

Publication Number Publication Date
WO2020078199A1 true WO2020078199A1 (zh) 2020-04-23

Family

ID=65176882

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/108578 WO2020078199A1 (zh) 2018-10-15 2019-09-27 链路连接方法及相关装置

Country Status (2)

Country Link
CN (1) CN109287001B (zh)
WO (1) WO2020078199A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109287001B (zh) * 2018-10-15 2021-04-09 Oppo广东移动通信有限公司 链路连接方法及相关装置
CN112105058B (zh) * 2019-02-12 2023-07-04 Oppo广东移动通信有限公司 链路连接方法及相关装置
CN112261680A (zh) * 2020-10-22 2021-01-22 珠海格力电器股份有限公司 调整网络的方法、装置、设备及存储介质
CN114500367B (zh) * 2021-12-21 2023-10-24 联想(北京)有限公司 一种路径选择方法及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2456264A2 (en) * 2010-11-22 2012-05-23 Samsung Electronics Co., Ltd Apparatus and method for connecting an access point in portable terminal
CN104821992A (zh) * 2015-05-25 2015-08-05 广东欧珀移动通信有限公司 一种手机自动切换网络连接类型的方法及装置
CN107182055A (zh) * 2017-06-22 2017-09-19 深圳传音通讯有限公司 移动终端网络连接处理方法及移动终端
CN107302623A (zh) * 2017-05-05 2017-10-27 广东小天才科技有限公司 一种移动终端网络连接方式的配置方法及装置
CN107734577A (zh) * 2017-09-25 2018-02-23 北京小米移动软件有限公司 网络功能控制方法和网络功能控制装置
CN108322943A (zh) * 2018-01-30 2018-07-24 努比亚技术有限公司 一种局域网的分配方法、终端及存储介质
CN109287001A (zh) * 2018-10-15 2019-01-29 Oppo广东移动通信有限公司 链路连接方法及相关装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852937B (zh) * 2014-02-14 2019-09-13 腾讯科技(北京)有限公司 用于移动应用的网络接入方法和装置
CN103997768B (zh) * 2014-05-16 2018-01-16 广东欧珀移动通信有限公司 一种防止接入无效Wi‑Fi热点的方法及装置
US9232013B1 (en) * 2014-09-05 2016-01-05 Openpeak Inc. Method and system for enabling data usage accounting
CN107396365A (zh) * 2017-06-29 2017-11-24 宇龙计算机通信科技(深圳)有限公司 数据传输方法及移动终端
CN108322599B (zh) * 2018-01-23 2020-09-01 维沃移动通信有限公司 一种网络访问方法和移动终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2456264A2 (en) * 2010-11-22 2012-05-23 Samsung Electronics Co., Ltd Apparatus and method for connecting an access point in portable terminal
CN104821992A (zh) * 2015-05-25 2015-08-05 广东欧珀移动通信有限公司 一种手机自动切换网络连接类型的方法及装置
CN107302623A (zh) * 2017-05-05 2017-10-27 广东小天才科技有限公司 一种移动终端网络连接方式的配置方法及装置
CN107182055A (zh) * 2017-06-22 2017-09-19 深圳传音通讯有限公司 移动终端网络连接处理方法及移动终端
CN107734577A (zh) * 2017-09-25 2018-02-23 北京小米移动软件有限公司 网络功能控制方法和网络功能控制装置
CN108322943A (zh) * 2018-01-30 2018-07-24 努比亚技术有限公司 一种局域网的分配方法、终端及存储介质
CN109287001A (zh) * 2018-10-15 2019-01-29 Oppo广东移动通信有限公司 链路连接方法及相关装置

Also Published As

Publication number Publication date
CN109287001B (zh) 2021-04-09
CN109287001A (zh) 2019-01-29

Similar Documents

Publication Publication Date Title
WO2020078199A1 (zh) 链路连接方法及相关装置
WO2020147627A1 (zh) 链路选取方法及相关装置
WO2020164520A1 (zh) 数据包分流方法、装置、移动终端及存储介质
WO2020143680A1 (zh) 数据传输方法及相关装置
US11627507B2 (en) Network handover method and apparatus
WO2020147606A1 (zh) 无线漫游的方法及装置
EP3614786B1 (en) Data transmission method and apparatus
CN108834223B (zh) 一种切换WiFi频段的方法及电子设备
WO2018054385A1 (zh) 一种切换网络的方法及装置
CN109274596B (zh) 数据传输方法及相关装置
WO2020134720A1 (zh) 数据传输控制方法及相关产品
WO2020098410A1 (zh) 传输控制方法及相关装置
WO2020098411A1 (zh) 电磁干扰控制方法及相关装置
JP6961708B2 (ja) ネットワーク接続方法及び装置
WO2020125202A1 (zh) 数据传输方法及相关装置
WO2020134721A1 (zh) 数据传输方法及相关装置
WO2020114048A1 (zh) 数据传输方法及相关装置
WO2020164351A1 (zh) 链路连接方法及相关装置
EP3477997B1 (en) Method for controlling data transmission, device, and storage medium
WO2018218822A1 (zh) 一种无线网络频段连接方法和无线接入设备
US20150085666A1 (en) Communication Apparatus, Control Apparatus, Communication System, Communication Method, Method for Controlling Communication Apparatus, and Program
WO2020093823A1 (zh) 电磁干扰控制方法及相关装置
WO2024007752A1 (zh) 网络连接方法、移动终端及存储介质
US12010747B2 (en) Method for link connection, electronic device and storage medium
RU2020110522A (ru) Способ и устройство обработки сеанса

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: 19874347

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19874347

Country of ref document: EP

Kind code of ref document: A1