WO2021083084A1 - 数据传输方法及电子设备 - Google Patents

数据传输方法及电子设备 Download PDF

Info

Publication number
WO2021083084A1
WO2021083084A1 PCT/CN2020/123725 CN2020123725W WO2021083084A1 WO 2021083084 A1 WO2021083084 A1 WO 2021083084A1 CN 2020123725 W CN2020123725 W CN 2020123725W WO 2021083084 A1 WO2021083084 A1 WO 2021083084A1
Authority
WO
WIPO (PCT)
Prior art keywords
networks
application
electronic device
target application
target
Prior art date
Application number
PCT/CN2020/123725
Other languages
English (en)
French (fr)
Inventor
罗桂钊
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021083084A1 publication Critical patent/WO2021083084A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a data transmission method and electronic equipment.
  • electronic devices such as smart phones or tablet computers can usually only transmit data of all currently running applications (ie applications) through one network (such as a wireless fidelity (Wireless Fidelity, wifi) network or mobile network) at the same time.
  • a wireless fidelity (Wireless Fidelity, wifi) network or mobile network) such as a Wi-Fi module (or Wi-Fi network interface), which is used to support the electronic device to communicate with a Wi-Fi access point at the same time to transmit application information through a Wi-Fi network. data.
  • the network interface currently used by the electronic device is usually the default network of the system. In this way, even if the electronic device runs a large number of applications, or the network quality of the system default network is poor, the electronic device will continue to use the system default network to transmit all application data. As a result, the flexibility of data transmission in the process of running the application of the electronic device will be poor.
  • the embodiments of the present application provide a data transmission method and an electronic device to solve the problem of poor flexibility of data transmission in the process of running an application program by the electronic device.
  • an embodiment of the present application provides a data transmission method.
  • the method includes: when the electronic device is running the target application, using N first networks to transmit the data of the target application; wherein, the N first networks are The M networks in which the electronic device establishes a communication connection; the M networks include at least two Wi-Fi networks; M is a positive integer greater than or equal to 2, and N is a positive integer less than or equal to M.
  • an embodiment of the present application also provides an electronic device, the electronic device includes: a transmission module; a transmission module for transmitting data of the target application using N first networks when the electronic device is running the target application ;
  • N first networks are networks in M networks that currently establish communication connections with electronic devices;
  • M networks include at least two Wi-Fi networks;
  • M is a positive integer greater than or equal to 2, and N is less than Or a positive integer equal to M.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program When the computer program is executed by the processor, the following The steps of the data transmission method described in one aspect.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the data transmission method as described in the first aspect are implemented. .
  • the electronic device can be supported to establish communication connections with M networks at the same time, and the M networks include at least two Wi-Fi networks.
  • the electronic device may use N first networks to transmit the data of the target application, and the number of the N first networks is one or more, and they are corresponding to the target application.
  • Network not necessarily the default network of the system. In this way, the flexibility of using the network in the data transmission process of the electronic device is improved, and the possibility of a certain network being busy is reduced to a certain extent, and the stability of the running application of the electronic device is improved.
  • FIG. 1 is a schematic structural diagram of a possible Android operating system provided by an embodiment of the application
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of this application.
  • FIG. 3 is a schematic diagram of displaying content of an electronic device according to an embodiment of the application.
  • FIG. 4 is a schematic structural diagram of a possible electronic device provided by an embodiment of this application.
  • FIG. 5 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
  • first and second in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first network and the second network are used to distinguish different networks, rather than to describe the specific order of the networks.
  • the data transmission method provided in the embodiments of the present application can support the electronic device to establish communication connections with M networks at the same time, and the M networks include at least two Wi-Fi networks.
  • the electronic device may use N first networks to transmit the data of the target application, and the number of the N first networks is one or more, and they are corresponding to the target application.
  • Network not necessarily the default network of the system. In this way, the flexibility of using the network in the process of data transmission is improved, and the possibility of a certain network being busy is reduced to a certain extent, and the stability of the running application of the electronic device is improved.
  • the electronic device in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device.
  • Mobile electronic devices can be mobile phones, tablet computers, notebook computers, handheld computers, vehicle terminals, wearable devices, ultra-mobile personal computers (UMPC), netbooks, or personal digital assistants (personal digital assistants, PDAs), etc.
  • the non-mobile electronic device may be a personal computer (PC), a television (television, TV), a teller machine or a self-service machine, etc.; the embodiment of the application does not specifically limit it.
  • the execution subject may be an electronic device, or the central processing unit (CPU) of the electronic device, or the electronic device used to perform data transmission The control module of the method.
  • an electronic device executes a data transmission method as an example to illustrate the data transmission method provided in the embodiment of the present application.
  • the electronic device in the embodiment of the present application may be an electronic device with an operating system.
  • the operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the following takes the Android operating system as an example to introduce the software environment to which the data transmission method provided in the embodiments of the present application is applied.
  • FIG. 1 it is a schematic structural diagram of a possible Android operating system provided by an embodiment of this application.
  • the architecture of the Android operating system includes 4 layers, namely: application layer, application framework layer, system runtime library layer, and kernel layer (specifically, it may be the Linux kernel layer).
  • the application layer includes various applications (including system applications and third-party applications) in the Android operating system.
  • the application framework layer is the framework of the application. Developers can develop some applications based on the application framework layer while complying with the development principles of the application framework. For example, applications such as system setting applications, system chat applications, and system camera applications. Applications such as third-party settings applications, third-party camera applications, and third-party chat applications.
  • the system runtime library layer includes a library (also called a system library) and an Android operating system runtime environment.
  • the library mainly provides various resources needed by the Android operating system.
  • the Android operating system operating environment is used to provide a software environment for the Android operating system.
  • the kernel layer is the operating system layer of the Android operating system and belongs to the lowest level of the Android operating system software.
  • the kernel layer is based on the Linux kernel to provide core system services and hardware-related drivers for the Android operating system.
  • a developer can develop a software program that implements the data transmission method provided by the embodiment of the application based on the system architecture of the Android operating system shown in FIG. 1, so that the data
  • the transmission method can be run based on the Android operating system as shown in FIG. 1. That is, the processor or the electronic device can implement the data transmission method provided in the embodiment of the present application by running the software program in the Android operating system.
  • the data transmission method provided in the embodiment of the present application will be described in detail below with reference to the flowchart of the data transmission method shown in FIG. 2.
  • the logical sequence of the data transmission method provided by the embodiment of the present application is shown in the method flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • the data transmission method shown in FIG. 2 may include S201' and S201:
  • the electronic device uses N first networks to transmit data of the target application.
  • the N first networks are the networks in the M networks where the electronic device currently establishes a communication connection;
  • the M networks include at least two Wi-Fi networks; M is a positive integer greater than or equal to 2, and N is less than or equal to Positive integer of M.
  • the M networks may include at least two Wi-Fi networks and mobile data networks.
  • the Wi-Fi network provided in the embodiment of the present application may be a wireless fidelity (ie, wifi) network.
  • the electronic device may include multiple network interfaces (or network modules), such as M network interfaces, and support the electronic device to connect to one network through each network interface to connect multiple networks (such as The above M networks).
  • M network interfaces or network modules
  • M network interfaces support the electronic device to connect to one network through each network interface to connect multiple networks (such as The above M networks).
  • the electronic device allocates a network to the target application, and specifically allocates a network interface to the target application.
  • the electronic device may allocate a network to the target application when it starts to run the target application.
  • the network interface is an interface that can communicate with software, which can correspond to an actual hardware interface or a virtual interface of software. Specifically, the network interface is used to support the electronic device to perform data transmission and communication.
  • the aforementioned N may be a preset value, such as 1 or 2.
  • the specific value of N may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
  • At least two Wi-Fi networks can be connected to the electronic device provided in the embodiments of the present application, so that the electronic device can transmit data through at least two Wi-Fi networks at the same time; while the electronic device in the related technology includes only one Wi-Fi network interface, that is, electronic devices can only transmit data through one Wi-Fi network at a time.
  • the electronic device when the electronic device currently establishes communication connections to M networks, it can use M networks to transmit data at the same time. Wherein, the electronic device can transmit data of the target application through N first networks corresponding to the target application.
  • the foregoing M networks may include the system default network and other networks.
  • the aforementioned N first networks may be the default networks of the system, or the other networks.
  • the target application may include one or more applications.
  • the target application is taken as an example for description.
  • the target application is part or all of the applications currently running on the electronic device.
  • the networks allocated by electronic devices for different applications may be the same or different.
  • the N first networks allocated by the electronic device may change. That is, electronic devices can dynamically allocate different networks for different running applications to support different applications to use different networks to transmit data.
  • the electronic device allocates the N first networks corresponding to the target application to the target application, which may be at least one network other than the system default network, so that the data of the target application is transmitted normally and the stability of the target application operation is ensured.
  • throughput is used to indicate the amount of data transmitted in 1 second.
  • the data transmission method provided in the embodiments of the present application can support the electronic device to establish communication connections with M networks at the same time, and the M networks include at least two Wi-Fi networks.
  • the electronic device may use N first networks to transmit the data of the target application, and the number of the N first networks is one or more, and they are corresponding to the target application.
  • Network not necessarily the default network of the system. In this way, the flexibility of using the network in the process of data transmission is improved, and the possibility of a certain network being busy is reduced to a certain extent, and the stability of the running application of the electronic device is improved.
  • the above N first networks are determined according to the target mode; the target mode is used to indicate that the user-defined network is determined as the N first networks (Denoted as method 1); or, used to indicate that N first networks are determined according to the priority of the target application and the network quality of the M networks.
  • the higher the priority, the better the network quality of the network used by the application (denoted as the method 2).
  • the user-defined network may be a network required by the user, such as a network with the best current network quality.
  • the electronic device can real-timely allocate networks for running applications according to changes in running applications and network quality of different networks, so that data of running applications can be transmitted through the redistributed network.
  • applications with a higher priority are generally applications with higher user requirements, such as applications that users use more frequently, or applications that require higher operational stability. In this way, assigning applications with better network quality to applications with higher priority is beneficial to improving the stability of application operation.
  • the network quality may be measured by the data transmission rate and/or data retransmission rate of the network.
  • the data transmission rate of the network includes a Layer 2 retransmission rate and/or a Transmission Control Protocol (Transmission Control Protocol, TCP) retransmission rate
  • the data retransmission rate of the network is a Layer 2 transmission rate
  • the second layer retransmission refers to the situation that the electronic device uses the Wi-Fi module (ie Wi-Fi network) to send a data packet to the Wi-Fi wireless access point, and the electronic device does not receive the Wi-Fi for various reasons.
  • the acknowledgment character (Acknowledgement, ACK) returned by the Fi wireless access point triggers the retransmission of the data packet.
  • the second-layer retransmission rate refers to the proportion of the number of data packets retransmitted by the electronic device in a period of time to the number of all sent data packets.
  • the second layer transmission rate refers to the transmission rate of data packets in the wireless medium.
  • TCP retransmission refers to the situation where the TCP data packet sent by the electronic device does not receive the ACK packet returned by the server for various reasons, which triggers the retransmission of the TCP data packet.
  • the TCP retransmission rate refers to the ratio of the number of TCP retransmitted packets to the total number of sent packets in a period of time.
  • the electronic device adopts a socket to realize data transmission through the network.
  • the socket is used to indicate that two programs (such as applications) on the network realize the exchange of data through a two-way communication connection, which is specifically used for the connection between the two ends of the communication.
  • the socket is mainly used for communication between the application client of the electronic device and the remote server.
  • the electronic device can determine the target mode of the N first networks corresponding to the target application in multiple ways, the flexibility of using the network during data transmission can be further improved.
  • one application has one attribute parameter, and different application priorities are determined according to the attribute parameters of each application.
  • one attribute parameter includes at least one of the following: whether the application is running in the foreground, whether the application is an application in a preset list, and the application type of the application.
  • the priority of the target application is determined according to the target parameter; the target parameter includes at least one of the following: whether the target application is running in the foreground, whether the target application is an application in a preset list, and the application type of the target application.
  • the target parameter is the attribute parameter of the target application.
  • Example 1 when the target parameter includes whether the target application is running in the foreground (denoted as parameter 1), that is, when the target parameter is used to indicate whether the target application is running in the foreground, the electronic device can assign the highest network quality to the application running in the foreground.
  • a good network allocates M networks other than this one among the M networks for applications running in the background.
  • the application running in the foreground refers to the application that the user is interacting with and displayed in front of the screen.
  • An application running in the background refers to an application that the user has not currently interacted with, is not displayed on the screen, but is still active.
  • the electronic device For example, if the electronic device is running in the background and is downloading an application with a large amount of data (such as a movie), it will occupy the bandwidth of the network corresponding to the application running in the background; at this time, if the electronic device is also running online in the foreground
  • the application of the game against the game because the application running in the foreground and the application running in the background use a different network, so that the application running in the foreground will not be affected by the downloading video of the application running in the background.
  • Example 2 when the target parameter includes whether the target application is an application in the preset list (denoted as parameter 2), that is, the target parameter is used to indicate whether the target application is an application in the preset list, and the The priority of the application is higher than the priority of the application not in the preset list.
  • the preset list may be user-defined or preset by the electronic device system.
  • the preset list may include applications of certain application types, such as applications including online games and instant messaging.
  • the user can manually control the electronic device to add some applications to the preset list.
  • Example 3 when the target parameter includes the application type of the target application (denoted as parameter 3), that is, the target parameter is used to indicate the application type of the target application, if the electronic device runs multiple applications of different application types, the electronic device It is possible to assign different networks with successively lower network quality to different applications with successively lower priorities of application types. If the electronic device runs one or more applications of the same application type, the electronic device may allocate the same network to the multiple applications of the same application type, for example, allocate the network with the best network quality.
  • parameter 3 the application type of the target application
  • the electronic device may allocate the same network to the multiple applications of the same application type, for example, allocate the network with the best network quality.
  • the application types may include instant messaging, news information, online games, video playback, etc.
  • the application types provided in the embodiments of the present application include but are not limited to the types listed above. For example, the priorities of online games, video playback, instant messaging, and news applications are sequentially lowered.
  • the electronic device may use one or more of the target parameters to determine the priority of the application (such as the target application).
  • the target parameter including multiple parameters that affect the priority of the application refer to the relevant description of the priority of each target parameter affecting the application in the foregoing embodiment, which is here in the embodiment of the present application. Do not describe in detail.
  • the N first networks are the second networks with the best network quality among the M networks; when the target application is In the case of running in the background, the N first networks are other networks among the M networks except the second network.
  • the second network is the first one or more of the M networks with network quality from high to bottom.
  • the applications running in the foreground and the applications in the preset list are all applications with high user demand, while the applications running in the background are applications with relatively low user demand. Therefore, when the target application is running in the foreground and is an application in the preset list, the electronic device allocates the second network with the best network quality to the target application; when the target application is running in the background, the electronic device is the target application Allocating networks other than the second network can improve the stability of running applications of electronic devices and at the same time increase the flexibility of using the network for data transmission.
  • the data transmission method provided in the embodiment of the present application may further include S202 and S203 after the above S201:
  • the electronic device uses N third networks to transmit data of the target application.
  • the electronic device uses K fourth networks to transmit the data of the target application.
  • the first condition includes: it is detected that the N networks with the highest network quality among the M networks have changed from N first networks to N third networks according to the first time interval consecutively preset times; K fourth networks are M In the networks except for the N third networks, K is a positive integer.
  • the K fourth networks may be networks whose network quality is lower than that of the N third networks, or a network defaulted by the system.
  • the foregoing first time interval may be 1 second (s), and the foregoing preset number of times may be 3.
  • the electronic device can Redistribute the network for the target application, that is, update the N first networks to use the updated N first networks to transmit the data of the target application.
  • the electronic device can update the N first networks corresponding to the target application in real time, even if the target application is switched from running in the background to running in the foreground, or the current target application adopts the N first networks When the network quality deteriorates, the electronic device can make the target application use the updated N first networks to continue to transmit data. In this way, the stability of the running application of the electronic device can be further improved, and the flexibility of using the network for data transmission can be improved.
  • the data transmission method provided in the embodiment of the present application may further include S204 and S205.
  • S204 and S205 may further include S204 and S205:
  • the electronic device detects the network quality of each of the M networks according to the second time interval.
  • the second time interval is greater than the first time interval.
  • the foregoing second time interval may be 3 seconds (s).
  • the electronic device detects each of the M networks according to the first time interval the quality of.
  • the electronic device detects that the N networks with the highest network quality among the M networks are still the N first networks according to the first time interval for a predetermined number of consecutive times, it resumes detecting the M networks according to the second time interval.
  • the network quality of each network Of course, the electronic device will not redistribute the network for the target application.
  • the electronic device when the first condition is met, after the electronic device reallocates the network for the target application, the electronic device can resume detecting the network quality of each of the M networks according to the second time interval.
  • the electronic device when the electronic device detects that the network with the highest network quality among the M networks has changed from the N first network to the N third network, the electronic device can change the detection time from the first network to the third network.
  • the second time interval is switched to the shorter first time interval, which is beneficial for improving the electronic device to quickly redistribute the network to the target application.
  • the method described before S201 further includes S206 and S207:
  • the electronic device receives the user's first input.
  • the first input is used to trigger the electronic device to determine the target mode to determine whether the target mode is the above-mentioned mode 1 or the above-mentioned mode 2.
  • the N first networks are: the system default Wi-Fi network in the electronic device Fi network (denoted as the main Wi-Fi network), other Wi-Fi networks (denoted as secondary Wi-Fi networks) among the M networks except for the system default Wi-Fi network (denoted as secondary Wi-Fi networks), or mobile data networks.
  • the aforementioned mode 2 includes mode 2a, mode 2b, and mode 2c.
  • method 2a is used to instruct the electronic device to use the main Wi-Fi network as the network corresponding to the target application.
  • Manner 2b is used to instruct the electronic device to use the secondary Wi-Fi network as the network corresponding to the target application.
  • Manner 2c is used to instruct the electronic device to use the mobile network as the network corresponding to the target application.
  • the user-defined network may include multiple types, when the electronic device allocates a user-defined network to the target application, the flexibility of using the network in the process of data transmission can be further improved.
  • the electronic device may re-use the method 1 as the target method to reallocate the network to the target application.
  • the screen of the electronic device may be implemented by a touch screen with display function and touch function.
  • the touch screen may be used to receive user input, and respond to the input to the user.
  • the content corresponding to the input is displayed.
  • the above-mentioned first input may be touch screen input, fingerprint input, gravity input, key input, etc.
  • the touch screen input is the user's input on the touch screen of the electronic device such as pressing input, long press input, sliding input, click input, hovering input (input by the user near the touch screen).
  • Fingerprint input is the input of the user's sliding fingerprint, long-press fingerprint, single-click fingerprint, and double-click fingerprint to the fingerprint reader of the electronic device.
  • Gravity input is the input of the user's shaking of the electronic device in a specific direction, a certain number of shaking, and the like.
  • the key input corresponds to the user's input such as single-click input, double-click input, long-press input, and combination key input of the power button, volume button, and home button of the electronic device.
  • the embodiment of the present application does not specifically limit the first input manner, and may be any achievable manner.
  • the embodiment of the present application may provide a control for triggering a target determination method, such as a control for determining a target method for each application, or a control for determining a target method for all applications.
  • a control for determining a target method for each application may be set near the icon of each application.
  • the electronic device can display corresponding controls near the icon of each application under the trigger of the user.
  • the foregoing first input may be a user's input to a control corresponding to the target application.
  • the electronic device determines the target mode.
  • the electronic device determines the target mode
  • the electronic device when the electronic device starts to run the target application, the electronic device can start to allocate the network to the target application in the target mode, so that the electronic device can use the network transmission method determined according to the target mode to transmit the target application. data.
  • the following takes the operation process shown in FIG. 3 as an example to describe the data transmission method provided in the embodiment of the present application.
  • the electronic device displays an icon of application 1, an icon of application 2, an icon of application 3, and an icon of application 4 on the screen.
  • the electronic device is displayed in the upper left corner of the application 1 icon
  • the control K1-the control K4 are used to determine the target mode of the corresponding application, and the control K1-the control K4 can identify the target mode of the corresponding application.
  • the electronic device can switch the target mode currently indicated by the control K1 to another target mode.
  • the text " ⁇ " is displayed in the control K1, which is used to identify the target mode corresponding to the application 1 as mode 1.
  • the text "main” is displayed in the control K1, which is used to indicate that the target mode corresponding to the application 1 is mode 2a.
  • the text "auxiliary” is displayed in the control K1, which is used to indicate that the target mode corresponding to the application 1 is mode 2b.
  • the text "number” displayed in the control K1 is used to indicate that the target mode corresponding to the application 1 is mode 2c.
  • the electronic device switches the target mode identified by the control K1 in the order of mode 1, mode 2a, mode 2b, and mode 2c.
  • the text displayed in the control K1 is switched in the order of "self”, “main”, “auxiliary” and “number”.
  • control K2 for the detailed description of the control K2 to the control K4, please refer to the above-mentioned related description of the control K1, which will not be repeated here.
  • the data transmission method provided in the embodiments of the present application can support the user to trigger the electronic device to select the target method corresponding to the target application through the first input, which is beneficial to further improve the use of network in the process of data transmission. Flexibility.
  • FIG. 4 it is a schematic diagram of a possible structure of an electronic device 40 provided by an embodiment of this application.
  • the electronic device 40 shown in FIG. 4 includes: the electronic device 40 includes: a transmission module 41; a transmission module 41 for transmitting data of the target application using N first networks when the electronic device 40 is running the target application; wherein,
  • the N first networks are the networks of the M networks currently establishing communication connections with the electronic device 40;
  • the M networks include at least two Wi-Fi networks; M is a positive integer greater than or equal to 2, and N is less than or equal to Positive integer of M.
  • the N first networks are determined according to the target mode; the target mode is used to indicate that the user-defined network is determined as the N first networks; or, it is used to indicate the priority of the target application and the M networks
  • the network quality determines the N first networks, and the higher the priority, the better the network quality of the network used by the application.
  • the priority of the target application is determined according to the target parameter; the target parameter is used to indicate at least one of the following: whether the target application is running in the foreground, whether the target application is an application in a preset list, and the application type of the target application.
  • the N first networks are the second networks with the best network quality among the M networks; when the target application is running in the background , The N first networks are the other networks except the second network among the M networks.
  • the transmission module 41 is further configured to use N first networks to transmit the data of the target application, and if the first condition is met, if the target application is running in the foreground and is an application in the preset list, then N third networks are used to transmit the data of the target application; if the target application is running in the background, K fourth networks are used to transmit the data of the target application; the first condition includes: M are detected consecutively and preset times according to the first time interval The first N networks with the best network quality in the network change from N first networks to N third networks; among them, K fourth networks are networks other than N third networks among M networks, and K is Positive integer.
  • the electronic device 40 further includes: a detection module; a detection module configured to detect the network quality of each of the M networks according to the second time interval; before detecting the network quality of the M networks with the best network quality
  • the quality of each of the M networks is detected according to the first time interval; wherein, the second time interval is greater than the first time interval.
  • the electronic device 40 provided in the embodiment of the present application can implement each process implemented by the electronic device in the foregoing method embodiment. To avoid repetition, details are not described herein again.
  • the electronic device provided in the embodiments of the present application can support the electronic device to establish communication connections with M networks at the same time, and the M networks include at least two Wi-Fi networks.
  • the electronic device may use N first networks to transmit the data of the target application, and the number of the N first networks is one or more, and they are corresponding to the target application.
  • Network not necessarily the default network of the system. In this way, the flexibility of using the network in the data transmission process of the electronic device is improved, and the possibility of a certain network being busy is reduced to a certain extent, and the stability of the running application of the electronic device is improved.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components.
  • a radio frequency unit 101 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, and a display unit 106 , User input unit 107, interface unit 108, memory 109, processor 110, power supply 111 and other components.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, in-vehicle electronic devices, wearable devices, and pedometers.
  • the radio frequency unit 101 is configured to use N first networks to transmit data of the target application when the electronic device 40 is running the target application; wherein, the N first networks are M that are currently communicating with the electronic device 40 Networks in the network; M networks include at least two Wi-Fi networks; M is a positive integer greater than or equal to 2, and N is a positive integer less than or equal to M.
  • the electronic device provided in the embodiments of the present application can support the electronic device to establish communication connections with M networks at the same time, and the M networks include at least two Wi-Fi networks.
  • the electronic device may use N first networks to transmit the data of the target application, and the number of the N first networks is one or more, and they are corresponding to the target application.
  • Network not necessarily the default network of the system. In this way, the flexibility of using the network in the data transmission process of the electronic device is improved, and the possibility of a certain network being busy is reduced to a certain extent, and the stability of the running application of the electronic device is improved.
  • the radio frequency unit 101 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 110; in addition, Uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 102, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 103 can convert the audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output it as sound. Moreover, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic device 100 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 104 is used to receive audio or video signals.
  • the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the data is processed.
  • the processed image frame can be displayed on the display unit 106.
  • the image frame processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the network module 102.
  • the microphone 1042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the electronic device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 1061 and the display panel 1061 when the electronic device 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 107 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072.
  • the touch panel 1071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1071 or near the touch panel 1071. operating).
  • the touch panel 1071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 110, the command sent by the processor 110 is received and executed.
  • the touch panel 1071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 107 may also include other input devices 1072.
  • other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 1071 can be overlaid on the display panel 1061.
  • the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 1061.
  • the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 108 is an interface for connecting an external device and the electronic device 100.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 108 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 100 or can be used to connect to the electronic device 100 and the external device. Transfer data between devices.
  • the memory 109 can be used to store software programs and various data.
  • the memory 109 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 109 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, a flash memory device, or other volatile solid-state storage devices.
  • the processor 110 is the control center of the electronic device, which uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes software programs and/or modules stored in the memory 109, and calls data stored in the memory 109 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 110 may include one or more processing units; optionally, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 110.
  • the electronic device 100 may also include a power source 111 (such as a battery) for supplying power to various components.
  • a power source 111 such as a battery
  • the power source 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 100 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present application further provides an electronic device, including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and the computer program is executed by the processor 110
  • an electronic device including a processor 110, a memory 109, a computer program stored in the memory 109 and capable of running on the processor 110, and the computer program is executed by the processor 110
  • the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored.
  • a computer program is stored.
  • the computer program is executed by a processor, each process of the foregoing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, I won’t repeat them here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), 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

