EP3876484A1

Data transmission method and relevant product

Abstract

A method for data transmission and related products are provided. The method includes the following. A first application data packet of a first application of the electronic device is obtained during running the first application. The first application data packet is tagged according to first user identification (UID) of the first application, and a first data packet tag of the first application data packet is obtained. A target PLR of data transmitted by the Wi-Fi module is obtained in response to that the first data packet tag is identified by the Wi-Fi module. When the target PLR is greater than a first preset threshold, first maximum number of retransmissions of the first application data packet is increased to first target number of retransmissions according to the target PLR. The first application data packet is transmitted according to the first target number of retransmissions. In this way, it is possible to increase the success rate that the electronic device transmits the first application data packet by increasing the maximum number of retransmissions of the first application data packet transmitted by the Wi-Fi module, thereby avoiding affecting the running of the first application due to the instability of the wireless network.

EP3876484A1, drawing sheet 1
Sheet 1 of 8

Term

12.1 yearsto projected expiry

Projected expiry 15 November 2038, counted from filing; an application has no term until it is granted.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

20 claims: 4 independent, 16 dependent

  1. 1
    A method for data transmission for an electronic device comprising a wireless-fidelity (Wi-Fi) module, the method comprising:obtaining a first application data packet of a first application during running the first application;tagging the first application data packet according to first user identification (UID) of the first application, and obtaining a first data packet tag of the first application data packet;obtaining a target packet loss rate (PLR) of data transmitted by the Wi-Fi module in response to that the first data packet tag is identified by the Wi-Fi module;increasing first maximum number of retransmissions of the first application data packet to first target number of retransmissions according to the target PLR, in response to the target PLR being greater than a first preset threshold;and transmitting the first application data packet according to the first target number of retransmissions.
  2. 4
    The method of any of claims 1 to 3, wherein the first application is a game application, and transmitting the first application data packet according to the first target number of retransmissions comprises:transmitting the first application data packet to an access network device;and retransmitting the first application data packet to the access network device until receiving a first acknowledgement message indicative of successful transmission of the first application data packet, in response to that not receiving the first acknowledgement message within a first preset time period, wherein number of times of retransmitting the first application data packet to the access network device does not exceed the first target number of retransmissions.
  3. 7
    The method of any of claims 1 to 6, wherein the electronic device runs a second application while running the first application, and the method further comprises:tagging a second application data packet of the second application according to second UID of the second application, and obtaining a second data packet tag of the second application data packet;decreasing second maximum number of retransmissions of the second application data packet transmitted by the Wi-Fi module to second target number of retransmissions according to the target PLR, in response to that the second data packet tag is identified by the Wi-Fi module;and transmitting the second application data packet according to the second target number of retransmissions.
  4. 10
    A device for data transmission for an electronic device comprising a wireless-fidelity (Wi-Fi) module, the device comprising:a running unit configured to obtain a first application data packet of a first application during running the first application;a tagging unit configured to tag the first application data packet according to first user identification (UID) of the first application, and obtain a first data packet tag of the first application data packet;an obtaining unit configured to obtain a target PLR of data transmitted by the Wi-Fi module in response to that the first data packet tag is identified by the Wi-Fi module;a processing unit configured to increase first maximum number of retransmissions of the first application data packet to first target number of retransmissions according to the target PLR, in response to the target PLR being greater than a first preset threshold;and a transmitting unit configured to transmit the first application data packet according to the first target number of retransmissions.
  5. 13
    The device of any of claims 10 to 12, wherein the first application is a game application, and the transmitting unit configured to transmit the first application data packet according to the first target number of retransmissions is configured to:transmit the first application data packet to an access network device;and retransmit the first application data packet to the access network device until receiving a first acknowledgement message indicative of successful transmission of the first application data packet, in response to that not receiving the first acknowledgement message within a first time period, wherein number of times of retransmitting the first application data packet to the access network device does not exceed the first target number of retransmissions.
  6. 16
    The device of any of claims 10 to 15, wherein the electronic device runs a second application while running the first application, wherein the tagging unit is further configured to tag a second application data packet of the second application according to second UID of the second application, and obtain a second data packet tag of the second application data packet;the processing unit is further configured to decrease second maximum number of retransmissions of the second application data packet transmitted by the Wi-Fi module to second target number of retransmissions according to the target PLR, in response to that the second data packet tag is identified by the Wi-Fi module;and the transmitting unit is further configured to transmit the second application data packet according to the second target number of retransmissions.
  7. 19
    An electronic device comprising:a processor;a memory;a communication interface;and one or more programs, wherein the one or more programs are stored in the memory and configured to be performed by the processor, and the one or more programs comprise instructions configured to perform the method of any of claims 1 to 9.
  8. 20
    A computer readable storage medium storing computer programs for electronic data interchange, wherein the computer programs are operable with a computer to perform the method of any of claims 1 to 9.