Data transmission method and related apparatus

Through the multi-logical channel data transmission method, appropriate decoding paths are selected for error detection and error correction decoding, and the order-preserving queue is used to restore the original sequence of the data stream, which solves the FEC decoding delay after the Ethernet link rate is increased. It solves the problem of being too high and achieves the combination of low decoding delay and high coding gain.

WO2024193265A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/077446
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-02-18
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

After the link rate of the existing Ethernet is increased, the FEC decoding delay is too high and cannot meet the delay requirements of computing and storage application scenarios, which limits the application scope of the Ethernet interface.

Method used

Using a multi-logical channel data transmission method, by selecting appropriate decoding paths for error detection and error correction decoding, the decoding delay is reduced while ensuring high coding gain, and the order-preserving queue is used to restore the original sequence of the data stream.

Benefits of technology

It achieves the reduction of data decoding delay while ensuring high coding gain, overcomes the difficulty of data sequence recovery caused by different decoding delays of different logical channels, and expands the application scope of the Ethernet interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024077446_26092024_PF_FP
    Figure CN2024077446_26092024_PF_FP
Patent Text Reader

Abstract

A data transmission method and a related apparatus. The method comprises: selecting a first decoding path and a second decoding path, the first decoding path and the second decoding path being paths among a number L of decoding paths included in a first logical channel among a number N of logical channels; performing error detection decoding on a first encoded data stream by means of the first decoding path, to obtain an error detection result; and acquiring a first decoded data stream output by a target decoding path according to the error detection result, the first decoded data stream being a data stream obtained by decoding the first encoded data stream, the target decoding path being the first decoding path and / or the second decoding path, and the second decoding path being used to perform error correction decoding on the first encoded data stream. The present application provides a data transmission method and a related apparatus that can satisfy both a high encoding gain and a low decoding delay.
Need to check novelty before this filing date? Find Prior Art

Description

A data transmission method and related device

[0001] This application claims priority to the Chinese patent application with application number 202310301981.2 filed with the State Intellectual Property Office of China on March 17, 2023, and priority to the Chinese patent application with the invention name “A Data Transmission Method and Related Devices”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and in particular to a data transmission method and related devices. Background Art

[0003] With the development of information technology, the interface rate and communication capacity of application scenarios such as computing and storage are increasing, and users' requirements for communication latency are also increasing.

[0004] Taking traditional Ethernet as an example, link speeds have entered the 112G+ era. Ethernet link quality gradually degrades as link speeds increase. Forward error correction (FEC) with long codewords and high coding gain is often used to address this degradation. However, while this solution provides high coding gain, it also results in excessively high FEC decoding latency on Ethernet interfaces. This makes it unable to meet the latency requirements of Ethernet interfaces in computing, storage, and other application scenarios, limiting the application scope of Ethernet interfaces.

[0005] Therefore, a solution that can simultaneously meet the requirements of high coding gain and low decoding delay is urgently needed.

[0006] Summary of the Invention

[0007] The embodiments of the present application can fully consider the relationship between communication rate, coding gain and decoding delay during data transmission, and provide a data transmission method and related devices that can simultaneously meet high coding gain and low decoding delay.

[0008] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first electronic device, wherein a physical layer of the first electronic device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L decoding paths, where L is an integer greater than 1; the method includes:

[0009] Selecting a first decoding path and a second decoding path; the first decoding path and the second decoding path are paths in the L decoding paths included in the first logical channel of the N logical channels;

[0010] performing error detection decoding on the first coded data stream through the first decoding path to obtain an error detection result;

[0011] According to the aforementioned error detection result, a first decoded data stream output by the target decoding path is obtained, where the aforementioned first decoded data stream is a data stream obtained by decoding the aforementioned first encoded data stream; the aforementioned target decoding path is the aforementioned first decoding path and / or the second decoding path, and the aforementioned second decoding path is used to perform error correction decoding on the aforementioned first encoded data stream.

[0012] This solution is applied to a communication scenario where the physical layer is a multi-logical channel. First, the first logical channel of the aforementioned N logical channels decodes the aforementioned first coded data stream according to the decoding strategy to generate a first decoded data stream. The aforementioned decoding strategy is used to select a first decoding path and a second decoding path for decoding the aforementioned first coded data stream. The aforementioned first decoding path is only responsible for error detection of the first data stream, and the delay loss of the error detection process is relatively small. If it is detected that the first data stream is completely correct, the decoded data stream of the first decoding path can be used as the first decoded data stream to reduce the decoding delay of the first coded data stream. If it is detected that there is an error in the first data stream, the second coding path is used to perform error correction decoding on the first data stream, which can ensure the coding gain of the first data stream at the data receiving end. Therefore, this solution can reduce the decoding delay of the data while ensuring that the signal receiving end has a high coding gain for the first data stream.

[0013] In a possible embodiment, the first coded data stream is a coded data stream obtained by encoding the first data stream; the first data stream is a sub-data stream included in the target data stream, the second data stream is a sub-data stream arranged after the first data stream in the target data stream, and the second coded data stream is a data stream obtained by encoding the second data stream; the method further includes:

[0014] Decoding the second encoded data stream to obtain a second decoded data stream;

[0015] When the error detection result indicates that the first data stream in the first encoded data stream is erroneous, the second decoded data stream is stored in an order-preserving queue.

[0016] In this solution, the first data stream is the data stream that precedes the second data stream in the target data stream. If the error detection result indicates an error in the first data stream within the first encoded data stream, the second decoded data stream is stored in the order-preserving queue. After the error correction decoding of the first encoded data stream is completed, the second decoded data stream can be read from the order-preserving queue to complete data sequence recovery. This overcomes the problem of varying decoding delays for data streams in different logical channels, which makes data sequence recovery difficult, and allows the data receiving end to restore the original data stream order.

[0017] In one possible embodiment, the third coded data stream is a coded data stream obtained by encoding the third data stream; the third data stream is a sub-data stream included in the target data stream; the fourth data stream is a sub-data stream arranged after the third data stream in the target data stream; and the fourth coded data stream is a coded data stream obtained by encoding the fourth data stream; and the method further includes:

[0018] Decoding the fourth encoded data stream to obtain a fourth decoded data stream;

[0019] When the decoding of the third encoded data stream is not completed, the fourth decoded data stream is stored in the order-preserving queue.

[0020] In this solution, the fourth data stream is a sub-data stream that follows the third data stream in the target data stream. If the third coded data stream is not fully decoded, the fourth decoded data stream is stored in the order-preserving queue. Incomplete decoding of the third coded data stream includes situations where decoding has not yet begun, or where decoding is in progress but not yet completed. This solution also overcomes the difficulty of data sequence recovery due to varying decoding delays for data streams in different logical channels, allowing the data receiving end to restore the original data stream order.

[0021] In one possible embodiment, the fifth coded data stream is a coded data stream obtained by encoding the fifth data stream; the fifth data stream is a sub-data stream included in the target data stream; the sixth data stream is a sub-data stream arranged after the fifth data stream in the target data stream; and the sixth coded data stream is a coded data stream obtained by encoding the sixth data stream; and the method further includes:

[0022] Decoding the sixth encoded data stream to obtain a sixth decoded data stream;

[0023] When the fifth decoded data stream is in the aforementioned order-preserving queue, the sixth decoded data stream is stored in the aforementioned order-preserving queue. The fifth decoded data stream is a data stream obtained by decoding the fifth encoded data stream.

[0024] In this solution, the sixth data stream is a sub-data stream that is arranged behind the aforementioned fifth data stream in the target data stream. When the fifth decoded data stream is in the aforementioned order-preserving queue, the aforementioned sixth decoded data stream is stored in the aforementioned order-preserving queue. The fact that the fifth decoded data stream is in the order-preserving queue indicates that the sequence of the data stream has not yet been restored for the fifth decoded data stream. Only when the sequence of the data stream in front has been restored can the sequence of the current data stream be restored. Therefore, this solution also overcomes the problem that the decoding delays of data streams in different logical channels are different and it is difficult to restore the data sequence, and can enable the data receiving end to restore the original data stream order.

[0025] In a possible embodiment, when the error detection result indicates that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream;

[0026] When the error detection result indicates that the first encoded data stream has errors, the decoded data stream output by the second decoding path belongs to the first decoded data stream.

[0027] In this solution, if the first coded data stream contains no errors, the decoded data stream output by the first coding path is used as the first decoded data stream. In this case, the decoding delay of the first coded data stream is the decoding delay of the first coding path. If the first coded data stream contains errors, the decoded data stream output by the second coding path is used as the first decoded data stream. In this case, the decoding delay of the first coded data stream is the decoding delay of the second coding path, while the coding gain of the second decoding path is obtained. Therefore, this solution can minimize the decoding delay of the first coded data stream while ensuring that the first data stream achieves a high coding gain.

[0028] In a possible embodiment, the first logical channel includes a first cache queue, and the first cache queue is used to cache the first encoded data stream;

[0029] When the error detection result indicates that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream;

[0030] When the error detection result indicates that the first coded data stream has errors, the first coded data stream is obtained from the first cache queue; and the first coded data stream is input into the second decoding path, and the decoded data stream output by the second decoding path belongs to the first decoded data stream.

[0031] In this solution, the first logical channel also includes a first buffer queue for buffering the first coded data stream. If errors are present in the first coded data stream, a second decoding path is activated, and the first coded data stream buffered in the buffer queue is input into the second decoding path, which then performs error correction on the first coded data stream. Since only the first decoding path is active when the first coded data stream is completely correct, while the second decoding path is dormant, this reduces device energy consumption.

[0032] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0;

[0033] When the error detection result indicates that the first data block is correct, the decoded data stream obtained by decoding the first data block by the first decoding path belongs to the first decoded data stream; and the first data block belongs to the P data blocks.

[0034] When the error detection result indicates that the second data block has an error, the decoded data stream output by the second decoding path belongs to the first decoded data stream; and the second data block belongs to the P data blocks.

[0035] This solution divides the aforementioned first data stream into P data blocks and performs error detection decoding on each data block. If the error detection result for the data block is correct, the data obtained from the error detection decoding is directly used as the successfully decoded data, further reducing decoding latency. Furthermore, if the error detection decoding fails, the decoded data obtained from the error correction decoding is used as the successfully decoded data, ensuring high coding gain for the data block.

[0036] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0; the first logical channel includes a first buffer queue for buffering the first encoded data stream;

[0037] When the error detection result indicates that the first data block is correct, the decoded data obtained by the first decoding path from decoding the first data block belongs to the first decoded data stream; and the first data block belongs to the P data blocks.

[0038] When the error detection result indicates that an error exists in the second data block, the first encoded data stream is obtained from the first cache queue; and the first encoded data stream is input into the second decoding path. The decoded data stream output by the second decoding path belongs to the first decoded data stream; and the second data block belongs to the P data blocks.

[0039] In this solution, the first data stream is divided into P data blocks, and error detection decoding is performed on each data block. Error detection and correction decoding are not initiated simultaneously; error correction decoding is initiated only when the error detection decoding result indicates that the data block is incorrect. This ensures low decoding latency and high coding gain for the data blocks while also reducing overall device energy consumption.

[0040] In a possible embodiment, the aforementioned method further includes:

[0041] generating an encoding strategy and a decoding strategy based on the communication quality of the first electronic device; the encoding strategy is used to select an encoding path for encoding the seventh data stream, and the decoding strategy is used to select a decoding path for decoding the seventh encoded data stream; the seventh data stream includes the first data stream, the first encoded data stream obtained by encoding the first data stream; and the seventh encoded data stream includes the first decoded data stream.

[0042] The aforementioned encoding strategy is sent to the second electronic device.

[0043] This solution can dynamically generate encoding strategies and decoding strategies based on the current communication quality, making the current encoding and decoding strategies more in line with the current application scenarios and user needs.

[0044] In a possible embodiment, generating the encoding strategy and the decoding strategy based on the communication quality of the first electronic device includes:

[0045] When the communication quality of the first electronic device is higher than a first threshold, the encoding strategy is to select only the first encoding path to encode the seventh data stream, and the decoding strategy is to select only the first decoding path to decode the seventh encoded data stream; the first encoding path is used to perform error detection coding on the data stream;

[0046] When the communication quality of the first electronic device is lower than the first threshold, the aforementioned encoding strategy is to select the aforementioned first encoding path and the second encoding path to encode the aforementioned seventh data stream, and the aforementioned decoding strategy is to select the aforementioned first decoding path and the aforementioned second decoding path to decode the aforementioned seventh encoded data stream; the aforementioned second encoding path is used to perform error correction encoding on the data stream.

[0047] In this solution, by setting rules for generating encoding strategies and decoding strategies, the first electronic device can generate corresponding encoding strategies or decoding strategies according to the preset rules.

[0048] In a possible embodiment, the second decoding path is the coding sublayer PCS of the physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers (IEEE).

[0049] This solution is compatible with standard Ethernet protocols, expanding the scope of application of the solution.

[0050] In a possible embodiment, the second decoding path is physical layer coding of the IEEE 802.11 standard.

[0051] This solution is also compatible with wired network-related protocols, further expanding the scope of application of the solution.

[0052] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a second electronic device, wherein the physical layer of the second electronic device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L coding paths, where L is an integer greater than 1; the method includes:

[0053] Determine the order of distributing the target data stream to the aforementioned N logical channels and the amount of data stream distributed each time;

[0054] The first data stream is a data stream distributed to the first logical channel of the N logical channels, and the first data stream belongs to a sub-data stream included in the target data stream;

[0055] Selecting a first encoding path and a second encoding path; wherein the first encoding path and the second encoding path are paths in the L decoding paths included in the first logical channel of the N logical channels;

[0056] The first coding path is used to perform error detection coding on the first data stream, and the second coding path is used to perform error correction coding on the first data stream.

[0057] This solution is applied to scenarios where the physical layer consists of multiple logical channels. First, the order of distributing data streams to the aforementioned N logical channels and the amount of data distributed each time are determined based on the distribution strategy. In the event of an error during data transmission, the erroneous data will be dispersed among the aforementioned N logical channels, which can reduce the error correction pressure of each logical channel at the receiving end and reduce the bit error rate of the received signal. Each of the aforementioned logical channels contains multiple coding paths. When it is necessary to encode the data stream, two coding paths are selected to encode the data stream, one of which is used for error detection coding and the other is used for error correction coding. At the receiving end, the received data stream is first error-checked. If there is no error, the data stream is directly output, which can reduce the data decoding delay. If there is an error, the data stream is corrected, retaining the high coding gain of the data stream.

[0058] In a possible embodiment, the aforementioned method further includes:

[0059] performing error detection coding on the first data stream through the first coding path to generate redundant information of the error detection coding;

[0060] performing error correction coding on the first data stream through the second coding path to generate redundant information of the error correction coding;

[0061] The first coded data stream is generated based on the redundant information of the error detection coding, the redundant information of the error correction coding, and the first data stream.

[0062] In this solution, the generated first coded data stream includes redundant information of error detection coding, redundant information of error correction coding and the first data stream, so that the data receiving end can perform error detection coding and error correction coding on the received data respectively.

[0063] In a possible embodiment, the aforementioned first data stream includes P data blocks, where P is an integer greater than 0; the aforementioned error detection encoding of the aforementioned first data stream through the aforementioned first coding path includes: error detection encoding of each of the aforementioned P data blocks through the aforementioned first coding path.

[0064] In this solution, the first data stream includes P data blocks, and error coding is performed on each data block in turn. This allows the data receiver to clearly identify the location of data errors and directly output each error-free data block, reducing decoding delay.

[0065] In a possible embodiment, the method further includes: acquiring a coding strategy, where the coding strategy is used to select the first coding path and the second coding path.

[0066] In this solution, by obtaining a coding strategy, a first coding path and a second coding path are selected for coding, so that the error correction capability of the coding meets the current communication environment and customer needs.

[0067] In a possible embodiment, the second coding path is a coding sublayer PCS of a physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers (IEEE).

[0068] This solution is compatible with standard Ethernet protocols, expanding the scope of application of the solution.

[0069] In a possible embodiment, the second coding path is physical layer coding of the IEEE 802.11 standard.

[0070] This solution is also compatible with wired network-related protocols, further expanding the scope of application of the solution.

[0071] In a possible embodiment, the error detection code used in the first coding path includes: BCH code, error detection code, parity check code, group counting code or constant ratio code.