本申请实施例提供一种数据传输方法及电子设备。该方法包括:在电子设备运行目标应用的情况下,采用N个第一网络传输目标应用的数据;其中,N个第一网络为与电子设备建立通信连接的M个网络中的网络;M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。

Description

数据传输方法及电子设备
相关申请的交叉引用
本申请主张在2019年10月31日在中国提交的中国专利申请号No.201911055456.7的优先权,其全部内容通过引用包含于此。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种数据传输方法及电子设备。
背景技术
目前,智能手机或平板电脑等电子设备在同一时间通常只能通过一个网络(如一个无线保真(Wireless Fidelity,wifi)网络或移动网络)传输当前运行的所有应用(即应用程序)的数据。例如,电子设备大多只有一个Wi-Fi模块(或称Wi-Fi网络接口),用于支持电子设备在同一时间与一个Wi-Fi接入点进行通信,以通过一个Wi-Fi网络传输应用的数据。
具体的,电子设备当前使用的网络接口通常为系统默认的网络。如此,即使电子设备运行的应用的数量较多,或者系统默认网络的网络质量较差,电子设备仍然会持续使用该系统默认的网络传输所有应用的数据。这样一来,将导致电子设备运行应用的过程中数据传输的灵活性较差。
发明内容
本申请实施例提供一种数据传输方法及电子设备,以解决电子设备运行应用程序过程中数据传输的灵活性较差的问题。
为了解决上述技术问题,本申请实施例是这样实现的:
第一方面,本申请实施例提供一种数据传输方法,该方法包括:在电子设备运行目标应用的情况下,采用N个第一网络传输目标应用的数据;其中,N个第一网络为与电子设备建立通信连接的M个网络中的网络;M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。
第二方面,本申请实施例还提供了一种电子设备,该电子设备包括:传输模块;传输模块,用于在电子设备运行目标应用的情况下,采用N个第一网络 传输目标应用的数据;其中,N个第一网络为与电子设备当前建立通信连接的M个网络中的网络;M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。
第三方面,本申请实施例提供了一种电子设备,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的计算机程序,该计算机程序被该处理器执行时实现如第一方面所述的数据传输方法的步骤。
第四方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现如第一方面所述的数据传输方法的步骤。
在本申请实施例中,可以支持电子设备在同一时间与M个网络建立通信连接,该M个网络包括至少两个Wi-Fi网络。具体的,在电子设备运行目标应用的情况下,电子设备可以采用N个第一网络传输目标应用的数据,而该N个第一网络的数量为一个或多个,且为与目标应用对应的网络,而不一定是系统默认的网络。这样一来,提高了电子设备数据传输的过程中使用网络的灵活性,并在一定程度上降低了某一个网络繁忙的可能性,提高了电子设备运行应用的稳定性。
附图说明
图1为本申请实施例提供的一种可能的安卓操作系统的架构示意图;
图2为本申请实施例提供的一种数据传输方法的流程示意图;
图3为本申请实施例提供的一种电子设备显示内容的示意图;
图4为本申请实施例提供的一种可能的电子设备的结构示意图;
图5为本申请实施例提供的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明的是,本文中的“/”表示或的意思,例如,A/B可以表示A或B; 本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“多个”是指两个或多于两个。
需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一网络和第二网络等是用于区别不同的网络,而不是用于描述网络的特定顺序。
本申请实施例提供的数据传输方法,可以支持电子设备在同一时间与M个网络建立通信连接,该M个网络包括至少两个Wi-Fi网络。具体的,在电子设备运行目标应用的情况下,电子设备可以采用N个第一网络传输目标应用的数据,而该N个第一网络的数量为一个或多个,且为与目标应用对应的网络,而不一定是系统默认的网络。这样一来,提高了数据传输的过程中使用网络的灵活性,并在一定程度上降低了某一个网络繁忙的可能性,提高了电子设备运行应用的稳定性。
本申请实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动电子设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等;本申请实施例不作具体限定。
需要说明的是,本申请实施例提供的数据传输方法,执行主体可以为电子设备,或者,该电子设备的中央处理器(Central Processing Unit,CPU),或者该电子设备中的用于执行数据传输方法的控制模块。本申请实施例中以电子设备执行数据传输方法为例,说明本申请实施例提供的数据传输方法。
本申请实施例中的电子设备可以为具有操作系统的电子设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
下面以安卓操作系统为例,介绍一下本申请实施例提供的数据传输方法所应用的软件环境。
如图1所示,为本申请实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。例如,系统设置应用、系统聊天应用和系统相机应用等应用程序。第三方设置应用、第三方相机应用和第三方聊天应用等应用程序。
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。
以安卓操作系统为例,本申请实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本申请实施例提供的数据传输方法的软件程序,从而使得该数据传输方法可以基于如图1所示的安卓操作系统运行。即处理器或者电子设备可以通过在安卓操作系统中运行该软件程序实现本申请实施例提供的数据传输方法。
下面结合图2所示的数据传输方法的流程图对本申请实施例提供的数据传输方法进行详细描述。其中,虽然在方法流程图中示出了本申请实施例提供的数据传输方法的逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行 所示出或描述的步骤。例如,图2中示出的数据传输方法可以包括S201'和S201:
S201'、在电子设备运行目标应用的情况下,电子设备为目标应用分配N个第一网络。
S201、电子设备采用N个第一网络传输目标应用的数据。
其中,N个第一网络为电子设备当前建立通信连接的M个网络中的网络;M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。
可选地,本申请实施例中,M个网络可以包括至少两个Wi-Fi网络和移动数据网络。
可选地,本申请实施例提供的Wi-Fi网络可以为无线保真(即wifi)网络。
具体的,本申请实施例中,电子设备中可以包括多个网络接口(或称网络模块),如M个网络接口,支持电子设备通过每个网络接口连接一个网络,以连接多个网络(如上述M个网络)。
可以理解的是,电子设备为目标应用分配网络,具体为目标应用分配网络接口。
可选地,电子设备可以在开始运行目标应用时,为目标应用分配网络。
需要说明的是,网络接口为软件上可以通信的接口,既可以对应实际的硬件接口,也可以对应软件的虚拟接口。具体的,网络接口用于支持电子设备进行数据传输通信。
可选地,上述N可以为预设数值,如1或2。具体的,对N的具体取值可以根据实际使用需求确定,本申请实施例中对此不作限定。
需要强调的是,本申请实施例提供的电子设备中可以连接至少两个Wi-Fi网络,使得电子设备可以同时通过至少两个Wi-Fi网络传输数据;而相关技术中的电子设备仅包括一个Wi-Fi网络接口,即电子设备同一时刻仅能通过一个Wi-Fi网络传输数据。
可以理解的是,电子设备当前建立通信连接M个网络时,可以同时使用M个网络传输数据。其中,电子设备可以通过与目标应用对应的N个第一网络,传输目标应用的数据。
需要说明的是,上述M个网络中可以包括系统默认的网络和其他网络。具体的,上述N个第一网络可能为系统默认的网络,还可能为该其他网络。
可选地,目标应用可以包括一个或多个应用。以下实施例中,以目标应用为一个应用为例进行说明。另外,目标应用为电子设备当前运行的部分应用或全部应用。
可以理解的是,电子设备针对不同应用分配的网络可以相同或不同。此时,若目标应用发生变化,则电子设备分配的N个第一网络可能发生变化。即电子设备可以动态的为运行的不同应用分配不同的网络,以支持不同的应用使用不同的网络传输数据。
示例性的,在电子设备需求高吞吐量的数据传输的情况下,若当前运行的所有应用的数据均使用系统默认的网络传输,则将导致系统默认的网络处于繁忙状态而无法正常传输目标应用的数据。此时,电子设备为目标应用分配与目标应用对应的N个第一网络可以为除了系统默认的网络之外的至少一个网络,以使得目标应用的数据正常传输,保证目标应用运行的稳定性。其中,吞吐量用于表示1秒传输的数据量。
需要说明的是,本申请实施例提供的数据传输方法,可以支持电子设备在同一时间与M个网络建立通信连接,该M个网络包括至少两个Wi-Fi网络。具体的,在电子设备运行目标应用的情况下,电子设备可以采用N个第一网络传输目标应用的数据,而该N个第一网络的数量为一个或多个,且为与目标应用对应的网络,而不一定是系统默认的网络。这样一来,提高了数据传输的过程中使用网络的灵活性,并在一定程度上降低了某一个网络繁忙的可能性,提高了电子设备运行应用的稳定性。
在一种可能的实现方式中,本申请实施例提供的数据传输方法,上述N个第一网络为按照目标方式确定的;目标方式用于指示将用户自定义的网络确定为N个第一网络(记为方式1);或者,用于指示根据目标应用的优先级和M个网络的网络质量确定N个第一网络,优先级越高的应用所采用网络的网络质量越好(记为方式2)。
可选地,在方式1中,用户自定义的网络可以为用户需求的网络,如当前 网络质量最好的网络。
在方式2中,电子设备可以实时地根据运行的应用的变化和不同网络的网络质量变化,为运行的应用重新分配网络,使得运行的应用的数据可以通过重新分配的网络传输。
可以理解的是,优先级越高的应用通常为用户使用需求越高的应用,如用户使用较为频繁的应用,或者对运行稳定性要求较高的应用。如此,为优先级越高的应用分配网络质量越好的应用,有利于提高应用运行的稳定性。
可选地,本申请实施例中,网络质量可以通过网络的数据传输速率和/或数据重传率衡量。其中,网络的数据传输速率越高、网络质量越好,和/或,网络的数据重传率越低、网络质量越好。
可选地,网络的数据传输速率包括二层重传率和/或传输控制协议(Transmission Control Protocol,TCP)重传率,网络的数据重传率为二层传输速率。
其中,二层重传指的是电子设备使用Wi-Fi模块(即Wi-Fi网络)向Wi-Fi无线接入点发送一个数据包的情况下,电子设备因各种原因没有收到Wi-Fi无线接入点返回的确认字符(Acknowledgement,ACK),而触发对该数据包重新发送。
二层重传率指的是电子设备在一段时间内重传的数据包的包数占所有发送数据包的包数的比例。
二层传输速率指的是数据包在无线介质中的传输速率。
TCP重传指的是因为各种原因,电子设备发送的TCP数据包没有收到服务端返回的ACK包,触发该TCP数据包重新发送的情况。
TCP重传率指的是在一段时间内TCP重传包数占所有发送包数的比例。
进一步,需要说明的是,电子设备采用套接字(socket)实现使用网络传输数据。其中,套接字用于表示网络上的两个程序(如应用)通过一个双向的通信连接实现数据的交换,具体用于通信两端的连接。本申请实施例中,套接字主要用于电子设备的应用客户端与远端服务端的通信。
需要说明的是,本申请实施例提供的数据传输方法,由于电子设备确定与 目标应用对应的N个第一网络的目标方式可以为多种,因此可以进一步提高数据传输时使用网络的灵活性。
可选地,一个应用具有一个属性参数,不同应用优先级根据各个应用的属性参数确定。其中,一个属性参数包括以下至少一项:应用是否在前台运行,应用是否为预设列表中的应用,应用的应用类型。
具体的,目标应用的优先级根据目标参数确定;其中,目标参数包括以下至少一项:目标应用是否在前台运行,目标应用是否为预设列表中的应用,目标应用的应用类型。
可以理解的是,目标参数为目标应用的属性参数。
示例1中,在目标参数包括目标应用是否在前台运行(记为参数1),即目标参数用于指示目标应用是否在前台运行的情况下,电子设备可以为在前台运行的应用分配网络质量最好的网络,为在后台运行的应用分配M个网络中除该网络之外的其他网络。
其中,应用在前台运行指用户正在与之交互的、显示在屏幕前方的应用。应用在后台运行指用户当前没有与之交互的、没有显示在屏幕上的、但是仍然活跃的应用。
可以理解的是,用户通常需求前台应用运行的稳定性高于后台应用运行的稳定性。
比如,电子设备在后台运行正在下载一部数据量较大的视频(如电影)的应用,此时会占用与后台运行的应用对应的网络的带宽;此时,如果电子设备同时在前台运行在线游戏对战的应用,那么由于前台运行的应用与后台运行的应用采用的网络不同,使得在前台运行的应用不会受到后台运行应用下载视频的影响。
示例2中,在目标参数包括目标应用是否为预设列表中的应用(记为参数2),即目标参数用于指示目标应用是否为预设列表中的应用的情况下,预设列表中的应用的优先级高于预设列表之外的应用的优先级。
其中,预设列表可以为用户自定义的或电子设备系统预先设置的。
进一步,可选地,预设列表中可以包括某些应用类型的应用,如包括在线 游戏类和即时通讯类的应用。
另外,用户可以手动控制电子设备向预设列表添加一些应用。
示例3中,在目标参数包括目标应用的应用类型(记为参数3),即目标参数用于指示目标应用的应用类型的情况下,若电子设备运行不同应用类型的多个应用,则电子设备可以为应用类型的优先级依次降低的不同应用,依次分配网络质量依次降低的不同网络。若电子设备运行一个或多个应用类型相同的应用,则电子设备可以为该多个应用类型相同的应用分配同一个网络,如分配网络质量最好的网络。
示例性的,应用类型可以包括即时通讯类、新闻资讯类、在线游戏类、视频播放类等,本申请实施例提供的应用类型包括但不限于上述列举的类型。例如,在线游戏类、视频播放类、即时通讯类和新闻资讯类的应用的优先级依次降低。
可选地,本申请实施例中,电子设备可以采用目标参数中的一项或多项参数确定应用(如目标应用)的优先级。
类似的,对目标参数中包括多项参数而影响应用的优先级的描述,可以参照上述实施例中针对目标参数中的每项参数影响应用的优先级的相关描述,本申请实施例这里对此不做详细描述。
其中,本申请实施例提供的数据传输方法,由于不同应用的优先级不同,而优先级不同的应用对网络的网络质量的需求不同,因此为不同优先级的应用分配不同网络质量的网络,可以实现网络的合理分配。从而,有利于提高电子设备运行应用的稳定性。
在一种可能的实现方式中,在目标应用在前台运行且为预设列表中的应用的情况下,N个第一网络为M个网络中网络质量最好的第二网络;在目标应用在后台运行的情况下,N个第一网络为M个网络中除第二网络之外的其他网络。
其中,第二网络为M个网络中网络质量由高到底的前一个或多个网络。
可以理解的是,前台运行的应用和预设列表中的应用均为用户使用需求较高的应用,而后台运行的应用为用户使用需求相对较低的应用。从而,在目标应用在前台运行且为预设列表中的应用的情况下,电子设备为目标应用分配网 络质量最好的第二网络;在目标应用在后台运行的情况下,电子设备为目标应用分配除第二网络之外的其他网络,可以在提高电子设备运行应用的稳定性的同时,提高数据传输使用网络的灵活性。
在一种可能的实现方式中,本申请实施例提供的数据传输方法,在上述S201之后还可以包括S202和S203:
S202、在满足第一条件的情况下,若目标应用在前台运行应用且为预设列表中的应用,电子设备则采用N个第三网络传输目标应用的数据。
S203、在满足第一条件的情况下,若目标应用在后台运行,电子设备则采用K个第四网络传输目标应用的数据。
其中,第一条件包括:按照第一时间间隔连续预设次数检测到M个网络中网络质量最高的N个网络由N个第一网络变化为N个第三网络;K个第四网络为M个网络中除N个第三网络之外的网络,K为正整数。
示例性的,K个第四网络可以为网络质量低于N个第三网络的网络,或者为系统默认的网络。
示例性的,上述第一时间间隔可以为1秒(s),上述预设次数可以为3。
可以理解的是,在发生目标应用由在前台运行切换至为在后台运行,目标应用由在后台运行切换为在前台运行,网络的网络质量发生变化中的至少一项的情况下,电子设备可以为目标应用重新分配网络,即更新N个第一网络,以采用更新后的N个第一网络传输目标应用的数据。
本申请实施例中,由于电子设备可以实时地更新目标应用对应的N个第一网络,因此即使发生目标应用由在后台运行切换至在前台运行,或者当前目标应用采用的N个第一网络的网络质量变差的情况,电子设备可以使得目标应用采用更新后的N个第一网络继续传输数据。如此,可以进一步在提高电子设备运行应用的稳定性,并提高数据传输使用网络的灵活性。
在一种可能的实现方式中,本申请实施例提供的数据传输方法,还可以包括S204和S205,如在上述S202之前还可以包括S204和S205:
S204、电子设备按照第二时间间隔,检测M个网络中的每个网络的网络质量。
其中,第二时间间隔大于第一时间间隔。
示例性的,上述第二时间间隔可以为3秒(s)。
S205、电子设备在检测到M个网络中网络质量最高的N个网络由N个第一网络变化为N个第三网络的情况下,按照第一时间间隔,检测M个网络中的每个网络的质量。
进一步的,若电子设备按照第一时间间隔连续预设次数检测到M个网络中网络质量最高的N个网络仍为N个第一网络,则恢复按照第二时间间隔,检测M个网络中的每个网络的网络质量。当然,电子设备将不会为目标应用重新分配网络。
另外,在满足第一条件的情况下,电子设备为目标应用重新分配网络之后,电子设备可以恢复按照第二时间间隔,检测M个网络中的每个网络的网络质量。
需要说明的是,本申请实施例中,电子设备在检测到M个网络中网络质量最高的网络由N个第一网络变化为N个第三网络的情况下,电子设备可以将检测时间由第二时间间隔切换为较短的第一时间间隔,有利于提高电子设备快速为目标应用重新分配网络。
在一种可能的实现方式中,本申请实施例提供的数据传输方法,上述S201之前所述方法还包括S206和S207:
S206、电子设备接收用户的第一输入。
其中,第一输入用于触发电子设备确定目标方式,确定目标方式为上述方式1还是上述方式2。
可选地,在M个网络包括至少两个Wi-Fi网络和移动数据网络,且N个第一网络为用户自定义的情况下,N个第一网络为:电子设备中系统默认的Wi-Fi网络(记为主Wi-Fi网络),M个网络中除了系统默认的Wi-Fi网络之外的其他Wi-Fi网络(记为辅Wi-Fi网络),或移动数据网络。
具体的,上述方式2包括方式2a、方式2b和方式2c。其中,方式2a用于指示电子设备将主Wi-Fi网络作为与目标应用对应的网络。方式2b用于指示电子设备将辅Wi-Fi网络作为与目标应用对应的网络。方式2c用于指示电子设备将移动网络作为与目标应用对应的网络。
其中,由于用户自定义的网络可以包括多种,因此在电子设备为目标应用分配用户自定义的网络的情况下,可以进一步提高数据传输的过程中使用网络的灵活性。
进一步,可选地,若方式2指示的与目标应用对应的网络不存在的情况下,电子设备可以重新将方式1作为目标方式,为目标应用重新分配网络。
需要说明的是,本申请实施例提供的电子设备的屏幕可以由具有显示功能和触控功能的触控屏实现,该触控屏可以用于接收用户的输入,并响应于该输入向该用户显示该输入对应的内容。其中,上述第一输入可以为触屏输入、指纹输入、重力输入、按键输入等。其中,触屏输入为用户对电子设备的触控屏的按压输入、长按输入、滑动输入、点击输入、悬浮输入(用户在触控屏附近的输入)等输入。指纹输入为用户对电子设备的指纹识别器的滑动指纹、长按指纹、单击指纹和双击指纹等输入。重力输入为用户对电子设备特定方向的晃动、特定次数的晃动等输入。按键输入对应于用户对电子设备的电源键、音量键、Home键等按键的单击输入、双击输入、长按输入、组合按键输入等输入。具体的,本申请实施例对第一输入的方式不作具体限定,可以为任一可实现的方式。
可选地,本申请实施例可以提供用于触发确定目标方式的控件,如针对每个应用确定目标方式的控件,或者针对所有应用确定目标方式的控件。
进一步,可选地,针对每个应用确定目标方式的控件可以设置在每个应用的图标的附近。并且,电子设备可以在用户的触发下在每个应用的图标的附近显示相应的控件。
示例性的,上述第一输入可以为用户对与目标应用对应的控件的输入。
S207、响应于第一输入,电子设备确定目标方式。
可以理解的是,在电子设备确定目标方式之后,当电子设备开始运行目标应用时,电子设备可以开始按照目标方式为目标应用分配网络,使得电子设备可以采用按照目标方式确定的网络传输目标应用的数据。
示例性的,以下以图3示出的操作过程为例,说明本申请实施例提供的数据传输方法。如图3中的(a)所示,电子设备在屏幕上显示应用1的图标、应 用2的图标、应用3的图标和应用4的图标。在用户对屏幕进行长按操作达到3秒,或对任一应用的图标进行长按操作达到3秒之后,如图3中的(b)所示,电子设备在应用1的图标的左上角显示控件K1,在应用2的图标的左上角显示控件K2,在应用3的图标的左上角显示控件K3以及在应用4的图标的左上角显示控件K4。其中,控件K1~控件K4均用于确定相应的应用的目标方式,且控件K1~控件K4可以标识相应应用的目标方式为哪种方式。
以控件K1为例,用户对控件K1进行一次输入(如点击输入)之后,电子设备可以将控件K1当前指示的目标方式切换为另一种目标方式。其中,控件K1中显示文字“自”,用于标识应用1对应的目标方式为方式1。控件K1中显示文字“主”,用于指示应用1对应的目标方式为方式2a。控件K1中显示文字“辅”,用于指示应用1对应的目标方式为方式2b。控件K1中显示文字“数”,用于指示应用1对应的目标方式为方式2c。具体的,随着用户对控件K1的输入,电子设备将控件K1标识的目标方式按照方式1、方式2a、方式2b和方式2c的顺序进行切换。相应的,将控件K1中显示的文字按照“自”、“主”、“辅”和“数”的顺序进行切换。
类似的,对控件K2~控件K4的详细描述,可以参照上述对控件K1的相关描述,这里不再赘述。
示例性的,如图3中的(b)所示,控件K1中显示有文字“自”,控件K2中显示有文字“主”、控件K3中显示有文字“辅”以及控件K4中显示有文字“数”。
进一步的,在用户对图3中的(b)示出的控件K1进行一次输入之后,如图3中的(c)所示,控件K1中显示有文字“主”,控件K2中显示有文字“主”、控件K3中显示有文字“辅”以及控件K4中显示有文字“数”。
需要说明的是,本申请实施例提供的数据传输方法,可以支持用户通过第一输入,触发电子设备选择目标应用对应的目标方式为哪种方式,因此有利于进一步提高数据传输的过程中使用网络的灵活性。
如图4所示,为本申请实施例提供的一种电子设备40的可能的结构示意图。图4所示的电子设备40包括:电子设备40包括:传输模块41;传输模块41, 用于在电子设备40运行目标应用的情况下,采用N个第一网络传输目标应用的数据;其中,N个第一网络为与电子设备40当前建立通信连接的M个网络中的网络;M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。
可选地,N个第一网络为按照目标方式确定的;目标方式用于指示将用户自定义的网络确定为N个第一网络;或者,用于指示根据目标应用的优先级和M个网络的网络质量确定N个第一网络,优先级越高的应用所采用网络的网络质量越好。
可选地,目标应用的优先级根据目标参数确定;其中,目标参数用于指示以下至少一项:目标应用是否在前台运行,目标应用是否为预设列表中的应用,目标应用的应用类型。
可选地,在目标应用在前台运行且为预设列表中的应用的情况下,N个第一网络为M个网络中网络质量最好的第二网络;在目标应用在后台运行的情况下,N个第一网络为M个网络中除第二网络之外的其他网络。
可选地,传输模块41,还用于采用N个第一网络传输目标应用的数据之后,在满足第一条件的情况下,若目标应用在前台运行且为预设列表中的应用,则为采用N个第三网络传输目标应用的数据;若目标应用在后台运行,则采用K个第四网络传输目标应用的数据;第一条件包括:按照第一时间间隔连续预设次数检测到M个网络中网络质量最好的前N个网络由N个第一网络变化为N个第三网络;其中,K个第四网络为M个网络中除N个第三网络之外的网络,K为正整数。
可选地,电子设备40还包括:检测模块;检测模块,用于按照第二时间间隔,检测M个网络中的每个网络的网络质量;在检测到M个网络中网络质量最好的前N个网络由传输模块使用的N个第一网络变化为N个第三网络的情况下,按照第一时间间隔,检测M个网络中的每个网络的质量;其中,第二时间间隔大于第一时间间隔。
本申请实施例提供的电子设备40能够实现上述方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。
本申请实施例提供的电子设备,可以支持电子设备在同一时间与M个网络建立通信连接,该M个网络包括至少两个Wi-Fi网络。具体的,在电子设备运行目标应用的情况下,电子设备可以采用N个第一网络传输目标应用的数据,而该N个第一网络的数量为一个或多个,且为与目标应用对应的网络,而不一定是系统默认的网络。这样一来,提高了电子设备数据传输的过程中使用网络的灵活性,并在一定程度上降低了某一个网络繁忙的可能性,提高了电子设备运行应用的稳定性。
图5为本申请实施例提供的一种电子设备的硬件结构示意图,该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本申请实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、以及计步器等。
其中,射频单元101,用于在电子设备40运行目标应用的情况下,采用N个第一网络传输目标应用的数据;其中,N个第一网络为与电子设备40当前建立通信连接的M个网络中的网络;M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。
本申请实施例提供的电子设备,可以支持电子设备在同一时间与M个网络建立通信连接,该M个网络包括至少两个Wi-Fi网络。具体的,在电子设备运行目标应用的情况下,电子设备可以采用N个第一网络传输目标应用的数据,而该N个第一网络的数量为一个或多个,且为与目标应用对应的网络,而不一定是系统默认的网络。这样一来,提高了电子设备数据传输的过程中使用网络的灵活性,并在一定程度上降低了某一个网络繁忙的可能性,提高了电子设备运行应用的稳定性。
应理解的是,本申请实施例中,射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器110 处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元103可以将射频单元101或网络模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与电子设备100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103包括扬声器、蜂鸣器以及受话器等。
输入单元104用于接收音频或视频信号。输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或网络模块102进行发送。麦克风1042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。
电子设备100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在电子设备100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元 106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。
用户输入单元107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作)。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板1071可覆盖在显示面板1061上,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图5中,触控面板1071与显示面板1061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元108为外部装置与电子设备100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备100内的一个或多个元件或者可以用于在电子设备100和外部装置 之间传输数据。
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器110可包括一个或多个处理单元;可选地,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
电子设备100还可以包括给各个部件供电的电源111(比如电池),可选地,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备100包括一些未示出的功能模块,在此不再赘述。
可选地,本申请实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的计算机程序,该计算机程序被处理器110执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意 在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (14)

  1. 一种数据传输方法,所述方法包括:
    在电子设备运行目标应用的情况下,采用N个第一网络传输所述目标应用的数据;
    其中,所述N个第一网络为与所述电子设备建立通信连接的M个网络中的网络;所述M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。
  2. 根据权利要求1所述的方法,其中,所述N个第一网络为按照目标方式确定的;所述目标方式用于指示将用户自定义的网络确定为所述N个第一网络;或者,用于指示根据所述目标应用的优先级和所述M个网络的网络质量确定所述N个第一网络,优先级越高的应用所采用网络的网络质量越好。
  3. 根据权利要求2所述的方法,其中,所述目标应用的优先级根据目标参数确定;
    其中,所述目标参数包括以下至少一项:所述目标应用是否在前台运行,所述目标应用是否为预设列表中的应用,所述目标应用的应用类型。
  4. 根据权利要求3所述的方法,其中,
    在所述目标应用在前台运行且为所述预设列表中的应用的情况下,所述N个第一网络为所述M个网络中网络质量最好的第二网络;
    在所述目标应用在后台运行的情况下,所述N个第一网络为所述M个网络中除所述第二网络之外的其他网络。
  5. 根据权利要求3所述的方法,其中,所述采用N个第一网络传输所述目标应用的数据之后,所述方法还包括:
    在满足第一条件的情况下,若所述目标应用在前台运行且为所述预设列表中的应用,则采用N个第三网络传输所述目标应用的数据;
    若所述目标应用在后台运行,则采用K个第四网络传输所述目标应用的数据;
    所述第一条件包括:按照第一时间间隔连续预设次数检测到所述M个网络中网络质量最好的前N个网络由所述N个第一网络变化为所述N个第三网络;
    其中,所述K个第四网络为所述M个网络中除所述N个第三网络之外的网 络,K为正整数。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    按照第二时间间隔,检测所述M个网络中的每个网络的网络质量;
    在检测到所述M个网络中网络质量最好的N个网络由所述N个第一网络变化为所述N个第三网络的情况下,按照所述第一时间间隔,检测所述M个网络中的每个网络的质量;
    其中,所述第二时间间隔大于所述第一时间间隔。
  7. 一种电子设备,所述电子设备包括:传输模块;
    所述传输模块,用于在所述电子设备运行目标应用的情况下,采用N个第一网络传输所述目标应用的数据;
    其中,所述N个第一网络为与所述电子设备当前建立通信连接的M个网络中的网络;所述M个网络包括至少两个Wi-Fi网络;M为大于或等于2的正整数,且N为小于或等于M的正整数。
  8. 根据权利要求7所述的电子设备,其中,所述N个第一网络为按照目标方式确定的;所述目标方式用于指示将用户自定义的网络确定为所述N个第一网络;或者,用于指示根据所述目标应用的优先级和所述M个网络的网络质量确定所述N个第一网络,优先级越高的应用所采用网络的网络质量越好。
  9. 根据权利要求7所述的电子设备,其中,所述目标应用的优先级根据目标参数确定;其中,所述目标参数用于指示以下至少一项:所述目标应用是否在前台运行,所述目标应用是否为预设列表中的应用,所述目标应用的应用类型。
  10. 根据权利要求9所述的电子设备,其中,
    在所述目标应用在前台运行且为所述预设列表中的应用的情况下,所述N个第一网络为所述M个网络中网络质量最好的第二网络;
    在所述目标应用在后台运行的情况下,所述N个第一网络为所述M个网络中除所述第二网络之外的其他网络。
  11. 根据权利要求9所述的电子设备,其中,所述传输模块,还用于采用所述N个第一网络传输所述目标应用的数据之后,在满足第一条件的情况下, 若所述目标应用在前台运行且为所述预设列表中的应用,则为采用N个第三网络传输所述目标应用的数据;若所述目标应用在后台运行,则采用K个第四网络传输所述目标应用的数据;
    所述第一条件包括:按照第一时间间隔连续预设次数检测到所述M个网络中网络质量最好的前N个网络由所述N个第一网络变化为所述N个第三网络;
    其中,所述K个第四网络为所述M个网络中除所述N个第三网络之外的网络,K为正整数。
  12. 根据权利要求11所述的电子设备,其中,所述电子设备还包括:检测模块;
    所述检测模块,用于按照第二时间间隔,检测所述M个网络中的每个网络的网络质量;在检测到所述M个网络中网络质量最好的前N个网络由所述传输模块使用的所述N个第一网络变化为所述N个第三网络的情况下,按照所述第一时间间隔,检测所述M个网络中的每个网络的质量;
    其中,所述第二时间间隔大于所述第一时间间隔。
  13. 一种电子设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的数据传输方法的步骤。
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的数据传输方法的步骤。
PCT/CN2020/123725 2019-10-31 2020-10-26 数据传输方法及电子设备 WO2021083084A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911055456.7A CN110944408B (zh) 2019-10-31 2019-10-31 一种数据传输方法及电子设备
CN201911055456.7 2019-10-31

