TECHNICAL FIELD

This application relates to the communication field, and more specifically, to a method and device for transmitting data.

BACKGROUND

In the prior art, a transmit end and a receive end receive or send a transport block in a default hybrid automatic repeat request (HARQ) sending manner. Specifically, after sending the transport block, the transmit end waits for feedback information that is sent by the receive end and that is used to indicate whether the transport block is received correctly. Then, based on the feedback information, the transmit end determines whether hybrid automatic repeat request (HARQ) retransmission needs to be performed for the transport block.

However, as mobile data traffic increases, there are massive mobile communication device connections, and various new services and application scenarios continuously emerge, a manner of transmitting a transport block based on the default HARQ sending manner is disadvantageous to efficient data transmission

SUMMARY

This application provides a method for transmitting data, which is advantageous to improving data transmission efficiency.

According to a first aspect, a method for transmitting data is provided. The method includes: sending, by a first device, indication information to a second device, where the indication information indicates a first sending manner for a first transport block, and the first sending manner is one of at least two sending manners; and sending, by the first device, the first transport block based on the first sending manner, or receiving, by the first device, the first transport block based on the first sending manner.

Compared with a default HARQ sending manner in the prior art, in the method in an embodiment of this application, a sending manner for sending the first transport block can be flexibly determined, and the first sending manner may be indicated to the second device through indication information, to enable the first device and the second device to perform data transmission based on the first sending manner. The solution is advantageous to flexibly determining the sending manner of the transport block by the first device, and therefore, is advantageous to improving data transmission efficiency.

Optionally, in a possible implementation, different sending manners correspond to different time domain resource patterns and/or different feeding-back manners.

Optionally, in a possible implementation, different sending manner have correspondences with parameters used to indicate channel quality, and the indication information includes channel quality information used to indicate channel quality between the first device and the second device.

Optionally, in a possible implementation, the first device may determine the first sending manner based on at least one of: channel quality between the first device and the second device, a service transmitted between the first device and the second device, a feedback latency of feedback information used to indicate whether a transport block is received correctly, a feedback latency of channel quality information, and a subcarrier spacing (or numerology) of a transport block between the first device and the second device.

In a possible implementation, the sending, by a first device, indication information to a second device includes: sending, by the first device, the indication information to the second device through physical layer signaling.

In the method of this embodiment of this application, the indication information is sent through physical layer signaling, which is advantageous to efficiently indicating the first sending manner by the first device to the second device.

In a possible implementation, the method further includes: sending, by the first device, higher-layer signaling to the second device, where the higher-layer signaling indicates a sending manner set, the sending manner set includes one or more sending manners in the at least two sending manners, and the first sending manner is one of the one or more sending manners included in the sending manner set.

In the method of this embodiment of this application, the first device may configure the sending manner set for the second device, which is advantageous to flexible data transmission performed by the first device and the second device.

In a possible implementation, the first device may determine the sending manner set based on at least one of: channel quality between the first device and the second device, a service transmitted between the first device and the second device, a feedback latency of feedback information used to indicate whether a transport block is received correctly, a feedback latency of channel quality information, and a subcarrier spacing (or numerology) of a transport block between the first device and the second device.

In a possible implementation, the sending, by the first device, the first transport block based on the first sending manner includes: sending, by the first device, the first transport block to the second device on the first time domain resource based on the first sending manner; receiving, by the first device, feedback information sent by the second device; and adjusting or suspending, by the first device, transmission on a kthtime domain resource after the first time domain resource based on the feedback information, where k is a positive integer greater than or equal to 2.

In a possible implementation, the sending, by the first device, the first transport block based on the first sending manner includes: sending, by the first device, the first transport block to the second device on the first time domain resource based on the first sending manner; and sending, by the first device, update indication information to the second device, where the update indication information is used to indicate adjusting or suspending transmission on the kthtime domain resource after the first time domain resource, and k is a positive integer greater than or equal to 2.

According to a second aspect, a method for transmitting data is provided. The method includes: receiving, by a second device, indication information sent by a first device, where the indication information indicates a first sending manner for a first transport block, and the first sending manner is one of at least two sending manners; and receiving, by the second device, the first transport block based on the first sending manner, or sending, by the second device, the first transport block based on the first sending manner.

