Data transmission method and apparatus, device, and nonvolatile readable storage medium

By expanding and eliminating loops on the basis matrix of the low-density parity check code, short loops are eliminated, which solves the problem of high bit error rate in the existing technology and achieves a lower bit error rate and a higher signal-to-noise ratio. .

WO2024212743A1PCT designated stage expired Publication Date: 2024-10-17LANGCHAO ELECTRONIC INFORMATION IND CO LTD

Patent Information

Application Number
PCT/CN2024/080585
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-12
Filing Date
2024-03-07
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Existing low-density parity check codes have high bit error rates in data transmission, mainly due to the existence of short cycles in the Tanner graph, which leads to reduced decoding performance.

Method used

By obtaining a basis matrix with the same non-zero element distribution and expanding it exponentially, the loop elimination points in the matrix are determined and switched to eliminate short loops, thereby constructing a low-density parity check code that does not contain short loops.

Benefits of technology

It reduces the bit error rate during data transmission, improves the signal-to-noise ratio, and improves the reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080585_17102024_PF_FP_ABST
    Figure CN2024080585_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a data transmission method and apparatus, a device, and a nonvolatile readable storage medium. The method comprises: when receiving an encoding instruction, obtaining a basis matrix, wherein the basis matrix has a same nonzero element distribution condition and the size of the basis matrix is reduced according to a positive integer multiple; multiplying the basis matrix to obtain a sub-matrix; determining cycle eliminating points in the sub-matrix according to the size of the basis matrix and a contained short cycle; switching original nonzero elements in the cycle eliminating points into zero elements, and switching original zero elements in the cycle eliminating points into nonzero elements, so as to obtain a matrix subjected to cycle elimination; according to the size of the matrix subjected to cycle elimination and a check matrix size and according to a set mode, expanding the matrix subjected to cycle elimination to obtain a low-density parity check code; and performing an encoding operation on obtained data by using the low-density parity check code, and transmitting the encoded data to a peer device. The low-density parity check code does not contain a short cycle, and is used to perform encoding and decoding operations on data, so that a bit error rate generated in a data transmission process is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method, device, equipment and non-volatile readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 12, 2023, with application number 2023103835149, and application name “A data transmission method, device, equipment and computer-readable storage medium”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to a data transmission method, apparatus, device and non-volatile readable storage medium based on low-density parity-check codes. Background Art

[0004] Low-density parity check (LDPC) codes are linear codes defined using a sparse, non-systematic parity check matrix H. Iterative decoding is used, and the parity check matrix H is represented using a bipartite graph model (Tanner). If the row weights of each row and column weights of the parity check matrix are consistent, the code is a regular LDPC code.

[0005] The core of LDPC coding is designed around the characteristics of the check matrix H. LDPC code decoding involves message passing, bit reversal, and the sum-product algorithm (SP). The presence of short cycles in LDPC codes prevents the decoder from converging quickly. When the Tanner graph corresponding to the LDPC code does not contain short cycles, the sum-product algorithm can achieve optimal decoding. Conversely, if short cycles exist in the Tanner graph, the probability obtained by the sum-product algorithm is not the true a posteriori probability because the independence assumption during the iteration process does not hold. In this case, decoding cannot achieve maximum a posteriori probability decoding symbol by symbol, so the presence of short cycles has a significant impact on the performance of LDPC codes.

[0006] There are two main methods for constructing LDPC check matrices: random generation and structured design. Random generation methods, due to their random nature, result in relatively complex coding. Structured design methods can effectively reduce coding complexity. Previous structured designs have employed the Progressive Edge Growth (PEG) algorithm, a construction method that maximizes the girth. This ensures that each time a new edge is added, the loop of the Tanner graph is as large as possible. However, it does not guarantee that the constructed Tanner graph is optimal. LDPC codes constructed in this way have a higher error floor, resulting in a higher bit error rate when transmitting data based on these LDPC codes.

[0007] It can be seen that how to reduce the bit error rate of data transmission is a problem that needs to be solved by those skilled in the art.

[0008] Summary of the Invention

[0009] The purpose of the embodiments of the present application is to provide a data transmission method, apparatus, device and non-volatile readable storage medium based on low-density parity-check codes, which can reduce the bit error rate of data transmission.

[0010] To solve the above technical problems, an embodiment of the present application provides a data transmission method based on a low-density parity-check code, comprising:

[0011] Upon receiving an encoding instruction carrying a parity check matrix size and a non-zero element distribution, obtaining a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple;

[0012] Expand the base matrix exponentially to obtain a submatrix;

[0013] Determine the ring-cancelling points in the submatrix based on the size of the base matrix and the short rings it contains; a short ring is a rectangle with all four vertices non-zero.

[0014] Switch the original non-zero elements in each ring elimination point to zero elements, and switch the original zero elements in the ring elimination point to non-zero elements to obtain the matrix after ring elimination;

[0015] According to the size of the matrix after the ring elimination and the size of the check matrix, the matrix after the ring elimination is expanded in a set manner to obtain the required low-density parity-check code;

[0016] The acquired data is encoded using a low-density parity-check code and the encoded data is transmitted to the peer device.

[0017] Optionally, when receiving an encoding instruction carrying a parity check matrix size and a non-zero element distribution, obtaining a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple includes:

[0018] According to the size, column weight and code rate of the check matrix, a base matrix with the same column weight and code rate and reduced by a positive integer multiple of the size of the check matrix is ​​constructed.

[0019] Optionally, when receiving an encoding instruction carrying a parity check matrix size and a non-zero element distribution, obtaining a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple includes:

[0020] According to the size, row weight and column weight of the check matrix, a base matrix with the same row weight and column weight and reduced by a positive integer multiple of the size of the check matrix is ​​constructed.

[0021] Optionally, when receiving an encoding instruction carrying a parity check matrix size and a non-zero element distribution, obtaining a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple includes:

[0022] According to the size, row weight and code rate of the check matrix, a base matrix with the same row weight and code rate and reduced by a positive integer multiple of the size of the check matrix is ​​constructed.

[0023] Optionally, when receiving an encoding instruction carrying a parity check matrix size and a non-zero element distribution, obtaining a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple includes:

[0024] Searching a pre-stored matrix library for a first candidate matrix that reduces the size of the check matrix by a positive integer multiple;

[0025] A basis matrix having the same non-zero element distribution as that in the first candidate matrix is ​​selected.

[0026] Optionally, it also includes:

[0027] When a first candidate matrix that reduces the size of the check matrix by a positive integer multiple cannot be found in a pre-stored matrix library or a base matrix with the same non-zero element distribution does not exist in the first candidate matrix, a base matrix with the same non-zero element distribution and a size reduced by a positive integer multiple is constructed according to the size of the check matrix and the non-zero element distribution.