[0072] In this solution, the first coding path can use multiple types of error detection codes, so that the first coding path can flexibly select error detection codes that can meet business needs.

[0073] In a possible embodiment, the error correction code used in the second coding path includes: Reed-Muller (RM) code, Hamming code, or Golay code.

[0074] In this solution, the second coding path can use multiple types of error detection codes, so that the second coding path can flexibly select error correction codes that can meet business needs.

[0075] In a third aspect, an embodiment of the present application provides a data receiving device, wherein the physical layer of the device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L decoding paths, where L is an integer greater than 1; and the device includes:

[0076] A selection unit, configured to select a first decoding path and a second decoding path; the first decoding path and the second decoding path being paths among the L decoding paths included in the first logical channel among the N logical channels;

[0077] a decoding unit, configured to perform error detection decoding on the first coded data stream through the first decoding path to obtain an error detection result;

[0078] An acquisition unit is used to obtain a first decoded data stream output by a target decoding path based on the aforementioned error detection result, where the aforementioned first decoded data stream is a data stream obtained by decoding the aforementioned first encoded data stream; the aforementioned target decoding path is the aforementioned first decoding path and / or the second decoding path, and the aforementioned second decoding path is used to perform error correction decoding on the aforementioned first encoded data stream.

[0079] In a possible embodiment, the first coded data stream is a coded data stream obtained by encoding the first data stream; the first data stream is a sub-data stream included in the target data stream, the second data stream is a sub-data stream arranged after the first data stream in the target data stream, and the second coded data stream is a data stream obtained by encoding the second data stream;

[0080] The aforementioned decoding unit is further configured to decode the aforementioned second encoded data stream to obtain a second decoded data stream; the aforementioned apparatus further comprises:

[0081] The sequence preserving unit is configured to store the second decoded data stream into a sequence preserving queue when the error detection result indicates that the first data stream in the first encoded data stream is erroneous.

[0082] In one possible embodiment, the third coded data stream is a coded data stream obtained by encoding the third data stream; the third data stream is a sub-data stream included in the target data stream; the fourth data stream is a sub-data stream arranged after the third data stream in the target data stream; and the fourth coded data stream is a coded data stream obtained by encoding the fourth data stream;

[0083] The aforementioned decoding unit is further configured to decode the aforementioned fourth encoded data stream to obtain a fourth decoded data stream;

[0084] The aforementioned sequence-preserving unit is further configured to store the aforementioned fourth decoded data stream into the sequence-preserving queue when the aforementioned third encoded data stream has not been decoded.

[0085] In one possible embodiment, the fifth coded data stream is a coded data stream obtained by encoding the fifth data stream; the fifth data stream is a sub-data stream included in the target data stream, the sixth data stream is a sub-data stream arranged after the fifth data stream in the target data stream, and the sixth coded data stream is a coded data stream obtained by encoding the sixth data stream;

[0086] The aforementioned decoding unit is further configured to decode the aforementioned sixth coded data stream to obtain a sixth decoded data stream;

[0087] The aforementioned order-preserving unit is further configured to store the aforementioned sixth decoded data stream into the aforementioned order-preserving queue when the fifth decoded data stream is in the aforementioned order-preserving queue, wherein the aforementioned fifth decoded data stream is a data stream obtained by decoding the aforementioned fifth encoded data stream.

[0088] In a possible embodiment, when the error detection result indicates that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream;

[0089] When the error detection result indicates that the first encoded data stream has errors, the decoded data stream output by the second decoding path belongs to the first decoded data stream.

[0090] In a possible embodiment, the first logical channel includes a first cache queue, and the first cache queue is used to cache the first encoded data stream;

[0091] When the error detection result indicates that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream;

[0092] When the error detection result indicates that the first coded data stream has errors, the first coded data stream is obtained from the first cache queue; and the first coded data stream is input into the second decoding path, and the decoded data stream output by the second decoding path belongs to the first decoded data stream.

[0093] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0;

[0094] When the error detection result indicates that the first data block is correct, the decoded data stream obtained by decoding the first data block by the first decoding path belongs to the first decoded data stream; and the first data block belongs to the P data blocks.

[0095] When the error detection result indicates that the second data block has an error, the decoded data stream output by the second decoding path belongs to the first decoded data stream; and the second data block belongs to the P data blocks.

[0096] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0; the first logical channel includes a first buffer queue for buffering the first encoded data stream;

[0097] When the error detection result indicates that the first data block is correct, the decoded data obtained by the first decoding path from decoding the first data block belongs to the first decoded data stream; and the first data block belongs to the P data blocks.

[0098] When the error detection result indicates that an error exists in the second data block, the first encoded data stream is obtained from the first cache queue; and the first encoded data stream is input into the second decoding path. The decoded data stream output by the second decoding path belongs to the first decoded data stream; and the second data block belongs to the P data blocks.

[0099] In a possible embodiment, the aforementioned device further includes:

[0100] a generating unit configured to generate an encoding strategy and a decoding strategy based on the communication quality of the aforementioned device; the encoding strategy being used to select an encoding path for encoding the seventh data stream, and the decoding strategy being used to select a decoding path for decoding the seventh encoded data stream; the seventh data stream including the first data stream, the first encoded data stream obtained by encoding the first data stream; and the seventh encoded data stream including the first decoded data stream;

[0101] The sending unit is used to send the above-mentioned encoding strategy to the data sending device.

[0102] In a possible embodiment, the aforementioned generating unit is specifically configured to:

[0103] When the communication quality of the device is higher than a first threshold, the encoding strategy is to select only the first encoding path to encode the seventh data stream, and the decoding strategy is to select only the first decoding path to decode the seventh encoded data stream; the first encoding path is used to perform error detection coding on the data stream;

[0104] When the communication quality of the aforementioned device is lower than the first threshold, the aforementioned encoding strategy is to select the aforementioned first encoding path and the second encoding path to encode the aforementioned seventh data stream, and the aforementioned decoding strategy is to select the aforementioned first decoding path and the aforementioned second decoding path to decode the aforementioned seventh encoded data stream; the aforementioned second encoding path is used to perform error correction encoding on the data stream.

[0105] In a possible embodiment, the second decoding path is the coding sublayer PCS of the physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers (IEEE).

[0106] In a possible embodiment, the second decoding path is physical layer coding of the IEEE 802.11 standard.

[0107] In a fourth aspect, an embodiment of the present application provides a data transmission device, wherein the physical layer of the device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L coding paths, where L is an integer greater than 1; the device includes:

[0108] a determining unit, configured to determine a distribution order of distributing the target data stream to the aforementioned N logical channels and a data volume of the data stream distributed each time;

[0109] The first data stream is a data stream distributed to the first logical channel of the N logical channels, and the first data stream belongs to a sub-data stream included in the target data stream;

[0110] A selection unit is configured to select a first encoding path and a second encoding path; the first encoding path and the second encoding path are paths in the L decoding paths included in the first logical channel of the N logical channels;

[0111] The first coding path is used to perform error detection coding on the first data stream, and the second coding path is used to perform error correction coding on the first data stream.

[0112] In a possible embodiment, the aforementioned device further includes:

[0113] a generating unit, configured to perform error detection coding on the first data stream through the first coding path to generate redundant information of the error detection coding;

[0114] performing error correction coding on the first data stream through the second coding path to generate redundant information of the error correction coding;

[0115] The first coded data stream is generated based on the redundant information of the error detection coding, the redundant information of the error correction coding, and the first data stream.

[0116] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0; the generation unit is specifically configured to perform error detection coding on each of the P data blocks through the first coding path.

[0117] In a possible embodiment, the apparatus further includes an acquisition unit configured to acquire a coding strategy, wherein the coding strategy is used to select the first coding path and the second coding path.

[0118] In a possible embodiment, the second coding path is a coding sublayer PCS of a physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers (IEEE).

[0119] In a possible embodiment, the second coding path is physical layer coding of the IEEE 802.11 standard.

[0120] In a possible embodiment, the error detection code used in the first coding path includes: BCH code, error detection code, parity check code, group counting code or constant ratio code.

[0121] In a possible embodiment, the error correction code used in the second coding path includes: Reed-Muller (RM) code, Hamming code, or Golay code.

[0122] In a fifth aspect, embodiments of the present application provide a data receiving device comprising a processor and a memory. The memory is coupled to the processor, and when the processor executes a computer program or computer instructions stored in the memory, the method described in any one of the first aspects can be implemented. The terminal device may also include a communication interface for communicating with other terminal devices. Exemplarily, the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface.

[0123] In a possible implementation, the terminal device may include:

[0124] Memory for storing computer programs or computer instructions;

[0125] Processor for:

[0126] Selecting a first decoding path and a second decoding path; the first decoding path and the second decoding path are paths in the L decoding paths included in the first logical channel of the N logical channels;

[0127] performing error detection decoding on the first coded data stream through the first decoding path to obtain an error detection result;

[0128] According to the aforementioned error detection result, a first decoded data stream output by the target decoding path is obtained, where the aforementioned first decoded data stream is a data stream obtained by decoding the aforementioned first encoded data stream; the aforementioned target decoding path is the aforementioned first decoding path and / or the second decoding path, and the aforementioned second decoding path is used to perform error correction decoding on the aforementioned first encoded data stream.

[0129] It should be noted that the computer programs or computer instructions in the memory of this application can be pre-stored or downloaded from the Internet when the terminal device is used. This application does not specifically limit the source of the computer programs or computer instructions in the memory. The coupling in the embodiments of this application is an indirect coupling or connection between terminal devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between terminal devices, units or modules.

[0130] In a sixth aspect, embodiments of the present application provide a data transmission device comprising a processor and a memory. The memory is coupled to the processor, and when the processor executes a computer program or computer instructions stored in the memory, the method described in any one of the first aspects can be implemented. The terminal device may also include a communication interface for communicating with other terminal devices. Exemplarily, the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface.

[0131] In a possible implementation, the terminal device may include:

[0132] Memory for storing computer programs or computer instructions;

[0133] Processor for:

[0134] Determine the order of distributing the target data stream to the aforementioned N logical channels and the amount of data stream distributed each time;

[0135] The first data stream is a data stream distributed to the first logical channel of the N logical channels, and the first data stream belongs to a sub-data stream included in the target data stream;

[0136] Selecting a first encoding path and a second encoding path; wherein the first encoding path and the second encoding path are paths in the L decoding paths included in the first logical channel of the N logical channels;

[0137] The first coding path is used to perform error detection coding on the first data stream, and the second coding path is used to perform error correction coding on the first data stream.

[0138] It should be noted that the computer programs or computer instructions in the memory of this application can be pre-stored or downloaded from the Internet when the terminal device is used. This application does not specifically limit the source of the computer programs or computer instructions in the memory. The coupling in the embodiments of this application is an indirect coupling or connection between terminal devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between terminal devices, units or modules.

[0139] In the seventh aspect, an embodiment of the present application provides a data transmission system, which includes a data sending device and a data receiving device; wherein the aforementioned data receiving device is used to execute the aforementioned method of any one of the aforementioned first aspects, and the aforementioned data sending device is used to execute the aforementioned method of any one of the aforementioned second aspects.

[0140] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program or computer instructions, and the aforementioned computer program or computer instructions are executed by a processor to implement any of the aforementioned methods of the above-mentioned first aspect.

[0141] In the ninth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program or computer instructions, and the aforementioned computer program or computer instructions are executed by a processor to implement any of the aforementioned methods in the second aspect.

[0142] In a tenth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed by a processor, any of the aforementioned methods in the first aspect will be implemented.

[0143] In the eleventh aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed by a processor, any of the aforementioned methods in the second aspect will be implemented.

[0144] In the twelfth aspect, an embodiment of the present application provides a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the aforementioned memory, so that the chip executes any of the aforementioned methods of the first aspect.

[0145] In the thirteenth aspect, an embodiment of the present application provides a chip, which includes a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the aforementioned memory, so that the chip executes any of the aforementioned methods in the second aspect.

[0146] The solutions provided in the third to thirteenth aspects are used to implement or cooperate with the corresponding methods provided in the first or second aspects above, and therefore can achieve the same or corresponding beneficial effects as the corresponding methods in the first or second aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0147] FIG1 is a schematic diagram of a scenario architecture provided by an embodiment of the present application;

[0148] FIG2 is a schematic diagram of another scenario architecture provided in an embodiment of the present application;

[0149] FIG3 is a flow chart of a data transmission method provided in an embodiment of the present application;

[0150] 4A and 4B are schematic flow charts of an encoding method provided in an embodiment of the present application;

[0151] FIG5 is a schematic diagram of a decoding method provided in an embodiment of the present application;

[0152] FIG6 is a schematic diagram of an order-preserving queue workflow provided by an embodiment of the present application;

[0153] FIG7 is a schematic diagram of a data transmission architecture provided by an embodiment of the present application;

[0154] FIG8 is a schematic diagram of another data transmission architecture provided in an embodiment of the present application;

[0155] FIG9 is a schematic diagram of the logical structure of a data receiving device provided in an embodiment of the present application;

[0156] FIG10 is a schematic diagram of the logical structure of a data sending device provided in an embodiment of the present application;

[0157] FIG11 is a schematic diagram of the physical structure of a data receiving device provided in an embodiment of the present application;

[0158] FIG12 is a schematic diagram of the physical device structure of the data sending device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0159] In the embodiment of the present application, "multiple" refers to two or more. In the embodiment of the present application, "and / or" is used to describe the association relationship of associated objects, indicating three relationships that can exist independently. For example, A and / or B can be expressed as follows: A exists alone, B exists alone, or A and B exist at the same time. The description methods such as "at least one of a1, a2, ... and an" used in the embodiment of the present application include the situation where any one of a1, a2, ... and an exists alone, and also include any combination of any multiple of a1, a2, ... and an, each of which can exist alone; for example, the description method of "at least one of a, b and c" includes the situation where a is alone, b is alone, c is alone, a and b combination, a and c combination, b and c combination, or abc combination.

[0160] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0161] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as long term evolution (LTE) system, frequency division duplex (FDD), time division duplex (TDD) system, world-wide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) system or new radio (NR), sixth generation (6G) system or future communication system. The 5G mobile communication system described in this application includes a non-standalone (NSA) 5G mobile communication system or a standalone (SA) 5G mobile communication system. The communication system may also be a public land mobile network (PLMN), a device-to-device (D2D) communication system, a machine-to-machine (M2M) communication system, an Internet of Things (IoT) communication system, a vehicle to everything (V2X) communication system, an uncrewed aerial vehicle (UAV) communication system, or other communication systems.

[0162] In addition, the network architecture and service scenarios described in the embodiments of this application are intended to more clearly illustrate the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the implementation of this application. Those skilled in the art will appreciate that with the evolution of network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.

[0163] To facilitate understanding of the embodiment of the present application, a scenario architecture diagram of the embodiment of the present application is first described in detail with reference to FIG1 .

[0164] Exemplarily, as shown in FIG1 , the scenario architecture includes a first electronic device 101 and a second electronic device 102. The first electronic device 101 can communicate directly with the second electronic device 102 wirelessly (a wireless connection is indicated by a dotted line in FIG1 ). In addition, the first electronic device 101 can also be connected to the Ethernet 103 wirelessly or by wire (a wired connection is indicated by a solid line in FIG1 ), and the second electronic device 102 is also connected to the Ethernet 103 by wire or by wireless, thereby realizing communication between the first electronic device 101 and the second electronic device 102. The interface used in this scenario may be, for example, an Ethernet interface or a high-speed serial computer expansion bus (Peripheral Component Interconnect Express, PCIe) interface.

[0165] It should be noted that the data and connection method of the second electronic device and the first electronic device included in the data transmission framework as shown in Figure 1 are only an example. In actual application, the data of the second electronic device and the quantity and connection method of the first electronic device are not limited here.

[0166] The first electronic device 101 or the second electronic device 102 may be a device that provides voice or data connectivity to a user, and may be called user equipment (UE), a mobile station, a subscriber unit, a station, or terminal equipment (TE), etc. The first electronic device 101 or the second electronic device 102 may be a cellular phone, a personal digital assistant (PDA), a wireless modem, a handheld device, a laptop computer, a cordless phone, a wireless local loop (WLL) station, a computer, a server, a box-type or frame-type Ethernet switch, a repeater, a bridge, a switch, a router, a local area network switch (LAN switch, LSW), a radio remote unit hub (rHUB), or a tablet computer, etc.