Publications (1)

Publication Number Publication Date
WO2021083084A1 true WO2021083084A1 (zh) 2021-05-06

Family

ID=69906409

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/123725 WO2021083084A1 (zh) 2019-10-31 2020-10-26 数据传输方法及电子设备

Country Status (2)

Country Link
CN (1) CN110944408B (zh)
WO (1) WO2021083084A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125923A (zh) * 2021-11-23 2022-03-01 深圳市元征科技股份有限公司 数据传输方法、装置、电子设备及存储介质
CN114466397A (zh) * 2021-07-30 2022-05-10 荣耀终端有限公司 Tcp通信质量评估方法、装置及电子设备
CN114679758A (zh) * 2022-03-08 2022-06-28 维沃移动通信有限公司 网络切换方法、装置、电子设备及可读存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347089B (zh) * 2021-07-05 2022-09-09 北京字跳网络技术有限公司 软件定义网络sdn系统、网络配置方法、装置和设备
CN113986378A (zh) * 2021-10-26 2022-01-28 维沃移动通信有限公司 数据处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130044603A1 (en) * 2011-08-17 2013-02-21 Verizon Patent And Licensing Inc. Radio access network technology optimization based on application type
CN105430701A (zh) * 2015-10-28 2016-03-23 努比亚技术有限公司 无线网络智能控制方法及装置
WO2018000375A1 (zh) * 2016-06-30 2018-01-04 华为技术有限公司 网络通道分配方法及装置
CN109803325A (zh) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 数据分流方法、装置、移动终端及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6252172B2 (ja) * 2013-12-27 2017-12-27 ブラザー工業株式会社 通信システム、通信装置、および情報処理プログラム
CN106304276B (zh) * 2016-07-29 2019-07-26 维沃移动通信有限公司 一种无线网络处理方法及移动终端
CN107889164B (zh) * 2017-11-23 2021-03-09 Oppo广东移动通信有限公司 无线局域网分流处理方法以及相关产品
CN110233937B (zh) * 2019-07-30 2021-06-25 腾讯科技(深圳)有限公司 一种数据传输方法、装置、设备及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130044603A1 (en) * 2011-08-17 2013-02-21 Verizon Patent And Licensing Inc. Radio access network technology optimization based on application type
CN105430701A (zh) * 2015-10-28 2016-03-23 努比亚技术有限公司 无线网络智能控制方法及装置
WO2018000375A1 (zh) * 2016-06-30 2018-01-04 华为技术有限公司 网络通道分配方法及装置
CN109803325A (zh) * 2019-02-12 2019-05-24 Oppo广东移动通信有限公司 数据分流方法、装置、移动终端及存储介质

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466397A (zh) * 2021-07-30 2022-05-10 荣耀终端有限公司 Tcp通信质量评估方法、装置及电子设备
CN114466397B (zh) * 2021-07-30 2022-12-16 荣耀终端有限公司 Tcp通信质量评估方法、装置及电子设备
CN114125923A (zh) * 2021-11-23 2022-03-01 深圳市元征科技股份有限公司 数据传输方法、装置、电子设备及存储介质
CN114125923B (zh) * 2021-11-23 2024-04-02 深圳市元征科技股份有限公司 数据传输方法、装置、电子设备及存储介质
CN114679758A (zh) * 2022-03-08 2022-06-28 维沃移动通信有限公司 网络切换方法、装置、电子设备及可读存储介质

