Length determination method of LDPC code word in UWB system and related device

By determining the length of the LDPC codeword in the UWB system based on the length of the information bits to be encoded, the problem of how to determine the length of the LDPC codeword is solved, and better error control performance and the effect of reducing the bit rate loss is achieved.

CN119906525APending Publication Date: 2025-04-29HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411990128.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-10-20
Filing Date
2023-03-20
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In UWB systems, how the length of the LDPC codeword is determined to improve error control performance and reduce bit rate loss, especially under limited frequency and power resources.

Method used

By obtaining the length of the bits of information to be encoded, the length of the LDPC codeword is determined. The specific method includes: if the length of the information bit to be encoded is within certain ranges, it is determined that the length of the LDPC codeword is 648 bits, 1296 bits, 1944 bits, etc. The check matrix of the LDPC codeword is used to encode the bits to be encoded to generate the check bits.

Benefits of technology

It realizes better error control performance gain, while reducing bit rate loss, and is suitable for LDPC codeword length determination in UWB systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906525A_ABST
    Figure CN119906525A_ABST
Patent Text Reader

Abstract

The invention relates to a method for determining the length of an LDPC code word in a UWB system and a related device. The method comprises the steps that a communication device determines the LDPC code length according to the bit length of information to be coded; when the information bit length is 0 to 324, selecting an LDPC code with 648 bits; when the length of the information bit is 325 to 648 and the length of the information bit is 973 to 1296, selecting the LDPC code with 1296 bits; and when the information bit length is 649-972, the LDPC code of 1944 bits is selected. By adopting the embodiment of the invention, better performance gain can be obtained. The application is applied to a UWB-based wireless personal local area network system, a sensing system and the like, and comprises 802.15 series protocols, such as an 802.15. 4 ab protocol or a next generation UWB protocol and the like; and the method can also be applied to wireless local area network systems of 802.11 series protocols, such as 802.11 be or the next generation thereof, Wi-Fi 8 and the like.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202310305051.4, and the original application date is March 20, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a method for determining the length of a low-density parity-check (LDPC) codeword in an ultra-wideband (UWB) system and a related device. Background Art

[0003] The Institute of Electrical and Electronics Engineers (IEEE) 802.11n / ac / ax / be and other wireless local area network (WLAN) standards mainly focus on improving user experience in 60GHz large bandwidth scenarios, including improving average user throughput and energy efficiency of battery-powered devices. This requires high-speed and reliable transmission of data, video and other services on limited frequency and power resources, and therefore requires highly reliable and efficient channel coding solutions.

[0004] So far, in the field of channel coding, Turbo code and LDPC code are the two most commonly used channel codes. They both have performance close to the Shannon limit and have been widely used in the communication field. Compared with Turbo code, LDPC code has obvious advantages, such as: no need for deep interleaving to obtain good bit error performance, better frame error rate performance, greatly reduced error floor, support for parallel decoding, small decoding delay, etc. Therefore, LDPC code has become the standard channel coding scheme for low-frequency short-range WLAN communication systems such as 802.11n / ac / ax.

[0005] In order to improve the transmission reliability of wireless transmission systems, LDPC codes have been widely used in WLAN standards. The next generation of UWB standards, such as the IEEE802.15ab standard, considers introducing the LDPC codes used in WLAN to improve the data transmission reliability of the system. However, the length of the LDPC codeword will affect the error control performance, so how to determine the length of the LDPC codeword in the UWB system needs to be explored. Summary of the invention

[0006] The embodiments of the present application provide a method for determining the length of an LDPC codeword in a UWB system and a related device, which can not only obtain a better error control performance gain, but also reduce code rate loss.

[0007] The present application is introduced below from different aspects. It should be understood that the implementation methods and beneficial effects of the following different aspects can be referenced to each other.

[0008] In a first aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including one or more of the following: if 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; if 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; if 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; if 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] The beneficial effects of the present application are specifically analyzed in the description of the method embodiment below, which will not be described in detail here. The present application can obtain better error control performance gain and reduce bit rate loss.

[0010] In the present application, the information bits to be encoded refer to the information bits before channel coding, or the information bits input at the input end of the channel coding module. Exemplarily, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded include data bits to be encoded and CRC bits, which are not limited in the embodiments of the present application.

[0011] In combination with the first aspect, in a possible implementation, the communication device determines the length of the LDPC codeword based on the length of the information bits to be encoded, and also includes: if the length of the above-mentioned 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 combination with the first aspect, in a possible implementation method, the communication device determines the length of the LDPC codeword based on the length of the information bits to be encoded, and also includes one or more of the following: if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned 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 combination with the first aspect, in a possible implementation, the method further includes: the communication device transmits the LDPC codeword, the LDPC codeword includes the information bits to be encoded and the check bits. Exemplarily, the communication device generates the LDPC codeword based on the determined LDPC codeword length, the information bits to be encoded, the reference code rate of the LDPC codeword, and transmits the LDPC codeword.

[0014] In combination with the first aspect, in a possible implementation manner, the reference code rate of the LDPC codeword is 1 / 2.

[0015] In combination with the first aspect, in a possible implementation, the number of shortened 0 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 a reference code rate.

[0016] Exemplarily, the number of shortened 0 bits in the LDPC codeword is:

[0017] Padding_Num=mod(K-mod(Inf_Num,K),K);

[0018] Wherein, Padding_Num represents the number of shortened 0 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, and mod represents the modulo operation. K = N × R; N represents the length of the LDPC codeword, and R represents the reference code rate of the LDPC codeword.

[0019] In a second aspect, the present application provides a communication device, including an acquisition unit and a determination unit. The acquisition unit is used to acquire the length of the information bits to be encoded; the determination unit is used to determine the length of the low-density parity check LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; wherein the determination unit is specifically used 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, the length of the LDPC codeword is determined to be 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 determined to be 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 determined to be 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 determined to be 1296 bits.

[0020] In the present application, the information bits to be encoded refer to the information bits before channel coding, or the information bits input at the input end of the channel coding module. Exemplarily, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded include data bits to be encoded and CRC bits, which are not limited in the embodiments of the present application.

[0021] In combination with the second aspect, in a possible implementation, the above-mentioned determination unit is also used to: when the length of the information bits to be encoded is greater than 1296 bits, determine that the length of the LDPC codeword is 1944 bits.

[0022] In combination with the second aspect, in a possible implementation, the above-mentioned determination unit is also used to perform one or more of the following operations: 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; 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.

[0023] In combination with the second aspect, in a possible implementation, the communication device further includes a transmission unit, configured to transmit the LDPC codeword, wherein the LDPC codeword includes the information bits to be encoded and the check bits.

[0024] In combination with the second aspect, in a possible implementation manner, the reference code rate of the LDPC codeword is 1 / 2.

[0025] In conjunction with the second aspect, in a possible implementation, the number of shortened 0 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 a reference code rate.

[0026] Exemplarily, the number of shortened 0 bits in the LDPC codeword is:

[0027] Padding_Num=mod(K-mod(Inf_Num,K),K);

[0028] Wherein, Padding_Num represents the number of shortened 0 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, and mod represents the modulo operation. K = N × R; N represents the length of the LDPC codeword, and R represents the reference code rate of the LDPC codeword.

[0029] In a third aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including: if the length of the above-mentioned information bits to be encoded is greater than 1296 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0030] In a fourth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including one or more of the following: if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned information bits to be encoded is greater than 2592 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0031] In a fifth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including: if 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.

[0032] In a sixth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including one or more of the following: if 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; if 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; if 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.

[0033] The present application can not only obtain better error control performance gain and reduce code rate loss, but also reduce the power consumption of the UWB system by using only LDPC codes with medium and short code lengths in WLAN (ie, LDPC codes with code lengths of 648 bits and 1296 bits).

[0034] In the present application, the information bits to be encoded refer to the information bits before channel coding, or the information bits input at the input end of the channel coding module. Exemplarily, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded include data bits to be encoded and CRC bits, which are not limited in the embodiments of the present application.

[0035] In combination with the sixth aspect, in a possible implementation method, the communication device determines the length of the LDPC codeword based on the length of the information bits to be encoded, and also includes: if the length of the above-mentioned information bits to be encoded is greater than 972 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0036] In combination with the sixth aspect, in a possible implementation method, the communication device determines the length of the LDPC codeword based on the length of the information bits to be encoded, and also includes one or more of the following: if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned information bits to be encoded is greater than 1620 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0037] In conjunction with the sixth aspect, in a possible implementation, the method further includes: the communication device transmits the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the check bits. Exemplarily, the communication device generates the LDPC codeword based on the determined LDPC codeword length, the information bits to be encoded, the reference code rate of the LDPC codeword, and transmits the LDPC codeword.

[0038] In combination with the sixth aspect, in a possible implementation, the reference code rate of the above LDPC codeword is 1 / 2.

[0039] In conjunction with the sixth aspect, in a possible implementation, the number of shortened 0 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 a reference code rate.

[0040] Exemplarily, the number of shortened 0 bits in the LDPC codeword is:

[0041] Padding_Num=mod(K-mod(Inf_Num,K),K);

[0042] Wherein, Padding_Num represents the number of shortened 0 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, and mod represents the modulo operation. K = N × R; N represents the length of the LDPC codeword, and R represents the reference code rate of the LDPC codeword.

[0043] In a seventh aspect, the present application provides a communication device, comprising an acquisition unit and a determination unit. The acquisition unit is used to acquire the length of the information bits to be encoded; the determination unit is used to determine the length of the low-density parity check LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the determination unit is specifically used 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, the length of the LDPC codeword is determined to be 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 determined to be 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 determined to be 648 bits.

[0044] In the present application, the information bits to be encoded refer to the information bits before channel coding, or the information bits input at the input end of the channel coding module. Exemplarily, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded include data bits to be encoded and CRC bits, which are not limited in the embodiments of the present application.

[0045] In combination with the seventh aspect, in a possible implementation, the above-mentioned determination unit is also used to: when the length of the above-mentioned information bits to be encoded is greater than 972 bits, determine that the length of the LDPC codeword is 1296 bits.

