Encoding, decoding and transmission system for physical layer data, encoding method for physical layer data, and decoding method for physical layer data
By encoding and interleaving the data in the on-board audio transmission system and encoding it with line code, the problem of insufficient anti-interference ability of the system when facing continuous errors is solved, and the low delay when using line code is achieved Data replacement and clock recovery meet the test requirements of ISO7637-2 standard.
Patent Information
- Application Number
- PCT/CN2024/095153
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-14
- Filing Date
- 2024-05-24
- Publication Date
- 2024-12-19
AI Technical Summary
In the on-board audio transmission system, there is a lack of a method that can resist continuous errors and can replace data with lower latency when using line codes to achieve clock and data recovery.
Using a physical layer data encoding and transmission system, the data is coded and transmitted by error correction code encoding and interleaving at the first transmission terminal, with the interleaving depth of n, and the interleaving data is line code encoding, and the line code encoding is m bits. The binary numbers are carried out in a group, and n≥m, to realize the transmission and decoding of data, and deinterleaving and error correction code decoding are performed at the second transmission terminal to ensure that the system can effectively resist interference when facing continuous errors.
This method can realize clock and data recovery when using line code, and perform data replacement within a lower delay, improve the system's ability to resist continuous errors and meet the test requirements of ISO7637-2 standard.
Smart Images