[0167] With the development of wireless communication technology, any electronic device that can access a communication system, communicate with the network side of a communication system, or communicate with other objects through a communication system can be a terminal in the embodiments of the present application, such as: terminals and cars in intelligent transportation, household appliances in smart homes, power meter reading instruments, voltage monitoring instruments, environmental monitoring instruments in smart grids, video surveillance instruments in intelligent security networks, cash registers, related products in smart cities, and so on.

[0168] These electronic devices may also be other hardware with network communication capabilities, such as radio frequency devices, processors, memory, input / output (I / O) devices, and various peripheral circuits. The radio frequency device may be any of the following: a radio remote unit (RRU), a radio unit (RU), an active antenna unit (AAU), or a pico radio remote unit (pRRU).

[0169] Before the second electronic device 102 sends a message to the first electronic device 101, the second electronic device 102 needs to encode the message according to the physical layer coding protocol and add a cyclic redundancy check (CRC) sequence. Accordingly, after the first electronic device 101 receives the coded message, it needs to perform a CRC check on the coded message. If an error occurs in the coded message during transmission, the first electronic device 101 first corrects the coded message. For example, in the process of transmitting messages based on the enhanced common public radio interface (eCPRI) in Ethernet, the first electronic device 101 can use basic forward error correction (FEC) or Reed Solomon (RS) FEC to correct the coded message. After the first electronic device 101 corrects the coded message, it performs a CRC check on the coded message.

[0170] In order to facilitate understanding of the message processing process by the first electronic device 101 and the second electronic device 102, an embodiment of the present application exemplarily provides another scenario architecture diagram, as shown in FIG2 .

[0171] Figure 2 includes a first electronic device 101, a second electronic device 102, and a physical channel 201. The first electronic device 101 includes N logical channels and a data merging and distribution module, where N is an integer greater than 1. The second electronic device 102 also includes N logical channels and a data merging and distribution module.

[0172] The logical channel in this application may refer to the physical coding sublayer lane (PCSL) of the physical layer of the IEEE 802.3 standard, or the physical layer coding channel of the IEEE 802.11 standard, or the forward error correction coding lane (FECL), or the channel for independent FEC encoding and decoding and symbol distribution deployed in 200G, 400G and higher-speed Ethernet interfaces. For example, at the data sender, taking the second electronic device 102 as an example, the original data stream is distributed to at least one FEC encoding channel, and the at least one FEC encoding channel can be considered as a logical channel. At the data receiver, taking the first electronic device 101 as an example, the first electronic device 101 receives data from the physical channel, and the data merging and distribution module distributes the data to at least one FEC decoding channel, and the at least one FEC decoding channel can be considered as a logical channel. The logical channel is generally visible in the chip, and the above-mentioned first electronic device 101 and second electronic device 102 can also be implemented by a field programmable gate array (FPGA) or chip.

[0173] It is understandable that the second electronic device 102 acts as the sender of the signal and the first electronic device 101 acts as the receiver of the signal, and the functions implemented by the logical channel in the second electronic device 102 and the logical channel in the first electronic device 101 are different. The logical channel in the second electronic device 102 can be used to encode the data stream and add cyclic check codes, while the logical channel in the first electronic device 101 can be used to decode the received data stream, complete data verification work, and remove cyclic check codes. In addition to implementing functions such as encoding and adding cyclic check codes, the logical channel can also implement other functions in the physical encoding process, such as: scrambling, descrambling, interweaving, deinterweaving, channel synchronization, alignment locking, jitter elimination, and insertion of alignment marker (AM) groups. This application does not limit what specific functions the logical channel can implement.

[0174] The physical channel 201 generally refers to a channel that transmits information via a physical medium, such as a telephone line, optical fiber, coaxial cable, microwave, etc. The physical channel 201 may include only one physical channel or multiple physical channels, and the number of physical channels is not limited in this application.

[0175] It is understandable that the correspondence between physical channels and logical channels can be a logical channels corresponding to b physical channels, where a = b*c, or b = a*c, where a, b, and c are positive integers. For PCSL or FECL, c logical channels correspond to one physical channel. The second electronic device 102 distributes the original data stream to N logical channels. If one or more logical channels correspond to one physical channel, the data on the logical channel can be sent to the corresponding physical channel. The first electronic device receives the data sent by the b physical channels of the second electronic device through b physical channels, and then distributes the data of one physical channel to c logical channels. For a 200G Ethernet interface, there can be 8 parallel logical channels PCSL. The data streams on two logical channels can be distributed to one physical channel. Each logical channel transmits 25G payload data. Two logical channels correspond to one physical channel, and one physical channel transmits 50G payload data.

[0176] In a possible implementation, taking the second electronic device 102 as an example, it is necessary to perform a merging operation on the encoded data streams output by the above-mentioned N logical channels through a data merging and distribution module, and distribute the merged data stream to the physical channel 201.

[0177] Exemplarily, the original data stream is divided into multiple equal-length sub-data streams, and these multiple equal-length sub-data streams are sequentially sent to the N logical channels. Then, the data merging and distribution module will sort the coded data streams output by the N logical channels in the order of the multiple equal-length sub-data streams, and merge them into a new data stream. If physical channel 201 includes only one physical channel, the new data stream can be directly sent to physical channel 201. If physical channel 201 includes multiple physical channels, the data merging and distribution module will further divide the new data stream and distribute it to the multiple physical channels of physical channel 201.

[0178] In one possible implementation, taking the first electronic device 101 as an example, it is necessary to perform a merge operation on the received coded data stream through the data merging and distribution module, and divide the merged coded data stream into N sub-coded data streams and distribute them to N logical channels. The N logical channels then decode and cyclically check the N sub-coded data streams and generate the original data stream shown by the first electronic device 101.

[0179] It is understood that the original data stream in the second electronic device 102 is the source data to be transmitted, while the original data stream in the first electronic device 101 is the received and decoded data. In the event of a decoding error at the receiving end, the original data stream in the second electronic device 102 and the original data stream in the first electronic device 101 may not be completely identical.

[0180] In one possible implementation, each logical channel in the second electronic device 102 includes one or more coding paths, which are used to encode the data stream assigned to the current logical channel. The coding used by the coding path can be, for example, the coding used in the coding sublayer PCS of the physical layer of the IEEE 802.3 standard, the physical layer coding, error detection coding, or error correction coding of the IEEE 802.11 standard. The coding used in the coding sublayer PCS of the physical layer of the IEEE 802.3 standard can be, for example, RS coding, 64B / 66B coding, 128B / 130B coding, or 256B / 257B coding. Among them, 64B / 66B coding is a data code block coding method that carries a 2-bit synchronization header (sync header) and carries 8 bytes (64 bits), which is used as the physical layer transmission coding format of Ethernet such as 10 Gigabit, 40G / 100G / 200G / 400G. The physical layer coding of the IEEE 802.11 standard may be, for example, direct sequence spread spectrum (DSSS), complementary code keying (CCK), convolutional code, or low density parity check code (LDPC). The error correction coding may be, for example, Reed-Solomon coding, Reed-Morris coding, Hamming code, or Golay code. The error detection coding may be, for example, BCH code, error detection code, parity check code, group counting code, or constant ratio code.

[0181] For example, a coding path may include one or more codes at the same time. The specific codes used in the coding path are not limited in this embodiment of the application.

[0182] Similarly, each logical channel in the first electronic device 101 includes one or more decoding paths, which are used to decode the encoded data stream assigned to the current logical channel. It can be understood that the decoding path and the above-mentioned encoding path are in a corresponding relationship. Exemplarily, the second electronic device 102 includes two logical channels, each of which includes an encoding path, and the encoding used by the encoding path is RS encoding and RM encoding, respectively. Then, the first electronic device 101 also includes two logical channels, each of which includes a decoding path, which is also used to decode the RS-encoded data stream and the RM-encoded data stream, respectively.

[0183] In one possible implementation, the logical channels in Figure 2 can be flexibly enabled and disabled based on application scenarios and business requirements. For example, if the current business scenario requires 10 GB / s bandwidth and there are currently six logical channels running, each providing 2 GB / s of bandwidth, indicating that the current available bandwidth exceeds the current business requirements, the available bandwidth can be adjusted to meet the current business requirements by disabling one logical channel.

[0184] Similarly, if the current available bandwidth is lower than the current business demand, a logical channel can be opened to make the current available bandwidth meet the current business demand.

[0185] In one possible implementation, the bandwidth provided by each logical channel can be flexibly determined based on application scenarios and business requirements. For example, if the bandwidth required by the current service is determined to be 10 GB / s, two logical channels can be set, each providing 5 GB / s of bandwidth. Alternatively, five logical channels can be set, each providing 2 GB / s of bandwidth. This solution allows for flexible expansion of the communication architecture and supports rate evolution, thereby better meeting business needs and adapting to different application scenarios.

[0186] It is understandable that for a logical channel in the second electronic device 102, there is a uniquely corresponding logical channel in the first electronic device 101. For a coding path in the second electronic device 102, there is a uniquely corresponding decoding path in the first electronic device 101. The encoding method and decoding method used by the two corresponding coding paths and decoding paths also correspond to each other. For example, if the coding method in the coding path is RS coding, the corresponding decoding path can decode the RS-encoded coded data stream. For example, before the second electronic device 102 sends data, it can indicate the logical channel and decoding path for receiving the data by adding a mark. The method of adding the mark is not limited in this application.

[0187] With the development of information technology, the interface rate and communication capacity of application scenarios such as computing and storage are increasing. Methods to increase the interface rate and communication capacity include: increasing the carrier frequency of the signal and increasing the number of logical channels in the physical layer. However, the increase in communication rate usually leads to a decrease in the signal's anti-interference ability and an increase or decrease in inter-symbol interference (ISI), which reduces the link quality. In order to address the problem of link quality degradation, high-gain forward error correction codes are usually used to ensure the error correction capability of the signal receiving end in high bit error conditions. However, due to the long single code length, this method leads to excessively long FEC frame reception and decoding delays at the signal receiving end, making this solution unable to meet the requirements of low-latency scenarios.

[0188] In order to simultaneously meet the user's requirements for low latency and high gain during data transmission, the embodiment of the present application exemplarily provides a flow chart of a data transmission method, as shown in Figure 3. The method includes but is not limited to the following steps:

[0189] S301: The second electronic device 102 determines the order of distributing data streams to N logical channels and the amount of data in each distribution of the data stream.

[0190] The above-mentioned N is an integer greater than 1, and the N logical channels are the N logical channels shown in the above-mentioned FIG. 2 . For detailed introduction, please refer to the introduction of FIG. 2 , which will not be repeated here.

[0191] In a possible implementation, the order of distributing the data stream is to distribute the original data stream (also referred to as the data stream to be sent) to the N logical channels in a round-robin manner.

[0192] For example, when N is equal to 3, the names of the three logical channels are a, b, and c. A cycle of distributing data in a round-robin manner may be, for example, a, b, c, a, b, c...; or a, b, c, c, b, a...; or a, a, b, b, c, c.... In the specific implementation, this application does not limit the distribution method used.

[0193] In one possible implementation, the data volume of each distributed data stream may be determined based on a coding scheme in each logical channel. The coding scheme may be, for example, coding used in the PCS coding sublayer of the physical layer of the IEEE 802.3 standard, physical layer coding, error detection coding, or error correction coding of the IEEE 802.11 standard.

[0194] For example, if one encoding path in the first logical channel uses RS(n1, k1) encoding, the data volume of each distributed data stream can be k1 bytes, 2k1 bytes, or a multiple of k1. k1 represents the length of the information bit, and n1 represents the code length of the source information after RS(n1, k1) encoding. This is equivalent to an RS(n1, k1) encoding that can only encode k1 bytes of information at a time and generate code information with a length of n1 bytes.

[0195] Exemplarily, if the first logical channel includes two encoding paths that respectively use RS (n1, k1) encoding and BCH (n2, k2) encoding, the amount of data distributed each time the data stream can be k1*k2 bytes or multiples of k1*k2 bytes. For example, when k1 is 3 and k2 is 4, the amount of data distributed each time the data stream can be 12 bytes, 24 bytes, or multiples of 12 bytes. Among them, k2 in BCH (n2, k2) represents the length of the information bit, and n2 represents the code length of the source information after BCH (n2, k2) encoding. This is equivalent to a BCH (n2, k2) encoding that can only encode k2 bytes of information at a time and generate code information with a length of n2 bytes.

[0196] The above method is an exemplary method for introducing the amount of data distributed each time through the first logical channel. For the method of distributing data streams to the remaining logical channels of the above N logical channels, please refer to the distribution method to the first logical channel, which will not be repeated here.

[0197] For how to encode the data stream when the first logical channel includes two encoding paths, please refer to the relevant introduction of the subsequent step S302, which will not be described in detail here.

[0198] It should be understood that the above-mentioned amount of data distributed to the logical channel each time is exemplary, and the present application does not limit the amount of data distributed to the logical channel each time.

[0199] In one possible implementation, before distributing the data stream to the N logical channels according to the distribution strategy, an alignment marker (AM) group needs to be inserted into the original data stream. The AM group is used by the data receiving end to correct and reorder the received data.

[0200] In a possible implementation, before the first logical channel starts encoding the first data stream, it is necessary to insert an AM group into the first encoded data stream. The AM group is used by the data receiving end to correct and reorder the received data.

[0201] S302: The second electronic device 102 encodes the first data stream according to the encoding strategy to generate a first encoded data stream.

[0202] The first data stream is a data stream distributed to the first logical channel among the N logical channels in a single time according to the distribution strategy.

[0203] Similarly, this step exemplarily introduces how to encode the first data stream according to the encoding strategy to show how each of the N logical channels encodes the first data stream according to the encoding strategy.

[0204] In a possible implementation, the encoding strategy is used to select a first encoding path and a second encoding path for encoding the first data stream.

[0205] In one possible implementation, the encoding strategy may be manually set. For example, an operation and maintenance person or a customer manually selects the encoding type and encoding parameters based on current communication quality, application scenarios, or business requirements.

[0206] In another possible implementation, the encoding strategy is provided by the first electronic device 101. The first electronic device 101 is the data receiver. The first electronic device 101 determines an appropriate encoding strategy and decoding strategy based on the quality of the received signal and sends the encoding strategy and decoding strategy to the second electronic device 102. The specific implementation is not described in detail here; please refer to the following related content.

[0207] In one possible implementation, the first logical channel includes L coding paths, where L is an integer greater than 1. The L coding paths include at least one coding path for adding error detection coding and at least one coding path for adding error detection coding. When multiple coding paths for error detection coding are included, each coding path for error detection coding has a different error correction capability.

[0208] Exemplarily, the first logical channel includes three coding paths, which include one coding path for error detection coding and two coding paths for error correction coding. The error detection code is BCH (n1, k1), and the two error correction codes are RS (n2, k2) and RS (n3, k3). Among them, n1, n2 and n3 are the code lengths after coding, and k1, k2 and k3 are the information lengths before coding. The specific parameters of the error detection code and error correction code are not limited in this application. The error detection code can be, for example, BCH (1318, 1285) or eBCH (1320, 1285). Among them, eBCH (1320, 1285) is composed of BCH (1318, 1285) and parity check of BCH (1318, 1285). The error correction code can be, for example, RS (952, 924) or RS (544, 514).

[0209] In one possible implementation, the encoding strategy is used to select a first encoding path and a second encoding path from L encoding paths of a first logical channel, wherein the first encoding path is used to perform error detection encoding on the first data stream, and the second encoding path is used to perform error correction encoding on the first data stream.

[0210] Exemplarily, the codes used by the L coding paths are BCH (n1, k1), RS (n2, k2) and RS (n3, k3) respectively. Wherein L is equal to 3. The code used by the first coding path can be selected to be BCH (n1, k1), and the code used by the second coding path can be RS (n2, k2). The above-mentioned error detection coding is a coding with error detection capability, for example, it can be a BCH code, an error detection code, a parity check code, a group counting code or a constant ratio code. Whether the error detection coding has error correction capability is not limited in this application. The above-mentioned error correction coding is a coding with error correction capability, for example, it can be an RS code, an RM code, a Hamming code or a Golay code. The embodiment of the present application does not limit the coding type and coding parameters selected for the first coding path and the second coding path.

[0211] Depending on whether the encoded code retains the original data, the encoding method can be roughly divided into systematic code and non-systematic code.

