WO2020114048A1 - Data transmission method and related apparatus - Google Patents

Data transmission method and related apparatus Download PDF

Info

Publication number
WO2020114048A1
WO2020114048A1 PCT/CN2019/108305 CN2019108305W WO2020114048A1 WO 2020114048 A1 WO2020114048 A1 WO 2020114048A1 CN 2019108305 W CN2019108305 W CN 2019108305W WO 2020114048 A1 WO2020114048 A1 WO 2020114048A1
Authority
WO
WIPO (PCT)
Prior art keywords
game
transmitted
data packet
game application
wireless communication
Prior art date
Application number
PCT/CN2019/108305
Other languages
French (fr)
Chinese (zh)
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 WO2020114048A1 publication Critical patent/WO2020114048A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Definitions

  • the present application relates to the field of electronic technology, in particular to a data transmission method and related devices.
  • Embodiments of the present application provide a data transmission method and related devices, in order to avoid consuming more data traffic due to early traffic distribution.
  • an embodiment of the present application provides a data transmission method, which is applied to an electronic device that enables multiple wireless communication links.
  • the method includes:
  • the first game application scenario of the currently running game application determine whether the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function;
  • the game data packet Transmitting the game data packet to be transmitted through at least two wireless communication links among the plurality of wireless communication links at the transmission timing, the at least two wireless communication links including a data network wireless communication link.
  • an embodiment of the present application provides a data transmission device, which is applied to an electronic device.
  • the data transmission device includes a processing unit and a communication unit, wherein,
  • the processing unit is configured to determine whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function according to the first game application scenario of the currently running game application; if so, determine the first The size of the game data packet to be transmitted in a game application scenario, and determining the transmission timing of offloading the game data packet to be transmitted according to the size; at the transmission timing, the multiple wireless communication chains are controlled by the communication unit At least two wireless communication links in the path transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where 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 determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing
  • At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network
  • the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
  • 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 data transmission method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another data transmission 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 data transmission 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.
  • the electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted 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), etc.
  • UE User Equipment
  • MS Mobile Station
  • terminal terminal
  • Smart Link Aggregation means that the device can use two or more network ports to access the Internet at the same time.
  • the mobile phone can use the wireless protection at the same time.
  • Real Wi-Fi and data network LTE for network access.
  • Android network system when Wi-Fi is enabled, will cause the data network to be unusable (connectivity Service network scoring mechanism causes the data network to be disconnected), and smart link aggregation requires at least two or more available networks, Therefore, the prerequisite for Service-Level Agreement (abbreviated as SLA) is to make Wi-Fi and data networks coexist. As shown in FIG.
  • the electronic device 101 can be connected to a data network 103, which is a communication network for transmitting data services; it can also be connected to Wi-Fi 102, which is an electronic device that allows electronic devices to connect to a wireless local area network
  • the technology usually uses 2.4G UHF or 5G SHF ISM radio frequency band; it can also be connected to Bluetooth 104, a wireless technology standard that 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 data transmission method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device enables multiple wireless communication links.
  • This data transmission method includes:
  • the electronic device determines whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function according to the first game application scenario of the currently running game application.
  • the first game application scenario of the game application is determined, and whether the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function is determined according to the game application scenario .
  • the first game application scene is a scene in the game application scene set preset for the game application
  • the game data packet game of the first game application scene can be shunted and transmitted through the intelligent link aggregation SLA function.
  • the preset set of game application scenes may include game login scenes, game team battle scenes, game watching scenes, game mall scenes, game lottery scenes and other scenes.
  • the electronic device determines the size of the game data packet to be transmitted in the first game application scenario when it detects that the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function, and According to the size, a transmission timing for streaming the game data packet to be transmitted is determined.
  • the size of the game data packet to be transmitted in the first game application scenario determines the size of the game data packet to be transmitted in the first game application scenario, and determine the offloading timing according to the size, so as to avoid the situation that the data network will be used during offloading, because the early offloading leads to more data traffic.
  • the electronic device transmits the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links at the transmission timing, and the at least two wireless communication links include a data network Wireless communication link.
  • the game data packet to be transmitted After determining the transmission timing of the game data packet to be transmitted, when the transmission timing arrives, the game data packet to be transmitted is transmitted through at least two wireless communication links of the plurality of wireless communication links, and at least two wireless communication links Including the wireless communication link corresponding to the data network.
  • the game data packet to be transmitted may be transmitted through a wireless communication link other than the data network wireless communication link among the multiple wireless communication links.
  • the game data packet to be transmitted may be split into multiple game data packets in advance, and the split multiple Game data packets, which can improve the efficiency of data transmission.
  • the electronic device first determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing
  • At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network
  • the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
  • the determining the size of the game data packet to be transmitted in the first game application scenario includes: acquiring multiple historical usage records of the game application in the first game application scenario; The multiple historical usage records determine the size of the game data packet to be transmitted in the first game application scenario.
  • multiple historical usage records of the game application in the first game application scenario are obtained, and the size of the game data packet to be transmitted in the first game scenario is determined according to the historical usage records.
  • the first game application scenario is a game watching scene.
  • multiple historical usage records under the game watching scene such as 100 historical usage records. After obtaining the size of each game data packet transmitted and then averaging, it can be determined that The average size of the game data packets transmitted in the game watching scene.
  • the size of the game data packet to be transmitted in the first game application scenario is determined and stored in the database, which is helpful for rapid
  • the first game application scenario determines the size of the game data packet to be transmitted.
  • the determining the transmission timing of the game data packet to be transmitted according to the size includes: using the size of the game data packet to be transmitted as a query identifier, querying the preset in the first
  • the mapping relationship between the size of the game data packet and the transmission timing in the game application scenario determines the transmission timing corresponding to the size of the game data packet to be transmitted.
  • the wireless communication link corresponding to the data network will be enabled, which will consume the data traffic of the electronic device.
  • the size of the data packet Determine the timing of offload transmission. For example, WIFI wireless communication link and data network wireless communication link are enabled during offload transmission. Before offload transmission, only WIFI wireless communication link is used. Therefore, the larger the data packet, the later the split transmission, and the smaller the data packet, the earlier the split transmission.
  • the size of the game data packet to be transmitted is used as the query identifier to query the mapping relationship between the preset data packet size and the transmission timing, so as to determine the transmission timing of the game data packet to be shunted and transmitted. Saving data traffic is achieved by offloading the game data packets to be transmitted when the transmission timing comes.
  • the determining the size of the game data packet to be transmitted in the first game application scenario includes: determining the currently displayed first game application interface in the first game application scenario; The user operation and the logical relationship between multiple game application interfaces in the first game application scenario, determining a second game application interface corresponding to the user operation; determining to run the first game application interface to a second game Between application interfaces, the size of the corresponding game data packet is the size of the game data packet to be transmitted.
  • the first application interface currently displayed by the electronic device in the first application scenario is determined, so that the user operation and the logical relationship between multiple game application interfaces in the first game application scenario can be used to determine the corresponding user operation
  • the second game application interface therefore, the game data packet to be transmitted is a game data packet that needs to be transmitted during the time from running the first game application interface to running the second game application interface.
  • the first game application interface currently displayed on the electronic device and the second game application interface corresponding to the user operation are determined in advance according to the user operation, which can be more accurate according to the first game application interface and the second game application interface To obtain the size of the game data packet to be transmitted.
  • the determining the transmission timing of the game data packet to be transmitted according to the size includes: determining the transmission of the game data packet to be shunted according to the size of the game data packet to be transmitted The timing is when the third game application interface is displayed, the display time of the third game application interface is after the display time of the first game application interface, and before the display time of the second game application interface.
  • multiple game application interfaces included from the first game application interface to the second game application interface can be determined, and the timing of the offload transmission can be determined as The timing of displaying the third game application interface.
  • the display time of the third game application interface is after the display time of the first game application interface and before the display time of the second game application interface. For example, in the game hero selection interface, it indicates that the user is about to start entering the game, and finally enters the game battle interface.
  • the application interface after the hero selection interface and before the game battle interface can be shunted to avoid consuming more due to early shunting. Data Flow.
  • the transmission timing of the game data packet to be transmitted is the timing of displaying the third game application interface.
  • the display time of the third game application interface is after the display time of the first game application interface, and the Before the display time, therefore, the data flow consumption is reduced due to the delay of the offload transmission time.
  • the transmission of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links at the transmission timing includes: randomly selecting at least two wireless communication The link transmits the game data packet to be transmitted; or, at least two wireless communication links are selected to transmit the game data packet to be transmitted according to system state parameters; or, at least two wireless communication link transmissions are selected according to the user's setting information The game data packet to be transmitted.
  • At least two wireless communication links may be randomly selected, or at least two wireless communication links may be selected according to system state parameters, such as selecting at least two wireless communication links according to the remaining power of the electronic device or selecting at least two according to the mode of the electronic device
  • Two wireless communication links, or select at least two wireless communication links according to the user's setting information means that the user can set up a fixed wireless communication link, for example, set to always start the zigbee wireless communication link whenever there is a task to listen to music Road, when transferring files between two electronic devices, always start a Bluetooth wireless communication link, etc., wherein at least two wireless communication links include a data network wireless communication link.
  • the manner in which the electronic device selects at least two wireless communication links has diversity, which can improve the convenience and stability of data transmission.
  • the method further includes: when it is detected that the first game application scenario is a data update scenario, determining that the update data packet of the data update scenario cannot be shunted through the smart link aggregation SLA function Or, when it is detected that the first game application scenario is a data update scenario, and the size of the update data packet of the data update scenario is greater than a preset threshold, it is determined that the smart link aggregation SLA function cannot be used to shunt the transmission Update the data package.
  • the update packet of the data update scenario is not shunted through the smart link aggregation SLA function, Or, when it is detected that the first game application scenario is a data update scenario, it is detected that the size of the data update package to be downloaded is greater than a preset threshold, such as 200 trillion, it is determined that the smart link aggregation SLA function cannot be used to shunt the update data package.
  • a preset threshold such as 200 trillion
  • the first game application scenario currently running by the game application is identified.
  • the first game application scenario is a data update scenario
  • FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of the present application. The method is applied to an electronic device, and the electronic device enables multiple wireless communications. link. As shown in the figure, the data transmission method includes:
  • the electronic device determines, according to the first game application scenario of the currently running game application, whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function.
  • the electronic device when detecting that the game data packet that can shunt and transmit the first game application scenario through an intelligent link aggregation SLA function, the electronic device obtains multiple history of the game application in the first game application scenario Use records.
  • the electronic device determines the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
  • the electronic device determines a transmission timing for streaming the game data packet to be transmitted according to the size.
  • the electronic device transmits the to-be-transmitted game data packet through at least two wireless communication links of the plurality of wireless communication links at the transmission timing, and the at least two wireless communication links include a data network Wireless communication link.
  • the electronic device first determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing
  • At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network
  • the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
  • the size of the game data packet to be transmitted in the first game application scenario is determined and stored in the database, which is helpful for quickly according to the first game application
  • the scene determines the size of the game data packet to be transmitted.
  • FIG. 4 is a schematic flowchart of a data transmission method provided by an embodiment of the present application. The method is applied to an electronic device. Wireless communication links. As shown in the figure, the data transmission method includes:
  • the electronic device determines, according to the first game application scenario of the currently running game application, whether to shunt and transmit the game data packet of the first game application scenario through an intelligent link aggregation SLA function.
  • the electronic device obtains multiple history of the game application in the first game application scenario when it detects that the game data packet that can shunt and transmit the first game application scenario through the smart link aggregation SLA function Use records.
  • the electronic device determines the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
  • the electronic device uses the size of the game data packet to be transmitted as a query identifier, queries a preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determines the Transmission timing corresponding to the size of the transmission game packet.
  • the electronic device transmits the to-be-transmitted game data packet through at least two wireless communication links of the plurality of wireless communication links at the transmission timing, and the at least two wireless communication links include a data network Wireless communication link.
  • the electronic device first determines whether the game data packet of the first game application scenario can be shunted and transmitted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing
  • At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network
  • the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
  • the size of the game data packet to be transmitted in the first game application scenario is determined and stored in the database, which is helpful for quickly according to the first game application
  • the scene determines the size of the game data packet to be transmitted.
  • the size of the game data packet to be transmitted is used as the query identifier, and the mapping relationship between the preset data packet size and the transmission timing is queried, so that the transmission timing of the game data packet to be shunted and transmitted can be determined, and then the transmission timing can be determined by When it arrives, the game data packets to be transmitted are shunted to save data traffic.
  • FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application.
  • the electronic device 500 operates with one or Multiple application programs and operating systems, as shown, the electronic device 500 includes a 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 all In the memory 520 and configured to be executed by the processor 510, the one or more programs 521 include instructions for performing the following steps;
  • the first game application scenario of the currently running game application determine whether the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function;
  • the game data packet Transmitting the game data packet to be transmitted through at least two wireless communication links among the plurality of wireless communication links at the transmission timing, the at least two wireless communication links including a data network wireless communication link.
  • the electronic device first determines whether the game data packet of the first game application scenario can be shunted and transmitted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing
  • At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network
  • the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
  • the instructions in the program are specifically used to perform the following operations: obtain the game application in the first Multiple historical usage records in a game application scenario; determining the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
  • the instructions in the program are specifically used to perform the following operations: the size of the game data packet to be transmitted To query the identifier, query the preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determine the transmission timing corresponding to the size of the game data packet to be transmitted.
  • the instructions in the program are specifically used to perform the following operations: determine the first game application scenario Next, the currently displayed first game application interface; according to the user operation and the logical relationship between multiple game application interfaces in the first game application scenario, determine the second game application interface corresponding to the user operation; It is determined that the size of the corresponding game data packet is the size of the game data packet to be transmitted between running the first game application interface and the second game application interface.
  • the instructions in the program are specifically used to perform the following operations: according to the size of the game data packet to be transmitted , Determining that the transmission timing for streaming the game data packet to be transmitted is the timing for displaying the third game application interface, the display time of the third game application interface is after the display time of the first game application interface, and Before the display time of the second game application interface.
  • the instruction in the program is specifically used to execute the transmission timing of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links The following operation: randomly select at least two wireless communication links to transmit the game data packet to be transmitted.
  • the instruction in the program is specifically used to execute the transmission timing of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links The following operation: selecting at least two wireless communication links to transmit the game data packet to be transmitted according to system state parameters.
  • the instruction in the program is specifically used to execute the transmission timing of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links The following operation: selecting at least two wireless communication links to transmit the game data packet to be transmitted according to the setting information of the user.
  • the instructions in the program are also used to perform the following operations: when it is detected that the first game application scenario is a data update scenario, it is determined that the smart link aggregation SLA function cannot be used to offload the transmission An update data packet of a data update scenario; or, when it is detected that the first game application scenario is a data update scenario, and the size of the update data packet of the data update scenario is greater than a preset threshold, it is determined that the smart link cannot be passed
  • the aggregate SLA function distributes and transmits the update data packet.
  • 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 for each specific application to implement the described functions, 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 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 integrated unit may be implemented in the form of hardware or a software functional unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 6 is a block diagram of functional units of the data transmission device 600 involved in the embodiment of the present application.
  • the data transmission device 600 is applied to electronic equipment, including a processing unit 601 and a communication unit 602, where,
  • the processing unit 601 is configured to determine whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function according to the first game application scenario of the currently running game application; if it is, determine the The size of the game data packet to be transmitted in the first game application scenario, and determining the transmission timing of offloading the game data packet to be transmitted according to the size; at the transmission timing, the plurality of wireless devices are controlled by the communication unit 602 At least two wireless communication links in the communication link transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • the data transmission device 600 may further include a storage unit 603 for storing program codes and data of electronic devices.
  • the processing unit 601 may be a processor
  • the communication unit 602 may be a touch screen or a transceiver
  • the storage unit 603 may be a memory.
  • the electronic device first determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if it is, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  • the electronic device can shunt the transmission of game data packets through the intelligent link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network
  • the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
  • the processing unit 601 is specifically configured to: obtain the game application in the first game application scenario Multiple historical usage records under; and used to determine the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
  • the processing unit 601 is specifically configured to: use the size of the game data packet to be transmitted as a query identifier, Query the preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determine the transmission timing corresponding to the size of the game data packet to be transmitted.
  • the processing unit 601 is specifically configured to: determine that in the first game application scenario, the current display A first game application interface; and a second game application interface corresponding to the user operation according to the user operation and the logical relationship between multiple game application interfaces in the first game application scenario; and It is used to determine that the size of the corresponding game data packet is the size of the game data packet to be transmitted between running the first game application interface and the second game application interface.
  • the processing unit 601 is specifically configured to: determine the offload transmission according to the size of the game data packet to be transmitted.
  • the transmission timing of the game data packet to be transmitted is the timing of displaying the third game application interface, the display time of the third game application interface is after the display time of the first game application interface, and in the second game Before the display time of the application interface.
  • the processing unit 601 is specifically configured to: randomly select at least two wireless communication links to transmit the Transfer game data packets.
  • the processing unit 601 is specifically configured to: select at least two wireless communication links for transmission according to system state parameters The game data packet to be transmitted.
  • the processing unit 601 is specifically configured to: select at least two wireless communication links according to user setting information Transmitting the game data packet to be transmitted.
  • the processing unit 601 is specifically configured to: detect that the first game application scenario is a data update scenario When it is determined that it is not possible to shunt the update data packet of the data update scenario through the smart link aggregation SLA function; or, when it is detected that the first game application scenario is a data update scenario, and the update data of the data update scenario When the size of the packet is greater than a preset threshold, it is determined that the update data packet cannot be offloaded through the intelligent link aggregation SLA function.
  • 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, and the computer program causes the computer to perform part or all of the steps of any method described in the above method embodiments ,
  • the aforementioned computer includes electronic devices.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing the computer program, the computer program is operable to cause the computer to execute any of the methods described in the above 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 division of the above-mentioned units is only a division of logical functions.
  • there may be other division methods 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 may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may 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, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application.
  • the aforementioned 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.