[0028] Optionally, after constructing a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, the method further includes:

[0029] Determine whether the basis matrix contains a short cycle;

[0030] When the basis matrix does not contain a short cycle, the basis matrix is ​​adjusted according to the size of the check matrix and the distribution of non-zero elements to obtain a basis matrix containing a short cycle;

[0031] When the base matrix contains a short ring, the base matrix is ​​expanded exponentially to obtain a submatrix.

[0032] Optionally, after constructing a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, the method further includes:

[0033] The basis matrix containing the short ring and its corresponding non-zero element distribution are stored in the matrix library.

[0034] Optionally, the base matrix is ​​expanded exponentially to obtain submatrices including:

[0035] Expand the base matrix twice to obtain the submatrix.

[0036] Optionally, the base matrix is ​​expanded twice to obtain submatrices including:

[0037] The base matrix is ​​used as the two elements of the first diagonal of the submatrix to be constructed;

[0038] The submatrices to be constructed are filled with all-zero matrices of the same size as the base matrix as elements of the second diagonal to obtain submatrices.

[0039] Optionally, determining the ring elimination points in the submatrix based on the size of the base matrix and the short cycles it contains includes:

[0040] Filter out the short cycles contained in the basis matrix;

[0041] Select a vertex from each short loop as the first loop elimination point;

[0042] According to the size of the base matrix, a second ring elimination point matching the first ring elimination point is selected from the submatrix;

[0043] The first and second ring-eliminating points are used as ring-eliminating points in the submatrix.

[0044] Optionally, the short cycles contained in the basis matrix are screened out including:

[0045] Each non-zero element in the basis matrix is ​​taken as a point to be detected in turn;

[0046] The non-zero elements in the basis matrix that are located in the same row as the target point to be detected are used as the row elements to be detected, and the non-zero elements in the basis matrix that are located in the same column as the target point to be detected are used as the column elements to be detected; wherein the target detection point is any one of the points to be detected;

[0047] Determine whether there is a non-zero element in the basis matrix at the intersection of the row where the row element to be detected is located and the column where the column element to be detected is located;

[0048] When there is a non-zero element in the intersection of the base matrix with the row where the row element to be detected is located and the column where the column element to be detected is located, the matrix formed by the target detection point and the non-zero element is used as the short ring of the base matrix.

[0049] Optionally, it also includes:

[0050] When there is no non-zero element in the intersection of the basis matrix with the row where the row element to be detected is located and the column where the column element to be detected is located, a prompt message indicating that the basis matrix does not meet the expansion requirements is displayed.

[0051] Optionally, based on the size of the base matrix, selecting a second de-looping point that matches the first de-looping point from the sub-matrix includes:

[0052] When the base matrix is ​​expanded twice to obtain a submatrix, the first ring elimination point is moved in the submatrix according to the total number of rows and columns of the base matrix to obtain a second ring elimination point.

[0053] Optionally, moving the first ring elimination point in the submatrix to obtain the second ring elimination point according to the total number of rows and the total number of columns of the base matrix includes:

[0054] The sum of the number of rows of the first de-ringing point and the total number of rows of the basis matrix is ​​taken as the de-ringing row;

[0055] The sum of the number of columns of the first de-ringing point and the total number of columns of the basis matrix is ​​taken as the de-ringing column;

[0056] The intersection of the row and column of the first loop elimination point and the loop elimination row and column is used as the second loop elimination point.

[0057] Optionally, after expanding the matrix after the de-looping according to a set manner based on the size of the matrix after the de-looping and the size of the check matrix to obtain a required low-density parity-check code, the method further includes:

[0058] When the coded data transmitted by the opposite device is received, the coded data is decoded using the low-density parity-check code to obtain valid data.

[0059] Optionally, based on the size of the matrix after the ring elimination and the size of the check matrix, the matrix after the ring elimination is expanded in a set manner to obtain the required low-density parity-check code, including:

[0060] The matrix after ring elimination is used as the matrix to be expanded;

[0061] Replacing non-zero elements in the matrix to be expanded with the matrix after ring elimination, and replacing zero elements in the matrix after ring elimination with an all-zero matrix of the same size as the matrix after ring elimination, to obtain a first expanded matrix;

[0062] The non-zero elements in the first extended matrix are replaced with the matrix after ring elimination, and the zero elements in the matrix after ring elimination are replaced with an all-zero matrix of the same size as the matrix after ring elimination to obtain a second extended matrix. The operation is terminated when the size of the obtained extended matrix is ​​the same as the size of the check matrix.

[0063] The embodiment of the present application further provides a data transmission device based on a low-density parity-check code, comprising an acquisition unit, a first extension unit, a determination unit, a switching unit, a second extension unit, an encoding unit, and a transmission unit;

[0064] An acquiring unit is configured to, upon receiving an encoding instruction carrying a parity check matrix size and a non-zero element distribution, acquire a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple;

[0065] The first expansion unit is configured to expand the base matrix exponentially to obtain a submatrix;

[0066] A determination unit is configured to determine a ring-cancelling point in the submatrix based on a size of the base matrix and a short ring contained therein; wherein a short ring is a rectangle with four vertices having non-zero elements;

[0067] a switching unit configured to switch the original non-zero elements in each ring elimination point to zero elements, and to switch the original zero elements in the ring elimination point to non-zero elements, so as to obtain a matrix after ring elimination;

[0068] The second expansion unit is configured to expand the matrix after de-looping in a set manner according to the size of the matrix after de-looping and the size of the check matrix to obtain the required low-density parity-check code;

[0069] an encoding unit configured to perform an encoding operation on the acquired data using a low-density parity-check code;

[0070] The transmission unit is configured to transmit the encoded data to the peer device.

[0071] Optionally, the acquisition unit is configured to construct, according to the parity check matrix size, column weight and code rate, a base matrix having the same column weight and code rate and reduced by a positive integer multiple of the parity check matrix size.

[0072] Optionally, the acquisition unit is configured to construct, according to the size, row weight and column weight of the check matrix, a base matrix having the same row weight and column weight and reduced by a positive integer multiple of the size of the check matrix.

[0073] Optionally, the acquisition unit is configured to construct, according to the parity check matrix size, row weight and code rate, a base matrix having the same row weight and code rate and reduced by a positive integer multiple of the parity check matrix size.

[0074] Optionally, the acquisition unit includes a query subunit and a screening subunit;

[0075] A query subunit is configured to query a first candidate matrix obtained by reducing the size of the check matrix by a positive integer multiple from a pre-stored matrix library;