[0212] The term "systematic code" refers to a coded code consisting of two parts: the original information data and redundant information. The redundant information is the redundant information obtained after encoding and is used to verify and correct the original information data during the decoding process. For example, assume that the original information data is A, the redundant information obtained after Hamming encoding (n1, k1) is B, and the coded code is C. Then, A and B can form C, for example, C = [A, B] or C = [B, A]. A can be, for example, k1 consecutive binary digits. When k1 = 4, A can be, for example, A = [1 1 0 1]. Similarly, B can be, for example, n1-k1 consecutive binary digits. When n1 = 7, B can be, for example, B = [1 0 0]. Then, C can be, for example, C = [1 1 0 1 1 0 0] or C = [1 0 0 1 1 0 1].

[0213] Non-systematic encoding means that the encoded code does not include the original information data, and the original information data must be restored through decoding. For example, assume that the original information data is A, and the code information obtained after non-systematic encoding is D, but D does not contain A.

[0214] To further understand how to encode the first data stream and generate the first encoded data stream, please refer to the schematic flow chart of the encoding method provided in FIG4A and FIG4B .

[0215] As shown in FIG4A , the first logical channel is used as an example to illustrate how to encode the first data stream when the first logical channel selects two encoding paths.

[0216] In one possible implementation, the first data stream is input into a first logical channel. A first encoding path first performs error detection encoding on the first data stream to generate redundant information for the error detection encoding of the first data stream. Then, a second encoding path performs error correction encoding on the first data stream to generate redundant information for the error correction encoding of the first data stream. The first data stream, the redundant information for the error detection encoding, and the redundant information for the error correction encoding form a first coded data stream. This embodiment of the present application does not limit how the first coded data stream is formed.

[0217] Exemplarily, the way of composing the first coded data stream may be, for example, first coded data stream = [first data stream, redundant information of error detection coding, redundant information of error correction coding], first coded data stream = [first data stream, redundant information of error correction coding, redundant information of error detection coding], first coded data stream = [redundant information of error correction coding, first data stream, redundant information of error detection coding], first coded data stream = [redundant information of error correction coding, redundant information of error detection coding, first data stream], first coded data stream = [redundant information of error detection coding, first data stream, redundant information of error correction coding] or first coded data stream = [redundant information of error detection coding, redundant information of error correction coding, first data stream].

[0218] In one possible implementation, the first coded data stream generated by the first logical channel consists of three parts of data: the first data stream, redundant information of the error correction code, and redundant information of the error detection code. When the first electronic device 101 receives the data, it can first perform error detection on the received first coded data stream based on the redundant information of the error detection code. If the first coded data stream has no errors, it can be directly output as decoded data. If errors are detected in the first coded data stream, the first coded data stream can be corrected according to the error correction code, and the corrected data can be directly output as decoded data.

[0219] Because error detection coding is typically simple and decoding is easy, this approach can reduce the decoding latency of the first coded data stream. Even if there are errors in error detection, the first coded data stream can still be decoded using error correction coding with high coding gain, thereby preserving the high coding gain of the first coded data stream. This approach can reduce the decoding latency of the data stream while preserving the high coding gain of the data stream.

[0220] In another possible implementation, the first data stream is input into the first logical channel. The first encoding path first performs error detection coding on the first data stream to generate redundant information for the error detection coding of the first data stream. Then, the second encoding path performs error correction coding on the data stream consisting of the first data stream and the redundant information of the error detection code to generate redundant information for the error correction coding of the "first data stream and the redundant information of the error detection code." This solution differs from the above solution in that the second encoding path performs error correction coding on the "first data stream + the redundant information of the error detection code." By performing error correction coding on the "first data stream + the redundant information of the error detection code" by the second encoding path, if an error is detected in the first data stream, the "first data stream + the redundant information of the error detection code" can be error-corrected and decoded as a whole. The decoded first data stream has a higher coding gain. How the first coded data stream is formed from the redundant information for the error detection coding, the redundant information for the error correction coding, and the first data stream generated by the first logical channel is described previously and will not be further elaborated here.

[0221] In another possible implementation, before error detection coding is performed on the first data stream, the first data stream is first divided into P data blocks. The P data blocks may be, for example, fixed-length physical check units (Pchit), and the size of the P data blocks is not limited in this application.

[0222] For example, the P data blocks are of uniform size, each containing 10 bits of data. First, the first encoding path sequentially performs error detection encoding on the P data blocks and generates P pieces of error detection coded redundant information for the P data blocks. Therefore, the error detection coded redundant information shown in FIG4A includes P pieces of sub-redundant information. Subsequently, the second encoding path performs error correction encoding on the first data stream and outputs a first coded data stream. For the specific implementation of the operations after the first encoding path completes encoding of the P data blocks, please refer to the above-mentioned related content and will not be repeated here.

[0223] The first data stream is divided into P data blocks, and error detection coding is performed on each of the P data blocks to reduce the decoding delay of the first data stream at the data receiving end. The specific implementation process is described in the subsequent step S304 and will not be described in detail here.

[0224] As shown in Figure 4B, another encoding method is provided, which also uses the first logical channel as an example to illustrate how to encode the first data stream when the first logical channel selects two encoding paths.

[0225] In one possible implementation, the first data stream is input into the first logical channel, and the second coding path is first used to perform error correction coding on the first data stream to generate redundant information of the error correction coding of the first data stream. Then, the first coding path is used to perform error detection coding on the first data stream to generate redundant information of the error detection coding of the first data stream. The first coded data stream is composed of the first data stream, the redundant information of the error correction coding, and the redundant information of the error detection coding. The embodiment of the present application does not limit how to form the first coded data stream. For the specific composition method, please refer to the aforementioned related content, which will not be repeated here. The difference between this scheme and the aforementioned related scheme is that this scheme first performs error correction coding on the first data stream through the second logical channel, and then performs error detection coding on the first data stream through the first logical channel. The beneficial effects achieved are similar to those of the aforementioned related schemes. For the specific content of the beneficial effects, please refer to the aforementioned related content, which will not be repeated here.

[0226] In another possible implementation, the first data stream is input into the first logical channel. The second encoding path first performs error correction encoding on the first data stream to generate redundant information for the error correction encoding of the first data stream. The first encoding path then performs error detection encoding on the data stream consisting of the first data stream and the redundant information of the error correction code to generate redundant information for the error detection encoding of "the first data stream and the redundant information of the error correction code." The beneficial effects achieved by this implementation are similar to those of the aforementioned related solutions. For details on the beneficial effects, please refer to the aforementioned related content and will not be elaborated upon here.

[0227] In another possible implementation, after error correction encoding is performed on the first data stream and before error detection encoding is performed on the first data stream, the first data stream can be divided into P data blocks. The size of the P data blocks is not limited in this application. Exemplarily, the P data blocks are of the same size, and each data block contains 10 bits of data. Then, the first encoding path performs error detection encoding on the P data blocks in sequence, and generates P pieces of error detection coded redundant information for the P data blocks. Therefore, the error detection coded redundant information shown in FIG4B includes P pieces of sub-redundant information, and the first coded data stream is output.

[0228] The first data stream is divided into P data blocks, and error detection coding is performed on each of the P data blocks to reduce the decoding delay of the first data stream at the data receiving end. The specific implementation process is described in the subsequent step S304 and will not be described in detail here.

[0229] In a possible implementation, the encoding type and / or encoding parameters used by the first encoding path and / or the second encoding path may be changed according to the encoding strategy.

[0230] Exemplarily, in the current case, the code used by the first coding path is BCH (n1, k1), and the code used by the second coding path is RS (n2, k2). The second electronic device 102 receives a new coding strategy, which instructs the second electronic device to replace the code used by the second coding path with RS (n3, k3). Among them, n2 and n3 are different. Similarly, the new coding strategy can instruct the second electronic device 102 to replace the code used by the second coding path with RM (n3, k3). Similarly, the new coding strategy can also instruct the second electronic device to replace the codes used by the first coding path and the second coding path with BCH (n4, k4) and RM (n3, k3), respectively.

[0231] By dynamically adjusting the encoding types and parameters used in the first and second encoding paths according to the encoding strategy, the manner in which the second electronic device 102 generates the encoded data stream can be dynamically adjusted as the communication environment, user needs, and application scenarios change. This can thereby improve the encoding efficiency of the second electronic device, increase the communication rate, and reduce decoding latency. This application does not limit the basis for determining the above encoding strategy, and may, for example, be user needs, application scenarios, link quality, or communication quality.

[0232] In one possible implementation, if the communication quality continues to deteriorate and the error correction code used by the second coding path cannot effectively cope with the large number of errors in the received signal, the coding strategy can also be adjusted so that the second coding path uses an error correction code with stronger error correction capability to improve the communication quality.

[0233] For example, if the first electronic device 101 detects more than ten consecutive errors in the received coded data stream, and the current coding scheme cannot effectively protect the original data stream, the first electronic device 101 generates a new coding strategy, which is used to instruct the second electronic device 102 to select an error correction code with a higher coding gain. This, in turn, better protects the original data stream, ensuring that the decoded data stream decoded by the first electronic device 101 has a lower bit error rate and meets current user needs.

[0234] In one possible implementation, if the communication quality is good, the error correction code used in the second coding path can be appropriately adjusted to reduce the error correction capability of the code, reduce the redundant information generated by the error correction code, and improve the transmission rate of useful data.

[0235] For example, if the first electronic device 101 detects that all 10 consecutive received coded data streams are correct, the first electronic device 101 generates a new coding strategy that instructs the second electronic device 102 to select an error correction code with a weaker coding gain. Error correction codes with a weaker coding gain generate less redundant information, thereby improving the data transmission bit rate and increasing the transmission rate of useful data.

[0236] In a possible implementation, if the communication quality deteriorates more seriously and the multiple consecutive data streams received by the first electronic device 101 are all erroneous data streams, the first coding path can be closed and only the first data stream is error-corrected.

[0237] For example, if errors occur in one hundred consecutive first coded data streams received by the first electronic device 101, the above-mentioned coding strategy can be used to instruct the first coding path to stop working, so that the second electronic device can only perform error correction coding on the original data stream through the second coding path, and generate a coded data stream with only redundant information of error correction coding. Similarly, when the first electronic device 101 receives the data stream, it directly performs error correction decoding on the data stream to generate the decoded original data stream. This solution can prevent the second electronic device 102 from no longer performing error detection coding on the original data stream when the communication environment deteriorates or the link quality decreases, and thus does not generate redundant information of error detection coding. This reduces the coding complexity of the data and the complexity of data decoding, and improves the transmission rate of useful data.

[0238] In a possible implementation, if the communication quality is very good and no error occurs in the multiple consecutive data streams received by the first electronic device 101, the second coding path may be closed and only the first data stream may be error-detected.

[0239] For example, if the first electronic device 101 receives one hundred consecutive first coded data streams without any error, the above-mentioned coding strategy can be used to instruct the second coding path to stop working, so that the second electronic device can only perform error detection coding on the original data stream through the first coding path, and generate a coded data stream with only redundant information of error detection coding. Similarly, when the first electronic device 101 receives the data stream, it directly performs error detection decoding on the data stream to generate the decoded original data stream. This solution can prevent the second electronic device 102 from performing error correction coding on the original data stream when the communication environment number or link quality increases, and thus does not generate redundant information of error correction coding. This reduces the coding complexity of the data and the complexity of data decoding, and improves the transmission rate of useful data.

[0240] It should be understood that the encoding strategy used by the second electronic device 102 at the data sending end and the decoding strategy used by the first electronic device 101 at the data receiving end are in a corresponding relationship. For example, if the data sending end uses the encoding method BCH (n1, k1) to obtain the encoded data stream, then the data receiving end receives the encoded data stream, and the decoding method of the data stream corresponds to the encoding method of BCH (n1, k1). In addition, there are many different decoding methods for the same encoding method in the prior art. For example, the decoding method is generally divided into hard decoding and soft decoding. The decoding method is a prior art and will not be described in detail in this application. The embodiment of the present application believes that the selection of the decoding method is determined by the decoding strategy, and each decoding method can be represented by a decoding path.

[0241] In a possible implementation, if an AM group is inserted before the original data stream is distributed to the N logical channels, the first data stream contains at least one AM.

[0242] S303 : The second electronic device 102 sends the first encoded data stream to the first electronic device 101 .

[0243] It should be understood that the first coded data stream is an exemplary representation of the data stream sent by the second electronic device 102 to the first electronic device 101. For ease of understanding, the subsequent description uses the transmission of the first coded data stream as an example to introduce the implementation process of the data stream sent by the second electronic device 102 to the first electronic device 101.

[0244] The second electronic device 102 may send the first encoded data stream to the first electronic device 101 via wired communication or wireless communication.

[0245] Exemplarily, the second electronic device 102 transmits the first coded data stream to the first electronic device 101 via wireless communication. The second electronic device 102 may transmit the first coded data stream to the first electronic device 101 via a physical medium attachment (PMA) sublayer and a physical medium dependent (PMD) sublayer.

[0246] Exemplarily, the second electronic device 102 transmits the first coded data stream to the first electronic device 101 via wired communication. The second electronic device 102 may generate a wireless carrier according to IEEE 802.11 standards to transmit the first coded data stream to the first electronic device 101.

[0247] In the specific implementation process, wired communication, wireless communication, or a hybrid network communication of wired communication and wireless communication can be used. In addition, communication technologies such as optical communication can also be used, which is not limited in the embodiments of this application.

[0248] In one possible implementation, the N logical channels of the second electronic device 102 generate N coded data streams through encoding. The data merging and distribution module shown in FIG2 distributes these N coded data streams to one or more physical channels. The one or more physical channels transmit the N coded data streams to the first electronic device 101. For the specific implementation of this step, please refer to the relevant content of FIG2 above and will not be repeated here.

[0249] S304: The first electronic device 101 enables a first logical channel of the N logical channels to decode the first coded data stream according to a decoding strategy to generate a first decoded data stream.

[0250] In one possible implementation, the first electronic device 101 receives a data stream transmitted from the second electronic device 102. The first electronic device 101 distributes the received data stream to N logical channels within the first electronic device 101 via a data merging and distribution module. This data merging and distribution module is the same as the data merging and distribution module included in FIG. 2 For details on how the first electronic device 101 distributes the received data stream to the N logical channels via the data merging and distribution module, please refer to FIG. 2 and will not be further described here.

[0251] For example, the data merging and distributing module in the first electronic device 101 distributes the data stream to the corresponding logical channel according to the AM group in the data stream. The embodiment of the present application does not limit how to implement data merging and distribution.

[0252] For example, the data stream output by the second electronic device 102 is added with an address tag, and the data merging and distributing module in the first electronic device 101 distributes the data stream to the corresponding logical channel according to the address tag. The embodiment of the present application does not limit how to implement data merging and distribution.

[0253] After the first electronic device 101 completes the distribution operation on the received coded data stream, the N logical channels in the first electronic device 101 start decoding the coded data stream.

[0254] It should be understood that the one-to-one correspondence between the N logical channels in the first electronic device 101 and the N logical channels in the second electronic device 102 does not mean that the logical channels in the first electronic device 101 and the second electronic device 102 are exactly the same. For a detailed description, please refer to the relevant content of step S302 and will not be repeated here.

[0255] In a possible implementation, the second electronic device 102 adjusts the number of operating logical channels according to application scenarios and business requirements, and correspondingly, the first electronic device 101 also makes corresponding adjustments.

[0256] For example, if the second electronic device 102 closes two logical channels, the first electronic device 101 will also close the two logical channels accordingly. Moreover, there is a correspondence between the logical channels closed in the first electronic device 101 and the second electronic device 102. Similarly, if the second electronic device 102 opens a logical channel, the first electronic device 101 will also open a logical channel, and there is a correspondence between the two newly opened logical channels. The above-mentioned correspondence means that the encoding paths that can be selected in the logical channel are the same as the encoding paths that are determined to be selected.

[0257] For ease of understanding, the following related content also takes the first logical channel among the N logical channels as an example to introduce the decoding process of the first electronic device 101. In this embodiment of the application, the coded data stream allocated to the first logical channel is referred to as the first coded data stream.

[0258] It is understood that the first coded data stream received by the first logical channel in the first electronic device 101 corresponds to the first coded data stream generated by the first logical channel in the second electronic device 102, but is not identical. Because noise is introduced during data transmission, the data stream processed by the first logical channel in the first electronic device 101 is referred to as the first coded data stream in this embodiment for ease of understanding.