Abstract

Disclosed in the present application are a data transmission method and a related apparatus, applicable to an electronic device. The electronic device enables a plurality of wireless communication links. The method comprises: determining, according to a first game application scene of a game application operated at present, whether a game data packet of the first game application scene can be transmitted in shunt by means of an intelligent link aggregation SLA function; if yes, determining the size of the game data packet to be transmitted of the first game application scene, and determining the transmission time for shunt transmission of the game data packet according to the size; and transmitting the game data packet by means of at least two wireless communication links in the plurality of wireless communication links at the transmission time, the at least two wireless communication links comprising a data network wireless communication link. According to the present application, consumption of much data flow due to shunt in advance is avoided.

Description

数据传输方法及相关装置Data transmission method and related device 技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种数据传输方法及相关装置。The present application relates to the field of electronic technology, in particular to a data transmission method and related devices.
背景技术Background technique
随着移动通信技术的发展,用户对数据通信的需求越来越大,目前市面上的智能终端在进行数据传输时,一般通过蜂窝移动网络通信或者Wi-Fi通信等方式发送数据,智能终端需要和相同区域内的其他设备竞争无线链路资源,难以满足用户的上网需求。With the development of mobile communication technology, users' demand for data communication is increasing. Currently, when smart terminals on the market transmit data, they generally send data through cellular mobile network communication or Wi-Fi communication. Smart terminals need to Competing with other devices in the same area for wireless link resources, it is difficult to meet users' Internet access requirements.
发明内容Summary of the invention
本申请实施例提供一种数据传输方法及相关装置,以期避免因提前分流导致消耗较多数据流量。Embodiments of the present application provide a data transmission method and related devices, in order to avoid consuming more data traffic due to early traffic distribution.
第一方面,本申请实施例提供一种数据传输方法,应用于电子设备,所述电子设备启用多个无线通信链路,所述方法包括:In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to an electronic device that enables multiple wireless communication links. The method includes:
根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包;According to the first game application scenario of the currently running game application, determine whether the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function;
若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机;If yes, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for shunting the game data packet to be transmitted according to the size;
在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。Transmitting the game data packet to be transmitted through at least two wireless communication links among the plurality of wireless communication links at the transmission timing, the at least two wireless communication links including a data network wireless communication link.
第二方面,本申请实施例提供一种数据传输装置,应用于电子设备,所述数据传输装置包括处理单元和通信单元,其中,In a second aspect, an embodiment of the present application provides a data transmission device, which is applied to an electronic device. The data transmission device includes a processing unit and a communication unit, wherein,
所述处理单元,用于根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包;若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机;在所述传输时机通过所述通信单元控制所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。The processing unit is configured to determine whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function according to the first game application scenario of the currently running game application; if so, determine the first The size of the game data packet to be transmitted in a game application scenario, and determining the transmission timing of offloading the game data packet to be transmitted according to the size; at the transmission timing, the multiple wireless communication chains are controlled by the communication unit At least two wireless communication links in the path transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where 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.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。According to a fourth aspect, 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. In one aspect, some or all of the steps described in any method.
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。According to a fifth aspect, 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.
可以看出,在本申请实施例中,电子设备首先根据当前运行的游戏应用的第一游戏应 用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包,其次,若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机,最后,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。由于电子设备在检测到游戏应用的第一游戏应用场景下可以通过智能链路聚合SLA功能分流传输游戏数据包时,且在分流时启用的无线通信链路中包括数据网络对应的无线通信链路时,会先确定第一游戏应用场景的待传输游戏数据包的大小,根据大小确定分流传输待传输游戏数据包的时机,有利于避免因提前分流导致消耗较多的数据流量。It can be seen that in the embodiment of the present application, the electronic device first determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link. Because the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network At this time, the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly explain the technical solutions in the embodiments or the background technology of the present application, the drawings required in the embodiments or the background technology of the present application will be described below.
图1是本申请实施例提供的一种电子设备所处无线通信系统的示例系统架构图;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;
图2是本申请实施例提供的一种数据传输方法的流程示意图;2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
图3是本申请实施例提供的另一种数据传输方法的流程示意图;3 is a schematic flowchart of another data transmission method provided by an embodiment of the present application;
图4是本申请实施例提供的另一种数据传输方法的流程示意图;4 is a schematic flowchart of another data transmission method provided by an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构示意图;5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图6是本申请实施例提供的一种数据传输装置的功能单元组成框图。6 is a block diagram of functional units of a data transmission device provided by an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, but not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of this application.
以下分别进行详细说明。The details are described below.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" in the description and claims of the present application and the accompanying drawings are used to distinguish different objects, not to describe a specific order . In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "embodiments" means that specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art understand explicitly and implicitly that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的电子设备可以是具备数据传输能力的电子设备,该电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。The electronic devices involved in the embodiments of the present application may be electronic devices with data transmission capabilities. The electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted 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), etc.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.
智能链路聚合(Smart Link Aggregation,SLA),是指使设备可以同时使用两个或者两个以上的网口同时进行上网,比如在手机上启用智能链路聚合SLA功能后,手机可以同时使用无线保真Wi-Fi和数据网络LTE来进行网络访问。android网络系统,当Wi-Fi被使能的时 候,会导致数据网络不可使用(connectivity Service网络评分机制导致数据网络断开),而智能链路聚合至少需要两个或两个以上的可用网络,所以服务等级协议(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无线电波)等。Smart Link Aggregation (Smart Link Aggregation, SLA) means that the device can use two or more network ports to access the Internet at the same time. For example, after the Smart Link Aggregation SLA function is enabled on the mobile phone, the mobile phone can use the wireless protection at the same time. Real Wi-Fi and data network LTE for network access. Android network system, when Wi-Fi is enabled, will cause the data network to be unusable (connectivity Service network scoring mechanism causes the data network to be disconnected), and smart link aggregation requires at least two or more available networks, Therefore, the prerequisite for Service-Level Agreement (abbreviated as SLA) is to make Wi-Fi and data networks coexist. As shown in FIG. 1, at present, the electronic device 101 can be connected to a data network 103, which is a communication network for transmitting data services; it can also be connected to Wi-Fi 102, which is an electronic device that allows electronic devices to connect to a wireless local area network The technology usually uses 2.4G UHF or 5G SHF ISM radio frequency band; it can also be connected to Bluetooth 104, a wireless technology standard that 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.
请参阅图2,图2是本申请实施例提供了一种数据传输方法的流程示意图,应用于电子设备,所述电子设备启用多个无线通信链路。本数据传输方法包括:Please refer to FIG. 2, which is a schematic flowchart of a data transmission method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device enables multiple wireless communication links. This data transmission method includes:
S201,所述电子设备根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包。S201. The electronic device determines whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function according to the first game application scenario of the currently running game application.
其中,在检测到电子设备当前运行有游戏应用时,确定游戏应用的第一游戏应用场景,根据该游戏应用场景确定是否可以通过智能链路聚合SLA功能分流传输第一游戏应用场景的游戏数据包。例如,在检测到第一游戏应用场景为游戏应用预设的游戏应用场景集合中的场景时,确定可以通过智能链路聚合SLA功能分流传输第一游戏应用场景的游戏数据包游戏。其中,预设的游戏应用场景集合中可以包括游戏登录场景、游戏团战场景、游戏观战场景、游戏商城场景、游戏抽奖场景等场景。Wherein, when it is detected that the electronic device is currently running a game application, the first game application scenario of the game application is determined, and whether the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function is determined according to the game application scenario . For example, when it is detected that the first game application scene is a scene in the game application scene set preset for the game application, it is determined that the game data packet game of the first game application scene can be shunted and transmitted through the intelligent link aggregation SLA function. Among them, the preset set of game application scenes may include game login scenes, game team battle scenes, game watching scenes, game mall scenes, game lottery scenes and other scenes.
S202,所述电子设备在检测到可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包时,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机。S202, the electronic device determines the size of the game data packet to be transmitted in the first game application scenario when it detects that the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function, and According to the size, a transmission timing for streaming the game data packet to be transmitted is determined.
其中,确定第一游戏应用场景下,待传输的游戏数据包的大小,根据大小确定分流时机,从而避免在分流时会使用数据网络的情况下,因为提前分流导致耗费较多的数据流量。Among them, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the offloading timing according to the size, so as to avoid the situation that the data network will be used during offloading, because the early offloading leads to more data traffic.
S203,所述电子设备在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。S203. The electronic device transmits the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links at the transmission timing, and the at least two wireless communication links include a data network Wireless communication link.
其中,在确定待传输游戏数据包的传输时机之后,在传输时机到来时通过多个无线通信链路中的至少两个无线通信链路传输待传输游戏数据包,至少两个无线通信链路中包括数据网络对应的无线通信链路。After determining the transmission timing of the game data packet to be transmitted, when the transmission timing arrives, the game data packet to be transmitted is transmitted through at least two wireless communication links of the plurality of wireless communication links, and at least two wireless communication links Including the wireless communication link corresponding to the data network.
其中,在传输时机之前,可以通过多个无线通信链路中除数据网络无线通信链路之外的无线通信链路传输待传输的游戏数据包。同时,在传输时机之前,可以预先将待传输的游戏数据包拆分为多个游戏数据包,通过多个无线通信链路中的至少两个无线通信链路分流传输所述拆分后的多个游戏数据包,从而可提高数据传输的效率。Before the transmission timing, the game data packet to be transmitted may be transmitted through a wireless communication link other than the data network wireless communication link among the multiple wireless communication links. At the same time, before the transmission timing, the game data packet to be transmitted may be split into multiple game data packets in advance, and the split multiple Game data packets, which can improve the efficiency of data transmission.
可以看出,在本申请实施例中,电子设备首先根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包,其次,若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机,最后,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。由于电子设备在检测到游戏应用的第一游戏应用场景下可以通过智能链路聚合SLA功能分流传输游戏数据包时,且在分流时启用的无线通信链路中包括数据网络对应的无线通信链路时,会先确定第一游戏应用场景的待传输游戏数据包的大小,根据大小确定分流传输待传输游戏数据包的时机,有利于避免因提前分流导致消耗较多的数据流量。It can be seen that in the embodiment of the present application, the electronic device first determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link. Because the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network At this time, the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
在一个可能的示例中,所述确定所述第一游戏应用场景的待传输游戏数据包的大小,包括:获取所述游戏应用在所述第一游戏应用场景下的多个历史使用记录;根据所述多个历史使用记录确定在所述第一游戏应用场景下待传输游戏数据包的大小。In a possible example, the determining the size of the game data packet to be transmitted in the first game application scenario includes: acquiring multiple historical usage records of the game application in the first game application scenario; The multiple historical usage records determine the size of the game data packet to be transmitted in the first game application scenario.
其中,获取游戏应用在第一游戏应用场景下的多个历史使用记录,根据历史使用记录确定在第一游戏场景下,待传输游戏数据包的大小。例如,第一游戏应用场景为游戏观战场景,获取在游戏观战场景下的多个历史使用记录,如100个历史使用记录,获取每次传输游戏数据包的大小后再求平均值,可确定在游戏观战场景下传输的游戏数据包的平均大小。Wherein, multiple historical usage records of the game application in the first game application scenario are obtained, and the size of the game data packet to be transmitted in the first game scenario is determined according to the historical usage records. For example, the first game application scenario is a game watching scene. Obtain multiple historical usage records under the game watching scene, such as 100 historical usage records. After obtaining the size of each game data packet transmitted and then averaging, it can be determined that The average size of the game data packets transmitted in the game watching scene.
可见,本示例中,通过对在第一游戏应用场景下的多个历史使用记录做分析,确定在第一游戏应用场景下待传输游戏数据包的大小,并存储在数据库中,有利于快速根据第一游戏应用场景确定待传输的游戏数据包的大小。It can be seen that in this example, by analyzing multiple historical usage records in the first game application scenario, the size of the game data packet to be transmitted in the first game application scenario is determined and stored in the database, which is helpful for rapid The first game application scenario determines the size of the game data packet to be transmitted.
在一个可能的示例中,所述根据所述大小确定所述待传输游戏数据包的传输时机,包括:以所述待传输游戏数据包的大小为查询标识,查询预设的在所述第一游戏应用场景下游戏数据包大小和传输时机之间的映射关系,确定所述待传输游戏数据包大小对应的传输时机。In a possible example, the determining the transmission timing of the game data packet to be transmitted according to the size includes: using the size of the game data packet to be transmitted as a query identifier, querying the preset in the first The mapping relationship between the size of the game data packet and the transmission timing in the game application scenario determines the transmission timing corresponding to the size of the game data packet to be transmitted.
其中,由于在分流传输待传输的游戏数据包时,会启用数据网络对应的无线通信链路,从而会消耗电子设备的数据流量,为避免消耗较多的数据流量,可根据数据包的大小,确定分流传输的时机。例如,分流传输时会启用WIFI无线通信链路和数据网络无线通信链路,在分流传输之前,只使用WIFI无线通信链路。因此,可以在数据包越大时,越晚分流传输,数据包越小时,越早分流传输。Among them, when the game data packet to be transmitted is shunted, the wireless communication link corresponding to the data network will be enabled, which will consume the data traffic of the electronic device. In order to avoid consuming more data traffic, according to the size of the data packet, Determine the timing of offload transmission. For example, WIFI wireless communication link and data network wireless communication link are enabled during offload transmission. Before offload transmission, only WIFI wireless communication link is used. Therefore, the larger the data packet, the later the split transmission, and the smaller the data packet, the earlier the split transmission.
可见,本示例中,以待传输游戏数据包的大小为查询标识,查询预设的数据包大小和传输时机之间的映射关系,从而可确定分流传输待传输游戏数据包的传输时机,进而可以通过在传输时机到来时再分流传输待传输的游戏数据包实现节省数据流量。It can be seen that in this example, the size of the game data packet to be transmitted is used as the query identifier to query the mapping relationship between the preset data packet size and the transmission timing, so as to determine the transmission timing of the game data packet to be shunted and transmitted. Saving data traffic is achieved by offloading the game data packets to be transmitted when the transmission timing comes.
在一个可能的示例中,所述确定所述第一游戏应用场景的待传输游戏数据包的大小,包括:确定在所述第一游戏应用场景下,当前显示的第一游戏应用界面;根据所述用户操作以及在所述第一游戏应用场景下多个游戏应景界面之间的逻辑关系,确定所述用户操作对应的第二游戏应用界面;确定运行所述第一游戏应用界面到第二游戏应用界面之间,对应的游戏数据包的大小为所述待传输游戏数据包的大小。In a possible example, the determining the size of the game data packet to be transmitted in the first game application scenario includes: determining the currently displayed first game application interface in the first game application scenario; The user operation and the logical relationship between multiple game application interfaces in the first game application scenario, determining a second game application interface corresponding to the user operation; determining to run the first game application interface to a second game Between application interfaces, the size of the corresponding game data packet is the size of the game data packet to be transmitted.
其中,确定在第一应用场景下,电子设备当前显示的第一应用界面,从而,可根据用户操作以及在第一游戏应用场景下多个游戏应用界面之间的逻辑关系,确定用户操作对应的第二游戏应用界面,因此,待传输的游戏数据包为从运行第一游戏应用界面到运行第二游戏应用界面之间的时间需要传输的游戏数据包。The first application interface currently displayed by the electronic device in the first application scenario is determined, so that the user operation and the logical relationship between multiple game application interfaces in the first game application scenario can be used to determine the corresponding user operation The second game application interface, therefore, the game data packet to be transmitted is a game data packet that needs to be transmitted during the time from running the first game application interface to running the second game application interface.
可见,本示例中,根据电子设备当前显示的第一游戏应用界面,以及根据用户操作,提前确定用户操作对应的第二游戏应用界面,根据第一游戏应用界面和第二游戏应用界面可更准确的获取待传输的游戏数据包的大小。It can be seen that in this example, the first game application interface currently displayed on the electronic device and the second game application interface corresponding to the user operation are determined in advance according to the user operation, which can be more accurate according to the first game application interface and the second game application interface To obtain the size of the game data packet to be transmitted.
在一个可能的示例中,所述根据所述大小确定所述待传输游戏数据包的传输时机,包括:根据所述待传输游戏数据包的大小,确定分流传输所述待传输游戏数据包的传输时机为显示第三游戏应用界面的时机,所述第三游戏应用界面的显示时间在所述第一游戏应用界面的显示时间之后,以及在所述第二游戏应用界面的显示时间之前。In a possible example, the determining the transmission timing of the game data packet to be transmitted according to the size includes: determining the transmission of the game data packet to be shunted according to the size of the game data packet to be transmitted The timing is when the third game application interface is displayed, the display time of the third game application interface is after the display time of the first game application interface, and before the display time of the second game application interface.
其中,根据第一游戏应用场景下,多个游戏应用界面之间的逻辑关系,可确定从第一游戏应景界面到第二游戏应用界面之间包括的多个游戏应用界面,确定分流传输时机为显示第三游戏应用界面的时机,第三游戏应用界面的显示时间在第一游戏应用界面的显示时间之后,第二游戏应用界面的显示时间之前。例如,例如,在游戏英雄挑选界面,表明用 户即将开始进入游戏,最终进入游戏对战界面,可在英雄挑选界面之后,以及游戏对战界面之前的应用界面再进行分流传输,避免因提前分流消耗较多数据流量。According to the logical relationship between multiple game application interfaces in the first game application scenario, multiple game application interfaces included from the first game application interface to the second game application interface can be determined, and the timing of the offload transmission can be determined as The timing of displaying the third game application interface. The display time of the third game application interface is after the display time of the first game application interface and before the display time of the second game application interface. For example, in the game hero selection interface, it indicates that the user is about to start entering the game, and finally enters the game battle interface. The application interface after the hero selection interface and before the game battle interface can be shunted to avoid consuming more due to early shunting. Data Flow.
可见,本示例中,待传输游戏数据包的传输时机为显示第三游戏应用界面的时机,第三游戏应用界面的显示时间在第一游戏应用界面的显示时间之后,在第二游戏应用界面的显示时间之前,从而,由于延后了分流传输的时间,减少了数据流量的消耗。It can be seen that in this example, the transmission timing of the game data packet to be transmitted is the timing of displaying the third game application interface. The display time of the third game application interface is after the display time of the first game application interface, and the Before the display time, therefore, the data flow consumption is reduced due to the delay of the offload transmission time.
在一个可能的示例中,所述在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,包括:随机选择至少两个无线通信链路传输所述待传输游戏数据包;或,根据系统状态参数选择至少两个无线通信链路传输所述待传输游戏数据包;或,根据用户的设置信息选择至少两个无线通信链路传输所述待传输游戏数据包。In a possible example, the transmission of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links at the transmission timing includes: randomly selecting at least two wireless communication The link transmits the game data packet to be transmitted; or, at least two wireless communication links are selected to transmit the game data packet to be transmitted according to system state parameters; or, at least two wireless communication link transmissions are selected according to the user's setting information The game data packet to be transmitted.
其中,可以随机选择至少两个无线通信链路,或者根据系统状态参数选择至少两个无线通信链路,如根据电子设备的剩余电量选择至少两个无线通信链路或者根据电子设备的模式选择至少两个无线通信链路,或者根据用户的设置信息选择至少两个无线通信链路,是指用户可以设置固定无线通信链路,例如设置只要有听音乐这个任务时,总是启动zigbee无线通信链路,两个电子设备之间传输文件时,总是启动蓝牙无线通信链路等,其中,至少两个无线通信链路中包括数据网络无线通信链路。Among them, at least two wireless communication links may be randomly selected, or at least two wireless communication links may be selected according to system state parameters, such as selecting at least two wireless communication links according to the remaining power of the electronic device or selecting at least two according to the mode of the electronic device Two wireless communication links, or select at least two wireless communication links according to the user's setting information, means that the user can set up a fixed wireless communication link, for example, set to always start the zigbee wireless communication link whenever there is a task to listen to music Road, when transferring files between two electronic devices, always start a Bluetooth wireless communication link, etc., wherein at least two wireless communication links include a data network wireless communication link.
可见,本示例中,电子设备选择至少两个无线通信链路的方式具有多样性,能够提高数据传输便利性,稳定性。It can be seen that in this example, the manner in which the electronic device selects at least two wireless communication links has diversity, which can improve the convenience and stability of data transmission.
在一个可能的示例中,所述方法还包括:在检测到所述第一游戏应用场景为数据更新场景时,确定不可以通过智能链路聚合SLA功能分流传输所述数据更新场景的更新数据包;或,在检测到所述第一游戏应用场景为数据更新场景,且所述数据更新场景的更新数据包的大小大于预设阈值时,确定不可以通过智能链路聚合SLA功能分流传输所述更新数据包。In a possible example, the method further includes: when it is detected that the first game application scenario is a data update scenario, determining that the update data packet of the data update scenario cannot be shunted through the smart link aggregation SLA function Or, when it is detected that the first game application scenario is a data update scenario, and the size of the update data packet of the data update scenario is greater than a preset threshold, it is determined that the smart link aggregation SLA function cannot be used to shunt the transmission Update the data package.
其中,有的游戏应用在开启阶段会自动进行数据更新,在数据更新场景下,通常需要下载的数据更新包较大,如果此时采用分流传输机制,使用数据网络下载更新数据包时,会耗费较多的数据流量,因此,可以对第一游戏应用场景进行识别,在检测到第一游戏应用场景为数据更新场景时,不通过智能链路聚合SLA功能分流传输数据更新场景的更新数据包,或者,在检测到第一游戏应用场景为数据更新场景时,检测到需要下载的数据更新包的大小大于预设阈值,如200兆时,确定不可以通过智能链路聚合SLA功能分流传输更新数据包。Among them, some game applications will automatically update the data during the opening phase. In the data update scenario, the data update package that needs to be downloaded is usually large. If the shunt transmission mechanism is used at this time, it will be costly when using the data network to download the update data package. More data traffic, therefore, the first game application scenario can be identified. When it is detected that the first game application scenario is a data update scenario, the update packet of the data update scenario is not shunted through the smart link aggregation SLA function, Or, when it is detected that the first game application scenario is a data update scenario, it is detected that the size of the data update package to be downloaded is greater than a preset threshold, such as 200 trillion, it is determined that the smart link aggregation SLA function cannot be used to shunt the update data package.
可见,本示例中,对游戏应用当前运行的第一游戏应用场景进行识别,在检测到第一游戏应用场景为数据更新场景时,为避免使用数据流量下载更新包导致耗费较多数据流量,可不实施分流传输机制,通过除数据网络对应的无线通信链路之外的无线通信链路来下载更新包,从而有利于节省数据流量。It can be seen that in this example, the first game application scenario currently running by the game application is identified. When it is detected that the first game application scenario is a data update scenario, in order to avoid the use of data traffic to download the update package and consume a lot of data traffic, it is not necessary Implement the offload transmission mechanism to download the update package through a wireless communication link other than the wireless communication link corresponding to the data network, thereby helping to save data traffic.
与所述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种数据传输方法的流程示意图,应用于电子设备,所述电子设备启用多个无线通信链路。如图所示,本数据传输方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of the present application. The method is applied to an electronic device, and the electronic device enables multiple wireless communications. link. As shown in the figure, the data transmission method includes:
S301,所述电子设备根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包。S301. The electronic device determines, according to the first game application scenario of the currently running game application, whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function.
S302,所述电子设备在检测到可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包时,获取所述游戏应用在所述第一游戏应用场景下的多个历史使用记录。S302, when detecting that the game data packet that can shunt and transmit the first game application scenario through an intelligent link aggregation SLA function, the electronic device obtains multiple history of the game application in the first game application scenario Use records.
S303,所述电子设备根据所述多个历史使用记录确定在所述第一游戏应用场景下待传 输游戏数据包的大小。S303. The electronic device determines the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
S304,所述电子设备根据所述大小确定分流传输所述待传输游戏数据包的传输时机。S304. The electronic device determines a transmission timing for streaming the game data packet to be transmitted according to the size.
S305,所述电子设备在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。S305. The electronic device transmits the to-be-transmitted game data packet through at least two wireless communication links of the plurality of wireless communication links at the transmission timing, and the at least two wireless communication links include a data network Wireless communication link.
可以看出,在本申请实施例中,电子设备首先根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包,其次,若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机,最后,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。由于电子设备在检测到游戏应用的第一游戏应用场景下可以通过智能链路聚合SLA功能分流传输游戏数据包时,且在分流时启用的无线通信链路中包括数据网络对应的无线通信链路时,会先确定第一游戏应用场景的待传输游戏数据包的大小,根据大小确定分流传输待传输游戏数据包的时机,有利于避免因提前分流导致消耗较多的数据流量。It can be seen that in the embodiment of the present application, the electronic device first determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link. Because the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network At this time, the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
此外,通过对在第一游戏应用场景下的多个历史使用记录做分析,确定在第一游戏应用场景下待传输游戏数据包的大小,并存储在数据库中,有利于快速根据第一游戏应用场景确定待传输的游戏数据包的大小。In addition, by analyzing multiple historical usage records in the first game application scenario, the size of the game data packet to be transmitted in the first game application scenario is determined and stored in the database, which is helpful for quickly according to the first game application The scene determines the size of the game data packet to be transmitted.
与所述图2、图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种数据传输方法的流程示意图,应用于电子设备,所述电子设备启用多个无线通信链路。如图所示,本数据传输方法包括:Consistent with the embodiments shown in FIG. 2 and FIG. 3, please refer to FIG. 4. FIG. 4 is a schematic flowchart of a data transmission method provided by an embodiment of the present application. The method is applied to an electronic device. Wireless communication links. As shown in the figure, the data transmission method includes:
S401,所述电子设备根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包。S401. The electronic device determines, according to the first game application scenario of the currently running game application, whether to shunt and transmit the game data packet of the first game application scenario through an intelligent link aggregation SLA function.
S402,所述电子设备在检测到可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包时,获取所述游戏应用在所述第一游戏应用场景下的多个历史使用记录。S402, the electronic device obtains multiple history of the game application in the first game application scenario when it detects that the game data packet that can shunt and transmit the first game application scenario through the smart link aggregation SLA function Use records.
S403,所述电子设备根据所述多个历史使用记录确定在所述第一游戏应用场景下待传输游戏数据包的大小。S403. The electronic device determines the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
S404,所述电子设备以所述待传输游戏数据包的大小为查询标识,查询预设的在所述第一游戏应用场景下游戏数据包大小和传输时机之间的映射关系,确定所述待传输游戏数据包大小对应的传输时机。S404, the electronic device uses the size of the game data packet to be transmitted as a query identifier, queries a preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determines the Transmission timing corresponding to the size of the transmission game packet.
S405,所述电子设备在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。S405, the electronic device transmits the to-be-transmitted game data packet through at least two wireless communication links of the plurality of wireless communication links at the transmission timing, and the at least two wireless communication links include a data network Wireless communication link.
可以看出,在本申请实施例中,电子设备首先根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包,其次,若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机,最后,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。由于电子设备在检测到游戏应用的第一游戏应用场景下可以通过智能链路聚合SLA功能分流传输游戏数据包时,且在分流时启用的无线通信链路中包括数据网络对应的无线通信链路时,会先确定第一游戏应用场景的待传输 游戏数据包的大小,根据大小确定分流传输待传输游戏数据包的时机,有利于避免因提前分流导致消耗较多的数据流量。It can be seen that in the embodiment of the present application, the electronic device first determines whether the game data packet of the first game application scenario can be shunted and transmitted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link. Because the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network At this time, the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
此外,通过对在第一游戏应用场景下的多个历史使用记录做分析,确定在第一游戏应用场景下待传输游戏数据包的大小,并存储在数据库中,有利于快速根据第一游戏应用场景确定待传输的游戏数据包的大小。In addition, by analyzing multiple historical usage records in the first game application scenario, the size of the game data packet to be transmitted in the first game application scenario is determined and stored in the database, which is helpful for quickly according to the first game application The scene determines the size of the game data packet to be transmitted.
此外,以待传输游戏数据包的大小为查询标识,查询预设的数据包大小和传输时机之间的映射关系,从而可确定分流传输待传输游戏数据包的传输时机,进而可以通过在传输时机到来时再分流传输待传输的游戏数据包实现节省数据流量。In addition, the size of the game data packet to be transmitted is used as the query identifier, and the mapping relationship between the preset data packet size and the transmission timing is queried, so that the transmission timing of the game data packet to be shunted and transmitted can be determined, and then the transmission timing can be determined by When it arrives, the game data packets to be transmitted are shunted to save data traffic.
与所述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,该电子设备500运行有一个或多个应用程序和操作系统,如图所示,该电子设备500包括处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在所述存储器520中,并且被配置由所述处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令;Consistent with the embodiments shown in FIG. 2, FIG. 3, and FIG. 4, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. The electronic device 500 operates with one or Multiple application programs and operating systems, as shown, the electronic device 500 includes a 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 all In the memory 520 and configured to be executed by the processor 510, the one or more programs 521 include instructions for performing the following steps;
根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包;According to the first game application scenario of the currently running game application, determine whether the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function;
若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机;If yes, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for shunting the game data packet to be transmitted according to the size;
在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。Transmitting the game data packet to be transmitted through at least two wireless communication links among the plurality of wireless communication links at the transmission timing, the at least two wireless communication links including a data network wireless communication link.
可以看出,在本申请实施例中,电子设备首先根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包,其次,若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机,最后,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。由于电子设备在检测到游戏应用的第一游戏应用场景下可以通过智能链路聚合SLA功能分流传输游戏数据包时,且在分流时启用的无线通信链路中包括数据网络对应的无线通信链路时,会先确定第一游戏应用场景的待传输游戏数据包的大小,根据大小确定分流传输待传输游戏数据包的时机,有利于避免因提前分流导致消耗较多的数据流量。It can be seen that in the embodiment of the present application, the electronic device first determines whether the game data packet of the first game application scenario can be shunted and transmitted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if so, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the time at the transmission timing At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link. Because the electronic device can shunt the transmission of game data packets through the smart link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network At this time, the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
在一个可能的示例中,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述程序中的指令具体用于执行以下操作:获取所述游戏应用在所述第一游戏应用场景下的多个历史使用记录;根据所述多个历史使用记录确定在所述第一游戏应用场景下待传输游戏数据包的大小。In a possible example, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the instructions in the program are specifically used to perform the following operations: obtain the game application in the first Multiple historical usage records in a game application scenario; determining the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
在一个可能的示例中,在所述根据所述大小确定所述待传输游戏数据包的传输时机方面,所述程序中的指令具体用于执行以下操作:以所述待传输游戏数据包的大小为查询标识,查询预设的在所述第一游戏应用场景下游戏数据包大小和传输时机之间的映射关系,确定所述待传输游戏数据包大小对应的传输时机。In a possible example, in terms of determining the transmission timing of the game data packet to be transmitted according to the size, the instructions in the program are specifically used to perform the following operations: the size of the game data packet to be transmitted To query the identifier, query the preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determine the transmission timing corresponding to the size of the game data packet to be transmitted.
在一个可能的示例中,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述程序中的指令具体用于执行以下操作:确定在所述第一游戏应用场景下,当前显示的第一游戏应用界面;根据所述用户操作以及在所述第一游戏应用场景下多个游戏应景界面之间的逻辑关系,确定所述用户操作对应的第二游戏应用界面;确定运行所述第一游戏应用界面到第二游戏应用界面之间,对应的游戏数据包的大小为所述待传输游戏数据 包的大小。In a possible example, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the instructions in the program are specifically used to perform the following operations: determine the first game application scenario Next, the currently displayed first game application interface; according to the user operation and the logical relationship between multiple game application interfaces in the first game application scenario, determine the second game application interface corresponding to the user operation; It is determined that the size of the corresponding game data packet is the size of the game data packet to be transmitted between running the first game application interface and the second game application interface.
在一个可能的示例中,在所述根据所述大小确定所述待传输游戏数据包的传输时机方面,所述程序中的指令具体用于执行以下操作:根据所述待传输游戏数据包的大小,确定分流传输所述待传输游戏数据包的传输时机为显示第三游戏应用界面的时机,所述第三游戏应用界面的显示时间在所述第一游戏应用界面的显示时间之后,以及在所述第二游戏应用界面的显示时间之前。In a possible example, in terms of determining the transmission timing of the game data packet to be transmitted according to the size, the instructions in the program are specifically used to perform the following operations: according to the size of the game data packet to be transmitted , Determining that the transmission timing for streaming the game data packet to be transmitted is the timing for displaying the third game application interface, the display time of the third game application interface is after the display time of the first game application interface, and Before the display time of the second game application interface.
在一个可能的示例中,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包方面,所述程序中的指令具体用于执行以下操作:随机选择至少两个无线通信链路传输所述待传输游戏数据包。In a possible example, the instruction in the program is specifically used to execute the transmission timing of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links The following operation: randomly select at least two wireless communication links to transmit the game data packet to be transmitted.
在一个可能的示例中,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包方面,所述程序中的指令具体用于执行以下操作:根据系统状态参数选择至少两个无线通信链路传输所述待传输游戏数据包。In a possible example, the instruction in the program is specifically used to execute the transmission timing of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links The following operation: selecting at least two wireless communication links to transmit the game data packet to be transmitted according to system state parameters.
在一个可能的示例中,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包方面,所述程序中的指令具体用于执行以下操作:根据用户的设置信息选择至少两个无线通信链路传输所述待传输游戏数据包。In a possible example, the instruction in the program is specifically used to execute the transmission timing of the game data packet to be transmitted through at least two wireless communication links of the plurality of wireless communication links The following operation: selecting at least two wireless communication links to transmit the game data packet to be transmitted according to the setting information of the user.
在一个可能的示例中,所述程序中的指令还用于执行以下操作:在检测到所述第一游戏应用场景为数据更新场景时,确定不可以通过智能链路聚合SLA功能分流传输所述数据更新场景的更新数据包;或,在检测到所述第一游戏应用场景为数据更新场景,且所述数据更新场景的更新数据包的大小大于预设阈值时,确定不可以通过智能链路聚合SLA功能分流传输所述更新数据包。In a possible example, the instructions in the program are also used to perform the following operations: when it is detected that the first game application scenario is a data update scenario, it is determined that the smart link aggregation SLA function cannot be used to offload the transmission An update data packet of a data update scenario; or, when it is detected that the first game application scenario is a data update scenario, and the size of the update data packet of the data update scenario is greater than a preset threshold, it is determined that the smart link cannot be passed The aggregate SLA function distributes and transmits the update data packet.
上述实施例主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above embodiments mainly introduce the solutions of the embodiments of the present application from the perspective of the execution process on the method side. It can be understood that, in order to realize the above-mentioned functions, the electronic device includes a hardware structure and/or a software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the exemplary units and algorithm steps described in the embodiments disclosed herein, 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 for each specific application to implement the described functions, 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 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 integrated unit may be implemented in the form of hardware or a software functional unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
图6是本申请实施例中所涉及的数据传输装置600的功能单元组成框图。该数据传输装置600应用于电子设备,包括处理单元601和通信单元602,其中,FIG. 6 is a block diagram of functional units of the data transmission device 600 involved in the embodiment of the present application. The data transmission device 600 is applied to electronic equipment, including a processing unit 601 and a communication unit 602, where,
所述处理单元601,用于根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包;若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机;在所述传输时机通过所述通信单元602控制所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。The processing unit 601 is configured to determine whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function according to the first game application scenario of the currently running game application; if it is, determine the The size of the game data packet to be transmitted in the first game application scenario, and determining the transmission timing of offloading the game data packet to be transmitted according to the size; at the transmission timing, the plurality of wireless devices are controlled by the communication unit 602 At least two wireless communication links in the communication link transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
其中,所述数据传输装置600还可以包括存储单元603,用于存储电子设备的程序代码和数据。所述处理单元601可以是处理器,所述通信单元602可以是触控显示屏或者收发器,存储单元603可以是存储器。The data transmission device 600 may further include a storage unit 603 for storing program codes and data of electronic devices. The processing unit 601 may be a processor, the communication unit 602 may be a touch screen or a transceiver, and the storage unit 603 may be a memory.
可以看出,在本申请实施例中,电子设备首先根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包,其次,若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机,最后,在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。由于电子设备在检测到游戏应用的第一游戏应用场景下可以通过智能链路聚合SLA功能分流传输游戏数据包时,且在分流时启用的无线通信链路中包括数据网络对应的无线通信链路时,会先确定第一游戏应用场景的待传输游戏数据包的大小,根据大小确定分流传输待传输游戏数据包的时机,有利于避免因提前分流导致消耗较多的数据流量。It can be seen that in the embodiment of the present application, the electronic device first determines whether the game data packet of the first game application scenario can be shunted through the smart link aggregation SLA function according to the first game application scenario of the currently running game application , Secondly, if it is, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for offloading the game data packet to be transmitted according to the size, and finally, pass the At least two wireless communication links of the plurality of wireless communication links transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link. Because the electronic device can shunt the transmission of game data packets through the intelligent link aggregation SLA function in the first game application scenario where the game application is detected, and the wireless communication link enabled during the shunt includes the wireless communication link corresponding to the data network At this time, the size of the game data packet to be transmitted in the first game application scenario will be determined first, and the timing of offloading the game data packet to be transmitted according to the size is determined, which is beneficial to avoid consuming more data traffic due to early distribution.
在一个可能的示例中,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述处理单元601具体用于:获取所述游戏应用在所述第一游戏应用场景下的多个历史使用记录;以及用于根据所述多个历史使用记录确定在所述第一游戏应用场景下待传输游戏数据包的大小。In a possible example, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the processing unit 601 is specifically configured to: obtain the game application in the first game application scenario Multiple historical usage records under; and used to determine the size of the game data packet to be transmitted in the first game application scenario according to the multiple historical usage records.
在一个可能的示例中,在所述根据所述大小确定所述待传输游戏数据包的传输时机方面,所述处理单元601具体用于:以所述待传输游戏数据包的大小为查询标识,查询预设的在所述第一游戏应用场景下游戏数据包大小和传输时机之间的映射关系,确定所述待传输游戏数据包大小对应的传输时机。In a possible example, in terms of determining the transmission timing of the game data packet to be transmitted according to the size, the processing unit 601 is specifically configured to: use the size of the game data packet to be transmitted as a query identifier, Query the preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determine the transmission timing corresponding to the size of the game data packet to be transmitted.
在一个可能的示例中,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述处理单元601具体用于:确定在所述第一游戏应用场景下,当前显示的第一游戏应用界面;以及用于根据所述用户操作以及在所述第一游戏应用场景下多个游戏应景界面之间的逻辑关系,确定所述用户操作对应的第二游戏应用界面;以及用于确定运行所述第一游戏应用界面到第二游戏应用界面之间,对应的游戏数据包的大小为所述待传输游戏数据包的大小。In a possible example, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the processing unit 601 is specifically configured to: determine that in the first game application scenario, the current display A first game application interface; and a second game application interface corresponding to the user operation according to the user operation and the logical relationship between multiple game application interfaces in the first game application scenario; and It is used to determine that the size of the corresponding game data packet is the size of the game data packet to be transmitted between running the first game application interface and the second game application interface.
在一个可能的示例中,在所述根据所述大小确定所述待传输游戏数据包的传输时机方面,所述处理单元601具体用于:根据所述待传输游戏数据包的大小,确定分流传输所述待传输游戏数据包的传输时机为显示第三游戏应用界面的时机,所述第三游戏应用界面的显示时间在所述第一游戏应用界面的显示时间之后,以及在所述第二游戏应用界面的显示时间之前。In a possible example, in terms of determining the transmission timing of the game data packet to be transmitted according to the size, the processing unit 601 is specifically configured to: determine the offload transmission according to the size of the game data packet to be transmitted The transmission timing of the game data packet to be transmitted is the timing of displaying the third game application interface, the display time of the third game application interface is after the display time of the first game application interface, and in the second game Before the display time of the application interface.
在一个可能的示例中,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述处理单元601具体用于:随机选择至少两个无线通信链路传输所述待传输游戏数据包。In a possible example, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the processing unit 601 is specifically configured to: randomly select at least two wireless communication links to transmit the Transfer game data packets.
在一个可能的示例中,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述处理单元601具体用于:根据系统状态参数选择至少两个无线通信链路传输所述待传输游戏数据包。In a possible example, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the processing unit 601 is specifically configured to: select at least two wireless communication links for transmission according to system state parameters The game data packet to be transmitted.
在一个可能的示例中,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述处理单元601具体用于:根据用户的设置信息选择至少两个无线通信链路传输所述待传输游戏数据包。In a possible example, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the processing unit 601 is specifically configured to: select at least two wireless communication links according to user setting information Transmitting the game data packet to be transmitted.
在一个可能的示例中,在所述根据所述大小确定所述待传输游戏数据包的传输时机方面,所述处理单元601具体用于:在检测到所述第一游戏应用场景为数据更新场景时,确定不可以通过智能链路聚合SLA功能分流传输所述数据更新场景的更新数据包;或,在检测到所述第一游戏应用场景为数据更新场景,且所述数据更新场景的更新数据包的大小大于预设阈值时,确定不可以通过智能链路聚合SLA功能分流传输所述更新数据包。In a possible example, in terms of determining the transmission timing of the game data packet to be transmitted according to the size, the processing unit 601 is specifically configured to: detect that the first game application scenario is a data update scenario When it is determined that it is not possible to shunt the update data packet of the data update scenario through the smart link aggregation SLA function; or, when it is detected that the first game application scenario is a data update scenario, and the update data of the data update scenario When the size of the packet is greater than a preset threshold, it is determined that the update data packet cannot be offloaded through the intelligent link aggregation SLA function.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。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, and the computer program causes the computer to perform part or all of the steps of any method described in the above method embodiments , The aforementioned computer includes electronic devices.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing the computer program, the computer program is operable to cause the computer to execute any of the methods described in the above 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.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence, Because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed in an embodiment, you can refer to related descriptions in other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above-mentioned units is only a division of logical functions. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented. In addition, 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.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, 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 may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer readable memory. Based on this understanding, 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, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application. The aforementioned 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.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by a program instructing relevant hardware. 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.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application are described in detail above, and specific examples are used to explain the principle and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and core idea of the present application; at the same time, Those of ordinary skill in the art, according to the ideas of the present application, may have changes in specific implementations and application scopes. In summary, the content of this specification should not be construed as limiting the present application.

