Method and related apparatus for determining the length of an LDPC codeword in a UWB system

By determining LDPC codeword lengths based on information bit lengths using parity check matrices, the method enhances error control performance and minimizes bit rate loss in UWB systems.

JP2025523570AActive Publication Date: 2025-07-23HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024576953
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-20
Filing Date
2023-06-26
Publication Date
2025-07-23
Estimated Expiration
2043-06-26

AI Technical Summary

Technical Problem

The selection of LDPC codeword length in UWB systems affects error control performance and bit rate loss, necessitating a method to determine optimal codeword lengths for improved transmission reliability.

Method used

A method for determining LDPC codeword length based on the length of information bits to be encoded, using specific parity check matrices to generate parity bits, with defined length assignments for different bit ranges, including cases for 648, 1296, and 1944 bits.

Benefits of technology

Achieves higher error control performance and reduces bit rate loss by optimizing LDPC codeword lengths, particularly in UWB systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025523570000001_ABST
    Figure 2025523570000001_ABST
Patent Text Reader

Abstract

This application relates to a method and related apparatus for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device determines the length of an LDPC code based on the length of information bits to be encoded. When the length of the information bits is in the range from 0 to 324, a 648-bit LDPC code is selected. When the length of the information bits is in the range from 325 to 648 or from 973 to 1296, a 1296-bit LDPC code is selected. When the length of the information bits is in the range from 649 to 972, a 1944-bit LDPC code is selected. According to an embodiment of the present application, higher performance improvement can be achieved. The present application is applicable to UWB-based wireless personal local area network systems, sensing systems, etc., including 802.15 series protocols such as the 802.15.4ab protocol or the next-generation UWB protocol of the 802.15.4ab protocol, and can be further applied to 802.11 series protocols such as the 802.11be or the next-generation protocol of the 802.11be, or wireless local area network systems based on Wi-Fi 8.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application claims priority to Chinese Patent Application No. 202210769913.4, filed with the National Intellectual Property Administration on July 1, 2022, entitled "METHOD FOR DETERMINING LENGTH OF LDPC CODE WORD IN UWB SYSTEM AND RELATED APPARATUS", Chinese Patent Application No. 202211274829.1, filed with the National Intellectual Property Administration on October 18, 2022, entitled "METHOD FOR DETERMINING LENGTH OF LDPC CODE WORD IN UWB SYSTEM AND RELATED APPARATUS", Chinese Patent Application No. 202211289383.X, filed with the National Intellectual Property Administration on October 20, 2022, entitled "METHOD FOR DETERMINING LENGTH OF LDPC CODE WORD IN UWB SYSTEM AND RELATED APPARATUS", and Chinese Patent Application No. 202310305051.4, filed with the National Intellectual Property Administration on March 20, 2023, entitled "METHOD FOR DETERMINING LENGTH OF LDPC CODE WORD IN UWB SYSTEM AND RELATED APPARATUS", and all of these patent applications are hereby incorporated by reference in their entirety.

[0002] This application relates to the field of communication technologies, and in particular, to a method and related apparatus for determining the length of a low-density parity-check (LDPC) codeword in an ultra-wideband (UWB) system.

Background Art

[0003] In wireless local area network (WLAN) standards such as those of the Institute of Electrical and Electronics Engineers (IEEE) 802.11n / ac / ax / be, etc., it is mainly considered how to improve the user experience in the 60-GHz high-bandwidth scenario, including increasing the average user throughput and improving the energy utilization of battery-based power devices. To achieve this, high-speed and reliable transmission of services such as data and video services needs to be implemented on limited frequency resources and power resources. Therefore, a highly reliable and efficient channel coding and decoding method is required.

[0004] Currently, turbo codes and LDPC codes are two of the most commonly used channel coding methods in the field of channel coding. Both have performance close to the Shannon limit and are widely used in the communication field. Compared with turbo codes, LDPC codes have significant advantages. For example, fairly good bit error performance can be achieved without deep interleaving, better frame error rate performance can be achieved, the error floor is greatly reduced, parallel decoding is supported, and the decoding delay is short. Therefore, LDPC codes have become the standard channel coding method for low-frequency short-distance WLAN communication systems such as 802.11n / ac / ax systems.

[0005] To improve the transmission reliability of wireless transmission systems, LDPC codes are widely used in WLAN standards. In next-generation UWB standards such as the IEEE 802.15ab standard, the LDPC codes used in WLAN should be introduced to improve the data transmission reliability of the system. However, the selection of the length of the LDPC codeword affects the error control performance. Therefore, it is urgently necessary to consider how to determine the length of the LDPC codeword in the UWB system.

Summary of the Invention

[0006] Embodiments of the present application provide a method and related apparatus for determining the length of an LDPC codeword in a UWB system, achieving a higher improvement in error control performance and reducing bit rate loss.

[0007] The present application will be described below from different aspects. It should be understood that cross-references may be made regarding implementation and advantageous effects in the following different aspects.

[0008] According to a first aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes one or more of the following cases. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the communication device determines that the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0009] For a detailed analysis of the advantageous effects of the present application, refer to the description in the following method embodiments. Details are not described here. In the present application, a higher improvement in error control performance can be achieved and bit rate loss can be reduced.

[0010] In this application, the information bits to be encoded are the information bits that have not undergone channel coding, that is, the information bits input to the input end of the channel coding module. For example, the information bits to be encoded may be the data bits to be encoded (i.e., payload bits), or the information bits to be encoded may include the data bits to be encoded and CRC bits. This is not limited in the embodiments of this application.

[0011] In connection with the first aspect, in a possible implementation, the communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded further includes the following. When the length of the information bits to be encoded is greater than 1296 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0012] In connection with the first aspect, in a possible implementation, the communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded further includes one or more of the following cases. When the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 1620 bits and less than or equal to 1944 bits, the communication device determines that the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 1944 bits and less than or equal to 2592 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 2592 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0013] In relation to the first aspect, in a possible implementation, the method further includes the following. A communication device transmits an LDPC codeword, where the LDPC codeword includes information bits to be encoded and parity bits. For example, the communication device generates an LDPC codeword based on the determined length of the LDPC codeword, the information bits to be encoded, the reference bit rate of the LDPC codeword, and other information, and transmits the LDPC codeword.

[0014] In relation to the first aspect, in a possible implementation, the reference bit rate of the LDPC codeword is 1 / 2.

[0015] In relation to the first aspect, in a possible implementation, the number of shortening zero bits in the LDPC codeword is determined based on the length of the information bits to be encoded and the number of information bits in the LDPC codeword. The number of information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate.

[0016] For example, the number of shortening zero bits in the LDPC codeword is obtained as follows. Padding_Num=mod(K-mod(Inf_Num,K),K) In the above formula, Padding_Num represents the number of shortening zero bits in the LDPC codeword, K represents the number of information bits in the LDPC codeword, Inf_Num represents the length of the information bits to be encoded, mod represents the modulo operation, K = N × R, N represents the length of the LDPC codeword, and R represents the reference bit rate of the LDPC codeword.

[0017] According to a second aspect, the present application provides a communication device including an acquisition unit and a determination unit. The acquisition unit is configured to acquire the length of information bits to be encoded. The determination unit is configured to determine the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, and a parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. Specifically, the determination unit is configured to perform one or more of the following operations: when the length of the information bits to be encoded is greater than 0 and not more than 324 bits, determine that the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 324 bits and not more than 648 bits, determine that the length of the LDPC codeword is 1296 bits; when the length of the information bits to be encoded is greater than 648 bits and not more than 972 bits, determine that the length of the LDPC codeword is 1944 bits; or when the length of the information bits to be encoded is greater than 972 bits and not more than 1296 bits, determine that the length of the LDPC codeword is 1296 bits.

[0018] In the present application, the information bits to be encoded are information bits that have not undergone channel coding, that is, information bits input to the input end of a channel coding module. For example, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded may include data bits to be encoded and CRC bits. This is not limited in the embodiments of the present application.

[0019] In a possible implementation related to the second aspect, the determination unit is further configured to determine that the length of the LDPC codeword is 1944 bits when the length of the information bits to be encoded is greater than 1296 bits.

[0020] In relation to the second aspect, in a possible implementation, the determination unit is further configured to perform one or more of the following operations, that is, when the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, determine that the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 1620 bits and less than or equal to 1944 bits, determine that the length of the LDPC codeword is 1944 bits; when the length of the information bits to be encoded is greater than 1944 bits and less than or equal to 2592 bits, determine that the length of the LDPC codeword is 1296 bits; or when the length of the information bits to be encoded is greater than 2592 bits, determine that the length of the LDPC codeword is 1944 bits.

[0021] In relation to the second aspect, in a possible implementation, the communication device further includes a transmission unit configured to transmit the LDPC codeword, and the LDPC codeword includes information bits to be encoded and parity bits.

[0022] In relation to the second aspect, in a possible implementation, the reference bit rate of the LDPC codeword is 1 / 2.

[0023] In relation to the second aspect, in a possible implementation, the number of shortened zero bits in the LDPC codeword is determined based on the length of the information bits to be encoded and the number of information bits in the LDPC codeword. The number of information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate.

[0024] For example, the number of shortened zero bits in the LDPC codeword is obtained as follows. Padding_Num = mod(K - mod(Inf_Num, K), K) In the above formula, Padding_Num indicates the number of shortened zero bits in the LDPC codeword, K indicates the number of information bits in the LDPC codeword, Inf_Num indicates the length of the information bits to be encoded, mod indicates the modulo operation, K = N × R, N indicates the length of the LDPC codeword, and R indicates the reference bit rate of the LDPC codeword.

[0025] According to a third aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of the information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes the following. When the length of the information bits to be encoded is greater than 1296 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0026] According to a fourth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes one or more of the following cases. When the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 1620 bits and less than or equal to 1944 bits, the communication device determines that the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 1944 bits and less than or equal to 2592 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 2592 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0027] According to a fifth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes the following. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0028] According to a sixth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes one or more of the following cases. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the communication device determines that the length of the LDPC codeword is 648 bits.

[0029] In the present application, a higher improvement in error control performance can be achieved, and a bit rate loss can be reduced. In addition, only LDPC codes with short and medium code lengths (648 bits and 1296 bits) in WLAN are used to reduce the power consumption in the UWB system.

[0030] In the present application, the information bits to be encoded are information bits that have not undergone channel coding, that is, information bits input to the input end of a channel coding module. For example, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded may include data bits to be encoded and CRC bits. This is not limited in the embodiments of the present application.

[0031] Relating to the sixth aspect, in a possible implementation, the communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded further includes the following. When the length of the information bits to be encoded is greater than 972 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0032] Relating to the sixth aspect, in a possible implementation, the communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded further includes one or more of the following cases. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 1620 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0033] Relating to the sixth aspect, in a possible implementation, the method further includes the following. The communication device transmits an LDPC codeword, and the LDPC codeword includes the information bits to be encoded and parity bits. For example, the communication device generates an LDPC codeword based on the determined length of the LDPC codeword, the information bits to be encoded, the reference bit rate of the LDPC codeword, and other information, and transmits the LDPC codeword.

[0034] Relating to the sixth aspect, in a possible implementation, the reference bit rate of the LDPC codeword is 1 / 2.

[0035] Relating to the sixth aspect, in a possible implementation, the quantity of shortened zero bits in the LDPC codeword is determined based on the length of the information bits to be encoded and the quantity of information bits in the LDPC codeword. The quantity of information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate.

[0036] For example, the number of shortened zero bits is obtained as follows. Padding_Num = mod(K - mod(Inf_Num, K), K) In the above formula, Padding_Num indicates the number of shortened zero bits in the LDPC codeword, K indicates the number of information bits in the LDPC codeword, Inf_Num indicates the length of the information bits to be encoded, mod indicates the modulo operation, K = N × R, N indicates the length of the LDPC codeword, and R indicates the reference bit rate of the LDPC codeword.

[0037] According to a seventh aspect, the present application provides a communication device including an acquisition unit and a determination unit. The acquisition unit is configured to acquire the length of the information bits to be encoded. The determination unit is configured to determine the length of the low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, and the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. Specifically, the determination unit is configured to perform one or more of the following operations: when the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, determine that the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, determine that the length of the LDPC codeword is 1296 bits; or when the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, determine that the length of the LDPC codeword is 648 bits.

