Data encoding method and apparatus, data decoding method and apparatus, and device and storage medium

By using multiple basic code groups for data encoding between communication nodes, the minimum Euclidean distance and non-uniformity control are ensured, which solves the problem of insufficient signal-to-noise ratio margin and improves the noise resistance and encoding efficiency of the encoding results.

WO2026026343A1PCT designated stage Publication Date: 2026-02-05HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/104121
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-31
Filing Date
2025-06-26
Publication Date
2026-02-05

AI Technical Summary

Technical Problem

In high-speed communication between communication nodes, insufficient signal-to-noise ratio margin makes the encoding results susceptible to noise and interference.

Method used

Data encoding is performed using multiple basic code groups to ensure that the minimum Euclidean distance between any two basic code groups is greater than the minimum Euclidean distance, and that the number of basic code groups in the first code group set is greater than the number in the second code group set. The encoding process is controlled by mapping relationships and non-uniformity to improve encoding gain and noise resistance.

Benefits of technology

It improves the signal-to-noise ratio margin, enhances the coding results' resistance to noise and interference, ensures the uniformity of the level distribution of the coded segments, avoids the occurrence of long consecutive levels, simplifies the selection process of basic code groups, and improves coding efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025104121_05022026_PF_FP_ABST
    Figure CN2025104121_05022026_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of communications. Disclosed are a data encoding method and apparatus, a data decoding method and apparatus, and a device and a storage medium. The data encoding method comprises: acquiring a first data segment; acquiring a plurality of basic code groups, wherein the plurality of basic code groups consist of a first code group set and a second code group set, the minimum code group distance between any basic code group in the first code group set and the other code groups among the plurality of basic code groups is greater than the minimum Euclidean distance of PAM, the minimum code group distance between any basic code group in the second code group set and the other code groups among the plurality of basic code groups is equal to the minimum Euclidean distance, and the number of basic code groups in the first code group set is greater than the number of basic code groups in the second code group set; and encoding the first data segment on the basis of the plurality of basic code groups. Since the code group distances between any basic code group in a first code group set and the other code groups are all greater than the minimum Euclidean distance, encoding with the basic code groups in the first code group set can yield an additional coding gain.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for data encoding and data decoding

[0001] The present application claims priority to the Chinese patent application No. 202411055369.2, filed on July 31, 2024, and entitled "Method, device, equipment and storage medium for data encoding and data decoding", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the field of communication technology, in particular to a method, device, equipment and storage medium for data encoding and data decoding. BACKGROUND

[0003] In the field of communication technology, data transmission can be performed between communication nodes. For example, a communication node 1 encodes a data segment to be transmitted to obtain an encoding result, and sends the encoding result to a communication node 2, and the communication node 2 decodes the received encoding result to obtain the data segment. With the Ethernet upgrade of the communication node, the communication rate between the communication nodes has been significantly improved, and the encoding result transmitted at a higher communication rate can have a signal noise ratio (SNR) margin deficiency. Therefore, there is an urgent need for a data encoding method to improve the SNR margin. SUMMARY

[0004] The present application provides a method, device, equipment and storage medium for data encoding and data decoding to improve the SNR margin, and the technical solutions are as follows:

[0005] In a first aspect, a method for data encoding is provided, which includes: obtaining a first data segment in a data stream to be processed; obtaining a plurality of basic code groups, the plurality of basic code groups being composed of a first code group set and a second code group set, the minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups being greater than a minimum Euclidean distance, the minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups being equal to the minimum Euclidean distance, and the number of basic code groups in the first code group set being greater than the number of basic code groups in the second code group set; and encoding the first data segment according to the plurality of basic code groups to obtain a first encoding segment. The minimum Euclidean distance in the present application refers to the minimum distance between different level values generated by pulse-amplitude modulation (PAM).

[0006] Since the minimum code group distance between any basic code group in the first code group set and other code groups is greater than the minimum Euclidean distance, encoding by the basic code groups in the first code group set can produce additional coding gain, and the coding gain based on the coding gain improves the resistance of the first coded segment obtained by coding to noise and interference, and the SNR margin is high. Moreover, the number of basic code groups in the first code group set is greater than the number of basic code groups in the second code group set, which ensures that the proportion of basic code groups that can produce coding gain in multiple basic code groups to provide more coding gain.

[0007] In a possible implementation, the first data segment is encoded according to the multiple basic code groups to obtain the first coded segment, including: determining the first code group corresponding to the first data segment from the multiple basic code groups according to the mapping relationship between the first code group and the first data segment; and encoding the first data segment based on the first code group to obtain the first coded segment. Through the mapping relationship, the first code group corresponding to the first data segment can be determined from the multiple basic code groups, and the process of determining the first code group is simple and efficient.

[0008] In a possible implementation, the first data segment is encoded based on the first code group to obtain the first coded segment, including: determining the first coded segment based on the unevenness of the first code group. Wherein, the data stream to be processed can include multiple first coded segments, and the unevenness of the first code group is also considered in the process of encoding any first data segment based on the first code group to obtain the first coded segment. By constraining the unevenness, it is ensured that the multiple first coded segments obtained by encoding the multiple first data segments are evenly distributed in the electrical domain, and the occurrence of long continuous levels is avoided, and direct current balance is achieved.

[0009] In a possible implementation, the number of basic code groups in the second code group set is 0. In this case, all the multiple basic code groups belong to the basic code groups in the first code group set, that is, the code group distance between any two basic code groups in the multiple basic code groups is greater than the minimum Euclidean distance, and any basic code group can provide coding gain, and the coding gain produced based on the multiple basic code groups is large.

[0010] In a possible implementation, the multiple basic code groups are obtained, including: obtaining multiple candidate code groups; and selecting the multiple basic code groups from the multiple candidate code groups according to the code group distances between the candidate code groups. In the process of selecting the multiple basic code groups from the multiple candidate code groups, the code group distances between the candidate code groups are referred to, and by controlling the code group distances between the selected basic code groups, it is ensured that the selected multiple basic code groups include the basic code groups with the minimum code group distance greater than the minimum Euclidean distance from other code groups, and the selection process of the basic code groups is simple and has low operation complexity. Moreover, the application does not limit the process of obtaining the multiple basic code groups, which can be obtained online or offline, and the timing of obtaining is flexible.

[0011] In a possible implementation, the multiple basic code groups are selected from the multiple candidate code groups according to code group distances between the candidate code groups, including: dividing the multiple candidate code groups into multiple code group subsets according to the code group distances between the candidate code groups, different code group subsets including different candidate code groups, and a code group distance between any two candidate code groups in any code group subset being greater than the minimum Euclidean distance; and selecting the multiple basic code groups from the candidate code groups included in the multiple code group subsets.

[0012] In the process of selecting the basic code groups, the multiple candidate code groups are first divided into multiple code group subsets. Since the code group distance between each candidate code group in any code group subset is greater than the minimum Euclidean distance, the candidate code groups are only selected from the code group subsets in the subsequent process, so that it is ensured that the selected basic code groups include the basic code groups belonging to the first code group set, and the selection process of the basic code groups is simplified.

[0013] In a possible implementation, for any code group subset, the candidate code groups included in the code group subset satisfy a symbol distribution condition, the symbol distribution condition being determined based on a reference candidate code group, and a code group distance between any two reference candidate code groups being greater than the minimum Euclidean distance. The candidate code groups to be divided into any code group subset are determined based on the symbol distribution condition, so that the multiple candidate code groups are divided into the multiple code group subsets without traversing and calculating the code group distances between the candidate code groups, the amount of calculation involved in the process of dividing the code group subsets is small, and the division efficiency is high.

[0014] In a possible implementation, the multiple basic code groups are selected from the candidate code groups included in the multiple code group subsets, including: determining a first quantity of candidate code groups in each code group subset that satisfy a selection condition in terms of unevenness, the selection condition including that a variation of the unevenness is not less than a first value or the variation of the unevenness is not greater than the first value; and selecting the multiple basic code groups from the candidate code groups included in the multiple code group subsets according to the first quantity of each code group subset. In the process of selecting the basic code groups, the unevenness of the basic code groups is considered in addition to the code group distances between the basic code groups, and the basic code groups are selected based on more screening conditions, so that the encoding effect of the selected basic code groups is better. For example, the selection based on the code group distances ensures that the multiple basic code groups can generate coding gain, and the selection based on the unevenness ensures that the multiple basic code groups can achieve direct current balance in the encoding process.

[0015] In a possible implementation, the selecting the multiple basic code groups from the candidate code groups included in the multiple code group subsets according to the first quantity of each code group subset includes: determining a first subset with the maximum first quantity from the multiple code group subsets; determining each candidate code group included in the first subset and satisfying the selection condition as a basic code group, or, from the candidate code groups included in the first subset and satisfying the selection condition, selecting a basic code group according to a level value of each candidate code group. Since the code group distance between any two basic code groups in the first subset is greater than the minimum Euclidean distance, all the basic code groups used for encoding are selected from one first subset, and the multiple basic code groups selected all belong to the basic code groups in the first code group set, and the multiple basic code groups generate large encoding gain.

[0016] In a possible implementation, the selecting the multiple basic code groups from the candidate code groups included in the multiple code group subsets according to the first quantity of each code group subset includes: determining a first subset with the maximum first quantity from the multiple code group subsets; determining each candidate code group included in the first subset and satisfying the selection condition as a basic code group, or, from the candidate code groups included in the first subset and satisfying the selection condition, selecting a basic code group according to a level value of each candidate code group; and selecting a basic code group according to a level value of each candidate code group from the candidate code groups included in a second subset and satisfying the selection condition, the second subset being different from the first subset.

[0017] Through the method, even if all the basic code groups used for encoding cannot be selected from the first subset, for example, the number of the basic code groups that can be selected from the first subset is less than the total number of the multiple basic code groups to be obtained, the basic code groups can also be selected from the second subset to supplement, and the selection process is not limited to selecting the basic code groups from one code group subset, and the selection process is more flexible. In addition, since the first quantity of the first subset is greater than the first quantity of the second subset, that is, the number of the basic code groups that can be selected from the first subset is greater than the number of the basic code groups that can be selected from the second subset, the basic code groups are preferentially selected from the first subset to obtain more basic code groups belonging to the first code group set, and more encoding gain is provided.

[0018] The application does not limit the process of selecting the basic code groups from the code group subsets, and the basic code groups can be selected from the first subset or from the first subset and the second subset, which is highly flexible and widely applicable.

[0019] In a possible implementation, the basic code group selected according to the level values of the respective candidate code groups satisfies at least one of the following conditions: a continuous number of same level values is less than a first threshold; or, a number of intermediate state values in the level values is less than a second threshold; or, a number of jumps of the level values is greater than a third threshold. The method has high flexibility because the manner of selecting the basic code group based on the level values is not limited, and can be based on one or more of the continuous number of same level values, the number of intermediate state values, or the number of jumps of the level values. Moreover, the above manner of selecting the basic code group can be used regardless of whether the basic code group is selected from the first subset based on the level values or from the second subset based on the level values, and has high universality.

[0020] In a possible implementation, the minimum Euclidean distance is 1 in the case where the PAM modulation includes PAM3 modulation.

[0021] In a possible implementation, the minimum Euclidean distance is 2 in the case where the PAM modulation includes PAM4 modulation.

[0022] The method does not limit the PAM used by the encoding, and can be PAM3 or PAM4. The method of data encoding provided in this application can be applied to various PAM scenarios, and has high universality.

[0023] In a second aspect, a method of data decoding is provided, which includes: obtaining a signal segment in a signal stream to be decoded; obtaining a plurality of reference code groups corresponding to the signal stream, the reference code groups being obtained based on a plurality of basic code groups, the plurality of basic code groups being used to encode a data stream corresponding to the signal stream, the plurality of basic code groups being composed of a first code group set and a second code group set, a minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups being greater than a minimum Euclidean distance, a minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups being equal to the minimum Euclidean distance, the minimum Euclidean distance being a minimum distance between different level values generated by PAM modulation, a number of basic code groups in the first code group set being greater than a number of basic code groups in the second code group set; determining, from the plurality of reference code groups, a reference code group having a minimum code group distance to the signal segment, and decoding a first data segment corresponding to the signal segment according to the determined reference code group.

[0024] Because the minimum code group distance between the plurality of basic code groups and other code groups is greater than the minimum Euclidean distance, the selected reference code group is more accurate when the reference code group closest to the signal segment is selected according to the code group distance, and thus the accuracy of the first data segment obtained by decoding is high.

[0025] In a possible implementation, the signal segment in the signal stream to be decoded is obtained, including: obtaining a plurality of PAM signals included in the signal stream; and dividing the plurality of PAM signals into a plurality of signal segments according to combination boundary information of the plurality of PAM signals, any signal segment including the plurality of PAM signals. The plurality of signal segments can be obtained based on the combination boundary information, and the signal segment division process is simple and efficient. In addition, in the subsequent process of decoding the first data segment, the signal segment is taken as a whole to determine the reference code group corresponding to the signal segment, which is a joint determination of the plurality of PAM signals, and has higher accuracy than the traditional single signal determination.

[0026] In a possible implementation, the plurality of PAM signals included in the signal stream is obtained, including: obtaining a plurality of received signals; and performing PAM equalization on any received signal based on a stable equalizer to obtain a PAM signal corresponding to the received signal. The obtained PAM signal is an equalized signal, and the inter-symbol interference between signals is effectively eliminated through equalization, thereby improving the accuracy of the PAM signal.

[0027] In a possible implementation, the equalizer is based on error to update the coefficients of the equalizer to achieve stable convergence. In the case of PAM equalization being PAM3 equalization, the coefficients updated based on the error are calculated by performing PAM3 determination on the output signal of the equalizer, the output signal being a signal processed by the equalizer before any received signal, and the PAM signal being a PAM3 signal. In the case of PAM being PAM3 at the encoding side, PAM3 equalization is used at the decoding side to achieve decoding, and the equalization algorithm has low complexity, is easy to converge, and has good stability.

[0028] In a possible implementation, the equalizer is based on error to update the coefficients of the equalizer to achieve stable convergence. In the case of PAM equalization being PAM4 equalization, the coefficients updated based on the error are calculated by performing PAM4 determination on the output signal of the equalizer, the output signal being a signal processed by the equalizer before any received signal, and the PAM signal being a PAM4 signal.

[0029] In a possible implementation, the equalizer is based on error to update the coefficients of the equalizer to achieve stable convergence. In the case of PAM equalization being PAM5 equalization, the coefficients updated based on the error are calculated by performing PAM5 determination on the output signal of the equalizer, the output signal being a signal processed by the equalizer before any received signal, and the PAM signal being a PAM5 signal.

[0030] The present application does not limit the PAM equalization used at the decoding side, and can flexibly use the corresponding equalization mode based on the PAM used at the encoding side, thereby having high universality.

[0031] In a possible implementation, the plurality of reference code groups comprises a plurality of basic code groups and a plurality of complementary code groups, and the plurality of complementary code groups are obtained by taking the complement of each symbol in the plurality of basic code groups. Since the encoding side may take the complement of the basic code group in determining the first encoding segment according to the basic code group, the complementary code group obtained by taking the complement is taken as the first encoding segment. Therefore, on the basis of obtaining the plurality of basic code groups, the plurality of complementary code groups are also obtained, so as to ensure that there is a corresponding code group in the reference code group no matter whether the encoding side takes the complement of the basic code group corresponding to the first data segment, and the obtained reference code group is more comprehensive, and the first data segment decoded based on the more comprehensive reference code group has high accuracy.

[0032] In a third aspect, a method for data encoding is provided, the method comprising: obtaining a first data segment in a data stream to be processed; and obtaining a plurality of basic code groups, the plurality of basic code groups comprising [1 0 1 -1 0 1], [0 0 1 1 -1 -1], [0 1 -1 0 0 0], [-1 0 -1 0 1 1], [0 1 -1 -1 1 0], [1 0 0 0 1 0], [0 1 1 -1 0 1], [1 1 1 -1 -1 1], [0 1 1 -1 0 -1], [-1 1 -1 -1 1 1], [-1 0 1 1 0 1], [0 0 1 0 1 0], [0 -1 0 1 -1 1], [-1 1 0 -1 1 0], [1 1 0 1 -1 1], [1 -1 1 0 0 -1], [1 0 1 -1 -1 0], [1 0 0 -1 0 0], [1 1 1 1 -1 1], [-1 1 1 1 -1 1], [1 0 1 0 0 0], [1 0 -1 0 0 0], [0 1 -1 1 0 1], [0 0 1 0 0 1], [0 1 0 1 1 -1], [1 -1 -1 0 0 1], [-1 1 -1 1 1 -1], [0 0 1 1 1 1], [0 0 0 0 1 -1], [1 0 1 1 1 0], [0 -1 1 -1 1 0], [0 1 -1 0 1 -1], [0 0 -1 1 0 0], [1 1 1 -1 1 -1], [-1 1 1 1 1 1], [1 1 -1 -1 -1 1], [1 -1 1 1 0 0], [0 1 0 0 0 -1], [1 0 0 0 0 1], [1 1 1 -1 -1 -1], [1 -1 0 0 1 1], [-1 1 1 -1 1 -1], [1 -1 0 1 0 1], [0 0 1 1 -1 1], [0 -1 -1 1 0 1], [0 0 0 0 -1 1], [1 1 0 0 1 1], [1 1 0 1 1 -1], [-1 1 0 0 1 -1], [0 -1 1 1 0 -1], [1 1 0 0 -1 -1], [0 -1 1 1 -1 0], [0 -1 1 0 1 -1], [1 1 1 0 -1 0], [1 -1 -1 -1 1 1], [1 1 0 0 0 0], [0 0 0 0 1 1], [0 1 -1 1 1 0], [1 -1 1 1 -1 1], [-1 0 0 -1 1 1], [1 -1 1 0 0 1], [1 01 -1 0 -1]、[-1 1 -1 1 -1 1]、[0 0 1 -1 0 0]、[0 1 1 0 1 -1]、[0 1 1 -1 -1 0]、[0 0 -1 1 -1 1]、[1 0 -1 1 0 1]、[1 1 0 -1 1 0]、[-1 0 1 0 1 1]、[1 -1 1 1 -1 -1]、[-1 1 0 1 1 0]、[1 -1 1 -1 1 -1]、[-1 1 0 0 0 0]、[-1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 -1 1 -1 1 1]、[1 1 1 0 0 1]、[0 0 -1 1 1 1]、[1 1 -1 1 1 1]、[0 1 0 0 0 1]、[1 1 1 -1 0 0]、[-1 1 1 1 1 -1]、[-1 -1 0 0 1 1]、[0 1 1 1 0 1]、[1 0 -1 0 -1 1]、[1 0 0 1 1 1]、[1 -1 -1 1 -1 1]、[1 -1 1 1 1 -1]、[1 1 -1 0 -1 0]、[1 1 0 0 1 -1]、[0 1 -1 -1 0 1]、[1 0 1 0 -1 1]、[0 1 0 -1 -1 1]、[0 1 0 1 -1 -1]、[-1 1 0 -1 0 1]、[1 1 1 1 1 1]、[0 -1 1 1 1 0]、[0 1 0 0 -1 0]、[1 -1 1 -1 0 0]、[1 1 0 -1 0 -1]、[1 0 0 1 -1 1]、[-1 -1 1 1 -1 1]、[0 1 1 -1 1 0]、[-1 0 1 1 1 0]、[1 0 0 1 0 0]、[1 1 0 1 0 1]、[0 0 0 -1 0 1]、[-1 1 1 -1 -1 1]、[1 0 1 0 1 1]、[0 0 1 -1 -1 1]、[0 0 -1 -1 1 1]、[1 0 -1 0 1 1]、[0 -1 1 0 0 0]、[-1 1 0 1 0 1]、[0 1 0 0 1 0]、[1 1 1 0 0 -1]、[1 0 1 0 1 -1]、[1 -1 -1 1 1 -1]、[1 0 -1 -1 0 1]、[1 -1 -1 1 0 0]、[1 1 0 -1 -1 0]、[1 0 0 1 1 -1]、[0 0 -1 0 0 1]、[0 -1 0 0 1 0]、[-1 1 1 0 0 -1]、[-10 0 1 0 0]、[0 -1 1 -1 0 1]、[0 -1 1 1 0 1]、[1 1 1 1 1 -1]、[1 1 -1 0 0 -1]、[-1 1 1 1 -1 -1]、[0 -1 1 0 1 1]、[1 -1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 -1 -1]、[1 0 1 -1 1 0]、[1 1 0 1 1 0]、[1 -1 0 1 1 0]、[1 0 0 -1 1 -1]、[1 0 -1 -1 1 0]、[1 1 1 1 0 0]、[1 1 -1 0 0 1]、[1 0 0 -1 1 1]、[1 0 1 1 0 1]、[1 1 1 0 1 0]、[1 1 0 -1 0 1]、[1 1 1 1 -1 -1]、[1 1 -1 1 -1 1]、[1 0 0 -1 -1 1]、[1 1 -1 1 -1 -1]、[-1 -1 1 -1 1 1]、[1 -1 1 -1 -1 1]、[0 1 0 1 0 0]、[1 1 0 1 0 -1]、[1 1 -1 -1 0 0]、[-1 1 1 0 1 0]、[1 0 1 1 0 -1]、[0 0 1 1 0 0]、[1 1 -1 1 1 -1]、[0 1 1 0 -1 1]、[1 0 -1 1 0 -1]、[1 -1 0 0 0 0]、[-1 0 -1 1 0 1]、[0 1 1 1 0 -1]、[1 0 -1 1 -1 0]、[-1 0 1 0 1 -1]、[0 -1 0 0 0 1]、[1 1 -1 -1 1 1]、[0 1 1 1 1 0]、[1 -1 -1 1 1 1]、[1 -1 1 0 -1 0]、[1 -1 1 1 1 1]、[-1 1 1 0 -1 0]、[0 0 1 1 1 -1]、[1 0 -1 1 1 0]、[-1 1 1 1 0 0]、[-1 0 1 -1 0 1]、[0 -1 -1 0 1 1]、[0 0 -1 0 1 0]、[-1 1 0 0 1 1]、[-1 0 0 0 1 0]、[0 -1 -1 1 1 0]、[-1 0 0 1 -1 1]、[1 0 1 -1 1 1]、[1 -1 0 -1 0 1]、[-1 1 0 0 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 -1 1 1]、[0 0 -1 1 1 -1]、[-1 1 -1 1 0[0], [1 1 -1 0 1 0], [-1 0 1 0 0 0], [1 0 1 0 -1 -1], [1 0 0 0 0 -1], [1 0 1 1 -1 1], [0 0 1 -1 1 1], [-1 1 -1 0 1 0], [1 -1 0 0 1 -1], [-1 1 0 1 -1 0], [0 1 0 1 -1 1], [0 1 0 -1 1 -1], [-1 1 -1 1 1 1], [-1 1 0 1 0 -1], [-1 1 1 -1 0 0], [-1 -1 1 1 1 1], [0 0 1 0 0 -1], [0 0 0 1 1 [0], [1 0 1 1 -1 0], [-1 0 -1 1 1 0], [0 1 -1 0 1 1], [0 0 0 -1 1 0], [0 1 0 -1 0 0], [0 0 0 1 -1 0], [1 -1 -1 0 1 0], [1 1 0 0 -1 1], [0 -1 0 1 1 1], [-1 -1 1 1 0 0], [-1 1 1 -1 1 1 1], [0 -1 0 1 0 0], [0 0 1 0 -1 0], [-1 0 1 -1 1 0], [-1 0 0 1 1 -1], [-1 -1 1 0 1 0], [1 1 -1 -1 1 1 -1]、[-1 0 0 0 0 1]、[1 1 0 1 -1 0]、[1 1 1 -1 1 1]、[-1 0 1 1 0 -1]、[1 0 0 1 -1 -1]、[0 0 0 1 0 -1]、[-1 -1 0 1 1 0]、[0 0 0 1 0 1]、[-1 0 1 0 -1 1]、[-1 0 1 1 -1 0]、[1 0 0 0 -1 0]、[0 1 0 1 1 1]、[-1 -1 1 1 1 -1]、[0 1 0 -1 1 1]、[-1 0 0 1 1 1]、[1 -1 0 1 0 -1]、[1 0 -1 0 1 -1], [-1 -1 0 1 0 1], [1 -1 0 1 -1 0], [0 1 -1 1 -1 0], [1 1 -1 1 0 0], [0 1 1 0 1 1], [0 1 1 1 -1 0], [1 -1 0 0 -1 1], [0 1 -1 1 0 -1], [0 -1 1 0 -1 1], [0 0 1 -1 1 -1], [-1 -1 -1 1 1 1], [0 1 -1 0 -1 1], [1 -1 1 0 1 0] and [-11 -1 0 0 1]; according to the plurality of basic code groups, encode the first data segment to obtain a first encoded segment.

[0033] In a possible implementation, the plurality of basic code groups are in one-to-one mapping with a plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments include the first data segment.

[0034] In a possible implementation, the mapping relationship is a relationship obtained by random mapping.

[0035] In a possible implementation, the mapping relationship between the second data segment and the basic code group includes: the second data segment 00000000 is mapped to the basic code group [1 0 1 -1 0 1], the second data segment 00000001 is mapped to the basic code group [0 0 1 1 -1 -1], the second data segment 00000010 is mapped to the basic code group [0 1 -1 0 0 0], the second data segment 00000011 is mapped to the basic code group [-1 0 -1 0 1 1], the second data segment 00000100 is mapped to the basic code group [0 1 -1 -1 1 0], the second data segment 00000101 is mapped to the basic code group [1 0 0 0 1 0], the second data segment 00000110 is mapped to the basic code group [0 1 1 -1 0 1], the second data segment 00000111 is mapped to the basic code group [1 1 1 -1 -1 1], the second data segment 00001000 is mapped to the basic code group [0 1 1 -1 0 -1], the second data segment 00001001 is mapped to the basic code group [-1 1 -1 -1 1 1], the second data segment 00001010 is mapped to the basic code group [-1 0 1 1 0 1], the second data segment 00001011 is mapped to the basic code group [0 0 1 0 1 0], the second data segment 00001100 is mapped to the basic code group [0 -1 0 1 -1 1], the second data segment 00001101 is mapped to the basic code group [-1 1 0 -1 1 0], the second data segment 00001110 is mapped to the basic code group [1 1 0 1 -1 1], the second data segment 00001111 is mapped to the basic code group [1 -1 1 0 0 -1], the second data segment 00010000 is mapped to the basic code group [1 0 1 -1 -1 0], the second data segment 00010001 is mapped to the basic code group [1 0 0 -1 0 0], the second data segment 00010010 is mapped to the basic code group [1 1 1 1 -1 1], the second data segment 00010011 is mapped to the basic code group [-1 1 1 1 -1 1], the second data segment 00010100 is mapped to the basic code group [1 0 1 0 0 0], the second data segment 00010101 is mapped to the basic code group [1 0 -1 0 0 0], the second data segment 00010110 is mapped to the basic code group [0 1 -1 1 0 1], the second data segment 00010111 is mapped to the basic code group [0 0 1 0 0 1], the second data segment 00011000 is mapped to the basic code group [0 1 0 1 1 -1], the second data segment 00011001 is mapped to the basic code group [1 -1 -1 0 0 1],The basic code group mapped by the second data segment 00011010 is [-1 1 -1 1 1 -1], the basic code group mapped by the second data segment 00011011 is [0 0 1 1 1 1], the basic code group mapped by the second data segment 00011100 is [0 0 0 0 1 -1], the basic code group mapped by the second data segment 00011101 is [1 0 1 1 1 0], the basic code group mapped by the second data segment 00011110 is [0 -1 1 -1 1 0], the basic code group mapped by the second data segment 00011111 is [0 1 -1 0 1 -1], the basic code group mapped by the second data segment 00100000 is [0 0 -1 1 0 0], the basic code group mapped by the second data segment 00100001 is [1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00100010 is [-1 1 1 1 1 1], the basic code group mapped by the second data segment 00100011 is [1 1 -1 -1 -1 1], the basic code group mapped by the second data segment 00100100 is [1 -1 1 1 0 0], the basic code group mapped by the second data segment 00100101 is [0 1 0 0 0 -1], the basic code group mapped by the second data segment 00100110 is [1 0 0 0 0 1], the basic code group mapped by the second data segment 00100111 is [1 1 1 -1 -1 -1], the basic code group mapped by the second data segment 00101000 is [1 -1 0 0 1 1], the basic code group mapped by the second data segment 00101001 is [-1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00101010 is [1 -1 0 1 0 1], the basic code group mapped by the second data segment 00101011 is [0 0 1 1 -1 1], the basic code group mapped by the second data segment 00101100 is [0 -1 -1 1 0 1], the basic code group mapped by the second data segment 00101101 is [0 0 0 0 -1 1], the basic code group mapped by the second data segment 00101110 is [1 1 0 0 1 1], the basic code group mapped by the second data segment 00101111 is [1 1 0 1 1 -1], the basic code group mapped by the second data segment 00110000 is [-1 1 0 0 1 -1], the basic code group mapped by the second data segment 00110001 is [0 -1 1 1 0 -1], the basic code group mapped by the second data segment 00110010 is [1 1 0 0 -1 -1], the basic code group mapped by the second data segment 00110011 is [0 -1 1 1 -1 0], the basic code group mapped by the second data segment 00110100 is [0 -1 1 0 1 -1],The basic code group mapped by the second data segment 00110101 is [1 1 1 0 -1 0], the basic code group mapped by the second data segment 00110110 is [1 -1 -1 -1 1 1], the basic code group mapped by the second data segment 00110111 is [1 1 0 0 0 0], the basic code group mapped by the second data segment 00111000 is [0 0 0 0 1 1], the basic code group mapped by the second data segment 00111001 is [0 1 -1 1 1 0], the basic code group mapped by the second data segment 00111010 is [1 -1 1 1 -1 1], the basic code group mapped by the second data segment 00111011 is [-1 0 0 -1 1 1], the basic code group mapped by the second data segment 00111100 is [1 -1 1 0 0 1], the basic code group mapped by the second data segment 00111101 is [1 0 1 -1 0 -1], the basic code group mapped by the second data segment 00111110 is [-1 1 -1 1 -1 1], the basic code group mapped by the second data segment 00111111 is [0 0 1 -1 0 0], the basic code group mapped by the second data segment 01000000 is [0 1 1 0 1 -1], the basic code group mapped by the second data segment 01000001 is [0 1 1 -1 -1 0], the basic code group mapped by the second data segment 01000010 is [0 0 -1 1 -1 1], the basic code group mapped by the second data segment 01000011 is [1 0 -1 1 0 1], the basic code group mapped by the second data segment 01000100 is [1 1 0 -1 1 0], the basic code group mapped by the second data segment 01000101 is [-1 0 1 0 1 1], the basic code group mapped by the second data segment 01000110 is [1 -1 1 1 -1 -1], the basic code group mapped by the second data segment 01000111 is [-1 1 0 1 1 0], the basic code group mapped by the second data segment 01001000 is [1 -1 1 -1 1 -1], the basic code group mapped by the second data segment 01001001 is [-1 1 0 0 0 0], the basic code group mapped by the second data segment 01001010 is [-1 -1 1 0 0 1], the basic code group mapped by the second data segment 01001011 is [-1 1 1 0 0 1], the basic code group mapped by the second data segment 01001100 is [1 -1 1 -1 1 1], the basic code group mapped by the second data segment 01001101 is [1 1 1 0 0 1], the basic code group mapped by the second data segment 01001110 is [0 0 -1 1 1 1], the basic code group mapped by the second data segment 01001111 is [1 1 -1 1 1 1],The basic code group mapped by the second data segment 01010000 is [0 1 0 0 1], the basic code group mapped by the second data segment 01010001 is [1 1 1 -1 0 0], the basic code group mapped by the second data segment 01010010 is [-1 1 1 1 1 -1], the basic code group mapped by the second data segment 01010011 is [-1 -1 0 0 1 1], the basic code group mapped by the second data segment 01010100 is [0 1 1 1 0 1], the basic code group mapped by the second data segment 01010101 is [1 0 -1 0 -1 1], the basic code group mapped by the second data segment 01010110 is [1 0 0 1 1 1], the basic code group mapped by the second data segment 01010111 is [1 -1 -1 1 -1 1], the basic code group mapped by the second data segment 01011000 is [1 -1 1 1 1 -1], the basic code group mapped by the second data segment 01011001 is [1 1 -1 0 -1 0], the basic code group mapped by the second data segment 01011010 is [1 1 0 0 1 -1], the basic code group mapped by the second data segment 01011011 is [0 1 -1 -1 0 1], the basic code group mapped by the second data segment 01011100 is [1 0 1 0 -1 1], the basic code group mapped by the second data segment 01011101 is [0 1 0 -1 -1 1], the basic code group mapped by the second data segment 01011110 is [0 1 0 1 -1 -1], the basic code group mapped by the second data segment 01011111 is [-1 1 0 -1 0 1], the basic code group mapped by the second data segment 01100000 is [1 1 1 1 1 1], the basic code group mapped by the second data segment 01100001 is [0 -1 1 1 1 0], the basic code group mapped by the second data segment 01100010 is [0 1 0 0 -1 0], the basic code group mapped by the second data segment 01100011 is [1 -1 1 -1 0 0], the basic code group mapped by the second data segment 01100100 is [1 1 0 -1 0 -1], the basic code group mapped by the second data segment 01100101 is [1 0 0 1 -1 1], the basic code group mapped by the second data segment 01100110 is [-1 -1 1 1 -1 1], the basic code group mapped by the second data segment 01100111 is [0 1 1 -1 1 0], the basic code group mapped by the second data segment 01101000 is [-1 0 1 1 1 0], the basic code group mapped by the second data segment 01101001 is [1 0 0 1 0 0], the basic code group mapped by the second data segment 01101010 is [1 1 0 1 0 1],The basic code group mapped by the second data segment 01101011 is [0 0 0 -1 0 1], the basic code group mapped by the second data segment 01101100 is [-1 1 1 -1 -1 1], the basic code group mapped by the second data segment 01101101 is [1 0 1 0 1 1], the basic code group mapped by the second data segment 01101110 is [0 0 1 -1 -1 1], the basic code group mapped by the second data segment 01101111 is [0 0 -1 -1 1 1], the basic code group mapped by the second data segment 01110000 is [1 0 -1 0 1 1], the basic code group mapped by the second data segment 01110001 is [0 -1 1 0 0 0], the basic code group mapped by the second data segment 01110010 is [-1 1 0 1 0 1], the basic code group mapped by the second data segment 01110011 is [0 1 0 0 1 0], the basic code group mapped by the second data segment 01110100 is [1 1 1 0 0 -1], the basic code group mapped by the second data segment 01110101 is [1 0 1 0 1 -1], the basic code group mapped by the second data segment 01110110 is [1 -1 -1 1 1 -1], the basic code group mapped by the second data segment 01110111 is [1 0 -1 -1 0 1], the basic code group mapped by the second data segment 01111000 is [1 -1 -1 1 0 0], the basic code group mapped by the second data segment 01111001 is [1 1 0 -1 -1 0], the basic code group mapped by the second data segment 01111010 is [1 0 0 1 1 -1], the basic code group mapped by the second data segment 01111011 is [0 0 -1 0 0 1], the basic code group mapped by the second data segment 01111100 is [0 -1 0 0 1 0], the basic code group mapped by the second data segment 01111101 is [-1 1 1 0 0 -1], the basic code group mapped by the second data segment 01111110 is [-1 0 0 1 0 0], the basic code group mapped by the second data segment 01111111 is [0 -1 1 -1 0 1], the basic code group mapped by the second data segment 10000000 is [0 -1 1 1 0 1], the basic code group mapped by the second data segment 10000001 is [1 1 1 1 1 -1], the basic code group mapped by the second data segment 10000010 is [1 1 -1 0 0 -1], the basic code group mapped by the second data segment 10000011 is [-1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10000100 is [0 -1 1 0 1 1], the basic code group mapped by the second data segment 10000101 is [1 -1 0 -1 1 0],The basic code group mapped by the second data segment 10000110 is [0 1 1 0 0 0], the basic code group mapped by the second data segment 10000111 is [0 1 1 0 -1 -1], the basic code group mapped by the second data segment 10001000 is [1 0 1 -1 1 0], the basic code group mapped by the second data segment 10001001 is [1 1 0 1 1 0], the basic code group mapped by the second data segment 10001010 is [1 -1 0 1 1 0], the basic code group mapped by the second data segment 10001011 is [1 0 0 -1 1 -1], the basic code group mapped by the second data segment 10001100 is [1 0 -1 -1 1 0], the basic code group mapped by the second data segment 10001101 is [1 1 1 1 0 0], the basic code group mapped by the second data segment 10001110 is [1 1 -1 0 0 1], the basic code group mapped by the second data segment 10001111 is [1 0 0 -1 1 1], the basic code group mapped by the second data segment 10010000 is [1 0 1 1 0 1], the basic code group mapped by the second data segment 10010001 is [1 1 1 0 1 0], the basic code group mapped by the second data segment 10010010 is [1 1 0 -1 0 1], the basic code group mapped by the second data segment 10010011 is [1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10010100 is [1 1 -1 1 -1 1], the basic code group mapped by the second data segment 10010101 is [1 0 0 -1 -1 1], the basic code group mapped by the second data segment 10010110 is [1 1 -1 1 -1 -1], the basic code group mapped by the second data segment 10010111 is [-1 -1 1 -1 1 1], the basic code group mapped by the second data segment 10011000 is [1 -1 1 -1 -1 1], the basic code group mapped by the second data segment 10011001 is [0 1 0 1 0 0], the basic code group mapped by the second data segment 10011010 is [1 1 0 1 0 -1], the basic code group mapped by the second data segment 10011011 is [1 1 -1 -1 0 0], the basic code group mapped by the second data segment 10011100 is [-1 1 1 0 1 0], the basic code group mapped by the second data segment 10011101 is [1 0 1 1 0 -1], the basic code group mapped by the second data segment 10011110 is [0 0 1 1 0 0], the basic code group mapped by the second data segment 10011111 is [1 1 -1 1 1 -1], the basic code group mapped by the second data segment 10100000 is [0 1 1 0 -1 1],The basic code group mapped by the second data segment 10100001 is [1 0 -1 1 0 -1], the basic code group mapped by the second data segment 10100010 is [1 -1 0 0 0 0], the basic code group mapped by the second data segment 10100011 is [-1 0 -1 1 0 1], the basic code group mapped by the second data segment 10100100 is [0 1 1 1 0 -1], the basic code group mapped by the second data segment 10100101 is [1 0 -1 1 -1 0], the basic code group mapped by the second data segment 10100110 is [-1 0 1 0 1 -1], the basic code group mapped by the second data segment 10100111 is [0 -1 0 0 0 1], the basic code group mapped by the second data segment 10101000 is [1 1 -1 -1 1 1], the basic code group mapped by the second data segment 10101001 is [0 1 1 1 1 0], the basic code group mapped by the second data segment 10101010 is [1 -1 -1 1 1 1], the basic code group mapped by the second data segment 10101011 is [1 -1 1 0 -1 0], the basic code group mapped by the second data segment 10101100 is [1 -1 1 1 1 1], the basic code group mapped by the second data segment 10101101 is [-1 1 1 0 -1 0], the basic code group mapped by the second data segment 10101110 is [0 0 1 1 1 -1], the basic code group mapped by the second data segment 10101111 is [1 0 -1 1 1 0], the basic code group mapped by the second data segment 10110000 is [-1 1 1 1 0 0], the basic code group mapped by the second data segment 10110001 is [-1 0 1 -1 0 1], the basic code group mapped by the second data segment 10110010 is [0 -1 -1 0 1 1], the basic code group mapped by the second data segment 10110011 is [0 0 -1 0 1 0], the basic code group mapped by the second data segment 10110100 is [-1 1 0 0 1 1], the basic code group mapped by the second data segment 10110101 is [-1 0 0 0 1 0], the basic code group mapped by the second data segment 10110110 is [0 -1 -1 1 1 0], the basic code group mapped by the second data segment 10110111 is [-1 0 0 1 -1 1], the basic code group mapped by the second data segment 10111000 is [1 0 1 -1 1 1], the basic code group mapped by the second data segment 10111001 is [1 -1 0 -1 0 1], the basic code group mapped by the second data segment 10111010 is [-1 1 0 0 -1 1], the basic code group mapped by the second data segment 10111011 is [0 -1 0 1 1 -1],The basic code group mapped by the second data segment 10111100 is [0 -1 0 -1 1 1], the basic code group mapped by the second data segment 10111101 is [0 0 -1 1 1 -1], the basic code group mapped by the second data segment 10111110 is [-1 1 -1 1 0 0], the basic code group mapped by the second data segment 10111111 is [1 1 -1 0 1 0], the basic code group mapped by the second data segment 11000000 is [-1 0 1 0 0 0], the basic code group mapped by the second data segment 11000001 is [1 0 1 0 -1 -1], the basic code group mapped by the second data segment 11000010 is [1 0 0 0 0 -1], the basic code group mapped by the second data segment 11000011 is [1 0 1 1 -1 1], the basic code group mapped by the second data segment 11000100 is [0 0 1 -1 1 1], the basic code group mapped by the second data segment 11000101 is [-1 1 -1 0 1 0], the basic code group mapped by the second data segment 11000110 is [1 -1 0 0 1 -1], the basic code group mapped by the second data segment 11000111 is [-1 1 0 1 -1 0], the basic code group mapped by the second data segment 11001000 is [0 1 0 1 -1 1], the basic code group mapped by the second data segment 11001001 is [0 1 0 -1 1 -1], the basic code group mapped by the second data segment 11001010 is [-1 1 -1 1 1 1], the basic code group mapped by the second data segment 11001011 is [-1 1 0 1 0 -1], the basic code group mapped by the second data segment 11001100 is [-1 1 1 -1 0 0], the basic code group mapped by the second data segment 11001101 is [-1 -1 1 1 1 1], the basic code group mapped by the second data segment 11001110 is [0 0 1 0 0 -1], the basic code group mapped by the second data segment 11001111 is [0 0 0 1 1 0], the basic code group mapped by the second data segment 11010000 is [1 0 1 1 -1 0], the basic code group mapped by the second data segment 11010001 is [-1 0 -1 1 1 0], the basic code group mapped by the second data segment 11010010 is [0 1 -1 0 1 1], the basic code group mapped by the second data segment 11010011 is [0 0 0 -1 1 0], the basic code group mapped by the second data segment 11010100 is [0 1 0 -1 0 0], the basic code group mapped by the second data segment 11010101 is [0 0 0 1 -1 0], the basic code group mapped by the second data segment 11010110 is [1 -1 -1 0 1 0],The basic code group mapped by the second data segment 11010111 is [1 1 0 0 -1 1], the basic code group mapped by the second data segment 11011000 is [0 -1 0 1 1 1], the basic code group mapped by the second data segment 11011001 is [-1 -1 1 1 0 0], the basic code group mapped by the second data segment 11011010 is [-1 1 1 -1 1 1], the basic code group mapped by the second data segment 11011011 is [0 -1 0 1 0 0], the basic code group mapped by the second data segment 11011100 is [0 0 1 0 -1 0], the basic code group mapped by the second data segment 11011101 is [-1 0 1 -1 1 0], the basic code group mapped by the second data segment 11011110 is [-1 0 0 1 1 -1], the basic code group mapped by the second data segment 11011111 is [-1 -1 1 0 1 0], the basic code group mapped by the second data segment 11100000 is [1 1 -1 -1 1 -1], the basic code group mapped by the second data segment 11100001 is [-1 0 0 0 0 1], the basic code group mapped by the second data segment 11100010 is [1 1 0 1 -1 0], the basic code group mapped by the second data segment 11100011 is [1 1 1 -1 1 1], the basic code group mapped by the second data segment 11100100 is [-1 0 1 1 0 -1], the basic code group mapped by the second data segment 11100101 is [1 0 0 1 -1 -1], the basic code group mapped by the second data segment 11100110 is [0 0 0 1 0 -1], the basic code group mapped by the second data segment 11100111 is [-1 -1 0 1 1 0], the basic code group mapped by the second data segment 11101000 is [0 0 0 1 0 1], the basic code group mapped by the second data segment 11101001 is [-1 0 1 0 -1 1], the basic code group mapped by the second data segment 11101010 is [-1 0 1 1 -1 0], the basic code group mapped by the second data segment 11101011 is [1 0 0 0 -1 0], the basic code group mapped by the second data segment 11101100 is [0 1 0 1 1 1], the basic code group mapped by the second data segment 11101101 is [-1 -1 1 1 1 -1], the basic code group mapped by the second data segment 11101110 is [0 1 0 -1 1 1], the basic code group mapped by the second data segment 11101111 is [-1 0 0 1 1 1], the basic code group mapped by the second data segment 11110000 is [1 -1 0 1 0 -1], the basic code group mapped by the second data segment 11110001 is [1 0 -1 0 1 -1],The basic code group mapped by the second data segment 11110010 is [-1 -1 0 1 0 1], the basic code group mapped by the second data segment 11110011 is [1 -1 0 1 -1 0], the basic code group mapped by the second data segment 11110100 is [0 1 -1 1 -1 0], the basic code group mapped by the second data segment 11110101 is [1 1 -1 1 0 0], the basic code group mapped by the second data segment 11110110 is [0 1 1 0 1 1], the basic code group mapped by the second data segment 11110111 is [0 1 1 1 -1 0], the basic code group mapped by the second data segment 11111000 is [1 -1 0 0 -1 1], the basic code group mapped by the second data segment 11111001 is [0 1 -1 1 0 -1], the basic code group mapped by the second data segment 11111010 is [0 -1 1 0 -1 1], the basic code group mapped by the second data segment 11111011 is [0 0 1 -1 1 -1], the basic code group mapped by the second data segment 11111100 is [-1 -1 -1 1 1 1], the basic code group mapped by the second data segment 11111101 is [0 1 -1 0 -1 1], the basic code group mapped by the second data segment 11111110 is [1 -1 1 0 1 0], and the basic code group mapped by the second data segment 11111111 is [-1 1 -1 0 0 1].

[0036] In a fourth aspect, a method for data encoding is provided, the method comprising: obtaining a first data segment in a data stream to be processed; and obtaining a plurality of basic code groups, the plurality of basic code groups comprising [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [0 0 0 0 0 0], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 1 0 1 -1 -1], [0 1 1 -1 1 0], [0 0 0 0 1 -1], [1 1 1 -1 -1 1], [0 0 1 -1 -1 1], [-1 0 1 1 0 -1], [0 1 -1 1 0 1], [0 -1 1 -1 1 0], [1 0 01 1 1]、[0 1 1 0 1 1]、[1 0 0 1 0 0]、[1 -1 0 1 1 0]、[0 1 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 0 1 -1 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 0 1 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 0 1 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[0 10 0 0 1]、[1 1 0 -1 0 1]、[0 1 -1 -1 0 1]、[1 -1 1 -1 1 -1]、[0 1 1 1 1 0]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 1 0 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 1 1 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -1 1 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[1 00 0 -1 0]、[-1 1 0 1 0 1]、[1 -1 1 0 0 1]、[-1 1 1 1 1 -1]、[-1 1 1 1 1 1]、[0 0 1 1 0 0]、[0 1 0 1 1 -1]、[1 -1 -1 0 0 1]、[0 0 1 1 -1 1]、[1 1 -1 1 -1 -1]、[1 -1 1 0 -1 0]、[-1 0 0 -1 1 1]、[1 1 0 -1 1 0]、[1 1 0 0 -1 -1]、[-1 1 0 1 0 -1]、[1 -1 -1 0 1 0]、[1 1 -1 -1 -1 1]、[1 0 1 1 -1 1]、[-1 0 0 1 1 -1]、[1 0 0 0 0 -1]、[1 1 -1 0 1 0]、[0 0 0 1 -1 0]、[0 0 1 -1 1 1]、[1 0 -1 1 0 -1]、[-1 -1 1 0 1 0]、[0 -1 1 0 1 1]、[0 0 1 -1 1 -1]、[1 1 1 1 0 0]、[0 -1 1 -1 0 1]、[0 0 0 1 1 0]、[0 0 1 1 1 1]、[-1 0 0 0 1 0]、[0 1 -1 -1 1 0]、[1 0 1 1 1 0]、[1 0 0 -1 0 0]、[0 1 -1 0 1 -1]、[1 1 1 1 1 1]、[1 1 1 0 0 1]、[0 -1 1 0 -1 1]、[1 -1 -1 1 0 0]、[0 -1 1 1 -1 0]、[1 0 -1 -1 1 0]、[1 0 0 1 1 -1]、[0 1 -1 0 -1 1]、[1 0 0 -1 1 1]、[1 0 -1 -1 0 1]、[1 0 1 -1 1 1]、[1 -1 1 -1 1 1]、[0 -1 -1 1 1 0]、[-1 1 -1 0 0 1]、[-1 -1 1 1 1 -1]、[0 0 1 0 -1 0]、[1 1 1 0 -1 0]、[1 0 1 1 0 1]、[1 0 0 1 -1 -1]、[-1 0 -1 1 1 0]、[-1 1 1 0 0 1]、[-1 1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 1 -1]、[-1 0 1 0 1 1]、[1 1 -1 1 0 0]、[1 1 0 0 0 0]、[1 1 1 -1 -1 -1]、[0 -1 0 1 1 1]、[0 0- 1001; encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0037] In a possible implementation, the plurality of basic code groups are in one-to-one mapping with a plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments include the first data segment.

[0038] In a possible implementation, the mapping relationship is a relationship obtained by random mapping.

[0039] In a possible implementation, the mapping relationship between the second data segment and the basic code group includes: the second data segment 00000000 is mapped to the basic code group [0 0 0 1 0 -1], the second data segment 00000001 is mapped to the basic code group [1 0 1 -1 0 1], the second data segment 00000010 is mapped to the basic code group [0 0 -1 0 1 0], the second data segment 00000011 is mapped to the basic code group [0 -1 0 1 -1 1], the second data segment 00000100 is mapped to the basic code group [1 0 0 1 -1 1], the second data segment 00000101 is mapped to the basic code group [0 1 0 -1 1 1], the second data segment 00000110 is mapped to the basic code group [-1 0 0 1 0 0], the second data segment 00000111 is mapped to the basic code group [1 1 1 1 -1 1], the second data segment 00001000 is mapped to the basic code group [1 -1 1 1 -1 1], the second data segment 00001001 is mapped to the basic code group [0 0 1 0 0 1], the second data segment 00001010 is mapped to the basic code group [0 -1 1 0 1 -1], the second data segment 00001011 is mapped to the basic code group [0 -1 0 -1 1 1], the second data segment 00001100 is mapped to the basic code group [-1 -1 0 0 1 1], the second data segment 00001101 is mapped to the basic code group [1 -1 0 -1 1 0], the second data segment 00001110 is mapped to the basic code group [0 1 0 0 -1 0], the second data segment 00001111 is mapped to the basic code group [1 -1 -1 1 1 1], the second data segment 00010000 is mapped to the basic code group [0 0 0 -1 0 1], the second data segment 00010001 is mapped to the basic code group [-1 1 0 0 1 1], the second data segment 00010010 is mapped to the basic code group [0 0 -1 1 -1 1], the second data segment 00010011 is mapped to the basic code group [0 0 0 0 0 0], the second data segment 00010100 is mapped to the basic code group [-1 1 1 -1 1 1], the second data segment 00010101 is mapped to the basic code group [-1 0 1 0 -1 1], the second data segment 00010110 is mapped to the basic code group [0 -1 0 1 1 -1], the second data segment 00010111 is mapped to the basic code group [0 0 -1 1 0 0], the second data segment 00011000 is mapped to the basic code group [-1 -1 1 1 -1 1], the second data segment 00011001 is mapped to the basic code group [-1 -1 0 1 0 1],The basic code group mapped by the second data segment 00011010 is [-1 0 0 1 -1 1], the basic code group mapped by the second data segment 00011011 is [-1 0 0 0 0 1], the basic code group mapped by the second data segment 00011100 is [1 1 -1 0 -1 0], the basic code group mapped by the second data segment 00011101 is [0 -1 1 0 0 0], the basic code group mapped by the second data segment 00011110 is [1 1 -1 0 0 1], the basic code group mapped by the second data segment 00011111 is [0 -1 -1 0 1 1], the basic code group mapped by the second data segment 00100000 is [1 1 0 0 1 -1], the basic code group mapped by the second data segment 00100001 is [1 0 0 -1 -1 1], the basic code group mapped by the second data segment 00100010 is [1 -1 0 -1 0 1], the basic code group mapped by the second data segment 00100011 is [-1 0 -1 1 0 1], the basic code group mapped by the second data segment 00100100 is [1 0 -1 0 -1 1], the basic code group mapped by the second data segment 00100101 is [0 0 -1 1 1 -1], the basic code group mapped by the second data segment 00100110 is [-1 -1 1 0 0 1], the basic code group mapped by the second data segment 00100111 is [0 0 0 0 1 1], the basic code group mapped by the second data segment 00101000 is [-1 1 -1 -1 1 1], the basic code group mapped by the second data segment 00101001 is [-1 0 0 1 1 1], the basic code group mapped by the second data segment 00101010 is [0 1 -1 1 -1 0], the basic code group mapped by the second data segment 00101011 is [-1 1 -1 1 -1 1], the basic code group mapped by the second data segment 00101100 is [-1 1 1 1 -1 -1], the basic code group mapped by the second data segment 00101101 is [1 -1 1 -1 -1 1], the basic code group mapped by the second data segment 00101110 is [0 1 0 -1 1 -1], the basic code group mapped by the second data segment 00101111 is [-1 0 1 1 -1 0], the basic code group mapped by the second data segment 00110000 is [1 0 1 0 -1 1], the basic code group mapped by the second data segment 00110001 is [0 -1 0 1 0 0], the basic code group mapped by the second data segment 00110010 is [0 1 1 0 -1 1], the basic code group mapped by the second data segment 00110011 is [1 1 1 -1 1 1], the basic code group mapped by the second data segment 00110100 is [0 1 0 1 -1 -1],The basic code group mapped by the second data segment 00110101 is [0 1 1 -1 1 0], the basic code group mapped by the second data segment 00110110 is [0 0 0 0 1 -1], the basic code group mapped by the second data segment 00110111 is [1 1 1 -1 -1 1], the basic code group mapped by the second data segment 00111000 is [0 0 1 -1 -1 1], the basic code group mapped by the second data segment 00111001 is [-1 0 1 1 0 -1], the basic code group mapped by the second data segment 00111010 is [0 1 -1 1 0 1], the basic code group mapped by the second data segment 00111011 is [0 -1 1 -1 1 0], the basic code group mapped by the second data segment 00111100 is [1 0 0 1 1 1], the basic code group mapped by the second data segment 00111101 is [0 1 1 0 1 1], the basic code group mapped by the second data segment 00111110 is [1 0 0 1 0 0], the basic code group mapped by the second data segment 00111111 is [1 -1 0 1 1 0], the basic code group mapped by the second data segment 01000000 is [0 1 1 1 0 -1], the basic code group mapped by the second data segment 01000001 is [0 0 1 1 -1 -1], the basic code group mapped by the second data segment 01000010 is [1 0 1 1 -1 0], the basic code group mapped by the second data segment 01000011 is [0 1 1 1 0 1], the basic code group mapped by the second data segment 01000100 is [1 1 0 1 -1 1], the basic code group mapped by the second data segment 01000101 is [1 1 -1 -1 1 -1], the basic code group mapped by the second data segment 01000110 is [-1 1 -1 1 1 1], the basic code group mapped by the second data segment 01000111 is [0 -1 1 1 0 -1], the basic code group mapped by the second data segment 01001000 is [1 -1 0 0 -1 1], the basic code group mapped by the second data segment 01001001 is [1 -1 -1 1 1 -1], the basic code group mapped by the second data segment 01001010 is [-1 1 1 1 0 0], the basic code group mapped by the second data segment 01001011 is [0 1 1 -1 0 -1], the basic code group mapped by the second data segment 01001100 is [-1 -1 1 -1 1 1], the basic code group mapped by the second data segment 01001101 is [-1 1 1 1 -1 1], the basic code group mapped by the second data segment 01001110 is [1 1 -1 -1 0 0], the basic code group mapped by the second data segment 01001111 is [0 1 0 0 0 -1],The basic code group mapped by the second data segment 01010000 is [1 1 -1 0 0 -1], the basic code group mapped by the second data segment 01010001 is [0 1 0 0 1 0], the basic code group mapped by the second data segment 01010010 is [1 0 1 -1 0 -1], the basic code group mapped by the second data segment 01010011 is [1 1 0 1 0 1], the basic code group mapped by the second data segment 01010100 is [1 0 1 0 0 0], the basic code group mapped by the second data segment 01010101 is [1 1 -1 1 1 1], the basic code group mapped by the second data segment 01010110 is [0 0 1 1 1 -1], the basic code group mapped by the second data segment 01010111 is [0 -1 0 0 1 0], the basic code group mapped by the second data segment 01011000 is [-1 -1 -1 1 1 1], the basic code group mapped by the second data segment 01011001 is [1 1 -1 1 1 -1], the basic code group mapped by the second data segment 01011010 is [0 0 1 0 0 -1], the basic code group mapped by the second data segment 01011011 is [1 1 0 0 1 1], the basic code group mapped by the second data segment 01011100 is [0 0 0 1 0 1], the basic code group mapped by the second data segment 01011101 is [0 1 -1 1 1 0], the basic code group mapped by the second data segment 01011110 is [-1 0 1 1 1 0], the basic code group mapped by the second data segment 01011111 is [-1 1 0 1 1 0], the basic code group mapped by the second data segment 01100000 is [1 1 -1 -1 1 1], the basic code group mapped by the second data segment 01100001 is [-1 0 1 0 1 -1], the basic code group mapped by the second data segment 01100010 is [0 0 1 -1 0 0], the basic code group mapped by the second data segment 01100011 is [1 -1 1 1 1 1], the basic code group mapped by the second data segment 01100100 is [-1 0 1 -1 1 0], the basic code group mapped by the second data segment 01100101 is [-1 -1 1 1 1 1], the basic code group mapped by the second data segment 01100110 is [-1 1 0 1 -1 0], the basic code group mapped by the second data segment 01100111 is [1 -1 1 1 -1 -1], the basic code group mapped by the second data segment 01101000 is [1 -1 -1 -1 1 1], the basic code group mapped by the second data segment 01101001 is [-1 0 1 0 0 0], the basic code group mapped by the second data segment 01101010 is [1 -1 -1 1 -1 1],The basic code group mapped by the second data segment 01101011 is [-1 1 1 -1 0 0], the basic code group mapped by the second data segment 01101100 is [0 0 0 -1 1 0], the basic code group mapped by the second data segment 01101101 is [-1 0 1 1 0 1], the basic code group mapped by the second data segment 01101110 is [1 1 1 1 1 -1], the basic code group mapped by the second data segment 01101111 is [0 1 1 -1 -1 0], the basic code group mapped by the second data segment 01110000 is [1 0 -1 1 0 1], the basic code group mapped by the second data segment 01110001 is [1 -1 1 -1 0 0], the basic code group mapped by the second data segment 01110010 is [0 0 -1 -1 1 1], the basic code group mapped by the second data segment 01110011 is [0 1 1 0 -1 -1], the basic code group mapped by the second data segment 01110100 is [-1 1 1 0 0 -1], the basic code group mapped by the second data segment 01110101 is [1 -1 0 0 1 -1], the basic code group mapped by the second data segment 01110110 is [1 -1 0 0 1 1], the basic code group mapped by the second data segment 01110111 is [1 1 1 0 1 0], the basic code group mapped by the second data segment 01111000 is [1 -1 0 1 0 1], the basic code group mapped by the second data segment 01111001 is [0 0 -1 1 1 1], the basic code group mapped by the second data segment 01111010 is [0 0 0 0 -1 1], the basic code group mapped by the second data segment 01111011 is [-1 -1 0 1 1 0], the basic code group mapped by the second data segment 01111100 is [-1 0 1 -1 0 1], the basic code group mapped by the second data segment 01111101 is [0 1 0 0 0 1], the basic code group mapped by the second data segment 01111110 is [1 1 0 -1 0 1], the basic code group mapped by the second data segment 01111111 is [0 1 -1 -1 0 1], the basic code group mapped by the second data segment 10000000 is [1 -1 1 -1 1 -1], the basic code group mapped by the second data segment 10000001 is [0 1 1 1 1 0], the basic code group mapped by the second data segment 10000010 is [-1 1 1 -1 -1 1], the basic code group mapped by the second data segment 10000011 is [1 1 0 1 -1 0], the basic code group mapped by the second data segment 10000100 is [1 -1 1 0 0 -1], the basic code group mapped by the second data segment 10000101 is [1 0 -1 0 0 0],The basic code group mapped by the second data segment 10000110 is [0 1 0 -1 -1 1], the basic code group mapped by the second data segment 10000111 is [0 1 0 -1 0 0], the basic code group mapped by the second data segment 10001000 is [-1 -1 1 1 0 0], the basic code group mapped by the second data segment 10001001 is [1 1 0 -1 -1 0], the basic code group mapped by the second data segment 10001010 is [1 -1 0 1 -1 0], the basic code group mapped by the second data segment 10001011 is [0 1 1 -1 0 1], the basic code group mapped by the second data segment 10001100 is [-1 1 -1 1 1 -1], the basic code group mapped by the second data segment 10001101 is [1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10001110 is [1 0 0 -1 1 -1], the basic code group mapped by the second data segment 10001111 is [-1 1 1 0 1 0], the basic code group mapped by the second data segment 10010000 is [0 1 -1 0 0 0], the basic code group mapped by the second data segment 10010001 is [-1 1 0 0 -1 1], the basic code group mapped by the second data segment 10010010 is [1 -1 0 0 0 0], the basic code group mapped by the second data segment 10010011 is [1 0 1 -1 1 0], the basic code group mapped by the second data segment 10010100 is [1 1 -1 1 -1 1], the basic code group mapped by the second data segment 10010101 is [0 1 1 1 -1 0], the basic code group mapped by the second data segment 10010110 is [1 -1 0 1 0 -1], the basic code group mapped by the second data segment 10010111 is [1 0 1 1 0 -1], the basic code group mapped by the second data segment 10011000 is [-1 1 -1 1 0 0], the basic code group mapped by the second data segment 10011001 is [-1 1 1 -1 1 -1], the basic code group mapped by the second data segment 10011010 is [0 1 -1 1 0 -1], the basic code group mapped by the second data segment 10011011 is [1 -1 1 1 1 -1], the basic code group mapped by the second data segment 10011100 is [1 0 0 0 1 0], the basic code group mapped by the second data segment 10011101 is [-1 1 0 0 0 0], the basic code group mapped by the second data segment 10011110 is [-1 1 1 0 -1 0], the basic code group mapped by the second data segment 10011111 is [1 -1 1 1 0 0], the basic code group mapped by the second data segment 10100000 is [1 -1 1 0 1 0],The basic code group mapped by the second data segment 10100001 is [1 1 1 -1 0 0], the basic code group mapped by the second data segment 10100010 is [1 1 1 -1 1 -1], the basic code group mapped by the second data segment 10100011 is [1 1 0 1 0 -1], the basic code group mapped by the second data segment 10100100 is [0 1 0 1 0 0], the basic code group mapped by the second data segment 10100101 is [0 1 0 1 -1 1], the basic code group mapped by the second data segment 10100110 is [1 0 -1 1 -1 0], the basic code group mapped by the second data segment 10100111 is [1 1 1 0 0 -1], the basic code group mapped by the second data segment 10101000 is [1 1 0 0 -1 1], the basic code group mapped by the second data segment 10101001 is [1 1 0 -1 0 -1], the basic code group mapped by the second data segment 10101010 is [0 -1 -1 1 0 1], the basic code group mapped by the second data segment 10101011 is [-1 1 0 0 1 -1], the basic code group mapped by the second data segment 10101100 is [1 0 1 0 1 -1], the basic code group mapped by the second data segment 10101101 is [1 0 -1 0 1 -1], the basic code group mapped by the second data segment 10101110 is [1 0 -1 1 1 0], the basic code group mapped by the second data segment 10101111 is [-1 0 -1 0 1 1], the basic code group mapped by the second data segment 10110000 is [1 0 1 0 -1 -1], the basic code group mapped by the second data segment 10110001 is [1 0 0 0 0 1], the basic code group mapped by the second data segment 10110010 is [0 0 1 0 1 0], the basic code group mapped by the second data segment 10110011 is [1 0 -1 0 1 1], the basic code group mapped by the second data segment 10110100 is [1 0 1 -1 -1 0], the basic code group mapped by the second data segment 10110101 is [-1 1 0 -1 0 1], the basic code group mapped by the second data segment 10110110 is [1 1 0 1 1 0], the basic code group mapped by the second data segment 10110111 is [0 1 -1 0 1 1], the basic code group mapped by the second data segment 10111000 is [1 0 1 0 1 1], the basic code group mapped by the second data segment 10111001 is [0 -1 1 1 1 0], the basic code group mapped by the second data segment 10111010 is [0 -1 1 1 0 1], the basic code group mapped by the second data segment 10111011 is [0 -1 0 0 0 1],The basic code group mapped by the second data segment 10111100 is [0 1 0 1 1 1], the basic code group mapped by the second data segment 10111101 is [-1 1 -1 0 1 0], the basic code group mapped by the second data segment 10111110 is [1 0 0 0 -1 0], the basic code group mapped by the second data segment 10111111 is [-1 1 0 1 0 1], the basic code group mapped by the second data segment 11000000 is [1 -1 1 0 0 1], the basic code group mapped by the second data segment 11000001 is [-1 1 1 1 1 -1], the basic code group mapped by the second data segment 11000010 is [-1 1 1 1 1 1], the basic code group mapped by the second data segment 11000011 is [0 0 1 1 0 0], the basic code group mapped by the second data segment 11000100 is [0 1 0 1 1 -1], the basic code group mapped by the second data segment 11000101 is [1 -1 -1 0 0 1], the basic code group mapped by the second data segment 11000110 is [0 0 1 1 -1 1], the basic code group mapped by the second data segment 11000111 is [1 1 -1 1 -1 -1], the basic code group mapped by the second data segment 11001000 is [1 -1 1 0 -1 0], the basic code group mapped by the second data segment 11001001 is [-1 0 0 -1 1 1], the basic code group mapped by the second data segment 11001010 is [1 1 0 -1 1 0], the basic code group mapped by the second data segment 11001011 is [1 1 0 0 -1 -1], the basic code group mapped by the second data segment 11001100 is [-1 1 0 1 0 -1], the basic code group mapped by the second data segment 11001101 is [1 -1 -1 0 1 0], the basic code group mapped by the second data segment 11001110 is [1 1 -1 -1 -1 1], the basic code group mapped by the second data segment 11001111 is [1 0 1 1 -1 1], the basic code group mapped by the second data segment 11010000 is [-1 0 0 1 1 -1], the basic code group mapped by the second data segment 11010001 is [1 0 0 0 0 -1], the basic code group mapped by the second data segment 11010010 is [1 1 -1 0 1 0], the basic code group mapped by the second data segment 11010011 is [0 0 0 1 -1 0], the basic code group mapped by the second data segment 11010100 is [0 0 1 -1 1 1], the basic code group mapped by the second data segment 11010101 is [1 0 -1 1 0 -1], the basic code group mapped by the second data segment 11010110 is [-1 -1 1 0 1 0],The basic code group mapped by the second data segment 11010111 is [0 -1 1 0 1 1], the basic code group mapped by the second data segment 11011000 is [0 0 1 -1 1 -1], the basic code group mapped by the second data segment 11011001 is [1 1 1 1 0 0], the basic code group mapped by the second data segment 11011010 is [0 -1 1 -1 0 1], the basic code group mapped by the second data segment 11011011 is [0 0 0 1 1 0], the basic code group mapped by the second data segment 11011100 is [0 0 1 1 1 1], the basic code group mapped by the second data segment 11011101 is [-1 0 0 0 1 0], the basic code group mapped by the second data segment 11011110 is [0 1 -1 -1 1 0], the basic code group mapped by the second data segment 11011111 is [1 0 1 1 1 0], the basic code group mapped by the second data segment 11100000 is [1 0 0 -1 0 0], the basic code group mapped by the second data segment 11100001 is [0 1 -1 0 1 -1], the basic code group mapped by the second data segment 11100010 is [1 1 1 1 1 1], the basic code group mapped by the second data segment 11100011 is [1 1 1 0 0 1], the basic code group mapped by the second data segment 11100100 is [0 -1 1 0 -1 1], the basic code group mapped by the second data segment 11100101 is [1 -1 -1 1 0 0], the basic code group mapped by the second data segment 11100110 is [0 -1 1 1 -1 0], the basic code group mapped by the second data segment 11100111 is [1 0 -1 -1 1 0], the basic code group mapped by the second data segment 11101000 is [1 0 0 1 1 -1], the basic code group mapped by the second data segment 11101001 is [0 1 -1 0 -1 1], the basic code group mapped by the second data segment 11101010 is [1 0 0 -1 1 1], the basic code group mapped by the second data segment 11101011 is [1 0 -1 -1 0 1], the basic code group mapped by the second data segment 11101100 is [1 0 1 -1 1 1], the basic code group mapped by the second data segment 11101101 is [1 -1 1 -1 1 1], the basic code group mapped by the second data segment 11101110 is [0 -1 -1 1 1 0], the basic code group mapped by the second data segment 11101111 is [-1 1 -1 0 0 1], the basic code group mapped by the second data segment 11110000 is [-1 -1 1 1 1 -1], the basic code group mapped by the second data segment 11110001 is [0 0 1 0 -1 0],The basic code group mapped by the second data segment 11110010 is [1 1 1 0 -1 0], the basic code group mapped by the second data segment 11110011 is [1 0 1 1 0 1], the basic code group mapped by the second data segment 11110100 is [1 0 0 1 -1 -1], the basic code group mapped by the second data segment 11110101 is [-1 0 -1 1 1 0], the basic code group mapped by the second data segment 11110110 is [-1 1 1 0 0 1], the basic code group mapped by the second data segment 11110111 is [-1 1 0 -1 1 0], the basic code group mapped by the second data segment 11111000 is [0 1 1 0 0 0], the basic code group mapped by the second data segment 11111001 is [0 1 1 0 1 -1], the basic code group mapped by the second data segment 11111010 is [-1 0 1 0 1 1], the basic code group mapped by the second data segment 11111011 is [1 1 -1 1 0 0], the basic code group mapped by the second data segment 11111100 is [1 1 0 0 0 0], the basic code group mapped by the second data segment 11111101 is [1 1 1 -1 -1 -1], the basic code group mapped by the second data segment 11111110 is [0 -1 0 1 1 1], and the basic code group mapped by the second data segment 11111111 is [0 0 -1 0 0 1].

[0040] In a fifth aspect, a method for data encoding is provided, the method comprising: obtaining a first data segment in a data stream to be processed; obtaining a plurality of basic code groups, the plurality of basic code groups comprising [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 0 0], [1 1 1 1 0 0], [1 1 -1 0 -1 0], [1 -1 1 0 -1 0], [1 -1 -1 0 1 0], [-1 1 1 0 -1 0], [-1 1 -1 0 1 0], [-1 -1 10 1 0]、[1 1 1 0 -1 0]、[1 1 -1 0 1 0]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -1 1 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -1 10 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0 -1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 1 1 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 0 1 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 1 1]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0 -1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 01]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[0 1 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 0 1]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 -1 1 0 -1 1]、[1 -1 0 1 -1 1]、[-1 1 0 1 -11], [1 -1 1 0 1 -1] ; encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0041] In a sixth aspect, a method for data encoding is provided, the method comprising: obtaining a first data segment in a data stream to be processed; obtaining a plurality of basic code groups, the plurality of basic code groups comprising [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 0 0], [1 1 1 1 0 0], [1 1 -1 0 -1 0], [1 -1 1 0 -1 0], [1 -1 -1 0 1 0], [-1 1 1 0 -1 0], [-1 1 -1 0 1 0], [-1 -1 10 1 0]、[1 1 1 0 -1 0]、[1 1 -1 0 1 0]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -1 1 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -1 10 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0 -1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 1 1 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 0 1 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 1 1]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0 -1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 01]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[0 1 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 0 1]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 0 1 -1 1 -1]、[1 0 -1 1 -1 1]、[1 -1 1 -1 0[1], [-1 1 -1 1 0 1]; The first data segment is encoded according to multiple basic code groups to obtain the first coded segment.

[0042] In a seventh aspect, a method of data encoding is provided, the method comprising: obtaining a first data segment in a data stream to be processed; and obtaining a plurality of basic code groups, the plurality of basic code groups comprising [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 1 0 1 -1 -1], [0 1 1 -1 1 0], [0 0 0 0 1 -1], [1 1 1 -1 -1 1], [0 0 1 -1 -1 1], [-1 0 1 1 0 -1], [0 1 -1 1 0 1], [0 -1 1 -1 1 0], [1 0 0 1 1 1], [0 1 10 1 1]、[1 0 0 1 0 0]、[1 -1 0 1 1 0]、[0 1 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 0 1 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 0 1 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[0 1 0 0 0 1]、[1 1 0 -1 0 1]、[0 1-1 -1 0 1]、[1 -1 1 -1 1 -1]、[0 1 1 1 1 0]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 1 0 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 1 1 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -1 1 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[1 0 0 0 -1 0]、[-1 1 0 1 0 1]、[1-1 1 0 0 1]、[-1 1 1 1 1 -1]、[-1 1 1 1 1 1]、[0 0 1 1 0 0]、[0 1 0 1 1 -1]、[1 -1 -1 0 0 1]、[0 0 1 1 -1 1]、[1 1 -1 1 -1 -1]、[1 -1 1 0 -1 0]、[-1 0 0 -1 1 1]、[1 1 0 -1 1 0]、[1 1 0 0 -1 -1]、[-1 1 0 1 0 -1]、[1 -1 -1 0 1 0]、[1 1 -1 -1 -1 1 1]、[-1 0 0 1 1 -1]、[1 0 0 0 0 -1]、[1 1 [-1 0 1 0], [0 0 0 1 -1 0], [0 0 1 -1 1 1], [1 0 -1 1 0 -1], [-1 -1 1 0 1 0], [0 -1 1 0 1 1], [0 0 1 -1 1 -1], [1 1 1 1 0 0], [0 -1 1 -1 0 1], [0 0 0 1 1 0], [0 0 1 1 1 1], [-1 0 0 0 1 0], [0 1 -1 -1 1 0], [1 0 1 1 1 0], [1 0 0 -1 0 0], [0 1 -1 0 1 -1], [1 1 1 1 1 1], [1 1 1 0 0] 1]、[0 -1 1 0 -1 1]、[1 -1 -1 1 0 0]、[0 -1 1 1 -1 0]、[1 0 -1 -1 1 0]、[1 0 0 1 1 -1]、[0 1 -1 0 -1 1]、[1 0 0 -1 1 1]、[1 0 -1 -1 0 1]、[1 -1 1 -1 1 1]、[0 -1 -1 1 1 0]、[-1 1 -1 0 0 1]、[-1 -1 1 1 1 -1]、[0 0 1 0 -1 0]、[1 1 1 0 -1 0]、[1 0 1 1 0 1]、[1 0 0 1 -1 -1]、[-1 0 -1 1 1 [0], [-1 1 1 0 0 1], [-1 1 0 -1 1 0], [0 1 1 0 0 0], [0 1 1 0 1 -1], [-1 0 1 0 1 1], [1 1 -1 1 0 0], [1 1 0 0 0 0], [1 1 1 -1 -1 -1], [0 -1 0 1 1 1], [0 0 -1 0 0 1]; The first data segment is encoded according to multiple basic code groups to obtain the first coded segment.

[0043] In a possible implementation manner of any of the fifth to seventh aspects, the plurality of basic code groups are one-to-one mapped with the plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments include the first data segment.

[0044] In a possible implementation manner of any of the fifth to seventh aspects, the mapping relationship is a relationship obtained through random mapping.

[0045] In an eighth aspect, a data encoding apparatus is provided, which includes: a transceiver module configured to perform operations related to receiving and / or transmitting in the first aspect or any of the possible implementation manners of the first aspect; and a processing module configured to perform operations other than the operations related to receiving and / or transmitting in the first aspect or any of the possible implementation manners of the first aspect.

[0046] In a possible implementation manner, the transceiver module is configured to obtain a first data segment in a data stream to be processed; and the processing module is configured to obtain a plurality of basic code groups, the plurality of basic code groups being composed of a first code group set and a second code group set, a minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups being greater than a minimum Euclidean distance, a minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups being equal to the minimum Euclidean distance, the minimum Euclidean distance being a minimum distance between different levels generated by PAM modulation, a number of basic code groups in the first code group set being greater than a number of basic code groups in the second code group set; and the processing module is further configured to encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0047] In a possible implementation manner, the processing module is configured to determine, according to a mapping relationship between the first code group and the first data segment, a first code group corresponding to the first data segment from the plurality of basic code groups; and encode the first data segment based on the first code group to obtain a first encoded segment.

[0048] In a possible implementation manner, the processing module is configured to determine the first encoded segment based on unevenness of the first code group.

[0049] In a possible implementation manner, the number of basic code groups in the second code group set is 0.

[0050] In a possible implementation manner, the processing module is configured to obtain a plurality of candidate code groups; and select the plurality of basic code groups from the plurality of candidate code groups according to code group distances between the candidate code groups.

[0051] In a possible implementation, the processing module is configured to divide the plurality of candidate code groups into a plurality of code group subsets according to code group distances between the candidate code groups, different code group subsets include different candidate code groups, and a code group distance between any two candidate code groups in any code group subset is greater than the minimum Euclidean distance; and select the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets.

[0052] In a possible implementation, for any code group subset, the candidate code groups included in the code group subset satisfy a symbol distribution condition, the symbol distribution condition is determined based on referenced candidate code groups, and a code group distance between any two referenced candidate code groups is greater than the minimum Euclidean distance.

[0053] In a possible implementation, the processing module is configured to determine a first number of candidate code groups in each code group subset that satisfy a selection condition of unevenness, the selection condition includes that a change amount of unevenness is not less than a first value or the change amount is not greater than the first value; and select the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets according to the first number of each code group subset.

[0054] In a possible implementation, the processing module is configured to determine a first subset with a maximum first number from the plurality of code group subsets; and determine each candidate code group included in the first subset that satisfies the selection condition as a basic code group, or, from the candidate code groups included in the first subset that satisfy the selection condition, select a basic code group according to a level value of each candidate code group.

[0055] In a possible implementation, the processing module is configured to determine a first subset with a maximum first number from the plurality of code group subsets; and determine each candidate code group included in the first subset that satisfies the selection condition as a basic code group, or, from the candidate code groups included in the first subset that satisfy the selection condition, select a basic code group according to a level value of each candidate code group; and select a basic code group according to a level value of each candidate code group from the candidate code groups included in a second subset that satisfy the selection condition, the second subset being different from the first subset.

[0056] In a possible implementation, the basic code group selected according to the level value of each candidate code group satisfies at least one of the following conditions: a continuous number of the same level value is less than a first threshold; or a number of intermediate state values in the level values is less than a second threshold, or a number of jumps in the level values is greater than a third threshold.

[0057] In a possible implementation, in a case where the PAM modulation includes PAM3 modulation, the minimum Euclidean distance is 1.

[0058] In a possible implementation, in a case where the PAM modulation includes PAM4 modulation, the minimum Euclidean distance is 2.

[0059] In a ninth aspect, a data decoding apparatus is provided, the apparatus comprising: a processing module configured to obtain a signal segment in a signal stream to be decoded; the processing module is further configured to obtain a plurality of reference code groups corresponding to the signal stream, the reference code groups being obtained based on a plurality of basic code groups, the plurality of basic code groups being used to encode a data stream corresponding to the signal stream, the plurality of basic code groups being composed of a first code group set and a second code group set, a minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups being greater than a minimum Euclidean distance, a minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups being equal to the minimum Euclidean distance, the minimum Euclidean distance being a minimum distance between different levels generated by PAM modulation, a number of basic code groups in the first code group set being greater than a number of basic code groups in the second code group set; the processing module is further configured to determine a reference code group with a minimum code group distance to the signal segment from the plurality of reference code groups, and decode a first data segment corresponding to the signal segment according to the determined reference code group.

[0060] In a possible implementation, the processing module is configured to obtain a plurality of PAM signals included in the signal stream; and divide the plurality of PAM signals into a plurality of signal segments according to combination boundary information of the plurality of PAM signals, any signal segment including the plurality of PAM signals.

[0061] In a possible implementation, the processing module is configured to obtain a plurality of received signals; and perform PAM equalization on any received signal based on a stable convergent equalizer to obtain a PAM signal corresponding to the received signal.

[0062] In a possible implementation, the equalizer performs stable convergence by updating coefficients of the equalizer based on an error, and in a case where the PAM equalization is PAM3 equalization, the coefficients updated based on the error are calculated by performing PAM3 decision on an output signal of the equalizer, the output signal being a signal processed by the equalizer before any received signal, and the PAM signal being a PAM3 signal.

[0063] In a possible implementation, the equalizer performs stable convergence by updating coefficients of the equalizer based on an error, and in a case where the PAM equalization is PAM4 equalization, the coefficients updated based on the error are calculated by performing PAM4 decision on an output signal of the equalizer, the output signal being a signal processed by the equalizer before any received signal, and the PAM signal being a PAM4 signal.

[0064] In a possible implementation, the equalizer performs stable convergence by updating coefficients of the equalizer based on an error, and in a case where the PAM equalization is PAM5 equalization, the coefficients updated based on the error are calculated by performing PAM5 decision on an output signal of the equalizer, the output signal being a signal processed by the equalizer before any received signal, and the PAM signal being a PAM5 signal.

[0065] In a possible implementation, the plurality of reference code groups comprises a plurality of base code groups and a plurality of complementary code groups, and the plurality of complementary code groups are obtained by taking the complement of each symbol in the plurality of base code groups.

[0066] In a tenth aspect, a device for data encoding is provided, which comprises: a transceiver module configured to perform the operations related to receiving and / or transmitting in the third aspect or any possible implementation of the third aspect; a processing module configured to perform operations other than the operations related to receiving and / or transmitting in the third aspect or any possible implementation of the third aspect; or a transceiver module configured to perform the operations related to receiving and / or transmitting in the fourth aspect or any possible implementation of the fourth aspect; a processing module configured to perform operations other than the operations related to receiving and / or transmitting in the fourth aspect or any possible implementation of the fourth aspect; or a transceiver module configured to perform the operations related to receiving and / or transmitting in the fifth aspect or any possible implementation of the fifth aspect; a processing module configured to perform operations other than the operations related to receiving and / or transmitting in the fifth aspect or any possible implementation of the fifth aspect; or a transceiver module configured to perform the operations related to receiving and / or transmitting in the sixth aspect or any possible implementation of the sixth aspect; a processing module configured to perform operations other than the operations related to receiving and / or transmitting in the sixth aspect or any possible implementation of the sixth aspect; or a transceiver module configured to perform the operations related to receiving and / or transmitting in the seventh aspect or any possible implementation of the seventh aspect; a processing module configured to perform operations other than the operations related to receiving and / or transmitting in the seventh aspect or any possible implementation of the seventh aspect.

[0067] In a possible implementation, the transceiving module is configured to acquire a first data segment in a data stream to be processed; and the processing module is configured to acquire a plurality of basic code groups, the plurality of basic code groups including [1 0 1 -1 0 1], [0 0 1 1 -1 -1], [0 1 -1 0 0 0], [-1 0 -1 0 1 1], [0 1 -1 -1 1 0], [1 0 0 0 1 0], [0 1 1 -1 0 1], [1 1 1 -1 -1 1], [0 1 1 -1 0 -1], [-1 1 -1 -1 1 1], [-1 0 1 1 0 1], [0 0 1 0 1 0], [0 -1 0 1 -1 1], [-1 1 0 -1 1 0], [1 1 0 1 -1 1], [1 -1 1 0 0 -1], [1 0 1 -1 -1 0], [1 0 0 -1 0 0], [1 1 1 1 -1 1], [-1 1 1 1 -1 1], [1 0 1 0 0 0], [1 0 -1 0 0 0], [0 1 -1 1 0 1], [0 0 1 0 0 1], [0 1 0 1 1 -1], [1 -1 -1 0 0 1], [-1 1 -1 1 1 -1], [0 0 1 1 1 1], [0 0 0 0 1 -1], [1 0 1 1 1 0], [0 -1 1 -1 1 0], [0 1 -1 0 1 -1], [0 0 -1 1 0 0], [1 1 1 -1 1 -1], [-1 1 1 1 1 1], [1 1 -1 -1 -1 1], [1 -1 1 1 0 0], [0 1 0 0 0 -1], [1 0 0 0 0 1], [1 1 1 -1 -1 -1], [1 -1 0 0 1 1], [-1 1 1 -1 1 -1], [1 -1 0 1 0 1], [0 0 1 1 -1 1], [0 -1 -1 1 0 1], [0 0 0 0 -1 1], [1 1 0 0 1 1], [1 1 0 1 1 -1], [-1 1 0 0 1 -1], [0 -1 1 1 0 -1], [1 1 0 0 -1 -1], [0 -1 1 1 -1 0], [0 -1 1 0 1 -1], [1 1 1 0 -1 0], [1 -1 -1 -1 1 1], [1 1 0 0 0 0], [0 0 0 0 1 1], [0 1 -1 1 1 0], [1 -1 1 1 -1 1], [-1 0 0 -1 1 1], [1 -1 1 0 01]、[1 0 1 -1 0 -1]、[-1 1 -1 1 -1 1]、[0 0 1 -1 0 0]、[0 1 1 0 1 -1]、[0 1 1 -1 -1 0]、[0 0 -1 1 -1 1]、[1 0 -1 1 0 1]、[1 1 0 -1 1 0]、[-1 0 1 0 1 1]、[1 -1 1 1 -1 -1]、[-1 1 0 1 1 0]、[1 -1 1 -1 1 -1]、[-1 1 0 0 0 0]、[-1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 -1 1 -1 1 1]、[1 1 1 0 0 1]、[0 0 -1 1 1 1]、[1 1 -1 1 1 1]、[0 1 0 0 0 1]、[1 1 1 -1 0 0]、[-1 1 1 1 1 -1]、[-1 -1 0 0 1 1]、[0 1 1 1 0 1]、[1 0 -1 0 -1 1]、[1 0 0 1 1 1]、[1 -1 -1 1 -1 1]、[1 -1 1 1 1 -1]、[1 1 -1 0 -1 0]、[1 1 0 0 1 -1]、[0 1 -1 -1 0 1]、[1 0 1 0 -1 1]、[0 1 0 -1 -1 1]、[0 1 0 1 -1 -1]、[-1 1 0 -1 0 1]、[1 1 1 1 1 1]、[0 -1 1 1 1 0]、[0 1 0 0 -1 0]、[1 -1 1 -1 0 0]、[1 1 0 -1 0 -1]、[1 0 0 1 -1 1]、[-1 -1 1 1 -1 1]、[0 1 1 -1 1 0]、[-1 0 1 1 1 0]、[1 0 0 1 0 0]、[1 1 0 1 0 1]、[0 0 0 -1 0 1]、[-1 1 1 -1 -1 1]、[1 0 1 0 1 1]、[0 0 1 -1 -1 1]、[0 0 -1 -1 1 1]、[1 0 -1 0 1 1]、[0 -1 1 0 0 0]、[-1 1 0 1 0 1]、[0 1 0 0 1 0]、[1 1 1 0 0 -1]、[1 0 1 0 1 -1]、[1 -1 -1 1 1 -1]、[1 0 -1 -1 0 1]、[1 -1 -1 1 0 0]、[1 1 0 -1 -1 0]、[1 0 0 1 1 -1]、[0 0 -1 0 0 1]、[0 -1 0 0 1 0]、[-1 1 1 0 0-1]、[-1 0 0 1 0 0]、[0 -1 1 -1 0 1]、[0 -1 1 1 0 1]、[1 1 1 1 1 -1]、[1 1 -1 0 0 -1]、[-1 1 1 1 -1 -1]、[0 -1 1 0 1 1]、[1 -1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 -1 -1]、[1 0 1 -1 1 0]、[1 1 0 1 1 0]、[1 -1 0 1 1 0]、[1 0 0 -1 1 -1]、[1 0 -1 -1 1 0]、[1 1 1 1 0 0]、[1 1 -1 0 0 1]、[1 0 0 -1 1 1]、[1 0 1 1 0 1]、[1 1 1 0 1 0]、[1 1 0 -1 0 1]、[1 1 1 1 -1 -1]、[1 1 -1 1 -1 1]、[1 0 0 -1 -1 1]、[1 1 -1 1 -1 -1]、[-1 -1 1 -1 1 1]、[1 -1 1 -1 -1 1]、[0 1 0 1 0 0]、[1 1 0 1 0 -1]、[1 1 -1 -1 0 0]、[-1 1 1 0 1 0]、[1 0 1 1 0 -1]、[0 0 1 1 0 0]、[1 1 -1 1 1 -1]、[0 1 1 0 -1 1]、[1 0 -1 1 0 -1]、[1 -1 0 0 0 0]、[-1 0 -1 1 0 1]、[0 1 1 1 0 -1]、[1 0 -1 1 -1 0]、[-1 0 1 0 1 -1]、[0 -1 0 0 0 1]、[1 1 -1 -1 1 1]、[0 1 1 1 1 0]、[1 -1 -1 1 1 1]、[1 -1 1 0 -1 0]、[1 -1 1 1 1 1]、[-1 1 1 0 -1 0]、[0 0 1 1 1 -1]、[1 0 -1 1 1 0]、[-1 1 1 1 0 0]、[-1 0 1 -1 0 1]、[0 -1 -1 0 1 1]、[0 0 -1 0 1 0]、[-1 1 0 0 1 1]、[-1 0 0 0 1 0]、[0 -1 -1 1 1 0]、[-1 0 0 1 -1 1]、[1 0 1 -1 1 1]、[1 -1 0 -1 0 1]、[-1 1 0 0 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 -1 1 1]、[0 0 -1 1 1 -1]、[-1 1 -11 0 0]、[1 1 -1 0 1 0]、[-1 0 1 0 0 0]、[1 0 1 0 -1 -1]、[1 0 0 0 0 -1]、[1 0 1 1 -1 1]、[0 0 1 -1 1 1]、[-1 1 -1 0 1 0]、[1 -1 0 0 1 -1]、[-1 1 0 1 -1 0]、[0 1 0 1 -1 1]、[0 1 0 -1 1 -1]、[-1 1 -1 1 1 1]、[-1 1 0 1 0 -1]、[-1 1 1 -1 0 0]、[-1 -1 1 1 1 1]、[0 0 1 0 0 -1]、[0 0 0 1 1 0]、[1 0 1 1 -1 0]、[-1 0 -1 1 1 0]、[0 1 -1 0 1 1]、[0 0 0 -1 1 0]、[0 1 0 -1 0 0]、[0 0 0 1 -1 0]、[1 -1 -1 0 1 0]、[1 1 0 0 -1 1]、[0 -1 0 1 1 1]、[-1 -1 1 1 0 0]、[-1 1 1 -1 1 1]、[0 -1 0 1 0 0]、[0 0 1 0 -1 0]、[-1 0 1 -1 1 0]、[-1 0 0 1 1 -1]、[-1 -1 1 0 1 0]、[1 1 -1 -1 1 -1]、[-1 0 0 0 0 1]、[1 1 0 1 -1 0]、[1 1 1 -1 1 1]、[-1 0 1 1 0 -1]、[1 0 0 1 -1 -1]、[0 0 0 1 0 -1]、[-1 -1 0 1 1 0]、[0 0 0 1 0 1]、[-1 0 1 0 -1 1]、[-1 0 1 1 -1 0]、[1 0 0 0 -1 0]、[0 1 0 1 1 1]、[-1 -1 1 1 1 -1]、[0 1 0 -1 1 1]、[-1 0 0 1 1 1]、[1 -1 0 1 0 -1]、[1 0 -1 0 1 -1]、[-1 -1 0 1 0 1]、[1 -1 0 1 -1 0]、[0 1 -1 1 -1 0]、[1 1 -1 1 0 0]、[0 1 1 0 1 1]、[0 1 1 1 -1 0]、[1 -1 0 0 -1 1]、[0 1 -1 1 0 -1]、[0 -1 1 0 -1 1]、[0 0 1 -1 1 -1]、[-1 -1 -1 1 1 1]、[0 1 -1 0 -1 1]、[1 -1 1 0 10] and [-1 1 -1 0 0 1]; the processing module is further configured to encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0068] In a possible implementation, the plurality of basic code groups are in one-to-one mapping with a plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments include the first data segment.

[0069] In a possible implementation, the mapping relationship is a relationship obtained through random mapping.

[0070] In a possible implementation, the mapping relationship between the second data segment and the basic code group includes: the second data segment 00000000 is mapped to the basic code group [1 0 1 -1 0 1], the second data segment 00000001 is mapped to the basic code group [0 0 1 1 -1 -1], the second data segment 00000010 is mapped to the basic code group [0 1 -1 0 0 0], the second data segment 00000011 is mapped to the basic code group [-1 0 -1 0 1 1], the second data segment 00000100 is mapped to the basic code group [0 1 -1 -1 1 0], the second data segment 00000101 is mapped to the basic code group [1 0 0 0 1 0], the second data segment 00000110 is mapped to the basic code group [0 1 1 -1 0 1], the second data segment 00000111 is mapped to the basic code group [1 1 1 -1 -1 1], the second data segment 00001000 is mapped to the basic code group [0 1 1 -1 0 -1], the second data segment 00001001 is mapped to the basic code group [-1 1 -1 -1 1 1], the second data segment 00001010 is mapped to the basic code group [-1 0 1 1 0 1], the second data segment 00001011 is mapped to the basic code group [0 0 1 0 1 0], the second data segment 00001100 is mapped to the basic code group [0 -1 0 1 -1 1], the second data segment 00001101 is mapped to the basic code group [-1 1 0 -1 1 0], the second data segment 00001110 is mapped to the basic code group [1 1 0 1 -1 1], the second data segment 00001111 is mapped to the basic code group [1 -1 1 0 0 -1], the second data segment 00010000 is mapped to the basic code group [1 0 1 -1 -1 0], the second data segment 00010001 is mapped to the basic code group [1 0 0 -1 0 0], the second data segment 00010010 is mapped to the basic code group [1 1 1 1 -1 1], the second data segment 00010011 is mapped to the basic code group [-1 1 1 1 -1 1], the second data segment 00010100 is mapped to the basic code group [1 0 1 0 0 0], the second data segment 00010101 is mapped to the basic code group [1 0 -1 0 0 0], the second data segment 00010110 is mapped to the basic code group [0 1 -1 1 0 1], the second data segment 00010111 is mapped to the basic code group [0 0 1 0 0 1], the second data segment 00011000 is mapped to the basic code group [0 1 0 1 1 -1], the second data segment 00011001 is mapped to the basic code group [1 -1 -1 0 0 1],The basic code group mapped by the second data segment 00011010 is [-1 1 -1 1 1 -1], the basic code group mapped by the second data segment 00011011 is [0 0 1 1 1 1], the basic code group mapped by the second data segment 00011100 is [0 0 0 0 1 -1], the basic code group mapped by the second data segment 00011101 is [1 0 1 1 1 0], the basic code group mapped by the second data segment 00011110 is [0 -1 1 -1 1 0], the basic code group mapped by the second data segment 00011111 is [0 1 -1 0 1 -1], the basic code group mapped by the second data segment 00100000 is [0 0 -1 1 0 0], the basic code group mapped by the second data segment 00100001 is [1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00100010 is [-1 1 1 1 1 1], the basic code group mapped by the second data segment 00100011 is [1 1 -1 -1 -1 1], the basic code group mapped by the second data segment 00100100 is [1 -1 1 1 0 0], the basic code group mapped by the second data segment 00100101 is [0 1 0 0 0 -1], the basic code group mapped by the second data segment 00100110 is [1 0 0 0 0 1], the basic code group mapped by the second data segment 00100111 is [1 1 1 -1 -1 -1], the basic code group mapped by the second data segment 00101000 is [1 -1 0 0 1 1], the basic code group mapped by the second data segment 00101001 is [-1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00101010 is [1 -1 0 1 0 1], the basic code group mapped by the second data segment 00101011 is [0 0 1 1 -1 1], the basic code group mapped by the second data segment 00101100 is [0 -1 -1 1 0 1], the basic code group mapped by the second data segment 00101101 is [0 0 0 0 -1 1], the basic code group mapped by the second data segment 00101110 is [1 1 0 0 1 1], the basic code group mapped by the second data segment 00101111 is [1 1 0 1 1 -1], the basic code group mapped by the second data segment 00110000 is [-1 1 0 0 1 -1], the basic code group mapped by the second data segment 00110001 is [0 -1 1 1 0 -1], the basic code group mapped by the second data segment 00110010 is [1 1 0 0 -1 -1], the basic code group mapped by the second data segment 00110011 is [0 -1 1 1 -1 0], the basic code group mapped by the second data segment 00110100 is [0 -1 1 0 1 -1],The basic code group mapped by the second data segment 00110101 is [1 1 1 0 -1 0], the basic code group mapped by the second data segment 00110110 is [1 -1 -1 -1 1 1], the basic code group mapped by the second data segment 00110111 is [1 1 0 0 0 0], the basic code group mapped by the second data segment 00111000 is [0 0 0 0 1 1], the basic code group mapped by the second data segment 00111001 is [0 1 -1 1 1 0], the basic code group mapped by the second data segment 00111010 is [1 -1 1 1 -1 1], the basic code group mapped by the second data segment 00111011 is [-1 0 0 -1 1 1], the basic code group mapped by the second data segment 00111100 is [1 -1 1 0 0 1], the basic code group mapped by the second data segment 00111101 is [1 0 1 -1 0 -1], the basic code group mapped by the second data segment 00111110 is [-1 1 -1 1 -1 1], the basic code group mapped by the second data segment 00111111 is [0 0 1 -1 0 0], the basic code group mapped by the second data segment 01000000 is [0 1 1 0 1 -1], the basic code group mapped by the second data segment 01000001 is [0 1 1 -1 -1 0], the basic code group mapped by the second data segment 01000010 is [0 0 -1 1 -1 1], the basic code group mapped by the second data segment 01000011 is [1 0 -1 1 0 1], the basic code group mapped by the second data segment 01000100 is [1 1 0 -1 1 0], the basic code group mapped by the second data segment 01000101 is [-1 0 1 0 1 1], the basic code group mapped by the second data segment 01000110 is [1 -1 1 1 -1 -1], the basic code group mapped by the second data segment 01000111 is [-1 1 0 1 1 0], the basic code group mapped by the second data segment 01001000 is [1 -1 1 -1 1 -1], the basic code group mapped by the second data segment 01001001 is [-1 1 0 0 0 0], the basic code group mapped by the second data segment 01001010 is [-1 -1 1 0 0 1], the basic code group mapped by the second data segment 01001011 is [-1 1 1 0 0 1], the basic code group mapped by the second data segment 01001100 is [1 -1 1 -1 1 1], the basic code group mapped by the second data segment 01001101 is [1 1 1 0 0 1], the basic code group mapped by the second data segment 01001110 is [0 0 -1 1 1 1], the basic code group mapped by the second data segment 01001111 is [1 1 -1 1 1 1],The basic code group mapped by the second data segment 01010000 is [0 1 0 0 1], the basic code group mapped by the second data segment 01010001 is [1 1 1 -1 0 0], the basic code group mapped by the second data segment 01010010 is [-1 1 1 1 1 -1], the basic code group mapped by the second data segment 01010011 is [-1 -1 0 0 1 1], the basic code group mapped by the second data segment 01010100 is [0 1 1 1 0 1], the basic code group mapped by the second data segment 01010101 is [1 0 -1 0 -1 1], the basic code group mapped by the second data segment 01010110 is [1 0 0 1 1 1], the basic code group mapped by the second data segment 01010111 is [1 -1 -1 1 -1 1], the basic code group mapped by the second data segment 01011000 is [1 -1 1 1 1 -1], the basic code group mapped by the second data segment 01011001 is [1 1 -1 0 -1 0], the basic code group mapped by the second data segment 01011010 is [1 1 0 0 1 -1], the basic code group mapped by the second data segment 01011011 is [0 1 -1 -1 0 1], the basic code group mapped by the second data segment 01011100 is [1 0 1 0 -1 1], the basic code group mapped by the second data segment 01011101 is [0 1 0 -1 -1 1], the basic code group mapped by the second data segment 01011110 is [0 1 0 1 -1 -1], the basic code group mapped by the second data segment 01011111 is [-1 1 0 -1 0 1], the basic code group mapped by the second data segment 01100000 is [1 1 1 1 1 1], the basic code group mapped by the second data segment 01100001 is [0 -1 1 1 1 0], the basic code group mapped by the second data segment 01100010 is [0 1 0 0 -1 0], the basic code group mapped by the second data segment 01100011 is [1 -1 1 -1 0 0], the basic code group mapped by the second data segment 01100100 is [1 1 0 -1 0 -1], the basic code group mapped by the second data segment 01100101 is [1 0 0 1 -1 1], the basic code group mapped by the second data segment 01100110 is [-1 -1 1 1 -1 1], the basic code group mapped by the second data segment 01100111 is [0 1 1 -1 1 0], the basic code group mapped by the second data segment 01101000 is [-1 0 1 1 1 0], the basic code group mapped by the second data segment 01101001 is [1 0 0 1 0 0], the basic code group mapped by the second data segment 01101010 is [1 1 0 1 0 1],The basic code group mapped by the second data segment 01101011 is [0 0 0 -1 0 1], the basic code group mapped by the second data segment 01101100 is [-1 1 1 -1 -1 1], the basic code group mapped by the second data segment 01101101 is [1 0 1 0 1 1], the basic code group mapped by the second data segment 01101110 is [0 0 1 -1 -1 1], the basic code group mapped by the second data segment 01101111 is [0 0 -1 -1 1 1], the basic code group mapped by the second data segment 01110000 is [1 0 -1 0 1 1], the basic code group mapped by the second data segment 01110001 is [0 -1 1 0 0 0], the basic code group mapped by the second data segment 01110010 is [-1 1 0 1 0 1], the basic code group mapped by the second data segment 01110011 is [0 1 0 0 1 0], the basic code group mapped by the second data segment 01110100 is [1 1 1 0 0 -1], the basic code group mapped by the second data segment 01110101 is [1 0 1 0 1 -1], the basic code group mapped by the second data segment 01110110 is [1 -1 -1 1 1 -1], the basic code group mapped by the second data segment 01110111 is [1 0 -1 -1 0 1], the basic code group mapped by the second data segment 01111000 is [1 -1 -1 1 0 0], the basic code group mapped by the second data segment 01111001 is [1 1 0 -1 -1 0], the basic code group mapped by the second data segment 01111010 is [1 0 0 1 1 -1], the basic code group mapped by the second data segment 01111011 is [0 0 -1 0 0 1], the basic code group mapped by the second data segment 01111100 is [0 -1 0 0 1 0], the basic code group mapped by the second data segment 01111101 is [-1 1 1 0 0 -1], the basic code group mapped by the second data segment 01111110 is [-1 0 0 1 0 0], the basic code group mapped by the second data segment 01111111 is [0 -1 1 -1 0 1], the basic code group mapped by the second data segment 10000000 is [0 -1 1 1 0 1], the basic code group mapped by the second data segment 10000001 is [1 1 1 1 1 -1], the basic code group mapped by the second data segment 10000010 is [1 1 -1 0 0 -1], the basic code group mapped by the second data segment 10000011 is [-1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10000100 is [0 -1 1 0 1 1], the basic code group mapped by the second data segment 10000101 is [1 -1 0 -1 1 0],The basic code group mapped by the second data segment 10000110 is [0 1 1 0 0 0], the basic code group mapped by the second data segment 10000111 is [0 1 1 0 -1 -1], the basic code group mapped by the second data segment 10001000 is [1 0 1 -1 1 0], the basic code group mapped by the second data segment 10001001 is [1 1 0 1 1 0], the basic code group mapped by the second data segment 10001010 is [1 -1 0 1 1 0], the basic code group mapped by the second data segment 10001011 is [1 0 0 -1 1 -1], the basic code group mapped by the second data segment 10001100 is [1 0 -1 -1 1 0], the basic code group mapped by the second data segment 10001101 is [1 1 1 1 0 0], the basic code group mapped by the second data segment 10001110 is [1 1 -1 0 0 1], the basic code group mapped by the second data segment 10001111 is [1 0 0 -1 1 1], the basic code group mapped by the second data segment 10010000 is [1 0 1 1 0 1], the basic code group mapped by the second data segment 10010001 is [1 1 1 0 1 0], the basic code group mapped by the second data segment 10010010 is [1 1 0 -1 0 1], the basic code group mapped by the second data segment 10010011 is [1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10010100 is [1 1 -1 1 -1 1], the basic code group mapped by the second data segment 10010101 is [1 0 0 -1 -1 1], the basic code group mapped by the second data segment 10010110 is [1 1 -1 1 -1 -1], the basic code group mapped by the second data segment 10010111 is [-1 -1 1 -1 1 1], the basic code group mapped by the second data segment 10011000 is [1 -1 1 -1 -1 1], the basic code group mapped by the second data segment 10011001 is [0 1 0 1 0 0], the basic code group mapped by the second data segment 10011010 is [1 1 0 1 0 -1], the basic code group mapped by the second data segment 10011011 is [1 1 -1 -1 0 0], the basic code group mapped by the second data segment 10011100 is [-1 1 1 0 1 0], the basic code group mapped by the second data segment 10011101 is [1 0 1 1 0 -1], the basic code group mapped by the second data segment 10011110 is [0 0 1 1 0 0], the basic code group mapped by the second data segment 10011111 is [1 1 -1 1 1 -1], the basic code group mapped by the second data segment 10100000 is [0 1 1 0 -1 1],The basic code group mapped by the second data segment 10100001 is [1 0 -1 1 0 -1], the basic code group mapped by the second data segment 10100010 is [1 -1 0 0 0 0], the basic code group mapped by the second data segment 10100011 is [-1 0 -1 1 0 1], the basic code group mapped by the second data segment 10100100 is [0 1 1 1 0 -1], the basic code group mapped by the second data segment 10100101 is [1 0 -1 1 -1 0], the basic code group mapped by the second data segment 10100110 is [-1 0 1 0 1 -1], the basic code group mapped by the second data segment 10100111 is [0 -1 0 0 0 1], the basic code group mapped by the second data segment 10101000 is [1 1 -1 -1 1 1], the basic code group mapped by the second data segment 10101001 is [0 1 1 1 1 0], the basic code group mapped by the second data segment 10101010 is [1 -1 -1 1 1 1], the basic code group mapped by the second data segment 10101011 is [1 -1 1 0 -1 0], the basic code group mapped by the second data segment 10101100 is [1 -1 1 1 1 1], the basic code group mapped by the second data segment 10101101 is [-1 1 1 0 -1 0], the basic code group mapped by the second data segment 10101110 is [0 0 1 1 1 -1], the basic code group mapped by the second data segment 10101111 is [1 0 -1 1 1 0], the basic code group mapped by the second data segment 10110000 is [-1 1 1 1 0 0], the basic code group mapped by the second data segment 10110001 is [-1 0 1 -1 0 1], the basic code group mapped by the second data segment 10110010 is [0 -1 -1 0 1 1], the basic code group mapped by the second data segment 10110011 is [0 0 -1 0 1 0], the basic code group mapped by the second data segment 10110100 is [-1 1 0 0 1 1], the basic code group mapped by the second data segment 10110101 is [-1 0 0 0 1 0], the basic code group mapped by the second data segment 10110110 is [0 -1 -1 1 1 0], the basic code group mapped by the second data segment 10110111 is [-1 0 0 1 -1 1], the basic code group mapped by the second data segment 10111000 is [1 0 1 -1 1 1], the basic code group mapped by the second data segment 10111001 is [1 -1 0 -1 0 1], the basic code group mapped by the second data segment 10111010 is [-1 1 0 0 -1 1], the basic code group mapped by the second data segment 10111011 is [0 -1 0 1 1 -1],The basic code group mapped by the second data segment 10111100 is [0 -1 0 -1 1 1], the basic code group mapped by the second data segment 10111101 is [0 0 -1 1 1 -1], the basic code group mapped by the second data segment 10111110 is [-1 1 -1 1 0 0], the basic code group mapped by the second data segment 10111111 is [1 1 -1 0 1 0], the basic code group mapped by the second data segment 11000000 is [-1 0 1 0 0 0], the basic code group mapped by the second data segment 11000001 is [1 0 1 0 -1 -1], the basic code group mapped by the second data segment 11000010 is [1 0 0 0 0 -1], the basic code group mapped by the second data segment 11000011 is [1 0 1 1 -1 1], the basic code group mapped by the second data segment 11000100 is [0 0 1 -1 1 1], the basic code group mapped by the second data segment 11000101 is [-1 1 -1 0 1 0], the basic code group mapped by the second data segment 11000110 is [1 -1 0 0 1 -1], the basic code group mapped by the second data segment 11000111 is [-1 1 0 1 -1 0], the basic code group mapped by the second data segment 11001000 is [0 1 0 1 -1 1], the basic code group mapped by the second data segment 11001001 is [0 1 0 -1 1 -1], the basic code group mapped by the second data segment 11001010 is [-1 1 -1 1 1 1], the basic code group mapped by the second data segment 11001011 is [-1 1 0 1 0 -1], the basic code group mapped by the second data segment 11001100 is [-1 1 1 -1 0 0], the basic code group mapped by the second data segment 11001101 is [-1 -1 1 1 1 1], the basic code group mapped by the second data segment 11001110 is [0 0 1 0 0 -1], the basic code group mapped by the second data segment 11001111 is [0 0 0 1 1 0], the basic code group mapped by the second data segment 11010000 is [1 0 1 1 -1 0], the basic code group mapped by the second data segment 11010001 is [-1 0 -1 1 1 0], the basic code group mapped by the second data segment 11010010 is [0 1 -1 0 1 1], the basic code group mapped by the second data segment 11010011 is [0 0 0 -1 1 0], the basic code group mapped by the second data segment 11010100 is [0 1 0 -1 0 0], the basic code group mapped by the second data segment 11010101 is [0 0 0 1 -1 0], the basic code group mapped by the second data segment 11010110 is [1 -1 -1 0 1 0],The basic code group mapped by the second data segment 11010111 is [1 1 0 0 -1 1], the basic code group mapped by the second data segment 11011000 is [0 -1 0 1 1 1], the basic code group mapped by the second data segment 11011001 is [-1 -1 1 1 0 0], the basic code group mapped by the second data segment 11011010 is [-1 1 1 -1 1 1], the basic code group mapped by the second data segment 11011011 is [0 -1 0 1 0 0], the basic code group mapped by the second data segment 11011100 is [0 0 1 0 -1 0], the basic code group mapped by the second data segment 11011101 is [-1 0 1 -1 1 0], the basic code group mapped by the second data segment 11011110 is [-1 0 0 1 1 -1], the basic code group mapped by the second data segment 11011111 is [-1 -1 1 0 1 0], the basic code group mapped by the second data segment 11100000 is [1 1 -1 -1 1 -1], the basic code group mapped by the second data segment 11100001 is [-1 0 0 0 0 1], the basic code group mapped by the second data segment 11100010 is [1 1 0 1 -1 0], the basic code group mapped by the second data segment 11100011 is [1 1 1 -1 1 1], the basic code group mapped by the second data segment 11100100 is [-1 0 1 1 0 -1], the basic code group mapped by the second data segment 11100101 is [1 0 0 1 -1 -1], the basic code group mapped by the second data segment 11100110 is [0 0 0 1 0 -1], the basic code group mapped by the second data segment 11100111 is [-1 -1 0 1 1 0], the basic code group mapped by the second data segment 11101000 is [0 0 0 1 0 1], the basic code group mapped by the second data segment 11101001 is [-1 0 1 0 -1 1], the basic code group mapped by the second data segment 11101010 is [-1 0 1 1 -1 0], the basic code group mapped by the second data segment 11101011 is [1 0 0 0 -1 0], the basic code group mapped by the second data segment 11101100 is [0 1 0 1 1 1], the basic code group mapped by the second data segment 11101101 is [-1 -1 1 1 1 -1], the basic code group mapped by the second data segment 11101110 is [0 1 0 -1 1 1], the basic code group mapped by the second data segment 11101111 is [-1 0 0 1 1 1], the basic code group mapped by the second data segment 11110000 is [1 -1 0 1 0 -1], the basic code group mapped by the second data segment 11110001 is [1 0 -1 0 1 -1],The basic code group mapped by the second data segment 11110010 is [-1 -1 0 1 0 1], the basic code group mapped by the second data segment 11110011 is [1 -1 0 1 -1 0], the basic code group mapped by the second data segment 11110100 is [0 1 -1 1 -1 0], the basic code group mapped by the second data segment 11110101 is [1 1 -1 1 0 0], the basic code group mapped by the second data segment 11110110 is [0 1 1 0 1 1], the basic code group mapped by the second data segment 11110111 is [0 1 1 1 -1 0], the basic code group mapped by the second data segment 11111000 is [1 -1 0 0 -1 1], the basic code group mapped by the second data segment 11111001 is [0 1 -1 1 0 -1], the basic code group mapped by the second data segment 11111010 is [0 -1 1 0 -1 1], the basic code group mapped by the second data segment 11111011 is [0 0 1 -1 1 -1], the basic code group mapped by the second data segment 11111100 is [-1 -1 -1 1 1 1], the basic code group mapped by the second data segment 11111101 is [0 1 -1 0 -1 1], the basic code group mapped by the second data segment 11111110 is [1 -1 1 0 1 0], and the basic code group mapped by the second data segment 11111111 is [-1 1 -1 0 0 1].

[0071] In a possible implementation, the transceiving module is configured to acquire a first data segment in a data stream to be processed; and the processing module is configured to acquire a plurality of basic code groups, the plurality of basic code groups including [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [0 0 0 0 0 0], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 1 0 1 -1 -1], [0 1 1 -1 1 0], [0 0 0 0 1 -1], [1 1 1 -1 -1 1], [0 0 1 -1 -1 1], [-1 0 1 1 0 -1], [0 1 -1 1 0 1], [0 -1 1 -1 1 0], [1 00 1 1 1]、[0 1 1 0 1 1]、[1 0 0 1 0 0]、[1 -1 0 1 1 0]、[0 1 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 0 1 -1 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 0 1 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 0 1 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[01 0 0 0 1]、[1 1 0 -1 0 1]、[0 1 -1 -1 0 1]、[1 -1 1 -1 1 -1]、[0 1 1 1 1 0]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 1 0 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 1 1 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -1 1 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[10 0 0 -1 0]、[-1 1 0 1 0 1]、[1 -1 1 0 0 1]、[-1 1 1 1 1 -1]、[-1 1 1 1 1 1]、[0 0 1 1 0 0]、[0 1 0 1 1 -1]、[1 -1 -1 0 0 1]、[0 0 1 1 -1 1]、[1 1 -1 1 -1 -1]、[1 -1 1 0 -1 0]、[-1 0 0 -1 1 1]、[1 1 0 -1 1 0]、[1 1 0 0 -1 -1]、[-1 1 0 1 0 -1]、[1 -1 -1 0 1 0]、[1 1 -1 -1 -1 1]、[1 0 1 1 -1 1]、[-1 0 0 1 1 -1]、[1 0 0 0 0 -1]、[1 1 -1 0 1 0]、[0 0 0 1 -1 0]、[0 0 1 -1 1 1]、[1 0 -1 1 0 -1]、[-1 -1 1 0 1 0]、[0 -1 1 0 1 1]、[0 0 1 -1 1 -1]、[1 1 1 1 0 0]、[0 -1 1 -1 0 1]、[0 0 0 1 1 0]、[0 0 1 1 1 1]、[-1 0 0 0 1 0]、[0 1 -1 -1 1 0]、[1 0 1 1 1 0]、[1 0 0 -1 0 0]、[0 1 -1 0 1 -1]、[1 1 1 1 1 1]、[1 1 1 0 0 1]、[0 -1 1 0 -1 1]、[1 -1 -1 1 0 0]、[0 -1 1 1 -1 0]、[1 0 -1 -1 1 0]、[1 0 0 1 1 -1]、[0 1 -1 0 -1 1]、[1 0 0 -1 1 1]、[1 0 -1 -1 0 1]、[1 0 1 -1 1 1]、[1 -1 1 -1 1 1]、[0 -1 -1 1 1 0]、[-1 1 -1 0 0 1]、[-1 -1 1 1 1 -1]、[0 0 1 0 -1 0]、[1 1 1 0 -1 0]、[1 0 1 1 0 1]、[1 0 0 1 -1 -1]、[-1 0 -1 1 1 0]、[-1 1 1 0 0 1]、[-1 1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 1 -1]、[-1 0 1 0 1 1]、[1 1 -1 1 0 0]、[1 1 0 0 0 0]、[1 1 1 -1 -1 -1]、[0 -1 0 1 1 1]、[0 0- 1001; the processing module is further configured to encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0072] In a possible implementation, the plurality of basic code groups are in one-to-one mapping with a plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments include the first data segment.

[0073] In a possible implementation, the mapping relationship is a relationship obtained by random mapping.

[0074] In a possible implementation, the mapping relationship between the second data segment and the basic code group includes: the second data segment 00000000 is mapped to the basic code group [0 0 0 1 0 -1], the second data segment 00000001 is mapped to the basic code group [1 0 1 -1 0 1], the second data segment 00000010 is mapped to the basic code group [0 0 -1 0 1 0], the second data segment 00000011 is mapped to the basic code group [0 -1 0 1 -1 1], the second data segment 00000100 is mapped to the basic code group [1 0 0 1 -1 1], the second data segment 00000101 is mapped to the basic code group [0 1 0 -1 1 1], the second data segment 00000110 is mapped to the basic code group [-1 0 0 1 0 0], the second data segment 00000111 is mapped to the basic code group [1 1 1 1 -1 1], the second data segment 00001000 is mapped to the basic code group [1 -1 1 1 -1 1], the second data segment 00001001 is mapped to the basic code group [0 0 1 0 0 1], the second data segment 00001010 is mapped to the basic code group [0 -1 1 0 1 -1], the second data segment 00001011 is mapped to the basic code group [0 -1 0 -1 1 1], the second data segment 00001100 is mapped to the basic code group [-1 -1 0 0 1 1], the second data segment 00001101 is mapped to the basic code group [1 -1 0 -1 1 0], the second data segment 00001110 is mapped to the basic code group [0 1 0 0 -1 0], the second data segment 00001111 is mapped to the basic code group [1 -1 -1 1 1 1], the second data segment 00010000 is mapped to the basic code group [0 0 0 -1 0 1], the second data segment 00010001 is mapped to the basic code group [-1 1 0 0 1 1], the second data segment 00010010 is mapped to the basic code group [0 0 -1 1 -1 1], the second data segment 00010011 is mapped to the basic code group [0 0 0 0 0 0], the second data segment 00010100 is mapped to the basic code group [-1 1 1 -1 1 1], the second data segment 00010101 is mapped to the basic code group [-1 0 1 0 -1 1], the second data segment 00010110 is mapped to the basic code group [0 -1 0 1 1 -1], the second data segment 00010111 is mapped to the basic code group [0 0 -1 1 0 0], the second data segment 00011000 is mapped to the basic code group [-1 -1 1 1 -1 1], the second data segment 00011001 is mapped to the basic code group [-1 -1 0 1 0 1],The basic code group mapped by the second data segment 00011010 is [-1 0 0 1 -1 1], the basic code group mapped by the second data segment 00011011 is [-1 0 0 0 0 1], the basic code group mapped by the second data segment 00011100 is [1 1 -1 0 -1 0], the basic code group mapped by the second data segment 00011101 is [0 -1 1 0 0 0], the basic code group mapped by the second data segment 00011110 is [1 1 -1 0 0 1], the basic code group mapped by the second data segment 00011111 is [0 -1 -1 0 1 1], the basic code group mapped by the second data segment 00100000 is [1 1 0 0 1 -1], the basic code group mapped by the second data segment 00100001 is [1 0 0 -1 -1 1], the basic code group mapped by the second data segment 00100010 is [1 -1 0 -1 0 1], the basic code group mapped by the second data segment 00100011 is [-1 0 -1 1 0 1], the basic code group mapped by the second data segment 00100100 is [1 0 -1 0 -1 1], the basic code group mapped by the second data segment 00100101 is [0 0 -1 1 1 -1], the basic code group mapped by the second data segment 00100110 is [-1 -1 1 0 0 1], the basic code group mapped by the second data segment 00100111 is [0 0 0 0 1 1], the basic code group mapped by the second data segment 00101000 is [-1 1 -1 -1 1 1], the basic code group mapped by the second data segment 00101001 is [-1 0 0 1 1 1], the basic code group mapped by the second data segment 00101010 is [0 1 -1 1 -1 0], the basic code group mapped by the second data segment 00101011 is [-1 1 -1 1 -1 1], the basic code group mapped by the second data segment 00101100 is [-1 1 1 1 -1 -1], the basic code group mapped by the second data segment 00101101 is [1 -1 1 -1 -1 1], the basic code group mapped by the second data segment 00101110 is [0 1 0 -1 1 -1], the basic code group mapped by the second data segment 00101111 is [-1 0 1 1 -1 0], the basic code group mapped by the second data segment 00110000 is [1 0 1 0 -1 1], the basic code group mapped by the second data segment 00110001 is [0 -1 0 1 0 0], the basic code group mapped by the second data segment 00110010 is [0 1 1 0 -1 1], the basic code group mapped by the second data segment 00110011 is [1 1 1 -1 1 1], the basic code group mapped by the second data segment 00110100 is [0 1 0 1 -1 -1],The basic code group mapped by the second data segment 00110101 is [0 1 1 -1 1 0], the basic code group mapped by the second data segment 00110110 is [0 0 0 0 1 -1], the basic code group mapped by the second data segment 00110111 is [1 1 1 -1 -1 1], the basic code group mapped by the second data segment 00111000 is [0 0 1 -1 -1 1], the basic code group mapped by the second data segment 00111001 is [-1 0 1 1 0 -1], the basic code group mapped by the second data segment 00111010 is [0 1 -1 1 0 1], the basic code group mapped by the second data segment 00111011 is [0 -1 1 -1 1 0], the basic code group mapped by the second data segment 00111100 is [1 0 0 1 1 1], the basic code group mapped by the second data segment 00111101 is [0 1 1 0 1 1], the basic code group mapped by the second data segment 00111110 is [1 0 0 1 0 0], the basic code group mapped by the second data segment 00111111 is [1 -1 0 1 1 0], the basic code group mapped by the second data segment 01000000 is [0 1 1 1 0 -1], the basic code group mapped by the second data segment 01000001 is [0 0 1 1 -1 -1], the basic code group mapped by the second data segment 01000010 is [1 0 1 1 -1 0], the basic code group mapped by the second data segment 01000011 is [0 1 1 1 0 1], the basic code group mapped by the second data segment 01000100 is [1 1 0 1 -1 1], the basic code group mapped by the second data segment 01000101 is [1 1 -1 -1 1 -1], the basic code group mapped by the second data segment 01000110 is [-1 1 -1 1 1 1], the basic code group mapped by the second data segment 01000111 is [0 -1 1 1 0 -1], the basic code group mapped by the second data segment 01001000 is [1 -1 0 0 -1 1], the basic code group mapped by the second data segment 01001001 is [1 -1 -1 1 1 -1], the basic code group mapped by the second data segment 01001010 is [-1 1 1 1 0 0], the basic code group mapped by the second data segment 01001011 is [0 1 1 -1 0 -1], the basic code group mapped by the second data segment 01001100 is [-1 -1 1 -1 1 1], the basic code group mapped by the second data segment 01001101 is [-1 1 1 1 -1 1], the basic code group mapped by the second data segment 01001110 is [1 1 -1 -1 0 0], the basic code group mapped by the second data segment 01001111 is [0 1 0 0 0 -1],The basic code group mapped by the second data segment 01010000 is [1 1 -1 0 0 -1], the basic code group mapped by the second data segment 01010001 is [0 1 0 0 1 0], the basic code group mapped by the second data segment 01010010 is [1 0 1 -1 0 -1], the basic code group mapped by the second data segment 01010011 is [1 1 0 1 0 1], the basic code group mapped by the second data segment 01010100 is [1 0 1 0 0 0], the basic code group mapped by the second data segment 01010101 is [1 1 -1 1 1 1], the basic code group mapped by the second data segment 01010110 is [0 0 1 1 1 -1], the basic code group mapped by the second data segment 01010111 is [0 -1 0 0 1 0], the basic code group mapped by the second data segment 01011000 is [-1 -1 -1 1 1 1], the basic code group mapped by the second data segment 01011001 is [1 1 -1 1 1 -1], the basic code group mapped by the second data segment 01011010 is [0 0 1 0 0 -1], the basic code group mapped by the second data segment 01011011 is [1 1 0 0 1 1], the basic code group mapped by the second data segment 01011100 is [0 0 0 1 0 1], the basic code group mapped by the second data segment 01011101 is [0 1 -1 1 1 0], the basic code group mapped by the second data segment 01011110 is [-1 0 1 1 1 0], the basic code group mapped by the second data segment 01011111 is [-1 1 0 1 1 0], the basic code group mapped by the second data segment 01100000 is [1 1 -1 -1 1 1], the basic code group mapped by the second data segment 01100001 is [-1 0 1 0 1 -1], the basic code group mapped by the second data segment 01100010 is [0 0 1 -1 0 0], the basic code group mapped by the second data segment 01100011 is [1 -1 1 1 1 1], the basic code group mapped by the second data segment 01100100 is [-1 0 1 -1 1 0], the basic code group mapped by the second data segment 01100101 is [-1 -1 1 1 1 1], the basic code group mapped by the second data segment 01100110 is [-1 1 0 1 -1 0], the basic code group mapped by the second data segment 01100111 is [1 -1 1 1 -1 -1], the basic code group mapped by the second data segment 01101000 is [1 -1 -1 -1 1 1], the basic code group mapped by the second data segment 01101001 is [-1 0 1 0 0 0], the basic code group mapped by the second data segment 01101010 is [1 -1 -1 1 -1 1],The basic code group mapped by the second data segment 01101011 is [-1 1 1 -1 0 0], the basic code group mapped by the second data segment 01101100 is [0 0 0 -1 1 0], the basic code group mapped by the second data segment 01101101 is [-1 0 1 1 0 1], the basic code group mapped by the second data segment 01101110 is [1 1 1 1 1 -1], the basic code group mapped by the second data segment 01101111 is [0 1 1 -1 -1 0], the basic code group mapped by the second data segment 01110000 is [1 0 -1 1 0 1], the basic code group mapped by the second data segment 01110001 is [1 -1 1 -1 0 0], the basic code group mapped by the second data segment 01110010 is [0 0 -1 -1 1 1], the basic code group mapped by the second data segment 01110011 is [0 1 1 0 -1 -1], the basic code group mapped by the second data segment 01110100 is [-1 1 1 0 0 -1], the basic code group mapped by the second data segment 01110101 is [1 -1 0 0 1 -1], the basic code group mapped by the second data segment 01110110 is [1 -1 0 0 1 1], the basic code group mapped by the second data segment 01110111 is [1 1 1 0 1 0], the basic code group mapped by the second data segment 01111000 is [1 -1 0 1 0 1], the basic code group mapped by the second data segment 01111001 is [0 0 -1 1 1 1], the basic code group mapped by the second data segment 01111010 is [0 0 0 0 -1 1], the basic code group mapped by the second data segment 01111011 is [-1 -1 0 1 1 0], the basic code group mapped by the second data segment 01111100 is [-1 0 1 -1 0 1], the basic code group mapped by the second data segment 01111101 is [0 1 0 0 0 1], the basic code group mapped by the second data segment 01111110 is [1 1 0 -1 0 1], the basic code group mapped by the second data segment 01111111 is [0 1 -1 -1 0 1], the basic code group mapped by the second data segment 10000000 is [1 -1 1 -1 1 -1], the basic code group mapped by the second data segment 10000001 is [0 1 1 1 1 0], the basic code group mapped by the second data segment 10000010 is [-1 1 1 -1 -1 1], the basic code group mapped by the second data segment 10000011 is [1 1 0 1 -1 0], the basic code group mapped by the second data segment 10000100 is [1 -1 1 0 0 -1], the basic code group mapped by the second data segment 10000101 is [1 0 -1 0 0 0],The basic code group mapped by the second data segment 10000110 is [0 1 0 -1 -1 1], the basic code group mapped by the second data segment 10000111 is [0 1 0 -1 0 0], the basic code group mapped by the second data segment 10001000 is [-1 -1 1 1 0 0], the basic code group mapped by the second data segment 10001001 is [1 1 0 -1 -1 0], the basic code group mapped by the second data segment 10001010 is [1 -1 0 1 -1 0], the basic code group mapped by the second data segment 10001011 is [0 1 1 -1 0 1], the basic code group mapped by the second data segment 10001100 is [-1 1 -1 1 1 -1], the basic code group mapped by the second data segment 10001101 is [1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10001110 is [1 0 0 -1 1 -1], the basic code group mapped by the second data segment 10001111 is [-1 1 1 0 1 0], the basic code group mapped by the second data segment 10010000 is [0 1 -1 0 0 0], the basic code group mapped by the second data segment 10010001 is [-1 1 0 0 -1 1], the basic code group mapped by the second data segment 10010010 is [1 -1 0 0 0 0], the basic code group mapped by the second data segment 10010011 is [1 0 1 -1 1 0], the basic code group mapped by the second data segment 10010100 is [1 1 -1 1 -1 1], the basic code group mapped by the second data segment 10010101 is [0 1 1 1 -1 0], the basic code group mapped by the second data segment 10010110 is [1 -1 0 1 0 -1], the basic code group mapped by the second data segment 10010111 is [1 0 1 1 0 -1], the basic code group mapped by the second data segment 10011000 is [-1 1 -1 1 0 0], the basic code group mapped by the second data segment 10011001 is [-1 1 1 -1 1 -1], the basic code group mapped by the second data segment 10011010 is [0 1 -1 1 0 -1], the basic code group mapped by the second data segment 10011011 is [1 -1 1 1 1 -1], the basic code group mapped by the second data segment 10011100 is [1 0 0 0 1 0], the basic code group mapped by the second data segment 10011101 is [-1 1 0 0 0 0], the basic code group mapped by the second data segment 10011110 is [-1 1 1 0 -1 0], the basic code group mapped by the second data segment 10011111 is [1 -1 1 1 0 0], the basic code group mapped by the second data segment 10100000 is [1 -1 1 0 1 0],The basic code group mapped by the second data segment 10100001 is [1 1 1 -1 0 0], the basic code group mapped by the second data segment 10100010 is [1 1 1 -1 1 -1], the basic code group mapped by the second data segment 10100011 is [1 1 0 1 0 -1], the basic code group mapped by the second data segment 10100100 is [0 1 0 1 0 0], the basic code group mapped by the second data segment 10100101 is [0 1 0 1 -1 1], the basic code group mapped by the second data segment 10100110 is [1 0 -1 1 -1 0], the basic code group mapped by the second data segment 10100111 is [1 1 1 0 0 -1], the basic code group mapped by the second data segment 10101000 is [1 1 0 0 -1 1], the basic code group mapped by the second data segment 10101001 is [1 1 0 -1 0 -1], the basic code group mapped by the second data segment 10101010 is [0 -1 -1 1 0 1], the basic code group mapped by the second data segment 10101011 is [-1 1 0 0 1 -1], the basic code group mapped by the second data segment 10101100 is [1 0 1 0 1 -1], the basic code group mapped by the second data segment 10101101 is [1 0 -1 0 1 -1], the basic code group mapped by the second data segment 10101110 is [1 0 -1 1 1 0], the basic code group mapped by the second data segment 10101111 is [-1 0 -1 0 1 1], the basic code group mapped by the second data segment 10110000 is [1 0 1 0 -1 -1], the basic code group mapped by the second data segment 10110001 is [1 0 0 0 0 1], the basic code group mapped by the second data segment 10110010 is [0 0 1 0 1 0], the basic code group mapped by the second data segment 10110011 is [1 0 -1 0 1 1], the basic code group mapped by the second data segment 10110100 is [1 0 1 -1 -1 0], the basic code group mapped by the second data segment 10110101 is [-1 1 0 -1 0 1], the basic code group mapped by the second data segment 10110110 is [1 1 0 1 1 0], the basic code group mapped by the second data segment 10110111 is [0 1 -1 0 1 1], the basic code group mapped by the second data segment 10111000 is [1 0 1 0 1 1], the basic code group mapped by the second data segment 10111001 is [0 -1 1 1 1 0], the basic code group mapped by the second data segment 10111010 is [0 -1 1 1 0 1], the basic code group mapped by the second data segment 10111011 is [0 -1 0 0 0 1],The basic code group mapped by the second data segment 10111100 is [0 1 0 1 1 1], the basic code group mapped by the second data segment 10111101 is [-1 1 -1 0 1 0], the basic code group mapped by the second data segment 10111110 is [1 0 0 0 -1 0], the basic code group mapped by the second data segment 10111111 is [-1 1 0 1 0 1], the basic code group mapped by the second data segment 11000000 is [1 -1 1 0 0 1], the basic code group mapped by the second data segment 11000001 is [-1 1 1 1 1 -1], the basic code group mapped by the second data segment 11000010 is [-1 1 1 1 1 1], the basic code group mapped by the second data segment 11000011 is [0 0 1 1 0 0], the basic code group mapped by the second data segment 11000100 is [0 1 0 1 1 -1], the basic code group mapped by the second data segment 11000101 is [1 -1 -1 0 0 1], the basic code group mapped by the second data segment 11000110 is [0 0 1 1 -1 1], the basic code group mapped by the second data segment 11000111 is [1 1 -1 1 -1 -1], the basic code group mapped by the second data segment 11001000 is [1 -1 1 0 -1 0], the basic code group mapped by the second data segment 11001001 is [-1 0 0 -1 1 1], the basic code group mapped by the second data segment 11001010 is [1 1 0 -1 1 0], the basic code group mapped by the second data segment 11001011 is [1 1 0 0 -1 -1], the basic code group mapped by the second data segment 11001100 is [-1 1 0 1 0 -1], the basic code group mapped by the second data segment 11001101 is [1 -1 -1 0 1 0], the basic code group mapped by the second data segment 11001110 is [1 1 -1 -1 -1 1], the basic code group mapped by the second data segment 11001111 is [1 0 1 1 -1 1], the basic code group mapped by the second data segment 11010000 is [-1 0 0 1 1 -1], the basic code group mapped by the second data segment 11010001 is [1 0 0 0 0 -1], the basic code group mapped by the second data segment 11010010 is [1 1 -1 0 1 0], the basic code group mapped by the second data segment 11010011 is [0 0 0 1 -1 0], the basic code group mapped by the second data segment 11010100 is [0 0 1 -1 1 1], the basic code group mapped by the second data segment 11010101 is [1 0 -1 1 0 -1], the basic code group mapped by the second data segment 11010110 is [-1 -1 1 0 1 0],The basic code group mapped by the second data segment 11010111 is [0 -1 1 0 1 1], the basic code group mapped by the second data segment 11011000 is [0 0 1 -1 1 -1], the basic code group mapped by the second data segment 11011001 is [1 1 1 1 0 0], the basic code group mapped by the second data segment 11011010 is [0 -1 1 -1 0 1], the basic code group mapped by the second data segment 11011011 is [0 0 0 1 1 0], the basic code group mapped by the second data segment 11011100 is [0 0 1 1 1 1], the basic code group mapped by the second data segment 11011101 is [-1 0 0 0 1 0], the basic code group mapped by the second data segment 11011110 is [0 1 -1 -1 1 0], the basic code group mapped by the second data segment 11011111 is [1 0 1 1 1 0], the basic code group mapped by the second data segment 11100000 is [1 0 0 -1 0 0], the basic code group mapped by the second data segment 11100001 is [0 1 -1 0 1 -1], the basic code group mapped by the second data segment 11100010 is [1 1 1 1 1 1], the basic code group mapped by the second data segment 11100011 is [1 1 1 0 0 1], the basic code group mapped by the second data segment 11100100 is [0 -1 1 0 -1 1], the basic code group mapped by the second data segment 11100101 is [1 -1 -1 1 0 0], the basic code group mapped by the second data segment 11100110 is [0 -1 1 1 -1 0], the basic code group mapped by the second data segment 11100111 is [1 0 -1 -1 1 0], the basic code group mapped by the second data segment 11101000 is [1 0 0 1 1 -1], the basic code group mapped by the second data segment 11101001 is [0 1 -1 0 -1 1], the basic code group mapped by the second data segment 11101010 is [1 0 0 -1 1 1], the basic code group mapped by the second data segment 11101011 is [1 0 -1 -1 0 1], the basic code group mapped by the second data segment 11101100 is [1 0 1 -1 1 1], the basic code group mapped by the second data segment 11101101 is [1 -1 1 -1 1 1], the basic code group mapped by the second data segment 11101110 is [0 -1 -1 1 1 0], the basic code group mapped by the second data segment 11101111 is [-1 1 -1 0 0 1], the basic code group mapped by the second data segment 11110000 is [-1 -1 1 1 1 -1], the basic code group mapped by the second data segment 11110001 is [0 0 1 0 -1 0],The basic code group mapped by the second data segment 11110010 is [1 1 1 0 -1 0], the basic code group mapped by the second data segment 11110011 is [1 0 1 1 0 1], the basic code group mapped by the second data segment 11110100 is [1 0 0 1 -1 -1], the basic code group mapped by the second data segment 11110101 is [-1 0 -1 1 1 0], the basic code group mapped by the second data segment 11110110 is [-1 1 1 0 0 1], the basic code group mapped by the second data segment 11110111 is [-1 1 0 -1 1 0], the basic code group mapped by the second data segment 11111000 is [0 1 1 0 0 0], the basic code group mapped by the second data segment 11111001 is [0 1 1 0 1 -1], the basic code group mapped by the second data segment 11111010 is [-1 0 1 0 1 1], the basic code group mapped by the second data segment 11111011 is [1 1 -1 1 0 0], the basic code group mapped by the second data segment 11111100 is [1 1 0 0 0 0], the basic code group mapped by the second data segment 11111101 is [1 1 1 -1 -1 -1], the basic code group mapped by the second data segment 11111110 is [0 -1 0 1 1 1], and the basic code group mapped by the second data segment 11111111 is [0 0 -1 0 0 1].

[0075] In a possible implementation, the transceiving module is configured to acquire a first data segment in a data stream to be processed; and the processing module is configured to acquire a plurality of basic code groups, the plurality of basic code groups including [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 0 0], [1 1 1 1 0 0], [1 1 -1 0 -1 0], [1 -1 1 0 -1 0], [1 -1 -1 0 1 0], [-1 1 1 0 -1 0], [-1 1 -1 0 1 0], [-1 -11 0 1 0]、[1 1 1 0 -1 0]、[1 1 -1 0 1 0]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -1 1 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -11 0 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0 -1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 11 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 0 1 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 1 1]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0 -1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 01]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[0 1 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 0 1]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 -1 1 0 -1 1]、[1 -1 0 1 -1 1]、[-1 1 0 1 -11], [1 -1 1 0 1 -1] ; the processing module is further configured to encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0076] In a possible implementation, the transceiving module is configured to acquire a first data segment in a data stream to be processed; and the processing module is configured to acquire a plurality of basic code groups, the plurality of basic code groups including [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 0 0], [1 1 1 1 0 0], [1 1 -1 0 -1 0], [1 -1 1 0 -1 0], [1 -1 -1 0 1 0], [-1 1 1 0 -1 0], [-1 1 -1 0 1 0], [-1 -11 0 1 0]、[1 1 1 0 -1 0]、[1 1 -1 0 1 0]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -1 1 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -11 0 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0 -1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 1 1 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 01 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 1 1]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0 -1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 01]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[0 1 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 0 1]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 0 1 -1 1 -1]、[1 0 -1 1 -1 1]、[1 -1 1 -1 0[1]、[-1 1 -1 1 0 1]; The processing module is also used to encode the first data segment according to multiple basic code groups to obtain the first coded segment.

[0077] In a possible implementation, the transceiving module is configured to acquire a first data segment in a data stream to be processed; and the processing module is configured to acquire a plurality of basic code groups, the plurality of basic code groups including [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 1 0 1 -1 -1], [0 1 1 -1 1 0], [0 0 0 0 1 -1], [1 1 1 -1 -1 1], [0 0 1 -1 -1 1], [-1 0 1 1 0 -1], [0 1 -1 1 0 1], [0 -1 1 -1 1 0], [1 0 0 1 1 1], [0 11 0 1 1]、[1 0 0 1 0 0]、[1 -1 0 1 1 0]、[0 1 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 0 1 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 0 1 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[0 1 0 0 0 1]、[1 1 0 -1 0 1]、[01 -1 -1 0 1]、[1 -1 1 -1 1 -1]、[0 1 1 1 1 0]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 10 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 1 1 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -1 1 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[1 0 0 0 -1 0]、[-1 1 0 1 0 1]、[1[0 0 1 1 0 0], [0 1 0 1 1 -1], [1 -1 -1 0 0 1], [0 0 1 1 -1 1], [1 1 -1 1 -1 -1], [1 -1 1 0 -1 0], [-1 0 0 -1 1 1], [1 1 0 -1 1 0], [1 1 0 0 -1 -1], [-1 1 0 1 0 -1], [1 -1 -1 0 1 0], [1 1 -1 -1 -1 1], [-1 0 0 1 1 -1], [1 0 0 0 0 -1], [1 1 -1 0 1 0], [0 0 0 1 -1 0], [0 0 1 -1 1 1], [1 0 -1 1 0 -1], [-1 -1 1 0 1 0], [0 -1 1 0 1 1], [0 0 1 -1 1 -1], [1 1 1 1 0 0], [0 -1 1 -1 0 1], [0 0 0 1 1 0], [0 0 1 1 1 1], [-1 0 0 0 1 0], [0 1 -1 -1 1 0], [1 0 1 1 1 0], [1 0 0 -1 0 0], [0 1 -1 0 1 -1], [1 1 1 1 1 1], [1 1 1 0 0 1], [0 -1 1 0 -1 1], [1 -1 -1 1 0 0], [0 -1 1 1 -1 0], [1 0 -1 -1 1 0], [1 0 0 1 1 -1], [0 1 -1 0 -1 1], [1 0 0 -1 1 1], [1 0 -1 -1 0 1], [1 -1 1 -1 1 1], [0 -1 -1 1 1 0], [-1 1 -1 0 0 1], [-1 -1 1 1 1 -1], [0 0 1 0 -1 0], [1 1 1 0 -1 0], [1 0 1 1 0 1], [1 0 0 1 -1 -1], [-1 0 -1 1 1 0], [-1 1 1 0 0 1], [-1 1 0 -1 1 0], [0 1 1 0 0 0], [0 1 1 0 1 -1], [-1 0 1 0 1 1], [1 1 -1 1 0 0], [1 1 0 0 0 0], [1 1 1 -1 -1 -1], [0 -1 0 1 1 1], [0 0 -1 0 0 1]; and the processing module is further configured to encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0078] In a possible implementation, the plurality of basic code groups are one-to-one mapped with the plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments include the first data segment.

[0079] In a possible implementation, the mapping relationship is a relationship obtained through random mapping.

[0080] In a eleventh aspect, a data processing device is provided, the device comprising a processor configured to load and execute at least one instruction to cause the data processing device to perform the method in any possible implementation of the first aspect, the third aspect to the seventh aspect, or perform the method in any possible implementation of the second aspect.

[0081] In a possible implementation, the device comprises a memory coupled to the processor, and the memory stores the at least one instruction.

[0082] In a twelfth aspect, a computer readable storage medium is provided, the computer readable storage medium storing at least one instruction, the instruction being loaded and executed by a processor to implement the data encoding method in any possible implementation of the first aspect, the third aspect to the seventh aspect, or implement the data decoding method in any possible implementation of the second aspect.

[0083] In a thirteenth aspect, a computer program (product) is provided, the computer program (product) comprising computer programs / instructions, the computer programs / instructions being executed by a processor to cause a computer to implement the data encoding method in any possible implementation of the first aspect, the third aspect to the seventh aspect, or implement the data decoding method in any possible implementation of the second aspect.

[0084] In a fourteenth aspect, a communication apparatus is provided, the apparatus comprising a transceiver, a memory, and a processor. Wherein the transceiver, the memory, and the processor communicate with each other through internal connection paths, the memory is configured to store instructions, and the processor is configured to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor is caused to perform the method in any possible implementation of the first aspect, the third aspect to the seventh aspect, or perform the method in any possible implementation of the second aspect. Optionally, the communication apparatus can be a chip.

[0085] Optionally, the processor is one or more, and the memory is one or more.

[0086] Optionally, the memory can be integrated with the processor, or the memory and the processor are separately arranged.

[0087] In the implementation process, the memory can be a non-transitory memory, for example, a read only memory (ROM), which can be integrated on the same chip with the processor, or can be separately arranged on different chips. The type of memory and the arrangement manner of the memory and the processor are not limited in the present application.

[0088] In the fifteenth aspect, a chip is provided, including a processor, configured to invoke and run running program instructions or codes stored in a memory, so that a communication device installed with the chip executes the method in the above aspects.

[0089] In the sixteenth aspect, another chip is provided, including an input interface, an output interface, a processor and a memory, the input interface, the output interface, the processor and the memory are connected through internal connection paths, and the processor is configured to execute codes in the memory, and when the codes are executed, the processor is configured to execute the method in the above aspects.

[0090] It should be understood that the apparatus for data encoding mentioned in the eighth aspect and the tenth aspect and the apparatus for data decoding mentioned in the ninth aspect can be the device mentioned in the eleventh aspect, or the chip mentioned in the fifteenth aspect or the sixteenth aspect. The beneficial effects of the technical solutions of the third aspect to the sixteenth aspect and the corresponding possible implementation manners can be referred to the technical effects of the first aspect and the corresponding possible implementation manners or the second aspect and the corresponding possible implementation manners, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0091] FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;

[0092] FIG. 2 is a schematic diagram of another implementation environment provided by an embodiment of the present application;

[0093] FIG. 3 is a schematic diagram of another implementation environment provided by an embodiment of the present application;

[0094] FIG. 4 is a schematic diagram of another implementation environment provided by an embodiment of the present application;

[0095] FIG. 5 is a flowchart of a method for data encoding provided by an embodiment of the present application;

[0096] FIG. 6 is a schematic diagram of a process for encoding data provided by an embodiment of the present application;

[0097] FIG. 7 is a schematic diagram of another process for encoding data provided by an embodiment of the present application;

[0098] FIG. 8 is a schematic diagram of a minimum code group distance statistics provided by an embodiment of the present application;

[0099] FIG. 9 is a statistical diagram of minimum code group distance provided by another embodiment of the present application;

[0100] FIG. 10 is a flowchart of a data decoding method provided by an embodiment of the present application;

[0101] FIG. 11 is a process diagram of decoding data provided by an embodiment of the present application;

[0102] FIG. 12 is a statistical diagram of error code performance provided by an embodiment of the present application;

[0103] FIG. 13 is a statistical diagram of error code performance provided by another embodiment of the present application;

[0104] FIG. 14 is a statistical diagram of error code performance provided by another embodiment of the present application;

[0105] FIG. 15 is a structural diagram of a data encoding apparatus provided by an embodiment of the present application;

[0106] FIG. 16 is a structural diagram of a data decoding apparatus provided by an embodiment of the present application;

[0107] FIG. 17 is a structural diagram of a network device provided by an embodiment of the present application;

[0108] FIG. 18 is a structural diagram of another network device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0109] The terms used in the embodiment part of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the drawings.

[0110] With the development of communication technology, the communication rate and communication distance between communication nodes have been significantly improved. For example, compared with the traditional bus, single pair Ethernet (SPE) improves the communication rate by hundreds of times, and the farthest communication distance reaches 1 kilometer. However, with the improvement of communication rate and communication distance, the SNR of communication is insufficient, and the anti-interference ability is poor, for example, in the process of 500 meter (m) communication, once noise surge occurs, communication is prone to abnormality. Therefore, a data encoding and data decoding method is urgently needed to improve the SNR margin.

[0111] The embodiment of the present application provides a data encoding and data decoding method, please refer to Fig. 1, which shows an implementation environment schematic diagram provided by the embodiment of the present application, the implementation environment includes an encoding device 01 and a decoding device 02, and the encoding device 01 and the decoding device 02 establish a communication connection through a wired or wireless network. The encoding device 01 is used for executing the data encoding method provided by the embodiment of the present application, and the first data segment is encoded to obtain the first encoding segment, and the first encoding segment is sent to the decoding device 02. After the decoding device 02 receives the signal segment corresponding to the first encoding segment, the signal segment is decoded to obtain the first data segment.

[0112] Optionally, the encoding device 01 and the decoding device 02 can be devices configured in a servo system, for example, as shown in Fig. 2, the servo system includes a servo drive and a servo motor. Wherein, the servo system is an automatic control system that enables the position, orientation, state and other outputs of an object to follow the arbitrary changes of the input target or given value. The servo drive is a controller for controlling the servo motor, which is used to convert the instructions issued by the upper computer into signals that can be recognized by the servo motor, so as to realize the accurate control of the servo motor. The servo motor is a motor for controlling the operation of mechanical elements, which is used to convert voltage signals into torque and speed to drive mechanical elements. For the servo system shown in Fig. 2, the encoding device 01 shown in Fig. 1 corresponds to the servo drive, and the decoding device 02 shown in Fig. 1 corresponds to the servo motor. The servo drive is used to encode the first data segment for controlling the servo motor into the first encoding segment, and send the first encoding segment to the servo motor. The servo motor is used to decode to obtain the first data segment and run based on the first data segment.

[0113] In addition, the encoding device 01 and the decoding device 02 can also be configured in other application scenarios, and the encoding device 01 and the decoding device 02 can be a switch or an end-side instrument. Wherein, the end-side instrument and the switch are configured with an SPE interface, and the end-side instrument and the switch communicate through the SPE interface. Fig. 3 is a structure schematic diagram of a switch and an end-side instrument provided by the embodiment of the present application. The field switch in Fig. 3 corresponds to the encoding device 01 in Fig. 1, and the end-side instrument corresponds to the decoding device 02 in Fig. 1. In Fig. 3, the end-side instrument and the field switch establish a communication connection through a wired or wireless network, the field switch can execute the data encoding method provided by the embodiment of the present application, encode the first data segment to obtain the first encoding segment, and send the first encoding segment to the end-side instrument. The end-side instrument is used to decode to obtain the first data segment and analyze based on the first data segment. Referring to Fig. 3, the end-side instrument can be used for visual & spectral analysis, ultrasonic flow analysis and valve positioning. In the case that the end-side instrument is used for valve positioning, the end-side instrument can be called a valve positioner as shown in Fig. 3.

[0114] Fig. 3 is intended to illustrate the connection of the end-side meter and the field switch, but is not intended to limit the network topology in which the end-side meter and the field switch are located. The network topology in which the end-side meter and the field switch are located can be as shown in Fig. 3, in which two field switches are connected to a power switch, and the power switch is connected to a control room. The network topology in which the end-side meter and the field switch are located can also be as shown in Fig. 4, in which any field switch is connected to multiple power switches, and the multiple power switches are connected to a control room.

[0115] Exemplarily, the encoding device 01 and the decoding device 02 can be other devices with interaction requirements in addition to the devices shown in Figs. 2-4. The encoding device 01 and the decoding device 02 can be servers, such as central servers, edge servers, or local servers in a local data center. The servers can be physical servers, and can also be cloud servers providing cloud computing services. In some embodiments, the encoding device 01 and the decoding device 02 can be terminal devices such as desktop computers, notebook computers, or smart phones. Alternatively, the encoding device 01 and the decoding device 02 can be independent devices, and can also be device clusters including multiple devices, and can also be certain components on devices, such as transceivers, processors, or chips.

[0116] The embodiment of the present application provides a data encoding method. The data encoding method can be applied to the implementation environment shown in any one of Figs. 1-4. Taking the case where the method is applied to the encoding device 01, a flowchart of the method is shown in Fig. 5, and the method includes S501-S503.

[0117] S501, obtaining a first data segment in a data stream to be processed.

[0118] Exemplarily, the data stream includes a series of discrete numbers, and the discrete numbers can be represented by binary numbers. In addition, the data stream can be of any type, including but not limited to video data streams, audio data streams, image data streams, and application software data streams. In a possible case, the encoding device can receive a data stream sent by another device, and the data stream can be transmitted in any transmission mode, including long-distance mode and low-latency mode.

[0119] Figure 6 is a data flow processing diagram provided by an embodiment of the present application, which shows the process of obtaining a data stream in the case of transmitting a data stream in a long distance mode. Referring to Figure 6, a media independent interface (MII) sends characters to a transport physical coding sublayer (TxPCS) interface, and the TxPCS interface performs 64B / 65B block coding on the received characters. In Figure 6, B indicates a bit (bit). Through 64B / 65B block coding, a 65-bit block can be obtained. After outputting the block, an auxiliary bit is inserted after every 15 65-bit blocks, for example, aggregate 15 65B blocks, plus 1 auxiliary bit, to obtain a 976-bit output block. The structure of the output block can be seen from Figure 6, which includes 15 blocks of 65B, and an auxiliary bit is inserted after the 15th block.

[0120] After obtaining the output block, the TxPCS interface can send the output block to a reed solomon-forward error correction (RS-FEC) encoder (Encoder) for encoding, to obtain a forward error correction (FEC) frame. In Figure 6, 128 and 122 indicate the number of reed solomon (RS) symbols before and after FEC encoding. 128 indicates the total number of RS symbols included in the FEC frame obtained through encoding, and 122 indicates the total number of RS symbols to be FEC encoded. As can be seen from Figure 6, the FEC frame obtained through RS-FEC encoding includes 122 message RS symbols and 6 check RS symbols, each RS symbol is 8 bits, and the 122 message RS symbols are 976 bits in total. A scrambler is used to scramble the FEC frame, and the scrambled FEC frame is sent to an encoding device. The encoding device encodes data using the method provided by an embodiment of the present application. The scrambling is to perform exclusive or between the bit stream output by the scrambler and the FEC frame, to obtain a new bit stream. The scrambled bit stream received by the encoding device is the data stream to be processed.

[0121] Fig. 7 is another schematic diagram of data stream processing provided by an embodiment of the present application, showing the process of obtaining data stream by the encoding device in the case of transmitting data stream in low latency mode. Referring to Fig. 7, the MII sends characters to the TxPCS interface, and the TxPCS interface performs 16B / 17B block coding on the received characters to obtain 17-bit code blocks. After every 15 17-bit code blocks, one auxiliary bit is inserted, for example, in Fig. 7, 15 17B blocks are aggregated, plus 1 auxiliary bit (Aggregate 15 17B blocks, plus 1 auxiliary bit), to obtain a 256-bit data frame. The 256-bit data frame is scrambled by the Scrambler and then sent to the encoding device. The encoding device determines the scrambled data frame as the data stream to be encoded. Optionally, the scrambled data frame can be referred to as the scrambled bit stream.

[0122] No matter what kind of data stream the encoding device receives, the plurality of bits included in the data stream can be divided into a plurality of first data segments, and one first data segment includes a plurality of bits. Continuing with the above-mentioned data stream in the embodiment as an example, in the case of the data stream being the scrambled FEC frame, one RS symbol in the data stream corresponds to one first data segment; in the case of the data stream being the scrambled 256-bit data frame, the first data segment in the data stream is a data segment composed of 8 bits in the scrambled 256-bit data frame. That is, in the data stream including a plurality of bits received by the encoding device, every eight bits can be divided into one first data segment, for example, the data stream includes 000111000…11001, and 00011100 is one first data segment, and the subsequent bits are divided into a group of data segments every eight bits. The first data segment in the data stream can also be other data amount, for example, 6 bits or 5 bits, which is not limited in the embodiment of the present application.

[0123] In one possible case, since the encoding device processes the data stream in the process of encoding the data stream in the unit of the first data segment, the way of obtaining the first data segment by the encoding device can be to obtain the complete data stream including a plurality of first data segments, for example, 000111000…11001 in the above-mentioned embodiment. The way of obtaining the first data segment by the encoding device can also be to obtain the partial data stream including one or more first data segments, for example, 00011100 in the above-mentioned embodiment.

[0124] S502, a plurality of basic code groups are obtained, the plurality of basic code groups are composed of a first code group set and a second code group set, a minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups is greater than a minimum Euclidean distance, a minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups is equal to the minimum Euclidean distance, the minimum Euclidean distance indicates a minimum distance between different level values generated by PAM modulation, and the number of basic code groups in the first code group set is greater than the number of basic code groups in the second code group set.

[0125] In a possible implementation, in the process of encoding the first data segment, the encoding device obtains a plurality of basic code groups for encoding the first data segment, and then determines the basic code group corresponding to the first data segment from the obtained basic code groups. The basic code group for encoding corresponds to the encoding rule of the first data segment. The encoding rule indicates the data amount of the first data segment to be encoded and the number of symbols of the basic code group for encoding. The encoding rule is, for example, mBnT, mBnQ, and the like, where B represents a bit, T represents PAM3 modulation, Q represents PAM4 or PAM5 modulation, m represents the bit length in the first data segment, and n represents the number of symbols in the code group obtained by encoding. For example, 8B6T indicates that 8 bits of the first data segment are encoded by using 6 PAM3 symbols, 6B5T indicates that 6 bits of the first data segment are encoded by using 5 PAM3 symbols, and 5B4T indicates that 5 bits of the first data segment are encoded by using 4 PAM3 symbols.

[0126] In the case of determining the encoding rule, the encoding device can determine the number of symbols included in each basic code group based on the number of symbols defined in the encoding rule, and determine the total number of basic code groups for encoding based on the data amount in the encoding rule. Taking the data amount as a positive integer N, the total number of the plurality of basic code groups for encoding is 2^N. Where ^ indicates the power operation.

[0127] Next, taking the data amount of the first data segment as 8 bits as an example, the calculation process of the total number of basic code groups is illustrated. Since the bits included in the first data segment are binary numbers, any bit in the first data segment has two values, 0 or 1. There are 2^8 = 256 possible combination ways of eight bits. Since there is a unique basic code group corresponding to each first data segment in the process of encoding the first data segment, based on 8-bit data segment, there are 256 cases, and the basic code groups for encoding should also be 256, so as to ensure that each first data segment has a corresponding basic code group, that is, the plurality of basic code groups is sufficient to represent the 8-bit data segment.

[0128] The embodiment of the present application does not limit the process of the encoding device obtaining the basic code group used for encoding. The basic code group can be obtained online during the process of encoding the first data segment, or the basic code group can be obtained offline. The device for obtaining the basic code group offline can be the encoding device or another device independent of the encoding device. For example, another device obtains 256 basic code groups used for encoding, and sends the 256 basic code groups to the encoding device. The encoding device receives and stores the 256 basic code groups, and accesses the storage space to read the 256 basic code groups stored in the storage space during the process of encoding the first data segment, thereby obtaining the multiple basic code groups. Since the process of obtaining the basic code group is similar whether it is obtained online or offline, the process of obtaining the multiple basic code groups used for encoding will be described below by taking the encoding device as an example.

[0129] In a possible implementation, the process of the encoding device obtaining the multiple basic code groups includes: obtaining multiple candidate code groups; and selecting the multiple basic code groups from the multiple candidate code groups according to the code group distance between the candidate code groups. The candidate code group includes multiple code elements, and any code element is assigned a level value, which is also the level value generated by PAM modulation. For example, the candidate code group is (a1, a2, …, aN), and the code elements a1, a2, and aN are assigned level values of pulse signals. The level values assigned to different code elements can be the same or different. The code elements included in the candidate code group can also be referred to as symbols, PAM symbols, or other names in some cases. The number of code elements of the candidate code group is the same as that of the basic code group, and the level value that can be assigned to any code element is determined based on the PAM modulation order involved in the process of encoding the first data segment. The PAM modulation includes but is not limited to PAM3, PAM4, and the like. The number after PAM indicates the number of different amplitudes of the level values generated by modulation, that is, the PAM modulation order. PAM3 indicates that three different amplitude level values can be generated in the modulation process, which are 1, 0, and -1. PAM4 indicates that four different amplitude level values can be generated in the modulation process, which are 3, 1, -1, and -3. N ) as an example, the code elements a1, a2, and a N N are assigned level values of pulse signals. The level values assigned to different code elements can be the same or different. The code elements included in the candidate code group can also be referred to as symbols, PAM symbols, or other names in some cases. The number of code elements of the candidate code group is the same as that of the basic code group, and the level value that can be assigned to any code element is determined based on the PAM modulation order involved in the process of encoding the first data segment. The PAM modulation includes but is not limited to PAM3, PAM4, and the like. The number after PAM indicates the number of different amplitudes of the level values generated by modulation, that is, the PAM modulation order. PAM3 indicates that three different amplitude level values can be generated in the modulation process, which are 1, 0, and -1. PAM4 indicates that four different amplitude level values can be generated in the modulation process, which are 3, 1, -1, and -3.

[0130] After the encoding device determines the number of code elements and the number of level values of the candidate code group, multiple different candidate code groups can be obtained by combination. For example, the candidate code group is a PAM3 code group, and the corresponding encoding rule is 8B6T. 729 candidate code groups can be obtained, and any two candidate code groups are different. For example, the candidate code group is a PAM3 code group, and the corresponding encoding rule is 5B4T. 81 candidate code groups can be obtained. For example, the candidate code group is a PAM3 code group, and the corresponding encoding rule is 6B5T. 243 candidate code groups can be obtained.

[0131] Since the number of candidate code groups is greater than the number of basic code groups used for encoding, for example, in the case of the encoding rule of 8B6T, the number of basic code groups used for encoding is 256, and 729 is greater than 256. For another example, in the case of the encoding rule of 5B4T, the number of basic code groups used for encoding is 2^5=32, and 81 is greater than 32. For another example, in the case of the encoding rule of 6B5T, the number of basic code groups used for encoding is 2^6=64, and 243 is greater than 64. Therefore, the encoding device also selects the basic code groups used for encoding from the plurality of candidate code groups, and the number of selected basic code groups corresponds to the amount of data indicated in the encoding rule, that is, in the above embodiment, when the amount of data is 8 bits, the number of basic code groups is 256. Or when the amount of data is 5 bits, the number of basic code groups is 32.

[0132] In a possible case, the encoding device can select the basic code groups according to the code group distance between each candidate code group. Taking candidate code group (a1, a2, …, aN) and candidate code group (b1, b2, …, bN) as an example, the code group distance between the two candidate code groups is N ) and candidate code group (b1, b2, …, b N ). Wherein, k is an index indicating the symbols at different positions in the candidate code group, and the range of k is 1 to N, and N is a positive integer.

[0133] Optionally, the encoding device can divide the plurality of candidate code groups into a plurality of code group subsets according to the code group distance between each candidate code group, different code group subsets include different candidate code groups, and the code group distance between any two candidate code groups in any code group subset is greater than the minimum Euclidean distance; and the plurality of basic code groups are selected from the candidate code groups included in the plurality of code group subsets. Wherein, the minimum Euclidean distance refers to the minimum distance between different levels generated by PAM modulation, that is, the minimum value of the distances between different levels.

[0134] In some cases, the minimum Euclidean distance can also be obtained by using the above calculation formula of the code group distance. Taking the symbol modulation in the above embodiment as PAM3 for example, the levels generated by PAM3 modulation are 1, 0 and -1, according to the calculation formula of the code group distance, N=1, a1 and b1 take values of 0 or ±1, and a1≠b1, so that the minimum distance between different levels is 1. The minimum distance is the distance between adjacent levels, so the minimum Euclidean distance of PAM3 is 1. Taking PAM including PAM4 for example, the levels generated by PAM4 modulation are -3, -1, 1 and 3, so the minimum Euclidean distance determined based on different levels is 2. In addition, based on the above calculation formula, the minimum Euclidean distance can also be understood as the minimum value of the distances between the symbols of different levels at the same position of different code groups.

[0135] In a possible case, the minimum Euclidean distance can be regarded as the minimum code group distance between each candidate code group. Wherein, the minimum code group distance between the candidate code group and other candidate code groups refers to the minimum value of the code group distance or Euclidean distance between the candidate code group and each other candidate code group, and for any candidate code group, the candidate code group with the minimum code group distance to any candidate code group is the candidate code group that only has one different level of symbols and the distance between the levels of the symbols is the minimum Euclidean distance. Taking the candidate code group PAM3 six-symbol code group as an example, the code group distance between the candidate code group [1 1 1 1 1 1] and the candidate code group [0 1 1 1 1 1] is 1. If there are multiple different levels of symbols in the candidate code group, for example, the code group distance between the candidate code group [0 1 0 1 1 1] and the candidate code group [1 1 1 1 1 1] is If there is only one different level of symbols in the candidate code group, but the distance between the levels of the symbols is not the minimum Euclidean distance, for example, the code group distance between the candidate code group [-1 1 1 1 1 1] and the candidate code group [1 1 1 1 1 1] is 2. And whether it is 2 or is greater than 1, therefore, the minimum code group distance of the candidate code group [1 1 1 1 1 1] is the minimum Euclidean distance 1.

[0136] Based on the case that the minimum code group distance between each candidate code group is equal to the minimum Euclidean distance, the encoding device can divide the closest candidate code groups into different code group subsets according to whether the code group distance is greater than the minimum Euclidean distance. Alternatively, the encoding device can calculate the code group distance between each candidate code group respectively to group the candidate code groups. For example, the encoding device selects the candidate code group 1 as the initial candidate code group, selects the candidate code group 2 from other candidate code groups, compares the code group distance between the candidate code group 2 and the candidate code group 1, and divides the candidate code group 2 and the candidate code group 1 into the same code group subset 1 when the code group distance is greater than the minimum Euclidean distance. When the code group distance is equal to the minimum Euclidean distance, the candidate code group 2 is divided into a different code group subset 2 from the candidate code group 1.

[0137] Afterwards, for the candidate code group n, the code group distance between the candidate code group n and each candidate code group which has been divided into the code group subset 1 can be calculated first, and when each code group distance is greater than the minimum Euclidean distance, the candidate code group n is divided into the code group subset 1. If the code group distance between the candidate code group n and at least one candidate code group in the code group subset 1 is equal to the minimum Euclidean distance, it is determined that the candidate code group n cannot be divided into the code group subset 1, and the code group distance between each candidate code group in other code group subsets and the candidate code group n is compared, for example, the code group distance between each candidate code group in the code group subset 2 and the candidate code group n is determined, and when each code group distance is greater than the minimum Euclidean distance, the candidate code group n is divided into the code group subset 2, thereby obtaining the candidate code groups included in each code group subset.

[0138] In some cases, the encoding device can also divide the candidate code group in other ways, for example, any code group subset includes candidate code groups satisfying a symbol distribution condition, and the symbol distribution condition is determined based on the referenced candidate code groups, and the code group distance between any two referenced candidate code groups is greater than the minimum Euclidean distance. Alternatively, the encoding device can set the symbol combination as a unit in the process of determining the symbol distribution condition. The present embodiment does not limit the division manner of the symbol combination, which can be that each two symbols in the same candidate code group is a symbol combination, and when the number of symbols in the candidate code group is even, the encoding device directly divides each two symbols into a group for division. When the number of symbols in the candidate code group is odd, the encoding device selects one symbol, and divides the remaining symbols into a symbol combination two by two, and the selected symbol can be the first symbol or the last symbol. Moreover, the selected symbol can be divided into a symbol combination alone or into any symbol combination, for example, in the case of selecting the first symbol, the first symbol and the second symbol and the third symbol are divided into a symbol combination, or the last symbol and the second last symbol and the third last symbol are divided into a symbol combination.

[0139] No matter what the case of the symbol combination divided in the candidate code group is, the encoding device can set the symbol distribution condition according to the symbol combination, and divide the candidate code group into different symbol subsets according to the symbol distribution condition. Since the process of dividing the candidate code group based on different symbol combinations is similar, the process of dividing the candidate code group according to the symbol combination is described below by taking the candidate code group as a PAM3 five-symbol code group as an example. For the case of other symbol combinations, refer to the similar description, which is not repeated here.

[0140] For any candidate code group, the first symbol is taken as the first symbol combination, and the remaining even number of symbols are divided into groups of two, i.e., the second symbol and the third symbol are taken as the second symbol combination, and the fourth symbol and the fifth symbol are taken as the third symbol combination. Based on the case that the level value corresponding to PAM3 is ±1 and 0, the symbols in the candidate code group can be divided into two types X (±1) and Y (0), and the symbol combination type including two symbols can be represented as XX, XY, YX, and YY. Among them, the minimum distance of XX and YY is The minimum distance of XY and YX is also Both are greater than the minimum Euclidean distance 1.

[0141] In some cases, there will be a minimum distance between symbol combinations of different symbol types, because symbol combinations of different symbol types can have different values, and the distances between symbol combinations with different values can be different, so there will be a minimum distance among multiple distances. Continue to take the above symbol combination types XX, XY, YX, and YY as an example. For XX, since X can be 1 or -1, XX includes 1 1, 1 -1, -1 -1, and -1 1, and XY includes 1 0 and -1 0, YX includes 0 1 and 0 -1, and the distance between XX and XY can be 1 and Therefore, the minimum distance between XX and XY is 1. In addition, the minimum distance between symbol combinations of different symbol types can be greater than the minimum Euclidean distance, or equal to the minimum Euclidean distance.

[0142] The encoding device can determine the symbol distribution condition according to the symbol type of the symbol combination of the reference candidate code group. Exemplarily, the encoding device can randomly select the reference candidate code group, or can select the reference candidate code group according to the symbol combinations included in each candidate code group. For example, the candidate code group with the first symbol combination as X can be taken as the reference candidate code group, and (X XX XX) is selected as the reference candidate code group. After the encoding device determines the symbol type of the reference candidate code group, it can determine the symbol distribution condition of the candidate code group located in any code group subset according to the symbol type of the reference candidate code group.

[0143] For any code group subset, the encoding device ensures that the first symbol combination is the same, i.e., X, and first determines case 1 that the second symbol combination is XX. Since the second symbol combination of the reference candidate code group is also XX, the minimum distance between XX and XX is 0, and the encoding device determines that the minimum distance between the third symbol combination and the third symbol combination of the reference candidate code group must be greater than the minimum Euclidean distance 1. Based on the minimum distance between XX and YY The encoding device determines that the third symbol combination is YY, and thus obtains the symbol distribution condition as X XX YY. The encoding device divides the candidate code groups satisfying the symbol distribution condition into the code group subset, for example, 1 1 1 0 0, 1 -1 -1 0 0, 1 1 -1 0 0, 1 -1 1 0 0, -1 -1 -1 0 0, -1 1 1 0 0, -1 -1 1 0 0 and -1 1 -1 0 0 are divided into the code group subset.

[0144] Then, the encoding device determines the second symbol combination as XY in case 2. Since the minimum distance between XY and XX is 1, but the minimum distance between XYXY / XYYX and XXXX is Thus, it is determined that the third symbol combination is XY or YX, and the obtained symbol distribution conditions are (X XY XY) and (X XY YX). The candidate code groups satisfying (X XY XY) and (X XY YX) are selected from the plurality of candidate code groups and divided into any code group subset.

[0145] Alternatively, the encoding device continues to determine the second symbol combination as YX in case 3. For the second symbol combination XY selected in case 2, the minimum distance between YX and XY is Therefore, no matter what the third symbol combination is, the minimum distance between (X XY XY) and (X XY YX) selected in case 2 is Based on the reference candidate code group (X XX XX) and the candidate code group (X XX YY) selected in case 1, the third symbol combination should be XY or YX, and thus the obtained symbol distribution conditions are (X YX YX) and (X YX XY).

[0146] Similarly, for the second symbol combination as YY in case 4, since the minimum distance between YY and XX is Therefore, no matter what the third symbol combination is, the minimum distance between the reference candidate code group (X XX XX) and the candidate code group (X XX YY) selected in case 1 is In order to ensure that the minimum distance between the candidate code groups in case 2 and case 3 is also Then, the third symbol combination can only be YY or XX, and thus the obtained symbol distribution conditions are (X YY YY) or (X YY XX). The encoding device performs the operations of case 1-case 4 described above, and counts the candidate code groups located in the same code group subset when the first symbol combination is X.

[0147] After that, the encoding device can determine the candidate code groups satisfying the symbol distribution condition when the first symbol combination is Y, i.e., the reference candidate code group is (Y YY YY). The determination process is similar to the process of determining the candidate code groups satisfying the symbol distribution condition when the reference candidate code group is (X XX XX), which can be referred to the related description in the above embodiments and will not be repeated here. In the above process of dividing the candidate code groups, the reference candidate code groups are (X XX XX) and (Y YY YY), and the code group distance between any two code groups in the subset where the reference candidate code groups are located is greater than the minimum Euclidean distance 1.

[0148] The above symbol distribution condition can be summarized as follows: in the PAM3 five-symbol code group, if the minimum distance between the three symbols that have been determined is ≥1, then the minimum distance between the remaining two symbols should also be 1, referring to (X XY XY) and (X XX XX), (Y XX XY) and (X XX XX), and if the minimum distance between the three symbols that have been determined is 0, then the minimum distance between the remaining two symbols should be Referring to (X XX XX) and (X XX YY).

[0149] No matter what way the encoding device adopts to group the candidate code groups, the code group distance between any two candidate code groups included in any code group subset obtained by grouping is greater than the minimum Euclidean distance, for example, the 5T candidate code groups in the above embodiments, the code group distance between any two candidate code groups included in the same code group subset is not less than Table 1 shows the symbol types of multiple candidate code groups located in the same code group subset.

[0150] Table 1

[0151] The symbol type in Table 1 indicates the symbol distribution condition of the candidate code group located in the code group subset. Taking the symbol type X XX YY as an example, the indicated candidate code groups include 1 1 1 0 0, -1 -1 -1 0 0, 1 1 -1 0 0, 1 -1 1 0 0, -1 1 1 0 0, 1 -1 -1 0 0, -1 1 -1 0 0 and -1 -1 1 0 0. The Δ in Table 1 is the disparity change (DC) of the candidate code group, which is used to indicate the level distribution of the candidate code group, and reflects the uniformity of the level distribution. For example, the Δ of 1 1 1 0 0 is 3, and the Δ of 1 1 -1 0 0 is 1. If the number of the same level value in the candidate code group is larger, that is, the level distribution of the candidate code group is more uneven, the absolute value of the Δ is higher. Referring to Table 1, the code group subset includes 122 candidate code groups.

[0152] Optionally, the encoding device can also select the reference candidate code group from the candidate code groups not divided in Table 1 based on the similar division rule as the above embodiment, and determine the symbol distribution condition based on the minimum distance between the symbol combinations, so as to obtain another code group subset. For example, taking the candidate code group X XX XY as the reference candidate code group, the code group subset divided by this can be referred to Table 2.

[0153] Table 2

[0154] The code group subset shown in Table 2 includes 121 candidate code groups. Through the above operation, the 243 candidate code groups can be divided into two code group subsets, and the code group distance between any two candidate code groups in any code group subset is greater than the minimum Euclidean distance 1. For example, the code group distance between the candidate code group 1 1 1 1 1 with the symbol distribution condition X XX XX and the candidate code group 1 -1 1 1 1 with the symbol distribution condition X XX XX in Table 1 is For another example, the code group distance between 1 1 1 0 1 with the symbol distribution condition X XX YX and 0 0 0 0 0 with the symbol distribution condition Y YY YY in Table 2 is 2.

[0155] FIG. 8 is a diagram of minimum code group distances according to an embodiment of the present application. FIG. 8 (1) shows the subset A (Subse A) corresponding to Table 1, and FIG. 8 (2) shows the subset B (Subset B) corresponding to Table 2. The horizontal axis of FIG. 8 indicates code-group indexes, and each number corresponds to a candidate code group. The vertical axis of FIG. 8 corresponds to minimum distances, i.e., minimum code group distances, which indicate the minimum value of code group distances between any candidate code group and the remaining other candidate code groups in the code group subset. Taking an example in which the code group subset includes five candidate code groups, candidate code groups 1-5, the calculation process of the minimum code group distance of candidate code group 1 includes calculating the code group distance 1 between candidate code group 1 and candidate code group 2, calculating the code group distance 2 between candidate code group 1 and candidate code group 3, calculating the code group distance 3 between candidate code group 1 and candidate code group 4, and calculating the code group distance 4 between candidate code group 1 and candidate code group 5. The minimum code group distance of candidate code group 1 is obtained by selecting the minimum code group distance from the code group distance 1, the code group distance 2, the code group distance 3, and the code group distance 4. Referring to FIG. 8, the minimum code group distance of each candidate code group is greater than the minimum Euclidean distance 1, for example, the minimum code group distance of candidate code group 1 in FIG. 8 (1) is 2, and the minimum code group distance of candidate code group 1 in FIG. 8 (2) is 2.

[0156] For example, the encoding device can also group the candidate code groups with an even number of symbols. Taking an example of 6T candidate code groups corresponding to 8B6T, the 6T candidate code groups include 3 pairs of symbol combinations (XX / XY / YX / YY). For the 729 6T candidate code groups, the encoding device can select appropriate symbol combinations to divide the 6T candidate code groups into two non-intersecting code group subsets. The non-intersecting code group subsets means that there is no repeated candidate code group between the code group subsets. Table 3 shows a code group subset including 6T candidate code groups, and Table 4 shows another code group subset including 6T candidate code groups.

[0157] Table 3

[0158] Table 4

[0159] Table 3 includes 365 candidate code groups, and the code group distance between any two candidate code groups is greater than the minimum Euclidean distance 1. Table 4 includes 364 candidate code groups, and the code group distance between any two candidate code groups is greater than 1. FIG. 9 is a diagram of minimum code group distances according to an embodiment of the present application. FIG. 9 (1) corresponds to Table 3, and FIG. 9 (2) corresponds to Table 4. Referring to FIG. 9, the minimum code group distance of any candidate code group in each code group subset is greater than 1. .

[0160] Optionally, the number of symbols of the candidate code groups can also be other even numbers. Taking the 5B4T in the above embodiment as an example, if the number of symbols of the candidate code groups is 4, there are 81 candidate code groups, and the encoding device can divide the 81 candidate code groups into two code group subsets, and each code group subset includes the candidate code groups as shown in Table 5 and Table 6.

[0161] Table 5

[0162] Table 6

[0163] There are 41 candidate code groups in Table 5 and 40 candidate code groups in Table 6, and the code group distance between any two candidate code groups in Table 5 is greater than 1, and the code group distance between any two candidate code groups in Table 6 is also greater than 1. In addition, the above examples of Table 1-Table 6 are intended to illustrate the candidate code groups included in the divided code group subsets, and are not intended to limit the number of the divided code group subsets. The code group subsets can be two code group subsets in the above embodiment, or other numbers of code group subsets.

[0164] Regardless of the way the encoding device divides the candidate code groups, a plurality of code group subsets including candidate code groups can be obtained, and the encoding device can select candidate code groups from the code group subsets as basic code groups used in the encoding process. Optionally, the encoding device can directly select a plurality of basic code groups from the code group subsets, for example, the code group subsets shown in Table 3 and Table 4. The code group subset in Table 3 includes 365 basic code groups, and the code group subset in Table 4 includes 364 basic code groups, both of which are greater than 265. Therefore, the basic code groups in the code group subset in Table 3 or Table 4 are sufficient to represent an 8-bit data segment, and the encoding device can select 265 basic code groups from any one of the code group subsets to obtain basic code groups that theoretically have a 3 decibel (dB) SNR gain.

[0165] In a possible case, the encoding device also constrains the non-uniformity of the first encoded segment output after encoding to achieve direct current (DC) balance. Therefore, the encoding device first determines a first number of candidate code groups in each code group subset that satisfy a selection condition of non-uniformity; and then selects a plurality of basic code groups from the candidate code groups included in the plurality of code group subsets according to the first number of each code group subset. The selection condition of non-uniformity can be that the change amount of non-uniformity is not less than a first value, or the change amount of non-uniformity is not greater than the first value. The first value can be set based on experience, for example, 0.

[0166] The uniformity of the distribution of the levels of the encoded output can affect the quality and effectiveness of the communication. For example, different levels of non-uniformity can cause the output of a plurality of same levels in succession, the capacitor to charge or discharge for a long time when the levels are continuously high or low, and the voltage to be too high or too low when the levels suddenly change. When a plurality of 0 levels are output in succession, the clock recovery circuit of the receiving end can lose lock. Therefore, the encoding device can restrict the non-uniformity of the first encoded segment during the encoding of the first data segment, to control the uniformity of the different levels of the encoded output. Based on the requirement of restricting the non-uniformity, the encoding device can also consider the change amount of the non-uniformity of the basic code group during the selection of the basic code group from the candidate code groups. The change amount of the non-uniformity of the basic code group reflects the change of the overall non-uniformity of the output if the basic code group is selected as the output.

[0167] The encoding device can randomly select the selection condition, for example, randomly determine that the change amount of the non-uniformity is not less than the first value as the selection condition. Alternatively, the encoding device can interactively determine the selection condition, for example, determine that the change amount of the non-uniformity is not greater than the first value as the default selection condition, and input the determined selection condition based on the interactive control provided by the encoding device. Regardless of the way in which the encoding device determines the selection condition, the first number of the candidate code groups in each code group subset that satisfy the selection condition can be counted. Taking the code group subsets shown in Table 1 and Table 2 as examples, referring to Table 1, there are 45 candidate code groups with a change amount of the non-uniformity of 1, 15 candidate code groups with a change amount of the non-uniformity of 3, and 1 candidate code group with a change amount of the non-uniformity of 5. Therefore, the first number of the candidate code groups with a change amount of the non-uniformity of 0 or more is 61. Referring to Table 2, there are 51 candidate code groups with a change amount of the non-uniformity of 0, 30 candidate code groups with a change amount of the non-uniformity of 2, and 5 candidate code groups with a change amount of the non-uniformity of 4. Therefore, the first number of the candidate code groups with a change amount of the non-uniformity of 0 or more is 86.

[0168] Taking the code group subsets shown in Table 3 and Table 4 as examples, Table 7 shows the statistical results of the change amount of the non-uniformity of the candidate code groups in the code group subsets shown in Table 3 and Table 4.

[0169] Table 7

[0170] The code group subset A in Table 7 corresponds to the code group subset shown in Table 3, and the code group subset B corresponds to the code group subset shown in Table 4. Referring to Table 7, there are 141 candidate code groups with Δ = 0, 90 candidate code groups with Δ = 2, 21 candidate code groups with Δ = 4, and 1 candidate code group with Δ = 6 in the code group subset A, and thus the first number of candidate code groups with Δ ≥ 0 is 253. There are 126 candidate code groups with Δ = 1, 50 candidate code groups with Δ = 3, and 6 candidate code groups with Δ = 5 in the code group subset B, and thus the first number of candidate code groups with Δ ≥ 0 is 182. Taking the code group subsets shown in Table 5 and Table 6 as examples, the first number of candidate code groups with Δ ≥ 0 is 30 in Table 5, and the first number of candidate code groups with Δ ≥ 0 is 20 in Table 6.

[0171] After determining the first number of each code group subset, the encoding device can select the basic code groups from the candidate code groups according to the first number of the code group subset. The first number can be less than or not less than the number of the basic code groups used for encoding. The encoding device can select the basic code groups from the code group subset by two selection methods including but not limited to the following two selection methods.

[0172] The first selection method is to determine a first subset with the largest first number from the plurality of code group subsets. The basic code groups are determined from each candidate code group included in the first subset and satisfying the selection condition, or the basic code groups are selected from the candidate code groups included in the first subset and satisfying the selection condition according to the level values of the candidate code groups. The basic code groups are selected from the candidate code groups included in a second subset and satisfying the selection condition according to the level values of the candidate code groups. The second subset is different from the first subset.

[0173] In a possible implementation, since the minimum code group distance between each candidate code group in the same code group subset is greater than the minimum Euclidean distance, but the minimum code group distance between the candidate code groups in different code group subsets is equal to the minimum Euclidean distance, if more candidate code groups are selected from different code group subsets, there will be more candidate code groups corresponding to the minimum code group distance equal to the minimum Euclidean distance, and thus the encoding gain is reduced. Based on this, the encoding device can first determine a first subset with the largest first number, and preferentially select the candidate code groups from the first subset, so as to ensure that the number of candidate code groups from the same code group subset is as large as possible, and control the number of candidate code groups from different code group subsets.

[0174] Next, taking the 6T candidate code groups shown in Table 3 and Table 4 as examples, the process of determining the first subset and selecting the basic code group from the first subset is illustrated. Referring to Table 7, the first number of the code group subset A is 253, the first number of the code group subset B is 182, 253 is greater than 182, and the encoding device determines that the code group subset A is the first subset. Then, the encoding device selects the candidate code group as the basic code group from the first subset. The encoding device can select each candidate code group in the first subset that meets the selection condition as the basic code group, that is, 253 basic code groups are selected from the first subset. The encoding device can also select the basic code group from the candidate code group included in the first subset that meets the selection condition according to the level value of each candidate code group.

[0175] In a possible case, the encoding device can select the candidate code group with a continuous number of the same level value less than a first threshold from the first subset as the basic code group. The first threshold can be set based on experience and the type of the code group. Taking the type of the candidate code group as a PAM3 six-element code group as an example, the first threshold can be set to 6 based on experience. If the continuous number of the same level value of the candidate code group is not less than the first threshold, it indicates that the candidate code group is a continuous level code group, for example, continuous 0, continuous 1, or continuous -1. The candidate code group can cause a long continuous level and is limited to be selected as the basic code group.

[0176] For example, the encoding device can also select the candidate code group with a number of jumps greater than a third threshold as the basic code group. The number of jumps refers to the number of adjacent and different value code elements in the encoding device. For example, the candidate code element is 1 -1 1 -1 -1 1, and the number of jumps of the candidate code group is 4. The third threshold can be set based on experience and the type of the code group. For example, in the case where the type of the candidate code group is a PAM3 six-element code group, the third threshold can be set to 3 or 4 based on experience. If the number of jumps of the candidate code group is greater than the third threshold, it indicates that there are multiple level jumps in the candidate code group, and the candidate code group will not cause a long continuous level.

[0177] Alternatively, the encoding device can also determine based on an intermediate state value. The intermediate state value refers to the intermediate value of the plurality of level values corresponding to the PAM. For example, in the case of PAM3, the plurality of level values corresponding to PAM3 are -1, 0, and 1, and the level value in the middle is 0. The intermediate state value is 0. Since the error probability of the 0 level is higher than that of the 1 level and the -1 level, the encoding device can limit the 0 level included in the candidate code group by comparing the number of 0 levels with a second threshold. The second threshold can also be set based on experience and the type of the code group. For example, in the case where the type of the candidate code group is a PAM3 six-element code group, the second threshold can be set to 3, 4, or 5 based on experience.

[0178] In addition, the first threshold value, the second threshold value and the third threshold value can be different values set in the above embodiments, or can be the same value, for example, both 3 or both 4, and the embodiments of the present application do not limit this. Moreover, the encoding device can select the basic code group from the candidate code groups satisfying the selection condition based on any one of the first threshold value, the second threshold value or the third threshold value. For example, the basic code group is selected based on the second threshold value, and for each candidate code group of Δ≥0 included in the first subset, the candidate code group of 6 all 0s [0 0 0 0 0 0] is removed, and the remaining candidate code group of Δ≥0 is taken as the basic code group.

[0179] Alternatively, the encoding device can also select the basic code group from the candidate code groups satisfying the selection condition based on multiple threshold values among the first threshold value, the second threshold value or the third threshold value. For example, for each candidate code group of Δ≥0 included in the first subset, the candidate code group in which the number of continuous same level values is less than 6 and the number of 0 level values is less than 6 is selected. In this case, for the first subset shown in Table 3, the encoding device removes the candidate code group of 6 all 0s [0 0 0 0 0 0], the candidate code group of 6 all 1s [1 1 1 1 1 1] and the candidate code group of 6 all -1s [-1 -1 -1 -1 -1 -1] from the candidate code groups of Δ≥0 included in the first subset. Based on this, the basic code group selected according to the level value satisfies at least one of the following conditions: the number of continuous same level values is less than the first threshold value, or the number of intermediate state values of the level value is less than the second threshold value, or the number of level value jumps is greater than the third threshold value.

[0180] No matter how the encoding device selects the basic code group from the first subset, the number 1 of the selected basic code groups and the number 2 of the basic code groups used for encoding can be compared, and if the number 1 is less than the number 2, the encoding device can select the number 3 of basic code groups from the second subset, so as to obtain the number 2 of basic code groups. Taking the example that the 6 all 0s candidate code group [0 0 0 0 0 0] of the first subset is removed in the above embodiment, and the remaining candidate code group of Δ≥0 is taken as the basic code group, the number of candidate code groups of Δ≥0 of the first subset is 253, and after removing one candidate code group [0 0 0 0 0 0], the number 1 of the selected basic code groups is 252. In the 8B6T encoding scenario, the number 2 of the basic code groups used for encoding is 256, and 252 is less than 256, based on this, the encoding device selects the basic code group from the second subset, and the number 3 of the selected basic code groups is equal to the difference between the number 2 and the number 1, for example, 4.

[0181] The second subset is a subset of code groups different from the first subset, and the first number of the second subset is less than the first number of the first subset. In some cases, the process of selecting the basic code group from the candidate code groups in the second subset that meet the selection condition is similar to the process of selecting the basic code group from the first subset, and can also refer to at least one of the number of consecutive same level values, the number of intermediate state values, or the number of level value jumps. For example, the encoding device selects a candidate code group with Δ>0, less 0 level, less consecutive 1, or less consecutive -1 from the second subset as the basic code group, and the selected basic code group is, for example, [1 0 1 -1 1 1], [1 0 1 1 -1 1], [1 1 0 1 -1 1], [1 1 0 1 1 -1], and [1 -1 -1 1 0 1], etc.

[0182] In some cases, since the minimum code group distance between the candidate code groups in the second subset and the candidate code groups in the first subset is equal to the minimum Euclidean distance 1, if the number of basic code groups from the second subset in the selected basic code groups is greater, the number of basic code groups with a minimum code group distance greater than the minimum Euclidean distance in the selected basic code groups is smaller, and the encoding gain is smaller. Therefore, the encoding device can also control the number of candidate code groups selected from the first subset in the process of selecting the basic code group from the first subset and the second subset, for example, by setting a number threshold of candidate code groups filtered out from the first subset in the process of selecting the basic code group based on the level value, which is, for example, 1, or other positive integers such as 2. By setting the number threshold, too many candidate code groups are removed from the first subset, which leads to too many candidate code groups selected from the second subset, and reduces the encoding gain.

[0183] Next, based on the code group subsets shown in Table 3 and Table 4, the 256 basic code groups selected by the first selection mode are described. The encoding device can select the candidate code groups with Δ≥0 except [0 0 0 0 0 0] from the first subset corresponding to Table 3 as the basic code groups, and then select [1 0 1 -1 1 1], [1 0 1 1 -1 1], [1 1 0 1 -1 1] and [1 1 0 1 1 -1] from the second subset corresponding to Table 4, and the 256 basic code groups of the first case are [1 0 1 -1 0 1], [0 0 1 1 -1 -1], [0 1 -1 0 0 0], [-1 0 -1 0 1 1], [0 1 -1 -1 1 0], [1 0 0 0 1 0], [0 1 1 -1 0 1], [1 1 1 -1 -1 1], [0 1 1 -1 0 -1], [-1 1 -1 -1 1 1], [-1 0 1 1 0 1], [0 0 1 0 1 0], [0 -1 0 1 -1 1], [-1 1 0 -1 1 0], [1 1 0 1 -1 1], [1 -1 1 0 0 -1], [1 0 1 -1 -1 0], [1 0 0 -1 0 0], [1 1 1 1 -1 1], [-1 1 1 1 -1 1], [1 0 1 0 0 0], [1 0 -1 0 0 0], [0 1 -1 1 0 1], [0 0 1 0 0 1], [0 1 0 1 1 -1], [1 -1 -1 0 0 1], [-1 1 -1 1 1 -1], [0 0 1 1 1 1], [0 0 0 0 1 -1], [1 0 1 1 1 0], [0 -1 1 -1 1 0], [0 1 -1 0 1 -1], [0 0 -1 1 0 0], [1 1 1 -1 1 -1], [-1 1 1 1 1 1], [1 1 -1 -1 -1 1], [1 -1 1 1 0 0], [0 1 0 0 0 -1], [1 0 0 0 0 1], [1 1 1 -1 -1 -1], [1 -1 0 0 1 1], [-1 1 1 -1 1 -1], [1 -1 0 1 0 1], [0 0 1 1 -1 1], [0 -1 -1 1 0 1], [0 0 0 0 -1 1], [1 1 0 0 1 1], [1 1 0 1 1 -1], [-1 1 0 0 1 -1], [0 -1 1 1 0 -1], [1 1 0 0 -1 -1], [0 -1 1 1 -1 0], [0 -1 1 0 1-1]、[1 1 1 0 -1 0]、[1 -1 -1 -1 1 1]、[1 1 0 0 0 0]、[0 0 0 0 1 1]、[0 1 -1 1 1 0]、[1 -1 1 1 -1 1]、[-1 0 0 -1 1 1]、[1 -1 1 0 0 1]、[1 0 1 -1 0 -1]、[-1 1 -1 1 -1 1]、[0 0 1 -1 0 0]、[0 1 1 0 1 -1]、[0 1 1 -1 -1 0]、[0 0 -1 1 -1 1]、[1 0 -1 1 0 1]、[1 1 0 -1 1 0]、[-1 0 1 0 1 1]、[1 -1 1 1 -1 -1]、[-1 1 0 1 1 0]、[1 -1 1 -1 1 -1]、[-1 1 0 0 0 0]、[-1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 -1 1 -1 1 1]、[1 1 1 0 0 1]、[0 0 -1 1 1 1]、[1 1 -1 1 1 1]、[0 1 0 0 0 1]、[1 1 1 -1 0 0]、[-1 1 1 1 1 -1]、[-1 -1 0 0 1 1]、[0 1 1 1 0 1]、[1 0 -1 0 -1 1]、[1 0 0 1 1 1]、[1 -1 -1 1 -1 1]、[1 -1 1 1 1 -1]、[1 1 -1 0 -1 0]、[1 1 0 0 1 -1]、[0 1 -1 -1 0 1]、[1 0 1 0 -1 1]、[0 1 0 -1 -1 1]、[0 1 0 1 -1 -1]、[-1 1 0 -1 0 1]、[1 1 1 1 1 1]、[0 -1 1 1 1 0]、[0 1 0 0 -1 0]、[1 -1 1 -1 0 0]、[1 1 0 -1 0 -1]、[1 0 0 1 -1 1]、[-1 -1 1 1 -1 1]、[0 1 1 -1 1 0]、[-1 0 1 1 1 0]、[1 0 0 1 0 0]、[1 1 0 1 0 1]、[0 0 0 -1 0 1]、[-1 1 1 -1 -1 1]、[1 0 1 0 1 1]、[0 0 1 -1 -1 1]、[0 0 -1 -1 1 1]、[1 0 -1 0 1 1]、[0 -1 1 0 0 0]、[-1 1 0 1 0 1]、[0 1 0 0 1 0]、[1 1 1 0 0 -1]、[1 0 1 0 1-1]、[1 -1 -1 1 1 -1]、[1 0 -1 -1 0 1]、[1 -1 -1 1 0 0]、[1 1 0 -1 -1 0]、[1 0 0 1 1 -1]、[0 0 -1 0 0 1]、[0 -1 0 0 1 0]、[-1 1 1 0 0 -1]、[-1 0 0 1 0 0]、[0 -1 1 -1 0 1]、[0 -1 1 1 0 1]、[1 1 1 1 1 -1]、[1 1 -1 0 0 -1]、[-1 1 1 1 -1 -1]、[0 -1 1 0 1 1]、[1 -1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 -1 -1]、[1 0 1 -1 1 0]、[1 1 0 1 1 0]、[1 -1 0 1 1 0]、[1 0 0 -1 1 -1]、[1 0 -1 -1 1 0]、[1 1 1 1 0 0]、[1 1 -1 0 0 1]、[1 0 0 -1 1 1]、[1 0 1 1 0 1]、[1 1 1 0 1 0]、[1 1 0 -1 0 1]、[1 1 1 1 -1 -1]、[1 1 -1 1 -1 1]、[1 0 0 -1 -1 1]、[1 1 -1 1 -1 -1]、[-1 -1 1 -1 1 1]、[1 -1 1 -1 -1 1]、[0 1 0 1 0 0]、[1 1 0 1 0 -1]、[1 1 -1 -1 0 0]、[-1 1 1 0 1 0]、[1 0 1 1 0 -1]、[0 0 1 1 0 0]、[1 1 -1 1 1 -1]、[0 1 1 0 -1 1]、[1 0 -1 1 0 -1]、[1 -1 0 0 0 0]、[-1 0 -1 1 0 1]、[0 1 1 1 0 -1]、[1 0 -1 1 -1 0]、[-1 0 1 0 1 -1]、[0 -1 0 0 0 1]、[1 1 -1 -1 1 1]、[0 1 1 1 1 0]、[1 -1 -1 1 1 1]、[1 -1 1 0 -1 0]、[1 -1 1 1 1 1]、[-1 1 1 0 -1 0]、[0 0 1 1 1 -1]、[1 0 -1 1 1 0]、[-1 1 1 1 0 0]、[-1 0 1 -1 0 1]、[0 -1 -1 0 1 1]、[0 0 -1 0 1 0]、[-1 1 0 0 1 1]、[-1 0 0 0 1 0]、[0 -1 -11 1 0]、[-1 0 0 1 -1 1]、[1 0 1 -1 1 1]、[1 -1 0 -1 0 1]、[-1 1 0 0 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 -1 1 1]、[0 0 -1 1 1 -1]、[-1 1 -1 1 0 0]、[1 1 -1 0 1 0]、[-1 0 1 0 0 0]、[1 0 1 0 -1 -1]、[1 0 0 0 0 -1]、[1 0 1 1 -1 1]、[0 0 1 -1 1 1]、[-1 1 -1 0 1 0]、[1 -1 0 0 1 -1]、[-1 1 0 1 -1 0]、[0 1 0 1 -1 1]、[0 1 0 -1 1 -1]、[-1 1 -1 1 1 1]、[-1 1 0 1 0 -1]、[-1 1 1 -1 0 0]、[-1 -1 1 1 1 1]、[0 0 1 0 0 -1]、[0 0 0 1 1 0]、[1 0 1 1 -1 0]、[-1 0 -1 1 1 0]、[0 1 -1 0 1 1]、[0 0 0 -1 1 0]、[0 1 0 -1 0 0]、[0 0 0 1 -1 0]、[1 -1 -1 0 1 0]、[1 1 0 0 -1 1]、[0 -1 0 1 1 1]、[-1 -1 1 1 0 0]、[-1 1 1 -1 1 1]、[0 -1 0 1 0 0]、[0 0 1 0 -1 0]、[-1 0 1 -1 1 0]、[-1 0 0 1 1 -1]、[-1 -1 1 0 1 0]、[1 1 -1 -1 1 -1]、[-1 0 0 0 0 1]、[1 1 0 1 -1 0]、[1 1 1 -1 1 1]、[-1 0 1 1 0 -1]、[1 0 0 1 -1 -1]、[0 0 0 1 0 -1]、[-1 -1 0 1 1 0]、[0 0 0 1 0 1]、[-1 0 1 0 -1 1]、[-1 0 1 1 -1 0]、[1 0 0 0 -1 0]、[0 1 0 1 1 1]、[-1 -1 1 1 1 -1]、[0 1 0 -1 1 1]、[-1 0 0 1 1 1]、[1 -1 0 1 0 -1]、[1 0 -1 0 1 -1]、[-1 -1 0 1 0 1]、[1 -1 0 1 -1 0]、[0 1 -1 1 -1 0]、[1 1 -1 1 0 0]、[0 1 1 0 11], [0 1 1 1 -1 0], [1 -1 0 0 -1 1], [0 1 -1 1 0 -1], [0 -1 1 0 -1 1], [0 0 1 -1 1 -1], [-1 -1 -1 1 1 1], [0 1 -1 0 -1 1], [1 -1 1 0 1 0] and [-1 1 -1 0 0 1].

[0184] The encoding device can also select all candidate code groups with Δ≥0 from the first subset corresponding to Table 3 as the basic code groups, and then select [1 0 1 -1 1 1], [1 0 1 1 -1 1], and [1 1 0 1 -1 1] from the second subset corresponding to Table 4 as the basic code groups, obtaining 256 basic code groups of the second case as [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [0 0 0 0 0 0], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 1 0 1 -1 -1], [0 1 1 -1 1 0], [0 0 0 0 1 -1], [1 1 1 -1 -11]、[0 0 1 -1 -1 1]、[-1 0 1 1 0 -1]、[0 1 -1 1 0 1]、[0 -1 1 -1 1 0]、[1 0 0 1 1 1]、[0 1 1 0 1 1]、[1 0 0 1 0 0]、[1 -1 0 1 1 0]、[0 1 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 0 1 -1 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 0 1 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 01 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[0 1 0 0 0 1]、[1 1 0 -1 0 1]、[0 1 -1 -1 0 1]、[1 -1 1 -1 1 -1]、[0 1 1 1 1 0]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 1 0 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 1 1 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -11 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[1 0 0 0 -1 0]、[-1 1 0 1 0 1]、[1 -1 1 0 0 1]、[-1 1 1 1 1 -1]、[-1 1 1 1 1 1]、[0 0 1 1 0 0]、[0 1 0 1 1 -1]、[1 -1 -1 0 0 1]、[0 0 1 1 -1 1]、[1 1 -1 1 -1 -1]、[1 -1 1 0 -1 0]、[-1 0 0 -1 1 1]、[1 1 0 -1 1 0]、[1 1 0 0 -1 -1]、[-1 1 0 1 0 -1]、[1 -1 -1 0 1 0]、[1 1 -1 -1 -1 1]、[1 0 1 1 -1 1]、[-1 0 0 1 1 -1]、[1 0 0 0 0 -1]、[1 1 -1 0 1 0]、[0 0 0 1 -1 0]、[0 0 1 -1 1 1]、[1 0 -1 1 0 -1]、[-1 -1 1 0 1 0]、[0 -1 1 0 1 1]、[0 0 1 -1 1 -1]、[1 1 1 1 0 0]、[0 -1 1 -1 0 1]、[0 0 0 1 1 0]、[0 0 1 1 1 1]、[-1 0 0 0 1 0]、[0 1 -1 -1 1 0]、[1 0 1 1 1 0]、[1 0 0 -1 0 0]、[0 1 -1 0 1 -1]、[1 1 1 1 1 1]、[1 1 1 0 0 1]、[0 -1 1 0 -1 1]、[1 -1 -1 1 0 0]、[0 -1 1 1 -1 0]、[1 0 -1 -1 1 0]、[1 0 0 1 1 -1]、[0 1 -1 0 -1 1]、[1 0 0 -1 1 1]、[1 0 -1 -1 0 1]、[1 0 1 -1 1 1]、[1 -1 1 -1 1 1]、[0 -1 -1 1 1 0]、[-1 1 -1 0 0 1]、[-1 -1 1 1 1 -1]、[0 0 1 0 -1 0]、[1 1 1 0 -1 0]、[1 0 1 1 0 1]、[1 0 0 1 -1 -1]、[-1 0 -1 1 1 0]、[-1 1 1 0 0 1]、[-1 1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 1 -1]、[-1 0 10 1 1]、[1 1 -1 1 0 0]、[1 1 0 0 0 0]、[1 1 1 -1 -1 -1]、[0 -1 0 1 1 1]、[0 0 -1 0 0 1]。

[0185] Or the encoding device can select the candidate code groups with Δ≥0 other than [0 0 0 0 0 0] from the first subset 1 corresponding to Table 3 as the basic code groups, and then select [1 -1 1 0 -1 1], [1 -1 0 1 -1 1], [-1 1 0 1 -1 1] and [1 -1 1 0 1 -1] from the second subset corresponding to Table 4 as the basic code groups, and the 256 basic code groups of the third case obtained are [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 00]、[1 1 1 1 0 0]、[1 1 -1 0 -1 0]、[1 -1 1 0 -1 0]、[1 -1 -1 0 1 0]、[-1 1 1 0 -1 0]、[-1 1 -1 0 1 0]、[-1 -1 1 0 1 0]、[1 1 1 0 -1 0]、[1 1 -1 0 1 0]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -11 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -1 1 0 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0 -1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 1 1 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 0 1 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 11]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0-1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 0 1]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[0 1 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 01]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 -1 1 0 -1 1]、[1 -1 0 1 -1 1]、[-1 1 0 1 -1 1]、[1 -1 1 0 1 -1]。

[0186] Or the encoding device can select the candidate code groups with Δ≥0 other than [0 0 0 0 0 0] from the first subset 1 corresponding to Table 3 as the basic code groups, and then select [1 0 1 -1 1 1], [1 0 -1 1 -1 1], [1 -1 1 -1 0 1] and [-1 1 -1 1 0 1] from the second subset corresponding to Table 4 as the basic code groups, and the 256 basic code groups of the fourth case obtained are [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 00]、[1 1 1 1 0 0]、[1 1 -1 0 -1 0]、[1 -1 1 0 -1 0]、[1 -1 -1 0 1 0]、[-1 1 1 0 -1 0]、[-1 1 -1 0 1 0]、[-1 -1 1 0 1 0]、[1 1 1 0 -1 0]、[1 1 -1 0 1 0]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -11 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -1 1 0 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0 -1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 1 1 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 0 1 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 1 1]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0-1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 0 1]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[0 1 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 01]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 0 1 -1 1 -1]、[1 0 -1 1 -1 1]、[1 -1 1 -1 0 1]、[-1 1 -1 1 0 1]。

[0187] Based on the four basic code groups in the above cases, the encoding device can select all or part of the candidate code groups that meet the selection condition from the first subset as the basic code group, and the application does not limit the selection of the basic code group from the second subset, which can be any candidate code group that meets the selection condition. For example, although the third and fourth cases in the above embodiments are both selected from the second subset, the four candidate code groups can be different, and the selected 256 basic code groups can include 252 basic code groups with Δ≥0 in the first subset except [0 0 0 0 0 0], that is, [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 10 1 -1 -1]、[0 1 1 -1 1 0]、[0 0 0 0 1 -1]、[1 1 1 -1 -1 1]、[0 0 1 -1 -1 1]、[-1 0 1 1 0 -1]、[0 1 -1 1 0 1]、[0 -1 1 -1 1 0]、[1 0 0 1 1 1]、[0 1 1 0 1 1]、[1 0 0 1 0 0]、[1 -1 0 1 1 0]、[0 1 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 01 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1-1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 0 1 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[0 1 0 0 0 1]、[1 1 0 -1 0 1]、[0 1 -1 -1 0 1]、[1 -1 1 -1 1 -1]、[0 1 1 1 1 0]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 1 0 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 11 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -1 1 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[1 0 0 0 -1 0]、[-1 1 0 1 0 1]、[1 -1 1 0 0 1]、[-1 1 1 1 1 -1]、[-1 1 1 1 1 1]、[0 0 1 1 0 0]、[0 1 0 1 1 -1]、[1 -1 -1 0 0 1]、[0 0 1 1 -1 1]、[1 1 -1 1 -1 -1]、[1 -1 1 0 -1 0]、[-1 0 0 -1 1 1]、[1 1 0 -1 1 0]、[1 1 0 0 -1 -1]、[-1 1 0 1 0 -1]、[1 -1 -1 0 1 0]、[1 1 -1 -1 -1 1]、[-1 0 0 1 1 -1]、[1 0 0 0 0 -1]、[1 1 -1 0 1 0]、[0 0 0 1 -1 0]、[0 0 1 -1 1 1]、[1 0 -1 1 0 -1]、[-1 -1 1 0 1 0]、[0 -1 1 0 1 1]、[0 0 1 -1 1 -1]、[1 1 1 1 0 0]、[0 -1 1 -1 0 1]、[0 0 0 1 1 0]、[0 0 1 1 1 1]、[-1 0 0 0 1 0]、[0 1 -1 -1 1 0]、[1 0 1 1 1 0]、[1 0 0 -1 0 0]、[0 1 -1 0 1 -1]、[1 1 1 1 1 1]、[1 1 1 0 0 1]、[0 -1 1 0 -1 1]、[1 -1 -1 1 0 0]、[0 -1 1 1 -1 0]、[1 0 -1 -1 1 0]、[1 0 0 1 1 -1]、[0 1 -1 0 -1 1]、[1 0 0 -1 1 1]、[1 0 -1 -1 0 1]、[1 -1 1 -1 1 1]、[0 -1 -1 1 1 0]、[-1 1 -1 0 0 1]、[-1 -1 1 1 1 -1]、[0 0 1 0 -1 0]、[1 1 1 0 -1 0]、[1 0 1 1 0 1]、[1 0 0 1 -1 -1]、[-1 0 -1 1 1 0]、[-1 1 1 0 0 1]、[-1 1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 1[1 1 -1 1 0 0], [1 1 0 0 0 0], [1 1 1 -1 -1 -1], [0 -1 0 1 1 1], [0 0 -1 0 0 1] are common parts of the basic code groups of the above four cases. It should be understood that the basic code groups of the above four cases are intended to be illustrative, rather than to limit the selected 256 basic code groups, which can also include basic code groups in the first subset and basic code groups in the second subset, for example, including 250 basic code groups selected from the first subset and 6 basic code groups selected from the second subset.

[0188] In addition, selection mode one can also be applied to other code group types, such as 5B4T in the above embodiment, the plurality of candidate code groups corresponding to 5B4T can be divided into the code group subsets corresponding to Table 5 and Table 6, the candidate code groups with Δ≥0 in the A subset corresponding to Table 5 are 30, and the candidate code groups with Δ≥0 in the B subset corresponding to Table 6 are 20. Since the first number 30 of the A subset is greater than the first number 20 of the B subset, the encoding device determines the A subset as the first subset, and retains all the candidate code groups with Δ≥0 in the A subset or removes part of the candidate code groups with Δ≥0 in the A subset, for example, [0 0 0 0] and [1 1 1 1]. Then, the basic code groups are selected from the B subset, together with the basic code groups selected from the A subset to form 32 basic code groups. The rules for selecting the basic code groups from the B subset are, for example, candidate code groups with Δ>0, few 0 levels, and few consecutive 1s or consecutive -1s, such as [1 0 1 -1], [1 0 -1 1], [1 -1 0 1], and [1 -1 1 0]. Similar to the case of selecting 256 basic code groups in the 8B6T scenario in the above embodiment, since the minimum code group distance between the candidate code groups of the A subset and the B subset is 1, the more the number of basic code groups selected from the B subset, the more the minimum code group distance between the basic code groups and other code groups will be 1, and the smaller the encoding gain will be. Therefore, the encoding device also controls the number of removed candidate code groups in the process of removing candidate code groups from the A subset.

[0189] Selection mode two: determining a first subset with the largest first number from a plurality of code group subsets; determining each candidate code group included in the first subset and satisfying a selection condition as a basic code group, or, from the candidate code groups included in the first subset and satisfying the selection condition, selecting a basic code group according to the level values of the candidate code groups.

[0190] Optionally, the process of determining the first subset according to the first number and the process of determining the first subset according to the first number in selection mode one are similar, and the process of selecting the basic code groups from the first subset is also similar to the process of selecting the basic code groups from the first subset in selection mode one, with the difference being that in selection mode two, the first number of the first subset is not less than the number of the basic code groups used for encoding, so that the encoding device can select multiple basic code groups from one code group subset, and the code group distance between any two basic code groups in the obtained multiple basic code groups is greater than the minimum Euclidean distance. Next, taking the code group subsets shown in Table 1 and Table 2 as examples, the process of selecting multiple basic code groups from one first subset through selection mode two is illustrated.

[0191] In the code group subset corresponding to Table 1, there are 45 candidate code groups with Δ = 1, 14 candidate code groups with Δ = 3, and 1 candidate code group with Δ = 5, so the first number of the code group subset corresponding to Table 1 is 61. In the code group subset corresponding to Table 2, there are 51 candidate code groups with Δ = 0, 30 candidate code groups with Δ = 2, and 5 candidate code groups with Δ = 4, so the first number of the code group subset corresponding to Table 2 is 86. Based on the first numbers corresponding to Table 1 and Table 2, it is determined that the code group subset corresponding to Table 2 is the first subset with the largest first number, and since the selection condition is met in the first subset, that is, there are 86 candidate code groups with Δ ≥ 0, and the number of the basic code groups used for encoding in the 6B5T scenario is 64. Therefore, the encoding device can select 64 basic code groups from the first subset to perform 6B5T encoding, and the process of selecting the 64 basic code groups can also be based on the level values. For example, delete 10 candidate code groups with the number of consecutive 0s ≥ 3 in the first subset, delete 4 candidate code groups with the number of consecutive 1s ≥ 3 in the first subset, and further delete the following 8 candidate code groups: [1 1 0 1 1], [0 1 1 0 0], [0 1 0 1 0], [0 1 0 0 1], [0 0 1 1 0], [0 0 1 -1 0], [0 0 -1 1 0], and [0 0 1 0 1]. Through the above operations, 22 candidate code groups are removed from the 86 candidate code groups with Δ ≥ 0, and the remaining 64 candidate code groups with Δ ≥ 0 are used as the multiple basic code groups for encoding.

[0192] The encoding device can select multiple basic code groups from the multiple candidate code groups according to the number of the basic code groups that can be selected in the first subset based on either selection mode one or selection mode two. Regardless of the selection mode based on which the encoding device selects the multiple basic code groups, the multiple basic code groups can be regarded as being composed of a first code group set and a second code group set. The first code group set and the second code group set are used to distinguish the basic code groups in different cases, rather than indicating that the multiple basic code groups are managed by different code group sets.

[0193] If any basic code group is located in the first code group set, it means that the minimum code group distance between the any basic code group and other code groups in the plurality of basic code groups is greater than the minimum Euclidean distance, that is, the minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups is greater than the minimum Euclidean distance. Wherein, the plurality of basic code groups refers to all basic code groups used for encoding, and the minimum code group distance between the basic code group and other code groups refers to the minimum value of the code group distance between the any basic code group and each basic code group other than the any basic code group. Taking the plurality of basic code groups as the 256 basic code groups in the above embodiment as an example, the minimum code group distance between the basic code group and other code groups refers to the minimum value of the 255 code group distances between the basic code group and the other 255 basic code groups, and the minimum code group distance of the basic code group is greater than the minimum Euclidean distance 1. . .

[0194] If any basic code group is located in the second code group set, the minimum code group distance between the any basic code group and other code groups in the plurality of basic code groups is equal to the minimum Euclidean distance, that is, the minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups is equal to the minimum Euclidean distance. Similar to the meaning of the first code group set, the minimum code group distance counted in the second code group set is also the minimum value of the code group distance between the any basic code group and the remaining 255 basic code groups. That is, for any basic code group, it can be divided into the first code group set or the second code group set according to whether the minimum code group distance between the any basic code group and other code groups is greater than the minimum Euclidean distance.

[0195] Optionally, the number of basic code groups in the first code group set is greater than the number of basic code groups in the second code group set. Since the size of the coding gain is positively correlated with the minimum code group distance between the basic code groups, the more the number of basic code groups whose minimum code group distance is greater than the minimum Euclidean distance, the higher the coding gain. Therefore, the coding gain can be ensured by controlling the number of basic code groups in the first code group set. For example, the basic code groups in the first code group set account for more than 98% in the plurality of basic code groups, and in some cases, the number of basic code groups in the second code group set is 0, that is, the basic code groups in the first code group set account for 100% in the plurality of basic code groups. As the plurality of basic code groups selected by the second selection mode, since the coding device selects the basic code groups in the same code group subset, the code group distance between any two basic code groups in the same code group subset is greater than the minimum Euclidean distance, and the minimum code group distance of the plurality of basic code groups selected from the same code group subset is also greater than the minimum Euclidean distance.

[0196] S503, encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment.

[0197] In a possible case, after obtaining the plurality of basic code groups, the encoding device encodes the first data segment by using the plurality of basic code groups, and the encoding process comprises: determining a first code group corresponding to the first data segment from the plurality of basic code groups according to a mapping relationship between the first code group and the first data segment; and encoding the first data segment based on the first code group to obtain a first encoded segment.

[0198] Exemplarily, the plurality of basic code groups and the plurality of second data segments obtained by the encoding device have a one-to-one mapping relationship, wherein the second data segment refers to a plurality of arrangement results arranged based on a data structure corresponding to the first data segment, and the data structure comprises a binary number of the first data segment and a data amount of the first data segment, for example, the data structure corresponding to the first data segment in the above embodiment is binary and 8 bits, and eight 0s or 1s are arranged to obtain 256 arrangement results, each arrangement result is also a second data segment.

[0199] Optionally, the number of the second data segments is consistent with the number of the basic code groups, for example, in the 8B6T scenario in the above embodiment, the number of the second data segments and the number of the basic code groups are both 256, for example, in the 5B4T scenario in the above embodiment, the number of the second data segments and the number of the basic code groups are both 32, and for example, in the 6B5T scenario in the above embodiment, the number of the second data segments and the number of the basic code groups are both 64.

[0200] Based on the second data segment and the number of basic code groups consistent, the second data segment and the basic code group exist one-to-one mapping relationship, that is, any basic code group exists only corresponding second data segment, and the second data segment corresponding to different basic code groups is different. The embodiment of the application does not limit the acquisition mode of the mapping relationship between the basic code group and the second data segment, which can be random mapping. For example, the 256 basic code groups in the first case, the value range of the plurality of data segments corresponding to the 256 basic code groups is 00 to ff, and the mapping relationship obtained by random mapping includes: the second data segment 00000000 maps the basic code group [1 0 1 -1 0 1], the second data segment 00000001 maps the basic code group [0 0 1 1 -1 -1], the second data segment 00000010 maps the basic code group [0 1 -1 0 0 0], the second data segment 00000011 maps the basic code group [-1 0 -1 0 1 1], the second data segment 00000100 maps the basic code group [0 1 -1 -1 1 0], the second data segment 00000101 maps the basic code group [1 0 0 0 1 0], the second data segment 00000110 maps the basic code group [0 1 1 -1 0 1], the second data segment 00000111 maps the basic code group [1 1 1 -1 -1 1], the second data segment 00001000 maps the basic code group [0 1 1 -1 0 -1], the second data segment 00001001 maps the basic code group [-1 1 -1 -1 1 1], the second data segment 00001010 maps the basic code group [-1 0 1 1 0 1], the second data segment 00001011 maps the basic code group [0 0 1 0 1 0], the second data segment 00001100 maps the basic code group [0 -1 0 1 -1 1], the second data segment 00001101 maps the basic code group [-1 1 0 -1 1 0], the second data segment 00001110 maps the basic code group [1 1 0 1 -1 1], the second data segment 00001111 maps the basic code group [1 -1 1 0 0 -1], the second data segment 00010000 maps the basic code group [1 0 1 -1 -1 0], the second data segment 00010001 maps the basic code group [1 0 0 -1 0 0], the second data segment 00010010 maps the basic code group [1 1 1 1 -1 1], the second data segment 00010011 maps the basic code group [-1 1 1 1 -1 1], the second data segment 00010100 maps the basic code group [1 0 1 0 0 0], the second data segment 00010101 maps the basic code group [1 0 -1 0 0 0],The basic code group mapped by the second data segment 00010110 is [0 1 -1 1 0 1], the basic code group mapped by the second data segment 00010111 is [0 0 1 0 0 1], the basic code group mapped by the second data segment 00011000 is [0 1 0 1 1 -1], the basic code group mapped by the second data segment 00011001 is [1 -1 -1 0 0 1], the basic code group mapped by the second data segment 00011010 is [-1 1 -1 1 1 -1], the basic code group mapped by the second data segment 00011011 is [0 0 1 1 1 1], the basic code group mapped by the second data segment 00011100 is [0 0 0 0 1 -1], the basic code group mapped by the second data segment 00011101 is [1 0 1 1 1 0], the basic code group mapped by the second data segment 00011110 is [0 -1 1 -1 1 0], the basic code group mapped by the second data segment 00011111 is [0 1 -1 0 1 -1], the basic code group mapped by the second data segment 00100000 is [0 0 -1 1 0 0], the basic code group mapped by the second data segment 00100001 is [1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00100010 is [-1 1 1 1 1 1], the basic code group mapped by the second data segment 00100011 is [1 1 -1 -1 -1 1], the basic code group mapped by the second data segment 00100100 is [1 -1 1 1 0 0], the basic code group mapped by the second data segment 00100101 is [0 1 0 0 0 -1], the basic code group mapped by the second data segment 00100110 is [1 0 0 0 0 1], the basic code group mapped by the second data segment 00100111 is [1 1 1 -1 -1 -1], the basic code group mapped by the second data segment 00101000 is [1 -1 0 0 1 1], the basic code group mapped by the second data segment 00101001 is [-1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00101010 is [1 -1 0 1 0 1], the basic code group mapped by the second data segment 00101011 is [0 0 1 1 -1 1], the basic code group mapped by the second data segment 00101100 is [0 -1 -1 1 0 1], the basic code group mapped by the second data segment 00101101 is [0 0 0 0 -1 1], the basic code group mapped by the second data segment 00101110 is [1 1 0 0 1 1], the basic code group mapped by the second data segment 00101111 is [1 1 0 1 1 -1], the basic code group mapped by the second data segment 00110000 is [-1 1 0 0 1 -1],The basic code group mapped by the second data segment 00110001 is [0 -1 1 1 0 -1], the basic code group mapped by the second data segment 00110010 is [1 1 0 0 -1 -1], the basic code group mapped by the second data segment 00110011 is [0 -1 1 1 -1 0], the basic code group mapped by the second data segment 00110100 is [0 -1 1 0 1 -1], the basic code group mapped by the second data segment 00110101 is [1 1 1 0 -1 0], the basic code group mapped by the second data segment 00110110 is [1 -1 -1 -1 1 1], the basic code group mapped by the second data segment 00110111 is [1 1 0 0 0 0], the basic code group mapped by the second data segment 00111000 is [0 0 0 0 1 1], the basic code group mapped by the second data segment 00111001 is [0 1 -1 1 1 0], the basic code group mapped by the second data segment 00111010 is [1 -1 1 1 -1 1], the basic code group mapped by the second data segment 00111011 is [-1 0 0 -1 1 1], the basic code group mapped by the second data segment 00111100 is [1 -1 1 0 0 1], the basic code group mapped by the second data segment 00111101 is [1 0 1 -1 0 -1], the basic code group mapped by the second data segment 00111110 is [-1 1 -1 1 -1 1], the basic code group mapped by the second data segment 00111111 is [0 0 1 -1 0 0], the basic code group mapped by the second data segment 01000000 is [0 1 1 0 1 -1], the basic code group mapped by the second data segment 01000001 is [0 1 1 -1 -1 0], the basic code group mapped by the second data segment 01000010 is [0 0 -1 1 -1 1], the basic code group mapped by the second data segment 01000011 is [1 0 -1 1 0 1], the basic code group mapped by the second data segment 01000100 is [1 1 0 -1 1 0], the basic code group mapped by the second data segment 01000101 is [-1 0 1 0 1 1], the basic code group mapped by the second data segment 01000110 is [1 -1 1 1 -1 -1], the basic code group mapped by the second data segment 01000111 is [-1 1 0 1 1 0], the basic code group mapped by the second data segment 01001000 is [1 -1 1 -1 1 -1], the basic code group mapped by the second data segment 01001001 is [-1 1 0 0 0 0], the basic code group mapped by the second data segment 01001010 is [-1 -1 1 0 0 1], the basic code group mapped by the second data segment 01001011 is [-1 1 1 0 0 1],The basic code group mapped by the second data segment 01001100 is [1 -1 1 -1 1 1], the basic code group mapped by the second data segment 01001101 is [1 1 1 0 0 1], the basic code group mapped by the second data segment 01001110 is [0 0 -1 1 1 1], the basic code group mapped by the second data segment 01001111 is [1 1 -1 1 1 1], the basic code group mapped by the second data segment 01010000 is [0 1 0 0 0 1], the basic code group mapped by the second data segment 01010001 is [1 1 1 -1 0 0], the basic code group mapped by the second data segment 01010010 is [-1 1 1 1 1 -1], the basic code group mapped by the second data segment 01010011 is [-1 -1 0 0 1 1], the basic code group mapped by the second data segment 01010100 is [0 1 1 1 0 1], the basic code group mapped by the second data segment 01010101 is [1 0 -1 0 -1 1], the basic code group mapped by the second data segment 01010110 is [1 0 0 1 1 1], the basic code group mapped by the second data segment 01010111 is [1 -1 -1 1 -1 1], the basic code group mapped by the second data segment 01011000 is [1 -1 1 1 1 -1], the basic code group mapped by the second data segment 01011001 is [1 1 -1 0 -1 0], the basic code group mapped by the second data segment 01011010 is [1 1 0 0 1 -1], the basic code group mapped by the second data segment 01011011 is [0 1 -1 -1 0 1], the basic code group mapped by the second data segment 01011100 is [1 0 1 0 -1 1], the basic code group mapped by the second data segment 01011101 is [0 1 0 -1 -1 1], the basic code group mapped by the second data segment 01011110 is [0 1 0 1 -1 -1], the basic code group mapped by the second data segment 01011111 is [-1 1 0 -1 0 1], the basic code group mapped by the second data segment 01100000 is [1 1 1 1 1 1], the basic code group mapped by the second data segment 01100001 is [0 -1 1 1 1 0], the basic code group mapped by the second data segment 01100010 is [0 1 0 0 -1 0], the basic code group mapped by the second data segment 01100011 is [1 -1 1 -1 0 0], the basic code group mapped by the second data segment 01100100 is [1 1 0 -1 0 -1], the basic code group mapped by the second data segment 01100101 is [1 0 0 1 -1 1], the basic code group mapped by the second data segment 01100110 is [-1 -1 1 1 -1 1],The basic code group mapped by the second data segment 01100111 is [0 1 1 -1 1 0], the basic code group mapped by the second data segment 01101000 is [-1 0 1 1 1 0], the basic code group mapped by the second data segment 01101001 is [1 0 0 1 0 0], the basic code group mapped by the second data segment 01101010 is [1 1 0 1 0 1], the basic code group mapped by the second data segment 01101011 is [0 0 0 -1 0 1], the basic code group mapped by the second data segment 01101100 is [-1 1 1 -1 -1 1], the basic code group mapped by the second data segment 01101101 is [1 0 1 0 1 1], the basic code group mapped by the second data segment 01101110 is [0 0 1 -1 -1 1], the basic code group mapped by the second data segment 01101111 is [0 0 -1 -1 1 1], the basic code group mapped by the second data segment 01110000 is [1 0 -1 0 1 1], the basic code group mapped by the second data segment 01110001 is [0 -1 1 0 0 0], the basic code group mapped by the second data segment 01110010 is [-1 1 0 1 0 1], the basic code group mapped by the second data segment 01110011 is [0 1 0 0 1 0], the basic code group mapped by the second data segment 01110100 is [1 1 1 0 0 -1], the basic code group mapped by the second data segment 01110101 is [1 0 1 0 1 -1], the basic code group mapped by the second data segment 01110110 is [1 -1 -1 1 1 -1], the basic code group mapped by the second data segment 01110111 is [1 0 -1 -1 0 1], the basic code group mapped by the second data segment 01111000 is [1 -1 -1 1 0 0], the basic code group mapped by the second data segment 01111001 is [1 1 0 -1 -1 0], the basic code group mapped by the second data segment 01111010 is [1 0 0 1 1 -1], the basic code group mapped by the second data segment 01111011 is [0 0 -1 0 0 1], the basic code group mapped by the second data segment 01111100 is [0 -1 0 0 1 0], the basic code group mapped by the second data segment 01111101 is [-1 1 1 0 0 -1], the basic code group mapped by the second data segment 01111110 is [-1 0 0 1 0 0], the basic code group mapped by the second data segment 01111111 is [0 -1 1 -1 0 1], the basic code group mapped by the second data segment 10000000 is [0 -1 1 1 0 1], the basic code group mapped by the second data segment 10000001 is [1 1 1 1 1 -1],The basic code group mapped by the second data segment 10000010 is [1 1 -1 0 0 -1], the basic code group mapped by the second data segment 10000011 is [-1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10000100 is [0 -1 1 0 1 1], the basic code group mapped by the second data segment 10000101 is [1 -1 0 -1 1 0], the basic code group mapped by the second data segment 10000110 is [0 1 1 0 0 0], the basic code group mapped by the second data segment 10000111 is [0 1 1 0 -1 -1], the basic code group mapped by the second data segment 10001000 is [1 0 1 -1 1 0], the basic code group mapped by the second data segment 10001001 is [1 1 0 1 1 0], the basic code group mapped by the second data segment 10001010 is [1 -1 0 1 1 0], the basic code group mapped by the second data segment 10001011 is [1 0 0 -1 1 -1], the basic code group mapped by the second data segment 10001100 is [1 0 -1 -1 1 0], the basic code group mapped by the second data segment 10001101 is [1 1 1 1 0 0], the basic code group mapped by the second data segment 10001110 is [1 1 -1 0 0 1], the basic code group mapped by the second data segment 10001111 is [1 0 0 -1 1 1], the basic code group mapped by the second data segment 10010000 is [1 0 1 1 0 1], the basic code group mapped by the second data segment 10010001 is [1 1 1 0 1 0], the basic code group mapped by the second data segment 10010010 is [1 1 0 -1 0 1], the basic code group mapped by the second data segment 10010011 is [1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10010100 is [1 1 -1 1 -1 1], the basic code group mapped by the second data segment 10010101 is [1 0 0 -1 -1 1], the basic code group mapped by the second data segment 10010110 is [1 1 -1 1 -1 -1], the basic code group mapped by the second data segment 10010111 is [-1 -1 1 -1 1 1], the basic code group mapped by the second data segment 10011000 is [1 -1 1 -1 -1 1], the basic code group mapped by the second data segment 10011001 is [0 1 0 1 0 0], the basic code group mapped by the second data segment 10011010 is [1 1 0 1 0 -1], the basic code group mapped by the second data segment 10011011 is [1 1 -1 -1 0 0], the basic code group mapped by the second data segment 10011100 is [-1 1 1 0 1 0],The basic code group mapped to the second data segment 10011101 is [1 0 1 1 0 -1], the basic code group mapped to the second data segment 10011110 is [0 0 1 1 0 0], the basic code group mapped to the second data segment 10011111 is [1 1 -1 1 1 -1], the basic code group mapped to the second data segment 10100000 is [0 1 1 0 -1 1], the basic code group mapped to the second data segment 10100001 is [1 0 -1 1 0 -1], the basic code group mapped to the second data segment 10100010 is [1 -1 0 0 0 0], the basic code group mapped to the second data segment 10100011 is [-1 0 -1 1 0 1], and the basic code group mapped to the second data segment 10100100 is [0 1 1 1 0]. The basic code group mapped to the second data segment 10100101 is [1 0 -1 1 -1 0], the basic code group mapped to the second data segment 10100110 is [-1 0 1 0 1 -1], the basic code group mapped to the second data segment 10100111 is [0 -1 0 0 0 1], the basic code group mapped to the second data segment 10101000 is [1 1 -1 -1 1 1], the basic code group mapped to the second data segment 10101001 is [0 1 1 1 1 0], the basic code group mapped to the second data segment 10101010 is [1 -1 -1 1 1 1], the basic code group mapped to the second data segment 10101011 is [1 -1 1 0 -1 0], and the basic code group mapped to the second data segment 10101100 is [1 -1 1 1 1]. [1] The basic code group mapped to the second data segment 10101101 is [-1 1 1 0 -1 0], the basic code group mapped to the second data segment 10101110 is [0 0 1 1 1 -1], the basic code group mapped to the second data segment 10101111 is [1 0 -1 1 1 0], the basic code group mapped to the second data segment 10110000 is [-1 1 1 1 0 0], the basic code group mapped to the second data segment 10110001 is [-1 0 1 -1 0 1], the basic code group mapped to the second data segment 10110010 is [0 -1 -1 0 1 1], the basic code group mapped to the second data segment 10110011 is [0 0 -1 0 1 0], and the basic code group mapped to the second data segment 10110100 is [-1 1 0 0 1]. [1] The basic code group mapped to the second data segment 10110101 is [-1 0 0 0 1 0], the basic code group mapped to the second data segment 10110110 is [0 -1 -1 1 1 0], and the basic code group mapped to the second data segment 10110111 is [-1 0 0 1 -1 1].The basic code group mapped to the second data segment 10111000 is [1 0 1 -1 1 1], the basic code group mapped to the second data segment 10111001 is [1 -1 0 -1 0 1], the basic code group mapped to the second data segment 10111010 is [-1 1 0 0 -1 1], the basic code group mapped to the second data segment 10111011 is [0 -1 0 -1 1 1], the basic code group mapped to the second data segment 10111101 is [0 0 -1 1 1 -1], the basic code group mapped to the second data segment 10111110 is [-1 1 -1 1 0 0], and the basic code group mapped to the second data segment 10111111 is [1 1 -1 0 1]. The basic code group mapped to the second data segment 11000000 is [-1 0 1 0 0 0], the basic code group mapped to the second data segment 11000001 is [1 0 1 0 -1 -1], the basic code group mapped to the second data segment 11000010 is [1 0 0 0 0 -1], the basic code group mapped to the second data segment 11000011 is [1 0 1 1 -1 1], the basic code group mapped to the second data segment 11000100 is [0 0 1 -1 1 1], the basic code group mapped to the second data segment 11000101 is [-1 1 -1 0 1 0], the basic code group mapped to the second data segment 11000110 is [1 -1 0 0 1 -1], and the basic code group mapped to the second data segment 11000111 is [-1 1 0 1 -1]. The basic code group mapped to the second data segment 11001000 is [0 1 0 1 -1 1], the basic code group mapped to the second data segment 11001001 is [0 1 0 -1 1 -1], the basic code group mapped to the second data segment 11001010 is [-1 1 -1 1 1 1], the basic code group mapped to the second data segment 11001011 is [-1 1 0 1 0 -1], the basic code group mapped to the second data segment 11001100 is [-1 1 1 -1 0 0], the basic code group mapped to the second data segment 11001101 is [-1 -1 1 1 1 1 1], the basic code group mapped to the second data segment 11001110 is [0 0 1 0 0 -1], and the basic code group mapped to the second data segment 11001111 is [0 0 0 1 1]. The basic code group mapped to the second data segment 11010000 is [1 0 1 1 -1 0], the basic code group mapped to the second data segment 11010001 is [-1 0 -1 1 1 0], and the basic code group mapped to the second data segment 11010010 is [0 1 -1 0 1 1].The basic code group mapped to the second data segment 11010011 is [0 0 0 -1 1 0], the basic code group mapped to the second data segment 11010100 is [0 1 0 -1 0 0], the basic code group mapped to the second data segment 11010101 is [0 0 0 1 -1 0], the basic code group mapped to the second data segment 11010110 is [1 -1 -1 0 1 0], the basic code group mapped to the second data segment 11010111 is [1 1 0 0 -1 1], the basic code group mapped to the second data segment 11011000 is [0 -1 0 1 1 1], the basic code group mapped to the second data segment 11011001 is [-1 -1 1 1 0 0], and the basic code group mapped to the second data segment 11011010 is [-1 1 1 -1 1]. [1] The basic code group mapped to the second data segment 11011011 is [0 -1 0 1 0 0], the basic code group mapped to the second data segment 11011100 is [0 0 1 0 -1 0], the basic code group mapped to the second data segment 11011101 is [-1 0 1 -1 1 0], the basic code group mapped to the second data segment 11011110 is [-1 0 0 1 1 -1], the basic code group mapped to the second data segment 11011111 is [-1 -1 1 0 1 0], the basic code group mapped to the second data segment 11100000 is [1 1 -1 -1 1 -1], the basic code group mapped to the second data segment 11100001 is [-1 0 0 0 0 1], and the basic code group mapped to the second data segment 11100010 is [1 1 0 1 -1]. The basic code group mapped to the second data segment 11100011 is [1 1 1 -1 1 1], the basic code group mapped to the second data segment 11100100 is [-1 0 1 1 0 -1], the basic code group mapped to the second data segment 11100101 is [1 0 0 1 -1 -1], the basic code group mapped to the second data segment 11100110 is [0 0 0 1 0 -1], the basic code group mapped to the second data segment 11100111 is [-1 -1 0 1 1 0], the basic code group mapped to the second data segment 11101000 is [0 0 0 1 0 1], the basic code group mapped to the second data segment 11101001 is [-1 0 1 0 -1 1], and the basic code group mapped to the second data segment 11101010 is [-1 0 1 1 -1]. The basic code group mapped to the second data segment 11101011 is [1 0 0 0 -1 0], the basic code group mapped to the second data segment 11101100 is [0 1 0 1 1 1], and the basic code group mapped to the second data segment 11101101 is [-1 -1 1 1 1 -1].The basic code group mapped to the second data segment 11101110 is [0 1 0 -1 1 1], the basic code group mapped to the second data segment 11101111 is [-1 0 0 1 1 1], the basic code group mapped to the second data segment 11110000 is [1 -1 0 1 0 -1], the basic code group mapped to the second data segment 11110001 is [1 0 -1 0 1 -1], the basic code group mapped to the second data segment 11110010 is [-1 -1 0 1 0 1], the basic code group mapped to the second data segment 11110011 is [1 -1 0 1 -1 0], the basic code group mapped to the second data segment 11110100 is [0 1 -1 1 -1 0], and the basic code group mapped to the second data segment 11110101 is [1 1 -1 1 0]. The basic code group mapped to the second data segment 11110110 is [0 1 1 0 1 1], the basic code group mapped to the second data segment 11110111 is [0 1 1 1 -1 0], the basic code group mapped to the second data segment 11111000 is [1 -1 0 0 -1 1], the basic code group mapped to the second data segment 11111001 is [0 1 -1 1 0 -1], the basic code group mapped to the second data segment 11111010 is [0 -1 1 0 -1 1], the basic code group mapped to the second data segment 11111011 is [0 0 1 -1 1 -1], the basic code group mapped to the second data segment 11111100 is [-1 -1 -1 1 1 1], and the basic code group mapped to the second data segment 11111101 is [0 1 -1 0 -1]. [1] The basic code group mapped to the second data segment 11111110 is [1 -1 1 0 1 0], and the basic code group mapped to the second data segment 11111111 is [-1 1 -1 0 0 1].

[0201] Taking the second scenario with 256 basic code groups as an example, when the value range of multiple second data segments is 00 to ff, the mapping relationship between the basic code groups and the second data segments is as follows: the basic code group mapped to second data segment 00000000 is [1 0 1 -1 0 1], the basic code group mapped to second data segment 00000001 is [0 0 1 1 -1 -1], the basic code group mapped to second data segment 00000010 is [0 1 -1 0 0 0], the basic code group mapped to second data segment 00000011 is [-1 0 -1 0 1 1], the basic code group mapped to second data segment 00000100 is [0 1 -1 -1 1 0], the basic code group mapped to second data segment 00000101 is [1 0 0 0 1 0], and the basic code group mapped to second data segment 00000110 is [0 1 1]. The basic code group mapped to the second data segment 00000111 is [1 1 1 -1 -1 1], the basic code group mapped to the second data segment 00001000 is [0 1 1 -1 0 -1], the basic code group mapped to the second data segment 00001001 is [-1 1 -1 -1 1 1], the basic code group mapped to the second data segment 00001010 is [-1 0 1 1 0 1], the basic code group mapped to the second data segment 00001011 is [0 0 1 0 1 0], the basic code group mapped to the second data segment 00001100 is [0 -1 0 1 -1 1], the basic code group mapped to the second data segment 00001101 is [-1 1 0 -1 1 0], and the basic code group mapped to the second data segment 00001110 is [1 1 0 1]. The basic code group mapped to the second data segment 00001111 is [1 -1 1 0 0 -1], the basic code group mapped to the second data segment 00010000 is [1 0 1 -1 -1 0], the basic code group mapped to the second data segment 00010001 is [1 0 0 -1 0 0], the basic code group mapped to the second data segment 00010010 is [1 1 1 1 -1 1], the basic code group mapped to the second data segment 00010011 is [-1 1 1 1 -1 1], the basic code group mapped to the second data segment 00010100 is [1 0 1 0 0 0], the basic code group mapped to the second data segment 00010101 is [1 0 -1 0 0 0], and the basic code group mapped to the second data segment 00010110 is [0 1 -1 1 0]. [1], the basic code group mapped to the second data segment 00010111 is [0 0 1 0 0 1], and the basic code group mapped to the second data segment 00011000 is [0 1 0 1 1 -1].The basic code group mapped to the second data segment 00011001 is [1 -1 -1 0 0 1], the basic code group mapped to the second data segment 00011010 is [-1 1 -1 1 1 -1], the basic code group mapped to the second data segment 00011011 is [0 0 1 1 1 1], the basic code group mapped to the second data segment 00011100 is [0 0 0 0 1 -1], the basic code group mapped to the second data segment 00011101 is [1 0 1 1 1 0], the basic code group mapped to the second data segment 00011110 is [0 -1 1 -1 1 0], the basic code group mapped to the second data segment 00011111 is [0 1 -1 0 1 -1], and the basic code group mapped to the second data segment 00100000 is [0 0 -1 1 0]. The basic code group mapped to the second data segment 00100001 is [1 1 1 -1 1 -1], the basic code group mapped to the second data segment 00100010 is [-1 1 1 1 1 1 1], the basic code group mapped to the second data segment 00100011 is [1 1 -1 -1 -1 1], the basic code group mapped to the second data segment 00100100 is [1 -1 1 1 0 0], the basic code group mapped to the second data segment 00100101 is [0 1 0 0 0 -1], the basic code group mapped to the second data segment 00100110 is [1 0 0 0 0 1], the basic code group mapped to the second data segment 00100111 is [1 1 1 -1 -1 -1], and the basic code group mapped to the second data segment 00101000 is [1 -1 0 0 1]. [1] The basic code group mapped to the second data segment 00101001 is [-1 1 1 -1 1 -1], the basic code group mapped to the second data segment 00101010 is [1 -1 0 1 0 1], the basic code group mapped to the second data segment 00101011 is [0 0 1 1 -1 1], the basic code group mapped to the second data segment 00101100 is [0 -1 -1 1 0 1], the basic code group mapped to the second data segment 00101101 is [0 0 0 0 -1 1], the basic code group mapped to the second data segment 00101110 is [1 1 0 0 1 1], the basic code group mapped to the second data segment 00101111 is [1 1 0 1 1 -1], and the basic code group mapped to the second data segment 00110000 is [-1 1 0 0 1]. The basic code group mapped to the second data segment 00110001 is [0 -1 1 1 0 -1], the basic code group mapped to the second data segment 00110010 is [1 1 0 0 -1 -1], and the basic code group mapped to the second data segment 00110011 is [0 -1 1 1 -1 0].The basic code group mapped to the second data segment 00110100 is [0 -1 1 0 1 -1], the basic code group mapped to the second data segment 00110101 is [1 1 1 0 -1 0], the basic code group mapped to the second data segment 00110110 is [1 -1 -1 -1 1 1], the basic code group mapped to the second data segment 00110111 is [1 1 0 0 0 0], the basic code group mapped to the second data segment 00111000 is [0 0 0 0 1 1], the basic code group mapped to the second data segment 00111001 is [0 1 -1 1 1 0], the basic code group mapped to the second data segment 00111010 is [1 -1 1 1 -1 1], and the basic code group mapped to the second data segment 00111011 is [-1 0 0 -1 1]. [1] The basic code group mapped to the second data segment 00111100 is [1 -1 1 0 0 1], the basic code group mapped to the second data segment 00111101 is [1 0 1 -1 0 -1], the basic code group mapped to the second data segment 00111110 is [-1 1 -1 1 -1 1], the basic code group mapped to the second data segment 00111111 is [0 0 1 -1 0 0], the basic code group mapped to the second data segment 01000000 is [0 1 1 0 1 -1], the basic code group mapped to the second data segment 01000001 is [0 1 1 -1 -1 0], the basic code group mapped to the second data segment 01000010 is [0 0 -1 1 -1 1], and the basic code group mapped to the second data segment 01000011 is [1 0 -1 1 0]. [1] The basic code group mapped to the second data segment 01000100 is [1 1 0 -1 1 0], the basic code group mapped to the second data segment 01000101 is [-1 0 1 0 1 1], the basic code group mapped to the second data segment 01000110 is [1 -1 1 1 -1 -1], the basic code group mapped to the second data segment 01000111 is [-1 1 0 1 1 0], the basic code group mapped to the second data segment 01001000 is [1 -1 1 -1 1 -1], the basic code group mapped to the second data segment 01001001 is [-1 1 0 0 0 0], the basic code group mapped to the second data segment 01001010 is [-1 -1 1 0 0 1], and the basic code group mapped to the second data segment 01001011 is [-1 1 1 0 0]. [1], the basic code group mapped to the second data segment 01001100 is [1 -1 1 -1 1 1], the basic code group mapped to the second data segment 01001101 is [1 1 1 0 0 1], and the basic code group mapped to the second data segment 01001110 is [0 0 -1 1 1 1],The basic code group mapped to the second data segment 01001111 is [1 1 -1 1 1 1], the basic code group mapped to the second data segment 01010000 is [0 1 0 0 0 1], the basic code group mapped to the second data segment 01010001 is [1 1 1 -1 0 0], the basic code group mapped to the second data segment 01010010 is [-1 1 1 1 1 -1], the basic code group mapped to the second data segment 01010011 is [-1 -1 0 0 1 1], the basic code group mapped to the second data segment 01010100 is [0 1 1 1 0 1], the basic code group mapped to the second data segment 01010101 is [1 0 -1 0 -1 1], and the basic code group mapped to the second data segment 01010110 is [1 0 0 1 1]. [1] The basic code group mapped to the second data segment 01010111 is [1 -1 -1 1 -1 1], the basic code group mapped to the second data segment 01011000 is [1 -1 1 1 1 -1], the basic code group mapped to the second data segment 01011001 is [1 1 -1 0 -1 0], the basic code group mapped to the second data segment 01011010 is [1 1 0 0 1 -1], the basic code group mapped to the second data segment 01011011 is [0 1 -1 -1 0 1], the basic code group mapped to the second data segment 01011100 is [1 0 1 0 -1 1], the basic code group mapped to the second data segment 01011101 is [0 1 0 1 -1], and the basic code group mapped to the second data segment 01011110 is [0 1 0 1 -1]. -1], the basic code group mapped to the second data segment 01011111 is [-1 1 0 -1 0 1], the basic code group mapped to the second data segment 01100000 is [1 1 1 1 1 1], the basic code group mapped to the second data segment 01100001 is [0 -1 1 1 1 0], the basic code group mapped to the second data segment 01100010 is [0 1 0 0 -1 0], the basic code group mapped to the second data segment 01100100 is [1 1 0 -1 0 -1], the basic code group mapped to the second data segment 01100101 is [1 0 0 1 -1 1], the basic code group mapped to the second data segment 01100110 is [-1 -1 1 1 -1], the basic code group mapped to the second data segment 01100110 is [-1 -1 1 1 -1] [1] The basic code group mapped to the second data segment 01100111 is [0 1 1 -1 1 0], the basic code group mapped to the second data segment 01101000 is [-1 0 1 1 1 0], and the basic code group mapped to the second data segment 01101001 is [1 0 0 1 0 0].The basic code group mapped to the second data segment 01101010 is [1 1 0 1 0 1], the basic code group mapped to the second data segment 01101011 is [0 0 0 -1 0 1], the basic code group mapped to the second data segment 01101100 is [-1 1 1 -1 -1 1], the basic code group mapped to the second data segment 01101101 is [1 0 1 0 1 1], the basic code group mapped to the second data segment 01101110 is [0 0 1 -1 -1 1], the basic code group mapped to the second data segment 01101111 is [0 0 -1 -1 1 1], the basic code group mapped to the second data segment 01110000 is [1 0 -1 0 1 1], and the basic code group mapped to the second data segment 01110001 is [0 -1 1 0 0]. The basic code group mapped to the second data segment 01110010 is [-1 1 0 1 0 1], the basic code group mapped to the second data segment 01110011 is [0 1 0 0 1 0], the basic code group mapped to the second data segment 01110100 is [1 1 1 0 0 -1], the basic code group mapped to the second data segment 01110101 is [1 0 1 0 1 -1], the basic code group mapped to the second data segment 01110110 is [1 -1 -1 1 1 -1], the basic code group mapped to the second data segment 01110111 is [1 0 -1 -1 0 1], the basic code group mapped to the second data segment 01111000 is [1 -1 -1 1 0 0], and the basic code group mapped to the second data segment 01111001 is [1 1 0 -1 -1]. The basic code group mapped to the second data segment 01111010 is [1 0 0 1 1 -1], the basic code group mapped to the second data segment 01111011 is [0 0 -1 0 0 1], the basic code group mapped to the second data segment 01111100 is [0 -1 0 0 1 0], the basic code group mapped to the second data segment 01111101 is [-1 1 1 0 0 -1], the basic code group mapped to the second data segment 01111110 is [-1 0 0 1 0 0], the basic code group mapped to the second data segment 01111111 is [0 -1 1 -1 0 1], the basic code group mapped to the second data segment 10000000 is [0 -1 1 1 0 1], and the basic code group mapped to the second data segment 10000001 is [1 1 1 1 1]. The basic code group mapped to the second data segment 10000010 is [1 1 -1 0 0 -1], the basic code group mapped to the second data segment 10000011 is [-1 1 1 1 -1 -1], and the basic code group mapped to the second data segment 10000100 is [0 -1 1 0 1 1].The basic code group mapped to the second data segment 10000101 is [1 -1 0 -1 1 0], the basic code group mapped to the second data segment 10000110 is [0 1 1 0 0 0], the basic code group mapped to the second data segment 10000111 is [0 1 1 0 -1 -1], the basic code group mapped to the second data segment 10001000 is [1 0 1 -1 1 0], the basic code group mapped to the second data segment 10001001 is [1 1 0 1 1 0], the basic code group mapped to the second data segment 10001010 is [1 -1 0 1 1 0], the basic code group mapped to the second data segment 10001011 is [1 0 0 -1 1 -1], and the basic code group mapped to the second data segment 10001100 is [1 0 -1 -1 1]. The basic code group mapped to the second data segment 10001101 is [1 1 1 1 0 0], the basic code group mapped to the second data segment 10001110 is [1 1 -1 0 0 1], the basic code group mapped to the second data segment 10001111 is [1 0 0 -1 1 1], the basic code group mapped to the second data segment 10010000 is [1 0 1 1 0 1], the basic code group mapped to the second data segment 10010001 is [1 1 1 0 1 0], the basic code group mapped to the second data segment 10010010 is [1 1 0 -1 0 1], the basic code group mapped to the second data segment 10010011 is [1 1 1 1 -1 -1], and the basic code group mapped to the second data segment 10010100 is [1 1 -1 1 -1]. [1] The basic code group mapped to the second data segment 10010101 is [1 0 0 -1 -1 1], the basic code group mapped to the second data segment 10010110 is [1 1 -1 1 -1 -1], the basic code group mapped to the second data segment 10010111 is [-1 -1 1 -1 1 1], the basic code group mapped to the second data segment 10011000 is [1 -1 1 -1 -1 1], the basic code group mapped to the second data segment 10011001 is [0 1 0 1 0 0], the basic code group mapped to the second data segment 10011010 is [1 1 0 1 0 -1], the basic code group mapped to the second data segment 10011011 is [1 1 -1 -1 0 0], and the basic code group mapped to the second data segment 10011100 is [-1 1 1 0 1]. The basic code group mapped to the second data segment 10011101 is [1 0 1 1 0 -1], the basic code group mapped to the second data segment 10011110 is [0 0 1 1 0 0], and the basic code group mapped to the second data segment 10011111 is [1 1 -1 1 1 -1],The basic code group mapped to the second data segment 10100000 is [0 1 1 0 -1 1], the basic code group mapped to the second data segment 10100001 is [1 0 -1 1 0 -1], the basic code group mapped to the second data segment 10100010 is [1 -1 0 0 0 0], the basic code group mapped to the second data segment 10100011 is [-1 0 -1 1 0 1], the basic code group mapped to the second data se...

Claims

A method of data encoding, characterized by The method comprises: acquiring a first data segment in a data stream to be processed; acquiring a plurality of basic code groups, the plurality of basic code groups being composed of a first code group set and a second code group set, a minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups being greater than a minimum Euclidean distance, a minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups being equal to the minimum Euclidean distance, the minimum Euclidean distance indicating a minimum distance between different level values generated by pulse amplitude modulation (PAM), a number of basic code groups in the first code group set being greater than a number of basic code groups in the second code group set; encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment. The method of claim 1, wherein The encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment comprises: determining the first code group corresponding to the first data segment in the plurality of basic code groups according to a mapping relationship between the first code group and the first data segment; encoding the first data segment based on the first code group to obtain the first encoded segment. The method according to claim 2, characterized in that The encoding the first data segment based on the first code group to obtain the first encoded segment comprises: determining the first encoded segment based on unevenness of the first code group. The method according to any one of claims 1 to 3, characterized in that The number of basic code groups in the second code group set is 0. The method according to any one of claims 1 to 4, characterized in that The acquiring the plurality of basic code groups comprises: acquiring a plurality of candidate code groups; selecting the plurality of basic code groups from the plurality of candidate code groups according to code group distances between the candidate code groups. The method according to claim 5, characterized in that The selecting the plurality of basic code groups from the plurality of candidate code groups according to code group distances between the candidate code groups comprises: dividing the plurality of candidate code groups into a plurality of code group subsets according to code group distances between the candidate code groups, different code group subsets including different candidate code groups, and a code group distance between any two candidate code groups in any code group subset being greater than the minimum Euclidean distance; selecting the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets. The method according to claim 6, characterized in that For any code group subset, the candidate code groups included in the any code group subset satisfy a symbol distribution condition, the symbol distribution condition being determined based on referenced candidate code groups, and a code group distance between any two referenced candidate code groups being greater than the minimum Euclidean distance. The method according to claim 6 or 7, characterized in that The selecting the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets comprises: determining a first number of candidate code groups in each code group subset that satisfy a selection condition of unevenness, the selection condition including that a variation of the unevenness is not less than a first value or the variation is not greater than the first value; selecting the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets according to the first number of each code group subset. The method of claim 8, wherein The selecting the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets according to the first number of each code group subset comprises: determining a first subset with a maximum first number from the plurality of code group subsets; The first subset includes each candidate code group satisfying the selection condition, and each candidate code group is determined as a basic code group, or, in the candidate code groups satisfying the selection condition included in the first subset, a basic code group is selected according to the level value of each candidate code group. The method of claim 8, wherein The selecting the multiple basic code groups from the candidate code groups included in the multiple code group subsets according to the first number of the multiple code group subsets, comprises: determining a first subset with the largest number from the multiple code group subsets; The first subset includes each candidate code group satisfying the selection condition, and each candidate code group is determined as a basic code group, or, in the candidate code groups satisfying the selection condition included in the first subset, a basic code group is selected according to the level value of each candidate code group. In the candidate code groups satisfying the selection condition included in the second subset, a basic code group is selected according to the level value of each candidate code group, and the second subset and the first subset are different code group subsets. The method according to claim 9 or 10, characterized in that The basic code groups selected according to the level value of each candidate code group satisfy at least one of the following conditions: The continuous number of the same level value is less than a first threshold value; Or, the number of intermediate state values in the level value is less than a second threshold value; Or, the number of jumps of the level value is more than a third threshold value. The method according to any one of claims 1 to 11, characterized in that In the case that the PAM includes PAM3 modulation, the minimum Euclidean distance is 1. The method according to any one of claims 1 to 11, characterized in that In the case that the PAM includes PAM4 modulation, the minimum Euclidean distance is 2. A method of data decoding, characterized in that The method comprises: obtaining a signal segment in a signal stream to be decoded; obtaining multiple reference code groups corresponding to the signal stream, the reference code groups being obtained based on multiple basic code groups, the multiple basic code groups being used to encode a data stream corresponding to the signal stream, the multiple basic code groups being composed of a first code group set and a second code group set, the minimum code group distance between any basic code group in the first code group set and other code groups in the multiple basic code groups being greater than a minimum Euclidean distance, the minimum code group distance between any basic code group in the second code group set and other code groups in the multiple basic code groups being equal to the minimum Euclidean distance, the minimum Euclidean distance indicating the minimum distance between different level values generated by pulse amplitude modulation (PAM), the number of basic code groups in the first code group set being greater than the number of basic code groups in the second code group set; determining a reference code group with the minimum code group distance from the signal segment from the multiple reference code groups, and decoding a first data segment corresponding to the signal segment according to the determined reference code group. The method of claim 14, wherein The method comprises: obtaining multiple PAM signals included in the signal stream; dividing the multiple PAM signals into multiple signal segments according to the combination boundary information of the multiple PAM signals, any signal segment including multiple PAM signals. The method of claim 15, wherein The method comprises: obtaining multiple received signals; performing PAM equalization on any received signal based on a stable convergent equalizer to obtain a PAM signal corresponding to the any received signal. The method of claim 16, wherein The equalizer realizes stable convergence based on error updating of coefficients of the equalizer, and in the case of PAM equalization being PAM3 equalization, coefficients updated based on error are calculated by PAM3 decision on an output signal of the equalizer, the output signal being a signal processed by the equalizer before the any received signal, and the PAM signal being a PAM3 signal. The method of claim 16, wherein The equalizer realizes stable convergence based on error updating of coefficients of the equalizer, and in the case of PAM equalization being PAM4 equalization, coefficients updated based on error are calculated by PAM4 decision on an output signal of the equalizer, the output signal being a signal processed by the equalizer before the any received signal, and the PAM signal being a PAM4 signal. The method according to any one of claims 14-18, characterized in that The plurality of reference code groups comprise the plurality of basic code groups and a plurality of complementary code groups, and the plurality of complementary code groups are obtained by inverting each symbol in the plurality of basic code groups. A method of data encoding, characterized in that, The method comprises: obtaining a first data segment in a data stream to be processed; A plurality of base code groups are obtained, including [1 0 1 -1 0 1], [0 0 1 1 -1 -1], [0 1 -1 0 0 0], [-1 0 -1 0 1 1], [0 1 -1 -1 1 0], [1 0 0 0 1 0], [0 1 1 -1 0 1], [1 1 1 -1 -1 1], [0 1 1 -1 0 -1], [-1 1 -1 -1 1 1], [-1 0 1 1 0 1], [0 0 1 0 1 0], [0 -1 0 1 -1 1], [-1 1 0 -1 1 0], [1 1 0 1 -1 1], [1 -1 1 0 0 -1], [1 0 1 -1 -1 0], [1 0 0 -1 0 0], [1 1 1 1 -1 1], [-1 1 1 1 -1 1], [1 0 1 0 0 0], [1 0 -1 0 0 0], [0 1 -1 1 0 1], [0 0 1 0 0 1], [0 1 0 1 1 -1], [1 -1 -1 0 0 1], [-1 1 -1 1 1 -1], [0 0 1 1 1 1], [0 0 0 0 1 -1], [1 0 1 1 1 0], [0 -1 1 -1 1 0], [0 1 -1 0 1 -1], [0 0 -1 1 0 0], [1 1 1 -1 1 -1], [-1 1 1 1 1 1], [1 1 -1 -1 -1 1], [1 -1 1 1 0 0], [0 1 0 0 0 -1], [1 0 0 0 0 1], [1 1 1 -1 -1 -1], [1 -1 0 0 1 1], [-1 1 1 -1 1 -1], [1 -1 0 1 0 1], [0 0 1 1 -1 1], [0 -1 -1 1 0 1], [0 0 0 0 -1 1], [1 1 0 0 1 1], [1 1 0 1 1 -1], [-1 1 0 0 1 -1], [0 -1 1 1 0 -1], [1 1 0 0 -1 -1], [0 -1 1 1 -1 0], [0 -1 1 0 1 -1], [1 1 1 0 -1 0], [1 -1 -1 -1 1 1], [1 1 0 0 0 0], [0 0 0 0 1 1], [0 1 -1 1 1 0], [1 -1 1 1 -1 1], [-1 0 0 -1 1 1], [1 -1 1 0 0 1], [1 0 1 -1 0 -1], [-1 1 -1 1 -1 1], [0 0 1 -10 0]、[0 1 1 0 1 -1]、[0 1 1 -1 -1 0]、[0 0 -1 1 -1 1]、[1 0 -1 1 0 1]、[1 1 0 -1 1 0]、[-1 0 1 0 1 1]、[1 -1 1 1 -1 -1]、[-1 1 0 1 1 0]、[1 -1 1 -1 1 -1]、[-1 1 0 0 0 0]、[-1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 -1 1 -1 1 1]、[1 1 1 0 0 1]、[0 0 -1 1 1 1]、[1 1 -1 1 1 1]、[0 1 0 0 0 1]、[1 1 1 -1 0 0]、[-1 1 1 1 1 -1]、[-1 -1 0 0 1 1]、[0 1 1 1 0 1]、[1 0 -1 0 -1 1]、[1 0 0 1 1 1]、[1 -1 -1 1 -1 1]、[1 -1 1 1 1 -1]、[1 1 -1 0 -1 0]、[1 1 0 0 1 -1]、[0 1 -1 -1 0 1]、[1 0 1 0 -1 1]、[0 1 0 -1 -1 1]、[0 1 0 1 -1 -1]、[-1 1 0 -1 0 1]、[1 1 1 1 1 1]、[0 -1 1 1 1 0]、[0 1 0 0 -1 0]、[1 -1 1 -1 0 0]、[1 1 0 -1 0 -1]、[1 0 0 1 -1 1]、[-1 -1 1 1 -1 1]、[0 1 1 -1 1 0]、[-1 0 1 1 1 0]、[1 0 0 1 0 0]、[1 1 0 1 0 1]、[0 0 0 -1 0 1]、[-1 1 1 -1 -1 1]、[1 0 1 0 1 1]、[0 0 1 -1 -1 1]、[0 0 -1 -1 1 1]、[1 0 -1 0 1 1]、[0 -1 1 0 0 0]、[-1 1 0 1 0 1]、[0 1 0 0 1 0]、[1 1 1 0 0 -1]、[1 0 1 0 1 -1]、[1 -1 -1 1 1 -1]、[1 0 -1 -1 0 1]、[1 -1 -1 1 0 0]、[1 1 0 -1 -1 0]、[1 0 0 1 1 -1]、[0 0 -1 0 0 1]、[0 -1 0 0 1 0]、[-1 1 1 0 0 -1]、[-1 0 0 1 0 0]、[0 -1 1 -1 0 1]、[0 -1 1 10 1]、[1 1 1 1 1 -1]、[1 1 -1 0 0 -1]、[-1 1 1 1 -1 -1]、[0 -1 1 0 1 1]、[1 -1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 -1 -1]、[1 0 1 -1 1 0]、[1 1 0 1 1 0]、[1 -1 0 1 1 0]、[1 0 0 -1 1 -1]、[1 0 -1 -1 1 0]、[1 1 1 1 0 0]、[1 1 -1 0 0 1]、[1 0 0 -1 1 1]、[1 0 1 1 0 1]、[1 1 1 0 1 0]、[1 1 0 -1 0 1]、[1 1 1 1 -1 -1]、[1 1 -1 1 -1 1]、[1 0 0 -1 -1 1]、[1 1 -1 1 -1 -1]、[-1 -1 1 -1 1 1]、[1 -1 1 -1 -1 1]、[0 1 0 1 0 0]、[1 1 0 1 0 -1]、[1 1 -1 -1 0 0]、[-1 1 1 0 1 0]、[1 0 1 1 0 -1]、[0 0 1 1 0 0]、[1 1 -1 1 1 -1]、[0 1 1 0 -1 1]、[1 0 -1 1 0 -1]、[1 -1 0 0 0 0]、[-1 0 -1 1 0 1]、[0 1 1 1 0 -1]、[1 0 -1 1 -1 0]、[-1 0 1 0 1 -1]、[0 -1 0 0 0 1]、[1 1 -1 -1 1 1]、[0 1 1 1 1 0]、[1 -1 -1 1 1 1]、[1 -1 1 0 -1 0]、[1 -1 1 1 1 1]、[-1 1 1 0 -1 0]、[0 0 1 1 1 -1]、[1 0 -1 1 1 0]、[-1 1 1 1 0 0]、[-1 0 1 -1 0 1]、[0 -1 -1 0 1 1]、[0 0 -1 0 1 0]、[-1 1 0 0 1 1]、[-1 0 0 0 1 0]、[0 -1 -1 1 1 0]、[-1 0 0 1 -1 1]、[1 0 1 -1 1 1]、[1 -1 0 -1 0 1]、[-1 1 0 0 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 -1 1 1]、[0 0 -1 1 1 -1]、[-1 1 -1 1 0 0]、[1 1 -1 0 1 0]、[-1 0 1 0 0 0]、[1 0 1[0 0 0 0 0 1], [0 0 0 0 1 0], [0 0 0 1 0 0], [0 0 0 1 0 1], [0 0 0 1 1 0], [0 0 1 0 0 0], [0 0 1 0 0 1], [0 0 1 0 1 0], [0 0 1 0 1 1], [0 0 1 1 0 0], [0 0 1 1 0 1], [0 0 1 1 1 0], [0 1 0 0 0 0], [0 1 0 0 0 1], [0 1 0 0 1 0], [0 1 0 0 1 1], [0 1 0 1 0 0], [0 1 0 1 0 1], [0 1 0 1 1 0], [0 1 0 1 1 1], [0 1 1 0 0 0], [0 1 1 0 0 1], [0 1 1 0 1 0], [0 1 1 0 1 1], [0 1 1 1 0 0], [0 1 1 1 0 1], [0 1 1 1 1 0], [0 1 1 1 1 1], [1 0 0 0 0 0], [1 0 0 0 0 1], [1 0 0 0 1 0], [1 0 0 0 1 1], [1 0 0 1 0 0], [1 0 0 1 0 1], [1 0 0 1 1 0], [1 0 0 1 1 1], [1 0 1 0 0 0], [1 0 1 0 0 1], [1 0 1 0 1 0], [1 0 1 0 1 1], [1 0 1 1 0 0], [1 0 1 1 0 1], [1 0 1 1 1 0], [1 0 1 1 1 1], [1 1 0 0 0 0], [1 1 0 0 0 1], [1 1 0 0 1 0], [1 1 0 0 1 1], [1 1 0 1 0 0], [1 1 0 1 0 1], [1 1 0 1 1 0], [1 1 0 1 1 1], [1 1 1 0 0 0], [1 1 1 0 0 1], [1 1 1 0 1 0], [1 1 1 0 1 1], [1 1 1 1 0 0], [1 1 1 1 0 1], [1 1 1 1 1 0], [1 1 1 1 1 1] encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment. The method of claim 20, wherein The plurality of basic code groups are in one-to-one mapping with a plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments comprise the first data segment. The method of claim 21, wherein The mapping relationship is a relationship obtained by random mapping. The method according to claim 21 or 22, characterized in that The mapping relationship of the second data segment and the basic code group includes: the basic code group mapped by the second data segment 00000000 is [1 0 1 -1 0 1], the basic code group mapped by the second data segment 00000001 is [0 0 1 1 -1 -1], the basic code group mapped by the second data segment 00000010 is [0 1 -1 0 0 0], the basic code group mapped by the second data segment 00000011 is [-1 0 -1 0 1 1], the basic code group mapped by the second data segment 00000100 is [0 1 -1 -1 1 0], the basic code group mapped by the second data segment 00000101 is [1 0 0 0 1 0], the basic code group mapped by the second data segment 00000110 is [0 1 1 -1 0 1], the basic code group mapped by the second data segment 00000111 is [1 1 1 -1 -1 1], the basic code group mapped by the second data segment 00001000 is [0 1 1 -1 0 -1], the basic code group mapped by the second data segment 00001001 is [-1 1 -1 -1 1 1], the basic code group mapped by the second data segment 00001010 is [-1 0 1 1 0 1], the basic code group mapped by the second data segment 00001011 is [0 0 1 0 1 0], the basic code group mapped by the second data segment 00001100 is [0 -1 0 1 -1 1], the basic code group mapped by the second data segment 00001101 is [-1 1 0 -1 1 0], the basic code group mapped by the second data segment 00001110 is [1 1 0 1 -1 1], the basic code group mapped by the second data segment 00001111 is [1 -1 1 0 0 -1], the basic code group mapped by the second data segment 00010000 is [1 0 1 -1 -1 0], the basic code group mapped by the second data segment 00010001 is [1 0 0 -1 0 0], the basic code group mapped by the second data segment 00010010 is [1 1 1 1 -1 1], the basic code group mapped by the second data segment 00010011 is [-1 1 1 1 -1 1], the basic code group mapped by the second data segment 00010100 is [1 0 1 0 0 0], the basic code group mapped by the second data segment 00010101 is [1 0 -1 0 0 0], the basic code group mapped by the second data segment 00010110 is [0 1 -1 1 0 1], the basic code group mapped by the second data segment 00010111 is [0 0 1 0 0 1], the basic code group mapped by the second data segment 00011000 is [0 1 0 1 1 -1], the basic code group mapped by the second data segment 00011001 is [1 -1 -1 0 0 1],The basic code group mapped by the second data segment 00011010 is [-1 1 -1 1 1 -1], the basic code group mapped by the second data segment 00011011 is [0 0 1 1 1 1], the basic code group mapped by the second data segment 00011100 is [0 0 0 0 1 -1], the basic code group mapped by the second data segment 00011101 is [1 0 1 1 1 0], the basic code group mapped by the second data segment 00011110 is [0 -1 1 -1 1 0], the basic code group mapped by the second data segment 00011111 is [0 1 -1 0 1 -1], the basic code group mapped by the second data segment 00100000 is [0 0 -1 1 0 0], the basic code group mapped by the second data segment 00100001 is [1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00100010 is [-1 1 1 1 1 1], the basic code group mapped by the second data segment 00100011 is [1 1 -1 -1 -1 1], the basic code group mapped by the second data segment 00100100 is [1 -1 1 1 0 0], the basic code group mapped by the second data segment 00100101 is [0 1 0 0 0 -1], the basic code group mapped by the second data segment 00100110 is [1 0 0 0 0 1], the basic code group mapped by the second data segment 00100111 is [1 1 1 -1 -1 -1], the basic code group mapped by the second data segment 00101000 is [1 -1 0 0 1 1], the basic code group mapped by the second data segment 00101001 is [-1 1 1 -1 1 -1], the basic code group mapped by the second data segment 00101010 is [1 -1 0 1 0 1], the basic code group mapped by the second data segment 00101011 is [0 0 1 1 -1 1], the basic code group mapped by the second data segment 00101100 is [0 -1 -1 1 0 1], the basic code group mapped by the second data segment 00101101 is [0 0 0 0 -1 1], the basic code group mapped by the second data segment 00101110 is [1 1 0 0 1 1], the basic code group mapped by the second data segment 00101111 is [1 1 0 1 1 -1], the basic code group mapped by the second data segment 00110000 is [-1 1 0 0 1 -1], the basic code group mapped by the second data segment 00110001 is [0 -1 1 1 0 -1], the basic code group mapped by the second data segment 00110010 is [1 1 0 0 -1 -1], the basic code group mapped by the second data segment 00110011 is [0 -1 1 1 -1 0], the basic code group mapped by the second data segment 00110100 is [0 -1 1 0 1 -1],The basic code group mapped by the second data segment 00110101 is [1 1 1 0 -1 0], the basic code group mapped by the second data segment 00110110 is [1 -1 -1 -1 1 1], the basic code group mapped by the second data segment 00110111 is [1 1 0 0 0 0], the basic code group mapped by the second data segment 00111000 is [0 0 0 0 1 1], the basic code group mapped by the second data segment 00111001 is [0 1 -1 1 1 0], the basic code group mapped by the second data segment 00111010 is [1 -1 1 1 -1 1], the basic code group mapped by the second data segment 00111011 is [-1 0 0 -1 1 1], the basic code group mapped by the second data segment 00111100 is [1 -1 1 0 0 1], the basic code group mapped by the second data segment 00111101 is [1 0 1 -1 0 -1], the basic code group mapped by the second data segment 00111110 is [-1 1 -1 1 -1 1], the basic code group mapped by the second data segment 00111111 is [0 0 1 -1 0 0], the basic code group mapped by the second data segment 01000000 is [0 1 1 0 1 -1], the basic code group mapped by the second data segment 01000001 is [0 1 1 -1 -1 0], the basic code group mapped by the second data segment 01000010 is [0 0 -1 1 -1 1], the basic code group mapped by the second data segment 01000011 is [1 0 -1 1 0 1], the basic code group mapped by the second data segment 01000100 is [1 1 0 -1 1 0], the basic code group mapped by the second data segment 01000101 is [-1 0 1 0 1 1], the basic code group mapped by the second data segment 01000110 is [1 -1 1 1 -1 -1], the basic code group mapped by the second data segment 01000111 is [-1 1 0 1 1 0], the basic code group mapped by the second data segment 01001000 is [1 -1 1 -1 1 -1], the basic code group mapped by the second data segment 01001001 is [-1 1 0 0 0 0], the basic code group mapped by the second data segment 01001010 is [-1 -1 1 0 0 1], the basic code group mapped by the second data segment 01001011 is [-1 1 1 0 0 1], the basic code group mapped by the second data segment 01001100 is [1 -1 1 -1 1 1], the basic code group mapped by the second data segment 01001101 is [1 1 1 0 0 1], the basic code group mapped by the second data segment 01001110 is [0 0 -1 1 1 1], the basic code group mapped by the second data segment 01001111 is [1 1 -1 1 1 1],The basic code group mapped by the second data segment 01010000 is [0 1 0 0 1], the basic code group mapped by the second data segment 01010001 is [1 1 1 -1 0 0], the basic code group mapped by the second data segment 01010010 is [-1 1 1 1 1 -1], the basic code group mapped by the second data segment 01010011 is [-1 -1 0 0 1 1], the basic code group mapped by the second data segment 01010100 is [0 1 1 1 0 1], the basic code group mapped by the second data segment 01010101 is [1 0 -1 0 -1 1], the basic code group mapped by the second data segment 01010110 is [1 0 0 1 1 1], the basic code group mapped by the second data segment 01010111 is [1 -1 -1 1 -1 1], the basic code group mapped by the second data segment 01011000 is [1 -1 1 1 1 -1], the basic code group mapped by the second data segment 01011001 is [1 1 -1 0 -1 0], the basic code group mapped by the second data segment 01011010 is [1 1 0 0 1 -1], the basic code group mapped by the second data segment 01011011 is [0 1 -1 -1 0 1], the basic code group mapped by the second data segment 01011100 is [1 0 1 0 -1 1], the basic code group mapped by the second data segment 01011101 is [0 1 0 -1 -1 1], the basic code group mapped by the second data segment 01011110 is [0 1 0 1 -1 -1], the basic code group mapped by the second data segment 01011111 is [-1 1 0 -1 0 1], the basic code group mapped by the second data segment 01100000 is [1 1 1 1 1 1], the basic code group mapped by the second data segment 01100001 is [0 -1 1 1 1 0], the basic code group mapped by the second data segment 01100010 is [0 1 0 0 -1 0], the basic code group mapped by the second data segment 01100011 is [1 -1 1 -1 0 0], the basic code group mapped by the second data segment 01100100 is [1 1 0 -1 0 -1], the basic code group mapped by the second data segment 01100101 is [1 0 0 1 -1 1], the basic code group mapped by the second data segment 01100110 is [-1 -1 1 1 -1 1], the basic code group mapped by the second data segment 01100111 is [0 1 1 -1 1 0], the basic code group mapped by the second data segment 01101000 is [-1 0 1 1 1 0], the basic code group mapped by the second data segment 01101001 is [1 0 0 1 0 0], the basic code group mapped by the second data segment 01101010 is [1 1 0 1 0 1],The basic code group mapped by the second data segment 01101011 is [0 0 0 -1 0 1], the basic code group mapped by the second data segment 01101100 is [-1 1 1 -1 -1 1], the basic code group mapped by the second data segment 01101101 is [1 0 1 0 1 1], the basic code group mapped by the second data segment 01101110 is [0 0 1 -1 -1 1], the basic code group mapped by the second data segment 01101111 is [0 0 -1 -1 1 1], the basic code group mapped by the second data segment 01110000 is [1 0 -1 0 1 1], the basic code group mapped by the second data segment 01110001 is [0 -1 1 0 0 0], the basic code group mapped by the second data segment 01110010 is [-1 1 0 1 0 1], the basic code group mapped by the second data segment 01110011 is [0 1 0 0 1 0], the basic code group mapped by the second data segment 01110100 is [1 1 1 0 0 -1], the basic code group mapped by the second data segment 01110101 is [1 0 1 0 1 -1], the basic code group mapped by the second data segment 01110110 is [1 -1 -1 1 1 -1], the basic code group mapped by the second data segment 01110111 is [1 0 -1 -1 0 1], the basic code group mapped by the second data segment 01111000 is [1 -1 -1 1 0 0], the basic code group mapped by the second data segment 01111001 is [1 1 0 -1 -1 0], the basic code group mapped by the second data segment 01111010 is [1 0 0 1 1 -1], the basic code group mapped by the second data segment 01111011 is [0 0 -1 0 0 1], the basic code group mapped by the second data segment 01111100 is [0 -1 0 0 1 0], the basic code group mapped by the second data segment 01111101 is [-1 1 1 0 0 -1], the basic code group mapped by the second data segment 01111110 is [-1 0 0 1 0 0], the basic code group mapped by the second data segment 01111111 is [0 -1 1 -1 0 1], the basic code group mapped by the second data segment 10000000 is [0 -1 1 1 0 1], the basic code group mapped by the second data segment 10000001 is [1 1 1 1 1 -1], the basic code group mapped by the second data segment 10000010 is [1 1 -1 0 0 -1], the basic code group mapped by the second data segment 10000011 is [-1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10000100 is [0 -1 1 0 1 1], the basic code group mapped by the second data segment 10000101 is [1 -1 0 -1 1 0],The basic code group mapped by the second data segment 10000110 is [0 1 1 0 0 0], the basic code group mapped by the second data segment 10000111 is [0 1 1 0 -1 -1], the basic code group mapped by the second data segment 10001000 is [1 0 1 -1 1 0], the basic code group mapped by the second data segment 10001001 is [1 1 0 1 1 0], the basic code group mapped by the second data segment 10001010 is [1 -1 0 1 1 0], the basic code group mapped by the second data segment 10001011 is [1 0 0 -1 1 -1], the basic code group mapped by the second data segment 10001100 is [1 0 -1 -1 1 0], the basic code group mapped by the second data segment 10001101 is [1 1 1 1 0 0], the basic code group mapped by the second data segment 10001110 is [1 1 -1 0 0 1], the basic code group mapped by the second data segment 10001111 is [1 0 0 -1 1 1], the basic code group mapped by the second data segment 10010000 is [1 0 1 1 0 1], the basic code group mapped by the second data segment 10010001 is [1 1 1 0 1 0], the basic code group mapped by the second data segment 10010010 is [1 1 0 -1 0 1], the basic code group mapped by the second data segment 10010011 is [1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10010100 is [1 1 -1 1 -1 1], the basic code group mapped by the second data segment 10010101 is [1 0 0 -1 -1 1], the basic code group mapped by the second data segment 10010110 is [1 1 -1 1 -1 -1], the basic code group mapped by the second data segment 10010111 is [-1 -1 1 -1 1 1], the basic code group mapped by the second data segment 10011000 is [1 -1 1 -1 -1 1], the basic code group mapped by the second data segment 10011001 is [0 1 0 1 0 0], the basic code group mapped by the second data segment 10011010 is [1 1 0 1 0 -1], the basic code group mapped by the second data segment 10011011 is [1 1 -1 -1 0 0], the basic code group mapped by the second data segment 10011100 is [-1 1 1 0 1 0], the basic code group mapped by the second data segment 10011101 is [1 0 1 1 0 -1], the basic code group mapped by the second data segment 10011110 is [0 0 1 1 0 0], the basic code group mapped by the second data segment 10011111 is [1 1 -1 1 1 -1], the basic code group mapped by the second data segment 10100000 is [0 1 1 0 -1 1],The basic code group mapped by the second data segment 10100001 is [1 0 -1 1 0 -1], the basic code group mapped by the second data segment 10100010 is [1 -1 0 0 0 0], the basic code group mapped by the second data segment 10100011 is [-1 0 -1 1 0 1], the basic code group mapped by the second data segment 10100100 is [0 1 1 1 0 -1], the basic code group mapped by the second data segment 10100101 is [1 0 -1 1 -1 0], the basic code group mapped by the second data segment 10100110 is [-1 0 1 0 1 -1], the basic code group mapped by the second data segment 10100111 is [0 -1 0 0 0 1], the basic code group mapped by the second data segment 10101000 is [1 1 -1 -1 1 1], the basic code group mapped by the second data segment 10101001 is [0 1 1 1 1 0], the basic code group mapped by the second data segment 10101010 is [1 -1 -1 1 1 1], the basic code group mapped by the second data segment 10101011 is [1 -1 1 0 -1 0], the basic code group mapped by the second data segment 10101100 is [1 -1 1 1 1 1], the basic code group mapped by the second data segment 10101101 is [-1 1 1 0 -1 0], the basic code group mapped by the second data segment 10101110 is [0 0 1 1 1 -1], the basic code group mapped by the second data segment 10101111 is [1 0 -1 1 1 0], the basic code group mapped by the second data segment 10110000 is [-1 1 1 1 0 0], the basic code group mapped by the second data segment 10110001 is [-1 0 1 -1 0 1], the basic code group mapped by the second data segment 10110010 is [0 -1 -1 0 1 1], the basic code group mapped by the second data segment 10110011 is [0 0 -1 0 1 0], the basic code group mapped by the second data segment 10110100 is [-1 1 0 0 1 1], the basic code group mapped by the second data segment 10110101 is [-1 0 0 0 1 0], the basic code group mapped by the second data segment 10110110 is [0 -1 -1 1 1 0], the basic code group mapped by the second data segment 10110111 is [-1 0 0 1 -1 1], the basic code group mapped by the second data segment 10111000 is [1 0 1 -1 1 1], the basic code group mapped by the second data segment 10111001 is [1 -1 0 -1 0 1], the basic code group mapped by the second data segment 10111010 is [-1 1 0 0 -1 1], the basic code group mapped by the second data segment 10111011 is [0 -1 0 1 1 -1],The basic code group mapped by the second data segment 10111100 is [0 -1 0 -1 1 1], the basic code group mapped by the second data segment 10111101 is [0 0 -1 1 1 -1], the basic code group mapped by the second data segment 10111110 is [-1 1 -1 1 0 0], the basic code group mapped by the second data segment 10111111 is [1 1 -1 0 1 0], the basic code group mapped by the second data segment 11000000 is [-1 0 1 0 0 0], the basic code group mapped by the second data segment 11000001 is [1 0 1 0 -1 -1], the basic code group mapped by the second data segment 11000010 is [1 0 0 0 0 -1], the basic code group mapped by the second data segment 11000011 is [1 0 1 1 -1 1], the basic code group mapped by the second data segment 11000100 is [0 0 1 -1 1 1], the basic code group mapped by the second data segment 11000101 is [-1 1 -1 0 1 0], the basic code group mapped by the second data segment 11000110 is [1 -1 0 0 1 -1], the basic code group mapped by the second data segment 11000111 is [-1 1 0 1 -1 0], the basic code group mapped by the second data segment 11001000 is [0 1 0 1 -1 1], the basic code group mapped by the second data segment 11001001 is [0 1 0 -1 1 -1], the basic code group mapped by the second data segment 11001010 is [-1 1 -1 1 1 1], the basic code group mapped by the second data segment 11001011 is [-1 1 0 1 0 -1], the basic code group mapped by the second data segment 11001100 is [-1 1 1 -1 0 0], the basic code group mapped by the second data segment 11001101 is [-1 -1 1 1 1 1], the basic code group mapped by the second data segment 11001110 is [0 0 1 0 0 -1], the basic code group mapped by the second data segment 11001111 is [0 0 0 1 1 0], the basic code group mapped by the second data segment 11010000 is [1 0 1 1 -1 0], the basic code group mapped by the second data segment 11010001 is [-1 0 -1 1 1 0], the basic code group mapped by the second data segment 11010010 is [0 1 -1 0 1 1], the basic code group mapped by the second data segment 11010011 is [0 0 0 -1 1 0], the basic code group mapped by the second data segment 11010100 is [0 1 0 -1 0 0], the basic code group mapped by the second data segment 11010101 is [0 0 0 1 -1 0], the basic code group mapped by the second data segment 11010110 is [1 -1 -1 0 1 0],The basic code group mapped by the second data segment 11010111 is [1 1 0 0 -1 1], the basic code group mapped by the second data segment 11011000 is [0 -1 0 1 1 1], the basic code group mapped by the second data segment 11011001 is [-1 -1 1 1 0 0], the basic code group mapped by the second data segment 11011010 is [-1 1 1 -1 1 1], the basic code group mapped by the second data segment 11011011 is [0 -1 0 1 0 0], the basic code group mapped by the second data segment 11011100 is [0 0 1 0 -1 0], the basic code group mapped by the second data segment 11011101 is [-1 0 1 -1 1 0], the basic code group mapped by the second data segment 11011110 is [-1 0 0 1 1 -1], the basic code group mapped by the second data segment 11011111 is [-1 -1 1 0 1 0], the basic code group mapped by the second data segment 11100000 is [1 1 -1 -1 1 -1], the basic code group mapped by the second data segment 11100001 is [-1 0 0 0 0 1], the basic code group mapped by the second data segment 11100010 is [1 1 0 1 -1 0], the basic code group mapped by the second data segment 11100011 is [1 1 1 -1 1 1], the basic code group mapped by the second data segment 11100100 is [-1 0 1 1 0 -1], the basic code group mapped by the second data segment 11100101 is [1 0 0 1 -1 -1], the basic code group mapped by the second data segment 11100110 is [0 0 0 1 0 -1], the basic code group mapped by the second data segment 11100111 is [-1 -1 0 1 1 0], the basic code group mapped by the second data segment 11101000 is [0 0 0 1 0 1], the basic code group mapped by the second data segment 11101001 is [-1 0 1 0 -1 1], the basic code group mapped by the second data segment 11101010 is [-1 0 1 1 -1 0], the basic code group mapped by the second data segment 11101011 is [1 0 0 0 -1 0], the basic code group mapped by the second data segment 11101100 is [0 1 0 1 1 1], the basic code group mapped by the second data segment 11101101 is [-1 -1 1 1 1 -1], the basic code group mapped by the second data segment 11101110 is [0 1 0 -1 1 1], the basic code group mapped by the second data segment 11101111 is [-1 0 0 1 1 1], the basic code group mapped by the second data segment 11110000 is [1 -1 0 1 0 -1], the basic code group mapped by the second data segment 11110001 is [1 0 -1 0 1 -1],The basic code group mapped by the second data segment 11110010 is [-1 -1 0 1 0 1], the basic code group mapped by the second data segment 11110011 is [1 -1 0 1 -1 0], the basic code group mapped by the second data segment 11110100 is [0 1 -1 1 -1 0], the basic code group mapped by the second data segment 11110101 is [1 1 -1 1 0 0], the basic code group mapped by the second data segment 11110110 is [0 1 1 0 1 1], the basic code group mapped by the second data segment 11110111 is [0 1 1 1 -1 0], the basic code group mapped by the second data segment 11111000 is [1 -1 0 0 -1 1], the basic code group mapped by the second data segment 11111001 is [0 1 -1 1 0 -1], the basic code group mapped by the second data segment 11111010 is [0 -1 1 0 -1 1], the basic code group mapped by the second data segment 11111011 is [0 0 1 -1 1 -1], the basic code group mapped by the second data segment 11111100 is [-1 -1 -1 1 1 1], the basic code group mapped by the second data segment 11111101 is [0 1 -1 0 -1 1], the basic code group mapped by the second data segment 11111110 is [1 -1 1 0 1 0], and the basic code group mapped by the second data segment 11111111 is [-1 1 -1 0 0 1]. A method of data encoding, characterized in that, The method comprises: obtaining a first data segment in a data stream to be processed; A plurality of base code groups are obtained, including [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [0 0 0 0 0 0], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 1 0 1 -1 -1], [0 1 1 -1 1 0], [0 0 0 0 1 -1], [1 1 1 -1 -1 1], [0 0 1 -1 -1 1], [-1 0 1 1 0 -1], [0 1 -1 1 0 1], [0 -1 1 -1 1 0], [1 0 0 1 1 1], [0 1 1 0 1 1], [1 0 0 1 0 0], [1-1 0 1 1 0]、[0 1 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 0 1 -1 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 0 1 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 0 1 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[0 1 0 0 0 1]、[1 1 0 -1 0 1]、[0 1 -1 -1 01]、[1 -1 1 -1 1 -1]、[0 1 1 1 1 0]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 1 0 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 1 1 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -1 1 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[1 0 0 0 -1 0]、[-1 1 0 1 0 1]、[1 -1 1 0 01]、[-1 1 1 1 1 -1]、[-1 1 1 1 1 1]、[0 0 1 1 0 0]、[0 1 0 1 1 -1]、[1 -1 -1 0 0 1]、[0 0 1 1 -1 1]、[1 1 -1 1 -1 -1]、[1 -1 1 0 -1 0]、[-1 0 0 -1 1 1]、[1 1 0 -1 1 0]、[1 1 0 0 -1 -1]、[-1 1 0 1 0 -1]、[1 -1 -1 0 1 0]、[1 1 -1 -1 -1 1]、[1 0 1 1 -1 1]、[-1 0 0 1 1 -1]、[1 0 0 0 0 -1]、[1 1 -1 0 1 0]、[0 0 0 1 -1 0]、[0 0 1 -1 1 1]、[1 0 -1 1 0 -1]、[-1 -1 1 0 1 0]、[0 -1 1 0 1 1]、[0 0 1 -1 1 -1]、[1 1 1 1 0 0]、[0 -1 1 -1 0 1]、[0 0 0 1 1 0]、[0 0 1 1 1 1]、[-1 0 0 0 1 0]、[0 1 -1 -1 1 0]、[1 0 1 1 1 0]、[1 0 0 -1 0 0]、[0 1 -1 0 1 -1]、[1 1 1 1 1 1]、[1 1 1 0 0 1]、[0 -1 1 0 -1 1]、[1 -1 -1 1 0 0]、[0 -1 1 1 -1 0]、[1 0 -1 -1 1 0]、[1 0 0 1 1 -1]、[0 1 -1 0 -1 1]、[1 0 0 -1 1 1]、[1 0 -1 -1 0 1]、[1 0 1 -1 1 1]、[1 -1 1 -1 1 1]、[0 -1 -1 1 1 0]、[-1 1 -1 0 0 1]、[-1 -1 1 1 1 -1]、[0 0 1 0 -1 0]、[1 1 1 0 -1 0]、[1 0 1 1 0 1]、[1 0 0 1 -1 -1]、[-1 0 -1 1 1 0]、[-1 1 1 0 0 1]、[-1 1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 1 -1]、[-1 0 1 0 1 1]、[1 1 -1 1 0 0]、[1 1 0 0 0 0]、[1 1 1 -1 -1 -1]、[0 -1 0 1 1 1]、[0 0 -1 0 0 1]; encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment. The method of claim 24, wherein The plurality of basic code groups are in one-to-one mapping with a plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments comprise the first data segment. The method of claim 25, wherein The mapping relationship is a relationship obtained by random mapping. The method according to claim 25 or 26, characterized in that The mapping relationship of the second data segment and the basic code group includes: the basic code group mapped by the second data segment 00000000 is [0 0 0 1 0 -1], the basic code group mapped by the second data segment 00000001 is [1 0 1 -1 0 1], the basic code group mapped by the second data segment 00000010 is [0 0 -1 0 1 0], the basic code group mapped by the second data segment 00000011 is [0 -1 0 1 -1 1], the basic code group mapped by the second data segment 00000100 is [1 0 0 1 -1 1], the basic code group mapped by the second data segment 00000101 is [0 1 0 -1 1 1], the basic code group mapped by the second data segment 00000110 is [-1 0 0 1 0 0], the basic code group mapped by the second data segment 00000111 is [1 1 1 1 -1 1], the basic code group mapped by the second data segment 00001000 is [1 -1 1 1 -1 1], the basic code group mapped by the second data segment 00001001 is [0 0 1 0 0 1], the basic code group mapped by the second data segment 00001010 is [0 -1 1 0 1 -1], the basic code group mapped by the second data segment 00001011 is [0 -1 0 -1 1 1], the basic code group mapped by the second data segment 00001100 is [-1 -1 0 0 1 1], the basic code group mapped by the second data segment 00001101 is [1 -1 0 -1 1 0], the basic code group mapped by the second data segment 00001110 is [0 1 0 0 -1 0], the basic code group mapped by the second data segment 00001111 is [1 -1 -1 1 1 1], the basic code group mapped by the second data segment 00010000 is [0 0 0 -1 0 1], the basic code group mapped by the second data segment 00010001 is [-1 1 0 0 1 1], the basic code group mapped by the second data segment 00010010 is [0 0 -1 1 -1 1], the basic code group mapped by the second data segment 00010011 is [0 0 0 0 0 0], the basic code group mapped by the second data segment 00010100 is [-1 1 1 -1 1 1], the basic code group mapped by the second data segment 00010101 is [-1 0 1 0 -1 1], the basic code group mapped by the second data segment 00010110 is [0 -1 0 1 1 -1], the basic code group mapped by the second data segment 00010111 is [0 0 -1 1 0 0], the basic code group mapped by the second data segment 00011000 is [-1 -1 1 1 -1 1], the basic code group mapped by the second data segment 00011001 is [-1 -1 0 1 0 1],The basic code group mapped by the second data segment 00011010 is [-1 0 0 1 -1 1], the basic code group mapped by the second data segment 00011011 is [-1 0 0 0 0 1], the basic code group mapped by the second data segment 00011100 is [1 1 -1 0 -1 0], the basic code group mapped by the second data segment 00011101 is [0 -1 1 0 0 0], the basic code group mapped by the second data segment 00011110 is [1 1 -1 0 0 1], the basic code group mapped by the second data segment 00011111 is [0 -1 -1 0 1 1], the basic code group mapped by the second data segment 00100000 is [1 1 0 0 1 -1], the basic code group mapped by the second data segment 00100001 is [1 0 0 -1 -1 1], the basic code group mapped by the second data segment 00100010 is [1 -1 0 -1 0 1], the basic code group mapped by the second data segment 00100011 is [-1 0 -1 1 0 1], the basic code group mapped by the second data segment 00100100 is [1 0 -1 0 -1 1], the basic code group mapped by the second data segment 00100101 is [0 0 -1 1 1 -1], the basic code group mapped by the second data segment 00100110 is [-1 -1 1 0 0 1], the basic code group mapped by the second data segment 00100111 is [0 0 0 0 1 1], the basic code group mapped by the second data segment 00101000 is [-1 1 -1 -1 1 1], the basic code group mapped by the second data segment 00101001 is [-1 0 0 1 1 1], the basic code group mapped by the second data segment 00101010 is [0 1 -1 1 -1 0], the basic code group mapped by the second data segment 00101011 is [-1 1 -1 1 -1 1], the basic code group mapped by the second data segment 00101100 is [-1 1 1 1 -1 -1], the basic code group mapped by the second data segment 00101101 is [1 -1 1 -1 -1 1], the basic code group mapped by the second data segment 00101110 is [0 1 0 -1 1 -1], the basic code group mapped by the second data segment 00101111 is [-1 0 1 1 -1 0], the basic code group mapped by the second data segment 00110000 is [1 0 1 0 -1 1], the basic code group mapped by the second data segment 00110001 is [0 -1 0 1 0 0], the basic code group mapped by the second data segment 00110010 is [0 1 1 0 -1 1], the basic code group mapped by the second data segment 00110011 is [1 1 1 -1 1 1], the basic code group mapped by the second data segment 00110100 is [0 1 0 1 -1 -1],The basic code group mapped by the second data segment 00110101 is [0 1 1 -1 1 0], the basic code group mapped by the second data segment 00110110 is [0 0 0 0 1 -1], the basic code group mapped by the second data segment 00110111 is [1 1 1 -1 -1 1], the basic code group mapped by the second data segment 00111000 is [0 0 1 -1 -1 1], the basic code group mapped by the second data segment 00111001 is [-1 0 1 1 0 -1], the basic code group mapped by the second data segment 00111010 is [0 1 -1 1 0 1], the basic code group mapped by the second data segment 00111011 is [0 -1 1 -1 1 0], the basic code group mapped by the second data segment 00111100 is [1 0 0 1 1 1], the basic code group mapped by the second data segment 00111101 is [0 1 1 0 1 1], the basic code group mapped by the second data segment 00111110 is [1 0 0 1 0 0], the basic code group mapped by the second data segment 00111111 is [1 -1 0 1 1 0], the basic code group mapped by the second data segment 01000000 is [0 1 1 1 0 -1], the basic code group mapped by the second data segment 01000001 is [0 0 1 1 -1 -1], the basic code group mapped by the second data segment 01000010 is [1 0 1 1 -1 0], the basic code group mapped by the second data segment 01000011 is [0 1 1 1 0 1], the basic code group mapped by the second data segment 01000100 is [1 1 0 1 -1 1], the basic code group mapped by the second data segment 01000101 is [1 1 -1 -1 1 -1], the basic code group mapped by the second data segment 01000110 is [-1 1 -1 1 1 1], the basic code group mapped by the second data segment 01000111 is [0 -1 1 1 0 -1], the basic code group mapped by the second data segment 01001000 is [1 -1 0 0 -1 1], the basic code group mapped by the second data segment 01001001 is [1 -1 -1 1 1 -1], the basic code group mapped by the second data segment 01001010 is [-1 1 1 1 0 0], the basic code group mapped by the second data segment 01001011 is [0 1 1 -1 0 -1], the basic code group mapped by the second data segment 01001100 is [-1 -1 1 -1 1 1], the basic code group mapped by the second data segment 01001101 is [-1 1 1 1 -1 1], the basic code group mapped by the second data segment 01001110 is [1 1 -1 -1 0 0], the basic code group mapped by the second data segment 01001111 is [0 1 0 0 0 -1],The basic code group mapped by the second data segment 01010000 is [1 1 -1 0 0 -1], the basic code group mapped by the second data segment 01010001 is [0 1 0 0 1 0], the basic code group mapped by the second data segment 01010010 is [1 0 1 -1 0 -1], the basic code group mapped by the second data segment 01010011 is [1 1 0 1 0 1], the basic code group mapped by the second data segment 01010100 is [1 0 1 0 0 0], the basic code group mapped by the second data segment 01010101 is [1 1 -1 1 1 1], the basic code group mapped by the second data segment 01010110 is [0 0 1 1 1 -1], the basic code group mapped by the second data segment 01010111 is [0 -1 0 0 1 0], the basic code group mapped by the second data segment 01011000 is [-1 -1 -1 1 1 1], the basic code group mapped by the second data segment 01011001 is [1 1 -1 1 1 -1], the basic code group mapped by the second data segment 01011010 is [0 0 1 0 0 -1], the basic code group mapped by the second data segment 01011011 is [1 1 0 0 1 1], the basic code group mapped by the second data segment 01011100 is [0 0 0 1 0 1], the basic code group mapped by the second data segment 01011101 is [0 1 -1 1 1 0], the basic code group mapped by the second data segment 01011110 is [-1 0 1 1 1 0], the basic code group mapped by the second data segment 01011111 is [-1 1 0 1 1 0], the basic code group mapped by the second data segment 01100000 is [1 1 -1 -1 1 1], the basic code group mapped by the second data segment 01100001 is [-1 0 1 0 1 -1], the basic code group mapped by the second data segment 01100010 is [0 0 1 -1 0 0], the basic code group mapped by the second data segment 01100011 is [1 -1 1 1 1 1], the basic code group mapped by the second data segment 01100100 is [-1 0 1 -1 1 0], the basic code group mapped by the second data segment 01100101 is [-1 -1 1 1 1 1], the basic code group mapped by the second data segment 01100110 is [-1 1 0 1 -1 0], the basic code group mapped by the second data segment 01100111 is [1 -1 1 1 -1 -1], the basic code group mapped by the second data segment 01101000 is [1 -1 -1 -1 1 1], the basic code group mapped by the second data segment 01101001 is [-1 0 1 0 0 0], the basic code group mapped by the second data segment 01101010 is [1 -1 -1 1 -1 1],The basic code group mapped by the second data segment 01101011 is [-1 1 1 -1 0 0], the basic code group mapped by the second data segment 01101100 is [0 0 0 -1 1 0], the basic code group mapped by the second data segment 01101101 is [-1 0 1 1 0 1], the basic code group mapped by the second data segment 01101110 is [1 1 1 1 1 -1], the basic code group mapped by the second data segment 01101111 is [0 1 1 -1 -1 0], the basic code group mapped by the second data segment 01110000 is [1 0 -1 1 0 1], the basic code group mapped by the second data segment 01110001 is [1 -1 1 -1 0 0], the basic code group mapped by the second data segment 01110010 is [0 0 -1 -1 1 1], the basic code group mapped by the second data segment 01110011 is [0 1 1 0 -1 -1], the basic code group mapped by the second data segment 01110100 is [-1 1 1 0 0 -1], the basic code group mapped by the second data segment 01110101 is [1 -1 0 0 1 -1], the basic code group mapped by the second data segment 01110110 is [1 -1 0 0 1 1], the basic code group mapped by the second data segment 01110111 is [1 1 1 0 1 0], the basic code group mapped by the second data segment 01111000 is [1 -1 0 1 0 1], the basic code group mapped by the second data segment 01111001 is [0 0 -1 1 1 1], the basic code group mapped by the second data segment 01111010 is [0 0 0 0 -1 1], the basic code group mapped by the second data segment 01111011 is [-1 -1 0 1 1 0], the basic code group mapped by the second data segment 01111100 is [-1 0 1 -1 0 1], the basic code group mapped by the second data segment 01111101 is [0 1 0 0 0 1], the basic code group mapped by the second data segment 01111110 is [1 1 0 -1 0 1], the basic code group mapped by the second data segment 01111111 is [0 1 -1 -1 0 1], the basic code group mapped by the second data segment 10000000 is [1 -1 1 -1 1 -1], the basic code group mapped by the second data segment 10000001 is [0 1 1 1 1 0], the basic code group mapped by the second data segment 10000010 is [-1 1 1 -1 -1 1], the basic code group mapped by the second data segment 10000011 is [1 1 0 1 -1 0], the basic code group mapped by the second data segment 10000100 is [1 -1 1 0 0 -1], the basic code group mapped by the second data segment 10000101 is [1 0 -1 0 0 0],The basic code group mapped by the second data segment 10000110 is [0 1 0 -1 -1 1], the basic code group mapped by the second data segment 10000111 is [0 1 0 -1 0 0], the basic code group mapped by the second data segment 10001000 is [-1 -1 1 1 0 0], the basic code group mapped by the second data segment 10001001 is [1 1 0 -1 -1 0], the basic code group mapped by the second data segment 10001010 is [1 -1 0 1 -1 0], the basic code group mapped by the second data segment 10001011 is [0 1 1 -1 0 1], the basic code group mapped by the second data segment 10001100 is [-1 1 -1 1 1 -1], the basic code group mapped by the second data segment 10001101 is [1 1 1 1 -1 -1], the basic code group mapped by the second data segment 10001110 is [1 0 0 -1 1 -1], the basic code group mapped by the second data segment 10001111 is [-1 1 1 0 1 0], the basic code group mapped by the second data segment 10010000 is [0 1 -1 0 0 0], the basic code group mapped by the second data segment 10010001 is [-1 1 0 0 -1 1], the basic code group mapped by the second data segment 10010010 is [1 -1 0 0 0 0], the basic code group mapped by the second data segment 10010011 is [1 0 1 -1 1 0], the basic code group mapped by the second data segment 10010100 is [1 1 -1 1 -1 1], the basic code group mapped by the second data segment 10010101 is [0 1 1 1 -1 0], the basic code group mapped by the second data segment 10010110 is [1 -1 0 1 0 -1], the basic code group mapped by the second data segment 10010111 is [1 0 1 1 0 -1], the basic code group mapped by the second data segment 10011000 is [-1 1 -1 1 0 0], the basic code group mapped by the second data segment 10011001 is [-1 1 1 -1 1 -1], the basic code group mapped by the second data segment 10011010 is [0 1 -1 1 0 -1], the basic code group mapped by the second data segment 10011011 is [1 -1 1 1 1 -1], the basic code group mapped by the second data segment 10011100 is [1 0 0 0 1 0], the basic code group mapped by the second data segment 10011101 is [-1 1 0 0 0 0], the basic code group mapped by the second data segment 10011110 is [-1 1 1 0 -1 0], the basic code group mapped by the second data segment 10011111 is [1 -1 1 1 0 0], the basic code group mapped by the second data segment 10100000 is [1 -1 1 0 1 0],The basic code group mapped by the second data segment 10100001 is [1 1 1 -1 0 0], the basic code group mapped by the second data segment 10100010 is [1 1 1 -1 1 -1], the basic code group mapped by the second data segment 10100011 is [1 1 0 1 0 -1], the basic code group mapped by the second data segment 10100100 is [0 1 0 1 0 0], the basic code group mapped by the second data segment 10100101 is [0 1 0 1 -1 1], the basic code group mapped by the second data segment 10100110 is [1 0 -1 1 -1 0], the basic code group mapped by the second data segment 10100111 is [1 1 1 0 0 -1], the basic code group mapped by the second data segment 10101000 is [1 1 0 0 -1 1], the basic code group mapped by the second data segment 10101001 is [1 1 0 -1 0 -1], the basic code group mapped by the second data segment 10101010 is [0 -1 -1 1 0 1], the basic code group mapped by the second data segment 10101011 is [-1 1 0 0 1 -1], the basic code group mapped by the second data segment 10101100 is [1 0 1 0 1 -1], the basic code group mapped by the second data segment 10101101 is [1 0 -1 0 1 -1], the basic code group mapped by the second data segment 10101110 is [1 0 -1 1 1 0], the basic code group mapped by the second data segment 10101111 is [-1 0 -1 0 1 1], the basic code group mapped by the second data segment 10110000 is [1 0 1 0 -1 -1], the basic code group mapped by the second data segment 10110001 is [1 0 0 0 0 1], the basic code group mapped by the second data segment 10110010 is [0 0 1 0 1 0], the basic code group mapped by the second data segment 10110011 is [1 0 -1 0 1 1], the basic code group mapped by the second data segment 10110100 is [1 0 1 -1 -1 0], the basic code group mapped by the second data segment 10110101 is [-1 1 0 -1 0 1], the basic code group mapped by the second data segment 10110110 is [1 1 0 1 1 0], the basic code group mapped by the second data segment 10110111 is [0 1 -1 0 1 1], the basic code group mapped by the second data segment 10111000 is [1 0 1 0 1 1], the basic code group mapped by the second data segment 10111001 is [0 -1 1 1 1 0], the basic code group mapped by the second data segment 10111010 is [0 -1 1 1 0 1], the basic code group mapped by the second data segment 10111011 is [0 -1 0 0 0 1],The basic code group mapped by the second data segment 10111100 is [0 1 0 1 1 1], the basic code group mapped by the second data segment 10111101 is [-1 1 -1 0 1 0], the basic code group mapped by the second data segment 10111110 is [1 0 0 0 -1 0], the basic code group mapped by the second data segment 10111111 is [-1 1 0 1 0 1], the basic code group mapped by the second data segment 11000000 is [1 -1 1 0 0 1], the basic code group mapped by the second data segment 11000001 is [-1 1 1 1 1 -1], the basic code group mapped by the second data segment 11000010 is [-1 1 1 1 1 1], the basic code group mapped by the second data segment 11000011 is [0 0 1 1 0 0], the basic code group mapped by the second data segment 11000100 is [0 1 0 1 1 -1], the basic code group mapped by the second data segment 11000101 is [1 -1 -1 0 0 1], the basic code group mapped by the second data segment 11000110 is [0 0 1 1 -1 1], the basic code group mapped by the second data segment 11000111 is [1 1 -1 1 -1 -1], the basic code group mapped by the second data segment 11001000 is [1 -1 1 0 -1 0], the basic code group mapped by the second data segment 11001001 is [-1 0 0 -1 1 1], the basic code group mapped by the second data segment 11001010 is [1 1 0 -1 1 0], the basic code group mapped by the second data segment 11001011 is [1 1 0 0 -1 -1], the basic code group mapped by the second data segment 11001100 is [-1 1 0 1 0 -1], the basic code group mapped by the second data segment 11001101 is [1 -1 -1 0 1 0], the basic code group mapped by the second data segment 11001110 is [1 1 -1 -1 -1 1], the basic code group mapped by the second data segment 11001111 is [1 0 1 1 -1 1], the basic code group mapped by the second data segment 11010000 is [-1 0 0 1 1 -1], the basic code group mapped by the second data segment 11010001 is [1 0 0 0 0 -1], the basic code group mapped by the second data segment 11010010 is [1 1 -1 0 1 0], the basic code group mapped by the second data segment 11010011 is [0 0 0 1 -1 0], the basic code group mapped by the second data segment 11010100 is [0 0 1 -1 1 1], the basic code group mapped by the second data segment 11010101 is [1 0 -1 1 0 -1], the basic code group mapped by the second data segment 11010110 is [-1 -1 1 0 1 0],The basic code group mapped by the second data segment 11010111 is [0 -1 1 0 1 1], the basic code group mapped by the second data segment 11011000 is [0 0 1 -1 1 -1], the basic code group mapped by the second data segment 11011001 is [1 1 1 1 0 0], the basic code group mapped by the second data segment 11011010 is [0 -1 1 -1 0 1], the basic code group mapped by the second data segment 11011011 is [0 0 0 1 1 0], the basic code group mapped by the second data segment 11011100 is [0 0 1 1 1 1], the basic code group mapped by the second data segment 11011101 is [-1 0 0 0 1 0], the basic code group mapped by the second data segment 11011110 is [0 1 -1 -1 1 0], the basic code group mapped by the second data segment 11011111 is [1 0 1 1 1 0], the basic code group mapped by the second data segment 11100000 is [1 0 0 -1 0 0], the basic code group mapped by the second data segment 11100001 is [0 1 -1 0 1 -1], the basic code group mapped by the second data segment 11100010 is [1 1 1 1 1 1], the basic code group mapped by the second data segment 11100011 is [1 1 1 0 0 1], the basic code group mapped by the second data segment 11100100 is [0 -1 1 0 -1 1], the basic code group mapped by the second data segment 11100101 is [1 -1 -1 1 0 0], the basic code group mapped by the second data segment 11100110 is [0 -1 1 1 -1 0], the basic code group mapped by the second data segment 11100111 is [1 0 -1 -1 1 0], the basic code group mapped by the second data segment 11101000 is [1 0 0 1 1 -1], the basic code group mapped by the second data segment 11101001 is [0 1 -1 0 -1 1], the basic code group mapped by the second data segment 11101010 is [1 0 0 -1 1 1], the basic code group mapped by the second data segment 11101011 is [1 0 -1 -1 0 1], the basic code group mapped by the second data segment 11101100 is [1 0 1 -1 1 1], the basic code group mapped by the second data segment 11101101 is [1 -1 1 -1 1 1], the basic code group mapped by the second data segment 11101110 is [0 -1 -1 1 1 0], the basic code group mapped by the second data segment 11101111 is [-1 1 -1 0 0 1], the basic code group mapped by the second data segment 11110000 is [-1 -1 1 1 1 -1], the basic code group mapped by the second data segment 11110001 is [0 0 1 0 -1 0],The basic code group mapped by the second data segment 11110010 is [1 1 1 0 -1 0], the basic code group mapped by the second data segment 11110011 is [1 0 1 1 0 1], the basic code group mapped by the second data segment 11110100 is [1 0 0 1 -1 -1], the basic code group mapped by the second data segment 11110101 is [-1 0 -1 1 1 0], the basic code group mapped by the second data segment 11110110 is [-1 1 1 0 0 1], the basic code group mapped by the second data segment 11110111 is [-1 1 0 -1 1 0], the basic code group mapped by the second data segment 11111000 is [0 1 1 0 0 0], the basic code group mapped by the second data segment 11111001 is [0 1 1 0 1 -1], the basic code group mapped by the second data segment 11111010 is [-1 0 1 0 1 1], the basic code group mapped by the second data segment 11111011 is [1 1 -1 1 0 0], the basic code group mapped by the second data segment 11111100 is [1 1 0 0 0 0], the basic code group mapped by the second data segment 11111101 is [1 1 1 -1 -1 -1], the basic code group mapped by the second data segment 11111110 is [0 -1 0 1 1 1], and the basic code group mapped by the second data segment 11111111 is [0 0 -1 0 0 1]. A method of data encoding, characterized in that, The method comprises: obtaining a first data segment in a data stream to be processed; A plurality of base code groups are obtained, including [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 0 0], [1 1 1 1 0 0], [1 1 -1 0 -1 0], [1 -1 1 0 -1 0], [1 -1 -1 0 1 0], [-1 1 1 0 -1 0], [-1 1 -1 0 1 0], [-1 -1 1 0 1 0], [1 1 1 0 -1 0], [1 1 -1 0 10]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -1 1 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -1 1 0 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0-1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 1 1 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 0 1 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 1 1]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0 -1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 0 1]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[01 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 0 1]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 -1 1 0 -1 1]、[1 -1 0 1 -1 1]、[-1 1 0 1 -1 1]、[1 -1 1 0 1 -1]; encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment. A method of data encoding, characterized by The method comprises: obtaining a first data segment in a data stream to be processed; A plurality of base code groups are obtained, including [1 1 1 -1 -1 -1], [1 1 -1 1 -1 -1], [1 1 -1 -1 1 -1], [1 1 -1 -1 -1 1], [1 -1 1 1 -1 -1], [1 -1 1 -1 1 -1], [1 -1 1 -1 -1 1], [1 -1 -1 1 1 -1], [1 -1 -1 1 -1 1], [1 -1 -1 -1 1 1], [-1 1 1 1 -1 -1], [-1 1 1 -1 1 -1], [-1 1 1 -1 -1 1], [-1 1 -1 1 1 -1], [-1 1 -1 1 -1 1], [-1 1 -1 -1 1 1], [-1 -1 1 1 1 -1], [-1 -1 1 1 -1 1], [-1 -1 1 -1 1 1], [-1 -1 -1 1 1 1], [1 1 1 1 -1 -1], [1 1 1 -1 1 -1], [1 1 1 -1 -1 1], [1 1 -1 1 1 -1], [1 1 -1 1 -1 1], [1 1 -1 -1 1 1], [1 -1 1 1 1 -1], [1 -1 1 1 -1 1], [1 -1 1 -1 1 1], [1 -1 -1 1 1 1], [-1 1 1 1 1 -1], [-1 1 1 1 -1 1], [-1 1 1 -1 1 1], [-1 1 -1 1 1 1], [-1 -1 1 1 1 1], [1 1 1 1 1 -1], [1 1 1 1 -1 1], [1 1 1 -1 1 1], [1 1 -1 1 1 1], [1 -1 1 1 1 1], [-1 1 1 1 1 1], [1 1 1 1 1 1], [1 1 -1 -1 0 0], [1 -1 1 -1 0 0], [1 -1 -1 1 0 0], [-1 1 1 -1 0 0], [-1 1 -1 1 0 0], [-1 -1 1 1 0 0], [1 1 1 -1 0 0], [1 1 -1 1 0 0], [1 -1 1 1 0 0], [-1 1 1 1 0 0], [1 1 1 1 0 0], [1 1 -1 0 -1 0], [1 -1 1 0 -1 0], [1 -1 -1 0 1 0], [-1 1 1 0 -1 0], [-1 1 -1 0 1 0], [-1 -1 1 0 1 0], [1 1 1 0 -1 0], [1 1 -1 0 10]、[1 -1 1 0 1 0]、[-1 1 1 0 1 0]、[1 1 1 0 1 0]、[1 1 -1 0 0 -1]、[1 -1 1 0 0 -1]、[1 -1 -1 0 0 1]、[-1 1 1 0 0 -1]、[-1 1 -1 0 0 1]、[-1 -1 1 0 0 1]、[1 1 1 0 0 -1]、[1 1 -1 0 0 1]、[1 -1 1 0 0 1]、[-1 1 1 0 0 1]、[1 1 1 0 0 1]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[1 -1 0 -1 1 0]、[-1 1 0 1 -1 0]、[-1 1 0 -1 1 0]、[-1 -1 0 1 1 0]、[1 1 0 1 -1 0]、[1 1 0 -1 1 0]、[1 -1 0 1 1 0]、[-1 1 0 1 1 0]、[1 1 0 1 1 0]、[1 1 0 -1 0 -1]、[1 -1 0 1 0 -1]、[1 -1 0 -1 0 1]、[-1 1 0 1 0 -1]、[-1 1 0 -1 0 1]、[-1 -1 0 1 0 1]、[1 1 0 1 0 -1]、[1 1 0 -1 0 1]、[1 -1 0 1 0 1]、[-1 1 0 1 0 1]、[1 1 0 1 0 1]、[1 1 0 0 -1 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 -1 1]、[-1 1 0 0 1 -1]、[-1 1 0 0 -1 1]、[-1 -1 0 0 1 1]、[1 1 0 0 1 -1]、[1 1 0 0 -1 1]、[1 -1 0 0 1 1]、[-1 1 0 0 1 1]、[1 1 0 0 1 1]、[1 -1 0 0 0 0]、[-1 1 0 0 0 0]、[1 1 0 0 0 0]、[1 0 1 -1 -1 0]、[1 0 -1 1 -1 0]、[1 0 -1 -1 1 0]、[-1 0 1 1 -1 0]、[-1 0 1 -1 1 0]、[-1 0 -1 1 1 0]、[1 0 1 1 -1 0]、[1 0 1 -1 1 0]、[1 0 -1 1 1 0]、[-1 0 1 1 1 0]、[1 0 1 1 1 0]、[1 0 1 -1 0 -1]、[1 0 -1 1 0 -1]、[1 0 -1 -1 0 1]、[-1 0 1 1 0-1]、[-1 0 1 -1 0 1]、[-1 0 -1 1 0 1]、[1 0 1 1 0 -1]、[1 0 1 -1 0 1]、[1 0 -1 1 0 1]、[-1 0 1 1 0 1]、[1 0 1 1 0 1]、[1 0 1 0 -1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 0 -1 1]、[-1 0 1 0 1 -1]、[-1 0 1 0 -1 1]、[-1 0 -1 0 1 1]、[1 0 1 0 1 -1]、[1 0 1 0 -1 1]、[1 0 -1 0 1 1]、[-1 0 1 0 1 1]、[1 0 1 0 1 1]、[1 0 -1 0 0 0]、[-1 0 1 0 0 0]、[1 0 1 0 0 0]、[1 0 0 1 -1 -1]、[1 0 0 -1 1 -1]、[1 0 0 -1 -1 1]、[-1 0 0 1 1 -1]、[-1 0 0 1 -1 1]、[-1 0 0 -1 1 1]、[1 0 0 1 1 -1]、[1 0 0 1 -1 1]、[1 0 0 -1 1 1]、[-1 0 0 1 1 1]、[1 0 0 1 1 1]、[1 0 0 -1 0 0]、[-1 0 0 1 0 0]、[1 0 0 1 0 0]、[1 0 0 0 -1 0]、[-1 0 0 0 1 0]、[1 0 0 0 1 0]、[1 0 0 0 0 -1]、[-1 0 0 0 0 1]、[1 0 0 0 0 1]、[0 1 1 -1 -1 0]、[0 1 -1 1 -1 0]、[0 1 -1 -1 1 0]、[0 -1 1 1 -1 0]、[0 -1 1 -1 1 0]、[0 -1 -1 1 1 0]、[0 1 1 1 -1 0]、[0 1 1 -1 1 0]、[0 1 -1 1 1 0]、[0 -1 1 1 1 0]、[0 1 1 1 1 0]、[0 1 1 -1 0 -1]、[0 1 -1 1 0 -1]、[0 1 -1 -1 0 1]、[0 -1 1 1 0 -1]、[0 -1 1 -1 0 1]、[0 -1 -1 1 0 1]、[0 1 1 1 0 -1]、[0 1 1 -1 0 1]、[0 1 -1 1 0 1]、[0 -1 1 1 0 1]、[0 1 1 1 0 1]、[0 1 1 0 -1 -1]、[0 1 -1 0 1 -1]、[01 -1 0 -1 1]、[0 -1 1 0 1 -1]、[0 -1 1 0 -1 1]、[0 -1 -1 0 1 1]、[0 1 1 0 1 -1]、[0 1 1 0 -1 1]、[0 1 -1 0 1 1]、[0 -1 1 0 1 1]、[0 1 1 0 1 1]、[0 1 -1 0 0 0]、[0 -1 1 0 0 0]、[0 1 1 0 0 0]、[0 1 0 1 -1 -1]、[0 1 0 -1 1 -1]、[0 1 0 -1 -1 1]、[0 -1 0 1 1 -1]、[0 -1 0 1 -1 1]、[0 -1 0 -1 1 1]、[0 1 0 1 1 -1]、[0 1 0 1 -1 1]、[0 1 0 -1 1 1]、[0 -1 0 1 1 1]、[0 1 0 1 1 1]、[0 1 0 -1 0 0]、[0 -1 0 1 0 0]、[0 1 0 1 0 0]、[0 1 0 0 -1 0]、[0 -1 0 0 1 0]、[0 1 0 0 1 0]、[0 1 0 0 0 -1]、[0 -1 0 0 0 1]、[0 1 0 0 0 1]、[0 0 1 1 -1 -1]、[0 0 1 -1 1 -1]、[0 0 1 -1 -1 1]、[0 0 -1 1 1 -1]、[0 0 -1 1 -1 1]、[0 0 -1 -1 1 1]、[0 0 1 1 1 -1]、[0 0 1 1 -1 1]、[0 0 1 -1 1 1]、[0 0 -1 1 1 1]、[0 0 1 1 1 1]、[0 0 1 -1 0 0]、[0 0 -1 1 0 0]、[0 0 1 1 0 0]、[0 0 1 0 -1 0]、[0 0 -1 0 1 0]、[0 0 1 0 1 0]、[0 0 1 0 0 -1]、[0 0 -1 0 0 1]、[0 0 1 0 0 1]、[0 0 0 1 -1 0]、[0 0 0 -1 1 0]、[0 0 0 1 1 0]、[0 0 0 1 0 -1]、[0 0 0 -1 0 1]、[0 0 0 1 0 1]、[0 0 0 0 1 -1]、[0 0 0 0 -1 1]、[0 0 0 0 1 1]、[1 0 1 -1 1 -1]、[1 0 -1 1 -1 1]、[1 -1 1 -1 0 1]、[-1 1 -1 1 0 1]; encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment. A method of data encoding, characterized by The method comprises: obtaining a first data segment in a data stream to be processed; A plurality of base code groups are obtained, including [0 0 0 1 0 -1], [1 0 1 -1 0 1], [0 0 -1 0 1 0], [0 -1 0 1 -1 1], [1 0 0 1 -1 1], [0 1 0 -1 1 1], [-1 0 0 1 0 0], [1 1 1 1 -1 1], [1 -1 1 1 -1 1], [0 0 1 0 0 1], [0 -1 1 0 1 -1], [0 -1 0 -1 1 1], [-1 -1 0 0 1 1], [1 -1 0 -1 1 0], [0 1 0 0 -1 0], [1 -1 -1 1 1 1], [0 0 0 -1 0 1], [-1 1 0 0 1 1], [0 0 -1 1 -1 1], [-1 1 1 -1 1 1], [-1 0 1 0 -1 1], [0 -1 0 1 1 -1], [0 0 -1 1 0 0], [-1 -1 1 1 -1 1], [-1 -1 0 1 0 1], [-1 0 0 1 -1 1], [-1 0 0 0 0 1], [1 1 -1 0 -1 0], [0 -1 1 0 0 0], [1 1 -1 0 0 1], [0 -1 -1 0 1 1], [1 1 0 0 1 -1], [1 0 0 -1 -1 1], [1 -1 0 -1 0 1], [-1 0 -1 1 0 1], [1 0 -1 0 -1 1], [0 0 -1 1 1 -1], [-1 -1 1 0 0 1], [0 0 0 0 1 1], [-1 1 -1 -1 1 1], [-1 0 0 1 1 1], [0 1 -1 1 -1 0], [-1 1 -1 1 -1 1], [-1 1 1 1 -1 -1], [1 -1 1 -1 -1 1], [0 1 0 -1 1 -1], [-1 0 1 1 -1 0], [1 0 1 0 -1 1], [0 -1 0 1 0 0], [0 1 1 0 -1 1], [1 1 1 -1 1 1], [0 1 0 1 -1 -1], [0 1 1 -1 1 0], [0 0 0 0 1 -1], [1 1 1 -1 -1 1], [0 0 1 -1 -1 1], [-1 0 1 1 0 -1], [0 1 -1 1 0 1], [0 -1 1 -1 1 0], [1 0 0 1 1 1], [0 1 1 0 1 1], [1 0 0 1 0 0], [1 -1 0 1 1 0], [01 1 1 0 -1]、[0 0 1 1 -1 -1]、[1 0 1 1 -1 0]、[0 1 1 1 0 1]、[1 1 -1 -1 1 -1]、[-1 1 -1 1 1 1]、[0 -1 1 1 0 -1]、[1 -1 0 0 -1 1]、[1 -1 -1 1 1 -1]、[-1 1 1 1 0 0]、[0 1 1 -1 0 -1]、[-1 -1 1 -1 1 1]、[-1 1 1 1 -1 1]、[1 1 -1 -1 0 0]、[0 1 0 0 0 -1]、[1 1 -1 0 0 -1]、[0 1 0 0 1 0]、[1 0 1 -1 0 -1]、[1 1 0 1 0 1]、[1 0 1 0 0 0]、[1 1 -1 1 1 1]、[0 0 1 1 1 -1]、[0 -1 0 0 1 0]、[-1 -1 -1 1 1 1]、[1 1 -1 1 1 -1]、[0 0 1 0 0 -1]、[1 1 0 0 1 1]、[0 0 0 1 0 1]、[0 1 -1 1 1 0]、[-1 0 1 1 1 0]、[-1 1 0 1 1 0]、[1 1 -1 -1 1 1]、[-1 0 1 0 1 -1]、[0 0 1 -1 0 0]、[1 -1 1 1 1 1]、[-1 0 1 -1 1 0]、[-1 -1 1 1 1 1]、[-1 1 0 1 -1 0]、[1 -1 1 1 -1 -1]、[1 -1 -1 -1 1 1]、[-1 0 1 0 0 0]、[1 -1 -1 1 -1 1]、[-1 1 1 -1 0 0]、[0 0 0 -1 1 0]、[-1 0 1 1 0 1]、[1 1 1 1 1 -1]、[0 1 1 -1 -1 0]、[1 0 -1 1 0 1]、[1 -1 1 -1 0 0]、[0 0 -1 -1 1 1]、[0 1 1 0 -1 -1]、[-1 1 1 0 0 -1]、[1 -1 0 0 1 -1]、[1 -1 0 0 1 1]、[1 1 1 0 1 0]、[1 -1 0 1 0 1]、[0 0 -1 1 1 1]、[0 0 0 0 -1 1]、[-1 -1 0 1 1 0]、[-1 0 1 -1 0 1]、[0 1 0 0 0 1]、[1 1 0 -1 0 1]、[0 1 -1 -1 0 1]、[1 -1 1 -1 1 -1]、[0 1 1 1 10]、[-1 1 1 -1 -1 1]、[1 1 0 1 -1 0]、[1 -1 1 0 0 -1]、[1 0 -1 0 0 0]、[0 1 0 -1 -1 1]、[0 1 0 -1 0 0]、[-1 -1 1 1 0 0]、[1 1 0 -1 -1 0]、[1 -1 0 1 -1 0]、[0 1 1 -1 0 1]、[-1 1 -1 1 1 -1]、[1 1 1 1 -1 -1]、[1 0 0 -1 1 -1]、[-1 1 1 0 1 0]、[0 1 -1 0 0 0]、[-1 1 0 0 -1 1]、[1 -1 0 0 0 0]、[1 0 1 -1 1 0]、[1 1 -1 1 -1 1]、[0 1 1 1 -1 0]、[1 -1 0 1 0 -1]、[1 0 1 1 0 -1]、[-1 1 -1 1 0 0]、[-1 1 1 -1 1 -1]、[0 1 -1 1 0 -1]、[1 -1 1 1 1 -1]、[1 0 0 0 1 0]、[-1 1 0 0 0 0]、[-1 1 1 0 -1 0]、[1 -1 1 1 0 0]、[1 -1 1 0 1 0]、[1 1 1 -1 0 0]、[1 1 1 -1 1 -1]、[1 1 0 1 0 -1]、[0 1 0 1 0 0]、[0 1 0 1 -1 1]、[1 0 -1 1 -1 0]、[1 1 1 0 0 -1]、[1 1 0 0 -1 1]、[1 1 0 -1 0 -1]、[0 -1 -1 1 0 1]、[-1 1 0 0 1 -1]、[1 0 1 0 1 -1]、[1 0 -1 0 1 -1]、[1 0 -1 1 1 0]、[-1 0 -1 0 1 1]、[1 0 1 0 -1 -1]、[1 0 0 0 0 1]、[0 0 1 0 1 0]、[1 0 -1 0 1 1]、[1 0 1 -1 -1 0]、[-1 1 0 -1 0 1]、[1 1 0 1 1 0]、[0 1 -1 0 1 1]、[1 0 1 0 1 1]、[0 -1 1 1 1 0]、[0 -1 1 1 0 1]、[0 -1 0 0 0 1]、[0 1 0 1 1 1]、[-1 1 -1 0 1 0]、[1 0 0 0 -1 0]、[-1 1 0 1 0 1]、[1 -1 1 0 0 1]、[-1 1 1 1 1 -1]、[-1 1 1 1 11]、[0 0 1 1 0 0]、[0 1 0 1 1 -1]、[1 -1 -1 0 0 1]、[0 0 1 1 -1 1]、[1 1 -1 1 -1 -1]、[1 -1 1 0 -1 0]、[-1 0 0 -1 1 1]、[1 1 0 -1 1 0]、[1 1 0 0 -1 -1]、[-1 1 0 1 0 -1]、[1 -1 -1 0 1 0]、[1 1 -1 -1 -1 1]、[-1 0 0 1 1 -1]、[1 0 0 0 0 -1]、[1 1 -1 0 1 0]、[0 0 0 1 -1 0]、[0 0 1 -1 1 1]、[1 0 -1 1 0 -1]、[-1 -1 1 0 1 0]、[0 -1 1 0 1 1]、[0 0 1 -1 1 -1]、[1 1 1 1 0 0]、[0 -1 1 -1 0 1]、[0 0 0 1 1 0]、[0 0 1 1 1 1]、[-1 0 0 0 1 0]、[0 1 -1 -1 1 0]、[1 0 1 1 1 0]、[1 0 0 -1 0 0]、[0 1 -1 0 1 -1]、[1 1 1 1 1 1]、[1 1 1 0 0 1]、[0 -1 1 0 -1 1]、[1 -1 -1 1 0 0]、[0 -1 1 1 -1 0]、[1 0 -1 -1 1 0]、[1 0 0 1 1 -1]、[0 1 -1 0 -1 1]、[1 0 0 -1 1 1]、[1 0 -1 -1 0 1]、[1 -1 1 -1 1 1]、[0 -1 -1 1 1 0]、[-1 1 -1 0 0 1]、[-1 -1 1 1 1 -1]、[0 0 1 0 -1 0]、[1 1 1 0 -1 0]、[1 0 1 1 0 1]、[1 0 0 1 -1 -1]、[-1 0 -1 1 1 0]、[-1 1 1 0 0 1]、[-1 1 0 -1 1 0]、[0 1 1 0 0 0]、[0 1 1 0 1 -1]、[-1 0 1 0 1 1]、[1 1 -1 1 0 0]、[1 1 0 0 0 0]、[1 1 1 -1 -1 -1]、[0 -1 0 1 1 1]、[0 0 -1 0 0 1]; encoding the first data segment according to the plurality of basic code groups to obtain a first encoded segment. The method according to any one of claims 28-30, characterized in that The plurality of basic code groups are in one-to-one mapping with a plurality of second data segments, the plurality of second data segments have a value range of 00 to ff, and the plurality of second data segments comprise the first data segment. The method of claim 31, wherein The mapping relationship is a relationship obtained by random mapping. An apparatus for data encoding, characterized by The apparatus comprises: a transceiving module configured to obtain a first data segment in a data stream to be processed; The processing module is configured to obtain a plurality of basic code groups, the plurality of basic code groups being composed of a first code group set and a second code group set, a minimum code group distance between any basic code group in the first code group set and other code groups in the plurality of basic code groups being greater than a minimum Euclidean distance, a minimum code group distance between any basic code group in the second code group set and other code groups in the plurality of basic code groups being equal to the minimum Euclidean distance, the minimum Euclidean distance indicating a minimum distance between different level values generated by pulse amplitude modulation (PAM), a number of basic code groups in the first code group set being greater than a number of basic code groups in the second code group set. The processing module is further configured to encode the first data segment according to the plurality of basic code groups to obtain a first encoded segment. The apparatus of claim 33, wherein The processing module is configured to determine the first code group corresponding to the first data segment from the plurality of basic code groups according to a mapping relationship between the first code group and the first data segment. The first data segment is encoded based on the first code group to obtain a first encoded segment. The apparatus of claim 34, wherein The processing module is configured to determine the first encoded segment based on unevenness of the first code group. The apparatus of any of claims 33-35, wherein The number of basic code groups in the second code group set is 0. The apparatus of any of claims 33-36, wherein The processing module is configured to obtain a plurality of candidate code groups, and select the plurality of basic code groups from the plurality of candidate code groups according to code group distances between the candidate code groups. The apparatus of claim 37, wherein The processing module is configured to divide the plurality of candidate code groups into a plurality of code group subsets according to the code group distances between the candidate code groups, different code group subsets including different candidate code groups, and a code group distance between any two candidate code groups in any code group subset being greater than the minimum Euclidean distance; and select the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets. The apparatus of claim 38, wherein For any code group subset, the candidate code groups included in the any code group subset satisfy a symbol distribution condition, the symbol distribution condition being determined based on referenced candidate code groups, and a code group distance between any two referenced candidate code groups being greater than the minimum Euclidean distance. The apparatus of claim 38 or 39, wherein The processing module is configured to determine a first number of candidate code groups in each code group subset that satisfy a selection condition of unevenness, the selection condition including that a variation of the unevenness is not less than a first value or the variation is not greater than the first value; and select the plurality of basic code groups from the candidate code groups included in the plurality of code group subsets according to the first number of the code group subsets. The apparatus of claim 40, wherein The processing module is configured to determine a first subset with a maximum first number from the plurality of code group subsets; and determine each candidate code group included in the first subset and satisfying the selection condition as a basic code group, or select a basic code group from the candidate code groups included in the first subset and satisfying the selection condition according to level values of the candidate code groups. The apparatus of claim 40, wherein The processing module is configured to determine a first subset with a first maximum number from the multiple code group subsets; determine each candidate code group included in the first subset and satisfying a selection condition as a basic code group, or, from the candidate code groups included in the first subset and satisfying the selection condition, select a basic code group according to a level value of each candidate code group; and from the candidate code groups included in a second subset and satisfying the selection condition, select a basic code group according to a level value of each candidate code group, the second subset being different from the first subset. The apparatus of claim 41 or 42, wherein The basic code group selected according to the level value of each candidate code group satisfies at least one of the following conditions: a continuous number of same level values is less than a first threshold value; or a number of intermediate state values in the level values is less than a second threshold value; or a number of jumps in the level values is greater than a third threshold value. The apparatus of any of claims 33-43, wherein In a case where the PAM includes PAM3 modulation, the minimum Euclidean distance is 1. The apparatus of any of claims 33-43, wherein In a case where the PAM includes PAM4 modulation, the minimum Euclidean distance is 2. An apparatus for data decoding, characterized by The apparatus comprises: a processing module configured to obtain a signal segment in a signal stream to be decoded; The processing module is further configured to obtain multiple reference code groups corresponding to the signal stream, the reference code groups being obtained based on multiple basic code groups, the multiple basic code groups being used to encode a data stream corresponding to the signal stream, the multiple basic code groups being composed of a first code group set and a second code group set, a minimum code group distance between any basic code group in the first code group set and other code groups in the multiple basic code groups being greater than a minimum Euclidean distance, a minimum code group distance between any basic code group in the second code group set and other code groups in the multiple basic code groups being equal to the minimum Euclidean distance, the minimum Euclidean distance indicating a minimum distance between different level values generated by pulse amplitude modulation (PAM), a number of basic code groups in the first code group set being greater than a number of basic code groups in the second code group set; The processing module is further configured to determine, from the multiple reference code groups, a reference code group with a minimum code group distance to the signal segment, and decode a first data segment corresponding to the signal segment according to the determined reference code group. The apparatus of claim 46, wherein The processing module is configured to obtain multiple PAM signals included in the signal stream; and divide the multiple PAM signals into multiple signal segments according to combination boundary information of the multiple PAM signals, any signal segment including multiple PAM signals. The apparatus of claim 47, wherein The processing module is configured to obtain multiple received signals; and perform PAM equalization on any received signal based on an equalizer that stably converges, to obtain a PAM signal corresponding to the any received signal. The apparatus of claim 48, wherein The equalizer stably converges based on updating coefficients of the equalizer based on an error, in a case where the PAM equalization is PAM3 equalization, the coefficients updated based on the error being calculated by performing PAM3 decision on an output signal of the equalizer, the output signal being a signal processed by the equalizer before the any received signal, and the PAM signal being a PAM3 signal. The apparatus of claim 48, wherein The equalizer realizes stable convergence based on error updating of coefficients of the equalizer, and in the case of PAM equalization being PAM4 equalization, coefficients updated based on error are calculated by PAM4 decision on an output signal of the equalizer, the output signal being a signal processed by the equalizer before the any received signal, and the PAM signal being a PAM4 signal. The apparatus of any of claims 46-50, wherein The plurality of reference code groups include the plurality of basic code groups and a plurality of complementary code groups, and the plurality of complementary code groups are obtained by inverting each symbol in the plurality of basic code groups. An apparatus for data encoding, characterized by The apparatus includes: The transceiver is configured to perform receiving and / or transmitting related operations in the method of any of claims 20-32. The processing module is configured to perform other operations in addition to receiving and / or transmitting related operations in the method of any of claims 20-32. A data processing device, characterized by The device includes a processor configured to load and execute at least one instruction to cause the data processing device to implement the method of data encoding of any of claims 1-13 or 20-32, or implement the method of data decoding of any of claims 14-19. A computer-readable storage medium, characterized by, The computer-readable storage medium stores at least one instruction, which is loaded and executed by the processor to implement the method of data encoding of any of claims 1-13 or 20-32, or implement the method of data decoding of any of claims 14-19. A chip characterized by The chip includes a processor configured to run program instructions or code to cause a device containing the chip to implement the method of data encoding of any of claims 1-13 or 20-32, or implement the method of data decoding of any of claims 14-19. A computer program product, characterized in that The computer program product includes computer program / instructions executed by the processor to cause the computer to implement the method of data encoding of any of claims 1-13 or 20-32, or implement the method of data decoding of any of claims 14-19.

Citation Information

Patent Citations

  • Global unified code distance encoding method

    CN104375837A

  • Polar coding techniques

    CN111201716A

  • Modulation method, demodulation method and communication device

    CN115225201A

  • Minimum Eustachian distance maximized constellation mapping cascade error-correction coding method

    CN1430353A

  • Communication resource allocation for rateless coding

    US20230155728A1