Claims (20)

  1. 一种数据传输方法,其特征在于,应用于电子设备,所述电子设备启用多个无线通信链路,所述方法包括:A data transmission method is characterized in that it is applied to an electronic device that enables multiple wireless communication links. The method includes:
    根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包;According to the first game application scenario of the currently running game application, determine whether the game data packet of the first game application scenario can be shunted and transmitted through the intelligent link aggregation SLA function;
    若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机;If yes, determine the size of the game data packet to be transmitted in the first game application scenario, and determine the transmission timing for shunting the game data packet to be transmitted according to the size;
    在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。Transmitting the game data packet to be transmitted through at least two wireless communication links among the plurality of wireless communication links at the transmission timing, the at least two wireless communication links including a data network wireless communication link.
  2. 根据权利要求1所述的数据传输方法,其特征在于,所述确定所述第一游戏应用场景的待传输游戏数据包的大小,包括:The data transmission method according to claim 1, wherein the determining the size of the game data packet to be transmitted in the first game application scenario includes:
    获取所述游戏应用在所述第一游戏应用场景下的多个历史使用记录;Acquiring multiple historical usage records of the game application in the first game application scenario;
    根据所述多个历史使用记录确定在所述第一游戏应用场景下待传输游戏数据包的大小。The size of the game data packet to be transmitted in the first game application scenario is determined according to the multiple historical usage records.
  3. 根据权利要求2所述的数据传输方法,其特征在于,所述根据所述大小确定所述待传输游戏数据包的传输时机,包括:The data transmission method according to claim 2, wherein the determining the transmission timing of the game data packet to be transmitted according to the size comprises:
    以所述待传输游戏数据包的大小为查询标识,查询预设的在所述第一游戏应用场景下游戏数据包大小和传输时机之间的映射关系,确定所述待传输游戏数据包大小对应的传输时机。Using the size of the game data packet to be transmitted as a query identifier, query the preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determine whether the size of the game data packet to be transmitted corresponds to Transmission timing.
  4. 根据权利要求1所述的数据传输方法,其特征在于,所述确定所述第一游戏应用场景的待传输游戏数据包的大小,包括:The data transmission method according to claim 1, wherein the determining the size of the game data packet to be transmitted in the first game application scenario includes:
    确定在所述第一游戏应用场景下,当前显示的第一游戏应用界面;Determine the first game application interface currently displayed in the first game application scenario;
    根据所述用户操作以及在所述第一游戏应用场景下多个游戏应景界面之间的逻辑关系,确定所述用户操作对应的第二游戏应用界面;Determine a second game application interface corresponding to the user operation according to the user operation and the logical relationship between multiple game scene interfaces in the first game application scenario;
    确定运行所述第一游戏应用界面到第二游戏应用界面之间,对应的游戏数据包的大小为所述待传输游戏数据包的大小。It is determined that the size of the corresponding game data packet is the size of the game data packet to be transmitted between running the first game application interface and the second game application interface.
  5. 根据权利要求4所述的数据传输方法,其特征在于,所述根据所述大小确定所述待传输游戏数据包的传输时机,包括:The data transmission method according to claim 4, wherein the determining the transmission timing of the game data packet to be transmitted according to the size comprises:
    根据所述待传输游戏数据包的大小,确定分流传输所述待传输游戏数据包的传输时机为显示第三游戏应用界面的时机,所述第三游戏应用界面的显示时间在所述第一游戏应用界面的显示时间之后,以及在所述第二游戏应用界面的显示时间之前。According to the size of the game data packet to be transmitted, it is determined that the transmission timing for shunting the game data packet to be transmitted is the timing to display the third game application interface, and the display time of the third game application interface is at the first game After the display time of the application interface, and before the display time of the second game application interface.
  6. 根据权利要求1至5任一项所述的数据传输方法,其特征在于,所述在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,包括:The data transmission method according to any one of claims 1 to 5, wherein the transmission timing transmits the to-be-transmitted via at least two wireless communication links among the plurality of wireless communication links Game data package, including:
    随机选择至少两个无线通信链路传输所述待传输游戏数据包。Randomly select at least two wireless communication links to transmit the game data packet to be transmitted.
  7. 根据权利要求1至5任一项所述的数据传输方法,其特征在于,所述在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,包括:The data transmission method according to any one of claims 1 to 5, wherein the transmission timing transmits the to-be-transmitted via at least two wireless communication links among the plurality of wireless communication links Game data package, including:
    根据系统状态参数选择至少两个无线通信链路传输所述待传输游戏数据包。Select at least two wireless communication links to transmit the game data packet to be transmitted according to the system state parameter.
  8. 根据权利要求1至5任一项所述的数据传输方法,其特征在于,所述在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,包括:The data transmission method according to any one of claims 1 to 5, wherein the transmission timing transmits the to-be-transmitted via at least two wireless communication links among the plurality of wireless communication links Game data package, including:
    根据用户的设置信息选择至少两个无线通信链路传输所述待传输游戏数据包。According to the user's setting information, at least two wireless communication links are selected to transmit the game data packet to be transmitted.
  9. 根据权利要求1所述的数据传输方法,其特征在于,所述方法还包括:The data transmission method according to claim 1, wherein the method further comprises:
    在检测到所述第一游戏应用场景为数据更新场景时,确定不可以通过智能链路聚合SLA功能分流传输所述数据更新场景的更新数据包;或,When it is detected that the first game application scenario is a data update scenario, it is determined that the update data packet of the data update scenario cannot be shunted through the smart link aggregation SLA function; or,
    在检测到所述第一游戏应用场景为数据更新场景,且所述数据更新场景的更新数据包的大小大于预设阈值时,确定不可以通过智能链路聚合SLA功能分流传输所述更新数据包。When it is detected that the first game application scenario is a data update scenario, and the size of the update data packet of the data update scenario is greater than a preset threshold, it is determined that the update data packet cannot be shunted through the smart link aggregation SLA function .
  10. 一种数据传输装置,其特征在于,应用于电子设备,所述数据传输装置包括处理单元和通信单元,其中,A data transmission device is characterized by being applied to electronic equipment. The data transmission device includes a processing unit and a communication unit, wherein,
    所述处理单元,用于根据当前运行的游戏应用的第一游戏应用场景,确定是否可以通过智能链路聚合SLA功能分流传输所述第一游戏应用场景的游戏数据包;若是,确定所述第一游戏应用场景的待传输游戏数据包的大小,以及根据所述大小确定分流传输所述待传输游戏数据包的传输时机;在所述传输时机通过所述通信单元控制所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包,所述至少两个无线通信链路包括数据网络无线通信链路。The processing unit is configured to determine whether the game data packet of the first game application scenario can be shunted and transmitted through an intelligent link aggregation SLA function according to the first game application scenario of the currently running game application; if so, determine the first The size of the game data packet to be transmitted in a game application scenario, and determining the transmission timing of offloading the game data packet to be transmitted according to the size; at the transmission timing, the multiple wireless communication chains are controlled by the communication unit At least two wireless communication links in the path transmit the game data packet to be transmitted, and the at least two wireless communication links include a data network wireless communication link.
  11. 根据权利要求10所述的数据传输装置,其特征在于,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述处理单元具体用于:获取所述游戏应用在所述第一游戏应用场景下的多个历史使用记录;以及用于根据所述多个历史使用记录确定在所述第一游戏应用场景下待传输游戏数据包的大小。The data transmission device according to claim 10, characterized in that, in terms of determining the size of the game data packet to be transmitted in the first game application scenario, the processing unit is specifically configured to: obtain the game application in Multiple historical usage records in the first game application scenario; and for determining the size of the game data packet to be transmitted in the first game application scenario based on the multiple historical usage records.
  12. 根据权利要求11所述的数据传输装置,其特征在于,在所述根据所述大小确定所述待传输游戏数据包的传输时机方面,所述处理单元具体用于:以所述待传输游戏数据包的大小为查询标识,查询预设的在所述第一游戏应用场景下游戏数据包大小和传输时机之间的映射关系,确定所述待传输游戏数据包大小对应的传输时机。The data transmission device according to claim 11, wherein in terms of determining the transmission timing of the game data packet to be transmitted according to the size, the processing unit is specifically configured to: use the game data to be transmitted The size of the packet is a query identifier, query the preset mapping relationship between the size of the game data packet and the transmission timing in the first game application scenario, and determine the transmission timing corresponding to the size of the game data packet to be transmitted.
  13. 根据权利要求10所述的数据传输装置,其特征在于,在所述确定所述第一游戏应用场景的待传输游戏数据包的大小方面,所述处理单元具体用于:确定在所述第一游戏应用场景下,当前显示的第一游戏应用界面;以及用于根据所述用户操作以及在所述第一游戏应用场景下多个游戏应景界面之间的逻辑关系,确定所述用户操作对应的第二游戏应用界面;以及用于确定运行所述第一游戏应用界面到第二游戏应用界面之间,对应的游戏数据包的大小为所述待传输游戏数据包的大小。The data transmission device according to claim 10, characterized in that, in terms of determining the size of the game data packet to be transmitted in the first game application scene, the processing unit is specifically configured to: determine In the game application scenario, the currently displayed first game application interface; and for determining the user operation corresponding to the user operation and the logical relationship between multiple game application interfaces in the first game application scenario A second game application interface; and for determining that the size of the corresponding game data packet is the size of the game data packet to be transmitted between running the first game application interface and the second game application interface.
  14. 根据权利要求13所述的数据传输装置,其特征在于,在所述根据所述大小确定所述待传输游戏数据包的传输时机方面,所述处理单元具体用于:根据所述待传输游戏数据包的大小,确定分流传输所述待传输游戏数据包的传输时机为显示第三游戏应用界面的时机,所述第三游戏应用界面的显示时间在所述第一游戏应用界面的显示时间之后,以及在所述第二游戏应用界面的显示时间之前。The data transmission device according to claim 13, wherein in terms of determining the transmission timing of the game data packet to be transmitted according to the size, the processing unit is specifically configured to: according to the game data to be transmitted The size of the packet determines that the transmission timing for streaming the game data packet to be transmitted is the timing for displaying the third game application interface, and the display time of the third game application interface is after the display time of the first game application interface, And before the display time of the second game application interface.
  15. 根据权利要求10-14任一项所述的数据传输装置,其特征在于,在所述在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包方面,所述处理单元具体用于:随机选择至少两个无线通信链路传输所述待传输游戏数据包。The data transmission device according to any one of claims 10-14, characterized in that, at the transmission timing, the data transmission is transmitted through at least two wireless communication links of the plurality of wireless communication links In terms of transmitting game data packets, the processing unit is specifically configured to randomly select at least two wireless communication links to transmit the game data packets to be transmitted.
  16. 根据权利要求10-14任一项所述的数据传输装置,其特征在于,在所述在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包方面,所述处理单元具体用于:根据系统状态参数选择至少两个无线通信链路传输所述待传输游戏数据包。The data transmission device according to any one of claims 10-14, characterized in that, at the transmission timing, the data transmission is transmitted through at least two wireless communication links of the plurality of wireless communication links In terms of transmitting game data packets, the processing unit is specifically configured to: select at least two wireless communication links to transmit the game data packets to be transmitted according to system state parameters.
  17. 根据权利要求10-14任一项所述的数据传输装置,其特征在于,在所述在所述传输时机通过所述多个无线通信链路中的至少两个无线通信链路传输所述待传输游戏数据包方面,所述处理单元具体用于:根据用户的设置信息选择至少两个无线通信链路传输所述 待传输游戏数据包。The data transmission device according to any one of claims 10-14, characterized in that, at the transmission timing, the data transmission is transmitted through at least two wireless communication links of the plurality of wireless communication links In terms of transmitting game data packets, the processing unit is specifically configured to: select at least two wireless communication links to transmit the game data packets to be transmitted according to user setting information.
  18. 根据权利要求10所述的数据传输装置,其特征在于,所述处理单元还用于在检测到所述第一游戏应用场景为数据更新场景时,确定不可以通过智能链路聚合SLA功能分流传输所述数据更新场景的更新数据包;或,在检测到所述第一游戏应用场景为数据更新场景,且所述数据更新场景的更新数据包的大小大于预设阈值时,确定不可以通过智能链路聚合SLA功能分流传输所述更新数据包。The data transmission device according to claim 10, wherein the processing unit is further configured to, when detecting that the first game application scenario is a data update scenario, determine that the SLA function cannot be offloaded through smart link aggregation An update data packet of the data update scenario; or, when it is detected that the first game application scenario is a data update scenario, and the size of the update data packet of the data update scenario is greater than a preset threshold, it is determined that intelligence cannot be passed The link aggregation SLA function distributes and transmits the update data packet.
  19. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。An electronic device, characterized in that it includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory, and are configured to be executed by the processor, The program includes instructions for performing the steps in the method of any one of claims 1-9.
  20. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。A computer-readable storage medium characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method according to any one of claims 1-9.