[0038] In the present application, the information bits to be encoded are information bits that have not undergone channel coding, that is, information bits input to the input end of the channel coding module. For example, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded may include data bits to be encoded and CRC bits. This is not limited in the embodiments of the present application.

[0039] In relation to the seventh aspect, in a possible implementation, the determination unit is further configured to determine that when the length of the information bits to be encoded is greater than 972 bits, the length of the LDPC codeword is 1296 bits.

[0040] In relation to the seventh aspect, in a possible implementation, the determination unit performs one or more of the following operations, namely, when the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, determining that the length of the LDPC codeword is 1296 bits; when the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, determining that the length of the LDPC codeword is 648 bits; or when the length of the information bits to be encoded is greater than 1620 bits, determining that the length of the LDPC codeword is 1296 bits.

[0041] In relation to the seventh aspect, in a possible implementation, the communication device further includes a transmission unit configured to transmit the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits.

[0042] In relation to the seventh aspect, in a possible implementation, the reference bit rate of the LDPC codeword is 1 / 2.

[0043] In relation to the seventh aspect, in a possible implementation, the number of shortened zero bits in the LDPC codeword is determined based on the length of the information bits to be encoded and the number of information bits in the LDPC codeword. The number of information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate.

[0044] For example, the number of shortened zero bits in the LDPC codeword is obtained as follows. Padding_Num = mod(K - mod(Inf_Num, K), K) In the above formula, Padding_Num indicates the number of shortened zero bits in the LDPC codeword, K indicates the number of information bits in the LDPC codeword, Inf_Num indicates the length of the information bits to be encoded, mod indicates the modulo operation, K = N × R, N indicates the length of the LDPC codeword, and R indicates the reference bit rate of the LDPC codeword.

[0045] According to an eighth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of the information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes the following. When the length of the information bits to be encoded is greater than 972 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0046] According to a ninth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes one or more of the following cases. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 1620 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0047] According to a tenth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes one or more of the following cases. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the communication device determines that the length of the LDPC codeword is 648 bits.

[0048] According to the eleventh aspect, the present application further provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes the following. When the length of the information bits to be encoded is 122 bytes or more and 162 bytes or less, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0049] According to the twelfth aspect, the present application further provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes the following. When the length of the information bits to be encoded is greater than 121 bytes and 162 bytes or less, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0050] According to the 13th aspect, the present application further provides a method for determining the length of an LDPC codeword in a UWB system. The method includes the following. A communication device obtains the length of information bits to be encoded and determines the length of the LDPC codeword based on the length of the information bits to be encoded. A parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, and the data rate is less than or equal to a pre-set threshold, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, and the data rate is greater than the pre-set threshold, the length of the LDPC codeword is 1944 bits.

[0051] In relation to the 13th aspect, in a possible implementation, the length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following conditions. When the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits.

[0052] In relation to the 13th aspect, in a possible implementation, the pre-set threshold is 1.95 Mbps or 7.8 Mbps.

[0053] In relation to the 13th aspect, in a possible implementation, the length of the information bits to be encoded and the length of the LDPC codeword further satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and less than or equal to 21 bytes, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 21 bytes and less than or equal to 44 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 44 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 1944 bits.

[0054] According to the 14th aspect, the present application provides a communication device. The communication device includes a processor configured to execute a method according to any one of the 1st aspect, the 3rd to 5th aspects, or a possible implementation of the aspect. Alternatively, the processor is configured to execute a program stored in a memory. When the program is executed, a method according to any one of the 6th aspect, the 8th to 10th aspects, or a possible implementation of the aspect is executed. Alternatively, the processor is configured to execute a program stored in a memory. When the program is executed, a method according to any one of the 11th aspect, the 12th aspect, the 13th aspect, or a possible implementation of the aspect is executed.

[0055] In a possible implementation related to the 14th aspect, the memory is located outside the communication device.

[0056] In a possible implementation related to the 14th aspect, the memory is located within the communication device.

[0057] In an embodiment of the present application, the processor and the memory may alternatively be integrated into one device. In other words, the processor and the memory may alternatively be integrated together.

[0058] In a possible implementation related to the 14th aspect, the communication device further includes a transceiver. The transceiver is configured to receive a signal or transmit a signal.

[0059] According to the 15th aspect, the present application provides a communication device. The communication device includes a logic circuit and an interface, and the logic circuit is coupled to the interface. The logic circuit and the interface may be configured to execute a method according to any one of the 1st aspect, the 3rd to 5th aspects, the 6th aspect, the 8th to 13th aspects, or a possible implementation of the aspect.

[0060] In the design, the logic circuit is configured to obtain the length of the information bits to be encoded and determine the length of the low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded. The parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The interface is configured to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the length of the LDPC codeword is 1296 bits.

[0061] In another design, the logic circuit is configured to obtain the length of the information bits to be encoded and determine the length of the low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded. The parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The interface is configured to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 648 bits.

[0062] According to the 16th aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium is configured to store a computer program. When the computer program is executed on a computer, a method according to any one of the 1st aspect, the 3rd to 5th aspects, the 6th aspect, the 8th to 13th aspects, or a possible implementation of the aspect is executed.

[0063] According to the 17th aspect, the present application provides a computer program product. The computer program product includes a computer program or computer code. When the computer program product is executed on a computer, a method according to any one of the 1st aspect, the 3rd to 5th aspects, the 6th aspect, the 8th to 13th aspects, or a possible implementation of the aspect is executed.

[0064] According to the 18th aspect, the present application provides a computer program. When the computer program is executed on a computer, a method according to any one of the 1st aspect, the 3rd to 5th aspects, the 6th aspect, the 8th to 13th aspects, or a possible implementation of the aspect is executed.

[0065] During the implementation of the embodiments of the present application, a higher improvement in error control performance can be achieved, and the bitrate loss can be reduced.

Brief Description of the Drawings

[0066] To more clearly explain the technical solutions in the embodiments of the present application, the attached drawings will be briefly described below for the purpose of explaining the embodiments.

[0067]

Figure 1

Figure 2

Figure 3a

Figure 3b

Figure 4a

Figure 4b

Figure 5

Figure 6a

Figure 6b

Figure 7

Figure 8

Figure 9

Figure 10

Figure 11a

Figure 11b

Figure 12

Figure 13a

Figure 13b

Figure 14

Figure 15

Figure 16

Figure 17

DETAILED DESCRIPTION OF THE INVENTION

[0068] Hereinafter, with reference to the accompanying drawings in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described.

[0069] In the description of the present application, unless otherwise specified, " / " indicates "or". For example, A / B may indicate A or B. The term "and / or" in this specification only describes the relationship between related objects and indicates that three relationships may exist. For example, A and / or B may represent the following three cases: namely, only A exists, both A and B exist, and only B exists. In addition, "at least one" means one or more, and "a plurality of" means two or more. "At least one of the following items" or a similar expression indicates any combination of items, including one of the items or any combination of a plurality of items. For example, at least one of a, b, or c may indicate a, b, c, a and b, a and c, b and c, or a and b and c. a, b, and c may be in singular or plural form.

[0070] In addition, the terms "comprise", "include" and any other variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, device, etc. that includes a series of steps or units is not limited to the listed steps or units, and may optionally further include steps or units not listed, or may optionally further include other steps or units specific to the process, method, product, device, etc.

[0071] In this application, terms such as "example" and "for example" are used to give examples, illustrations or explanations. Any embodiment or design method described with "example", "in one example" or "for example" in this application should not be construed as being more preferable or advantageous than another embodiment or design method. Strictly speaking, terms such as "example", "in one example" and "for example" are intended to present related concepts in a specific way.

[0072] In this application, it should be understood that "when" and "case" mean that the device performs the corresponding processing in the target case, but are not intended to limit time. These terms do not necessarily mean that the device performs the decision-making actions during implementation, nor do they mean any other limitations.

[0073] In this application, elements represented in the singular are intended to indicate "one or more", but do not indicate "only" unless otherwise specified.

[0074] In the embodiments of this application, determining B based on A does not mean that B is determined only based on A. Instead, it should be understood that B may be determined based on A and / or other information.

[0075] The technical solutions provided in this application are applicable to a wireless personal area network (WPAN) based on UWB technology. For example, the methods provided in this application are applicable to IEEE 802.15 series protocols, such as the 802.15.4ab protocol or future generations of the UWB WPAN standard. Here, the examples are not listed one by one. The methods provided in this application can be further applied to various communication systems, such as the internet of things (IoT) system, vehicle to everything (V2X), and narrowband internet of things (NB-IoT) system, or to devices in vehicle to everything, internet of things nodes in the internet of things (IOT), sensors, etc., smart cameras, smart remote controls, and smart water or electricity meters in smart homes, sensors in smart cities, etc. The methods provided in this application are further applicable to an LTE frequency division duplex (FDD) system, an LTE time division duplex (TDD) system, a universal mobile telecommunications system (UMTS), a worldwide interoperability for microwave access (WiMAX) communication system, a long term evolution (LTE) system, a 5th-generation (5G) communication system, a 6th-generation (6G) communication system, etc.

[0076] UWB technology is a new wireless communication technology. In UWB technology, data is transmitted through nanosecond-level non-sinusoidal narrow pulses, and modulation is performed on pulses with fairly steep rise and fall times. Therefore, UWB technology occupies a fairly wide spectrum range, whereby the signal has a gigahertz (GHz) level bandwidth. The bandwidth used by UWB is usually greater than 1 GHz. The UWB system does not need to generate a sine wave carrier signal and can directly transmit a pulse sequence. Therefore, the UWB system has a fairly wide spectrum and a fairly low average power. The UWB wireless communication system has advantages such as strong multipath resolution ability, low power consumption, and high reliability. This facilitates coexistence with other systems, thus improving spectrum utilization and increasing system capacity. In addition, for short-range communication applications, the transmission power of the UWB transmitter may usually be lower than 1 mW (milliwatt). Theoretically, the interference caused by the UWB signal is only equivalent to white noise. This facilitates good coexistence between ultra-wideband communication and existing narrowband communication. Therefore, the UWB system and the narrowband (NB) communication system can operate simultaneously without interfering with each other. The method provided in this application can be implemented by a communication device in a wireless communication system. In a communication device, a device or chip for implementing the function of the UWB system may be called a UWB module, and a device or chip for implementing the function of the narrowband communication system may be called a narrowband communication module. The UWB module and the narrowband communication module may be different devices or chips. Alternatively, it is certain that the UWB module and the narrowband communication module can be integrated into one device or chip. In the embodiments of this application, the implementation of the UWB module and the narrowband communication module in the communication device is not limited. The communication device in this application includes a UWB module and optionally further includes a narrowband communication module.

[0077] The method provided in this application can be implemented by a communication device in a wireless communication system. The communication device can be a device in a UWB system. For example, the communication device can include, but is not limited to, a communication server, a router, a switch, a bridge, a computer, a mobile phone, etc. that support UWB technology. In another example, the communication device can include a user equipment (UE). The user equipment can include various devices that support UWB technology, such as a handheld device, an in-vehicle device (e.g., a vehicle or a component mounted on a vehicle), a wearable device, an internet of things (IoT) device, a computing device, or another processing device connected to a wireless modem. Here, the examples are not listed one by one. In another example, the communication device can include a central control point, such as a personal area network (PAN) or a PAN coordinator. The PAN coordinator or PAN can be a mobile phone, an in-vehicle device, an Anchor, a tag, a smart home appliance, etc. In another example, the communication device can include a chip, and the chip can be disposed in a communication server, a router, a switch, a terminal device, etc. Here, the examples are not listed one by one. It can be understood that the above description regarding the communication device is applicable to the communication device in this application.

[0078] Optionally, the communication device in the embodiments of this application can be a device that supports multiple WPAN standards, such as the currently discussed IEEE 802.15.4ab or later versions.

[0079] In an embodiment of the present application, the communication device may include a hardware layer, an operating system layer that is executed above the hardware layer, and an application layer that is executed above the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also referred to as a main memory). The operating system may be any one or more computer operating systems that perform service processing through a process, for example, a Linux (registered trademark) operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as a browser, an address book, document processing software, and instant messaging software. In addition, the specific structure of the entity for executing the method provided in the embodiment of the present application is not particularly limited in the embodiment of the present application as long as the entity can execute the program recording the code of the method provided in the embodiment of the present application and perform communication according to the method provided in the embodiment of the present application.