Also Published As

Publication number Publication date
CN110944408B (zh) 2022-05-17
CN110944408A (zh) 2020-03-31

Similar Documents

Publication Publication Date Title
WO2021083084A1 (zh) 数据传输方法及电子设备
CN110752980B (zh) 一种消息发送方法及电子设备
WO2021197263A1 (zh) 内容共享方法及电子设备
WO2019154181A1 (zh) 显示控制方法及移动终端
CN109828732B (zh) 一种显示控制方法及终端设备
WO2021129762A1 (zh) 应用分享方法、电子设备及计算机可读存储介质
CN110062105B (zh) 一种界面显示方法及终端设备
CN110445924B (zh) 网络任务执行方法及终端设备
CN110058836B (zh) 一种音频信号的输出方法及终端设备
CN108762634B (zh) 一种控制方法及终端
WO2020215932A1 (zh) 显示未读消息的方法及终端设备
CN109976611B (zh) 终端设备的控制方法及终端设备
JP7309054B2 (ja) マルチネットワークアクセス方法及び端末機器
CN109407832B (zh) 一种终端设备的控制方法及终端设备
CN110489045B (zh) 一种对象显示方法及终端设备
CN108681427B (zh) 一种访问权限控制的方法及终端设备
WO2021093766A1 (zh) 消息显示方法及电子设备
US11392267B2 (en) Icon display control method and terminal
CN110990172A (zh) 一种应用分享方法、第一电子设备及计算机可读存储介质
US20220394634A1 (en) Power adjustment method and electronic device
CN109992192B (zh) 一种界面显示方法及终端设备
CN109597546B (zh) 一种图标处理方法及终端设备
CN108449490B (zh) 一种终端控制方法及终端
EP4132111A1 (en) Data transmission method and electronic device
WO2021104162A1 (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: 20881074

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20881074

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20881074

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/02/2023)