PCT/CN2019/108305 2018-12-06 2019-09-26 Data transmission method and related apparatus WO2020114048A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811487363.7 2018-12-06
CN201811487363.7A CN109587336B (en) 2018-12-06 2018-12-06 Data transmission method and related device

Publications (1)

Publication Number Publication Date
WO2020114048A1 true WO2020114048A1 (en) 2020-06-11

Family

ID=65926094

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/108305 WO2020114048A1 (en) 2018-12-06 2019-09-26 Data transmission method and related apparatus

Country Status (2)

Country Link
CN (1) CN109587336B (en)
WO (1) WO2020114048A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584490B (en) * 2022-03-25 2024-04-09 阿里巴巴(中国)有限公司 Data transmission detection method and device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587336B (en) * 2018-12-06 2021-03-12 Oppo广东移动通信有限公司 Data transmission method and related device
CN113194512A (en) * 2019-09-27 2021-07-30 荣耀终端有限公司 Data transmission method and electronic equipment
CN112291816B (en) * 2020-11-13 2023-03-24 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN115134241B (en) * 2022-05-12 2023-11-28 芜湖美的厨卫电器制造有限公司 Scene optimization method and device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168605A (en) * 2014-07-24 2014-11-26 小米科技有限责任公司 Data transmission control method and apparatus
US20170310593A1 (en) * 2015-01-12 2017-10-26 Huawei Technologies Co., Ltd. Data Transmission Method and System, Network Server, and User Terminal
CN108881012A (en) * 2018-08-23 2018-11-23 Oppo广东移动通信有限公司 link aggregation method and related product
CN109587336A (en) * 2018-12-06 2019-04-05 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN109618372A (en) * 2019-01-11 2019-04-12 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8483125B2 (en) * 2007-04-27 2013-07-09 Intellectual Ventures Holding 81 Llc Multiplexing packets in high speed downlink packet access (HSDPA) communications
CN103297451A (en) * 2012-02-27 2013-09-11 宇龙计算机通信科技(深圳)有限公司 Terminal and webpage download method
EP3282761B1 (en) * 2012-06-08 2019-12-04 Huawei Technologies Co., Ltd. Method for controlling transmission and apparatus
CN103532909B (en) * 2012-07-04 2019-01-22 中兴通讯股份有限公司 Multi-stream service concurrent transmission method, subsystem, system and multi-interface terminal
CN104333880B (en) * 2013-07-22 2018-05-29 电信科学技术研究院 A kind of service data transmission method and device based on heterogeneous network
CN105656798A (en) * 2016-01-08 2016-06-08 努比亚技术有限公司 Data transmission method and device, multichannel routing method and user equipment
CN105898794B (en) * 2016-04-08 2019-07-26 努比亚技术有限公司 Data transmission device and method
CN108924872B (en) * 2017-04-13 2022-03-18 中兴通讯股份有限公司 Data transmission method, terminal and core network equipment
CN108616449A (en) * 2018-08-14 2018-10-02 深圳市共进电子股份有限公司 Data transmission method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168605A (en) * 2014-07-24 2014-11-26 小米科技有限责任公司 Data transmission control method and apparatus
US20170310593A1 (en) * 2015-01-12 2017-10-26 Huawei Technologies Co., Ltd. Data Transmission Method and System, Network Server, and User Terminal
CN108881012A (en) * 2018-08-23 2018-11-23 Oppo广东移动通信有限公司 link aggregation method and related product
CN109587336A (en) * 2018-12-06 2019-04-05 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN109618372A (en) * 2019-01-11 2019-04-12 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584490B (en) * 2022-03-25 2024-04-09 阿里巴巴(中国)有限公司 Data transmission detection method and device