[0259] It can be understood that the decoding process of the received coded data stream by the logical channel in the first electronic device 101 is the inverse process of the encoding process of the original data stream by the logical channel in the second electronic device 102 .

[0260] For example, if the first coded data stream is a data stream obtained by the second electronic device 102 performing BCH(n1, k1) encoding on the first data stream, the first electronic device 101 performs BCH(n1, k1) decoding on the first coded data stream to restore the first data stream.

[0261] Because the embodiments of this application provide multiple encoding methods and the data stream processing is also based on a multi-logical channel architecture, the decoding process of the encoded data stream involves some queue order preservation and coordination between logical channels. For details on queue order preservation and coordination between channels, please refer to the relevant content of subsequent step S305 and will not be detailed here.

[0262] To further understand how to decode the first coded data stream and generate the first decoded data stream, please refer to FIG5 , which shows a flowchart of a decoding method.

[0263] Figure 5 includes a first coded data stream, a first logical channel, and a first decoded data stream. The first coded data stream is the data stream generated by first electronic device 101 distributing the received coded data stream to the first logical channel. The first logical channel is the first of N logical channels in first electronic device 101, where N is an integer greater than 1. The first decoded data stream is the data stream generated by decoding the first coded data stream through the first logical channel.

[0264] Illustratively, the first coded data stream may include the first data stream, redundant information of the error correction code, and redundant information of the error detection code. Alternatively, the T-coded data stream may include only the first data stream and the redundant information of the error correction code. Alternatively, the T-coded data stream may include only the first data stream and the redundant information of the error detection code. For an introduction to the redundant information of the error correction code and the redundant information of the error detection code, please refer to the relevant content of the aforementioned step S101 and will not be repeated here.

[0265] In one possible implementation, the first data stream in the first coded data stream includes P data blocks, where P is an integer greater than 0. If the first coded data stream includes redundant information for error detection coding, the redundant information for error detection coding includes P sub-redundant information, each of which is redundant information obtained by performing error detection coding on the P data blocks. The specific implementation process of performing error detection coding on the P data blocks is described in the aforementioned step S302 and is not further described here.

[0266] In one possible implementation, the first logical channel includes a first decoding path and a second decoding path, wherein the first decoding path is used to implement error detection decoding of the first coded data stream, and the second decoding path is used to implement error correction decoding of the first coded data stream.

[0267] In one possible implementation, the first electronic device 101 selects a decoding method and decoding parameters for the first decoding path and the second decoding path based on a decoding strategy. This decoding strategy corresponds to the encoding strategy in step S302. For details on how to select a decoding method and decoding parameters based on the decoding strategy, please refer to the relevant content of step S302, which will not be repeated here.

[0268] In a possible implementation, the decoding strategy may be set by a background staff, or the first electronic device 101 may automatically generate the decoding strategy based on current communication quality, link quality, business requirements, application scenarios and other conditions.

[0269] Exemplarily, the above-mentioned second decoding path currently uses a hard decoding scheme. When the first electronic device 101 detects that the communication quality of the current communication link has deteriorated, and the current hard decoding scheme is not sufficient to cope with a large number of errors in the received data, the first electronic device 101 can modify the decoding scheme used by the second decoding path to a soft decoding method.

[0270] In another possible implementation, the first electronic device 101 can automatically generate a decoding strategy based on current link quality, communication quality, service requirements, and application scenarios, while also generating an encoding strategy. The generated encoding strategy is then sent to the second electronic device 102, which then adjusts the encoding scheme and encoding parameters used for encoding based on the encoding strategy.

[0271] In one possible implementation, if communication quality continues to deteriorate and the error correction code used by the second coding path cannot effectively address the large number of errors in the received signal, the coding strategy can be adjusted so that the second coding path uses an error correction code with stronger error correction capabilities to improve communication quality. For the specific implementation process, please refer to the relevant content of the aforementioned step S302 and will not be repeated here.

[0272] In one possible implementation, if communication quality is good, the error correction code used in the second coding path can be appropriately adjusted to reduce its error correction capability, reduce the redundant information generated by the error correction code, and increase the transmission rate of useful data. For the specific implementation process, please refer to the relevant content of step S302 above and will not be repeated here.

[0273] In one possible implementation, if the communication quality deteriorates more severely and multiple consecutive data streams received by the first electronic device 101 are all erroneous, the first encoding path may be disabled, and error correction coding may be performed only on the first data stream. For the specific implementation process, please refer to the relevant content of step S302 above and will not be repeated here.

[0274] In one possible implementation, if the communication quality is very good and no errors are found in the multiple consecutive data streams received by the first electronic device 101, the second coding path can be disabled and only the first data stream is error-detected. For the specific implementation process, please refer to the relevant content of the aforementioned step S302 and will not be repeated here.

[0275] As shown in Figure 5, the decoding process of the first coded data stream by the first logical channel is divided into two paths, including: a first decoding path and a second decoding path. The specific implementation of decoding also includes decoding by the two paths simultaneously and decoding by the two paths at different times.

[0276] When the first decoding path and the second decoding path perform decoding simultaneously, the decoding logic is as follows.

[0277] In one possible implementation, when a first coded data stream is received on a first logical channel, the first coded data stream is first divided into two data streams. The two data streams obtained after grouping are sent to a first decoding path and a second decoding path respectively, and the two decoding paths perform decoding simultaneously.

[0278] Exemplarily, the data in the first group obtained by grouping the first coded data stream includes the first data stream and redundant information of the error detection coding. The data in the second group obtained by grouping the first coded data stream includes the first data stream and redundant information of the error correction coding. The first group of data is then sent to the first decoding path for error detection decoding. The second group of data is sent to the second decoding path for error correction decoding.

[0279] In one possible implementation, when the first logical channel receives the first encoded data stream, the first encoded data stream is directly sent to the first decoding path and the second decoding path, the first encoded data stream is parsed in the first decoding path and the second decoding path, and error detection decoding and error correction decoding are performed on the first data stream, respectively.

[0280] In one possible implementation, the first decoding path performs error detection decoding on the first data stream. If the error detection result indicates that the first data stream is completely correct, the first data stream is output as the first decoded data stream. If the error detection result indicates that the first data stream contains errors, the data stream decoded by the second decoding path is output as the first decoded data stream.

[0281] In a possible implementation, the presence of an error in the first data stream detected by the first decoding path is used as a first indication signal. The first indication signal is used to instruct the data stream obtained by decoding by the second decoding path to be output as the first decoded data stream.

[0282] In one possible implementation, when the second decoding path is performing error correction decoding on the first data stream, the first decoding path stops operating. The completion of error correction decoding by the second decoding path is used as a second indication signal, which is used to instruct the first decoding path to begin error detection decoding on subsequent data streams.

[0283] In one possible implementation, the first decoding path stores the data stream detected to have errors in a cache space. When it is detected that there is a data stream with errors in the cache space, the second decoding path starts to perform error correction decoding on the data stream with errors in the cache space. When the second decoding path is performing error correction decoding, the first decoding path performs error detection decoding operations at the same time. This is equivalent to the fact that the operation of the second decoding path will not affect the operation of the first decoding path, and the first decoding path can continuously perform error detection decoding operations on the data stream, further reducing the decoding delay at the data receiving end. The cache space can, for example, be a specific storage space that can be used to cache the data stream detected to have errors by the first decoding path. The specific implementation form of the cache space is not limited in the embodiments of this application.

[0284] In one possible implementation, when the cache space is full or the data stored in the cache space is greater than a first preset threshold, the operation of the first decoding path can be suspended, waiting for the second decoding path to process the data stream stored in the cache space. When the data stored in the cache space is less than the second preset threshold, the operation of the first decoding path can be restarted.

[0285] For example, assuming that the size of the cache space is 10MB, the operation of the first decoding path may be suspended when the amount of data stored in the cache space is greater than 8MB, and the operation of the first decoding path may be restarted when the amount of data stored in the cache space is less than 2MB.

[0286] When the first decoding path and the second decoding path do not perform decoding at the same time, the decoding logic is as follows.

[0287] In one possible implementation, when a first coded data stream is received on a first logical channel, the first coded data stream may be stored in a first cache queue, or only the first data stream and error correction coding redundant information may be stored in the first cache queue. The first cache queue belongs to the first logical channel and may, for example, be a storage space on the first electronic device 101. The specific implementation is not limited in this embodiment of the present application.

[0288] Then, only the first decoding path is activated to decode the first coded data stream. If the error detection result indicates that the first data stream is completely correct, the first data stream is output as the first decoded data stream. If the error detection result indicates that the first data stream contains errors, the second decoding path is activated to decode the first data stream, and the operation of the first decoding path is suspended. After the second decoding path completes decoding, the operation of the first decoding path is resumed.

[0289] Exemplarily, the detection of an error in the first data stream by the first decoding path is used as a third indication signal, which instructs the second decoding path to initiate decoding operations on the first data stream. The data cached in the cache queue is then input into the second decoding path, and the data stream decoded by the second decoding path is output as the first decoded data stream. In this solution, since both decoding paths are not activated simultaneously, the second decoding path's decoding operation is only initiated when an error is detected in the first data stream, which can save system energy consumption.

[0290] In another possible implementation, the first data stream in the first coded data stream includes P data blocks, and the redundant information of the error detection coding in the first coded data stream includes P sub-redundant information. P is an integer greater than 0. In this case, decoding can also be performed simultaneously on two paths or at different times on two paths. The two paths are referred to as a first decoding path and a second decoding path.

[0291] When the first decoding path and the second decoding path perform decoding simultaneously, the decoding logic is as follows.

[0292] In one possible implementation, first, when the first logical channel receives the first coded data stream, the first coded data stream is grouped. The specific implementation process is described in the above related content and will not be repeated here.

[0293] The first decoding path then sequentially performs error detection on the P data blocks in the first data stream. If the error detection result indicates that the Kth data block is completely correct, the Kth data block is output and subsequent related operations are performed, where K is an integer greater than 1 and less than P+1. This processing method can use a finer error detection granularity to detect errors in the first coded data stream. If a data block is detected to be correct, the decoding operation for that data block is considered complete, and subsequent related operations can be performed on the data block. Therefore, this solution can further reduce the decoding latency of the first coded data stream.

[0294] If the error detection result indicates that the K-th data block has an error, the error in the K-th data block is used as the fourth indication information. The fourth indication information is used to indicate that the decoded data stream obtained by the second decoding path has completed decoding. Alternatively, the K-th data block to the P-th data block in the decoded data stream obtained by the second decoding path can be used as the decoded data blocks. For specific implementation, please refer to the relevant content of the subsequent step S305, which will not be described in detail here. This solution ensures that the first encoded data stream has a lower decoding delay while also having a higher coding gain. In addition, the fourth indication information is also used to instruct the first decoding path to stop the error detection operation on the data blocks in the first data stream that have not yet been error-detected and decoded.

[0295] In one possible implementation, when the first decoding path stops error detection on data blocks in the first data stream that have not yet been error-detected, the first decoding path can be started to start error detection on subsequent data streams after the second decoding path completes decoding.

[0296] In one possible implementation, if the first decoding path detects an error in the Kth data block in the first data stream, the first decoding path may terminate error detection operations on subsequent data blocks in the first data stream and begin error detection operations on subsequent data streams. Simultaneously, the second decoding path may initiate error correction decoding operations on the first data stream.

[0297] In one possible implementation, if the first decoding path stops error detection on data blocks in the first data stream that have not yet been error-detected and decoded, it can be directly enabled to begin error detection on subsequent data streams. The data streams with detected errors are stored in a buffer, pending error correction decoding by the second decoding path. This buffer is similar to the buffer mentioned in the previous solution. For details, please refer to the related content above and will not be repeated here.

[0298] When the first decoding path and the second decoding path do not perform decoding at the same time, the decoding logic is as follows.

[0299] In one possible implementation, when a first coded data stream is received on a first logical channel, the first coded data stream may be stored in a first cache queue, or only the first data stream and error correction coding redundant information may be stored in the first cache queue. The first cache queue belongs to the first logical channel and may, for example, be a storage space on the first electronic device 101. The specific implementation is not limited in this embodiment of the present application.

[0300] The first decoding path then sequentially performs error detection on the P data blocks in the first data stream. If the error detection result indicates that the Kth data block is completely correct, the Kth data block is output and subsequent related operations are performed. The beneficial effects of this solution are described in the aforementioned related content and will not be repeated here.

[0301] If the error detection result indicates that the Kth data block contains an error, the error in the Kth data block is used as fifth indication information. This fifth indication information is used to instruct the activation of the decoding operation of the second decoding path and the completion of the decoded data stream obtained through decoding. Alternatively, the Kth to Pth data blocks in the decoded data stream obtained through decoding may be used as the decoded data blocks. After the second decoding path is activated, the data in the first cache queue needs to be sent to the second decoding path. The beneficial effects of this solution are described in the aforementioned related content and will not be repeated here.

[0302] In one possible implementation, if the first decoding path detects an error in the first data stream or the Kth data block, the detection operation of the first decoding path may be stopped or paused. If the second decoding path has not yet started decoding the first data stream, the second decoding path is started decoding the first data stream and the decoding operation is completed by the second decoding path before the detection operation of the first decoding path is started for subsequent data streams. If the second decoding path has already started decoding the first data stream, the detection operation of the first decoding path for subsequent data streams is started after the decoding operation is completed by the second decoding path.

[0303] S305 : The first electronic device 101 maintains the order of the decoded data streams output by the N logical channels through the order-preserving queue.

[0304] As can be seen from the relevant content of step S301, the second electronic device 102 distributes the original data stream to the N logical channels in sequence according to the distribution strategy. In addition, before distributing to the N logical channels, an AM group is added to facilitate the first electronic device 101 to restore the original sequence of the data stream based on the AM group.

[0305] From the relevant content of step S304, it can be seen that when the first electronic device 101 decodes the encoded data stream, two decoding paths are included. When the first decoding path detects an error in the data stream or data block, it is necessary to decode the data stream obtained by the second decoding path as the decoded data stream. Since the first decoding path is only responsible for error detection, the decoding delay of the first decoding path is relatively short. The second decoding path is error correction decoding, and the decoding delay of the second decoding path is relatively long. Therefore, the decoding delays of the N logical channels will be different. Relying solely on the AM group can no longer effectively complete the order preservation work of the decoded data stream.

[0306] In order to restore the decoded data streams generated by N logical channels to the original sequence of the data streams, the embodiment of the present application adds an order-preserving queue.

[0307] In one possible implementation, the order-preserving queue may be, for example, a storage area on the first electronic device 101 , which uses a data structure such as a heap or a stack to store data, and a unique identifier is added to the decoded data stream stored in the order-preserving queue.

[0308] Exemplarily, a first identifier is added to the first decoded data stream generated by the first logical channel. The first identifier includes information such as the time when the first decoded data stream was generated and / or the logical channel that generated the first decoded data stream. The first identifier is used to restore the decoded data streams output by the N logical channels to their original sequence.

[0309] In a possible implementation manner, the order-preserving queue includes N sub-order-preserving queues, each sub-order-preserving queue corresponds to a logical channel, and the sub-order-preserving queue is used to store the decoded data stream output by a logical channel.

[0310] To facilitate understanding of the working process of the order-preserving queue, an embodiment of the present application provides a schematic diagram of the order-preserving queue working process as shown in FIG6 .

[0311] As shown in FIG6 , for the decoding process of the first coded data stream by the first logical channel and the decoding process of the Nth logical channel on the Nth coded data stream, please refer to the decoding process of the first coded data stream by the first logical channel in the aforementioned step S304, which will not be repeated here.

[0312] In one possible implementation, before inputting the first decoded data stream into the order-preserving queue, it is necessary to monitor whether the encoded data stream preceding the first encoded data stream has completed decoding. The encoded data stream preceding the first encoded data stream is a data stream obtained by encoding the data stream preceding the first data stream in the original data stream.

[0313] For example, A1A2A3A4 represents the original data stream, with the data stream flowing from left to right. A1, A2, A3, and A4 respectively represent the data streams distributed to the logical channel in the second electronic device 102. Therefore, data streams A2, A3, and A4 are all located before data stream A1. Assuming that data stream A1 is the data stream distributed to the first logical channel in the second electronic device 102, the data streams preceding this first data stream can be A2, A3, or A4. Similarly, data streams A1, A2, and A3 are referred to as data streams following data stream A4.