In a possible implementation, the receiving, by a second device, indication information sent by a first device includes: receiving, by the second device by receiving physical layer signaling, the indication information sent by the first device.

In a possible implementation, the method further includes: receiving, by the second device, higher-layer signaling sent by the first device, where the higher-layer signaling indicates a sending manner set, the sending manner set includes one or more sending manners in the at least two sending manners, and the first sending manner is one of the one or more sending manners included in the sending manner set.

In a possible implementation, the receiving, by the second device, the first transport block based on the first sending manner includes: detecting and/or measuring, by the second device on the first time domain resource based on the first sending manner, the first transport block sent by the first device; and

sending, by the second device, feedback information to the first device based on at least one of a detection result and a measurement result.

In a possible implementation, the receiving, by the second device, the first transport block based on the first sending manner includes: detecting, by the second device on the first time domain resource based on the first sending manner, the first transport block sent by the first device; and the method further includes: receiving, by the second device, update indication information sent by the first device, where the update indication information is used to indicate adjusting or suspending transmission on a kthtime domain resource after the first time domain resource, and k is a positive integer greater than or equal to 2.

In a possible implementation, the higher-layer signaling indicates the sending manner set by indicating a time domain resource pattern of each sending manner in the one or more sending manners, and one or more resources indicated by the time domain resource pattern are for a same transport block.

In a possible implementation, the higher-layer signaling indicates a time domain resource pattern of at least one sending manner in the one or more sending manners through a bitmap; and/or the higher-layer signaling indicates the time domain resource pattern of the at least one sending manner in the one or more sending manners by indicating a quantity of time domain units.

Optionally, in a possible implementation, a length of the bitmap is related to an average latency requirement, a longest latency requirement, a current transmission latency requirement, and/or a feedback latency.

In a possible implementation, the higher-layer signaling is further used to indicate a feeding-back manner corresponding to each sending manner in the one or more sending manners, and the feeding-back manner includes performing ACK feeding-back and skipping performing NACK feeding-back, skipping performing ACK feeding-back and skipping performing NACK feeding-back, or performing ACK feeding-back and performing NACK feeding-back.

In a possible implementation, the indication information is further used to indicate a first feeding-back manner corresponding to the first sending manner.

According to a third aspect, this application provides a device for transmitting data, configured to perform the method according to the first aspect or any possible implementation of the first aspect. Specifically, the device includes a unit configured to perform the method according to the first aspect or any possible implementation of the first aspect.

According to a fourth aspect, this application provides a device for transmitting data, configured to perform the method according to the second aspect or any possible implementation of the second aspect. Specifically, the device includes a unit configured to perform the method according to the second aspect or any possible implementation of the second aspect.

According to a fifth aspect, this application provides a device for transmitting data. The device includes one or more processors, one or more memories, and one or more transceivers (each transceiver includes a transmitter and a receiver). The transmitter or the receiver is connected to one or more antennas, and sends and receives signals through the antenna. The memory is configured to store a computer program instruction (or code). The processor is configured to execute an instruction stored in the memory, and when the instruction is executed, the processor performs the method according to the first aspect or any possible implementation of the first aspect.

According to a sixth aspect, this application provides a device for transmitting data. The device includes one or more processors, one or more memories, and one or more transceivers (each transceiver includes a transmitter and a receiver). The transmitter or the receiver is connected to one or more antennas, and sends and receives signals through the antenna. The memory is configured to store a computer program instruction (or code). The processor is configured to execute an instruction stored in the memory, and when an instruction is executed, the processor performs the method according to the second aspect or any possible implementation of the second aspect.

According to a seventh aspect, this application provides a computer-readable storage medium. The computer-readable storage medium stores an instruction, and when the instruction is run on a computer, the computer is enabled to perform the method according to the first aspect or any possible implementation of the first aspect.

According to an eighth aspect, this application provides a computer-readable storage medium. The computer-readable storage medium stores an instruction, and when the instruction is run on a computer, the computer is enabled to perform the method according to the second aspect or any possible implementation of the second aspect.

In the technical solutions provided in this application, the first sending manner for sending the first transport block is flexibly determined, and the first sending manner is indicated to the second device through the indication information. This solution is advantageous to flexibly selecting a sending manner by the first device and the second device, and is further advantageous to improving data transmission efficiency.