Also Published As

Publication number Publication date
CN109587336B (en) 2021-03-12
CN109587336A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
WO2020147627A1 (en) Link selection method and related apparatus
US11696207B2 (en) Data transmission method, electronic device, and computer readable storage medium
WO2020114048A1 (en) Data transmission method and related apparatus
WO2020207229A1 (en) Data transmission method and related apparatus
US10798702B2 (en) Periodic frames for control plane data to manage multi-band wireless networking system
WO2020164520A1 (en) Data packet distribution method and apparatus, mobile terminal, and storage medium
CN109495880B (en) Data transmission method and related device
CN109618372B (en) Data transmission method and related device
WO2020147606A1 (en) Wireless roaming method and device
US11711711B2 (en) Method for configuring measurement gap, access network device and terminal
CN109274596B (en) Data transmission method and related device
CN109743783B (en) Data transmission control method and related product
WO2020134721A1 (en) Data transmission method and related apparatus
US10764805B2 (en) Signal strength measurement method and device
WO2020164351A1 (en) Link connection method and related apparatus
US10560881B2 (en) Network handover method and apparatus
US20210297902A1 (en) Data transmission method, related storage medium and electronic device
WO2015154248A1 (en) Transmission method for system information, base station and user equipment
WO2014121471A1 (en) Method, base station and user equipment for data transmission and acquisition
KR100862490B1 (en) Data transmission method indicating data pending in zigbee network
CN109392018B (en) Data transmission method and related device
WO2020048355A1 (en) User interface (ui) display control method and apparatus
US20150208250A1 (en) Communication apparatus, non-transitory computer-readable storage medium having stored therein communication program, communication system, and communication method
CN111757275B (en) Device connection method and device, storage medium and electronic device
CN109451596B (en) Data transmission method and related device

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

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

Country of ref document: EP

Kind code of ref document: A1