[0314] It can be understood that the decoded data streams obtained by decoding the encoded data streams before the first encoded data stream should all be located before the first decoded data stream after the sequence is restored.

[0315] For example, if the coded data streams before the first coded data stream have been decoded, sequence recovery is performed directly based on the AM group without entering the sequence preservation queue. Completion of decoding here refers to the case where all coded data streams before the first coded data stream have been decoded.

[0316] For example, if the encoded data stream before the first encoded data stream has not been decoded, the first decoded data stream needs to be input into the order-preserving queue for caching. After all data streams before the first encoded data stream have completed the decoding operation, the first decoded data stream is read out from the cache queue and the sequence of the first decoded data stream is restored according to the AM group.

[0317] When sequence recovery is completed, the AM needs to be deleted and the data stream of the restored sequence needs to be output. At the same time, the data stream in the order-preserving queue that has completed sequence recovery needs to be deleted.

[0318] In one possible implementation, when decoding the second encoded data stream to obtain a second decoded data stream, it is necessary to determine whether to store the second decoded data stream in the order-preserving queue based on the error detection result of the first decoding path on the first encoded data stream. The second encoded data stream is the data stream obtained by encoding the second data stream, and the second data stream is the data stream located after the first data stream in the original data stream. Regarding the front-to-back position relationship of the data streams, please refer to the relevant content above and will not be repeated here.

[0319] For example, if the error detection result of the first coded data stream is an error, the second decoded data stream needs to be stored in the order-preserving queue. If the error detection result of the first coded data stream is completely correct, the second decoded data stream does not need to be stored in the order-preserving queue.

[0320] In one possible implementation, when generating the first decoded data stream, if it is monitored that the encoded data stream before the first encoded data stream has not been decoded, is being decoded, or is stored in the order-keeping queue, the first decoded data stream needs to be stored in the order-keeping queue.

[0321] In one possible implementation, when the first encoded data stream includes P data blocks, the first decoding path performs error detection and decoding on the P data blocks in sequence. When the error detection result shows that the Kth data block is completely correct, the Kth data block is input into the above-mentioned order-preserving queue.

[0322] In one possible implementation, after the Kth data block is input into the above-mentioned order-preserving queue, it is necessary to monitor whether the encoded data stream preceding the first encoded data stream has been decoded. If the encoded data stream preceding the first encoded data stream has been decoded, the Kth data block can be read from the order-preserving queue and then sequenced according to the AM group.

[0323] When the coded data stream before the first coded data stream has not been decoded, the K-th data block is input into the above-mentioned order-preserving queue, and the completion of decoding of all data streams before the first coded data stream is used as an indication signal, which is used to indicate that the K-th data block is read out, and then the sequence of the K-th data block is restored according to the AM group.

[0324] The above-mentioned coded data stream is decoded, which means that every data block in the coded data stream is decoded. When sequence recovery is completed, the AM needs to be deleted and the sequence recovery data stream is output, and the data stream in the sequence preservation queue that has completed sequence recovery is deleted at the same time.

[0325] In one possible implementation, after the Kth data block is input into the above-mentioned sequence-preserving queue, it is necessary to monitor whether the Kth data block is the last data block to be decoded among the above-mentioned P data blocks. If so, it indicates that all of the above-mentioned P data blocks have been decoded. Then, it is monitored whether the encoded data stream before the first encoded data stream has been decoded. If so, the sequence of the first encoded data stream is restored according to the AM group. If the sequence is restored, it is necessary to delete the AM and output the data stream of the restored sequence. At the same time, the data stream in the sequence-preserving queue that has completed sequence restoration is deleted.

[0326] In a possible implementation, when the error detection result of the Kth data block indicates that an error exists, the decoding result of the second decoding path is used as the decoded data stream.

[0327] Exemplarily, the decoding result of the second decoding path may be used to overwrite the decoded data block among the P data blocks that has been previously stored in the order-preserving queue.

[0328] Exemplarily, only the Kth to Pth data blocks in the decoding results of the second decoding path may be used as output results and stored in the order-preserving queue.

[0329] In one possible implementation, the order-preserving queue has a capacity cap, such as 1MB or 100MB. If the amount of data cached in the order-preserving queue reaches a first threshold, the logical channel's decoding operation on subsequent data streams can be suspended. The logical channel's decoding operation on subsequent data streams can be resumed after the amount of data cached in the order-preserving queue falls below a second threshold.

[0330] For example, if the total capacity of the order-preserving queue is 100MB, the first threshold can be set to 90MB and the second threshold to 50MB. When the amount of data cached in the order-preserving queue reaches 90MB, the logical channel can be suspended from decoding subsequent data streams. Wait until the total amount of data cached in the order-preserving queue is less than 50MB before re-enabling the logical channel to decode subsequent data streams.

[0331] To facilitate understanding of the implementation process of this solution, an embodiment of the present application provides a data transmission architecture diagram as shown in FIG7 .

[0332] As shown in Figure 7, Figure 7 includes a first electronic device 101, a second electronic device 102, and a physical channel 201. For the introduction of the physical channel 201, please refer to the relevant content of Figure 2 above, which will not be repeated here.

[0333] The second electronic device 102 includes N logical channels, wherein FIG7 shows the first logical channel and the Nth logical channel. The embodiment of the present application describes the N logical channels by taking the first logical channel as an example. The first logical channel includes three encoding methods, namely FEC (n1, k1) encoding, FEC (n2, k2) encoding and FEC (n3, k3) encoding. k represents the number of symbols of an original codeword, and n represents the number of symbols of the codeword after FEC encoding. The first logical channel also includes a coding preprocessing module, which is used to perform operations such as adding AM groups, data grouping and data encryption on the data before encoding. The specific implementation method and possible functions of the coding preprocessing module are not limited in the embodiment of the present application.

[0334] In one possible implementation, the second electronic device 102 causes the first logical channel to select two encoding paths based on the encoding strategy to encode the pre-encoded data stream. The first encoding path uses FEC(n1, k1) encoding, and the second encoding path uses FEC(n2, k2) encoding. This solution can be considered as the first logical channel performing error detection and error correction encoding on the pre-encoded data. The specific implementation process is described in step S302 of FIG. 3 and will not be further described here.

[0335] In one possible implementation, the second electronic device 102 enables the first logical channel to select a coding path to encode the data stream after coding preprocessing according to the coding strategy. The coding path may, for example, use FEC (n1, k1) coding or FEC (n3, k3) coding. When the coding path uses FEC (n1, k1) coding, it can be considered that the first logical channel only performs error detection coding on the data after coding preprocessing. When the coding path uses FEC (n3, k3) coding, it can be considered that the first logical channel only performs error correction coding on the data after coding preprocessing. For the specific implementation process, please refer to the relevant content of step S302 in Figure 3 above, which will not be repeated here.

[0336] In one possible implementation, the second electronic device 102 may further cause the first logical channel to select two encoding paths based on the encoding strategy to encode the pre-encoded data stream. The first encoding path uses FEC(n1, k1) encoding, and the second encoding path uses FEC(n3, k3) encoding. It is understood that when two encoding paths are selected to encode data, the combination of error detection and error correction coding is not limited. For the specific implementation process, please refer to the relevant content of step S302 in Figure 3 above and will not be repeated here.

[0337] In a possible implementation, the first logical channel may further include more encoding modes, such as RS (n4, k4) or RS (n5, k5). The specific number of encoding modes that can be used is not limited in this embodiment of the application.

[0338] The encoded data stream after logical channel encoding is sent to the physical channel 201 through the data merging and distributing module. For a detailed introduction to the data merging and distributing module, please refer to the relevant content of FIG. 2 , which will not be repeated here.

[0339] The above coding strategy can be set by operation and maintenance personnel, or from the first electronic device 101. For specific implementation, please refer to the relevant content of step S302 in Figure 3 above, which will not be repeated here.

[0340] Similarly, the first electronic device 101 also includes N logical channels, wherein the first logical channel and the Nth logical channel are shown in FIG7 . The N logical channels are also described by taking the first logical channel as an example. Among them, the first logical channel includes three decoding modes, namely FEC (n1, k1) decoding, FEC (n2, k2) decoding and FEC (n3, k3) decoding. The first logical channel also includes a post-decoding processing module, which corresponds to the encoding pre-processing module in the second electronic device and is used to perform operations such as deleting AM groups, data merging and data decryption on the decoded data. The specific implementation method and possible functions of the post-encoding processing module are not limited in the embodiments of the present application.

[0341] The decoding process of the first logical channel in the first electronic device 101 corresponds to the encoding process of the first logical channel in the second electronic device 102 .

[0342] For example, the second electronic device 102 encodes the data using FEC(n1, k1) and FEC(n2, k2), while the first electronic device 101 decodes the data using FEC(n1, k1) and FEC(n2, k2). For the specific implementation process, please refer to the relevant content of step S304 in Figure 3 above and will not be repeated here.

[0343] After the decoding of the first logical channel in the first electronic device 101 is completed, the data needs to be input into the order-preserving queue for order preservation. The specific implementation process can also be found in the relevant content of step S305 in Figure 3 above, which will not be repeated here.

[0344] In addition, the number of logical channels in the first electronic device 101 and the second electronic device 102 and the communication capacity of each logical channel can be flexibly adjusted according to business needs or customer requirements. For detailed introduction, please refer to the relevant content of Figure 2 above and will not be repeated here.

[0345] The solution shown in Figure 7 offers the advantages of flexible architecture expansion and support for rate evolution, as the number and communication capacity of logical channels can be freely configured. Coding strategies can also be flexibly selected based on coding combinations, meeting diverse application scenarios and customer needs while balancing transmission latency, communication performance, and transmission speed.

[0346] The first electronic device 101 can reduce decoding latency by first performing error detection decoding and then performing error correction decoding if the error detection result is an error, thereby reducing the overall latency of data processing at the receiving port. It can also maintain the high coding gain of the data stream, ensuring the link output bit error rate even when link quality is poor. Finally, by setting up an order-preserving queue, the difficulty of maintaining data stream order when decoding delays differ across different logical channels can be addressed.

[0347] To facilitate understanding of the implementation process of this solution, an embodiment of the present application provides another data transmission architecture diagram as shown in FIG8 .

[0348] As shown in Figure 8, Figure 8 includes a first electronic device 101, a second electronic device 102, and a physical channel 201. For the introduction of the physical channel 201, please refer to the relevant content of Figure 2 above, which will not be repeated here.

[0349] The difference between FIG8 and FIG7 is that the solution shown in FIG8 is compatible with the relevant protocols of Ethernet, and both the first electronic device 101 and the second electronic device 102 can use the RS (544, 514) encoding path and decoding path specified by the Ethernet protocol.

[0350] The encoding path of the standard Ethernet protocol begins by encoding the original data stream using 64b / 66b. The encoded original data stream is then distributed to N logical channels, and the data stream distributed to each logical channel is transcoded to 256b / 257b to reduce line coding overhead. Scrambling is then performed to control clock content and baseline wander. Before error correction coding, AM groups are added to support correction and reordering of each logical channel. After RS-FEC (544, 514) encoding is performed on the data stream, each two encoded code bits are interleaved to further improve error correction capabilities.

[0351] The 64b / 66b encoding method mentioned above is a block encoding method that carries a 2-bit sync header and 8 bytes (64 bits) of data, and is used as the physical layer transmission coding format for Ethernet networks such as 10G, 40G / 100G / 200G / 400G.

[0352] The above 256b / 257b encoding is an encoding method that carries a 1-bit synchronization header and a data code block carrying 32 bytes (256 bits).

[0353] The specific implementation of the above scrambling and interleaving is a conventional means and is not limited in this application.

[0354] The second electronic device 102 includes N logical channels, wherein a first logical channel and an Nth logical channel are shown in FIG8 . In the embodiment of the present application, the N logical channels are described by taking the first logical channel as an example.

[0355] As shown in FIG8 , the encoding path in the first logical channel of the second electronic device 102 differs from the encoding path of the Ethernet protocol described above in that, after adding the AM group to the data stream, in addition to RS-FEC (544, 514) encoding, eBCH (1320, 1285) encoding, RS-FEC (952, 924) encoding, or a combination of eBCH (1320, 1285) and RS-FEC (952, 924) encoding can be selected. The specific encoding method selected for encoding the data stream is determined based on the encoding strategy.

[0356] If the second electronic device 102 selects eBCH (1320, 1285) encoding according to the encoding strategy, then in the first logical channel, after adding the AM group to the data stream, every 35 257b blocks can be combined to obtain 7 eBCH (1320, 1285) data blocks to be encoded. The eBCH (1320, 1285) encoding is an error detection code, consisting of a BCH (1318, 1285) odd parity code and a BCH (1318, 1285) even parity code.

[0357] The encoded data stream is processed by the data merging and distributing module, and the processed data is sent to the first electronic device 101 through the multi-physical channel 201. The implementation process of the data merging and distributing module is shown in FIG2 , which will not be described here in detail.

[0358] Similarly, the first electronic device 101 also includes N logical channels, wherein the first logical channel and the Nth logical channel are shown in Figure 8. The N logical channels are also described by taking the first logical channel as an example.

[0359] The first logical channel includes a decoding path of the standard Ethernet protocol. The decoding path corresponds to the encoding path of the above-mentioned standard Ethernet protocol, and will not be described in detail here.

[0360] The first logical channel also includes decoding of eBCH (1320, 1285) and decoding of RS-FEC (952, 924). The specific implementation of the decoding process can be found in step S304 of FIG3 or FIG7, which will not be described here.

[0361] After decoding is completed, the decoded data stream needs to be sent to the order-preserving queue to cope with the situation where the decoding delay of each logical channel is inconsistent. The specific implementation process of the order-preserving queue can be found in the relevant content of step S305 in Figure 3 above, which will not be repeated here.

[0362] Because this solution is compatible with standard Ethernet protocols and can employ two encoding paths, it can be applied to a wider range of scenarios beyond those fully compatible with standard Ethernet. For example, this could be a low-latency, high-insertion-loss link scenario. These two encoding paths can also be referred to as a separate error detection and correction encoding scheme.

[0363] In one possible implementation, the order-preserving queue can be placed anywhere between before the data streams are merged and after the decoding is complete. The specific placement is not limited in this embodiment of the application. Since the order-preserving queue can be flexibly placed, the processing logic of the entire solution is more flexible and simple.

[0364] The data stream merging shown in FIG8 refers to restoring the original sequence of the data streams output by N logical channels according to the data distribution strategy in the second electronic device.

[0365] For example, as can be seen from the relevant content of FIG. 2 , the data distribution strategy can be, for example, a, b, c, a, b, c…; or a, b, c, c, b, a…; or a, a, b, b, c, c…, in the order of distributing data streams. Where a, b, and c are the names of logical channels, respectively.

[0366] For example, if the data distribution strategy is in the order of a, b, c, a, b, c, ..., then the first electronic device also merges the data in the order of a, b, c, a, b, c, .... That is, the data output by logical channel a is before the data output by logical channel b, the data output by logical channel b is before the data output by logical channel c, the data output by logical channel c is before the data output by logical channel a, and so on.

[0367] The above mainly introduces the data transmission method provided by the embodiment of the present application. It is understandable that, in order to realize the corresponding functions mentioned above, each control unit or device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0368] The embodiment of the present application can divide the functional modules of the device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.

[0369] In the case of dividing each functional module according to each function, an embodiment of the present application also provides an apparatus for implementing any of the above methods, for example, providing an apparatus including units (or means) for implementing each step in any of the above methods.

[0370] For example, please refer to Figure 9, which is a schematic diagram of the logical structure of a data receiving device 900 provided in an embodiment of the present application. The data receiving device 900 shown in Figure 9 can be a data receiving device for implementing any embodiment of the above-mentioned data transmission method. The data receiving device 900 may include a selection unit 901, a decoding unit 902, and an acquisition unit 903. Among them:

[0371] A selection unit 901 is configured to select a first decoding path and a second decoding path; the first decoding path and the second decoding path are paths among the L decoding paths included in the first logical channel of the N logical channels;

[0372] A decoding unit 902 is configured to perform error detection decoding on the first coded data stream through the first decoding path to obtain an error detection result;