[0080] For example, FIG. 1 is a diagram of the structure of a wireless communication system according to an embodiment of the present application. As shown in FIG. 1, the wireless communication system has a star topology structure. In this structure, a central control node (e.g., the PAN coordinator in FIG. 1) can perform data communication with one or more other devices. FIG. 2 is a diagram of another structure of a wireless communication system according to an embodiment of the present application. As shown in FIG. 2, the wireless communication system has a point-to-point topology structure. In this structure, a central control node (e.g., the PAN coordinator in FIG. 2) can perform data communication with one or more other devices, and different other devices can also perform data communication with each other. In FIGS. 1 and 2, a full function device and a reduced function device can be understood as communication devices shown in the present application. The full function device is defined with respect to the reduced function device. For example, the reduced function device cannot be a PAN coordinator. In another example, compared with the full function device, the reduced function device may not have adjustment capabilities or may have a lower communication speed than the full function device. It should be understood that the PAN coordinator shown in FIG. 2 is only an example, and each of the other three full function devices shown in FIG. 2 can alternatively act as a PAN coordinator. Here, the examples are not listed one by one. It can be further understood that the full function device and the reduced function device shown in the present application are only exemplary communication devices. Any device capable of implementing a method for determining the length of an LDPC codeword in the UWB system of the present application is within the protection scope of the present application.

[0081] Some related contents, terms, or nouns in the present application will be briefly described below.

[0082] 1. LDPC code

[0083] The LDPC code parity check matrix is a sparse matrix. Specifically, the number of non-zero elements in the matrix is much less than the number of zero elements, or both the ratio of the row weight to the code length and the ratio of the column weight to the code length in the matrix are quite small values. The LDPC code can be represented by a graph, and this graph is called a Tanner graph. The Tanner graph corresponds one-to-one with the parity check matrix and includes two types of nodes. The first type of node represents the codeword symbol and is called a variable node. The second type of node represents the check constraint relationship and is called a check node. Each check node represents a check constraint relationship. For example, FIG. 3a is a diagram of an LDPC code parity check matrix according to an embodiment of the present application, and FIG. 3b is a Tanner graph of an LDPC code according to an embodiment of the present application. In FIGS. 3a and 3b, {V i} indicates the variable node set, and {C i} indicates the check node set.

[0084] The LDPC code used in the 802.11ac / ax standard is a quasi-cyclic LDPC (QC-LDPC) code. The QC-LDPC code is a widely used structured LDPC code. The parity check matrix of the QC-LDPC code has a unique structure, and encoding can be implemented by using a simple feedback shift register. Therefore, the problem of the encoding complexity of the LDPC code can be well solved. FIG. 4a is a diagram of an LDPC code parity check matrix with a bit rate of 1 / 2 and a code length of 648 according to an embodiment of the present application. As shown in FIG. 4a, each element in the LDPC code parity check matrix with a code length N of 648 and a bit rate R of 1 / 2 represents a Z-order matrix (Z = N / 24), "0" indicates a Z×Z identity matrix, and "-" indicates a matrix where all elements of Z×Z are zero. For example, the element "22" in FIG. 4a indicates that the Z×Z identity matrix P is cyclically shifted 22 bits to the right to obtain a cyclic shift matrix P 22 . The other non-zero elements in FIG. 4a are the same as the element "22" and will not be described again for details. P ishows a cyclic shift matrix, and i (0 ≦ i ≦ Z - 1) indicates a cyclic shift value. FIG. 4b is a diagram of the cyclic shift matrix P1 according to an embodiment of the present application. As shown in FIG. 4b, the cyclic shift matrix P1 indicates that the Z×Z identity matrix P is cyclically shifted 1 bit to the right.

[0085] In existing WLAN standards (e.g., 802.11n / ac), orthogonal frequency division multiplexing (OFDM) technology is used. The LDPC encoding module needs to encode data bits (which can also be understood as payload bits) and then arrange the encoded bits within an integer number of OFDM symbols. The encoded bits also need to be arranged exactly within an integer number of LDPC codewords. Therefore, before transmission, the minimum number N SYM of OFDM symbols required for the current transmission needs to be calculated. Then, based on N SYM and the current coding and modulation scheme, the total number of coded bits that can be stored in all OFDM symbols is calculated. N TCB = N CBPS × N SYM where N CBPS indicates the number of coded bits that can be stored in each OFDM symbol. Then, based on the total number N TCB of coded bits, the LDPC code length L LDPC and the number N CWis determined. However, for most lengths of the data bits to be encoded as well as the coding and modulation schemes, there are not enough data bits to fill the information bit positions in the LDPC codeword. Therefore, a shortening operation needs to be performed before the parity bits are generated. The shortening operation means inserting a specific quantity of 0s into the information bit positions in the LDPC codeword before the parity bits are generated through LDPC encoding. The 0s are deleted after the parity bits are generated through LDPC encoding. FIG. 5 is a diagram of the LDPC encoding process in a WLAN according to an embodiment of the present application. As shown in FIG. 5, the LDPC encoding process in a WLAN includes at least step 1 to step 6. Specifically, step 1 includes the data bits to be encoded, for example, the payload bits. In step 2, the length L of the LDPC codeword LDPC and the quantity N of the codewords CWIt is determined. For specific determination methods, please refer to the following description. In step 3, a shortening operation is performed on the data bits to be encoded. Specifically, shortening zero bits are added after the data bits to be encoded. In step 4, the data bits to be encoded and the shortening zero bits in each LDPC codeword are encoded by generating parity bits using the LDPC code parity check matrix. Then, the shortening zero bits are removed. In step 5, some of the data bits to be encoded in the LDPC codeword are repeated or the parity bits in the LDPC codeword are punctured. In this way, the processed (punctured or repeated) codeword bits exactly fill the transmitted OFDM symbol. Specifically, the number of processed codeword (punctured or repeated) bits is equal to the number of bits that can be carried within the OFDM symbol. In step 6, multiple codewords are concatenated and stream parsing is performed.

[0086] In this application, the "LDPC code length" is the length of the LDPC codeword (LDPC code word length), and "LDPC code length", "LDPC codeword length", and "LDPC code word length" can be used interchangeably.

[0087] 2. Method for Determining the LDPC Codeword Length in the 802.11ac / ax Standard

[0088] In the 802.11ac / ax standard, a total of 12 LDPC code parity check matrices are used, including three code lengths, namely, 648 bits, 1296 bits, and 1944 bits. Each code length supports four different bit rates, namely, 1 / 2, 2 / 3, 3 / 4, and 5 / 6 (the bit rates in this specification are reference bit rates). FIGS. 6a and 6b respectively show an LDPC code parity check matrix with a bit rate of 1 / 2 (i.e., R = 1 / 2) and a code length of 1296 bits, and an LDPC code parity check matrix with a bit rate of 1 / 2 and a code length of 1944 bits. An LDPC code parity check matrix with a bit rate of 1 / 2 and a code length of 648 is shown in FIG. 4a. It should be understood that for the meaning of the elements in FIGS. 6a and 6b, the meaning of the elements in FIG. 4a can be referred to. Details will not be described again here.

[0089] Optionally, the selection of the bit rate in the 802.11ac / ax standard is determined by the modulation and coding scheme (MCS) adaptively selected by the link. In a WLAN, the LDPC code is selected from 12 parity check matrices based on the code length and the bit rate, and different code lengths and bit rates correspond to different parity check matrices. For a given bit rate, in the existing WLAN standard, the LDPC code length required for current data transmission is calculated based on both the current data packet length and the current quantity of OFDM symbols.

[0090] Specifically, the method for calculating the LDPC code word length in the existing WLAN standard is obtained as follows.

[0091] 1. The quantity of OFDM symbols required for current data transmission is calculated as follows.

[0092]

Equation

[0093] N SYM indicates the number of OFDM symbols required for the current data transmission, length indicates the length of the data packet (in bytes), and m STBC indicates the space-time coding method for the data packet (the value is 1 when space-time coding is not used), and N DBPS indicates the number of data bits carried within each OFDM symbol.

[0094]

Number

[0095] indicates rounding up. Details will not be explained again below.

[0096] 2. The bit length obtained by adding 16 cyclic redundancy check (CRC) bits to the current data transmission is calculated as follows. N pld = 8 * length + 16 (1-2)

[0097] 3. The number of coded word bits in the current data transmission is calculated as follows. N TCB = N CBPS × N SYM (1-3)

[0098] N TCB indicates the number of coded word bits in the current data transmission, and N CBPS indicates the number of coded word bits carried within each OFDM symbol.

[0099] 4. The LDPC coded word length for the current data transmission is determined based on the above parameters (N TCB 、N pld etc.) and Table 1 below.

[0100]

Table 1

[0101] It should be understood that R in Table 1 indicates the bit rate.

[0102] In the WLAN standard, when selecting the LDPC codeword length, in addition to the above parameters (N TCB , N pld etc.), the performance of the long code and the quantity of bits to be punctured need to be considered more comprehensively. As shown in step 5 in FIG. 5, in WLAN, a puncturing operation may need to be performed after LDPC coding. Specifically, one or more parity bits at the end are not transmitted. However, puncturing increases the actual bit rate (specifically, the actual bit rate is higher than the reference bit rate) and causes a certain degree of performance loss. Longer LDPC codes have better error control performance. Therefore, long codes should be selected during the selection of the codeword length. However, in practice, the codeword length of the LDPC code in WLAN needs to be selected based on the trade-off between the long code and the quantity of bits to be punctured. As shown in Table 1, the selected codeword length for the LDPC code in WLAN does not increase in a stepwise manner with the increase of the data packet length, but may continuously decrease with the increase of the data packet length to a shorter codeword length. In addition, since the encoded bits need to fill at least a single OFDM symbol, when the shortest packet length (specifically, N TCB ≤ 648) is used, for the LDPC code in WLAN, an intermediate codeword length (1296 bits) is selected instead of the shortest codeword length (648 bits).

[0103] From the above content, it can be known that in the WLAN standard, LDPC codes are widely used to improve the transmission reliability of the wireless transmission system. In next-generation UWB standards such as the IEEE 802.15ab standard, in order to improve the transmission reliability of the system, LDPC codes with a bit rate of 1 / 2 in WLAN will be introduced. An important candidate solution is to reuse the LDPC codes with a bit rate of 1 / 2 and code lengths of 648 bits, 1296 bits, and 1944 bits in WLAN. However, when the LDPC codes in WLAN with a bit rate of 1 / 2 and code lengths of 648 bits, 1296 bits, and 1944 bits are reused, it is necessary to urgently consider how to determine the length of the LDPC codeword in the UWB system.

[0104] This application provides a method and related apparatus for determining the length of the LDPC codeword in a UWB system, ensuring that the longest possible code is used in UWB transmission to achieve higher error control performance improvement and reduce the bit rate loss caused by excessive shortened zero bits.

[0105] The technical solutions provided in this application will be described in detail below with reference to the accompanying drawings.

[0106] To clearly explain the technical solutions of this application, this application is described by using a plurality of embodiments. For details, please refer to the following description. In this application, for the same part or similar parts of the embodiments or implementations, unless otherwise specified, they can be referred to each other between the embodiments or implementations. In the embodiments of this application and the implementations / methods / implementation methods of the embodiments, unless otherwise specified or there is no logical contradiction, the terms and / or descriptions in different embodiments and the implementations / methods / implementation methods of the embodiments are consistent and can be referred to each other. The technical features in different embodiments and the implementations / methods / implementation methods of the embodiments can be combined to form a new embodiment, implementation, method, or implementation method based on the internal logical relationship between the technical features. The following implementations of this application are not intended to limit the protection scope of this application. It should be understood that the sequence of the following embodiments does not represent importance.

[0107] Embodiment 1 Embodiment 1 of this application mainly describes a method for determining the length of an LDPC codeword in a UWB system when LDPC codes with three code lengths (648 bits, 1296 bits, and 1944 bits) in a WLAN are reused.

[0108] FIG. 7 is a schematic flowchart of a method for determining the length of an LDPC codeword in a UWB system according to an embodiment of this application. The communication device in this method can be any device in FIG. 1 or FIG. 2. As shown in FIG. 7, the method for determining the length of an LDPC codeword in a UWB system includes, but is not limited to, the following steps.

[0109] S101. The communication device obtains the length of the information bits to be encoded.