[0076] The screening subunit is configured to screen out a basis matrix having the same non-zero element distribution as that in the first candidate matrix.

[0077] Optionally, it further includes a construction unit;

[0078] The construction unit is configured to construct a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, when a first alternative matrix that reduces the size of the check matrix by a positive integer multiple cannot be found in a pre-stored matrix library or a base matrix with the same non-zero element distribution does not exist in the first alternative matrix.

[0079] Optionally, after constructing a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, a judgment unit and an adjustment unit are further included;

[0080] a judging unit configured to judge whether the base matrix contains a short cycle; if the base matrix contains a short cycle, triggering the first expansion unit to execute the step of exponentially expanding the base matrix to obtain a submatrix;

[0081] The adjustment unit is configured to adjust the base matrix according to the size of the check matrix and the distribution of non-zero elements when the base matrix does not contain a short cycle, so as to obtain a base matrix containing a short cycle.

[0082] Optionally, a storage unit is further included;

[0083] The storage unit is configured to store the basis matrix containing the short ring and the corresponding non-zero element distribution in the matrix library.

[0084] Optionally, the first expansion unit is configured to expand the base matrix twice to obtain a submatrix.

[0085] Optionally, the first expansion unit includes a serving subunit and a filling subunit;

[0086] As a sub-unit, it is set to use the basis matrix as the two elements of the first diagonal of the sub-matrix to be constructed;

[0087] The padding subunit is configured to fill the submatrix to be constructed with an all-zero matrix having the same size as the base matrix as elements of the second diagonal, so as to obtain the submatrix.

[0088] Optionally, the determining unit includes a first screening subunit, a selecting subunit, a second screening subunit, and an acting subunit;

[0089] a first screening subunit, configured to screen out short cycles contained in the basis matrix;

[0090] A selection subunit is configured to select a vertex from each short loop as a first loop elimination point;

[0091] A second screening sub-unit is configured to screen out a second ring-eliminating point matching the first ring-eliminating point from the sub-matrix according to the size of the base matrix;

[0092] As a sub-unit, it is configured to use the first and second ring elimination points as ring elimination points in the sub-matrix.

[0093] Optionally, the first screening sub-unit is configured to sequentially take each non-zero element in the basis matrix as a point to be detected; take the non-zero element in the basis matrix that is located in the same row as the target point to be detected as the row element to be detected, and take the non-zero element in the basis matrix that is located in the same column as the target point to be detected as the column element to be detected; wherein the target detection point is any one of the points to be detected; determine whether there is a non-zero element at the intersection of the basis matrix with the row where the row element to be detected is located and the column where the column element to be detected is located; if there is a non-zero element at the intersection of the basis matrix with the row where the row element to be detected is located and the column where the column element to be detected is located, take the matrix formed by the target detection point and the non-zero element as a short ring of the basis matrix.

[0094] Optionally, a display unit is further included;

[0095] The display unit is configured to display a prompt message indicating that the base matrix does not meet the expansion requirements when there is no non-zero element in the intersection of the base matrix with the row where the row element to be detected is located and the column where the column element to be detected is located.

[0096] Optionally, the second screening subunit is configured to move the first ring elimination point in the submatrix to obtain the second ring elimination point according to the total number of rows and columns of the base matrix when the base matrix is ​​expanded twice to obtain the submatrix.

[0097] Optionally, the second screening sub-unit is configured to take the sum of the number of rows of the first de-looping point and the total number of rows of the basis matrix as the de-looping row; take the sum of the number of columns of the first de-looping point and the total number of columns of the basis matrix as the de-looping column; and take the intersection of the row and column of the first de-looping point and the de-looping row and de-looping column as the second de-looping point.

[0098] Optionally, a decoding unit is further included;

[0099] The decoding unit is configured to, when receiving the coded data transmitted by the opposite device, perform a decoding operation on the coded data using a low-density parity-check code to obtain valid data.

[0100] Optionally, the second extension unit includes serving as a subunit and replacing a subunit;

[0101] As a subunit, it is configured to use the matrix after ring elimination as the matrix to be expanded;

[0102] The replacement subunit is configured to replace non-zero elements in the matrix to be expanded with the matrix after ring elimination, and replace zero elements in the matrix after ring elimination with an all-zero matrix of the same size as the matrix after ring elimination, to obtain a first expanded matrix; replace non-zero elements in the first expanded matrix with the matrix after ring elimination, and replace zero elements in the matrix after ring elimination with an all-zero matrix of the same size as the matrix after ring elimination, to obtain a second expanded matrix, until the size of the obtained expanded matrix is ​​the same as the size of the check matrix, and then terminate the operation.

[0103] An embodiment of the present application further provides an electronic device, including:

[0104] a memory arranged to store a computer program;

[0105] The processor is configured to execute a computer program to implement the steps of the above-mentioned data transmission method based on low-density parity-check code.

[0106] An embodiment of the present application further provides a non-volatile readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the above-mentioned low-density parity-check code-based data transmission method are implemented.

[0107] It can be seen from the above technical solution that when receiving an encoding instruction carrying the size of the check matrix and the distribution of non-zero elements, a base matrix with the same non-zero element distribution and a size reduced by a positive integer multiple is obtained. A short ring is a rectangle with all four vertices being non-zero elements. The base matrix contains short rings. In order to expand the check matrix that does not contain short rings, the base matrix can be expanded exponentially to obtain a submatrix. Based on the size of the base matrix and the short rings it contains, the ring elimination points in the submatrix are determined. The original non-zero elements in each ring elimination point are switched to zero elements, and the original zero elements in the ring elimination points are switched to non-zero elements to obtain a ring elimination matrix. Based on the size of the ring elimination matrix and the size of the check matrix, the ring elimination matrix is ​​expanded according to a set method to obtain the required low-density parity check code. The acquired data is encoded using the low-density parity check code, and the encoded data is transmitted to the peer device. In this technical solution, by constructing a base matrix and expanding and eliminating the loops on the base matrix, a low-density parity-check code that does not contain short loops can be obtained. By using this low-density parity-check code to encode and decode data, the bit error rate generated in the data transmission process can be reduced and the signal-to-noise ratio of the data can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0108] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0109] FIG1 is a flow chart of a data transmission method based on low-density parity-check codes provided in an embodiment of the present application;

[0110] FIG2 is a flow chart of a method for determining a ring elimination point in a submatrix provided by an embodiment of the present application;

[0111] FIG3 is a schematic structural diagram of a data transmission device based on a low-density parity-check code according to an embodiment of the present application;

[0112] FIG4 is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0113] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0114] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not limited to the listed steps or elements and may include steps or elements that are not listed.

