Method for data transmission and communication device
View Patent ↗There is provided a method for data transmission, a communication device and a chip. The method includes that: a communication device determines a first code unit length used for first data and/or a first coding mode used for the first data based on first information. The first information includes at least one of: a first data block size used for the first data, a first code rate used for the first data, or a first bit number corresponding to a first data stream obtained by encoding the first data.
1 . A method for data transmission, performed by a communication device and comprising:
determining, based on first information, a first code unit length used for first data and/or a first coding mode used for the first data;
wherein the first information comprises at least one of: a first data block size used for the first data, a first code rate used for the first data, or a first bit number corresponding to a first data stream obtained by encoding the first data,
wherein determining, based on the first information, the first code unit length used for the first data and/or the first coding mode used for the first data comprises:
when the first information comprises the first data block size, determining a first data block size group to which the first data block size belongs; and
determining, based on a first mapping relationship, a code unit length corresponding to the first data block size group as the first code unit length, and/or determining, based on the first mapping relationship, a coding mode corresponding to the first data block size as the first coding mode;
wherein the first mapping relationship comprises a corresponding relationship between each of at least one data block size group and a respective code unit length and/or a respective coding mode, and the at least one data block size group comprises the first data block size group.
2 . The method of claim 1 , wherein determining, based on the first information, the first code unit length used for the first data and/or the first coding mode used for the first data comprises:
when the first information comprises the first code rate, determining a first code rate group to which the first code rate belongs; and
determining, based on a second mapping relationship, a code unit length corresponding to the first code rate group as the first code unit length, and/or determining, based on the second mapping relationship, a coding mode corresponding to the first code rate group as the first coding mode;
wherein the second mapping relation comprises a corresponding relationship between each of at least one code rate group and a respective code unit length and/or a respective coding mode, and the at least one code rate group comprises the first code rate group.
3 . The method of claim 1 , wherein determining, based on the first information, the first code unit length used for the first data and/or the first coding mode used for the first data comprises:
when the first information comprises the first data block size and the first code rate, determining a first group to which the first data block size and the first code rate belong; and
determining, based on a third mapping relationship, a code unit length corresponding to the first group as the first code unit length, and/or determining, based on the third mapping relationship, a coding mode corresponding to the first group as the first coding mode;
wherein the third mapping relationship comprises a corresponding relationship between each of at least one group and a respective code unit length and/or a respective coding mode, and the at least one group comprises the first group.
4 . The method of claim 1 , wherein determining, based on the first information, the first code unit length used for the first data and/or the first coding mode used for the first data comprises:
when the first information comprises the first bit number, determining a first bit number group to which the first bit number belongs; and
determining, based on a fourth mapping relationship, a code unit length corresponding to the first bit number group as the first code unit length, and/or determining, based on the fourth mapping relationship, a coding mode corresponding to the first bit number group as the first coding mode;
wherein the fourth mapping relationship comprises a corresponding relationship between each of at least one bit number group and a respective code unit length and/or a respective coding mode, and the at least one bit number group comprises the first bit number group.
5 . The method of claim 1 , wherein the first data stream is a bit stream after rate matching.
6 . The method of claim 1 , wherein the communication device is a terminal device, and the method further comprises:
encoding, by using the first code unit length and/or the first coding mode, the first data to obtain the first data stream; and
sending the first data stream to a network device.
7 . The method of claim 6 , further comprising:
receiving scheduling information sent by the network device, wherein the scheduling information is used for indicating the first data block size and/or the first code rate.
8 . The method of claim 1 , wherein the communication device is a network device, and the method further comprises:
receiving the first data stream sent by a terminal device; and
decoding, by using the first code unit length and/or the first coding mode, the first data stream to obtain the first data.
9 . The method of claim 8 , further comprising:
sending scheduling information to the terminal device, wherein the scheduling information is used for the terminal device to determine the first data block size and/or the first code rate.
10 . The method of claim 8 , further comprising:
determining the first bit number according to a number of resources used for the first data stream and a modulation order corresponding to the first data stream.
11 . A communication device, comprising:
a processor, configured to determine, based on first information, a first code unit length used for first data and/or a first coding mode used for the first data;
wherein the first information comprises at least one of: a first data block size used for the first data, a first code rate used for the first data, or a first bit number corresponding to a first data stream obtained by encoding the first data,
wherein the processor is specifically configured to:
when the first information comprises the first data block size, determine a first data block size group to which the first data block size belongs; and
determine, based on a first mapping relationship, a code unit length corresponding to the first data block size group as the first code unit length, and/or determine, based on the first mapping relationship, a coding mode corresponding to the first data block size as the first coding mode;
wherein the first mapping relationship comprises a corresponding relationship between each of at least one data block size group and a respective code unit length and/or a respective coding mode, and the at least one data block size group comprises the first data block size group.
12 . The communication device of claim 11 , wherein the processor is specifically configured to:
when the first information comprises the first code rate, determine a first code rate group to which the first code rate belongs; and
determine, based on a second mapping relationship, a code unit length corresponding to the first code rate group as the first code unit length, and/or determine, based on the second mapping relationship, a coding mode corresponding to the first code rate group as the first coding mode;
wherein the second mapping relationship comprises a corresponding relationship between each of at least one code rate group and a respective code unit length and/or a respective coding mode, and the at least one code rate group comprises the first code rate group.
13 . The communication device of claim 11 , wherein the processor is specifically configured to:
when the first information comprises the first data block size and the first code rate, determine a first group to which the first data block size and the first code rate belong; and
determine, based on a third mapping relationship, a code unit length corresponding to the first group as the first code unit length, and/or determine, based on the third mapping relationship, a coding mode corresponding to the first group as the first coding mode;
wherein the third mapping relationship comprises a corresponding relationship between each of at least one group and a respective code unit length and/or a respective coding mode, and the at least one group comprises the first group.
14 . The communication device of claim 11 , wherein the processor is specifically configured to:
when the first information comprises the first bit number, determine a first bit number group to which the first bit number belongs; and
determine, based on a fourth mapping relationship, a code unit length corresponding to the first bit number group as the first code unit length, and/or determine, based on the fourth mapping relationship, a coding mode corresponding to the first bit number group as the first coding mode;
wherein the fourth mapping relationship comprises a corresponding relationship between each of at least one bit number group and a respective code unit length and/or a respective coding mode, and the at least one bit number group comprises the first bit number group.
15 . The communication device of claim 11 , wherein the first data stream is a bit stream after rate matching.
16 . The communication device of claim 11 , wherein the communication device is a terminal device, and the processor is further configured to:
encode, by using the first code unit length and/or the first coding mode, the first data to obtain the first data stream; and
control a transceiver comprised in the communication device to send the first data stream to a network device.
17 . The communication device of claim 16 , wherein the processor is further configured to:
control the transceiver comprised in the communication device to receive scheduling information sent by the network device, wherein the scheduling information is used for indicating the first data block size and/or the first code rate.
18 . The communication device of claim 11 , wherein the communication device is a network device, and the processor is further configured to:
control a transceiver comprised in the communication device to receive the first data stream sent by a terminal device; and
decode, by using the first code unit length and/or the first coding mode, the first data stream to obtain the first data.
19 . The communication device of claim 18 , wherein the processor is further configured to:
control the transceiver comprised in the communication device to send scheduling information to the terminal device, wherein the scheduling information is used for the terminal device to determine the first data block size and/or the first code rate.
20 . A chip, comprising:
a processor, configured to invoke and run a computer program from a memory to cause a device installed with the chip to perform:
determining, based on first information, a first code unit length used for first data and/or a first coding mode used for the first data;
wherein the first information comprises at least one of: a first data block size used for the first data, a first code rate used for the first data, or a first bit number corresponding to a first data stream obtained by encoding the first data,
wherein the processor is specifically configured to:
when the first information comprises the first data block size, determine a first data block size group to which the first data block size belongs; and
determine, based on a first mapping relationship, a code unit length corresponding to the first data block size group as the first code unit length, and/or determine, based on the first mapping relationship, a coding mode corresponding to the first data block size as the first coding mode;
wherein the first mapping relationship comprises a corresponding relationship between each of at least one data block size group and a respective code unit length and/or a respective coding mode, and the at least one data block size group comprises the first data block size group.