[0110] In this embodiment of the present application, the information bits to be encoded may be information bits that have not undergone channel coding, that is, the information bits input to the input end of the channel coding module. For example, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded may include data bits to be encoded and CRC bits. This is not limited in this embodiment of the present application.

[0111] S102. The communication device determines the length of the LDPC codeword based on the length of the information bits to be encoded, and uses the parity check matrix corresponding to the LDPC codeword to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits; when the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 1944 bits; or when the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the length of the LDPC codeword is 1296 bits.

[0112] The reference bit rate R of the LDPC codeword is 1 / 2.

[0113] Optionally, the communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes the following. When the length of the information bits to be encoded is greater than 0 and not more than 324 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and not more than 648 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and not more than 972 bits, the communication device determines that the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 972 bits and not more than 1296 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. In a possible implementation, when the length of the information bits to be encoded is greater than 1296 bits, the communication device determines that the length of the LDPC codeword is 1944 bits. In another possible implementation, when the length of the information bits to be encoded is greater than 1296 bits and not more than 1620 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 1620 bits and not more than 1944 bits, the communication device determines that the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 1944 bits and not more than 2592 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. Or when the length of the information bits to be encoded is greater than 2592 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0114] In other words, the communication device can determine the length of the LDPC codeword based on the length of the information bits to be encoded and at least one row in Table 2 or Table 3. To encode the information bits to be encoded and generate parity bits, a parity check matrix corresponding to the LDPC codeword is used. Table 2 and Table 3 can be defined in the standard, or can be preset, or can be determined by both communication entities through negotiation or the like. It can be understood that Table 2 and Table 3 are only examples. In an actual application, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword can be a subset in Table 2 or Table 3. In other words, the rows shown in Table 2 can be separated from each other, and in an actual application, some or all of the rows shown in Table 2 can exist. Similarly, the rows shown in Table 3 can be separated from each other, and in an actual application, some or all of the rows shown in Table 3 can exist.

[0115]

Table 2

[0116]

Table 3

[0117] "Inf_Num" in Table 2 and Table 3 indicates the length of the information bits to be encoded. The same characters in the following description indicate the same meaning and will not be described in detail again below.

[0118] Optionally, after step S102, the communication device may generate an LDPC codeword based on the determined length of the LDPC codeword, the information bits to be encoded, the reference bit rate (1 / 2) of the LDPC codeword, and other information, and transmit the LDPC codeword. The LDPC codeword includes the information bits to be encoded and the parity bits generated by encoding the information bits to be encoded (or the information bits to be encoded and the shortened zero bits) using the parity check matrix corresponding to the LDPC codeword. For example, for the method of generating an LDPC codeword by a communication device, refer to steps 1 to 4 in FIG. 5. For example, the communication device may transmit the LDPC codeword to another communication device, or transmit the LDPC codeword to the next module of the channel coding module for processing. For example, for the method of transmitting an LDPC codeword by a communication device, refer to step 6 in FIG. 5. In other words, since the UWB system does not include OFDM symbols, the LDPC encoding process in the UWB system does not include step 5 in FIG. 5.

[0119] In this embodiment of the present application, the quantity of the shortened zero bits in the LDPC codeword may be determined based on the length of the information bits to be encoded and the quantity of the information bits in the LDPC codeword. The quantity of the information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate. Specifically, the quantity of the shortened zero bits is obtained as follows. Padding_Num=mod(K-mod(Inf_Num,K),K) (2-1)

[0120] Padding_Num represents the quantity of the shortened zero bits in the LDPC codeword, K represents the quantity of the information bits in the LDPC codeword, Inf_Num represents the length of the information bits to be encoded, and mod represents the modulo operation. The same expressions in the following description represent the same meaning and will not be described in detail again. K = N × R, where N represents the length of the LDPC codeword and R represents the reference bit rate of the LDPC codeword.

[0121] The advantageous effects of this embodiment of the present application will be described in detail below with reference to the design concepts of Tables 2 and 3.

[0122] The LDPC encoding process in the WLAN system is shown in FIG. 5, and it can be understood that all the encoded bits of the codeword need to be arranged within the transmitted OFDM symbol. If the number of all the encoded bits of the codeword exceeds the number of bits that can be carried within the OFDM symbol, a puncturing operation needs to be performed on the codeword, so that the bits obtained by puncturing all the encoded bits of the codeword can be accurately arranged within the transmitted OFDM symbol. If the number of all the encoded bits of the codeword is less than the number of bits that can be carried within the OFDM symbol, a repetition operation needs to be performed on some information bits in the codeword to fill the OFDM symbol.

[0123] Unlike a WLAN system, a UWB system does not include OFDM symbols. Specifically, during UWB transmission, the coded bits of the codeword do not need to be carried within an OFDM symbol, and thus, some parity bits that may exceed the maximum number of bits that can be carried within an OFDM symbol do not need to be removed through puncturing. Therefore, when selecting the length of the LDPC codeword in a UWB system, performance and bit rate waste (specifically, excessive shortened zero bits) need to be considered, but the repeated bits or punctured bits caused by OFDM symbols do not need to be considered. Specifically, the influence of step 5 in FIG. 5 on the selection of the length of the LDPC codeword does not need to be considered. In other words, the method of selecting (or determining) the length of the LDPC codeword in a UWB system is different from the method of selecting (or determining) the length of the LDPC codeword in a WLAN system. However, when selecting (determining) the length of the LDPC codeword in a UWB system, the trade-off between long codes and short codes needs to be considered. The reason is as follows. If a long code (for example, an LDPC code with a length of 1944 bits) is always used, better error control performance can be achieved, but a large number of shortening zero bits are required for the shorter coded information bits, resulting in waste of bit rate. If a short code (for example, an LDPC code with a length of 648 bits) is always used, for long data packets, the performance of the long data packet will be degraded when the short code is used compared to the case where the long code is used. In other words, if the short code is always used, there will be a performance loss for long data packets.

[0124] FIG. 8 is a diagram of an LDPC encoding process in a UWB system according to an embodiment of the present application. For ease of explanation, as shown in FIG. 8, an example where the information bits to be encoded are payload bits is used. It should be understood that the information bits to be encoded in FIG. 8 are not necessarily limited to payload bits, and alternatively, they can be a set of payload bits and CRC bits. In step 3, if the information bits to be encoded cannot fill the information bit positions in the LDPC codeword, zeros need to be added after the information bits to be encoded to fill the information bit positions in the LDPC codeword, and then the parity bits are generated using the parity check matrix corresponding to the LDPC codeword, so that the information bits to be encoded and the shortening zero bits are encoded. After a complete LDPC codeword is obtained through encoding, as shown in step 4, the shortening zero bits added in step 3 are deleted to obtain the final transmitted codeword sequence.

[0125] As shown in FIG. 8, the shortening operation in step 3 reduces the actual bit rate of the final transmitted codeword sequence compared to the reference bit rate of the LDPC codeword. For example, in the case of an LDPC code where the reference bit rate is 1 / 2 (i.e., R = 1 / 2) and the code length is 1944 bits (i.e., N = 1944), the number of information bits in the LDPC code is obtained as follows. K = N × R = 1944 × (1 / 2) = 972 bits, and the number of parity bits is obtained as follows. M = N × (1 - R) = 1944 × (1 / 2) = 972 bits. If the shortening zero bits are 486 bits, the actual bit rate of the LDPC code is obtained as follows. R' = (972 - 486) / (972 - 486 + 972) = 486 / 1458 = 1 / 3. In this case, the bit rate required for system transmission is 1 / 2, but the actual bit rate R' of the LDPC code with a length of 1944 bits is 1 / 3. This results in a waste of the bit rate and an increase in the overhead of system transmission.

[0126] In the method of calculating the number of shortened zero bits in Equation (2-1), when the reference bit rate is fixed at 1 / 2, a case where the number of shortened zero bits required by LDPC codes having three code lengths (648 bits, 1296 bits, and 1944 bits) changes with the length of the information bits to be encoded is shown in FIG. 9. In FIG. 9, the horizontal coordinate indicates the length of the information bits to be encoded, and the vertical coordinate indicates the number of shortened zero bits. "Solid circle 1 (the circled number 1, the same applies hereinafter)" in FIG. 9 indicates the curve of the number of shortened zero bits required by an LDPC code in which the reference bit rate is 1 / 2, the code length is 648 bits, and it changes with the length of the information bits to be encoded. "Solid circle 2" in FIG. 9 indicates the curve of the number of shortened zero bits required by an LDPC code in which the reference bit rate is 1 / 2, the code length is 1296 bits, and it changes with the length of the information bits to be encoded. "Solid circle 3" in FIG. 9 indicates the curve of the number of shortened zero bits required by an LDPC code in which the reference bit rate is 1 / 2, the code length is 1944 bits, and it changes with the length of the information bits to be encoded. In order to reduce the waste of bit rate (or transmission overhead), when the length of the information bits to be encoded is given, the code length having the minimum number of shortened zero bits can be selected. When LDPC codes having multiple code lengths require the same number of shortened zero bits, since the error control performance of the longer code is more excellent, the LDPC code having the maximum code length is selected.For example, when the length of the information bits to be encoded ranges from 0 bits to 324 bits, an LDPC code with a length of 648 bits is selected; when the length of the information bits to be encoded ranges from 325 bits to 648 bits, an LDPC code with a length of 1296 bits is selected; when the length of the information bits to be encoded ranges from 649 bits to 972 bits, an LDPC code with a length of 1944 bits is selected; when the length of the information bits to be encoded ranges from 973 bits to 1296 bits, an LDPC code with a length of 1296 bits is selected; when the length of the information bits to be encoded ranges from 1297 bits to 1620 bits, an LDPC code with a length of 648 bits is selected; when the length of the information bits to be encoded ranges from 1621 bits to 1944 bits, an LDPC code with a length of 1944 bits is selected, and so on.

[0127] However, when minimizing the quantity of shortened zero bits, as the length of the information bits to be encoded increases, three code lengths are switched continuously. Therefore, for long data packets, a short code is selected (for example, when the length of the information bits to be encoded ranges from 1297 bits to 1620 bits, an LDPC code with a length of 648 bits is selected), which causes a performance loss. To reduce the performance loss of long data packets, in this embodiment of the present application, the effective bit rate can be used to assist in code length selection. The effective bit rate (Rate_E) can be determined based on the length of the information bits to be encoded (Inf_Num), the quantity of information bits (K) in the LDPC codeword, and the quantity of parity bits (M) in the LDPC codeword. Specifically, the effective bit rate (Rate_E) can be expressed as follows. Rate_E = Inf_Num / Trans_Bits (2-2) Trans_Bits = Inf_Num + (floor((Inf_Num - 1) / K) + 1) × M (2-3)

[0128] floor indicates rounding down.

[0129] In the method of calculating the effective bit rate (Rate_E) in Equation (2-2), when the reference bit rate is fixed at 1 / 2, Figure 10 shows a case where the effective bit rates of LDPC codes with three code lengths (648 bits, 1296 bits, and 1944 bits) vary with the length of the information bits to be encoded. In Figure 10, the horizontal coordinate indicates the length of the information bits to be encoded, and the vertical coordinate indicates the effective bit rate. "Circle 1" in Figure 10 represents the curve of the effective bit rate of an LDPC code where the reference bit rate is 1 / 2, the code length is 648 bits, and it varies with the length of the information bits to be encoded. "Circle 2" in Figure 10 represents the curve of the effective bit rate of an LDPC code where the reference bit rate is 1 / 2, the code length is 1296 bits, and it varies with the length of the information bits to be encoded. "Circle 3" in Figure 10 represents the curve of the effective bit rate of an LDPC code where the reference bit rate is 1 / 2, the code length is 1944 bits, and it varies with the length of the information bits to be encoded. To reduce the performance loss of long data packets, when the length of the information bits to be encoded is given, a code length with a higher effective bit rate can be selected. When LDPC codes with multiple code lengths have the same effective bit rate, the error control performance of the longer code is better, so the LDPC code with the maximum code length is selected. For example, when the length of the information bits to be encoded is in the range from 0 bits to 324 bits, the LDPC code with a length of 648 bits is selected; when the length of the information bits to be encoded is in the range from 325 bits to 648 bits, the LDPC code with a length of 1296 bits is selected; when the length of the information bits to be encoded is in the range from 649 bits to 972 bits, the LDPC code with a length of 1944 bits is selected; when the length of the information bits to be encoded is in the range from 973 bits to 1296 bits, the LDPC code length of 1296 bits is selected, and so on.