[0115] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and optional implementation methods.

[0116] Next, a data transmission method based on low-density parity check code provided by an embodiment of the present application is described in detail. FIG1 is a flow chart of a data transmission method based on low-density parity check code provided by an embodiment of the present application, the method comprising:

[0117] S101: upon receiving a coding instruction carrying a parity check matrix size and a non-zero element distribution, obtaining a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple.

[0118] In the embodiment of the present application, a regular LDPC code is taken as an example, and the LDPC code is constructed by eliminating short cycles, so that a lower bit error rate can be achieved when encoding and decoding data using the LDPC code.

[0119] Low-density parity-check (LDPC) codes are presented in the form of a parity check matrix. The non-zero element distribution refers to the number of non-zero elements in each row and column of the parity check matrix.

[0120] In an optional implementation, parameters such as column weight, row weight, and code rate can be used to represent the distribution of non-zero elements. Column weight refers to the number of non-zero elements in each column of the check matrix, and row weight refers to the number of non-zero elements in each row of the check matrix. The code rate can be calculated based on row and column weights: code rate = (row weight + column weight) / row weight.

[0121] In the embodiment of the present application, any two parameters among column weight, row weight, and code rate can be used to characterize the distribution of non-zero elements.

[0122] Taking column weight and code rate as an example, when constructing a base matrix, a base matrix with the same column weight, the same code rate and reduced by a positive integer multiple of the check matrix size can be constructed according to the check matrix size, column weight and code rate.

[0123] Taking row weight and column weight as an example, when constructing a basis matrix, a basis matrix with the same row weight, the same column weight and reduced by a positive integer multiple of the check matrix size can be constructed according to the check matrix size, row weight and column weight.

[0124] Taking row weight and code rate as an example, when constructing a base matrix, a base matrix with the same row weight, the same code rate and reduced by a positive integer multiple of the check matrix size can be constructed according to the check matrix size, row weight and code rate.

[0125] In addition to constructing a basis matrix based on the size of the check matrix and the distribution of non-zero elements, in embodiments of the present application, a matrix library may also be pre-constructed to store basis matrices of various sizes and non-zero element distributions. Upon receiving an encoding instruction containing the size of the check matrix and the distribution of non-zero elements, a first candidate matrix that reduces the size of the check matrix by a positive integer multiple may be searched from the pre-stored matrix library; a basis matrix having the same non-zero element distribution may be selected from the first candidate matrix.

[0126] If a first candidate matrix that reduces the size of the check matrix by a positive integer multiple cannot be found in the pre-stored matrix library, or if a basis matrix with the same non-zero element distribution does not exist in the first candidate matrix, it means that a matching basis matrix does not exist in the matrix library. In this case, a basis matrix with the same non-zero element distribution and a size reduced by a positive integer multiple can be constructed based on the size of the check matrix and the non-zero element distribution.

[0127] In the embodiment of the present application, a short ring refers to a 4-ring. If there is a rectangle in the matrix with all four vertices being non-zero, it means there is a short ring. The existence of a short ring will affect the performance of the matrix.

[0128] If a base matrix that does not contain short cycles is simply expanded, the resulting check matrix is ​​likely to still contain short cycles. Therefore, in the embodiment of the present application, it is necessary to first construct a base matrix with short cycles, expand and eliminate the cycles on this base matrix, and then further expand the matrix after the cycles are eliminated, so as to ensure that the check matrix does not contain short cycles.

[0129] Therefore, after constructing the basis matrix, it can be determined whether the basis matrix contains a short cycle. If the basis matrix does not contain a short cycle, it means that the constructed basis matrix does not meet the requirements. In this case, the basis matrix can be adjusted according to the size of the check matrix and the distribution of non-zero elements to obtain a basis matrix containing a short cycle. If the basis matrix contains a short cycle, S102 can be executed, that is, the step of multiplying the basis matrix to obtain a submatrix.

[0130] After constructing a basis matrix with the same non-zero element distribution and a size reduced by a positive integer multiple, in order to expand the matrix library, the basis matrix containing the short ring and its corresponding non-zero element distribution can be stored in the matrix library.

[0131] S102: Expand the base matrix exponentially to obtain a submatrix.

[0132] In the embodiment of the present application, exponential expansion refers to expansion by an integer multiple of twice or more according to the size of the base matrix.

[0133] In an optional implementation, the requirement can be met by expanding the basis matrix by two times. Taking the example of expanding the basis matrix by two times to obtain a submatrix, the basis matrix can be used as the two elements of the first diagonal of the submatrix to be constructed; and the all-zero matrix with the same size as the basis matrix is ​​used as the elements of the second diagonal to fill the submatrix to be constructed to obtain the submatrix.

[0134] For example, assume the basis matrix is ​​as follows:

[0135] Expand the base matrix twice to obtain the following submatrix:

[0136] S103: Determine the ring elimination points in the submatrix according to the size of the base matrix and the short rings contained therein.

[0137] Among them, a short ring is a rectangle with four non-zero vertices.

[0138] Taking the submatrix obtained by two-fold expansion as an example, in an embodiment of the present application, any vertex in each short ring in the base matrix can be used as the initial ring elimination point, and then the initial ring elimination point is moved in the submatrix according to the size of the base matrix to obtain the target ring elimination point, and these target ring elimination points and the initial ring elimination points are both used as ring elimination points.

[0139] S104: Switch the original non-zero elements in each ring elimination point to zero elements, and switch the original zero elements in the ring elimination point to non-zero elements, so as to obtain a matrix after ring elimination.

[0140] The elements in the matrix are divided into zero elements and non-zero elements. In order to eliminate the short rings contained in the submatrix and ensure the consistency of the distribution of non-zero elements in the submatrix and the distribution of non-zero elements in the check matrix, after determining the ring elimination points, the original non-zero elements in each ring elimination point can be switched to zero elements, and the original zero elements in the ring elimination points can be switched to non-zero elements to obtain the matrix after ring elimination.

[0141] Taking the base matrix and submatrix in S102 as an example, the element in the first row and second column of the base matrix can be used as the initial ring elimination point. The size of the base matrix is ​​2 rows and 4 columns. The initial ring elimination point is moved in the submatrix according to the size of the base matrix. It can be determined that the element in the first row and sixth column, the element in the third row and second column, and the element in the third row and sixth column of the submatrix are all target ring elimination points. By switching the original non-zero elements in the ring elimination point to zero elements and switching the original zero elements in the ring elimination point to non-zero elements, the matrix after ring elimination is obtained as follows:

[0142] S105: Expanding the matrix after the de-looping according to a set method based on the size of the matrix after the de-looping and the size of the check matrix, so as to obtain a required low-density parity-check code.