[0046] In combination with the seventh aspect, in a possible implementation method, the above-mentioned determination unit is also used to perform one or more of the following operations: when the length of the above-mentioned information bits to be encoded is greater than 972 bits and less than or equal to 1296 bits, determine that the length of the LDPC codeword is 1296 bits; when the length of the above-mentioned 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 above-mentioned information bits to be encoded is greater than 1620 bits, determine that the length of the LDPC codeword is 1296 bits.

[0047] In combination with the seventh aspect, in a possible implementation, the communication device also includes a transmission unit, which is used to transmit the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the check bits.

[0048] In combination with the seventh aspect, in a possible implementation, the reference code rate of the LDPC codeword is 1 / 2.

[0049] In conjunction with the seventh aspect, in a possible implementation, the number of shortened 0 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 a reference code rate.

[0050] Exemplarily, the number of shortened 0 bits in the LDPC codeword is:

[0051] Padding_Num=mod(K-mod(Inf_Num,K),K);

[0052] Wherein, Padding_Num represents the number of shortened 0 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, and mod represents the modulo operation. K = N × R; N represents the length of the LDPC codeword, and R represents the reference code rate of the LDPC codeword.

[0053] In an eighth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including: if the length of the above-mentioned information bits to be encoded is greater than 972 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0054] In a ninth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including one or more of the following: if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned information bits to be encoded is greater than 1620 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0055] In a tenth aspect, the present application provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including one or more of the following: if 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.

[0056] In the eleventh aspect, the present application also provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including: if the length of the information bits to be encoded is greater than or equal to 122 bytes and less than or equal to 162 bytes, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0057] In a twelfth aspect, the present application also provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including: if the length of the information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0058] In the thirteenth aspect, the present application also provides a method for determining the length of an LDPC codeword in a UWB system, the method comprising: a communication device obtains the length of information bits to be encoded, and determines the length of the LDPC codeword according to the length of the information bits to be encoded. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded and generate check bits. Wherein, 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 a preset 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, if the data rate is greater than the preset threshold, the length of the LDPC codeword is 1944 bits.

[0059] In combination with the thirteenth aspect, in a possible implementation, the length of the information bits to be encoded and the length of the LDPC codeword also satisfy: if the length of the information bits to be encoded is greater than 162 bytes, then the length of the LDPC codeword is 1944 bits.

[0060] In combination with the thirteenth aspect, in a possible implementation, the preset threshold is 1.95 Mbps or 7.8 Mbps.

[0061] In combination with the thirteenth aspect, in a possible implementation method, the length of the above-mentioned information bits to be encoded and the length of the LDPC codeword also satisfy one or more of the following conditions: if 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; if 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; if 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.

[0062] In a fourteenth aspect, the present application provides a communication device, comprising a processor for executing the method shown in any possible implementation of the first aspect, the third aspect to the fifth aspect, or any aspect thereof. Alternatively, the processor is used to execute a program stored in a memory, and when the program is executed, the method shown in any possible implementation of the sixth aspect, the eighth aspect to the tenth aspect, or any aspect thereof is executed. Alternatively, the processor is used to execute a program stored in a memory, and when the program is executed, the method shown in any possible implementation of the eleventh aspect, the twelfth aspect, the thirteenth aspect, or any aspect thereof is executed.

[0063] In combination with the fourteenth aspect, in a possible implementation, the memory is located outside the above-mentioned communication device.

[0064] In combination with the fourteenth aspect, in a possible implementation, the memory is located within the above-mentioned communication device.

[0065] In the embodiment of the present application, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.

[0066] In combination with the fourteenth aspect, in a possible implementation, the communication device also includes a transceiver, and the transceiver is used to receive a signal or send a signal.

[0067] In a fifteenth aspect, the present application provides a communication device, the communication device comprising a logic circuit and an interface, the logic circuit and the interface are coupled. The logic circuit and the interface can be used to execute the method shown in any possible implementation of the first aspect, the third aspect to the fifth aspect, the sixth aspect, the eighth aspect to the thirteenth aspect, or any possible implementation of any one of them.

[0068] In one design, a logic circuit is used to obtain the length of information bits to be encoded, and according to the length of the information bits to be encoded, determine the length of a low-density parity check LDPC codeword, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; an interface is used to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the check bits. Wherein, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if 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; if 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; if 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.

[0069] In another design, a logic circuit is used to obtain the length of the information bits to be encoded, and according to the length of the information bits to be encoded, determine the length of the low-density parity check LDPC codeword, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; an interface is used to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the check bits. Wherein, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if 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; if 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.

[0070] In the sixteenth aspect, the present application provides a computer-readable storage medium for storing a computer program, which, when executed on a computer, enables the method shown in the first aspect, the third aspect to the fifth aspect, the sixth aspect, the eighth aspect to the thirteenth aspect, or any possible implementation of any one of them to be executed.

[0071] In the seventeenth aspect, the present application provides a computer program product, which includes a computer program or a computer code, which, when executed on a computer, enables the method shown in the first aspect, the third aspect to the fifth aspect, the sixth aspect, the eighth aspect to the thirteenth aspect, or any possible implementation of any one of them to be executed.

[0072] In an eighteenth aspect, the present application provides a computer program. When the computer program is run on a computer, the method shown in the first aspect, the third aspect to the fifth aspect, the sixth aspect, the eighth aspect to the thirteenth aspect, or any possible implementation of any one of them is executed.

[0073] By implementing the embodiments of the present application, on the one hand, a better error control performance gain can be obtained, and on the other hand, the bit rate loss can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for describing the embodiments are briefly introduced below.

[0075] Figure 1 is a structural diagram of a wireless communication system provided in an embodiment of the present application;

[0076] Figure 2 is another structural diagram of a wireless communication system provided in an embodiment of the present application;

[0077] Figure 3a Schematic diagram of the LDPC code check matrix provided in the embodiment of the present application;

[0078] Figure 3b is the Tanner graph of the LDPC code provided in the embodiment of the present application;

[0079] Figure 4a It is a schematic diagram of an LDPC code check matrix with a code rate of 1 / 2 and a code length of 648 provided in an embodiment of the present application;

[0080] Figure 4b is the cyclic shift matrix P provided in the embodiment of the present application 1 Schematic diagram of

[0081] Figure 5 It is a schematic diagram of the LDPC encoding process in WLAN provided by an embodiment of the present application;

[0082] Figure 6a It is a schematic diagram of an LDPC code check matrix with a code rate of 1 / 2 and a code length of 1296 provided in an embodiment of the present application;

[0083] Figure 6bIt is a schematic diagram of an LDPC code check matrix with a code rate of 1 / 2 and a code length of 1944 provided in an embodiment of the present application;

[0084] Figure 7 It is a flow chart of a method for determining the length of an LDPC codeword in a UWB system provided by an embodiment of the present application;

[0085] Figure 8 It is a schematic diagram of the LDPC encoding process in the UWB system provided in an embodiment of the present application;

[0086] Fig. 9 This is a schematic diagram showing how the number of shortened 0 bits required for LDPC codes with different code lengths provided in an embodiment of the present application varies with the length of the information bits to be encoded;

[0087] Fig.10 Schematic diagram showing how the effective code rate of LDPC codes with different code lengths provided in an embodiment of the present application varies with the length of information bits to be encoded;

[0088] Fig.11a It is a schematic diagram of the length selection of the LDPC codeword provided in an embodiment of the present application;

[0089] Fig.11b It is another schematic diagram of selecting the length of LDPC codeword provided in an embodiment of the present application;

[0090] Fig.12 It is another flowchart of the method for determining the length of an LDPC codeword in a UWB system provided by an embodiment of the present application;

[0091] Fig.13a This is another schematic diagram of selecting the length of an LDPC codeword provided in an embodiment of the present application;

[0092] Fig.13b This is a schematic diagram of selecting the length of yet another LDPC codeword provided in an embodiment of the present application;

[0093] Fig.14 It is another flow chart of a method for determining the length of an LDPC codeword in a UWB system provided in an embodiment of the present application;

[0094] Fig.15 is a schematic diagram of a structure of a communication device provided in an embodiment of the present application;

[0095] Fig.16 is a schematic diagram of the structure of a communication device 1000 provided in an embodiment of the present application;

[0096] Fig.17 It is another structural schematic diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0097] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0098] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c; a and b; a and c; b and c; or a, b, and c. Among them, a, b, and c can be single or multiple.

[0099] The terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0100] In this application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described in this application as "exemplary", "for example" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the words "exemplary", "for example" or "for example" is intended to present the related concepts in a concrete way.

[0101] It should be understood that in the present application, "when", "if" and "if" all mean that the device will take corresponding actions under certain objective circumstances, and do not limit the time, nor do they require that the device must have a judgment action when it is implemented, nor do they mean that there are other limitations.

[0102] Elements used in the singular herein are intended to mean "one or more" rather than "one and only one" unless specifically stated otherwise.

[0103] It should be understood that in each embodiment of the present application, determining B based on A does not mean determining B only based on A, but B can also be determined based on A and / or other information.

[0104] The technical solution provided in this application can be applied to wireless personal area networks (WPAN) based on UWB technology. For example, the method provided in this application can be applied to IEEE 802.15 series protocols, such as 802.15.4ab protocol, or a future generation of UWB WPAN standards, which are not listed here one by one. The method provided in this application can also be applied to various communication systems, for example, it can be an Internet of Things (IoT) system, a vehicle to X (V2X), a narrow band internet of things (NB-IoT) system, devices in the vehicle network, IoT nodes, sensors, etc. in the Internet of Things (IoT), smart cameras in smart homes, smart remote controls, smart water meters and electricity meters, and sensors in smart cities, etc. The method provided in the present application can also be applied to LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, long term evolution (LTE) system, and can also be a fifth-generation (5G) communication system, a sixth-generation (6G) communication system, etc.