[0130] As shown in FIG. 10, it can be understood that as the length of the information bits to be encoded continuously increases, the effective bit rate (Rate_E) gradually approaches the reference bit rate of 1 / 2. Therefore, when the information bits to be encoded are quite long, the bit rate loss caused by the shortened zero bits is quite small. Specifically, when the information bits to be encoded are quite long, an LDPC code having the maximum code length (i.e., 1944 bits) can be selected. This is because a long code has a higher improvement in error control performance.

[0131] In this embodiment of the present application, the length of the LDPC codeword is selected based on the effective bit rate. Specifically, a threshold value Rth is set. When the effective bit rate is greater than the threshold value Rth, the longest codeword is selected to achieve the optimal coding gain. When the effective bit rate is less than or equal to the threshold value Rth, the codeword length having the highest effective bit rate is selected. For example, FIG. 11a is a diagram for selecting the length of the LDPC codeword according to an embodiment of the present application. As shown in FIG. 11a, assuming that the threshold value Rth is 0.4, Table 2 can be obtained according to the above principle. In another example, FIG. 11b is another diagram for selecting the length of the LDPC codeword according to an embodiment of the present application. As shown in FIG. 11b, assuming that the threshold value Rth is 0.42, Table 3 can be obtained according to the above principle. In FIGS. 11a and 11b, the horizontal coordinate indicates the length of the information bits to be encoded, and the vertical coordinate indicates the effective bit rate. In FIGS. 11a and 11b, "solid circle 1" represents the curve of the effective bit rate of the LDPC code where the reference bit rate is 1 / 2, the code length is 648 bits, and it changes with the length of the information bits to be encoded; "solid circle 2" represents the curve of the effective bit rate of the LDPC code where the reference bit rate is 1 / 2, the code length is 1296 bits, and it changes with the length of the information bits to be encoded; "solid circle 3" represents the curve of the effective bit rate of the LDPC code where the reference bit rate is 1 / 2, the code length is 1944 bits, and it changes with the length of the information bits to be encoded.

[0132] Therefore, in the method for determining the length of the LDPC codeword in this embodiment of the present application, in UWB transmission, a code as long as possible is used to achieve a higher improvement in error control performance, and to ensure that when the length of the information bits to be encoded is small, the bit rate loss caused by excessive shortened zero bits is avoided. A trade-off is made between the effective bit rate and the performance of the long code.

[0133] In some scenarios, in order to reduce the power consumption in the UWB system, only LDPC codes with short and medium code lengths in WLAN, specifically, LDPC codes with code lengths of 648 bits and 1296 bits, can be reused.

[0134] Embodiment 2 Embodiment 2 of the present application mainly describes a method for determining the length of the LDPC codeword in the UWB system when LDPC codes with short and medium code lengths (648 bits and 1296 bits) in WLAN are reused.

[0135] FIG. 12 is another schematic flowchart of a method for determining the length of the LDPC codeword in the UWB system according to the embodiment of the present application. The communication device in this method may be any device in FIG. 1 or FIG. 2. As shown in FIG. 12, the method for determining the length of the LDPC codeword in the UWB system includes, but is not limited to, the following steps.

[0136] S201. The communication device obtains the length of the information bits to be encoded.

[0137] In this embodiment of the present application, the information bits to be encoded may be information bits that have not undergone channel coding, that is, the information bits input to the input end of the channel coding module. For example, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded may include data bits to be encoded and CRC bits. This is not limited in this embodiment of the present application.

[0138] S202. The communication device determines the length of the LDPC codeword based on the length of the information bits to be encoded, and uses the parity check matrix corresponding to the LDPC codeword to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits. Or when the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 648 bits.

[0139] The reference bit rate R of the LDPC codeword is 1 / 2.

[0140] Optionally, the communication device determining the length of the LDPC codeword based on the length of the information bits to be encoded includes the following. When the length of the information bits to be encoded is greater than 0 and not more than 324 bits, the communication device determines that the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and not more than 648 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and not more than 972 bits, the communication device determines that the length of the LDPC codeword is 648 bits. In a possible implementation, when the length of the information bits to be encoded is greater than 972 bits, the communication device determines that the length of the LDPC codeword is 1296 bits. In another possible implementation, when the length of the information bits to be encoded is greater than 972 bits and not more than 1296 bits, the communication device determines that the length of the LDPC codeword is 1296 bits, and when the length of the information bits to be encoded is greater than 1296 bits and not more than 1620 bits, the communication device determines that the length of the LDPC codeword is 648 bits, or when the length of the information bits to be encoded is greater than 1620 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0141] In other words, the communication device can determine the length of the LDPC codeword based on the length of the information bits to be encoded and at least one row in Table 4 or Table 5. To encode the information bits to be encoded and generate parity bits, a parity check matrix corresponding to the LDPC codeword is used. Table 4 and Table 5 can be defined in the standard, or can be preset, or can be determined by both communication entities through negotiation or the like. It can be understood that Table 4 and Table 5 are only examples. In an actual application, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword may be a subset in Table 4 or Table 5. In other words, the rows shown in Table 4 can be separated from each other, and in an actual application, some or all of the rows shown in Table 4 may be present. Similarly, the rows shown in Table 5 can be separated from each other, and in an actual application, some or all of the rows shown in Table 5 may be present.

[0142]

Table 4

[0143]

Table 5

[0144] "Inf_Num" in Table 4 and Table 5 indicates the length of the information bits to be encoded.

[0145] Optionally, after step S202, the communication device may generate an LDPC codeword based on the determined length of the LDPC codeword, the information bits to be encoded, the reference bit rate (1 / 2) of the LDPC codeword, and other information, and transmit the LDPC codeword. The LDPC codeword includes the information bits to be encoded and the parity bits generated by encoding the information bits to be encoded (or the information bits to be encoded and the shortened zero bits) using the parity check matrix corresponding to the LDPC codeword. For example, for the method of generating an LDPC codeword by a communication device, refer to steps 1 to 4 in FIG. 5. For example, the communication device may transmit the LDPC codeword to another communication device or transmit the LDPC codeword to the next module of the channel coding module for processing. For example, for the method of transmitting an LDPC codeword by a communication device, refer to step 6 in FIG. 5. In other words, since the UWB system does not include OFDM symbols, the LDPC encoding process in the UWB system does not include step 5 in FIG. 5.

[0146] In this embodiment of the present application, the quantity of the shortened zero bits in the LDPC codeword may be determined based on the length of the information bits to be encoded and the quantity of the information bits in the LDPC codeword. The quantity of the information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate. Specifically, the quantity of the shortened zero bits is determined based on Equation (2-1).

[0147] It can be understood that the design concepts of Tables 4 and 5 in this embodiment of the present application are the same as those of Tables 2 and 3 in Embodiment 1. Specifically, in this embodiment of the present application, in order to reduce the power consumption in the UWB system, only LDPC codes with short code lengths and medium code lengths in WLAN are reused, specifically, LDPC codes with code lengths of 648 bits and 1296 bits are reused. In addition, the length of the LDPC codeword is selected based on the effective bit rate. Specifically, a threshold Rth is set. When the effective bit rate is greater than the threshold Rth, the longer of the 648-bit codeword and the 1296-bit codeword is selected to achieve the optimal coding gain. When the effective bit rate is less than or equal to the threshold Rth, the codeword length with the highest effective bit rate is selected. For example, FIG. 13a is yet another diagram for selecting the length of the LDPC codeword according to an embodiment of the present application. As shown in FIG. 13a, assuming that the threshold Rth is 0.4, Table 4 can be obtained according to the above principle. In another example, FIG. 13b is yet another diagram for selecting the length of the LDPC codeword according to an embodiment of the present application. As shown in FIG. 13b, assuming that the threshold Rth is 0.42, Table 5 can be obtained according to the above principle. In FIGS. 13a and 13b, the horizontal coordinate indicates the length of the information bits to be encoded, and the vertical coordinate indicates the effective bit rate. In FIGS. 13a and 13b, "solid 1" represents the curve of the effective bit rate of the LDPC code with a reference bit rate of 1 / 2, a code length of 648 bits, and varying with the length of the information bits to be encoded, and "solid 2" represents the curve of the effective bit rate of the LDPC code with a reference bit rate of 1 / 2, a code length of 1296 bits, and varying with the length of the information bits to be encoded.

[0148] For the advantageous effects of this embodiment of the present application, refer to the advantageous effects of Embodiment 1. Specifically, in this embodiment of the present application, as long a code as possible is used in UWB transmission to achieve a higher improvement in error control performance, and a trade-off is still made between the effective bit rate and the performance of the long code to ensure that the bit rate loss caused by excessive shortened zero bits is avoided when the length of the information bits to be encoded is small. In addition, in this embodiment of the present application, only LDPC codes with short and medium code lengths in WLAN (specifically, LDPC codes with code lengths of 648 bits and 1296 bits) are used to reduce the power consumption in the UWB system.

[0149] It can be understood that the length of the information bits to be encoded in Embodiment 1 and Embodiment 2 is designed and described in units of bits (bit). In some scenarios, the length of the information bits to be encoded can alternatively be represented in units of bytes. In this case, the method for determining the length of the LDPC codeword in the UWB system can be described in Embodiment 3. It can be further understood that the design concept of Embodiment 3 is the same as that of Embodiment 1 and Embodiment 2. For the advantageous effects of Embodiment 3, refer to the advantageous effects of Embodiment 1 and Embodiment 2.

[0150] Embodiment 3 FIG. 14 is yet another schematic flowchart of a method for determining the length of an LDPC codeword in a UWB system according to an embodiment of the present application. The communication device in this method may be any device in FIG. 1 or FIG. 2. As shown in FIG. 14, the method for determining the length of an LDPC codeword in a UWB system includes, but is not limited to, the following steps.

[0151] S301. The communication device obtains the length of the information bits to be encoded.

[0152] In this embodiment of the present application, the information bits to be encoded may be information bits that have not undergone channel coding, that is, the information bits input to the input end of the channel coding module. For example, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded may include data bits to be encoded and CRC bits. This is not limited in this embodiment of the present application.

[0153] S302. The communication device determines the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits.

[0154] Optionally, the communication device may determine the length of the LDPC codeword based on the length of the information bits to be encoded in any one of Implementations 1 to 4 below.

[0155] Implementation 1

[0156] The length of the information bits to be symbolized and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be symbolized is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be symbolized is 41 bytes or more and 81 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is 82 bytes or more and 121 bytes or less, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be symbolized is 122 bytes or more and 162 bytes or less, the length of the LDPC codeword is 1296 bits. In a possible implementation, when the length of the information bits to be symbolized is 163 bytes or more, the length of the LDPC codeword is 1944 bits. In another possible implementation, the length of the information bits to be symbolized and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be symbolized is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be symbolized is 203 bytes or more and 243 bytes or less, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be symbolized is 244 bytes or more and 324 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is 325 bytes or more, the length of the LDPC codeword is 1944 bits.

[0157] For example, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in Implementation 1 can be shown in at least one row in Table 6 or Table 7. For example, when the length of the information bits to be encoded is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits. In another example, when the length of the information bits to be encoded is 41 bytes or more and 81 bytes or less, the length of the LDPC codeword is 1296 bits. In yet another example, when the length of the information bits to be encoded is 82 bytes or more and 121 bytes or less, the length of the LDPC codeword is 1944 bits. In yet another example, when the length of the information bits to be encoded is 122 bytes or more and 162 bytes or less, the length of the LDPC codeword is 1296 bits. In yet another example, when the length of the information bits to be encoded is 163 bytes or more, the length of the LDPC codeword is 1944 bits. It can be understood that the following same or similar explanations represent the same or similar meanings and will not be described in detail again.

[0158] Table 6 and Table 7 can be defined in the standard, or can be preset, or can be determined by both communication entities through negotiation or the like. It can be understood that Table 6 and Table 7 are only examples. In an actual application, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword can be a subset in Table 6 or Table 7. In other words, the rows shown in Table 6 can be separated from each other, and in an actual application, some or all of the rows shown in Table 6 can exist. Similarly, the rows shown in Table 7 can be separated from each other, and in an actual application, some or all of the rows shown in Table 7 can exist.