[0143] In an embodiment of the present application, the matrix after the de-looping is expanded according to a predetermined method by replacing each non-zero element in the matrix after the de-looping with the matrix after the de-looping, and replacing each zero element with an all-zero matrix. By sequentially replacing, a low-density parity-check code with the same size as the check matrix is ​​ultimately obtained.

[0144] In an optional implementation, the matrix after ring elimination can be used as the matrix to be expanded; the non-zero elements in the matrix to be expanded are replaced with the matrix after ring elimination, and the zero elements in the matrix after ring elimination are replaced with an all-zero matrix of the same size as the matrix after ring elimination, to obtain a first expanded matrix. The non-zero elements in the first expanded matrix are replaced with the matrix after ring elimination, and the zero elements in the matrix after ring elimination are replaced with an all-zero matrix of the same size as the matrix after ring elimination, to obtain a second expanded matrix, and the operation is terminated until the size of the obtained expanded matrix is ​​the same as the size of the check matrix.

[0145] S106: Encode the acquired data using a low-density parity-check code, and transmit the encoded data to the peer device.

[0146] The low-density parity check code obtained according to the above operation does not contain a short cycle. Therefore, the encoding operation of the acquired data using the low-density parity check code has a higher signal-to-noise ratio, thereby reducing the bit error rate of data transmission.

[0147] The peer device can use the low-density parity-check code to decrypt the encoded data to obtain valid data. Accordingly, when the peer device needs to transmit data to the local device, it can use the low-density parity-check code to encode the data to be transmitted, and then transmit the resulting encoded data to the local device. Upon receiving the encoded data transmitted by the peer device, the local device can use the low-density parity-check code to decode the encoded data to obtain valid data.

[0148] It can be seen from the above technical solution that when receiving an encoding instruction carrying the size of the check matrix and the distribution of non-zero elements, a base matrix with the same non-zero element distribution and a size reduced by a positive integer multiple is obtained. A short ring is a rectangle with all four vertices being non-zero elements. The base matrix contains short rings. In order to expand the check matrix that does not contain short rings, the base matrix can be expanded exponentially to obtain a submatrix. Based on the size of the base matrix and the short rings it contains, the ring elimination points in the submatrix are determined. The original non-zero elements in each ring elimination point are switched to zero elements, and the original zero elements in the ring elimination points are switched to non-zero elements to obtain a ring elimination matrix. Based on the size of the ring elimination matrix and the size of the check matrix, the ring elimination matrix is ​​expanded according to a set method to obtain the required low-density parity check code. The acquired data is encoded using the low-density parity check code, and the encoded data is transmitted to the peer device. In this technical solution, by constructing a base matrix and expanding and eliminating the loops on the base matrix, a low-density parity-check code that does not contain short loops can be obtained. By using this low-density parity-check code to encode and decode data, the bit error rate generated in the data transmission process can be reduced and the signal-to-noise ratio of the data can be improved.

[0149] FIG2 is a flow chart of a method for determining a ring elimination point in a submatrix provided by an embodiment of the present application, the method comprising:

[0150] S201: Filter out short cycles contained in the basis matrix.

[0151] The short ring is presented in the matrix as a rectangle with all four vertices being non-zero elements. In an optional implementation, each non-zero element in the basis matrix can be used as a point to be detected in turn; the non-zero element in the basis matrix that is located in the same row as the target point to be detected is used as a row element to be detected, and the non-zero element in the basis matrix that is located in the same column as the target point to be detected is used as a column element to be detected; wherein the target detection point is any one of the points to be detected.

[0152] Determine whether there are non-zero elements in the basis matrix at the intersection of the row of the target row element and the column of the target column element. If there are non-zero elements in the basis matrix at the intersection of the row of the target row element and the column of the target column element, the matrix formed by the target detection point and the non-zero elements can be used as a short cycle of the basis matrix.

[0153] If there are no non-zero elements at the intersection of the basis matrix with the row where the row element to be detected is located and the column where the column element to be detected is located, it means that the basis matrix does not contain a short cycle. In this case, a prompt message indicating that the basis matrix does not meet the expansion requirements can be displayed to facilitate the user to promptly understand the construction of the basis matrix and thereby adjust the distribution of zero and non-zero elements in the basis matrix to obtain a basis matrix containing a short cycle.

[0154] S202: Select a vertex from each short loop as the first loop elimination point.

[0155] A base matrix often contains multiple short cycles. In this embodiment, for each short cycle, any vertex in the short cycle is selected to eliminate the cycle, thereby eliminating the cycle of the submatrix. For ease of description, the vertex selected from each short cycle can be called the first cycle elimination point.

[0156] Taking the construction of a basis matrix with a column weight of 3 and a code rate of 0.4 as an example, the form of the basis matrix is ​​as follows:

[0157] Based on the short cycles contained in the basis matrix, the elements H(1,1), H(2,11), H(7,9), H(4,12), H(6,13), H(8,14), and H(9,15) in the basis matrix can be used as the first cycle elimination points. H(1,1) represents the element in the first row and first column of the basis matrix H.

[0158] S203: According to the size of the base matrix, a second ring elimination point matching the first ring elimination point is selected from the submatrix.

[0159] In order to obtain a submatrix by doubly expanding the base matrix, in an embodiment of the present application, the first ring elimination point can be moved in the submatrix according to the total number of rows and the total number of columns of the base matrix to obtain a second ring elimination point.

[0160] The operation process of moving the first de-looping point to obtain the second de-looping point may include taking the sum of the number of rows of the first de-looping point and the total number of rows of the basis matrix as the de-looping row, taking the sum of the number of columns of the first de-looping point and the total number of columns of the basis matrix as the de-looping column, and thus taking the intersection formed by the row and column where the first de-looping point is located and the de-looping row and de-looping column as the second de-looping point.

[0161] S204: Using the first and second ring elimination points as ring elimination points in the sub-matrix.

[0162] After obtaining the first and second ring elimination points, both the first and second ring elimination points can be used as ring elimination points in the submatrix.

[0163] The filtered out ring elimination points are the elements that affect the distribution of non-zero elements of the submatrix and the inclusion of short rings.

[0164] In the embodiment of the present application, by screening out short cycles contained in the base matrix, the first cycle-eliminating point causing the presence of short cycles in the base matrix can be determined. Based on the size of the base matrix, the second cycle-eliminating point affecting the presence of short cycles in the submatrix is ​​screened out from the submatrix. By switching these cycle-eliminating points between zero and non-zero elements, the submatrix can be cycle-eliminating, ensuring that after exponential expansion, the submatrix still conforms to the non-zero element distribution of the parity check matrix and does not contain short cycles.