Figure CN2024095153_19122024_PF_FP_ABST
Abstract
Description
Physical layer data encoding, decoding and transmission system and method Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a system and method for encoding, decoding and transmitting physical layer data. Background Art
[0002] In an in-vehicle audio transmission system, since there may be noise interference in the in-vehicle environment, the signal needs to be encoded with an error correction code to improve the system's error correction capability and anti-interference capability. The error correction code is usually a block code, such as an RS code, an ECC code, or a BCH code. Generally speaking, for a certain error correction code, its error correction capability is positively correlated with the number of redundant bits added. The stronger the error correction capability, the more redundant bits there are. For example, an error correction code that can correct a maximum of 1 bit of error has fewer redundant bits than an error correction code that can correct a maximum of 2 bits of error. A small number of redundant bits can increase the proportion of valid data bits in the transmitted data, thereby improving transmission efficiency.
[0003] When the interference is continuous error, interleaving can be used to further improve error correction capabilities by distributing the continuous errors into different block codes. This converts longer continuous errors into shorter ones, keeping the number of erroneous data within the error correction capability, thereby improving the system's resilience to continuous errors. The international standard ISO7637-2 tests the situation where in-vehicle transmission lines are subject to fast, short pulse interference. Each fast, short pulse can interfere with the signal on the transmission line for up to 50ns. For a typical in-vehicle audio transmission line with a 100Mbps transmission rate, this can cause up to five consecutive bit errors.
[0004] To facilitate clock and data recovery at the receiving end, transmitted data can be encoded using line codes to ensure sufficient "0" and "1" transitions. Common line codes include 4b / 5b, 8b / 10b, and 9b / 10b. 8b / 10b and 9b / 10b codes ensure an equal number of "0" and "1" bits in the encoded data stream, eliminating the DC component of the signal during data transmission. Therefore, these codes, represented by 8b / 10b and 9b / 10b, are also called DC-balanced codes. Using line codes allows a single-bit error on the transmission channel to be expanded into a single-symbol error after line code decoding. For example, a single-bit error in an 8b / 10b DC-balanced encoded signal on the transmission channel is expanded into a single-byte (8-bit) error after decoding. If a burst error occurs on the transmission channel for a length greater than one bit but less than the encoded symbol length + 1 (for 8b / 10b DC-balanced code, the encoded symbol length is 10 bits), taking the length of two consecutive bit errors as an example, if these two bits belong to two symbols after decoding, the two consecutive bit errors will be expanded into two symbol errors after decoding. For example, a two-bit consecutive error in an 8b / 10b DC-balanced signal on the transmission channel can be expanded into two bytes, or a maximum of 16 bits, after decoding. If the length of consecutive errors on the transmission channel is greater than one encoded symbol length + 1, the consecutive errors may be expanded into three or more symbol errors after decoding.
[0005] In the international standard ISO7637-2 test, the interference time of each fast short pulse on the signal on the transmission line can reach 50ns. Taking the data transmission rate of 100Mbps as an example, there will be 5 consecutive bit errors on the transmission channel. When these 5 bits belong to 2 symbols after decoding, the 5-bit burst error is expanded into a 2-symbol error after decoding.
[0006] In the in-vehicle audio transmission system, the transmission link may include multiple nodes / chips, each of which is connected to its own processor / microphone / amplifier and other modules / devices. For example, node A is connected to node B, and node B is connected to node C. When node A has data to send to node C, it can be sent to node B first, and then sent to node C by node B. Node B can also receive data from its connected device and send it to node C. Node A is the upstream node of node B, node B is the upstream node of node C, node B is the downstream node of node A, and node C is the downstream node of node B. Node A can encapsulate the data sent to node C in a data block and send the data block to node B. After receiving the data block from node A, node B can choose to replace part of the data block with the data of the device connected to it, and send the replaced data block to node C.
[0007] Current in-vehicle audio transmission systems lack a method that can resist continuous errors, use line codes to achieve clock and data recovery, and implement data replacement with low latency.
[0008] Summary of the Invention
[0009] The technical problem to be solved by the present invention is how to resist continuous errors and achieve data replacement with low delay when using line code to achieve clock and data recovery in an in-vehicle audio transmission system.
[0010] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0011] As a physical layer data encoding, decoding and transmission system of the present invention, it includes a first transmission terminal, a second transmission terminal, and a transmission channel. The first transmission terminal sends data to the second transmission terminal through the transmission channel. The first transmission terminal includes an error correction code encoder, an interleaver, a line code encoder, and a transmitter. The second transmission terminal includes a receiver, a line code decoder, a deinterleaver, and an error correction code decoder. The error correction code encoder performs error correction code encoding on the data. The interleaver interleaves the error correction code-encoded data with a granularity of 1 bit, with an interleaving depth of n. The line code encoder performs line code encoding on the interleaved data. Encoding, line code encoding is performed using m-bit binary numbers as a group. The transmitter sends the line code-encoded data to a transmission channel, and transmits the data to a second transmission terminal via the transmission channel. The receiver receives the data sent through the transmission channel. The line code decoder performs line code decoding on the received data, where the line code-decoded data is grouped into m-bit binary numbers. The deinterleaver deinterleaves the line code-decoded data with a granularity of 1 bit, and the deinterleaving depth is n. The error correction code decoder performs error correction code decoding on the deinterleaved data, where n and m are both fixed positive integers, and n ≥ m.
[0012] Preferably, the line code is a DC balanced code.
[0013] Preferably, n≥2m.
[0014] Preferably, the error correction code is a block code.
[0015] Furthermore, each group of the block codes can correct at most 1 bit error.
[0016] Preferably, the error correction code is an RS code, an ECC code or a BCH code.
[0017] As a physical layer data encoding method of the present invention, the data is encoded with an error correction code, and the data after the error correction code encoding is interleaved with a granularity of 1 bit and an interleaving depth of n. The interleaved data is encoded with a line code, and the line code encoding is encoded with an m-bit binary number as a group, where n and m are both fixed positive integers, and n≥m.
[0018] Preferably, the line code is a DC balanced code.
[0019] Preferably, n≥2m.
[0020] Preferably, the error correction code is a block code.
[0021] Furthermore, each group of the block codes can correct at most 1 bit error.
[0022] Preferably, the error correction code is an RS code, an ECC code or a BCH code.
[0023] As a physical layer data decoding method of the present invention, line code decoding is performed on the data. The data after line code decoding is grouped as m-bit binary numbers. The data after line code decoding is deinterleaved with a granularity of 1 bit. The deinterleaving depth is n. Error correction code decoding is performed on the deinterleaved data. Both n and m are fixed positive integers, and n≥m.
[0024] Preferably, the line code is a DC balanced code.
[0025] Preferably, n≥2m.
[0026] Preferably, the error correction code is a block code.
[0027] Furthermore, each group of the block codes can correct at most 1 bit error.
[0028] Preferably, the error correction code is an RS code, an ECC code or a BCH code.
[0029] A physical layer data replacement method according to the present invention is used to transmit a data block via a transmission system. The transmission system includes a first transmission terminal, a second transmission terminal, and a transmission channel. The first transmission terminal is connected to the second transmission terminal via the transmission channel. The first transmission terminal performs error correction code encoding on the data block to generate an error correction code-encoded data block, and interleaves the data block with a granularity of 1 bit and an interleaving depth of n. The first transmission terminal then performs line code encoding on the interleaved data, performing the line code encoding on groups of m-bit binary numbers. The first transmission terminal then sends the line code-encoded symbols generated after the line code encoding to the transmission channel. The second transmission terminal receives and decodes the line code-encoded symbols sent via the transmission channel. The second transmission terminal replaces the data at a preset replacement bit after line code decoding and re-performs line code encoding on the replaced data. n and m are both fixed positive integers, and n ≥ m.
[0030] Preferably, the line code is a DC balanced code.
[0031] Preferably, n≥2m.
[0032] Preferably, the error correction code is a block code.
[0033] Furthermore, each group of the block codes can correct at most 1 bit error.
[0034] Preferably, the error correction code is an RS code, an ECC code or a BCH code.
[0035] The beneficial effects of the present invention are:
[0036] The present invention provides a physical layer data encoding, decoding and transmission system and method, which interleaves data encoded with an error correction code with a granularity of 1 bit and an interleaving depth of n, and performs line code encoding on the interleaved data. The line code is encoded as a group of m-bit binary numbers, and n≥m. This method can resist continuous errors and achieve data replacement with low delay when using line codes to achieve clock and data recovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] FIG1 is a block diagram of a physical layer data encoding, decoding and transmission system according to the present invention;
[0038] FIG2 is a schematic diagram of error correction code encoding in a physical layer data encoding, decoding and transmission system of the present invention;
[0039] FIG3 is a schematic diagram of interleaving in a physical layer data encoding, decoding and transmission system of the present invention;
[0040] FIG4 is a schematic diagram of a system for encoding, decoding, and transmitting physical layer data according to the present invention, in which a line code expands a 1-bit error into an 8-bit error;
[0041] 5 is a schematic diagram of deinterleaving data containing 8 bits of error after a line code in a physical layer data encoding, decoding and transmission system of the present invention;
[0042] 6 is a schematic diagram of error correction code decoding for eight groups of block codes each containing one bit of erroneous data in a physical layer data encoding, decoding, and transmission system according to the present invention;
[0043] 7 is a schematic diagram of a physical layer data encoding, decoding and transmission system according to the present invention, in which a line code expands a 2-bit error into a 16-bit error;
[0044] 8 is a schematic diagram of deinterleaving data containing 16 bits of error after a line code in a physical layer data encoding, decoding and transmission system of the present invention;
[0045] 9 is a schematic diagram of error correction code decoding of 16 groups of block codes each containing 1 bit of erroneous data in a physical layer data encoding, decoding and transmission system of the present invention;
[0046] FIG10 is a flow chart of a method for encoding physical layer data according to the present invention;
[0047] 11 is a flowchart of a method for decoding physical layer data according to the present invention;
[0048] 12 is a block diagram of a transmission system of a method for replacing physical layer data according to the present invention;
[0049] 13 is a flow chart of a method for performing data block replacement by a second transmission terminal in a transmission system of a physical layer data replacement method of the present invention;
[0050] 14 is a schematic diagram of a second transmission terminal performing data block replacement in a transmission system of a method for replacing physical layer data of the present invention;
[0051] 15 is a schematic diagram of a second transmission terminal performing replacement of multiple data blocks in a transmission system of a method for replacing physical layer data of the present invention;
[0052] in:
[0053] 1 First transmission terminal 2 Second transmission terminal
[0054] 3 Transmission Channel 11 Error Correction Code Encoder
[0055] 12 Interleaver 13 Line Code Encoder
[0056] 14 transmitters 21 receivers
[0057] 22 Line Code Decoder 23 Deinterleaver
[0058] 24 Error Correction Code Decoder DETAILED DESCRIPTION
[0059] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings. It should be understood that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0060] As shown in Figure 1, in an application embodiment of the present invention, as a physical layer data encoding, decoding and transmission system of the present invention, it includes a first transmission terminal 1, a second transmission terminal 2, and a transmission channel 3. The first transmission terminal 1 sends data to the second transmission terminal 2 through the transmission channel 3. The first transmission terminal 1 includes an error correction code encoder 11, an interleaver 12, a line code encoder 13, and a transmitter 14. The second transmission terminal 2 includes a receiver 21, a line code decoder 22, a deinterleaver 23, and an error correction code decoder 24.
[0061] The error correction code encoder 11 encodes the data into an error correction code to improve the error correction capability and anti-interference capability of the system. The error correction code is a block code, which can be but not limited to RS code, BCH code or ECC code. As shown in FIG2 , A 00 、A 01 ,……,A 0(K-1) is k-bit binary data, which enters the error correction code encoder as the data block before error correction code encoding for error correction code encoding. After encoding, r bits of redundant binary data P are added to the basis of the k-bit binary data. 00 、P 01 ,……,P 0(r-1) , forming a data block after error correction code encoding. Therefore, k bits of binary data generate a total of k+r bits of binary data after error correction code encoding. Generally speaking, for a certain error correction code, its error correction capability is positively correlated with the number of redundant bits added. The stronger the error correction capability, the more error bits can be corrected and the more redundant bits are added. The weaker the error correction capability, the fewer error bits can be corrected and the fewer redundant bits are added. For example, an error correction code that can correct up to 1 bit of error has fewer redundant bits than an error correction code that can correct up to 2 bits of error. Reducing the number of redundant bits r can increase the proportion of valid data bits in all transmitted data, thereby improving transmission efficiency. The present invention does not limit the number of bits that can be corrected by the error correction code. In this embodiment, to improve transmission efficiency, an error correction code that can correct up to 1 bit of error data can be selected.
[0062] Interleaver 12 interleaves the error-correcting coded data at a granularity of 1 bit, with an interleaving depth of n. When the interference on transmission channel 3 is continuous error, interleaving distributes the continuous errors to different error-correcting coded data blocks, converting longer continuous errors into shorter errors for each error-correcting coded data block. This allows even a weaker error-correcting code to correct longer continuous errors on transmission channel 3. As shown in Figure 3, n groups of error-correcting coded data blocks 1 to n, each group of k+r bits in length, are interleaved at a granularity of 1 bit, resulting in k+r groups of data, each consisting of continuous n bits of binary data.
[0063] The line code encoder 13 performs line code encoding on the interleaved data. The data before line code encoding is composed of m bits as one pre-line code encoding symbol. Line code encoding is performed by encoding one pre-line code encoding symbol as a group of m-bit binary numbers. Common line codes include 4b / 5b, 8b / 10b, and 9b / 10b. In this case, the values of m are 4, 8, and 9, respectively, which are called the pre-line code encoding symbol lengths. The corresponding post-line code encoding symbol lengths are 5, 10, and 10, respectively.
[0064] Using line codes to encode transmitted data ensures sufficient "0" and "1" transitions in the data, facilitating clock and data recovery at the receiving end. 8b / 10b and 9b / 10b codes ensure an equal number of "0" and "1" bits in the encoded data stream. Therefore, codes such as 8b / 10b and 9b / 10b are also called DC-balanced codes. DC-balanced codes can eliminate the DC component of signals during data transmission, thereby simplifying the design of receiving circuits and reducing the bit error rate. The present invention may use 8b / 10b and 9b / 10b codes, as well as other DC-balanced codes or non-DC-balanced codes. The present invention is not limited to the line code used.
[0065] Transmitter 14 transmits the line-code-encoded data to transmission channel 3, which is then transmitted to the second transmission terminal via transmission channel 3. Receiver 21 receives the data sent via transmission channel 3, and line code decoder 22 performs line code decoding on the received data. The decoded data is grouped as m-bit binary numbers (corresponding to one symbol before line code encoding).
[0066] After adopting line code encoding, a 1-bit error on transmission channel 3 will be expanded into a 1-symbol error after line code decoding. For example, a 1-bit error on transmission channel 3 of a signal encoded with 8b / 10b DC balanced code will be expanded into a 1-byte (8-bit) error after 8b / 10b DC balanced code decoding. Taking m=8 as an example, as shown in FIG4 , after interleaving, a symbol before line code encoding contains bit data {A 00 、A 10 、A 20 、A 30 、A 40 、A 50 、A 60 、A 70}, after line code encoding, the line code encoded symbol bit data {D 00 、D 10 、D 20 、D 30 、D 40 、D 50 、D 60 、D 70 、D 80 、D 90}, and sent to transmission channel 3. Due to noise interference during data transmission, the received data has a certain bit error rate. The received data is D 00 、D 10 ′、D 20 、D 30 、D 40 、D 50 、D 60 、D 70 、D 80 、D 90 , where D 10 ′ and D 10 Different, it is error data, the received data containing error bits is decoded into bit data {A 00 ′、A 10 ′、A 20 ′、A 30 ′、A 40 ′、A 50 ′、A 60 ′、A 70 ′}, which is the same as {A 00 、A 10 、A 20 、A 30 、A 40 、A 50 、A 60 、A 70} can differ by at most m bits (in this example, m=8), that is, line code decoding results in at most m bits of erroneous data.
[0067] Other line codes including but not limited to 4b / 5b and 9b / 10b may also cause a 1-bit error on the transmission channel 3 to be expanded into a 1-symbol error after line code decoding.
[0068] The deinterleaver 23 deinterleaves the data after line code decoding with a granularity of 1 bit, and the deinterleaving depth is n. After deinterleaving, n error-correction-coded data blocks are generated, corresponding to the error-correction-coded data blocks 1 to n before interleaving shown in Figure 3. Although a 1-bit error on the transmission channel 3 can be expanded into 1 symbol after line code decoding, resulting in a maximum of m-bit errors, these maximum m-bit errors are distributed to the n error-correction-coded data blocks generated by the deinterleaver 23 after deinterleaving. When n ≥ m, each error-correction-coded data block generated by the deinterleaver 23 contains at most a 1-bit error. Therefore, the 1-bit error on the transmission channel 3 can be corrected using an error correction code with an error correction capability of 1 bit.
[0069] Taking n=8, m=8 as an example, as shown in FIG5, the possible 8-bit error data {A 00 ′、A 10 ′、A 20 ′、A 30 ′、A 40 ′、A 50 ′、A 60 ′、A 70 ′} is deinterleaved to obtain 8 error-correction coded data blocks 1 to 8, each of which contains at most 1 bit of erroneous data.
[0070] The error correction code decoder 24 performs error correction code decoding on the deinterleaved data. As shown in Figure 6, eight error correction code-encoded data blocks are each subjected to error correction code decoding. Each error correction code-encoded data block only needs to correct one bit of error data, and the correct data can be obtained after decoding.
[0071] If the length of the continuous errors on transmission channel 3 is greater than 1 bit but less than or equal to the symbol length after line code encoding + 1 (for example, for 8b / 10b DC balanced code, the symbol length after line code encoding is 10 bits, and the length of the continuous errors on transmission channel 3 is greater than 1 bit but less than or equal to 11 bits), this continuous error will cause at most two symbol errors. Taking the error length as an example of 2 consecutive bits, when these 2 bits of error data belong to 2 symbols, after line code decoding, this 2-bit continuous error can be expanded to a maximum of 2 symbol errors after line code decoding. For example, the continuous 2-bit errors of the signal encoded by 8b / 10b DC balanced code on transmission channel 3 are expanded to a maximum of 2 bytes (16 bits) of errors after DC balanced code decoding. Taking m=8 as an example, as shown in Figure 7, the two symbols before line code encoding after interleaving contain bit data {A 00 、A 10 、A 20 、A 30 、A 40 、A 50 、A 60 、A 70} and {A 01 、A 11 、A 21 、A 31 、A 41 、A 51 、A 61 、A 71}, after line code encoding, two line code encoding symbols are obtained, each containing bit data {D 00 、D 10 、D 20 、D 30 、D 40 、D 50 、D 60 、D 70 、D 80 、D 90} and {D 01 、D 11 、D 21 、D 31 、D 41 、D 51 、D 61 、D 71 、D 81 、D 91} and sent to transmission channel 3. Due to continuous errors, the received data is bit data {D 00 、D 10 、D 20 、D 30 、D 40 、D 50 、D 60 、D70 、D 80 、D 90 ′} and {D 01 ′、D 11 、D 21 、D 31 、D 41 、D 51 、D 61 、D 71 、D 81 、D 91}where D 90 ′、D 01 ′ and D 90 、D 01 Different, it is error data, the received bit data containing error bits is decoded into bit data {A 00 ′、A 10 ′、A 20 ′、A 30 ′、A 40 ′、A 50 ′、A 60 ′、A 70 ′} and {A 01 ′、A 11 ′、A 21 ′、A 31 ′、A 41 ′、A 51 ′、A 61 ′、A 71 ′}, where {A 00 ′、A 10 ′、A 20 ′、A 30 ′、A 40 ′、A 50 ′、A 60 ′、A 70 ′} and {A before line code encoding 00 、A 10 、A 20 、A 30 、A 40 、A 50 、A 60 、A 70} can differ by at most m bits, {A 01 ′、A 11 ′、A 21 ′、A 31 ′、A 41 ′、A 51 ′、A 61 ′、A 71 ′} and {A before line code encoding 01 、A 11 、A21 、A 31 、A 41 、A 51 、A 61 、A 71} can also differ by at most m bits (m=8 in this example). Therefore, a continuous two-bit error on transmission channel 3 can cause a maximum of 2m (2m=16 in this example) bits of erroneous data after line code decoding. When the length of the continuous error on transmission channel 3 is greater than 1 bit but less than or equal to the symbol length after line code encoding + 1, at most two symbols after line code encoding are affected. That is, as in the above example of a continuous two-bit error, a maximum of 2m bits of error can be caused after line code decoding.
[0072] The deinterleaver 23 deinterleaves the data decoded from the line code at a granularity of 1 bit, with a deinterleaving depth of n. After deinterleaving, n error-correction-coded data blocks are generated, corresponding to error-correction-coded data blocks 1 to n before interleaving shown in FIG3 . When the length of consecutive errors on the transmission channel 3 is greater than 1 bit but less than or equal to the line code symbol length + 1, although the line code can be extended to 2 symbols after decoding, resulting in a maximum of 2m bit errors, these maximum 2m bit errors are distributed among the n error-correction-coded data blocks generated by the deinterleaver 23 after deinterleaving. When n ≥ 2m, each error-correction-coded data block generated by the deinterleaver 23 contains at most 1 bit error. Therefore, using an error correction code with an error correction capability of 1 bit, it is possible to correct consecutive errors on the transmission channel 3 that are greater than 1 bit but less than or equal to the line code symbol length + 1.
[0073] Taking n=16 and m=8 as an example, as shown in FIG8 , the 16-bit error data A after line code decoding is 00 ′、A 10 ′、A 20 ′、A 30 ′、A 40 ′、A 50 ′、A 60 ′、A 70 ′、A 01 ′、A 11 ′、A 21 ′、A 31 ′、A 41 ′、A 51 ′、A 61 ′、A 71 ' Deinterleave is performed to obtain 16 error-correction coded data blocks 1 to 16. Each error-correction coded data block contains at most 1 bit of erroneous data.
[0074] The error correction code decoder 24 performs error correction decoding on the deinterleaved data. As shown in Figure 9, the 16 error correction code-encoded data blocks 1 to 16 are each subjected to error correction decoding. Each error correction code-encoded data block only needs to correct one bit of error data, and the correct data can be obtained after decoding.
[0075] Therefore, when n≥2m, the present invention can withstand continuous errors on transmission channel 3 that are less than or equal to the symbol length after line code encoding + 1. The international standard ISO7637-2 tests the situation where vehicle-mounted transmission lines are interfered with by fast short pulses. Each fast short pulse can interfere with the signal on the transmission line for up to 50ns. For a common vehicle-mounted audio transmission line with a transmission rate of 100Mbps, this can cause up to 5 bits of continuous errors. Using common 4b / 5b, 8b / 10b or 9b / 10b line codes, the present invention only needs to use an error correction code that corrects 1 bit of error, and it can meet the testing requirements of ISO7637-2.
[0076] As shown in FIG10 , in another application embodiment of the present invention, a method for encoding physical layer data of the present invention includes the following steps: S101, performing error correction code encoding on the data; S102, interleaving the error correction code-encoded data with a granularity of 1 bit and an interleaving depth of n; S103, performing line code encoding on the interleaved data, wherein the line code encoding is performed using m-bit binary numbers as a group.
[0077] As shown in FIG. 11 , in another application embodiment of the present invention, a method for decoding physical layer data of the present invention includes the following steps: S201, performing line code decoding on the data, where the data after line code decoding is grouped as m-bit binary numbers; S202, deinterleaving the data after line code decoding with a granularity of 1 bit, with a deinterleaving depth of n; and S203, performing error correction code decoding on the deinterleaved data.
[0078] In the embodiments shown in Figures 10 and 11, n and m are both fixed positive integers, and the error correction code is a block code, such as an RS code, an ECC code, or a BCH code. To improve transmission efficiency, n ≥ 2m can be set, so that an error correction code that can correct up to 1 bit of error can be selected to meet the test requirements of ISO7637-2.
[0079] As shown in Figure 12, in yet another application embodiment of the present invention, a physical layer data replacement method of the present invention is used to transmit data blocks via a transmission system comprising a first transmission terminal 1, a second transmission terminal 2, and a transmission channel 3. In this embodiment, the first transmission terminal 1 sends data to the second transmission terminal 2 via the transmission channel 3. The second transmission terminal 2 receives data from the first transmission terminal 1 and may also receive data from a connected module / device (the module / device connected to the second transmission terminal 2 is not shown in Figure 12) to replace the data.
[0080] In this embodiment, first transmission terminal 1 performs error correction coding on a data block to generate an error correction-coded data block. The data block is then interleaved with a granularity of 1 bit and an interleaving depth of n. The first transmission terminal then performs line code coding on the interleaved data, using m-bit binary numbers as a group. First transmission terminal 1 then transmits the resulting line code-coded symbols to transmission channel 3. The error correction-coded data block is generated by error correction coding the data block before error correction coding, as shown in the embodiment of FIG2 . The interleaving method is described in the embodiment of FIG3 , and the line code coding is described in the embodiment of FIG4 .
[0081] As shown in FIG13 , in this embodiment, the method for performing data block replacement by the second transmission terminal 2 includes the following steps: S301, the second transmission terminal 2 receives and decodes the line code encoded symbol sent via the transmission channel 3; S302, the second transmission terminal 2 replaces the data at the preset replacement bit after line code decoding; S303, the second transmission terminal re-encodes the replaced data through line code; S304, the second transmission terminal sends the replaced and re-line code encoded symbol.
[0082] As shown in FIG14 , the method for performing data block replacement on the second transmission terminal shown in FIG13 is further described by taking n=8 and m=8 as an example. In this embodiment, the data received by the second transmission terminal 2 is the line code coded symbols after the first transmission terminal 1 interleaves and codes the data blocks A0, A1, ... through transmission channel 3. The interleaver with an interleaving depth of n has n interleaving input channels 1 to n. The error-correcting code coded data block transmitted on interleaving input channel 1 is A0 (A0 is composed of bits A 00 、A 01 、A 02 , ...), the data block after the error correction code is transmitted on the interleaved input channel 2 is A1 (A1 consists of bit A 10 、A 11 、A 12 , ...) ..., the data block after the error correction code encoding transmitted on the interleaved input channel n is A n-1 (A n-1 By Bit A n-1,0、A n-1,1 、A n-1,2 ,……composition).
[0083] In this embodiment, data blocks A0, A1, ... are error-correction coded data blocks.
[0084] The second transmission terminal 2 decodes the line code coded symbols to generate interleaved A0, A1, ..., and replaces the data block A1 with the data block B0 (B0 is composed of bits B 00 、B 01 、B 02 , ...), as shown in FIG14, the first symbol generated by decoding by the second transmission terminal 2 is {A 00 ,A 10 ,A 20 ,A 30 ,A 40 ,A 50 ,A 60 ,A 70}, whose 8 bits come from the first bit of data blocks A0, A1...A7 respectively. The second transmission terminal 2 converts bit A 10 Replaced with the first bit B of data block B0 00 , then re-encode the line code and send it.
[0085] In this embodiment, data block B0 is an error-correction coded data block.
[0086] In the present invention, when the second transmission terminal 2 decodes the preset replacement bit (bit A 10 ) can be replaced after the line code is encoded and the bit A 10 Replaced with bit B 00 ,The delay of the replacement operation only includes the decoding ,bit replacement and line code encoding of one line code symbol. ,In the actual hardware implementation, the replacement operation can be completed within one clock cycle at ,least minimizing the replacement delay.
[0087] As shown in FIG14 , the second symbol generated by decoding by the second transmission terminal 2 is {A 01 ,A 11 ,A 21 ,A 31 ,A 41 ,A 51 ,A 61 ,A 71}, whose 8 bits come from the second bit of data blocks A0, A1...A7 respectively. The second transmission terminal 2 converts bit A 11 Replaced with the second bit B of data block B0 01 , then re-encode the line code and send it.
[0088] The second transmission terminal 2 may replace other bits of the data block B0 according to the above description.
[0089] The second transmission terminal can replace multiple data blocks. As shown in Figure 15 , the data after line code decoding is an interleaved data block consisting of eight data blocks A0, A1, A2, A3, A4, A5, A6, and A7. The second transmission terminal uses the method shown in Figure 14 to replace data block A1 with data block B0. Next, the data after line code decoding is an interleaved data block consisting of eight data blocks A8, A9, A10, A11, A12, A13, A14, and A15. The second transmission terminal uses the method shown in Figure 14 to replace data block A9 with data block B1. In this embodiment, data blocks A0, A1, ..., A15, and B0 and B1 are error-correction coded data blocks.
[0090] A set of preset data blocks can constitute a logical transmission channel. For example, in the embodiment shown in FIG15 , A1, A9, A17, ..., A 8n+1 , n≥0, can constitute a logical transmission channel, different preset data block groups can constitute different logical transmission channels, and different transmission requirements can be met between transmission terminals through logical transmission channels. The above-mentioned data block replacement method can be used to replace data blocks on a specified logical transmission channel with low latency, thereby supporting different transmission requirements between transmission terminals.
[0091] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or replacements that can be easily thought of by any technician familiar with this technical field within the technical scope disclosed by the present invention should be covered by the scope of protection of the present invention.
Claims
1. A physical layer data encoding, decoding and transmission system, comprising a first transmission terminal, a second transmission terminal and a transmission channel, wherein the first transmission terminal sends data to the second transmission terminal through the transmission channel. Features: The first transmission terminal comprises an error correction code encoder, an interleaver, a line code encoder, and a transmitter. The second transmission terminal comprises a receiver, a line code decoder, a deinterleaver, and an error correction code decoder. The error correction code encoder performs error correction code encoding on the data, The interleaver interleaves the data encoded by the error correction code with a granularity of 1 bit, and the interleaving depth is n. The line code encoder performs line code encoding on the interleaved data, and the line code encoding is performed as a group of m-bit binary numbers. The transmitter sends the line code-encoded data to the transmission channel, and transmits it to the second transmission terminal through the transmission channel. The receiver receives data sent through the transmission channel, The line code decoder performs line code decoding on the received data, and the data after line code decoding is a group of m-bit binary numbers. The deinterleaver deinterleaves the data decoded from the line code with a granularity of 1 bit, and the deinterleaving depth is n. The error correction code decoder performs error correction code decoding on the deinterleaved data. The n and m are both fixed positive integers, and n≥m.
2. A physical layer data encoding, decoding and transmission system according to claim 1, characterized in that: The line code is a DC balanced code.
3. The physical layer data encoding, decoding and transmission system according to claim 1, characterized in that: Said n≥2m.
4. The physical layer data encoding, decoding and transmission system according to claim 1, characterized in that: The error correction code is a block code.
5. A physical layer data encoding, decoding and transmission system according to claim 4, characterized in that: Each group of the block codes can correct at most 1 bit error.
6. A physical layer data encoding, decoding and transmission system according to claim 1, characterized in that: The error correction code is an RS code, an ECC code or a BCH code.
7. A method for encoding physical layer data, characterized in that: Encode the data with error correction code, The data encoded by the error correction code is interleaved with a granularity of 1 bit and an interleaving depth of n. The interleaved data is encoded by line code, and the line code is encoded as a group of m-bit binary numbers. The n and m are both fixed positive integers, and n≥m.
8. A method for encoding physical layer data according to claim 7, characterized in that: The line code is a DC balanced code.
9. A method for encoding physical layer data according to claim 7, characterized in that: Said n≥2m.
10. A method for encoding physical layer data according to claim 7, characterized in that: The error correction code is a block code.
11. A method for encoding physical layer data according to claim 10, characterized in that: Each group of the block codes can correct at most 1 bit error.
12. A method for encoding physical layer data according to claim 7, characterized in that: The error correction code is an RS code, an ECC code or a BCH code.
13. A method for decoding physical layer data, characterized in that: The data is decoded into line code, and the data after line code decoding is a group of m-bit binary numbers. The data after line code decoding is deinterleaved with a granularity of 1 bit, and the deinterleaving depth is n. Decode the deinterleaved data using error correction code. The n and m are both fixed positive integers, and n≥m.
14. A method for decoding physical layer data according to claim 13, characterized in that: The line code is a DC balanced code.
15. A method for decoding physical layer data according to claim 13, characterized in that: Said n≥2m.
16. A method for decoding physical layer data according to claim 13, characterized in that: The error correction code is a block code.
17. A method for decoding physical layer data according to claim 16, characterized in that: Each group of the block codes can correct at most 1 bit error.
18. A method for decoding physical layer data according to claim 13, characterized in that: The error correction code is an RS code, an ECC code or a BCH code.
19. A method for replacing physical layer data, for transmitting a data block through a transmission system, wherein the transmission system comprises a first transmission terminal, a second transmission terminal, and a transmission channel, wherein the first transmission terminal is connected to the second transmission terminal through the transmission channel, Features: The first transmission terminal performs error correction code encoding on the data block to generate an error correction code encoded data block, and interleaves the data block with a granularity of 1 bit and an interleaving depth of n. The first transmission terminal then performs line code encoding on the interleaved data, and the line code encoding is performed with m-bit binary numbers as a group. Then, the first transmission terminal sends the line code encoded symbols generated after the line code encoding to the transmission channel. The second transmission terminal receives and decodes the line code encoded symbol sent through the transmission channel, and the second transmission terminal replaces the data on the preset replacement bit after the line code is decoded. And re-encode the replaced data into line code, The n and m are both fixed positive integers, and n≥m.
20. A method for replacing physical layer data according to claim 19, characterized in that: The line code is a DC balanced code.
21. The method for replacing physical layer data according to claim 19, characterized in that: Said n≥2m.
22. The method for replacing physical layer data according to claim 19, characterized in that: The error correction code is a block code.
23. A method for replacing physical layer data according to claim 22, characterized in that: Each group of the block codes can correct at most 1 bit error.
24. The method for replacing physical layer data according to claim 19, characterized in that: The error correction code is an RS code, an ECC code or a BCH code.
Citation Information
Patent Citations
Coding and decoding method for forward error correction, device and system thereof
CN101686104A
Data transmission method, apparatus, device and system, and readable storage medium
CN115706622A
System and method for encoding, decoding and transmitting physical layer data
CN116886241A
Crosstalk mitigation for out-of-band tones
EP3255808A1
Transmitter, receiver and transmission reception method
JP2000349654A