[0159]

Table 6

[0160]

Table 7

[0161] Implementation 2

[0162] The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 40 bytes and 81 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 81 bytes and 121 bytes or less, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 121 bytes and 162 bytes or less, the length of the LDPC codeword is 1296 bits. In a possible implementation, when the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits. In another possible implementation, the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 162 bytes and 202 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 202 bytes and 243 bytes or less, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 243 bytes and 324 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits.

[0163] For example, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in Implementation 2 can be shown in at least one row in Table 8 or Table 9. Table 8 and Table 9 can be defined in the standard, or can be preset, or can be determined by both communication entities through negotiation or the like. It can be understood that Table 8 and Table 9 are only examples. In an actual application, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword can be a subset in Table 8 or Table 9. In other words, the rows shown in Table 8 can be separated from each other, and in an actual application, some or all of the rows shown in Table 8 can exist. Similarly, the rows shown in Table 9 can be separated from each other, and in an actual application, some or all of the rows shown in Table 9 can exist.

[0164]

Table 8

[0165]

Table 9

[0166] Implementation 3

[0167] The length of the information bits to be symbolized and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be symbolized is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be symbolized is 41 bytes or more and 81 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is 82 bytes or more and 121 bytes or less, the length of the LDPC codeword is 648 bits. In a possible implementation, when the length of the information bits to be symbolized is 122 bytes or more, the length of the LDPC codeword is 1296 bits. In another possible implementation, the length of the information bits to be symbolized and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be symbolized is 122 bytes or more and 162 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be symbolized is 203 bytes or more, the length of the LDPC codeword is 1296 bits.

[0168] For example, the relationship between the length range of the information bits to be symbolized in Implementation 3 and the length of the LDPC codeword can be shown in at least one row (other than the first row) in Table 10 or Table 11. Table 10 and Table 11 can be defined in the standard, or can be preset, or can be determined by both communication entities through negotiation or the like. It can be understood that Table 10 and Table 11 are only examples. In an actual application, the relationship between the length range of the information bits to be symbolized and the length of the LDPC codeword may be a subset in Table 10 or Table 11. In other words, the rows shown in Table 10 can be separated from each other, and in an actual application, some or all of the rows shown in Table 10 may exist. Similarly, the rows shown in Table 11 can be separated from each other, and in an actual application, some or all of the rows shown in Table 11 may exist.

[0169]

Table 10

[0170]

Table 11

[0171] Implementation 4

[0172] The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 40 bytes and 81 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 81 bytes and 121 bytes or less, the length of the LDPC codeword is 648 bits. In a possible implementation, when the length of the information bits to be encoded is greater than 121 bytes, the length of the LDPC codeword is 1296 bits. In another possible implementation, the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 121 bytes and 162 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 162 bytes and 202 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 202 bytes, the length of the LDPC codeword is 1296 bits.

[0173] For example, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in Implementation 4 can be shown in at least one row (other than the first row) in Table 12 or Table 13. Table 12 and Table 13 can be defined in the standard, or can be preset, or can be determined by both communication entities through negotiation or the like. It can be understood that Table 12 and Table 13 are only examples. In an actual application, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword can be a subset in Table 12 or Table 13. In other words, the rows shown in Table 12 can be separated from each other, and in an actual application, some or all of the rows shown in Table 12 can exist. Similarly, the rows shown in Table 13 can be separated from each other, and in an actual application, some or all of the rows shown in Table 13 can exist.

[0174]

Table 12

[0175]

Table 13

[0176] Implementation 5

[0177] The communication device can determine the length of the LDPC codeword based on not only the length of the information bits to be encoded but also the data rate.

[0178] The length of the information bits to be symbolized and the length of the LDPC codeword satisfy the following conditions. When the length of the information bits to be symbolized is greater than 121 bytes and less than or equal to 162 bytes, and the data rate is below a pre-set threshold, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is greater than 121 bytes and less than or equal to 162 bytes, and the data rate is greater than the pre-set threshold, the length of the LDPC codeword is 1944 bits. It can be understood that when the data rate is equal to the pre-set threshold, the length of the LDPC codeword can be 1296 bits or 1944 bits. In other words, when the data rate is equal to the pre-set threshold, 1296 bits or 1944 bits can be selected as the length of the LDPC codeword based on the actual case. This is not limited in this embodiment of the present application.

[0179] It can be understood that the data rate can also be understood as the data symbol rate or the nominal bit rate. This is not limited in this embodiment of the present application. The data rate can include 1.95 Mbps, 7.8 Mbps, 31.2 Mbps, and 62.4 Mbps, and optionally further includes 124.8 Mbps. Alternatively, although it is certain that the data rate can include other values with the progress of the standard, these values are not listed one by one here.

[0180] For example, the pre-set threshold value may be 1.95 Mbps, 7.8 Mbps, 31.2 Mbps, or 62.4 Mbps. Alternatively, the pre-set threshold value may be a value obtained by rounding (up or down) 1.95 Mbps, a value obtained by rounding (up or down) 7.8 Mbps, a value obtained by rounding (up or down) 31.2 Mbps, or a value obtained by rounding (up or down) 62.4 Mbps. Alternatively, the pre-set threshold value may be a value of approximately 1.95 Mbps, for example, 1.94 Mbps or 1.96 Mbps, or a value of approximately 7.8 Mbps, for example, 7.7 Mbps, 7.6 Mbps, 7.9 Mbps, or 8.0 Mbps, or a value of approximately 31.2 Mbps, for example, 31.1 Mbps, 31.15 Mbps, or 31.3 Mbps, or a value of approximately 62.4 Mbps, for example, 62.5 Mbps, 62.35 Mbps, 62.34 Mbps, or 62.5 Mbps. Alternatively, it is certain that the pre-set threshold value may be a range, for example, from 1.90 Mbps to 2.0 Mbps, from 7.5 Mbps to 8.0 Mbps, from 31.0 Mbps to 32.0 Mbps, or from 62.3 Mbps to 62.5 Mbps. The pre-set threshold value can be set based on the actual case. In this embodiment of the present application, the specific value of the pre-set threshold value is not limited.

[0181] In Implementation 5, the length of the LDPC codeword is determined based on the data rate, whereby it can be understood that the transmission performance can be effectively improved and the delay can be shortened. For example, Table 14 shows the time difference in the air between the transmission of an LDPC codeword with a length of 1944 bits and the transmission of an LDPC codeword with a length of 1296 bits when the same data rate is used and the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes. As shown in Table 14, when the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, if the data rate is less than or equal to 1.95 Mbps or the data rate is less than 7.8 Mbps, about 166 μs (microseconds) can be saved when using an LDPC codeword with a length of 1944 bits compared to the case of using an LDPC codeword with a length of 1296 bits.

[0182]

Table 14

[0183] Optionally, alternatively, the length of the information bits to be encoded and the length of the LDPC codeword may satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and less than or equal to 21 bytes, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 21 bytes and less than or equal to 44 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 44 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 1944 bits.

[0184] In a possible implementation, when the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits. In another possible implementation, the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 162 bytes and not more than 202 bytes, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 202 bytes and not more than 243 bytes, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 243 bytes and not more than 324 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits.

[0185] For example, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in Implementation 5 can be shown in at least one row in Table 15 or Table 16. In Table 15 and Table 16, R represents the data rate, and Rth represents a pre-set threshold. Table 15 and Table 16 can be defined in the standard, or can be pre-set, or can be determined by both communication entities through negotiation or the like. It can be understood that Table 15 and Table 16 are only examples. In an actual application, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword may be a subset in Table 15 or Table 16. In other words, the rows shown in Table 15 can be separated from each other, and in an actual application, some or all of the rows shown in Table 15 may exist. Similarly, the rows shown in Table 16 can be separated from each other, and in an actual application, some or all of the rows shown in Table 16 may exist.

[0186]

Table 15

[0187]

Table 16

[0188] Optionally, the reference bit rate R of the LDPC codeword is 1 / 2.

[0189] Optionally, after step S302, the communication device can generate an LDPC codeword based on the determined length of the LDPC codeword, the information bits to be encoded, the reference bit rate (1 / 2) of the LDPC codeword, and other information, and transmit the LDPC codeword. The LDPC codeword includes the information bits to be encoded and the parity bits generated by encoding the information bits to be encoded (or the information bits to be encoded and the shortened zero bits) using the parity check matrix corresponding to the LDPC codeword. For example, for the method of generating an LDPC codeword by a communication device, refer to steps 1 to 4 in FIG. 5. For example, the communication device can transmit the LDPC codeword to another communication device or transmit the LDPC codeword to the next module of the channel coding module for processing. For example, for the method of transmitting an LDPC codeword by a communication device, refer to step 6 in FIG. 5. In other words, since the UWB system does not include OFDM symbols, the LDPC encoding process in the UWB system does not include step 5 in FIG. 5.

[0190] In this embodiment of the present application, the quantity of the shortened zero bits in the LDPC codeword can be determined based on the length of the information bits to be encoded and the quantity of the information bits in the LDPC codeword. The quantity of the information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate. Specifically, the quantity of the shortened zero bits is determined based on Equation (2-1).

[0191] For the advantageous effects of this embodiment of the present application, refer to the advantageous effects of Embodiment 1 or Embodiment 2. For details, they will not be described again here.

[0192] The above content describes in detail the method provided in this application. To facilitate the implementation of the above solutions in the embodiments of this application, the embodiments of this application further provide a corresponding apparatus or device.

[0193] In this application, a communication device is divided into functional modules based on method embodiments. For example, the functional modules can be divided based on functions, or at least two functions can be integrated into one processing module. The integrated module may be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division into modules in this application is only an example and is only a logical function division. In actual implementation, other division methods may be used. Hereinafter, the communication device in the embodiments of this application will be described in detail with reference to FIGS. 15 to 17.

[0194] FIG. 15 is a structural diagram of a communication device according to an embodiment of this application. As shown in FIG. 15, the communication device includes an acquisition unit 10 and a determination unit 20. Optionally, the communication device further includes a transmission unit 30.

[0195] In the design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, and the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded. The parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the length of the LDPC codeword is 1296 bits.

[0196] In a possible implementation, the transmission unit 30 is configured to transmit an LDPC codeword, and the LDPC codeword includes information bits to be encoded and parity bits.

[0197] In another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, and the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded. The parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 648 bits.

[0198] In a possible implementation, the transmission unit 30 is configured to transmit an LDPC codeword, and the LDPC codeword includes information bits to be encoded and parity bits.

[0199] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and not more than 40 bytes, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is 41 bytes or more and not more than 81 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is 82 bytes or more and not more than 121 bytes, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is 122 bytes or more and not more than 162 bytes, the length of the LDPC codeword is 1296 bits.

[0200] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is 163 bytes or more, the length of the LDPC codeword is 1944 bits.

[0201] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions.

[0202] When the length of the information bits to be symbolized is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be symbolized is 203 bytes or more and 243 bytes or less, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be symbolized is 244 bytes or more and 324 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is 325 bytes or more, the length of the LDPC codeword is 1944 bits.

[0203] In one possible implementation of the above design, the transmission unit 30 is configured to transmit an LDPC codeword, and the LDPC codeword includes information bits to be symbolized and parity bits.

[0204] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be symbolized, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be symbolized, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be symbolized to generate parity bits. The length of the information bits to be symbolized and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be symbolized is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be symbolized is greater than 40 bytes and 81 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is greater than 81 bytes and 121 bytes or less, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be symbolized is greater than 121 bytes and 162 bytes or less, the length of the LDPC codeword is 1296 bits.

[0205] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits.

[0206] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions.

[0207] When the length of the information bits to be encoded is greater than 162 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 202 bytes and less than or equal to 243 bytes, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 243 bytes and less than or equal to 324 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits.

[0208] In one possible implementation of any of the above designs, the transmission unit 30 is configured to transmit the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits.

[0209] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and not more than 40 bytes, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is 41 bytes or more and not more than 81 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is 82 bytes or more and not more than 121 bytes, the length of the LDPC codeword is 648 bits.

[0210] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is 122 bytes or more, the length of the LDPC codeword is 1296 bits.

[0211] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions.

[0212] When the length of the information bits to be symbolized is 122 bytes or more and 162 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be symbolized is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be symbolized is 203 bytes or more, the length of the LDPC codeword is 1296 bits.