[0165] FIG3 is a schematic structural diagram of a data transmission device based on a low-density parity-check code provided in an embodiment of the present application, comprising an acquisition unit 31, a first extension unit 32, a determination unit 33, a switching unit 34, a second extension unit 35, an encoding unit 36, and a transmission unit 37;

[0166] An acquisition unit 31 is configured to, upon receiving an encoding instruction carrying a parity check matrix size and a non-zero element distribution, acquire a basis matrix having the same non-zero element distribution and a size reduced by a positive integer multiple;

[0167] The first expansion unit 32 is configured to expand the base matrix exponentially to obtain a submatrix;

[0168] The determining unit 33 is configured to determine the ring-eliminating points in the submatrix based on the size of the base matrix and the short rings contained therein; wherein the short ring is a rectangle with all four vertices having non-zero elements;

[0169] The switching unit 34 is configured to switch the original non-zero elements in each ring elimination point to zero elements, and switch the original zero elements in the ring elimination point to non-zero elements, so as to obtain a ring elimination matrix;

[0170] The second expansion unit 35 is configured to expand the de-looped matrix in a set manner according to the size of the de-looped matrix and the size of the check matrix to obtain the required low-density parity-check code;

[0171] The encoding unit 36 ​​is configured to perform an encoding operation on the acquired data using a low-density parity-check code;

[0172] The transmission unit 37 is configured to transmit the encoded data to the peer device.

[0173] Optionally, the acquisition unit is configured to construct, according to the parity check matrix size, column weight and code rate, a base matrix having the same column weight and code rate and reduced by a positive integer multiple of the parity check matrix size.

[0174] Optionally, the acquisition unit is configured to construct, according to the size, row weight and column weight of the check matrix, a base matrix having the same row weight and column weight and reduced by a positive integer multiple of the size of the check matrix.

[0175] Optionally, the acquisition unit is configured to construct, according to the parity check matrix size, row weight and code rate, a base matrix having the same row weight and code rate and reduced by a positive integer multiple of the parity check matrix size.

[0176] Optionally, the acquisition unit includes a query subunit and a screening subunit;

[0177] A query subunit is configured to query a first candidate matrix obtained by reducing the size of the check matrix by a positive integer multiple from a pre-stored matrix library;

[0178] The screening subunit is configured to screen out a basis matrix having the same non-zero element distribution as that in the first candidate matrix.

[0179] Optionally, it further includes a construction unit;

[0180] The construction unit is configured to construct a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, when a first alternative matrix that reduces the size of the check matrix by a positive integer multiple cannot be found in a pre-stored matrix library or a base matrix with the same non-zero element distribution does not exist in the first alternative matrix.

[0181] Optionally, after constructing a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, a judgment unit and an adjustment unit are further included;

[0182] a judging unit configured to judge whether the base matrix contains a short cycle; if the base matrix contains a short cycle, triggering the first expansion unit to execute the step of exponentially expanding the base matrix to obtain a submatrix;

[0183] The adjustment unit is configured to adjust the base matrix according to the size of the check matrix and the distribution of non-zero elements when the base matrix does not contain a short cycle, so as to obtain a base matrix containing a short cycle.

[0184] Optionally, a storage unit is further included;

[0185] The storage unit is configured to store the basis matrix containing the short ring and the corresponding non-zero element distribution in the matrix library.

[0186] Optionally, the first expansion unit is configured to expand the base matrix twice to obtain a submatrix.

[0187] Optionally, the first expansion unit includes a serving subunit and a filling subunit;

[0188] As a sub-unit, it is set to use the basis matrix as the two elements of the first diagonal of the sub-matrix to be constructed;

[0189] The padding subunit is configured to fill the submatrix to be constructed with an all-zero matrix having the same size as the base matrix as elements of the second diagonal, so as to obtain the submatrix.

[0190] Optionally, the determining unit includes a first screening subunit, a selecting subunit, a second screening subunit, and an acting subunit;

[0191] a first screening subunit, configured to screen out short cycles contained in the basis matrix;

[0192] A selection subunit is configured to select a vertex from each short loop as a first loop elimination point;

[0193] A second screening sub-unit is configured to screen out a second ring-eliminating point matching the first ring-eliminating point from the sub-matrix according to the size of the base matrix;

[0194] As a sub-unit, it is configured to use the first and second ring elimination points as ring elimination points in the sub-matrix.

[0195] Optionally, the first screening sub-unit is configured to sequentially take each non-zero element in the basis matrix as a point to be detected; take the non-zero element in the basis matrix that is located in the same row as the target point to be detected as the row element to be detected, and take the non-zero element in the basis matrix that is located in the same column as the target point to be detected as the column element to be detected; wherein the target detection point is any one of the points to be detected; determine whether there is a non-zero element at the intersection of the basis matrix with the row where the row element to be detected is located and the column where the column element to be detected is located; if there is a non-zero element at the intersection of the basis matrix with the row where the row element to be detected is located and the column where the column element to be detected is located, take the matrix formed by the target detection point and the non-zero element as a short ring of the basis matrix.

[0196] Optionally, a display unit is further included;

[0197] The display unit is configured to display a prompt message indicating that the base matrix does not meet the expansion requirements when there is no non-zero element in the intersection of the base matrix with the row where the row element to be detected is located and the column where the column element to be detected is located.

[0198] Optionally, the second screening subunit is configured to move the first ring elimination point in the submatrix to obtain the second ring elimination point according to the total number of rows and columns of the base matrix when the base matrix is ​​expanded twice to obtain the submatrix.

[0199] Optionally, the second screening sub-unit is configured to take the sum of the number of rows of the first de-looping point and the total number of rows of the basis matrix as the de-looping row; take the sum of the number of columns of the first de-looping point and the total number of columns of the basis matrix as the de-looping column; and take the intersection of the row and column of the first de-looping point and the de-looping row and de-looping column as the second de-looping point.

[0200] Optionally, a decoding unit is further included;

[0201] The decoding unit is configured to, when receiving the coded data transmitted by the opposite device, perform a decoding operation on the coded data using a low-density parity-check code to obtain valid data.

[0202] Optionally, the second extension unit includes serving as a subunit and replacing a subunit;

[0203] As a subunit, it is configured to use the matrix after ring elimination as the matrix to be expanded;

[0204] The replacement subunit is configured to replace non-zero elements in the matrix to be expanded with the matrix after ring elimination, and replace zero elements in the matrix after ring elimination with an all-zero matrix of the same size as the matrix after ring elimination, to obtain a first expanded matrix; replace non-zero elements in the first expanded matrix with the matrix after ring elimination, and replace zero elements in the matrix after ring elimination with an all-zero matrix of the same size as the matrix after ring elimination, to obtain a second expanded matrix, until the size of the obtained expanded matrix is ​​the same as the size of the check matrix, and then terminate the operation.