[0373] An acquisition unit 903 is configured to acquire a first decoded data stream output by a target decoding path based on the error detection result, where the first decoded data stream is a data stream obtained by decoding the first encoded data stream; the target decoding path is the first decoding path and / or the second decoding path, where the second decoding path is configured to perform error correction decoding on the first encoded data stream.

[0374] In a possible embodiment, the first coded data stream is a coded data stream obtained by encoding the first data stream; the first data stream is a sub-data stream included in the target data stream, the second data stream is a sub-data stream arranged after the first data stream in the target data stream, and the second coded data stream is a data stream obtained by encoding the second data stream;

[0375] The decoding unit 902 is further configured to decode the second encoded data stream to obtain a second decoded data stream; the data receiving device 900 further includes:

[0376] The sequence preserving unit is configured to store the second decoded data stream into a sequence preserving queue when the error detection result indicates that the first data stream in the first encoded data stream is erroneous.

[0377] In one possible embodiment, the third coded data stream is a coded data stream obtained by encoding the third data stream; the third data stream is a sub-data stream included in the target data stream; the fourth data stream is a sub-data stream arranged after the third data stream in the target data stream; and the fourth coded data stream is a coded data stream obtained by encoding the fourth data stream;

[0378] The decoding unit 902 is further configured to decode the fourth encoded data stream to obtain a fourth decoded data stream;

[0379] The aforementioned sequence-preserving unit is further configured to store the aforementioned fourth decoded data stream into the sequence-preserving queue when the aforementioned third encoded data stream has not been decoded.

[0380] In one possible embodiment, the fifth coded data stream is a coded data stream obtained by encoding the fifth data stream; the fifth data stream is a sub-data stream included in the target data stream, the sixth data stream is a sub-data stream arranged after the fifth data stream in the target data stream, and the sixth coded data stream is a coded data stream obtained by encoding the sixth data stream;

[0381] The decoding unit 902 is further configured to decode the sixth encoded data stream to obtain a sixth decoded data stream;

[0382] The aforementioned order-preserving unit is further configured to store the aforementioned sixth decoded data stream into the aforementioned order-preserving queue when the fifth decoded data stream is in the aforementioned order-preserving queue, wherein the aforementioned fifth decoded data stream is a data stream obtained by decoding the aforementioned fifth encoded data stream.

[0383] In a possible embodiment, when the error detection result indicates that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream;

[0384] When the error detection result indicates that the first encoded data stream has errors, the decoded data stream output by the second decoding path belongs to the first decoded data stream.

[0385] In a possible embodiment, the first logical channel includes a first cache queue, and the first cache queue is used to cache the first encoded data stream;

[0386] When the error detection result indicates that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream;

[0387] When the error detection result indicates that the first coded data stream has errors, the first coded data stream is obtained from the first cache queue; and the first coded data stream is input into the second decoding path, and the decoded data stream output by the second decoding path belongs to the first decoded data stream.

[0388] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0;

[0389] When the error detection result indicates that the first data block is correct, the decoded data stream obtained by decoding the first data block by the first decoding path belongs to the first decoded data stream; and the first data block belongs to the P data blocks.

[0390] When the error detection result indicates that the second data block has an error, the decoded data stream output by the second decoding path belongs to the first decoded data stream; and the second data block belongs to the P data blocks.

[0391] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0; the first logical channel includes a first buffer queue for buffering the first encoded data stream;

[0392] When the error detection result indicates that the first data block is correct, the decoded data obtained by the first decoding path from decoding the first data block belongs to the first decoded data stream; and the first data block belongs to the P data blocks.

[0393] When the error detection result indicates that an error exists in the second data block, the first encoded data stream is obtained from the first cache queue; and the first encoded data stream is input into the second decoding path. The decoded data stream output by the second decoding path belongs to the first decoded data stream; and the second data block belongs to the P data blocks.

[0394] In a possible embodiment, the data receiving device 900 further includes:

[0395] a generating unit configured to generate an encoding strategy and a decoding strategy based on the communication quality of the data receiving apparatus 900; the encoding strategy being used to select an encoding path for encoding the seventh data stream, and the decoding strategy being used to select a decoding path for decoding the seventh encoded data stream; the seventh data stream including the first data stream, the first encoded data stream obtained by encoding the first data stream; and the seventh encoded data stream including the first decoded data stream;

[0396] The sending unit is used to send the above-mentioned encoding strategy to the data sending device.

[0397] In a possible embodiment, the aforementioned generating unit is specifically configured to:

[0398] When the communication quality of the data receiving device 900 is higher than the first threshold, the encoding strategy is to select only the first encoding path to encode the seventh data stream, and the decoding strategy is to select only the first decoding path to decode the seventh encoded data stream; the first encoding path is used to perform error detection coding on the data stream;

[0399] When the communication quality of the data receiving device 900 is lower than the first threshold, the encoding strategy is to select the first encoding path and the second encoding path to encode the seventh data stream, and the decoding strategy is to select the first decoding path and the second decoding path to decode the seventh encoded data stream; the second encoding path is used to perform error correction encoding on the data stream.

[0400] In a possible embodiment, the second decoding path is the coding sublayer PCS of the physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers (IEEE).

[0401] In a possible embodiment, the second decoding path is physical layer coding of the IEEE 802.11 standard.

[0402] The specific operations and beneficial effects of each unit in the data receiving device 900 shown in FIG. 9 can be found in the corresponding descriptions in FIG. 3 and its possible embodiments, and will not be repeated here.

[0403] For example, please refer to Figure 10, which is a schematic diagram of the logical structure of a data sending device 1000 provided in an embodiment of the present application. The data sending device 1000 shown in Figure 10 can be a data sending device 1000 for implementing any embodiment of the above-mentioned data transmission method. The data sending device 1000 may include a determining unit 1001 and a selecting unit 1002. Among them:

[0404] The determining unit 1001 is configured to determine the order of distributing the target data stream to the aforementioned N logical channels and the amount of data stream distributed each time;

[0405] The first data stream is a data stream distributed to the first logical channel of the N logical channels, and the first data stream belongs to a sub-data stream included in the target data stream;

[0406] The selection unit 1002 is configured to select a first encoding path and a second encoding path, wherein the first encoding path and the second encoding path are paths in the L decoding paths included in the first logical channel of the N logical channels;

[0407] The first coding path is used to perform error detection coding on the first data stream, and the second coding path is used to perform error correction coding on the first data stream.

[0408] In a possible embodiment, the data sending device 1000 further includes:

[0409] a generating unit, configured to perform error detection coding on the first data stream through the first coding path to generate redundant information of the error detection coding;

[0410] performing error correction coding on the first data stream through the second coding path to generate redundant information of the error correction coding;

[0411] The first coded data stream is generated based on the redundant information of the error detection coding, the redundant information of the error correction coding, and the first data stream.

[0412] In a possible embodiment, the first data stream includes P data blocks, where P is an integer greater than 0; the generation unit is specifically configured to perform error detection coding on each of the P data blocks through the first coding path.

[0413] In a possible embodiment, the data sending device 1000 further includes an acquisition unit configured to acquire a coding strategy, where the coding strategy is used to select the first coding path and the second coding path.

[0414] In a possible embodiment, the second coding path is a coding sublayer PCS of a physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers (IEEE).

[0415] In a possible embodiment, the second coding path is physical layer coding of the IEEE 802.11 standard.

[0416] In a possible embodiment, the error detection code used in the first coding path includes: BCH code, error detection code, parity check code, group counting code or constant ratio code.

[0417] In a possible embodiment, the error correction code used in the second coding path includes: Reed-Muller (RM) code, Hamming code, or Golay code.

[0418] The specific operations and beneficial effects of each unit in the data sending device 1000 shown in FIG10 can be found in the corresponding descriptions in FIG3 and its possible embodiments, and will not be repeated here.

[0419] It should be understood that the division of the various units in the above-mentioned device is merely a division of logical functions. In actual implementation, they may be fully or partially integrated into a single physical entity, or they may be physically separated. In addition, the units in the device may be implemented in the form of a processor calling software; for example, the device includes a processor, the processor is connected to a memory, and the memory stores instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of the various units of the device, wherein the processor is, for example, a general-purpose processor, such as a central processing unit (CPU) or a microprocessor, and the memory is a memory within the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all of the units can be realized by designing the hardware circuits. The hardware circuit can be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC), which realizes the functions of some or all of the above units by designing the logical relationship of the components in the circuit. For another example, in another implementation, the hardware circuit can be implemented by a programmable logic device (PLD). Taking a field programmable gate array (FPGA) as an example, it can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by configuring the configuration file, thereby realizing the functions of some or all of the above units. All units of the above devices can be implemented in the form of software called by the processor, or in the form of hardware circuits, or in part by software called by the processor, and the rest by hardware circuits.

[0420] In an embodiment of the present application, a processor is a circuit with data processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a CPU, a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP); in another implementation, the processor can implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and implementing the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a neural network processing unit (NPU), a tensor processing unit (TPU), a deep learning processing unit (DPU), etc.

[0421] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.

[0422] In addition, the various units in the above devices can be fully or partially integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of the various units of the device. The type of the at least one processor can be different, for example, including a CPU and FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.

[0423] For example, see Figure 11, which is a schematic diagram of the physical device structure of the data receiving device provided in this application. The data receiving device 1100 shown in Figure 11 can be the data receiving device in the aforementioned method of the above embodiment. The data receiving device 1100 includes: a processor 1101, a memory 1102, and a communication interface 1103. The processor 1101, the communication interface 1103, and the memory 1102 can be connected to each other or to each other via a bus 1104.

[0424] Exemplarily, the memory 1102 is used for computer programs and data of the data receiving device 1100. The memory 1102 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or portable read-only memory (CD-ROM), etc.

[0425] The software or program codes required for all or part of the functions of the data receiving device in the above method embodiment are stored in the memory 1102 .

[0426] In one possible implementation, if the software or program code required for some functions is stored in the memory 1102, the processor 1101, in addition to calling the program code in the memory 1102 to implement some functions, can also cooperate with other components (such as the communication interface 1103) to jointly complete other functions described in the method embodiment (such as the function of receiving or sending data).

[0427] There may be multiple communication interfaces 1103 , which are used to support the data receiving device 1100 to communicate, such as receiving or sending data or signals.

[0428] Exemplarily, the processor 1101 may be the CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor types, as described above. The processor 1101 may be configured to read the program stored in the memory 1102 and execute the operations performed by the data receiving device in FIG. 3 and its possible embodiments.

[0429] The specific operations and beneficial effects of each unit in the data receiving device 1100 shown in FIG11 can be found in the corresponding description in the above method embodiment, which will not be repeated here.

[0430] For example, see Figure 12, which is a schematic diagram of the physical device structure of the data transmission device provided in this application. The data transmission device 1200 shown in Figure 12 can be the data transmission device in the aforementioned method of the above embodiment. The data transmission device 1200 includes: a processor 1201, a memory 1202, and a communication interface 1203. The processor 1201, the communication interface 1203, and the memory 1202 can be connected to each other or to each other via a bus 1204.

[0431] Exemplarily, the memory 1202 is used for computer programs and data of the data sending device 1200. The memory 1202 may include but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or portable read-only memory (CD-ROM), etc.

[0432] The software or program codes required for all or part of the functions of the data sending device in the above method embodiment are stored in the memory 1202 .

[0433] In one possible implementation, if the software or program code required for some functions is stored in the memory 1202, the processor 1201, in addition to calling the program code in the memory 1202 to implement some functions, can also cooperate with other components (such as the communication interface 1203) to jointly complete other functions described in the method embodiment (such as the function of receiving or sending data).

[0434] There may be multiple communication interfaces 1203 , which are used to support the data sending device 1200 to communicate, such as receiving or sending data or signals.

[0435] Exemplarily, the processor 1201 may be the CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor types, as described above. The processor 1201 may be configured to read the program stored in the memory 1202 and execute the operations performed by the data transmitting apparatus in FIG. 3 and its possible embodiments.

[0436] The specific operations and beneficial effects of each unit in the data sending device 1200 shown in FIG12 can be referred to the corresponding description in the above method embodiment, which will not be repeated here.

[0437] The present application also provides a chip including a processor and a memory, wherein the memory is configured to store computer programs or computer instructions, and the processor is configured to execute the computer programs or computer instructions stored in the memory, so that the chip performs the operations performed by the data receiving device in FIG. 3 and its possible embodiments.

[0438] The present application also provides a chip including a processor and a memory, wherein the memory is configured to store computer programs or computer instructions, and the processor is configured to execute the computer programs or computer instructions stored in the memory, so that the chip performs the operations performed by the data transmitting device in FIG. 3 and its possible embodiments.

[0439] An embodiment of the present application further provides a computer-readable storage medium storing a computer program or computer instructions, which is executed by a processor to implement the method implemented by the data receiving device in FIG. 3 and its possible embodiments.

[0440] An embodiment of the present application further provides a computer-readable storage medium storing a computer program or computer instructions, which is executed by a processor to implement the method implemented by the data sending device in FIG. 3 and its possible embodiments.

[0441] The embodiment of the present application further provides a computer program product. When the computer program product is read and executed by a computer, the method implemented by the data receiving device in the above-mentioned FIG. 3 and its possible embodiments will be executed.

[0442] An embodiment of the present application further provides a computer program product. When the computer program product is read and executed by a computer, the method implemented by the data sending device in FIG. 3 and its possible embodiments will be executed.

[0443] In summary, this solution is applied to scenarios where the physical layer consists of multiple logical channels. First, the order of distributing data streams to the aforementioned N logical channels and the amount of data distributed each time are determined based on the distribution strategy. In the event of an error during data transmission, the erroneous data will be dispersed among the aforementioned N logical channels, which can reduce the error correction pressure of each logical channel at the receiving end and reduce the bit error rate of the received signal. Each of the aforementioned logical channels contains multiple coding paths. When it is necessary to encode the data stream, two coding paths are selected to encode the data stream, one of which is used for error detection coding and the other is used for error correction coding. At the receiving end, the received data stream is first error-checked. If there is no error, the data stream is directly output, which can reduce the decoding delay of the data. If there is an error, the data stream is corrected, retaining the high coding gain of the data stream.

[0444] Obviously, the embodiments described above are only some of the embodiments of the present application, rather than all of the embodiments. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present embodiment application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. The terms "first", "second", "third", etc. in the specification and claims of this application and the aforementioned drawings are distinguished from different objects, and are not used to describe a specific order.

[0445] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a series of steps or units are included, or optionally, steps or units that are not listed are also included, or optionally, other steps or units that are inherent to these processes, methods, products or devices are also included. It can be understood that the equal sign of the above-mentioned conditional judgment can be greater than one end or less than one end. For example, the above-mentioned conditional judgment that a threshold is greater than, less than or equal to can also be changed to a conditional judgment that the threshold is greater than, equal to, or less than, and there is no limitation on this. It should be understood that the above-mentioned communication mode can be indirect communication and direct communication. Direct communication can be understood as communication between two devices without going through other devices, and indirect communication can be understood as communication between two devices that needs to go through other devices.

[0446] It should be noted that, under logical circumstances, the steps in the above method flow can be flexibly adjusted in some cases. For example, some steps in the above method flow can be executed in advance. For another example, some steps in the above method flow can be split or merged, or can be deleted, which is not limited here.

[0447] It will be appreciated that only the parts relevant to the present application, not all of the contents, are shown in the accompanying drawings. It will be appreciated that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the various operations (or steps) as sequential processes, many of the operations therein can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the various operations can be rearranged. When the operations are completed, the aforementioned processes can be terminated, but can also have additional steps not included in the accompanying drawings. The aforementioned processes can correspond to methods, functions, procedures, subroutines, subprograms, etc.

[0448] As used in this specification, the terms "component," "module," "system," "unit," and the like are used to refer to computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a unit can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or distributed between two or more computers. In addition, these units can be executed from various computer-readable media having various data structures stored thereon. Units can communicate, for example, through local and / or remote processes based on signals having one or more data packets (e.g., data from a second unit interacting with another unit in a local system, a distributed system, and / or a network. For example, the Internet interacts with other systems via signals).

[0449] The above-mentioned specific implementation methods further describe in detail the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above-mentioned are only specific implementation methods of the present application and are not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present application.

Claims