[0213] In one possible implementation of the above design, the transmission unit 30 is configured to transmit an LDPC codeword, and the LDPC codeword includes information bits to be encoded and parity bits.

[0214] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded and generate parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions. When the length of the information bits to be encoded is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 40 bytes and 81 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 81 bytes and 121 bytes or less, the length of the LDPC codeword is 648 bits.

[0215] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded and generate parity bits. When the length of the information bits to be encoded is greater than 121 bytes, the length of the LDPC codeword is 1296 bits.

[0216] In yet another design, the acquisition unit 10 is configured to acquire the length of the information bits to be encoded, the determination unit 20 is configured to determine the length of the LDPC codeword based on the length of the information bits to be encoded, and the parity check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions.

[0217] When the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 162 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 202 bytes, the length of the LDPC codeword is 1296 bits.

[0218] In one possible implementation of any of the above designs, the transmission unit 30 is configured to transmit the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits.

[0219] The acquisition unit 10, the determination unit 20, and the transmission unit 30 may be integrated into one unit or module, for example, a processing unit. Optionally, the transmission unit 30 may be a transceiver, a transceiver unit, etc.

[0220] It should be understood that method embodiments may be referred to for the specific functions of the above units or the steps performed by the above units. Details are not described again here.

[0221] In the above, the communication device in the embodiment of the present application has been described. Below, possible product forms of the communication device will be described. It should be understood that any form of product having the functions of the communication device in FIG. 15 is within the protection scope of the embodiment of the present application. It should be further understood that the following description is only an example, and the product forms of the communication device in the embodiment of the present application are not limited thereto.

[0222] In the communication device shown in FIG. 15, the acquisition unit 10, the determination unit 20, and the transmission unit 30 may be implemented by using one or more processors. FIG. 16 is a diagram of the structure of the communication device 1000 according to the embodiment of the present application. FIG. 16 shows only the main components in the communication device 1000. In addition to the processor 1001, the communication device may further include a transceiver 1002, a memory 1003, and an input / output device (not shown). The processor 1001 and the transceiver 1002 may be coupled to each other, etc. In this embodiment of the present application, the connection method between the processor and the transceiver is not limited.

[0223] The processor 1001 is mainly configured to process communication protocols and communication data, control the entire communication device, execute software programs, and process data of software programs. The memory 1003 is mainly configured to store software programs and data. The transceiver 1002 may include a control circuit and an antenna. The control circuit is mainly configured to perform conversion between baseband signals and radio frequency signals and process radio frequency signals. The antenna is mainly configured to transmit and receive radio frequency signals in the form of electromagnetic waves. Input / output devices such as touchscreens, displays, or keyboards are mainly configured to receive data input by users and output data to users.

[0224] After the communication device is powered on, the processor 1001 can read the software program in the memory 1003, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be transmitted wirelessly, the processor 1001 performs baseband processing on the data to be transmitted and outputs a baseband signal to the radio frequency circuit. The radio frequency circuit performs radio frequency processing on the baseband signal and then transmits the radio frequency signal to the outside in the form of electromagnetic waves via the antenna. When data is transmitted to the communication device, the radio frequency circuit receives the radio frequency signal via the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor 1001. The processor 1001 converts the baseband signal into data and processes the data.

[0225] In another implementation, the radio frequency circuit and the antenna may be disposed independently of the processor for performing baseband processing. For example, in a distributed scenario, the radio frequency circuit and the antenna may be remotely disposed independently of the communication device.

[0226] The processor 1001, the transceiver 1002, and the memory 1003 may be connected via a communication bus.

[0227] In a design, the communication device 1000 may be configured to perform the functions of Embodiment 1. The processor 1001 may be configured to execute step S101 and step S102 in FIG. 7, and / or may be configured to execute another process of the technology described in this specification. The transceiver 1002 may be configured to transmit and receive the information, data, etc. required in FIG. 7, and / or may be configured to execute another process of the technology described in this specification.

[0228] In another design, the communication device 1000 may be configured to perform the functions of Embodiment 2. The processor 1001 may be configured to execute step S201 and step S202 in FIG. 12, and / or may be configured to execute another process of the technology described herein. The transceiver 1002 may be configured to transmit and receive the information, data, etc. required in FIG. 12, and / or may be configured to execute another process of the technology described herein.

[0229] In yet another design, the communication device 1000 may be configured to perform the functions of Embodiment 3. The processor 1001 may be configured to execute step S301 and step S302 in FIG. 14, and / or may be configured to execute another process of the technology described herein. The transceiver 1002 may be configured to transmit and receive the information, data, etc. required in FIG. 14, and / or may be configured to execute another process of the technology described herein.

[0230] In any one of the above designs, the processor 1001 may include a transceiver for implementing the transmission and reception functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing the transmission and reception functions may be separated or may be integrated together. The transceiver circuit, interface, or interface circuit may be configured to read and write codes or data. Alternatively, the transceiver circuit, interface, or interface circuit may be configured to transmit or transfer signals.

[0231] In any one of the above designs, the processor 1001 may store instructions. The instructions may be a computer program. The computer program is executed on the program 1001, whereby the communication device 1000 executes the method described in the method embodiments. The computer program may be fixed to the processor 1001. In this case, the processor 1001 may be implemented using hardware.

[0232] In an implementation, the communication device 1000 may include a circuit. The circuit may perform a transmission, reception, or communication function in the method embodiments. The processor and transceiver described in this application may be implemented in an integrated circuit (IC), an analog IC, a radio frequency integrated circuit (RFIC), a mixed-signal IC, an application-specific integrated circuit (ASIC), a printed circuit board (PCB), an electronic device, etc. Alternatively, the processor and transceiver may be manufactured by using various IC process technologies, such as complementary metal-oxide-semiconductor (CMOS), N-type metal-oxide-semiconductor (NMOS), P-type metal-oxide-semiconductor (PMOS), bipolar junction transistor (BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), and gallium arsenide (GaAs).

[0233] The scope of the communication device described in this application is not limited thereto, and the structure of the communication device does not have to be limited by FIG. 16. The communication device may be an independent device or part of a large device. For example, the communication device is (1) An independent integrated circuit IC, chip, or chip system or subsystem, (2) Optionally, a set including one or more ICs, which may also include a storage component for storing data and computer programs, (3) An ASIC, for example, a modem, (4) A module that can be embedded in another device, (5) A receiver, terminal, intelligent terminal, cellular phone, wireless device, handheld device, mobile unit, in-vehicle device, network device, cloud device, artificial intelligence device, etc., or (6) Others that may be.

[0234] In another possible implementation, in the communication device shown in FIG. 15, the acquisition unit 10 and the determination unit 20 may be implemented by using one or more logic circuits, and the transmission unit 30 may be an input / output interface, and may also be called a communication interface, interface circuit, interface, etc. Alternatively, the transmission unit 30 may be a transmission unit and a reception unit. The transmission unit may be an output interface, and the reception unit may be an input interface. The transmission unit and the reception unit are integrated into one unit, for example, an input / output interface. FIG. 17 is a diagram of another structure of a communication device according to an embodiment of the present application. As shown in FIG. 17, the communication device shown in FIG. 17 includes a logic circuit 901 and an interface 902. The logic circuit 901 may be a chip, a processing circuit, an integrated circuit, a system on chip (SoC) chip, etc. The interface 902 may be a communication interface, an input / output interface, a pin, etc. For example, FIG. 17 shows an example where the communication device is a chip. The chip includes a logic circuit 901 and an interface 902.

[0235] In this embodiment of the present application, the logic circuit and the interface may be further coupled to each other. In this embodiment of the present application, the specific connection method between the logic circuit and the interface is not limited.

[0236] For example, when a communication device is configured to execute the method, function, or steps performed by the communication device in Embodiment 1, the logic circuit 901 is configured to obtain the length of the information bits to be encoded and determine the length of the low-density parity-check LDPC codeword based on the length of the information bits to be encoded. The parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The interface 902 is configured to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the length of the LDPC codeword is 1296 bits.

[0237] For example, when a communication device is configured to execute the method, function, or steps performed by the communication device in Embodiment 2, the logic circuit 901 is configured to obtain the length of the information bits to be encoded, and determine the length of the low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded. The parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The interface 902 is configured to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 648 bits.

[0238] For example, when a communication device is configured to execute the method, function, or steps performed by the communication device in Embodiment 3, the logic circuit 901 is configured to obtain the length of the information bits to be encoded, and determine the length of the low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded. The parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The interface 902 is configured to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the parity bits.

[0239] It can be understood that the communication device shown in the embodiments of the present application can implement the method provided in the form of hardware in the embodiments of the present application, or can implement the method provided in the form of software in the embodiments of the present application. This is not limited in the embodiments of the present application.

[0240] For a specific implementation of the embodiment shown in FIG. 17, refer to the above embodiments. Details will not be described here again.

[0241] This application further provides a computer program. The computer program is used to implement the operations and / or processes executed by the communication device in the method provided in this application.

[0242] This application further provides a computer-readable storage medium. The computer-readable storage medium stores computer code. When the computer code is executed on a computer, the computer can be used to implement the operations and / or processes executed by the communication device in the method provided in this application.

[0243] This application further provides a computer program product. The computer program product includes computer code or a computer program. When the computer code or the computer program is executed on a computer, the operations and / or processes executed by the communication device in the method provided in this application are executed.

[0244] In some embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the described device embodiments are only examples. For example, the division into units is only a logical function division, and in actual implementation, there may be other divisions. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented. In addition, the shown or described mutual coupling, direct coupling, or communication connection may be implemented through some interfaces. The indirect coupling or communication connection between devices or units may be implemented in electrical, mechanical, or other forms.

[0245] The units described as separate parts may or may not be physically separate, and the parts shown as units may or may not be physical units, i.e., they may be located in one place or may be distributed over multiple network units. Some or all of the units may be selected according to actual requirements to implement the technical effects of the solutions provided in the embodiments of the present application.

[0246] In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may physically exist alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or may be implemented in the form of a software functional unit.

[0247] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, essentially the technical solutions in the embodiments of the present application, or the parts contributing to the prior art, or all or part of the technical solutions may be implemented in the form of a software product. The computer software product is stored in a readable storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The readable storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0248] The above description is only a specific implementation of this application and does not limit the protection scope of this application. Any deformation or substitution form that can be easily conceived by those skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims

Claim 1 A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits; wherein the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits; when the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 1944 bits; or when the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the length of the LDPC codeword is 1296 bits. The method according to claim 1, wherein the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the above conditions. Claim 2 The method according to claim 1, wherein the length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following condition: when the length of the information bits to be encoded is greater than 1296 bits, the length of the LDPC codeword is 1944 bits. The method according to claim 1. Claim 3 The method according to claim 1, wherein the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 1620 bits and less than or equal to 1944 bits, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 1944 bits and less than or equal to 2592 bits, the length of the LDPC codeword is 1296 bits, or when the length of the information bits to be encoded is greater than 2592 bits, the length of the LDPC codeword is 1944 bits further satisfying one or more of the above, The method according to claim 1.

4. The method further includes a step of transmitting, by the communication device, the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the parity bits. The method according to any one of claims 1 to 3.

5. The reference bit rate of the LDPC codeword is 1 / 2. The method according to any one of claims 1 to 4.

6. The number of shortened zero bits in the LDPC codeword is determined based on the length of the information bits to be encoded and the number of information bits in the LDPC codeword, and the number of information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate. The method according to any one of claims 1 to 5.

7. The number of shortened zero bits in the LDPC codeword is as follows: Padding_Num = mod(K - mod(Inf_Num, K), K) Here, Padding_Num indicates the number of shortened zero bits in the LDPC codeword, K indicates the number of information bits in the LDPC codeword, Inf_Num indicates the length of the information bits to be encoded, and mod indicates the modulo operation. K = N × R where N indicates the length of the LDPC codeword and R indicates the reference bit rate of the LDPC codeword. The method according to claim 5.

8. The information bits to be encoded include cyclic redundancy check CRC bits. The method according to any one of claims 1 to 7.

9. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; A step of determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits comprising wherein the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is greater than 0 and not more than 324 bits, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 324 bits and not more than 648 bits, the length of the LDPC codeword is 1296 bits; or when the length of the information bits to be encoded is greater than 648 bits and not more than 972 bits, the length of the LDPC codeword is 648 bits a method. **Claim 10** wherein the length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following condition: when the length of the information bits to be encoded is greater than 972 bits, the length of the LDPC codeword is 1296 bits, the method according to claim 9 The method according to claim 9 **Claim 11** wherein the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is greater than 972 bits and not more than 1296 bits, the length of the LDPC codeword is 1296 bits; when the length of the information bits to be encoded is greater than 1296 bits and not more than 1620 bits, the length of the LDPC codeword is 648 bits; or when the length of the information bits to be encoded is greater than 1620 bits, the length of the LDPC codeword is 1296 bits further satisfying one or more of the above, the method according to claim 9 **Claim 12** wherein the method further comprises a step of transmitting, by the communication device, the LDPC codeword, wherein the LDPC codeword includes the information bits to be encoded and the parity bits the method according to any one of claims 9 to 11 **Claim 13** The reference bit rate of the LDPC codeword is 1 / 2. The method according to any one of claims 9 to 12.

14. The quantity of shortened zero bits in the LDPC codeword is determined based on the length of the information bits to be encoded and the quantity of information bits in the LDPC codeword, and the quantity of information bits in the LDPC codeword is determined based on the length of the LDPC codeword and the reference bit rate. The method according to any one of claims 9 to 13.

15. The quantity of shortened zero bits in the LDPC codeword is as follows: Padding_Num = mod(K - mod(Inf_Num, K), K) Here, Padding_Num indicates the quantity of shortened zero bits in the LDPC codeword, K indicates the quantity of information bits in the LDPC codeword, Inf_Num indicates the length of the information bits to be encoded, and mod indicates the modulo operation. K = N × R N indicates the length of the LDPC codeword, and R indicates the reference bit rate of the LDPC codeword. The method according to claim 14.

16. The information bits to be encoded include cyclic redundancy check CRC bits. The method according to any one of claims 9 to 15.

17. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: a step of obtaining, by a communication device, the length of information bits to be encoded; and a step of determining, by the communication device, the length of a low-density parity-check LDPC codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. and the length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions, namely: when the length of the information bits to be encoded is greater than 0 and less than or equal to 40 bytes, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than or equal to 41 bytes and less than or equal to 81 bytes, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is 82 bytes or more and 121 bytes or less, the length of the LDPC codeword is 1944 bits, or When the length of the information bits to be encoded is 122 bytes or more and 162 bytes or less, the length of the LDPC codeword is 1296 bits A method that satisfies one or more of the above.

18. The length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following condition: when the length of the information bits to be encoded is 163 bytes or more, the length of the LDPC codeword is 1944 bits. The method according to claim 17.

19. The length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions: When the length of the information bits to be encoded is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is 203 bytes or more and 243 bytes or less, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is 244 bytes or more and 324 bytes or less, the length of the LDPC codeword is 1296 bits, or When the length of the information bits to be encoded is 325 bytes or more, the length of the LDPC codeword is 1944 bits Further satisfy one or more of the above. The method according to claim 17.

20. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: A step of obtaining, by a communication device, the length of information bits to be encoded; A step of determining, by the communication device, the length of a low-density parity-check LDPC codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. Including A method wherein when the length of the information bits to be encoded is 163 bytes or more, the length of the LDPC codeword is 1944 bits.

21. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein a parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits; and the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is 203 bytes or more and 243 bytes or less, the length of the LDPC codeword is 1944 bits; when the length of the information bits to be encoded is 244 bytes or more and 324 bytes or less, the length of the LDPC codeword is 1296 bits, or when the length of the information bits to be encoded is 325 bytes or more, the length of the LDPC codeword is 1944 bits. A method. **Claim 22** A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein a parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits; and the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 40 bytes and 81 bytes or less, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 81 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 1944 bits, or When the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits A method that satisfies one or more of the above.

23. The length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following condition: when the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits, The method according to claim 22.

24. The length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions: When the length of the information bits to be encoded is greater than 162 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits, When the length of the information bits to be encoded is greater than 202 bytes and less than or equal to 243 bytes, the length of the LDPC codeword is 1944 bits, When the length of the information bits to be encoded is greater than 243 bytes and less than or equal to 324 bytes, the length of the LDPC codeword is 1296 bits, or When the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits Further satisfying one or more of the above, The method according to claim 22.

25. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: Obtaining, by a communication device, the length of information bits to be encoded; Determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits; Including A method, wherein when the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits.

26. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits; and the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is greater than 162 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than 202 bytes and less than or equal to 243 bytes, the length of the LDPC codeword is 1944 bits; when the length of the information bits to be encoded is greater than 243 bytes and less than or equal to 324 bytes, the length of the LDPC codeword is 1296 bits, or when the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits. A method. **Claim 27** A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits; and the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions: when the length of the information bits to be encoded is greater than 0 and less than or equal to 40 bytes, the length of the LDPC codeword is 648 bits; when the length of the information bits to be encoded is greater than or equal to 41 bytes and less than or equal to 81 bytes, the length of the LDPC codeword is 1296 bits, or When the length of the information bits to be encoded is 82 bytes or more and 121 bytes or less, the length of the LDPC codeword is 648 bits A method that satisfies one or more of the above. **Claim 28** The length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following condition: When the length of the information bits to be encoded is 122 bytes or more, the length of the LDPC codeword is 1296 bits The method according to claim 27. **Claim 29** The length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions, namely When the length of the information bits to be encoded is 122 bytes or more and 162 bytes or less, the length of the LDPC codeword is 1296 bits When the length of the information bits to be encoded is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits, or When the length of the information bits to be encoded is 203 bytes or more, the length of the LDPC codeword is 1296 bits And satisfy one or more of the above. The method according to claim 27. **Claim 30** A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising A step of obtaining, by a communication device, the length of information bits to be encoded; and A step of determining, by the communication device, the length of a low-density parity-check LDPC codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits Including A method wherein when the length of the information bits to be encoded is 122 bytes or more, the length of the LDPC codeword is 1296 bits. **Claim 31** A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising A step of obtaining, by a communication device, the length of information bits to be encoded; and A step of determining the length of a low-density parity-check LDPC codeword based on the length of the information bits to be encoded by the communication device, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits comprising wherein the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions, namely when the length of the information bits to be encoded is 122 bytes or more and 162 bytes or less, the length of the LDPC codeword is 1296 bits when the length of the information bits to be encoded is 163 bytes or more and 202 bytes or less, the length of the LDPC codeword is 648 bits, or when the length of the information bits to be encoded is 203 bytes or more, the length of the LDPC codeword is 1296 bits A method

32. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising a step of obtaining, by a communication device, the length of information bits to be encoded; and a step of determining, by the communication device, the length of a low-density parity-check LDPC codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits comprising wherein the length of the information bits to be encoded and the length of the LDPC codeword satisfy one or more of the following conditions, namely when the length of the information bits to be encoded is greater than 0 and 40 bytes or less, the length of the LDPC codeword is 648 bits when the length of the information bits to be encoded is greater than 40 bytes and 81 bytes or less, the length of the LDPC codeword is 1296 bits, or when the length of the information bits to be encoded is greater than 81 bytes and 121 bytes or less, the length of the LDPC codeword is 648 bits A method

33. The length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following condition, that is, when the length of the information bits to be encoded is greater than 121 bytes, the length of the LDPC codeword is 1296 bits. The method according to claim 32. **Claim 34** The length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions, that is, when the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits, when the length of the information bits to be encoded is greater than 162 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits, or when the length of the information bits to be encoded is greater than 202 bytes, the length of the LDPC codeword is 1296 bits and further satisfy one or more of the above. The method according to claim 32. **Claim 35** A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; and determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The method includes: when the length of the information bits to be encoded is greater than 121 bytes, the length of the LDPC codeword is 1296 bits. **Claim 36** A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, comprising: obtaining, by a communication device, the length of information bits to be encoded; and determining, by the communication device, the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. The method includes: the length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions, that is, When the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits, When the length of the information bits to be encoded is greater than 162 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits, or When the length of the information bits to be encoded is greater than 202 bytes, the length of the LDPC codeword is 1296 bits A method that satisfies one or more of the above.

37. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, The step of obtaining the length of the information bits to be encoded by a communication device, and The step of determining the length of a low-density parity-check LDPC codeword by the communication device based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. Including, The length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions, that is, When the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, and the data rate is less than or equal to a pre-set threshold, the length of the LDPC codeword is 1296 bits, or When the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, and the data rate is greater than the pre-set threshold, the length of the LDPC codeword is 1944 bits A method that satisfies the above.

38. The length of the information bits to be encoded and the length of the LDPC codeword further satisfy the following condition, that is, when the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits. The method according to claim 37.

39. The pre-set threshold is 1.95 Mbps or 7.8 Mbps, The method according to claim 37 or 38.

40. The length of the information bits to be encoded and the length of the LDPC codeword satisfy the following conditions, that is, When the length of the information bits to be encoded is greater than 0 and less than or equal to 21 bytes, the length of the LDPC codeword is 648 bits, When the length of the information bits to be encoded is greater than 21 bytes and less than or equal to 44 bytes, the length of the LDPC codeword is 1296 bits, or When the length of the information bits to be encoded is greater than 44 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 1944 bits further satisfies one or more of the above, The method according to claim 37 or 38.

41. A communication device comprising a configured unit or module that executes the method according to any one of claims 17 to 40.

42. A communication device, an acquisition unit configured to acquire the length of information bits to be encoded, and a determination unit configured to determine the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, wherein the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits comprising, when the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits, when the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits, when the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 1944 bits, or when the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the length of the LDPC codeword is 1296 bits, A communication device.

43. When the length of the information bits to be encoded is greater than 1296 bits, the length of the LDPC codeword is 1944 bits, The device according to claim 42.

44. When the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, the length of the LDPC codeword is 648 bits, When the length of the information bits to be encoded is greater than 1620 bits and less than or equal to 1944 bits, the length of the LDPC codeword is 1944 bits. When the length of the information bits to be encoded is greater than 1944 bits and less than or equal to 2592 bits, the length of the LDPC codeword is 1296 bits, or When the length of the information bits to be encoded is greater than 2592 bits, the length of the LDPC codeword is 1944 bits. The apparatus according to claim 42.

45. The apparatus further comprises a transmission unit configured to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the parity bits. The apparatus according to any one of claims 42 to 44.

46. A communication apparatus, comprising: An acquisition unit configured to acquire the length of information bits to be encoded; and A determination unit configured to determine the length of a low-density parity-check (LDPC) codeword based on the length of the information bits to be encoded, where the parity-check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate parity bits. When the length of the information bits to be encoded is greater than 0 and less than or equal to 324 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 324 bits and less than or equal to 648 bits, the length of the LDPC codeword is 1296 bits, or When the length of the information bits to be encoded is greater than 648 bits and less than or equal to 972 bits, the length of the LDPC codeword is 648 bits. When the length of the information bits to be encoded is greater than 972 bits, the length of the LDPC codeword is 1296 bits. A communication apparatus.

47. When the length of the information bits to be encoded is greater than 972 bits, the length of the LDPC codeword is 1296 bits. The apparatus according to claim 46.

48. When the length of the information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, the length of the LDPC codeword is 1296 bits. When the length of the information bits to be encoded is greater than 1296 bits and less than or equal to 1620 bits, the length of the LDPC codeword is 648 bits, or when the length of the information bits to be encoded is greater than 1620 bits, the length of the LDPC codeword is 1296 bits. The apparatus according to claim 46.

49. The apparatus further comprises a transmission unit configured to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the parity bits. The apparatus according to any one of claims 46 to 48.

50. A communication apparatus comprising a processor and a memory, wherein the memory is configured to store instructions, and the processor is configured to execute the instructions to enable execution of the method according to any one of claims 1 to 40.

51. A communication apparatus comprising a logic circuit and an interface, where the logic circuit is coupled to the interface, the interface is configured to input and / or output code instructions, and the logic circuit is configured to execute the code instructions to enable execution of the method according to any one of claims 1 to 40.

52. A computer-readable storage medium configured to store a computer program, where when the computer program is executed, the method according to any one of claims 1 to 40 is executed.

Citation Information

Patent Citations

  • LDPC (Low Density Parity Check Code) coding method and coding device and communication device

    CN107733439A

  • Code block segmentation depending on LDPC base matrix selection

    CN110249537A