[0205] For the description of the features in the embodiment corresponding to FIG3 , reference can be made to the relevant description of the embodiments corresponding to FIG1 and FIG2 , and no further details will be given here.

[0206] It can be seen from the above technical solution that when receiving an encoding instruction carrying the size of the check matrix and the distribution of non-zero elements, a base matrix with the same non-zero element distribution and a size reduced by a positive integer multiple is obtained. A short ring is a rectangle with all four vertices being non-zero elements. The base matrix contains short rings. In order to expand the check matrix that does not contain short rings, the base matrix can be expanded exponentially to obtain a submatrix. Based on the size of the base matrix and the short rings it contains, the ring elimination points in the submatrix are determined. The original non-zero elements in each ring elimination point are switched to zero elements, and the original zero elements in the ring elimination points are switched to non-zero elements to obtain a ring elimination matrix. Based on the size of the ring elimination matrix and the size of the check matrix, the ring elimination matrix is ​​expanded according to a set method to obtain the required low-density parity check code. The acquired data is encoded using the low-density parity check code, and the encoded data is transmitted to the peer device. In this technical solution, by constructing a base matrix and expanding and eliminating the loops on the base matrix, a low-density parity-check code that does not contain short loops can be obtained. By using this low-density parity-check code to encode and decode data, the bit error rate generated in the data transmission process can be reduced and the signal-to-noise ratio of the data can be improved.

[0207] FIG4 is a structural diagram of an electronic device provided in an embodiment of the present application. As shown in FIG4 , the electronic device includes: a memory 20 configured to store computer programs;

[0208] The processor 21 is configured to implement the steps of the data transmission method based on the low-density parity-check code in the above embodiment when executing the computer program.

[0209] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0210] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor configured to process data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor configured to process data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), and the GPU is configured to be responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is configured to process computing operations related to machine learning.

[0211] The memory 20 may include one or more non-volatile readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In this embodiment, the memory 20 is at least configured to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the data transmission method based on low-density parity check code disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include but is not limited to the size of the check matrix and the distribution of non-zero elements.

[0212] In some embodiments, the electronic device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0213] Those skilled in the art will appreciate that the structure shown in FIG. 4 does not limit the electronic device and may include more or fewer components than shown.

[0214] It is understandable that if the data transmission method based on low-density parity check code in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology, 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 storage medium to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD ROM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0215] Based on this, an embodiment of the present application further provides a non-volatile readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned data transmission method based on low-density parity-check code are implemented.

[0216] The functions of the functional modules of the non-volatile readable storage medium in the embodiment of the present application can be implemented according to the method in the above method embodiment. The implementation process can refer to the relevant description of the above method embodiment and will not be repeated here.

[0217] The above describes in detail a data transmission method, apparatus, device, and non-volatile readable storage medium based on low-density parity-check codes provided in the embodiments of the present application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between the various embodiments can be referenced to each other. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method section.

[0218] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0219] The above is a detailed introduction to a data transmission method, apparatus, device and non-volatile readable storage medium based on low-density parity-check code provided by the present application. This article uses individual examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A data transmission method based on low-density parity-check code, It is characterized in that include: Upon receiving a coding instruction carrying a check matrix size and a non-zero element distribution, obtaining a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple; Expanding the base matrix exponentially to obtain a submatrix; Determine the ring elimination points in the submatrix according to the size of the base matrix and the short rings contained therein; wherein the short ring is a rectangle whose four vertices are all non-zero elements; The original non-zero elements in each of the de-ringing points are switched to zero elements, and the original zero elements in the de-ringing points are switched to non-zero elements, so as to obtain a matrix after de-ringing; According to the size of the matrix after de-looping and the size of the check matrix, the matrix after de-looping is expanded in a set manner to obtain a required low-density parity check code; The acquired data is encoded using the low-density parity-check code, and the encoded data is transmitted to the opposite-end device.

2. The data transmission method based on low-density parity-check code according to claim 1, It is characterized in that When receiving a coding instruction carrying the size of the check matrix and the distribution of non-zero elements, obtaining a base matrix having the same distribution of non-zero elements and a size reduced by a positive integer multiple includes: According to the size, column weight and code rate of the check matrix, a base matrix with the same column weight and code rate and reduced by a positive integer multiple of the size of the check matrix is ​​constructed.

3. The data transmission method based on low-density parity-check code according to claim 1, It is characterized in that When receiving a coding instruction carrying the size of the check matrix and the distribution of non-zero elements, obtaining a base matrix having the same distribution of non-zero elements and a size reduced by a positive integer multiple includes: According to the size, row weight and column weight of the check matrix, a base matrix with the same row weight and column weight and reduced by a positive integer multiple of the size of the check matrix is ​​constructed.

4. The data transmission method based on low-density parity-check code according to claim 1, It is characterized in that When receiving a coding instruction carrying the size of the check matrix and the distribution of non-zero elements, obtaining a base matrix having the same distribution of non-zero elements and a size reduced by a positive integer multiple includes: According to the size, row weight and code rate of the check matrix, a base matrix with the same row weight and code rate and reduced by a positive integer multiple of the size of the check matrix is ​​constructed.

5. The data transmission method based on low-density parity-check code according to claim 1, It is characterized in that When receiving a coding instruction carrying the size of the check matrix and the distribution of non-zero elements, obtaining a base matrix having the same distribution of non-zero elements and a size reduced by a positive integer multiple includes: Querying a first candidate matrix from a pre-stored matrix library, which reduces the size of the check matrix by a positive integer multiple; A base matrix having the same non-zero element distribution as the base matrix is ​​selected from the first candidate matrix.

6. The data transmission method based on low-density parity-check code according to claim 5, It is characterized in that Also includes: When a first candidate matrix that reduces the size of the check matrix by a positive integer multiple cannot be found in a pre-stored matrix library or a base matrix with the same non-zero element distribution as the non-zero element distribution does not exist in the first candidate matrix, a base matrix with the same non-zero element distribution and a size reduced by a positive integer multiple is constructed according to the size of the check matrix and the non-zero element distribution.

7. The data transmission method based on low-density parity-check code according to claim 6, It is characterized in that After constructing a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, the method further comprises: Determining whether the base matrix contains a short ring; When the base matrix does not contain a short ring, adjusting the base matrix according to the size of the check matrix and the distribution of non-zero elements to obtain a base matrix containing a short ring; In the case where the base matrix contains a short ring, the step of expanding the base matrix exponentially to obtain a submatrix is ​​performed.