1. A data transmission method, It is characterized in that The method is applied to a first electronic device, wherein a physical layer of the first electronic device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L decoding paths, where L is an integer greater than 1; the method includes: A first decoding path and a second decoding path are selected; the first decoding path and the second decoding path are paths in the L decoding paths included in the first logical channel among the N logical channels; error detection decoding is performed on the first coded data stream through the first decoding path to obtain an error detection result; a first decoding data stream output by a target decoding path is obtained according to the error detection result, the first decoding data stream is a data stream obtained by decoding the first coded data stream; the target decoding path is the first decoding path and / or the second decoding path, and the second decoding path is used to perform error correction decoding on the first coded data stream.

2. The method according to claim 1, It is characterized in that The first encoded data stream is an encoded data stream obtained by encoding the first data stream; the first data stream belongs to a sub-data stream included in the target data stream, the second data stream is a sub-data stream arranged after the first data stream in the target data stream, and the second encoded data stream is a data stream obtained by encoding the second data stream; the method also includes: decoding the second encoded data stream to obtain a second decoded data stream; when the error detection result indicates that the first data stream in the first encoded data stream is erroneous, storing the second decoded data stream in an order-preserving queue.

3. The method according to claim 1 or 2, It is characterized in that The third coded data stream is a coded data stream obtained by encoding the third data stream; the third data stream belongs to a sub-data stream included in the target data stream, the fourth data stream is a sub-data stream arranged after the third data stream in the target data stream, and the fourth coded data stream is a coded data stream obtained by encoding the fourth data stream; the method further includes: Decoding the fourth encoded data stream to obtain a fourth decoded data stream; When the decoding of the third encoded data stream is not completed, the fourth decoded data stream is stored in an order-preserving queue.

4. The method according to any one of claims 1 to 3, It is characterized in that The fifth coded data stream is a coded data stream obtained by encoding the fifth data stream; the fifth data stream belongs to a sub-data stream included in the target data stream, the sixth data stream is a sub-data stream arranged after the fifth data stream in the target data stream, and the sixth coded data stream is a coded data stream obtained by encoding the sixth data stream; the method further includes: Decoding the sixth encoded data stream to obtain a sixth decoded data stream; When the fifth decoded data stream is in the order-preserving queue, the sixth decoded data stream is stored in the order-preserving queue, and the fifth decoded data stream is a data stream obtained by decoding the fifth encoded data stream.

5. The method according to any one of claims 1 to 4, It is characterized in that When the error detection result shows that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream; When the error detection result indicates that the first encoded data stream has errors, the decoded data stream output by the second decoding path belongs to the first decoded data stream.

6. The method according to any one of claims 1 to 4, It is characterized in that The first logical channel includes a first cache queue, the first cache queue is used to cache the first coded data stream; when the error detection result shows that the first coded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream; When the error detection result indicates that the first coded data stream has an error, acquiring the first coded data stream from the first cache queue; The first encoded data stream is input into the second decoding path, and the decoded data stream output by the second decoding path belongs to the first decoded data stream.

7. The method according to any one of claims 1 to 4, It is characterized in that The first data stream includes P data blocks, where P is an integer greater than 0; When the error detection result indicates that the first data block is correct, a decoded data stream obtained by decoding the first data block by the first decoding path belongs to the first decoded data stream; The first data block belongs to the P data blocks; When the error detection result indicates that the second data block has an error, the decoded data stream output by the second decoding path belongs to the first decoded data stream; The second data block belongs to the P data blocks.

8. The method according to any one of claims 1 to 4, It is characterized in that The first data stream includes P data blocks, where P is an integer greater than 0; the first logical channel includes a first cache queue for caching the first encoded data stream; When the error detection result indicates that the first data block is correct, the decoded data obtained by the first decoding path decoding the first data block belongs to the first decoded data stream; The first data block belongs to the P data blocks; When the error detection result indicates that the second data block has an error, acquiring the first encoded data stream from the first cache queue; and inputting the first encoded data stream into the second decoding path, wherein the decoded data stream output by the second decoding path belongs to the first decoded data stream; The second data block belongs to the P data blocks.

9. The method according to any one of claims 1 to 8, It is characterized in that The method further comprises: Generate a coding strategy and a decoding strategy according to the communication quality of the first electronic device; the coding strategy is used to select a coding path for encoding the seventh data stream, and the decoding strategy is used to select a decoding path for decoding the seventh coded data stream; the seventh data stream includes the first data stream, and the first coded data stream is obtained after the first data stream is encoded; the seventh coded data stream includes the first decoded data stream; The encoding strategy is sent to a second electronic device.

10. The method according to claim 9, It is characterized in that The generating of the encoding strategy and the decoding strategy according to the communication quality of the first electronic device includes: When the communication quality of the first electronic device is higher than the first threshold, the encoding strategy is to select only the first encoding path to encode the seventh data stream, and the decoding strategy is to select only the first decoding path to decode the seventh encoded data stream; the first encoding path is used to perform error detection encoding on the data stream; When the communication quality of the first electronic device is lower than the first threshold, the encoding strategy is to select the first encoding path and the second encoding path to encode the seventh data stream, and the decoding strategy is to select the first decoding path and the second decoding path to decode the seventh encoded data stream; the second encoding path is used to perform error correction encoding on the data stream.

11. The method according to any one of claims 1 to 10, It is characterized in that The second decoding path is the coding sublayer PCS of the physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers IEEE.

12. The method according to any one of claims 1 to 10, It is characterized in that The second decoding path is the physical layer coding of the IEEE 802.11 standard.

13. A data transmission method, It is characterized in that The method is applied to a second electronic device, wherein a physical layer of the second electronic device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L coding paths, where L is an integer greater than 1; the method includes: Determine the distribution order of distributing the target data stream to the N logical channels and the data amount of each distribution data stream; The first data stream is a data stream distributed to a first logical channel of the N logical channels, and the first data stream belongs to a sub-data stream included in the target data stream; Selecting a first encoding path and a second encoding path; wherein the first encoding path and the second encoding path are paths in the L decoding paths included in the first logical channel of the N logical channels; The first encoding path is used to perform error detection encoding on the first data stream, and the second encoding path is used to perform error correction encoding on the first data stream.

14. The method according to claim 13, It is characterized in that The method further comprises: Performing error detection coding on the first data stream through the first coding path to generate redundant information of the error detection coding; Performing error correction coding on the first data stream through the second coding path to generate redundant information of the error correction coding; The first coded data stream is generated according to the redundant information of the error detection coding, the redundant information of the error correction coding and the first data stream.

15. The method according to claim 14, It is characterized in that The first data stream includes P data blocks, where P is an integer greater than 0; and the error detection encoding of the first data stream through the first coding path includes: error detection encoding of each of the P data blocks through the first coding path.

16. The method according to any one of claims 13 to 15, It is characterized in that The method further comprises: A coding strategy is obtained, where the coding strategy is used to select the first coding path and the second coding path.

17. The method according to any one of claims 13 to 16, It is characterized in that The second coding path is a coding sublayer PCS of the physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers IEEE.

18. The method according to any one of claims 13 to 16, It is characterized in that The second coding path is physical layer coding of the IEEE 802.11 standard.

19. The method according to any one of claims 13 to 18, It is characterized in that The error detection code used by the first coding path includes: BCH code, error detection code, parity check code, group counting code or constant ratio code.

20. The method according to any one of claims 13 to 19, It is characterized in that The error correction code used by the second coding path includes: Reed-Muller code, Reed-Muller code, Hamming code or Golay code.

21. A data receiving device, It is characterized in that The physical layer of the device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L decoding paths, where L is an integer greater than 1; the device includes: A selection unit, configured to select a first decoding path and a second decoding path; the first decoding path and the second decoding path are paths among the L decoding paths included in the first logical channel among the N logical channels; a decoding unit, configured to perform error detection decoding on the first coded data stream through the first decoding path to obtain an error detection result; An acquisition unit is used to acquire a first decoded data stream output by a target decoding path according to the error detection result, wherein the first decoded data stream is a data stream obtained by decoding the first encoded data stream; the target decoding path is the first decoding path and / or the second decoding path, and the second decoding path is used to perform error correction decoding on the first encoded data stream.

22. The device according to claim 21, It is characterized in that The first coded data stream is a coded data stream obtained by encoding the first data stream; the first data stream belongs to a sub-data stream included in the target data stream, the second data stream is a sub-data stream arranged after the first data stream in the target data stream, and the second coded data stream is a data stream obtained by encoding the second data stream; The decoding unit is further configured to decode the second encoded data stream to obtain a second decoded data stream; the device further comprises: The order-preserving unit is used to store the second decoded data stream into an order-preserving queue when the error detection result indicates that the first data stream in the first encoded data stream is erroneous.

23. The device according to claim 22, It is characterized in that The third coded data stream is a coded data stream obtained by encoding the third data stream; the third data stream belongs to a sub-data stream included in the target data stream, the fourth data stream is a sub-data stream arranged after the third data stream in the target data stream, and the fourth coded data stream is a coded data stream obtained by encoding the fourth data stream; The decoding unit is further used to decode the fourth encoded data stream to obtain a fourth decoded data stream; The sequence preserving unit is further configured to store the fourth decoded data stream into the sequence preserving queue when the decoding of the third encoded data stream is not completed.

24. The device according to claim 22 or 23, It is characterized in that The fifth coded data stream is a coded data stream obtained by encoding the fifth data stream; the fifth data stream belongs to a sub-data stream included in the target data stream, the sixth data stream is a sub-data stream arranged after the fifth data stream in the target data stream, and the sixth coded data stream is a coded data stream obtained by encoding the sixth data stream; The decoding unit is further used to decode the sixth encoded data stream to obtain a sixth decoded data stream; The order-preserving unit is further configured to store the sixth decoded data stream into the order-preserving queue when the fifth decoded data stream is in the order-preserving queue, wherein the fifth decoded data stream is a data stream obtained by decoding the fifth encoded data stream.

25. The device according to any one of claims 21 to 24, It is characterized in that When the error detection result shows that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream; When the error detection result indicates that the first encoded data stream has errors, the decoded data stream output by the second decoding path belongs to the first decoded data stream.

26. The device according to any one of claims 21 to 24, It is characterized in that The first logical channel includes a first cache queue, and the first cache queue is used to cache the first encoded data stream; When the error detection result shows that the first encoded data stream is correct, the decoded data stream output by the first decoding path belongs to the first decoded data stream; When the error detection result indicates that the first coded data stream has an error, acquiring the first coded data stream from the first cache queue; The first encoded data stream is input into the second decoding path, and the decoded data stream output by the second decoding path belongs to the first decoded data stream.

27. The device according to any one of claims 21 to 24, It is characterized in that The first data stream includes P data blocks, where P is an integer greater than 0; When the error detection result indicates that the first data block is correct, a decoded data stream obtained by decoding the first data block by the first decoding path belongs to the first decoded data stream; The first data block belongs to the P data blocks; When the error detection result indicates that the second data block has an error, the decoded data stream output by the second decoding path belongs to the first decoded data stream; The second data block belongs to the P data blocks.

28. The device according to any one of claims 21 to 24, It is characterized in that The first data stream includes P data blocks, where P is an integer greater than 0; the first logical channel includes a first cache queue for caching the first encoded data stream; When the error detection result indicates that the first data block is correct, the decoded data obtained by the first decoding path decoding the first data block belongs to the first decoded data stream; The first data block belongs to the P data blocks; When the error detection result indicates that the second data block has an error, acquiring the first encoded data stream from the first cache queue; and inputting the first encoded data stream into the second decoding path, wherein the decoded data stream output by the second decoding path belongs to the first decoded data stream; The second data block belongs to the P data blocks.

29. The device according to any one of claims 21 to 28, It is characterized in that The device also includes: a generating unit, configured to generate a coding strategy and a decoding strategy according to the communication quality of the device; the coding strategy is used to select a coding path for encoding the seventh data stream, and the decoding strategy is used to select a decoding path for decoding the seventh coded data stream; the seventh data stream includes the first data stream, the first coded data stream obtained after the first data stream is encoded; the seventh coded data stream includes the first decoded data stream; A sending unit is used to send the encoding strategy to the data sending device.

30. The device according to claim 29, It is characterized in that The generating unit is specifically used for: When the communication quality of the device is higher than a first threshold, the encoding strategy is to select only the first encoding path to encode the seventh data stream, and the decoding strategy is to select only the first decoding path to decode the seventh encoded data stream; the first encoding path is used to perform error detection encoding on the data stream; When the communication quality of the device is lower than a first threshold, the encoding strategy is to select the first encoding path and the second encoding path to encode the seventh data stream, and the decoding strategy is to select the first decoding path and the second decoding path to decode the seventh encoded data stream; the second encoding path is used to perform error correction encoding on the data stream.

31. The device according to any one of claims 21 to 30, It is characterized in that The second decoding path is the coding sublayer PCS of the physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers IEEE.

32. The device according to any one of claims 21 to 30, It is characterized in that The second decoding path is the physical layer coding of the IEEE 802.11 standard.

33. A data sending device, It is characterized in that The physical layer of the device includes N logical channels, where N is an integer greater than 1; each of the N logical channels includes L coding paths, where L is an integer greater than 1; the device includes: A determination unit, used to determine the distribution order of distributing the target data stream to the N logical channels and the data amount of each distribution data stream; The first data stream is a data stream distributed to the first logical channel of the N logical channels. The first data stream belongs to the target data The sub-streams that the stream includes; A selection unit, configured to select a first encoding path and a second encoding path; the first encoding path and the second encoding path are paths in the L decoding paths included in the first logical channel of the N logical channels; The first encoding path is used to perform error detection encoding on the first data stream, and the second encoding path is used to perform error correction encoding on the first data stream.

34. The device according to claim 33, It is characterized in that The device also includes: a generating unit, configured to perform error detection coding on the first data stream through the first coding path to generate redundant information of the error detection coding; Performing error correction coding on the first data stream through the second coding path to generate redundant information of the error correction coding; The first coded data stream is generated according to the redundant information of the error detection coding, the redundant information of the error correction coding and the first data stream.

35. The device according to claim 34, It is characterized in that The first data stream includes P data blocks, where P is an integer greater than 0; The generating unit is specifically configured to perform error detection coding on each of the P data blocks through the first coding path.

36. The device according to any one of claims 33 to 35, It is characterized in that The device also includes: An acquiring unit is used to acquire a coding strategy, where the coding strategy is used to select the first coding path and the second coding path.

37. The device according to any one of claims 33 to 36, It is characterized in that The second coding path is a coding sublayer PCS of the physical layer of the 802.3 standard of the Institute of Electrical and Electronics Engineers IEEE.

38. The device according to any one of claims 33 to 36, It is characterized in that The second coding path is physical layer coding of the IEEE 802.11 standard.

39. The device according to any one of claims 33 to 38, It is characterized in that The error detection code used by the first coding path includes: BCH code, error detection code, parity check code, group counting code or constant ratio code.

40. The device according to any one of claims 33 to 39, It is characterized in that The error correction code used by the second coding path includes: Reed-Muller code, Reed-Muller code, Hamming code or Golay code.

41. A data receiving device, It is characterized in that The terminal device comprises a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, so that the terminal device executes the method according to any one of claims 1-12.

42. A data transmission device, It is characterized in that The terminal device comprises a processor and a memory, wherein the memory is used to store computer programs or computer instructions, and the processor is used to execute the computer programs or computer instructions stored in the memory, so that the terminal device executes the method according to any one of claims 13-20.

43. A data transmission system, It is characterized in that The system includes a data sending device and a data receiving device; wherein the data receiving device is used to execute the method described in any one of claims 1 to 12, and the data sending device is used to execute the method described in any one of claims 13 to 20.

44. A computer readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program or computer instructions, and the computer program or computer instructions are executed by a processor to implement the method according to any one of claims 1 to 12; Alternatively, the computer program or computer instructions are executed by a processor to implement the method according to any one of claims 13 to 20.

45. A computer program product, It is characterized in that When the computer program product is executed by a processor, the method according to any one of claims 1 to 12 will be implemented; Alternatively, when the computer program product is executed by a processor, the method described in any one of claims 13 to 20 will be implemented.

Citation Information

Patent Citations

  • Deconding method, decoding device, and communication system

    CN103503319A

  • Data check method and device

    CN105634504A

  • Decoding method, chip, electronic equipment and storage medium

    CN115242354A

  • Data transmission method and system, and computer-readable storage medium

    WO2022078426A1

  • Data transmission method and apparatus, and device, system and computer-readable storage medium

    WO2022156767A1