[0105] UWB technology is a new type of wireless communication technology. It uses nanosecond non-sinusoidal narrow pulses to transmit data, and modulates impulse pulses with very steep rise and fall times, so the spectrum range it occupies is very wide, so that the signal has a bandwidth of the order of GHz. The bandwidth used by UWB is usually above 1GHz. Because the UWB system does not need to generate a sinusoidal carrier signal and can directly transmit an impulse sequence, the UWB system has a very wide spectrum and a very low average power. The UWB wireless communication system has the advantages of strong multipath resolution, low power consumption, and strong confidentiality, which is conducive to coexistence with other systems, thereby improving spectrum utilization and system capacity. In addition, in short-distance communication applications, the transmission power of the UWB transmitter can usually be less than 1mW (milliwatt). Theoretically, the interference generated by the UWB signal is only equivalent to white noise. This helps to achieve good coexistence between ultra-wideband and existing narrowband communications. Therefore, the UWB system can work simultaneously with a narrowband (narrowband, NB) communication system without interfering with each other. The method provided in the present application can be implemented by a communication device in a wireless communication system. In a communication device, a device or chip that implements the UWB system function can be called a UWB module, and a device or chip that implements the narrowband communication system function can be called a narrowband communication module. The UWB module and the narrowband communication module can be different devices or chips. Of course, the UWB module and the narrowband communication module can also be integrated in one device or chip. The embodiments of the present application do not limit the implementation of the UWB module and the narrowband communication module in the communication device. The communication device in the present application includes a UWB module and optionally also includes a narrowband communication module.

[0106] The method provided in the present application can be implemented by a communication device in a wireless communication system. The communication device can be a device involved in a UWB system. For example, the communication device may include, but is not limited to, a communication server, a router, a switch, a bridge, a computer, a mobile phone, etc. that supports UWB technology. For another example, the communication device may include a user equipment (UE), which may include various handheld devices, vehicle-mounted devices (such as cars or components installed on cars, etc.), wearable devices, Internet of Things (IoT) devices, computing devices, or other processing devices connected to a wireless modem that support UWB technology, which are not listed here one by one. For another example, the communication device may include a central control point, such as a personal area network (PAN) or a PAN coordinator, etc. The PAN coordinator or PAN may be a mobile phone, a vehicle-mounted device, an anchor, a tag, or a smart home, etc. For another example, the communication device may include a chip, which may be set in a communication server, a router, a switch, or a terminal device, etc., which are not listed here one by one. It can be understood that the above description of the communication device is applicable to the communication device in the present application.

[0107] Optionally, the communication device in the embodiment of the present application may be a device that supports multiple WPAN standards such as IEEE802.15.4ab or subsequent versions currently under discussion.

[0108] In an embodiment of the present application, the above-mentioned communication device may include a hardware layer, an operating system layer running on the hardware layer, and an application layer running on 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 called main memory). The operating system may be any one or more computer operating systems that implement business processing through a process, such as a Linux 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, a word processing software, and an instant messaging software. In addition, the embodiment of the present application does not specifically limit the specific structure of the execution subject of the method provided in the embodiment of the present application, as long as it can communicate according to the method provided in the embodiment of the present application by running a program that records the code of the method provided in the embodiment of the present application.