8. The data transmission method based on low-density parity-check code according to claim 7, It is characterized in that After constructing a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple according to the size of the check matrix and the non-zero element distribution, the method further comprises: The basic matrix containing the short ring and the corresponding non-zero element distribution are stored in the matrix library.

9. The data transmission method based on low-density parity-check code according to claim 1, It is characterized in that The base matrix is ​​expanded exponentially to obtain a submatrix including: The base matrix is ​​expanded twice to obtain a submatrix.

10. The data transmission method based on low-density parity-check code according to claim 9, It is characterized in that The base matrix is ​​expanded twice to obtain a submatrix including: The base matrix is ​​used as two elements of the first diagonal line of the submatrix to be constructed; The submatrix to be constructed is filled with all-zero matrices having the same size as the base matrix as elements of the second diagonal to obtain a submatrix.

11. The data transmission method based on low-density parity-check code according to claim 1, It is characterized in that Determining the ring elimination points in the submatrix according to the size of the base matrix and the included short rings includes: Screening out short rings contained in the basis matrix; Selecting a vertex from each of the short loops as a first loop elimination point; According to the size of the base matrix, selecting a second de-looping point matching the first de-looping point from the sub-matrix; The first ring elimination point and the second ring elimination point are used as ring elimination points in the sub-matrix.

12. The data transmission method based on low-density parity-check code according to claim 11, It is characterized in that The step of screening out the short rings contained in the base matrix comprises: Taking each non-zero element in the basis matrix as a point to be detected in turn; The non-zero elements in the base matrix that are located in the same row as the target point to be detected are used as the row elements to be detected, and the non-zero elements in the base matrix that are located in the same column as the target point to be detected are used as the column elements to be detected; wherein the target detection point is any one of the points to be detected; Determine whether there is a non-zero element in the basis matrix at the intersection of the row where the row element to be detected is located and the column where the column element to be detected is located; When there is a non-zero element at the intersection of the base matrix with the row where the row element to be detected is located and the column where the column element to be detected is located, the matrix formed by the target detection point and the non-zero element is used as a short ring of the base matrix.

13. The data transmission method based on low-density parity-check code according to claim 12, It is characterized in that Also includes: When there is no non-zero element in the intersection of the base matrix with the row where the row element to be detected is located and the column where the column element to be detected is located, prompt information indicating that the base matrix does not meet the expansion requirement is displayed.

14. The data transmission method based on low-density parity-check code according to claim 13, It is characterized in that The step of selecting a second ring elimination point matching the first ring elimination point from the submatrix according to the size of the base matrix comprises: In the case where the base matrix is ​​expanded twice to obtain a submatrix, the first elimination loop point is moved in the submatrix according to the total number of rows and the total number of columns of the base matrix to obtain a second elimination loop point.

15. The data transmission method based on low-density parity-check code according to claim 14, It is characterized in that The moving the first ring elimination point in the submatrix according to the total number of rows and the total number of columns of the base matrix to obtain the second ring elimination point comprises: The sum of the number of rows of the first de-ringing points and the total number of rows of the basis matrix is ​​taken as the de-ringing row; The sum of the number of columns of the first de-ringing points and the total number of columns of the base matrix is ​​taken as a de-ringing column; The row and column where the first loop elimination point is located and the intersection point formed by the loop elimination row and the loop elimination column are used as the second loop elimination point.

16. The data transmission method based on low-density parity-check code according to claim 1, It is characterized in that After the matrix after the de-looping is expanded in a set manner according to the size of the matrix after the de-looping and the size of the check matrix to obtain the required low-density parity check code, the method further includes: When the coded data transmitted by the opposite device is received, the coded data is decoded using the low-density parity-check code to obtain valid data.

17. The data transmission method based on low-density parity-check code according to any one of claims 1 to 16, It is characterized in that The step of expanding the matrix after the de-looping in a set manner according to the size of the matrix after the de-looping and the size of the check matrix to obtain the required low-density parity-check code comprises: Using the matrix after ring elimination as the matrix to be expanded; Replacing non-zero elements in the matrix to be expanded with the matrix after ring elimination, and replacing zero elements in the matrix after ring elimination with an all-zero matrix with the same size as the matrix after ring elimination, so as to obtain a first expanded matrix; The non-zero elements in the first extended matrix are replaced with the matrix after the ring elimination, and the zero elements in the matrix after the ring elimination are replaced with an all-zero matrix with the same size as the matrix after the ring elimination to obtain a second extended matrix, until the size of the obtained extended matrix is ​​the same as the size of the check matrix, and then the operation is terminated.

18. A data transmission device based on low-density parity-check code, It is characterized in that It includes an acquisition unit, a first expansion unit, a determination unit, a switching unit, a second expansion unit, an encoding unit and a transmission unit; The acquisition unit is configured to, upon receiving a coding instruction carrying a check matrix size and a non-zero element distribution, acquire a base matrix having the same non-zero element distribution and a size reduced by a positive integer multiple; The first expansion unit is configured to expand the base matrix exponentially to obtain a submatrix; The determining unit is configured to determine the ring elimination points in the submatrix according to the size of the base matrix and the short rings contained therein; wherein the short ring is a rectangle whose four vertices are all non-zero elements; The switching unit is configured to switch the original non-zero elements in each of the de-ringing points to zero elements, and switch the original zero elements in the de-ringing points to non-zero elements, so as to obtain a matrix after de-ringing; The second expansion unit is configured to expand the matrix after the de-looping in a set manner according to the size of the matrix after the de-looping and the size of the check matrix, so as to obtain the required low-density parity check code; The encoding unit is configured to perform an encoding operation on the acquired data using the low-density parity-check code; The transmission unit is configured to transmit the encoded data to the opposite end device.

19. An electronic device, It is characterized in that include: a memory arranged to store a computer program; A processor is configured to execute the computer program to implement the steps of the data transmission method based on low-density parity-check code as claimed in any one of claims 1 to 17.

20. A non-volatile readable storage medium, It is characterized in that The non-volatile readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data transmission method based on low-density parity-check code as claimed in any one of claims 1 to 17 are implemented.

Citation Information

Patent Citations

  • QC-LDPC (Quasi-Cyclic Low Density Parity Check) code constructing method

    CN101826878A

  • Construction method and encoding method for check matrix of LDPC code

    CN104333390A

  • Low density parity check (LDPC) code

    US20060242534A1

Cited By

  • Data transmission method and device, computer equipment and storage medium

    CN119788096A

  • Method and device for constructing basis matrix, electronic equipment, storage medium and product

    CN122824228A