[0109] For example, see Figure 1 , Figure 1 Schematic diagram of a wireless communication system provided by an embodiment of the present application. Figure 1 As shown, the wireless communication system is a star topology structure, in which a central control node (such as Figure 1 A PAN coordinator in a PAN can communicate data with one or more other devices. Figure 2 , Figure 2 is another structural diagram of the wireless communication system provided in the embodiment of the present application. Figure 2 As shown, the wireless communication system is a point-to-point topology structure, in which a central control node (such as Figure 2 The PAN coordinator in the PAN can communicate data with one or more other devices, and other different devices can also communicate data with each other. Figure 1 and Figure 2 In the present application, both the full-function device and the reduced-function device can be understood as the communication device shown in the present application. The full-function device and the reduced-function device are relative, such as a reduced-function device cannot be a PAN coordinator. Another example is that compared with a full-function device, the reduced-function device may not have coordination capabilities or the communication rate may be lower than that of a full-function device. It can be understood that Figure 2 The PAN coordinator shown is an example only. Figure 2 The other three full-function devices shown can also serve as PAN coordinators, and are not shown one by one here. It can also be understood that the full-function device and low-function device shown in this application are only examples of communication devices, and any device that can implement the method for determining the length of LDPC codewords in the UWB system provided by this application belongs to the protection scope of this application.

[0110] The following is a brief introduction to some relevant contents, terms or nouns involved in this application.

[0111] 1. LDPC Code

[0112] The check matrix of the LDPC code is a sparse matrix, that is, the number of non-zero elements in the matrix is ​​much smaller than the number of zero elements, or the ratio of the row weight to the code length and the ratio of the column weight to the code length are both very small values. LDPC codes can be represented by a graph, which is called a Tanner graph. The Tanner graph corresponds to the check matrix one-to-one and consists of two types of nodes: the first type of node represents the codeword symbol, called a variable node; the second type of node represents the check constraint relationship, called a check node, and each check node represents a check constraint relationship. For example, Figure 3a and Figure 3b As shown, Figure 3a is a schematic diagram of an LDPC code check matrix provided in an embodiment of the present application, Figure 3bIt is the Tanner graph of the LDPC code provided in the embodiment of the present application. Figure 3a and Figure 3b {V i} represents a variable node set, {C i} represents the check node set.

[0113] The LDPC code used in the 802.11ac / ax standard is a quasi cyclic LDPC (QC-LDPC) code. QC-LDPC code is a widely used structured LDPC code. Due to the unique structure of its check matrix, it can be encoded using a simple feedback shift register, so it can better solve the coding complexity problem of LDPC codes. Figure 4a , Figure 4a Schematic diagram of the LDPC code check matrix with a code rate of 1 / 2 and a code length of 648 provided in the embodiment of the present application. Figure 4a As shown, each element in the LDPC code check matrix with code length N=648 and code rate R=1 / 2 represents a square matrix of order Z=N / 24, where "0" represents a Z×Z unit matrix and "-" represents a Z×Z all-zero matrix. For example, Figure 4a The element "22" in the middle represents the Z×Z unit matrix P which is cyclically shifted 22 places to the right to obtain the cyclic shift matrix P 22 , Figure 4a The other non-zero elements in are similar to element "22" and will not be described in detail. i represents the cyclic shift matrix, i (0≤i≤Z-1) represents the cyclic shift value. Figure 4b , Figure 4b is the cyclic shift matrix P provided in the embodiment of the present application 1 Schematic diagram of Figure 4b As shown, the cyclic shift matrix P 1 Represents the Z×Z unit matrix P circularly shifted right by 1 bit.

[0114] Existing WLAN standards (such as 802.11n / ac, etc.) use orthogonal frequency division multiplexing (OFDM) technology. The LDPC encoding module needs to encode the data bits (also known as payload bits) and put them into an integer number of OFDM symbols, and these encoded bits must also fit into an integer number of LDPC code words. Therefore, before transmission, it is necessary to calculate the minimum number of OFDM symbols N required for this transmission. SYM , and then according to N SYM Calculate the total number of coded bits N that can be stored in all OFDM symbols using the current coding and modulation scheme TCB =N CBPS×N SYM , where N CBPS Indicates the number of coded bits that can be stored in each OFDM symbol. Then, according to the total number of coded bits N TCB Determine the LDPC code length L used in the current transmission LDPC and the number of codewords N required CW . However, for most of the lengths of the data bits to be encoded and the coding modulation schemes, there are not enough data bits to fill the information bit positions in the LDPC codeword, so a shortening operation is required before generating the parity bits. The shortening operation refers to filling a certain number of zeros in the information bit positions of the LDPC codeword before the LDPC encoding generates the parity bits, and then deleting these zeros after the LDPC encoding generates the parity bits. See Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the LDPC encoding process in a WLAN provided in an embodiment of the present application. Figure 5 As shown, the LDPC encoding process in WLAN includes at least step 1 to step 6. Specifically, step 1 is to encode data bits, such as payload bits. Step 2 determines the length L of the LDPC codeword. LDPC and the number of codewords N CW , please refer to the description below for the specific determination method. Step 3 shortens the data bits to be encoded, that is, fills in shortened zero bits after the data bits to be encoded. Step 4 uses the LDPC code check matrix to encode the data bits to be encoded and the shortened zero bits in each LDPC codeword to generate check bits, and then deletes these shortened zero bits. Step 5 repeats (repeat) part of the data bits to be encoded in the LDPC codeword or punctures (puncture) the check bits in the LDPC codeword so that the codeword bits after processing (puncturing or repetition) just fill the OFDM symbols to be transmitted, that is, the number of codeword bits after processing (puncturing or repetition) is equal to the number of bits that the OFDM symbol can carry. Step 6 concatenates multiple codewords and performs stream parsing (stream parsing).

[0115] In this application, "LDPC code length" refers to the length of an LDPC codeword (LDPC code word length), and "LDPC code length", "LDPC code word length", and "LDPC code word length" can be used interchangeably.

[0116] 2. Method for determining the length of LDPC codewords in 802.11ac / ax standards

[0117] The 802.11ac / ax standard adopts 12 LDPC code check matrices, with three code lengths: 648 bits, 1296 bits, and 1944 bits. Each code length supports four different bit rates (the bit rate here refers to the reference bit rate): 1 / 2, 2 / 3, 3 / 4, and 5 / 6. Figure 6a and Figure 6b As shown, the LDPC code check matrix with a code rate of 1 / 2 (ie, R = 1 / 2) and a code length of 1296 bits and 1944 bits respectively is shown; the LDPC code check matrix with a code rate of 1 / 2 and a code length of 648 bits is shown above Figure 4a It should be understood that Figure 6a and Figure 6b The meaning of each element in the Figure 4a The meaning of each element is not elaborated here.

[0118] Optionally, the code rate selection in the 802.11ac / ax standard is determined by the modulation and coding scheme (MCS) selected by the link adaptive selection. In WLAN, the LDPC code is selected from 12 check matrices based on the code length and code rate, and the check matrix is ​​different for each code length and code rate. For a given code rate, the existing WLAN standard jointly calculates the LDPC code length required for this data transmission based on the current data packet length and the number of OFDM symbols.

[0119] Specifically, the calculation method of the LDPC codeword length in the existing WLAN standard is as follows:

[0120] 1. Calculate the number of OFDMs required for this data transmission:

[0121]

[0122] Among them, N SYM Indicates the number of OFDM symbols required for this data transmission, length indicates the length of the data packet (in bytes), m STBC Indicates the space-time coding mode of the data packet (the value is 1 when space-time coding is not used), N DBPS Indicates the number of data bits carried by each OFDM symbol. Indicates rounding up, which will not be described in detail below.

[0123] 2. Calculate the bit length of this data transmission plus the 16-bit cyclic redundancy check (CRC):

[0124] N pld=8·length+16............(1-2)

[0125] 3. Calculate the number of codeword bits for this data transmission:

[0126] N TCB =N CBPS ×N SYM ........................(1-3)

[0127] Among them, N TCB Indicates the number of codeword bits for this data transmission, N CBPS Indicates the number of codeword bits carried by each OFDM symbol.

[0128] 4. According to the above parameters (N TCB 、N pld etc.) and the following Table 1 determine the LDPC codeword length for this data transmission.

[0129] Table 1

[0130]

[0131] It should be understood that R in Table 1 represents a code rate.

[0132] In addition to considering the above parameters (N TCB , N pld In addition to the long code performance and the number of punctured bits, it is also necessary to comprehensively consider the long code performance and the number of punctured bits. Figure 5 As shown in step 5, puncturing may be required after LDPC encoding in WLAN, that is, several check bits at the end are not transmitted. Puncturing will lead to an increase in the actual code rate (that is, the actual code rate is greater than the reference code rate), resulting in a certain performance loss. Although the longer the LDPC code length, the better the error control performance, so the long code should be selected as much as possible in the selection of code length. However, in practice, the code length selection of WLAN's LDPC code needs to balance the long code and the number of punctured bits. As shown in Table 1 above, the code length selection of WLAN's LDPC code does not increase monotonically with the increase of data packet length, but may continue to regress to a shorter code length with the increase of data packet length. In addition, because the encoded bits must at least fill a single OFDM symbol, under the shortest packet length (that is, N TCB ≤648), the LDPC code of WLAN selects the intermediate code length (1296 bits) instead of the shortest code length (648 bits).

[0133] As can be seen from the above content, in order to improve the transmission reliability of wireless transmission systems, LDPC codes have been widely used in WLAN standards. The next generation of UWB standards, such as the IEEE802.15ab standard, considers introducing LDPC codes with a code rate of 1 / 2 in WLAN to improve the transmission reliability of the system. One of the important candidate solutions is to reuse LDPC codes with a code rate of 1 / 2 and code lengths of 648 bits, 1296 bits, and 1944 bits in WLAN. However, if the LDPC codes with a code rate of 1 / 2 and code lengths of 648 bits, 1296 bits, and 1944 bits in WLAN are reused, how to determine the length of the LDPC codeword in the UWB system needs to be explored.

[0134] The present application provides a method for determining the length of an LDPC codeword in a UWB system and a related device, which can ensure that long codes are used as much as possible during UWB transmission to obtain better error control performance gain, and can reduce the code rate loss caused by excessive shortening of 0 bits.

[0135] The technical solution provided by this application will be described in detail below with reference to more drawings.

[0136] In order to facilitate the clear description of the technical solution of the present application, the present application is described through multiple embodiments, see below for details. In the present application, unless otherwise specified, the same or similar parts between the various embodiments or implementations can refer to each other. In the various embodiments in the present application, and the various implementation methods / implementation methods / implementation methods in the various embodiments, if there is no special description and logical conflict, the terms and / or descriptions between the different embodiments and the various implementation methods / implementation methods / implementation methods in the various embodiments are consistent and can be referenced to each other, and the technical features in the different embodiments and the various implementation methods / implementation methods / implementation methods in the various embodiments can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The implementation methods of the present application described below do not constitute a limitation on the scope of protection of the present application. It should be understood that the order of the following embodiments does not represent the degree of importance.

[0137] Embodiment 1

[0138] Embodiment 1 of the present application mainly introduces a method for determining the length of an LDPC codeword when reusing LDPC codes of three code lengths (i.e., 648 bits, 1296 bits, and 1944 bits) in a WLAN in a UWB system.

[0139] See also Figure 7 , Figure 7 1 is a flow chart of a method for determining the length of an LDPC codeword in a UWB system provided by an embodiment of the present application. The communication device in the method may be the aforementioned Figure 1 or Figure 2Any device in Figure 7 As shown, the method for determining the length of the LDPC codeword in the UWB system includes but is not limited to the following steps:

[0140] S101, the communication device obtains the length of information bits to be encoded.

[0141] The information bits to be encoded in the embodiment of the present application may refer to information bits before channel coding, or information bits input at the input end of the channel coding module. Exemplarily, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded include data bits to be encoded and CRC bits, which are not limited in the embodiment of the present application.

[0142] S102, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits, wherein if 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; if 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; if 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; if 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.

[0143] The reference code rate R of the LDPC codeword is 1 / 2.

[0144] Optionally, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including: if 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 the length of the LDPC codeword to be 648 bits; if 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 the length of the LDPC codeword to be 1296 bits; if 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 the length of the LDPC codeword to be 1944 bits; if 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 the length of the LDPC codeword to be 1296 bits. In a possible implementation, if the length of the information bits to be encoded is greater than 1296 bits, the communication device determines the length of the LDPC codeword to be 1944 bits. In another possible implementation, if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned information bits to be encoded is greater than 2592 bits, the communication device determines that the length of the LDPC codeword is 1944 bits.

[0145] In other words, the communication device can determine the length of the LDPC codeword based on the length of the above-mentioned information bits to be encoded and at least one row in the following Table 2 or the following Table 3. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, Tables 2 and 3 can be defined by the standard, or can be preset, or can be determined by negotiation between the communicating parties, etc. It can be understood that Tables 2 and 3 are only examples. In actual applications, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword can be a subset of Table 2 or Table 3. In other words, the rows shown in Table 2 can be decoupled, and some or all of the rows shown in Table 2 can exist in actual applications. Similarly, the rows shown in Table 3 can be decoupled, and some or all of the rows shown in Table 3 can exist in actual applications.

[0146] Table 2

[0147]

[0148]

[0149] Table 3

[0150]

[0151] In the above Table 2 and Table 3, "Inf_Num" represents the length of the information bits to be encoded. The same characters below represent the same meaning and will not be repeated.

[0152] Optionally, after step S102, the communication device may generate the LDPC codeword based on the determined length of the LDPC codeword, the above-mentioned information bits to be encoded, the reference code rate (1 / 2) of the LDPC codeword, and transmit the LDPC codeword. The LDPC codeword includes the information bits to be encoded and the check bits generated by encoding the information bits to be encoded (or the information bits to be encoded and shortened 0 bits) using the check matrix corresponding to the LDPC codeword. For example, the way in which the communication device generates the LDPC codeword can refer to the aforementioned Figure 5 Steps 1 to 4 of the present invention. Exemplarily, the communication device may transmit the LDPC codeword to other communication devices, or to the next module of the channel coding module for processing. For example, the communication device may transmit the LDPC codeword in a manner as described above. Figure 5 In other words, since there are no OFDM symbols in the UWB system, the LDPC coding process in the UWB system does not exist in the above step. Figure 5 Follow step 5 in the

[0153] Among them, the number of shortened 0 bits in the LDPC codeword of the embodiment of the present application can be 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 code rate. Specifically, the number of shortened 0 bits is:

[0154] Padding_Num=mod(K-mod(Inf_Num,K),K)........................(2-1)

[0155] Padding_Num represents the number of shortened 0 bits in the LDPC codeword, K represents the number of information bits in the LDPC codeword, and Inf_Num represents the length of the information bits to be encoded. mod represents the modulo operation, and the same expressions below represent the same meanings, which will not be repeated here. K = N × R, N represents the length of the LDPC codeword, and R represents the reference code rate of the LDPC codeword.

[0156] The beneficial effects of the embodiments of the present application are described in detail below in combination with the design concepts of the above Table 2 and the above Table 3.

[0157] It can be understood that the LDPC encoding process in the WLAN system is as described above. Figure 5As shown, all the encoded codeword bits need to be placed in the OFDM symbol to be transmitted; if the number of all the encoded codeword bits exceeds the number of bits that the OFDM symbol can carry, it is necessary to perform a puncturing operation on the codeword, so that all the encoded codeword bits are punctured to just fit into the OFDM symbol to be transmitted; if the number of all the encoded codeword bits is less than the number of bits that the OFDM symbol can carry, it is necessary to repeat the operation on some information bits in the codeword to fill the OFDM symbol.

[0158] Unlike WLAN systems, UWB systems do not have OFDM symbols, which means that UWB transmission does not need to load the encoded codeword bits into OFDM symbols, and does not need to puncture some check bits that may exceed the maximum number that OFDM symbols can load. Therefore, the selection of LDPC codeword length in UWB systems needs to consider performance and code rate waste (that is, too much shortening of 0 bits), without considering the repeated bits (repeat bits) and punctured bits caused by OFDM symbols. In other words, there is no need to consider the aforementioned Figure 5 The impact of step 5 on the selection of LDPC codeword length in the above figure. In other words, the selection (or determination) method of the LDPC codeword length in the UWB system is different from the selection (or determination) method of the LDPC codeword length in the WLAN system. However, the selection (or determination) of the LDPC codeword length in the UWB system also requires a trade-off between long codes and short codes. This is because: always using long codes (such as LDPC codes with a length of 1944 bits) will achieve better error control performance, but for shorter information bits to be encoded, a large number of shortening zero bits are required, resulting in a waste of code rate; while always using short codes (such as LDPC codes with a length of 648 bits), for long data packets, the performance of long data packets will be reduced when using short codes compared to using long codes, that is, always using short codes will result in performance loss of long data packets.

[0159] See also Figure 8 , Figure 8 Schematic diagram of LDPC coding process in UWB system provided by the embodiment of the present application. Figure 8 As shown, taking the information bits to be encoded as payload bits as an example, it should be understood that Figure 8The information bits to be encoded are not limited to payload bits, but can also 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 of the LDPC codeword, it is necessary to add zeros after the information bits to fill the information bit positions of the LDPC codeword; then use the check matrix corresponding to the LDPC codeword to encode the information bits to be encoded and shorten the zero bits to generate the check bits. After the complete LDPC codeword is encoded, the shortened zero bits added in step 3 are deleted as shown in step 4 to obtain the final transmitted codeword sequence.

[0160] like Figure 8 As shown, the shortening operation in step 3 will cause the actual code rate of the codeword sequence finally transmitted to be lower than the reference code rate of the LDPC codeword. For example, for an LDPC code with a reference code rate of 1 / 2 (i.e., R=1 / 2) and a code length of 1944 bits (i.e., N=1944), the number of information bits K=N×R=1944×(1 / 2)=972 bits, and the number of check bits M=N×(1-R)=1944×(1 / 2)=972 bits; if the 0 bit is shortened to 486 bits, the actual code rate R′=(972-486) / (972-486+972)=486 / 1458=1 / 3. However, the code rate required for system transmission is 1 / 2 at this time, but the actual code rate of the LDPC code with a length of 1944 bits is R′=1 / 3, resulting in a waste of code rate and increasing the transmission overhead of the system.

[0161] According to the calculation method of the shortened 0 bits number in the above formula (2-1), when the reference code rate is fixed at 1 / 2, the shortened 0 bits number required for the three code lengths (i.e., 648 bits, 1296 bits, and 1944 bits) of the LDPC code varies with the length of the information bits to be encoded as follows: Fig. 9 shown. Fig. 9 The horizontal axis represents the length of the information bits to be encoded, and the vertical axis represents the number of shortened 0 bits. Fig. 9 The “①” in the figure represents the curve of the number of shortened 0 bits required for an LDPC code with a reference code rate of 1 / 2 and a code length of 648 bits changing with the length of the information bits to be encoded. Fig. 9 The “②” in the figure indicates the curve of the number of shortened 0 bits required for an LDPC code with a reference code rate of 1 / 2 and a code length of 1296 bits changing with the length of the information bits to be encoded. Fig. 9"③" in the figure indicates the curve of the number of shortened 0 bits required for an LDPC code with a reference code rate of 1 / 2 and a code length of 1944 bits as a function of the length of the information bits to be encoded. In order to reduce code rate waste (or transmission overhead), it is possible to consider selecting the code length with the least shortened 0 bits given the length of the information bits to be encoded; if the number of shortened 0 bits required for LDPC codes of multiple code lengths is the same, then the LDPC code with the longest code length is selected, because the long code has better error control performance. For example, when the length of the information bits to be encoded is 0 to 324 bits, a 648-bit LDPC code is selected; when the length of the information bits to be encoded is 325 to 648 bits, a 1296-bit LDPC code is selected; when the length of the information bits to be encoded is 649 to 972 bits, a 1944-bit LDPC code is selected; when the length of the information bits to be encoded is 973 to 1296 bits, a 1296-bit LDPC code is selected; when the length of the information bits to be encoded is 1297 to 1620 bits, a 648-bit LDPC code is selected; when the length of the information bits to be encoded is 1621 to 1944 bits, a 1944-bit LDPC code is selected; and so on.

[0162] However, minimizing the number of shortened 0 bits will result in switching back and forth between the three code lengths as the length of the information bits to be encoded increases, which will result in the selection of a short code for long data packets (such as when the length of the information bits to be encoded is 1297 to 1620 bits, a 648-bit LDPC code will be selected), resulting in performance loss. In order to reduce the performance loss of long data packets, an embodiment of the present application considers assisting the selection of code length by an effective code rate. Among them, the effective code rate (Rate_E) can be determined based on the length of the information bits to be encoded (Inf_Num), the number of information bits in the LDPC codeword (K), and the number of check bits in the LDPC codeword (M). Specifically, the effective code rate (Rate_E) can be expressed as:

[0163] Rate_E=Inf_Num / Trans_Bits............(2-2)

[0164] Trans_Bits=Inf_Num+(floor((Inf_Num-1) / K)+1)*M....(2-3)

[0165] Among them, floor means rounding down.

[0166] According to the calculation method of the effective code rate (Rate_E) in formula (2-2), when the reference code rate is fixed at 1 / 2, the effective code rates of the LDPC codes of three code lengths (i.e., 648 bits, 1296 bits, and 1944 bits) vary with the length of the information bits to be encoded as follows: Fig.10 shown. Fig.10 The horizontal axis represents the length of the information bits to be encoded, and the vertical axis represents the effective code rate. Fig.10 “①” in the figure indicates the curve of the effective code rate of the LDPC code with a reference code rate of 1 / 2 and a code length of 648 bits varying with the length of the information bits to be encoded. Fig.10 The “②” in the figure indicates the curve of the effective code rate of the LDPC code with a reference code rate of 1 / 2 and a code length of 1296 bits varying with the length of the information bits to be encoded. Fig.10 "③" in the figure indicates the curve of the effective code rate of the LDPC code with a reference code rate of 1 / 2 and a code length of 1944 bits changing with the length of the information bits to be encoded. In order to reduce the performance loss of long data packets, it is possible to consider selecting a code length with a higher effective code rate given the length of the information bits to be encoded; if the effective code rates of LDPC codes of multiple code lengths are the same, the LDPC code with the longest code length is selected, because the error control performance of the long code is better. For example, when the length of the information bits to be encoded is 0 to 324 bits, a LDPC code with a length of 648 bits is selected; when the length of the information bits to be encoded is 325 to 648 bits, a LDPC code with a length of 1296 bits is selected; when the length of the information bits to be encoded is 649 to 972 bits, a LDPC code with a length of 1944 bits is selected; when the length of the information bits to be encoded is 973 to 1296 bits, a LDPC code length of 1296 bits is selected; and so on.

[0167] Understandable, such as Fig.10 As shown in the figure, as the length of the information bits to be encoded increases, the effective code rate (Rate_E) is getting closer and closer to the reference code rate 1 / 2. Therefore, when the information bits to be encoded are very long, the code rate loss caused by shortening the 0 bits is very small, that is, when the information bits to be encoded are very long, the LDPC code with the longest code length (i.e., 1944 bits) can be selected, because the error control performance gain of the long code is greater.

[0168] The embodiment of the present application selects the length of the LDPC codeword according to the effective code rate, specifically by setting a threshold value Rth. When the effective code rate is greater than the threshold value Rth, the longest codeword is selected to obtain the optimal coding gain; when the effective code rate is less than or equal to the threshold value Rth, the codeword length with the highest effective code rate is selected. For example, see Fig.11a , Fig.11a Schematic diagram of LDPC codeword length selection provided in the embodiment of the present application. Fig.11aAs shown, assuming that the threshold value Rth is 0.4, according to the above principle, the above Table 2 can be obtained. For another example, see Fig.11b , Fig.11b Schematic diagram of another LDPC codeword length selection provided in an embodiment of the present application. Fig.11b As shown, assuming that the threshold value Rth is 0.42, according to the above principle, the above Table 3 can be obtained. Fig.11a and Fig.11b The horizontal axis represents the length of the information bits to be encoded, and the vertical axis represents the effective code rate. Fig.11a and Fig.11b In the figure, "①" represents the curve of the effective code rate of the LDPC code with a reference code rate of 1 / 2 and a code length of 648 bits varying with the length of the information bits to be encoded; "②" represents the curve of the effective code rate of the LDPC code with a reference code rate of 1 / 2 and a code length of 1296 bits varying with the length of the information bits to be encoded; "③" represents the curve of the effective code rate of the LDPC code with a reference code rate of 1 / 2 and a code length of 1944 bits varying with the length of the information bits to be encoded.

[0169] Therefore, the method for determining the length of the LDPC codeword in the embodiment of the present application can ensure that long codes are used as much as possible in UWB transmission to obtain better error control performance gain through a trade-off between the effective code rate and the long code performance, and can also avoid the code rate loss caused by excessive shortening of 0 bits when the length of the information bits to be encoded is short.

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

[0171] Embodiment 2

[0172] Embodiment 2 of the present application mainly introduces a method for determining the LDPC codeword length in a UWB system when reusing LDPC codes with medium and short code lengths (i.e., 648 and 1296 bits) in a WLAN.

[0173] See also Fig.12 , Fig.12 is another flow chart of the method for determining the length of an LDPC codeword in a UWB system provided by an embodiment of the present application. The communication device in the method may be the aforementioned Figure 1 or Figure 2 Any device in Fig.12 As shown, the method for determining the length of the LDPC codeword in the UWB system includes but is not limited to the following steps:

[0174] S201, the communication device obtains the length of information bits to be encoded.

[0175] The information bits to be encoded in the embodiment of the present application may refer to information bits before channel coding, or information bits input at the input end of the channel coding module. Exemplarily, 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 also include data bits to be encoded and CRC bits, which are not limited in the embodiment of the present application.

[0176] S202, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits, wherein if 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; if 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; if 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.

[0177] The reference code rate R of the LDPC codeword is 1 / 2.

[0178] Optionally, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, including: if 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 the length of the LDPC codeword to be 648 bits; if 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 the length of the LDPC codeword to be 1296 bits; if 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 the length of the LDPC codeword to be 648 bits. In a possible implementation, if the length of the information bits to be encoded is greater than 972 bits, the communication device determines the length of the LDPC codeword to be 1296 bits. In another possible implementation, if the length of the above-mentioned 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; if the length of the above-mentioned 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; if the length of the above-mentioned information bits to be encoded is greater than 1620 bits, the communication device determines that the length of the LDPC codeword is 1296 bits.

[0179] In other words, the communication device can determine the length of the LDPC codeword based on the length of the above-mentioned information bits to be encoded and at least one row in the following Table 4 or the following Table 5. The check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Among them, Tables 4 and 5 can be defined by the standard, can be preset, or can be determined by negotiation between the communicating parties. It can be understood that Tables 4 and 5 are only examples. In actual applications, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword can be a subset of Table 4 or Table 5. In other words, the rows shown in Table 4 can be decoupled, and some or all of the rows shown in Table 4 can exist in actual applications. Similarly, the rows shown in Table 5 can be decoupled, and some or all of the rows shown in Table 5 can exist in actual applications.

[0180] Table 4

[0181]

[0182] Table 5

[0183]

[0184] In the above Tables 4 and 5, "Inf_Num" represents the length of the information bits to be encoded.

[0185] Optionally, after step S202, the communication device may generate the LDPC codeword based on the determined length of the LDPC codeword, the above-mentioned information bits to be encoded, the reference code 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 check bits generated by encoding the information bits to be encoded (or the information bits to be encoded and shortened 0 bits) using the check matrix corresponding to the LDPC codeword. For example, the way in which the communication device generates the LDPC codeword can refer to the aforementioned Figure 5 Steps 1 to 4 of the present invention. Exemplarily, the communication device may transmit the LDPC codeword to other communication devices, or to the next module of the channel coding module for processing. For example, the communication device may transmit the LDPC codeword in a manner as described above. Figure 5 In other words, since there are no OFDM symbols in the UWB system, the LDPC coding process in the UWB system does not exist in the above step. Figure 5 Follow step 5 in the

[0186] Among them, the number of shortened 0 bits in the LDPC codeword of the embodiment of the present application can be 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 code rate. Specifically, the number of shortened 0 bits is determined according to the above formula (2-1).

[0187] It can be understood that the design concepts of Table 4 and Table 5 of the embodiments of the present application are similar to the design concepts of Table 2 and Table 3 in the aforementioned embodiment 1. Specifically, in order to reduce the power consumption in the UWB system, the embodiments of the present application only reuse the LDPC codes with medium and short code lengths in the WLAN, that is, the LDPC codes with code lengths of 648 bits and 1296 bits; and select the length of the LDPC codeword according to the effective code rate, specifically by setting a threshold value Rth. When the effective code rate is greater than the threshold value Rth, the longest codeword between 648 bits and 1296 bits is selected to obtain the optimal coding gain; when the effective code rate is less than or equal to the threshold value Rth, the codeword length with the highest effective code rate is selected. For example, see Fig.13a , Fig.13a This is another schematic diagram of selecting the length of an LDPC codeword provided in an embodiment of the present application. Fig.13a As shown, assuming that the threshold value Rth is 0.4, according to the above principle, the above Table 4 can be obtained. For another example, see Fig.13b , Fig.13b Schematic diagram of another LDPC codeword length selection provided in the embodiment of the present application. Fig.13b As shown, assuming that the threshold value Rth is 0.42, according to the above principle, the above Table 5 can be obtained. Fig.13a and Fig.13b The horizontal axis represents the length of the information bits to be encoded, and the vertical axis represents the effective code rate. Fig.13a and Fig.13b In the figure, “①” indicates the curve of effective code rate of LDPC code with reference code rate of 1 / 2 and code length of 648 bits varying with the length of information bits to be encoded; “②” indicates the curve of effective code rate of LDPC code with reference code rate of 1 / 2 and code length of 1296 bits varying with the length of information bits to be encoded.

[0188] The beneficial effects of the embodiments of the present application and the beneficial effects of the aforementioned embodiment 1 can be referred to each other. Specifically, the embodiments of the present application still use a trade-off between the effective code rate and the long code performance to ensure that the long code is used as much as possible in UWB transmission to obtain a better error control performance gain, and can avoid the code rate loss caused by too much shortening of 0 bits when the length of the information bits to be encoded is short. In addition, the embodiments of the present application only use LDPC codes with medium and short code lengths in WLAN (i.e., LDPC codes with code lengths of 648 bits and 1296 bits), which can reduce the power consumption of the UWB system.

[0189] It can be understood that the length of the information bits to be encoded in the above-mentioned embodiments 1 and 2 is designed and introduced in bits. In some scenarios, the length of the information bits to be encoded can also be expressed in bytes. Then, the method for determining the length of the LDPC codeword in the UWB system can be as described in the following embodiment 3. It can also be understood that the design concept of the following embodiment 3 is similar to the design concept of the above-mentioned embodiments 1 and 2, and their beneficial effects can also be referenced to each other.

[0190] Embodiment 3

[0191] See also Fig.14 , Fig.14 is another flow chart of a method for determining the length of an LDPC codeword in a UWB system provided in an embodiment of the present application. The communication device in the method may be the aforementioned Figure 1 or Figure 2 Any device in Fig.14 As shown, the method for determining the length of the LDPC codeword in the UWB system includes but is not limited to the following steps:

[0192] S301, the communication device obtains the length of information bits to be encoded.

[0193] The information bits to be encoded in the embodiment of the present application may refer to information bits before channel coding, or information bits input at the input end of the channel coding module. Exemplarily, the information bits to be encoded may be data bits to be encoded (i.e., payload bits), or the information bits to be encoded include data bits to be encoded and CRC bits, which are not limited in the embodiment of the present application.

[0194] S302, the communication device determines the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits.

[0195] Optionally, the communication device may determine the length of the LDPC codeword according to the length of the information bits to be encoded and any one of the following implementations 1 to 4.

[0196] Implementation 1:

[0197] Among them, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if 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; if the length of the information bits to be encoded is greater than or equal to 82 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 1944 bits; if the length of the information bits to be encoded is greater than or equal to 122 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits. In a possible implementation, if the length of the information bits to be encoded is greater than or equal to 163 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: if the length of the information bits to be encoded is greater than or equal to 163 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits; if the length of the information bits to be encoded is greater than or equal to 203 bytes and less than or equal to 243 bytes, the length of the LDPC codeword is 1944 bits; if the length of the information bits to be encoded is greater than or equal to 244 bytes and less than or equal to 324 bytes, the length of the LDPC codeword is 1296 bits; if the length of the information bits to be encoded is greater than or equal to 325 bytes, the length of the LDPC codeword is 1944 bits.

[0198] Exemplarily, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in implementation mode 1 can be shown as at least one row in Table 6 or Table 7 below. For example, 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. For another example, 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. For another example, when the length of the information bits to be encoded is greater than or equal to 82 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 1944 bits. For another example, when the length of the information bits to be encoded is greater than or equal to 122 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits. For another example, when the length of the information bits to be encoded is greater than or equal to 163 bytes, the length of the LDPC codeword is 1944 bits. It can be understood that the same or similar descriptions below represent the same or similar meanings and are not listed one by one.

[0199] Among them, Table 6 and Table 7 may be defined by the standard, may be preset, or may be determined by negotiation between the two communicating parties. It is understandable that Table 6 and Table 7 are only examples. In practical applications, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword may be a subset of Table 6 or Table 7. That is, Table 6 shows that the rows can be decoupled, and some or all of the rows shown in Table 6 may exist in practical applications. Similarly, Table 7 shows that the rows can be decoupled, and some or all of the rows shown in Table 7 may exist in practical applications.

[0200] Table 6

[0201]

[0202] Table 7

[0203]

[0204]

[0205] Implementation 2:

[0206] Among them, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if the length of the information bits to be encoded is greater than 40 bytes and less than or equal to 81 bytes, the length of the LDPC codeword is 1296 bits; if 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; if 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. In a possible implementation, if 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: if 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; if 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; if 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; if the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits.

[0207] Exemplarily, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in implementation method 2 may be as shown in at least one row of Table 8 or Table 9 below. Among them, Table 8 and Table 9 may be defined by the standard, may be preset, may be determined by negotiation between the communicating parties, etc. It can be understood that Table 8 and Table 9 are only examples. In actual applications, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword may be a subset of Table 8 or Table 9. In other words, the rows shown in Table 8 may be decoupled, and some or all of the rows shown in Table 8 may exist in actual applications. Similarly, the rows shown in Table 9 may be decoupled, and some or all of the rows shown in Table 9 may exist in actual applications.

[0208] Table 8

[0209]

[0210] Table 9

[0211]

[0212] Implementation 3:

[0213] Among them, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if 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; if the length of the information bits to be encoded is greater than or equal to 82 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 648 bits. In a possible implementation, if the length of the information bits to be encoded is greater than or equal to 122 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: if the length of the information bits to be encoded is greater than or equal to 122 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits; if the length of the information bits to be encoded is greater than or equal to 163 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits; if the length of the information bits to be encoded is greater than or equal to 203 bytes, the length of the LDPC codeword is 1296 bits.

[0214] Exemplarily, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in implementation method 3 may be as shown in at least one row of Table 10 or Table 11 (except the first row) below. Among them, Tables 10 and 11 may be defined by the standard, may be preset, or may be determined by negotiation between the communicating parties, etc. It can be understood that Tables 10 and 11 are only examples. In actual applications, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword may be a subset of Table 10 or Table 11. In other words, the rows shown in Table 10 may be decoupled, and some or all of the rows shown in Table 10 may exist in actual applications. Similarly, the rows shown in Table 11 may be decoupled, and some or all of the rows shown in Table 11 may exist in actual applications.

[0215] Table 10

[0216]

[0217] Table 11

[0218]

[0219] Implementation 4:

[0220] Among them, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if the length of the information bits to be encoded is greater than 40 bytes and less than or equal to 81 bytes, the length of the LDPC codeword is 1296 bits; if 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 648 bits. In a possible implementation, if 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: if 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; if 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; if the length of the information bits to be encoded is greater than 202 bytes, the length of the LDPC codeword is 1296 bits.

[0221] Exemplarily, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in implementation method 4 may be as shown in at least one row of Table 12 or Table 13 (except the first row) below. Among them, Table 12 and Table 13 may be defined by the standard, may be preset, or may be determined by negotiation between the communicating parties, etc. It can be understood that Table 12 and Table 13 are only examples. In actual applications, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword may be a subset of Table 12 or Table 13. In other words, the rows shown in Table 12 may be decoupled, and some or all of the rows shown in Table 12 may exist in actual applications. Similarly, the rows shown in Table 13 may be decoupled, and some or all of the rows shown in Table 13 may exist in actual applications.

[0222] Table 12

[0223]

[0224]

[0225] Table 13

[0226]

[0227] Implementation 5:

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

[0229] Among them, the length of the information bits to be encoded and the length of the LDPC codeword meet the conditions: when the length of the above-mentioned 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 the preset threshold, the length of the above-mentioned LDPC codeword is 1296 bits; when the length of the above-mentioned information bits to be encoded is greater than 121 bytes and less than or equal to 162 bytes, if the data rate is greater than the preset threshold, the length of the above-mentioned LDPC codeword is 1944 bits. It can be understood that when the data rate is equal to the preset threshold, the length of the above-mentioned LDPC codeword can be either 1296 bits or 1944 bits. In other words, when the data rate is equal to the preset threshold, the length of the LDPC codeword can be selected as 1296 bits or 1944 bits according to the actual situation, and the embodiments of the present application are not limited.

[0230] It is understood that the data rate can also be understood as a data symbol rate or a nominal bit rate, which is not limited in the embodiments of the present application. The data rate may include 1.95 Mbps, 7.8 Mbps, 31.2 Mbps, and 62.4 Mbps, and optionally also includes 124.8 Mbps. Of course, as the standard evolves, the data rate may also include other values, which are not listed here one by one.

[0231] Exemplarily, the preset threshold may be 1.95 Mbps, or 7.8 Mbps, or 31.2 Mbps, or 62.4 Mbps. Alternatively, the preset threshold may be a value rounded off (rounded up or rounded down) for 1.95 Mbps, or a value rounded off (rounded up or rounded down) for 7.8 Mbps, or a value rounded off (rounded up or rounded down) for 31.2 Mbps, or a value rounded off (rounded up or rounded down) for 62.4 Mbps. Alternatively, the preset threshold may be a value near 1.95Mbps, such as 1.94Mbps or 1.96Mbps, etc.; or a value near 7.8Mbps, such as 7.7Mbps, 7.6Mbps, 7.9Mbps, 8.0Mbps, etc.; or a value near 31.2Mbps, such as 31.1Mbps, 31.15Mbps, 31.3Mbps, etc.; or a value near 62.4Mbps, such as 62.5Mbps, 62.35Mbps, 62.34Mbps, 62.5Mbps, etc. Of course, the preset threshold may also be a range, such as 1.90Mbps to 2.0Mbps, or 7.5Mbps to 8.0Mbps, or 31.0Mbps to 32.0Mbps, or 62.3Mbps to 62.5Mbps. The preset threshold may be set according to actual conditions, and the embodiments of the present application do not limit the specific value of the preset threshold.

[0232] It can be understood that implementation method 5 can effectively improve transmission performance and reduce latency by determining the length of the LDPC codeword in combination with the data rate. For example, as shown in Table 14 below, Table 14 shows the time difference in air transmission of an LDPC codeword with a length of 1944 bits compared to an LDPC codeword with a length of 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, using the same data rate. As shown in Table 14 below, when the length of the above-mentioned 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.95Mbps or the data rate is less than 7.8Mbps, using an LDPC codeword with a length of 1944 bits can save about 166us (microseconds) compared to using an LDPC codeword with a length of 1296 bits.

[0233] Table 14

[0234]

[0235]

[0236] Optionally, the length of the information bits to be encoded and the length of the LDPC codeword may also satisfy one or more of the following conditions: if 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; if 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; if 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.

[0237] In one possible implementation, if 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 meet one or more of the following conditions: if 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; if 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; if 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; if the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits.

[0238] Exemplarily, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword in implementation method 5 may be as shown in at least one row of Table 15 or Table 16 below. In Tables 15 and 16 below, R represents the data rate, and Rth represents the preset threshold. Tables 15 and 16 may be defined by the standard, preset, or determined by negotiation between the communicating parties. It is understandable that Tables 15 and 16 are only examples. In actual applications, the relationship between the length range of the information bits to be encoded and the length of the LDPC codeword may be a subset of Table 15 or Table 16. In other words, the rows shown in Table 15 may be decoupled, and some or all of the rows shown in Table 15 may exist in actual applications. Similarly, the rows shown in Table 16 may be decoupled, and some or all of the rows shown in Table 16 may exist in actual applications.

[0239] Table 15

[0240]

[0241] Table 16

[0242]

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

[0244] Optionally, after step S302, the communication device may generate the LDPC codeword based on the determined LDPC codeword length, the above-mentioned information bits to be encoded, the reference code rate (1 / 2) of the LDPC codeword, and transmit the LDPC codeword. The LDPC codeword includes the information bits to be encoded and the check bits generated by encoding the information bits to be encoded (or the information bits to be encoded and shortened 0 bits) using the check matrix corresponding to the LDPC codeword. For example, the way in which the communication device generates the LDPC codeword can refer to the aforementioned Figure 5 Steps 1 to 4 of the present invention. Exemplarily, the communication device may transmit the LDPC codeword to other communication devices, or to the next module of the channel coding module for processing. For example, the communication device may transmit the LDPC codeword in a manner as described above. Figure 5 In other words, since there are no OFDM symbols in the UWB system, the LDPC coding process in the UWB system does not exist in the above step. Figure 5 Follow step 5 in the

[0245] Among them, the number of shortened 0 bits in the LDPC codeword of the embodiment of the present application can be 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 code rate. Specifically, the number of shortened 0 bits is determined according to the above formula (2-1).

[0246] The beneficial effects of the embodiments of the present application can refer to the beneficial effects of the aforementioned embodiment 1 or the aforementioned embodiment 2, which will not be repeated here.

[0247] The above content elaborates on the method provided by the present application. In order to facilitate the implementation of the above scheme of the embodiment of the present application, the embodiment of the present application also provides corresponding devices or equipment.

[0248] The present application divides the functional modules of the communication device according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. Figures 15 to 17 The communication device according to the embodiment of the present application is described in detail.

[0249] See also Fig.15 , Fig.15 is a schematic diagram of a structure of a communication device provided in an embodiment of the present application. Fig.15 As shown, the communication device includes an acquisition unit 10 and a determination unit 20. Optionally, the communication device also includes a transmission unit 30.

[0250] In one design, the acquisition unit 10 is used to acquire the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Wherein, if 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; if 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; if 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; if 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.

[0251] In a possible implementation, the transmission unit 30 is used to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the check bits.

[0252] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. If 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; if 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; if 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.

[0253] In a possible implementation, the transmission unit 30 is used to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the check bits.

[0254] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Wherein, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if 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; if the length of the information bits to be encoded is greater than or equal to 82 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 1944 bits; if the length of the information bits to be encoded is greater than or equal to 122 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits.

[0255] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. If the length of the information bits to be encoded is greater than or equal to 163 bytes, the length of the LDPC codeword is 1944 bits.

[0256] In another design, the acquisition unit 10 is used to acquire the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. The length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions:

[0257] If the length of the information bits to be encoded is greater than or equal to 163 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits; if the length of the information bits to be encoded is greater than or equal to 203 bytes and less than or equal to 243 bytes, the length of the LDPC codeword is 1944 bits; if the length of the information bits to be encoded is greater than or equal to 244 bytes and less than or equal to 324 bytes, the length of the LDPC codeword is 1296 bits; if the length of the information bits to be encoded is greater than or equal to 325 bytes, the length of the LDPC codeword is 1944 bits.

[0258] In a possible implementation manner of any of the above designs, the transmission unit 30 is used to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the check bits.

[0259] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Wherein, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if the length of the information bits to be encoded is greater than 40 bytes and less than or equal to 81 bytes, the length of the LDPC codeword is 1296 bits; if 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; if 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.

[0260] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. If the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits.

[0261] In another design, the acquisition unit 10 is used to acquire the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. The length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions:

[0262] If 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; if 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; if 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; if the length of the information bits to be encoded is greater than 324 bytes, the length of the LDPC codeword is 1944 bits.

[0263] In a possible implementation manner of any of the above designs, the transmission unit 30 is used to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the check bits.

[0264] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Wherein, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if 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; if the length of the information bits to be encoded is greater than or equal to 82 bytes and less than or equal to 121 bytes, the length of the LDPC codeword is 648 bits.

[0265] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. If the length of the information bits to be encoded is greater than or equal to 122 bytes, the length of the LDPC codeword is 1296 bits.

[0266] In another design, the acquisition unit 10 is used to acquire the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. The length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions:

[0267] If the length of the information bits to be encoded is greater than or equal to 122 bytes and less than or equal to 162 bytes, the length of the LDPC codeword is 1296 bits; if the length of the information bits to be encoded is greater than or equal to 163 bytes and less than or equal to 202 bytes, the length of the LDPC codeword is 648 bits; if the length of the information bits to be encoded is greater than or equal to 203 bytes, the length of the LDPC codeword is 1296 bits.

[0268] In a possible implementation manner of any of the above designs, the transmission unit 30 is used to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the check bits.

[0269] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. Wherein, the length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions: if 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; if the length of the information bits to be encoded is greater than 40 bytes and less than or equal to 81 bytes, the length of the LDPC codeword is 1296 bits; if 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 648 bits.

[0270] In another design, the acquisition unit 10 is used to obtain the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. If the length of the information bits to be encoded is greater than 121 bytes, the length of the LDPC codeword is 1296 bits.

[0271] In another design, the acquisition unit 10 is used to acquire the length of the information bits to be encoded; the determination unit 20 is used to determine the length of the LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits. The length of the information bits to be encoded and the length of the LDPC codeword meet one or more of the following conditions:

[0272] If 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; if 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; if the length of the information bits to be encoded is greater than 202 bytes, the length of the LDPC codeword is 1296 bits.

[0273] In a possible implementation manner of any of the above designs, the transmission unit 30 is used to transmit the LDPC codeword, where the LDPC codeword includes the information bits to be encoded and the check bits.

[0274] The acquisition unit 10, the determination unit 20 and the transmission unit 30 may be integrated into one unit or module, such as a processing unit. Optionally, the transmission unit 30 may also be a transceiver or a transceiver unit.

[0275] It should be understood that the specific functions or execution steps of each of the above-mentioned units can be referred to the above-mentioned method embodiments and will not be described in detail here.

[0276] The above describes the communication device of the embodiment of the present application, and the following describes possible product forms of the communication device. It should be understood that any device having the above Fig.15 Any form of product with the functions of the communication device described above falls within the protection scope of the embodiments of the present application. It should also be understood that the following description is only an example and does not limit the product form of the communication device of the embodiments of the present application to this.

[0277] Fig.15 In the communication device shown in FIG. 1 , the acquisition unit 10, the determination unit 20 and the transmission unit 30 may be implemented by one or more processors. Fig.16 , Fig.16 It is a schematic diagram of the structure of the communication device 1000 provided in an embodiment of the present application. Fig.16 Only the main components of the communication device 1000 are shown. In addition to the processor 1001, the communication device may further include a transceiver 1002 and a memory 1003, as well as an input and output device (not shown). The processor 1001 and the transceiver 1002 may be coupled, etc. The embodiment of the present application does not limit the connection method between the processor and the transceiver.

[0278] The processor 1001 is mainly used to process the communication protocol and communication data, and to control the entire communication device, execute the software program, and process the data of the software program. The memory 1003 is mainly used to store the software program and data. The transceiver 1002 may include a control circuit and an antenna. The control circuit is mainly used to convert the baseband signal and the radio frequency signal and process the radio frequency signal. The antenna is mainly used to send and receive radio frequency signals in the form of electromagnetic waves. The input and output devices, such as a touch screen, a display screen, a keyboard, etc., are mainly used to receive data input by the user and output data to the user.

[0279] After the communication device is turned 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 sent wirelessly, the processor 1001 performs baseband processing on the data to be sent, and outputs the baseband signal to the radio frequency circuit. The radio frequency circuit performs radio frequency processing on the baseband signal and then sends the radio frequency signal outward in the form of electromagnetic waves through the antenna. When data is sent to the communication device, the radio frequency circuit receives the radio frequency signal through 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.

[0280] In another implementation, the RF circuit and antenna may be arranged independently of the processor performing baseband processing. For example, in a distributed scenario, the RF circuit and antenna may be arranged remotely from the communication device.

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

[0282] In one design, the communication device 1000 may be used to perform the functions of the above-mentioned embodiment 1: the processor 1001 may be used to execute Figure 7 Steps S101 and S102 in the above, and / or other processes for performing the techniques described herein; the transceiver 1002 may be used to transmit and receive Figure 7 information or data required, and / or other processes for the technology described in this article.

[0283] In another design, the communication device 1000 may be used to perform the functions of the second embodiment described above: the processor 1001 may be used to execute Fig.12 Steps S201 and S202 in the above, and / or other processes for performing the technology described herein; the transceiver 1002 may be used to transmit and receive Fig.12 information or data required, and / or other processes for the technology described in this article.

[0284] In another design, the communication device 1000 may be used to perform the functions of the aforementioned third embodiment: the processor 1001 may be used to execute Fig.14 Steps S301 and S302 in the above, and / or other processes for performing the technology described herein; the transceiver 1002 may be used to transmit and receive Fig.14 information or data required, and / or other processes for the technology described in this article.

[0285] In any of the above designs, the processor 1001 may include a transceiver for implementing the receiving and sending functions. For example, the transceiver may be a transceiver circuit, or an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing the receiving and sending functions may be separate or integrated. The above transceiver circuit, interface, or interface circuit may be used for reading and writing code / data, or the above transceiver circuit, interface, or interface circuit may be used for transmitting or delivering signals.

[0286] In any of the above designs, the processor 1001 may store instructions, which may be computer programs. The computer programs run on the processor 1001, and the communication device 1000 may execute the method described in the above method embodiment. The computer program may be fixed in the processor 1001, in which case the processor 1001 may be implemented by hardware.

[0287] In one implementation, the communication device 1000 may include a circuit that can implement the functions of sending or receiving or communicating in the aforementioned method embodiment. The processor and transceiver described in the present application can 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. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal oxide semiconductor (CMOS), N-type metal oxide semiconductor (nMetal-oxide-semiconductor, NMOS), P-type metal oxide semiconductor (positive channel metal oxide semiconductor, PMOS), bipolar junction transistor (bipolar junction transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.

[0288] The scope of the communication device described in this application is not limited thereto, and the structure of the communication device may not be limited thereto. Fig.16 The communication device may be an independent device or may be part of a larger device. For example, the communication device may be:

[0289] (1) Independent integrated circuit IC, or chip, or chip system or subsystem;

[0290] (2) having a set of one or more ICs, and optionally, the IC set may also include a storage component for storing data and computer programs;

[0291] (3) ASIC, such as modem;

[0292] (4) Modules that can be embedded in other devices;

[0293] (5) Receivers, terminals, smart terminals, cellular phones, wireless devices, handheld devices, mobile units, vehicle-mounted devices, network devices, cloud devices, artificial intelligence devices, etc.;

[0294] (6)Others

[0295] In another possible implementation, Fig.15 In the communication device shown, the acquisition unit 10 and the determination unit 20 may be implemented by one or more logic circuits, and the transmission unit 30 may be an input / output interface, or a communication interface, or an interface circuit, or an interface, etc. Alternatively, the transmission unit 30 may be a sending unit and a receiving unit, the sending unit may be an output interface, the receiving unit may be an input interface, and the sending unit and the receiving unit may be integrated into one unit, such as an input / output interface. Fig.17 , Fig.17 is another structural diagram of the communication device provided in the embodiment of the present application. Fig.17 As shown, Fig.17 The communication device shown includes a logic circuit 901 and an interface 902. The logic circuit 901 may be a chip, a processing circuit, an integrated circuit or 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 The above communication device is taken as an example of a chip, and the chip includes a logic circuit 901 and an interface 902 .

[0296] In the embodiment of the present application, the logic circuit and the interface may also be coupled to each other. The embodiment of the present application does not limit the specific connection method between the logic circuit and the interface.

[0297] Exemplarily, when the communication device is used to execute the method, function or step performed by the communication device in the aforementioned embodiment one, the logic circuit 901 is used 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, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; the interface 902 is used to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the check bits. Among them, if 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; if 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; if 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; if 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.

[0298] Exemplarily, when the communication device is used to execute the method, function or step executed by the communication device in the aforementioned embodiment 2, the logic circuit 901 is used to obtain the length of the information bits to be encoded, and determine the length of the low-density parity check LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; the interface 902 is used to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the check bits. Among them, if 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; if 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; if 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.

[0299] Exemplarily, when the communication device is used to execute the method, function or step performed by the communication device in the aforementioned embodiment three, the logic circuit 901 is used 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, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; the interface 902 is used to output the LDPC codeword, and the LDPC codeword includes the information bits to be encoded and the check bits.

[0300] It can be understood that the communication device shown in the embodiment of the present application can implement the method provided in the embodiment of the present application in the form of hardware, or can implement the method provided in the embodiment of the present application in the form of software, etc., and the embodiment of the present application is not limited to this.

[0301] for Fig.17 The specific implementation methods of the various embodiments shown can also refer to the above embodiments, which will not be described in detail here.

[0302] The present application also provides a computer program, which is used to implement the operations and / or processing performed by the communication device in the method provided by the present application.

[0303] The present application also provides a computer-readable storage medium, in which computer codes are stored. When the computer codes are executed on a computer, the computer executes the operations and / or processes performed by the communication device in the method provided by the present application.

[0304] The present application also provides a computer program product, which includes a computer code or a computer program. When the computer code or the computer program runs on a computer, the operations and / or processing performed by the communication device in the method provided by the present application are executed.

[0305] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.

[0306] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the technical effects of the solutions provided in the embodiments of the present application.

[0307] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0308] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or partly contributed to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0309] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for determining the length of a low-density parity check codeword in an ultra-wideband system, characterized in that: include: The communication device obtains the length of the information bits to be encoded; The communication device determines the length of a low-density parity check LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check 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: If 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.

2. The method according to claim 1, characterized in that The length of the information bits to be encoded and the length of the LDPC codeword also satisfy: if the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits.

3. A method for determining the length of a low-density parity-check codeword in an ultra-wideband system, characterized in that: include: The communication device obtains the length of the information bits to be encoded; The communication device determines the length of a low-density parity check LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; If the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits.

4. A method for determining the length of a low-density parity check codeword in an ultra-wideband system, characterized in that: include: The communication device obtains the length of the information bits to be encoded; The communication device determines the length of a low-density parity check LDPC codeword according to the length of the information bits to be encoded, and the check matrix corresponding to the LDPC codeword is used to encode the information bits to be encoded to generate check bits; Among them, 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 121 bytes and less than or equal to 162 bytes, if the data rate is less than or equal to a preset 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, if the data rate is greater than the preset threshold, the length of the LDPC codeword is 1944 bits.

5. The method according to claim 4, characterized in that The length of the information bits to be encoded and the length of the LDPC codeword also satisfy: if the length of the information bits to be encoded is greater than 162 bytes, the length of the LDPC codeword is 1944 bits.

6. The method according to claim 4 or 5, characterized in that: The preset threshold is 1.95 Mbps or 7.8 Mbps.

7. The method according to claim 4 or 5, characterized in that: The length of the information bits to be encoded and the length of the LDPC codeword also satisfy one or more of the following conditions: if 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; if 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; if 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.

8. A communication device, characterized in that: The method comprises a unit or a module for executing the method as claimed in any one of claims 1 to 7.

9. A communication device, characterized in that: including a processor and a memory; The memory is used to store instructions; The processor is configured to execute the instructions so that the method according to any one of claims 1 to 7 is performed.

10. A communication device, characterized in that: comprising a logic circuit and an interface, wherein the logic circuit and the interface are coupled; The interface is used to input and / or output code instructions, and the logic circuit is used to execute the code instructions so that the method according to any one of claims 1 to 7 is executed.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program. When the computer program is executed, the method according to any one of claims 1 to 7 is executed.

12. A computer program product, characterized in that The computer program product comprises a computer program or a computer code, and when the computer program product is run on a computer, the method according to any one of claims 1 to 7 is executed.