[go: up one dir, main page]

CN106160912A - A kind of coded method, relevant device and system - Google Patents

A kind of coded method, relevant device and system Download PDF

Info

Publication number
CN106160912A
CN106160912A CN201610575049.9A CN201610575049A CN106160912A CN 106160912 A CN106160912 A CN 106160912A CN 201610575049 A CN201610575049 A CN 201610575049A CN 106160912 A CN106160912 A CN 106160912A
Authority
CN
China
Prior art keywords
frame
data
bytes
transmission frame
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610575049.9A
Other languages
Chinese (zh)
Inventor
夏宇
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610575049.9A priority Critical patent/CN106160912A/en
Publication of CN106160912A publication Critical patent/CN106160912A/en
Priority to PCT/CN2017/071768 priority patent/WO2018014529A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0602Systems characterised by the synchronising information used
    • H04J3/0605Special codes used as synchronising signal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

本发明实施例公开了一种编码方法、相关设备及系统,该方法包括:编码终端确定待传输的JESD204B数据中的目标JESD204帧的帧类型;编码终端通过64B66B编码技术对目标JESD204帧进行编码以得到66比特的传输帧;编码终端将传输帧发送给解码终端,解码终端不对帧头携带第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及解码终端不对帧头携带第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。采用本发明实施例的方法,能够提高编码效率。

The embodiment of the present invention discloses an encoding method, related equipment and system. The method includes: the encoding terminal determines the frame type of the target JESD204 frame in the JESD204B data to be transmitted; the encoding terminal encodes the target JESD204 frame by using 64B66B encoding technology to A 66-bit transmission frame is obtained; the encoding terminal sends the transmission frame to the decoding terminal, and the decoding terminal does not carry the first identifier on the frame header and the data carried by each byte of 8 bytes is D28.5 transmission frame for data verification verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0. By adopting the method of the embodiment of the present invention, the coding efficiency can be improved.

Description

一种编码方法、相关设备及系统A kind of encoding method, related equipment and system

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种编码方法、相关设备及系统。The present invention relates to the field of computer technology, in particular to an encoding method, related equipment and a system.

背景技术Background technique

固态半导体工业可靠性标准JESD204系列协议是基于串行器/解串器(英文:SERializer/DESerializer,简称:SERDES)的串行接口标准,用于定义专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)/现场可编程门阵列(英文:Field-Programmable Gate Array,简称:FPGA)与数字模拟转换器(英文:Digital toanalog converter,简称:DAC)/模拟数字转换器(英文:Analog to digital converter,简称:ADC)之间的接口,JESD204B协议定义的拓扑结构如图1所示。下行方向:ASIC/FPGA的中频数据经过JESD204B接口传输给DAC,再经过混频器(英文:Mixer)、功率放大器(英文:Power Amplifier,简称:PA)后从射频空口发送出去。上行方向:从射频空口接收的数据通过低噪声放大器(英文:Low Noise Amplifier,简称:LNA)放大,再通过解调器(英文:Demod)变频到中频频点,然后经过ADC采样后通过JESD204B接口传输给ASIC/FPGA。The solid-state semiconductor industry reliability standard JESD204 series protocol is a serial interface standard based on the serializer/deserializer (English: SERializer/DESerializer, referred to as: SERDES), which is used to define the ASIC (English: Application Specific Integrated Circuit, referred to as : ASIC)/field programmable gate array (English: Field-Programmable Gate Array, referred to as: FPGA) and digital-to-analog converter (English: Digital to analog converter, referred to as: DAC)/analog to digital converter (English: Analog to digital converter , referred to as: ADC), the topology defined by the JESD204B protocol is shown in Figure 1. Downlink direction: The intermediate frequency data of ASIC/FPGA is transmitted to DAC through the JESD204B interface, and then sent out from the radio frequency air interface after passing through the mixer (English: Mixer) and power amplifier (English: Power Amplifier, referred to as: PA). Uplink direction: The data received from the radio frequency air interface is amplified by a low noise amplifier (English: Low Noise Amplifier, referred to as: LNA), and then converted to an intermediate frequency by a demodulator (English: Demod), and then passed through the JESD204B interface after being sampled by the ADC Transfer to ASIC/FPGA.

JESD204B数据是以帧(frame)为单位进行传输的,1个frame包含F个字节,1个多帧(multiframe)中含有K个frame。JESD204B数据由码级同步(CODE SYNC)、初始化通道对齐(英文:Initial Lane Alignment,简称:ILA)序列和业务数据这三种数据组成,这三种数据的结构如图2所示。JESD204B data is transmitted in units of frames, one frame contains F bytes, and one multiframe (multiframe) contains K frames. JESD204B data consists of three types of data: code-level synchronization (CODE SYNC), initial lane alignment (English: Initial Lane Alignment, ILA for short) sequence, and service data. The structures of these three types of data are shown in Figure 2.

码级同步(CODE SYNC)由连续的控制字K(值为K28.5)组成。ILA序列的第二个multiframe依次由控制字R(第一个byte)、控制字Q、控制byte、数据和控制字A(最后一个byte)组成;ILA序列的其他multiframe依次由控制字R(第1个byte)、数据和控制字A(最后1个byte)组成。其中,控制字A(值为K28.3)用于多通道(lane)对齐,控制字F(值为K28.7)用于帧(Frame)对齐(控制字F后面进行介绍),控制字K(值为K28.5)用于码级同步,控制字R(值为K28.0)用于指示ILA序列中多帧的起始,控制字Q(值为K28.4)用于指示ILA序列中控制字的起始。Code-level synchronization (CODE SYNC) consists of continuous control words K (the value is K28.5). The second multiframe of the ILA sequence is composed of control word R (first byte), control word Q, control byte, data and control word A (last byte); other multiframes of the ILA sequence are sequentially composed of control word R (the first byte) 1 byte), data and control word A (last 1 byte). Among them, control word A (value K28.3) is used for multi-lane (lane) alignment, control word F (value K28.7) is used for frame (Frame) alignment (control word F will be introduced later), control word K (value K28.5) is used for code-level synchronization, the control word R (value K28.0) is used to indicate the start of multiple frames in the ILA sequence, and the control word Q (value K28.4) is used to indicate the ILA sequence The beginning of the control word.

为了提高JESD204B数据在链路上的传输特性,需要在该业务数据的数据帧的帧尾插入控制字A或者控制字F,目前可以通过8B10B编码技术对数据帧进行编码来产生特定码型来区分控制字A、控制字F和普通数据。如图3所示,8B10B编码技术是将1组连续的8位数据分解成两组数据,1组为3位的数据,1组为5位的数据,经过编码后分别成为1组4位的数据和1组6位的数据,这两组数据组成1组10位的数据。在数据帧的帧尾插入控制字F或控制字A包括两种情况,以下以图4所示的数据帧为例来进行说明。In order to improve the transmission characteristics of JESD204B data on the link, it is necessary to insert the control word A or control word F at the end of the data frame of the service data. At present, the data frame can be encoded by 8B10B encoding technology to generate a specific pattern to distinguish Control word A, control word F and common data. As shown in Figure 3, the 8B10B encoding technology is to decompose a group of continuous 8-bit data into two groups of data, one group is 3-bit data, and the other is 5-bit data, which become a group of 4-bit data after encoding. Data and a set of 6-bit data, these two sets of data form a set of 10-bit data. Inserting the control word F or the control word A at the frame end of the data frame includes two situations, and the data frame shown in FIG. 4 is taken as an example below for description.

不加扰情况:如图5所示,如果当前frame(不在multiframe的结尾)的最后一个字节与上一帧的最后一个字节相同,则用控制字F=K28.7替代当前frame的最后一个字节。如果上一帧中已经发生过替代,则这一次不进行替换。如果当前frame(在multiframe的结尾)的最后一个字节与上一帧的最后一个字节相同,则用控制字A=K28.3替换当前frame的最后一个字节。No scrambling situation: as shown in Figure 5, if the last byte of the current frame (not at the end of the multiframe) is identical with the last byte of the previous frame, then replace the last byte of the current frame with the control word F=K28.7 one byte. If a replacement has already occurred in the previous frame, it will not be replaced this time. If the last byte of the current frame (at the end of the multiframe) is the same as the last byte of the previous frame, then replace the last byte of the current frame with the control word A=K28.3.

加扰的情况:如图6所示,如果当前帧(不是multiframe的最后一个frame)的最后一个字节等于0xFC(即D28.7),则用控制字F=K28.7替代当前frame的最后一个字节。如果multiframe的最后一个字节等于0x7C(即D28.3),则用控制字A=K28.3替代当前frame的最后一个字节。The situation of scrambling: as shown in Figure 6, if the last byte of current frame (not the last frame of multiframe) is equal to 0xFC (being D28.7), then replace the last byte of current frame with control word F=K28.7 one byte. If the last byte of the multiframe is equal to 0x7C (ie D28.3), then use the control word A=K28.3 to replace the last byte of the current frame.

现有技术的缺陷在于,8B10B技术编码的效率为0.8,这对SERDES速率和SERDES对数要求较高。The defect of the prior art is that the coding efficiency of 8B10B technology is 0.8, which requires relatively high SERDES rate and SERDES logarithm.

发明内容Contents of the invention

本发明实施例公开了一种编码方法、相关设备及系统,能够提高编码效率。The embodiment of the invention discloses an encoding method, related equipment and system, which can improve encoding efficiency.

第一方面,本发明实施例提供了一种编码方法,该方法包括:In a first aspect, an embodiment of the present invention provides an encoding method, which includes:

编码终端确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;The encoding terminal determines the frame type of the target JESD204 frame in the JESD204B data to be transmitted, the frame type in the JESD204B data includes a code-level synchronization frame, an ILA sequence frame and a service data frame, and the target JESD204 frame is composed of 8 bytes ;

所述编码终端通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The encoding terminal encodes the target JESD204 frame by 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the frame header of the transmission frame ;

当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the transmission frame carries a first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;

当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28. 0, the 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the last 7 bytes of the 8 bytes of the ILA sequence frame in one-to-one correspondence;

所述编码终端将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The encoding terminal sends the transmission frame to the decoding terminal, and the decoding terminal does not carry the first identifier in the frame header and the data carried by each byte of 8 bytes is D28.5 transmission frame data verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0.

通过执行上述步骤,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above steps, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B encoding technology Greatly improved coding efficiency.

结合第一方面,在第一方面的第一种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。In combination with the first aspect, in the first possible implementation of the first aspect, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame are all D28.5 , the frame header of the transmission frame carries the second identifier, and the data carried in the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not carry the second identifier and the 8 bytes of data in the frame header The data carried are all D28.5 transmission frames for data verification.

结合第一方面,或者第一方面的第一种可能的实现方式,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In combination with the first aspect, or the first possible implementation of the first aspect, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an A frame, the frame header of the transmission frame carries the first An identification, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one by one Correspondingly carry the data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not carry the first identifier to the frame header and the data carried by the nth byte is the transmission of D28.3 Frame data verification.

结合第一方面,或者第一方面的第一种可能的实现方式,或者第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In combination with the first aspect, or the first possible implementation of the first aspect, or the second possible implementation of the first aspect, in the third possible implementation of the first aspect, when the target JESD204 When the frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28 .7, 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the first 7 bytes of the 8 bytes of the F frame in one-to-one correspondence; The decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.3.

结合第一方面的第二种可能的实现方式,或者第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In combination with the second possible implementation of the first aspect, or the third possible implementation of the first aspect, in the fourth possible implementation of the first aspect, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame carry all the data in one-to-one correspondence The data in the 8 bytes of the service data frame, when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the The second identifier; the decoding terminal does not perform data verification on the transmission frame whose frame header carries the second identifier and the data carried by the nth byte is D28.3, D28.7 or D28.0.

结合第一方面的第二种可能的实现方式,或者第一方面的第三种可能的实现方式,或者第一方面的第四种可能的实现方式,在第一方面的第五种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In combination with the second possible implementation of the first aspect, or the third possible implementation of the first aspect, or the fourth possible implementation of the first aspect, the fifth possible implementation of the first aspect In the mode, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not an A frame and an F frame, the The 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is not D28.3, D28.7 and When D28.0, the frame header of the transmission frame carries the data check code and the inverse of the data check code, and the decoding terminal is used to pass the data check code to the data carried by the nth byte Data verification is not performed for D28.3 transmission frames, D28.7 transmission frames, D28.0 transmission frames, and 8 bytes of data are not all D28.5 transmission frames.

结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the fifth possible implementation of the first aspect, in the sixth possible implementation of the first aspect, the data check code is an odd check code, and the first 1 in the frame header of the transmission frame bits are the odd check code, and the last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the The odd check code, the first bit in the frame header of the transmission frame is the inverse of the odd check code.

结合第一方面的第五种可能的实现方式,在第一方面的第七种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the fifth possible implementation of the first aspect, in the seventh possible implementation of the first aspect, the data check code is an even check code, and the first 1 in the frame header of the transmission frame bits are the even parity code, and the last bit in the frame header of the transmission frame is the inverse code of the even parity code; or the last bit in the frame header of the transmission frame is the The even check code, the first bit in the frame header of the transmission frame is the inverse of the even check code.

结合第一方面的第一种可能的实现方式,或者第一方面的第二种可能的实现方式,或者第一方面的第三种可能的实现方式,或者第一方面的第四种可能的实现方式,或者第一方面的第五种可能的实现方式,或者第一方面的第六种可能的实现方式,或者第一方面的第七种可能的实现方式,在第一方面的第八种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In combination with the first possible implementation of the first aspect, or the second possible implementation of the first aspect, or the third possible implementation of the first aspect, or the fourth possible implementation of the first aspect way, or the fifth possible implementation of the first aspect, or the sixth possible implementation of the first aspect, or the seventh possible implementation of the first aspect, or the eighth possible implementation of the first aspect In an implementation manner, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.

第二方面,本发明实施例提供一种编码方法,该方法包括:In a second aspect, an embodiment of the present invention provides an encoding method, which includes:

解码终端接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The decoding terminal receives the transmission frame sent by the encoding terminal, the transmission frame is obtained by encoding the JESD204 frame by the encoding terminal through 64B66B encoding technology, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the The frame header of the transmission frame;

所述编码终端解析所述传输帧以获取所述8个字节和所述2比特中的数据;The encoding terminal parses the transmission frame to obtain the data in the 8 bytes and the 2 bits;

当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,所述解码终端基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal based on the The data in the 8 bytes generates a code-level synchronization frame, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is D28.5;

当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28.0, the decoding terminal based on the transmission The data in the 8 bytes of the frame generates an ILA sequence frame, and the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the 8 bytes of the ILA sequence frame The data of the 0th byte in the byte is D28.0.

通过执行上述步骤,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above steps, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B encoding technology Greatly improved coding efficiency.

结合第二方面,在第二方面的第一种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。With reference to the second aspect, in the first possible implementation of the second aspect, when the frame header of the transmission frame carries a preset second identifier and the data carried in the 8 bytes of the transmission frame are all D28 .5: the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.

结合第二方面,或者第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。With reference to the second aspect, or the first possible implementation of the second aspect, in the second possible implementation of the second aspect, when the frame header of the transmission frame carries the first identifier and the transmission When the data carried by the nth byte in the 8 bytes of the frame is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the service data frame The 8 bytes carry the data in the 8 bytes of the transmission frame one by one, and the data of the last byte in the 8 bytes of the service data frame is D28.3.

结合第二方面,或者第二方面的第一种可能的实现方式,或者第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。In combination with the second aspect, or the first possible implementation of the second aspect, or the second possible implementation of the second aspect, in the third possible implementation of the second aspect, when the transmission frame When the frame header of the frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes of the transmission frame is D28.7, the decoding terminal based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last byte of the 8 bytes of the business data frame The data is D28.7.

结合第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。With reference to the second possible implementation of the second aspect, or the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, when the frame header of the transmission frame carries a pre- When the second identifier is set and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, the decoding terminal generates a service based on the data in the 8 bytes of the transmission frame In the data frame, the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

结合第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,在第二方面的第五种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In combination with the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, the fifth possible implementation of the second aspect In the manner, when the frame header of the transmission frame carries a preset second identifier and the data carried by the n-th byte in the 8 bytes of the transmission frame is D28.7, the decoding terminal based on the The data in the 8 bytes of the transmission frame is used to generate a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

结合第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,或者第二方面的第五种可能的实现方式,在第二方面的第六种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In combination with the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, or the fifth possible implementation of the second aspect way, in the sixth possible implementation manner of the second aspect, when the frame header of the transmission frame carries a preset second identifier and the n-th byte of the 8 bytes of the transmission frame carries When the data is D28.0, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the 8 bytes of the transmission frame one by one. data in bytes.

结合第二方面,或者第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,或者第二方面的第五种可能的实现方式,或者第二方面的第六种可能的实现方式,在第二方面的第七种可能的实现方式中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;In combination with the second aspect, or the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, or the first possible implementation of the second aspect Five possible implementations, or the sixth possible implementation of the second aspect, in the seventh possible implementation of the second aspect, when the data carried in the 8 bytes of the transmission frame is not all D28 .5, or when the data carried by the nth byte in the 8 bytes of the transmission frame is not D28.0, D28.7 and D28.3, the frame header of the transmission frame contains a data check code and the inverse code of the data check code;

所述解码终端通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding terminal checks the data in the 8 bytes of the transmission frame through the data check code;

当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence Carry the data in the 8 bytes of the transport frame.

结合第二方面的第七种可能的实现方式,在第二方面的第八种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the seventh possible implementation of the second aspect, in the eighth possible implementation of the second aspect, the data check code is an odd check code, and the first 1 in the frame header of the transmission frame bits are the odd check code, and the last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the The odd check code, the first bit in the frame header of the transmission frame is the inverse of the odd check code.

结合第二方面的第七种可能的实现方式,在第二方面的第九种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the seventh possible implementation of the second aspect, in the ninth possible implementation of the second aspect, the data check code is an even check code, and the first 1 in the frame header of the transmission frame bits are the even parity code, and the last bit in the frame header of the transmission frame is the inverse code of the even parity code; or the last bit in the frame header of the transmission frame is the The even check code, the first bit in the frame header of the transmission frame is the inverse of the even check code.

结合第二方面,或者第二方面的第二种可能的实现方式,或者第二方面的第三种可能的实现方式,或者第二方面的第四种可能的实现方式,或者第二方面的第五种可能的实现方式,或者第二方面的第六种可能的实现方式,或者第二方面的第七种可能的实现方式,或者第二方面的第八种可能的实现方式,或者第二方面的第九种可能的实现方式,在第二方面的第十种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In combination with the second aspect, or the second possible implementation of the second aspect, or the third possible implementation of the second aspect, or the fourth possible implementation of the second aspect, or the first possible implementation of the second aspect Five possible implementations, or the sixth possible implementation of the second aspect, or the seventh possible implementation of the second aspect, or the eighth possible implementation of the second aspect, or the second In the ninth possible implementation manner of the second aspect, in the tenth possible implementation manner of the second aspect, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the The second identification is 10.

第三方面,本发明实施例提供一种编码终端,该所述编码终端包括处理器、存储器和收发器:In a third aspect, an embodiment of the present invention provides an encoding terminal, where the encoding terminal includes a processor, a memory, and a transceiver:

所述存储器用于存储数据和程序;The memory is used to store data and programs;

所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls the program in the memory to perform the following operations:

确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;Determine the frame type of the target JESD204 frame in the JESD204B data to be transmitted, the frame type in the JESD204B data includes a code-level synchronization frame, an ILA sequence frame and a service data frame, and the target JESD204 frame is composed of 8 bytes;

通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Encoding the target JESD204 frame by 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are the frame header of the transmission frame;

当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the transmission frame carries a first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;

当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28. 0, the 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the last 7 bytes of the 8 bytes of the ILA sequence frame in one-to-one correspondence;

通过所述收发器将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The transmission frame is sent to the decoding terminal through the transceiver, and the decoding terminal does not do anything to the transmission frame carrying the first identifier in the frame header and the data carried in each byte of 8 bytes is D28.5 Data verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0.

通过执行上述操作,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operations, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B encoding technology Greatly improved coding efficiency.

结合第三方面,在第三方面的第一种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。In combination with the third aspect, in the first possible implementation of the third aspect, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame are all D28.5 , the frame header of the transmission frame carries the second identifier, and the data carried in the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not carry the second identifier and the 8 bytes of data in the frame header The data carried are all D28.5 transmission frames for data verification.

结合第三方面,或者第三方面的第一种可能的实现方式,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In combination with the third aspect, or the first possible implementation of the third aspect, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an A frame, the frame header of the transmission frame carries the first An identification, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one by one Correspondingly carry the data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not carry the first identifier to the frame header and the data carried by the nth byte is the transmission of D28.3 Frame data verification.

结合第三方面,或者第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In combination with the third aspect, or the first possible implementation of the third aspect, or the second possible implementation of the third aspect, in the third possible implementation of the third aspect, when the target JESD204 When the frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28 .7, 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the first 7 bytes of the 8 bytes of the F frame in one-to-one correspondence; The decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.3.

结合第三方面的第二种可能的实现方式,或者第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In combination with the second possible implementation of the third aspect, or the third possible implementation of the third aspect, in the fourth possible implementation of the third aspect, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame carry all the data in one-to-one correspondence The data in the 8 bytes of the service data frame, when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the The second identifier; the decoding terminal does not perform data verification on the transmission frame whose frame header carries the second identifier and the data carried by the nth byte is D28.3, D28.7 or D28.0.

结合第三方面的第二种可能的实现方式,或者第三方面的第三种可能的实现方式,或者第三方面的第四种可能的实现方式,在第三方面的第五种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In combination with the second possible implementation of the third aspect, or the third possible implementation of the third aspect, or the fourth possible implementation of the third aspect, the fifth possible implementation of the third aspect In the mode, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not an A frame and an F frame, the The 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is not D28.3, D28.7 and When D28.0, the frame header of the transmission frame carries the data check code and the inverse of the data check code, and the decoding terminal is used to pass the data check code to the data carried by the nth byte Data verification is not performed for D28.3 transmission frames, D28.7 transmission frames, D28.0 transmission frames, and 8 bytes of data are not all D28.5 transmission frames.

结合第三方面的第五种可能的实现方式,在第三方面的第六种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the fifth possible implementation of the third aspect, in the sixth possible implementation of the third aspect, the data check code is an odd check code, and the first 1 in the frame header of the transmission frame bits are the odd check code, and the last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the The odd check code, the first bit in the frame header of the transmission frame is the inverse of the odd check code.

结合第三方面的第五种可能的实现方式,在第三方面的第七种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the fifth possible implementation of the third aspect, in the seventh possible implementation of the third aspect, the data check code is an even check code, and the first 1 in the frame header of the transmission frame bits are the even parity code, and the last bit in the frame header of the transmission frame is the inverse code of the even parity code; or the last bit in the frame header of the transmission frame is the The even check code, the first bit in the frame header of the transmission frame is the inverse of the even check code.

结合第三方面的第一种可能的实现方式,或者第三方面的第二种可能的实现方式,或者第三方面的第三种可能的实现方式,或者第三方面的第四种可能的实现方式,或者第三方面的第五种可能的实现方式,或者第三方面的第六种可能的实现方式,或者第三方面的第七种可能的实现方式,在第三方面的第八种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In combination with the first possible implementation of the third aspect, or the second possible implementation of the third aspect, or the third possible implementation of the third aspect, or the fourth possible implementation of the third aspect way, or the fifth possible implementation of the third aspect, or the sixth possible implementation of the third aspect, or the seventh possible implementation of the third aspect, or the eighth possible implementation of the third aspect In an implementation manner, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.

第四方面,本发明实施例提供一种解码终端,所述编码终端包括处理器、存储器和收发器:In a fourth aspect, an embodiment of the present invention provides a decoding terminal, the encoding terminal includes a processor, a memory, and a transceiver:

所述存储器用于存储数据和程序;The memory is used to store data and programs;

所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls the program in the memory to perform the following operations:

通过所述收发器接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The transmission frame sent by the encoding terminal is received by the transceiver, the transmission frame is obtained by encoding the JESD204 frame by the encoding terminal through 64B66B encoding technology, the transmission frame is composed of 8 bytes and 2 bits, and the 2 The bit is the frame header of the transmission frame;

解析所述传输帧以获取所述8个字节和所述2比特中的数据;parsing the transmission frame to obtain data in the 8 bytes and the 2 bits;

当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the 8 bytes of the transmission frame The data in the code-level synchronization frame is generated, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is D28.5;

当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the preset n-th byte in the 8 bytes of the transmission frame is D28.0, the transmission frame-based The data in the 8 bytes generates an ILA sequence frame, and the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the 8 bytes of the ILA sequence frame The data of the 0th byte in is D28.0.

通过执行上述操作,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operations, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B encoding technology Greatly improved coding efficiency.

结合第四方面,在第四方面的第一种可能的实现方式中,所述处理器还用于:With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the processor is further configured to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。When the frame header of the transmission frame carries a preset second identifier and the data carried in the 8 bytes of the transmission frame are all D28.5, generate a service based on the data in the 8 bytes of the transmission frame In the data frame, the data carried by each byte of the 8 bytes of the service data frame is D28.5.

结合第四方面,或者第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述处理器还用于:With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the processor is further configured to:

当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last word in the 8 bytes of the business data frame The data in section D28.3.

结合第四方面,或者第四方面的第一种可能的实现方式,或者第四方面的第二种可能的实现方式,在第四方面的第三种可能的实现方式中,所述处理器还用于:With reference to the fourth aspect, or the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the processor further Used for:

当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last word in the 8 bytes of the business data frame Section data is D28.7.

结合第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,在第四方面的第四种可能的实现方式中,所述处理器还用于:With reference to the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, in a fourth possible implementation of the fourth aspect, the processor is further configured to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

结合第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,在第四方面的第五种可能的实现方式中,所述处理器还用于:In combination with the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, or the fourth possible implementation of the fourth aspect, the fifth possible implementation of the fourth aspect In the way, the processor is also used to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

结合第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,或者第四方面的第五种可能的实现方式,在第四方面的第六种可能的实现方式中,所述处理器还用于:In combination with the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, or the fourth possible implementation of the fourth aspect, or the fifth possible implementation of the fourth aspect In a sixth possible implementation manner of the fourth aspect, the processor is further configured to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.0, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

结合第四方面,或者第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,或者第四方面的第五种可能的实现方式,或者第四方面的第六种可能的实现方式,在第四方面的第七种可能的实现方式中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;所述处理器还用于:In combination with the fourth aspect, or the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, or the fourth possible implementation of the fourth aspect, or the first possible implementation of the fourth aspect Five possible implementations, or the sixth possible implementation of the fourth aspect, in the seventh possible implementation of the fourth aspect, when the data carried in the 8 bytes of the transmission frame is not all D28 .5, or when the data carried by the nth byte in the 8 bytes of the transmission frame is not D28.0, D28.7 and D28.3, the frame header of the transmission frame contains a data check code and the inverse code of the data check code; the processor is also used for:

通过所述数据校验码校验所述传输帧的8个字节中的数据;Verifying the data in the 8 bytes of the transmission frame through the data check code;

当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence Carry the data in the 8 bytes of the transport frame.

结合第四方面的第七种可能的实现方式,在第四方面的第八种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the seventh possible implementation of the fourth aspect, in the eighth possible implementation of the fourth aspect, the data check code is an odd check code, and the first 1 in the frame header of the transmission frame bits are the odd check code, and the last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the The odd check code, the first bit in the frame header of the transmission frame is the inverse of the odd check code.

结合第四方面的第七种可能的实现方式,在第四方面的第九种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the seventh possible implementation of the fourth aspect, in the ninth possible implementation of the fourth aspect, the data check code is an even check code, and the first 1 in the frame header of the transmission frame bits are the even parity code, and the last bit in the frame header of the transmission frame is the inverse code of the even parity code; or the last bit in the frame header of the transmission frame is the The even check code, the first bit in the frame header of the transmission frame is the inverse of the even check code.

结合第四方面,或者第四方面的第二种可能的实现方式,或者第四方面的第三种可能的实现方式,或者第四方面的第四种可能的实现方式,或者第四方面的第五种可能的实现方式,或者第四方面的第六种可能的实现方式,或者第四方面的第七种可能的实现方式,或者第四方面的第八种可能的实现方式,或者第四方面的第九种可能的实现方式,在第四方面的第十种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In combination with the fourth aspect, or the second possible implementation of the fourth aspect, or the third possible implementation of the fourth aspect, or the fourth possible implementation of the fourth aspect, or the first possible implementation of the fourth aspect Five possible implementations, or the sixth possible implementation of the fourth aspect, or the seventh possible implementation of the fourth aspect, or the eighth possible implementation of the fourth aspect, or the fourth aspect In the ninth possible implementation manner of the fourth aspect, in the tenth possible implementation manner of the fourth aspect, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the The second identification is 10.

第五方面,本发明实施例提供一种编码终端,该编码终端包括:In a fifth aspect, an embodiment of the present invention provides an encoding terminal, which includes:

确定单元,用于确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;The determination unit is used to determine the frame type of the target JESD204 frame in the JESD204B data to be transmitted, the frame type in the JESD204B data includes a code-level synchronization frame, an ILA sequence frame and a service data frame, and the target JESD204 frame consists of 8 byte composition;

编码单元,用于通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;An encoding unit, configured to encode the target JESD204 frame through 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are a frame of the transmission frame head;

当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the transmission frame carries a first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;

当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28. 0, the 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the last 7 bytes of the 8 bytes of the ILA sequence frame in one-to-one correspondence;

发送单元,用于将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。A sending unit, configured to send the transmission frame to a decoding terminal, and the decoding terminal does not perform any processing on a transmission frame whose frame header carries the first identifier and each of the 8 bytes carries data of D28.5 Data verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0.

通过运行上述功能单元,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above functional units, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with the 8B10B encoding technology In terms of greatly improving the coding efficiency.

结合第五方面,在第五方面的第一种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。With reference to the fifth aspect, in the first possible implementation of the fifth aspect, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame are all D28.5 , the frame header of the transmission frame carries the second identifier, and the data carried in the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not carry the second identifier and the 8 bytes of data in the frame header The data carried are all D28.5 transmission frames for data verification.

结合第五方面,或者第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。With reference to the fifth aspect, or the first possible implementation of the fifth aspect, in the second possible implementation of the fifth aspect, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame When it is an A frame, the frame header of the transmission frame carries the first identification, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the 8 bytes of the transmission frame The 7 bytes except the nth byte carry the data in the first 7 bytes of the 8 bytes of the A frame in one-to-one correspondence; the decoding terminal does not carry the first identifier on the frame header and The data carried by the nth byte is used for data verification of the transmission frame of D28.3.

结合第五方面,或者第五方面的第一种可能的实现方式,或者第五方面的第二种可能的实现方式,在第五方面的第三种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In combination with the fifth aspect, or the first possible implementation of the fifth aspect, or the second possible implementation of the fifth aspect, in the third possible implementation of the fifth aspect, when the target JESD204 When the frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame header of the transmission frame carries the first identifier, and the data carried by the nth byte of the 8 bytes of the transmission frame is D28 .7, 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the first 7 bytes of the 8 bytes of the F frame in one-to-one correspondence; The decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.3.

结合第五方面的第二种可能的实现方式,或者第五方面的第三种可能的实现方式,在第五方面的第四种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In combination with the second possible implementation of the fifth aspect, or the third possible implementation of the fifth aspect, in the fourth possible implementation of the fifth aspect, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame carry all the data in one-to-one correspondence The data in the 8 bytes of the service data frame, when the data carried by the nth byte of the transmission frame is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the The second identifier; the decoding terminal does not perform data verification on the transmission frame whose frame header carries the second identifier and the data carried by the nth byte is D28.3, D28.7 or D28.0.

结合第五方面的第二种可能的实现方式,或者第五方面的第三种可能的实现方式,或者第五方面的第四种可能的实现方式,在第五方面的第五种可能的实现方式中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In combination with the second possible implementation of the fifth aspect, or the third possible implementation of the fifth aspect, or the fourth possible implementation of the fifth aspect, the fifth possible implementation of the fifth aspect In the mode, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not an A frame and an F frame, the The 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is not D28.3, D28.7 and When D28.0, the frame header of the transmission frame carries the data check code and the inverse of the data check code, and the decoding terminal is used to pass the data check code to the data carried by the nth byte Data verification is not performed for D28.3 transmission frames, D28.7 transmission frames, D28.0 transmission frames, and 8 bytes of data are not all D28.5 transmission frames.

结合第五方面的第五种可能的实现方式,在第五方面的第六种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the fifth possible implementation of the fifth aspect, in the sixth possible implementation of the fifth aspect, the data check code is an odd check code, and the first 1 in the frame header of the transmission frame bits are the odd check code, and the last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the The odd check code, the first bit in the frame header of the transmission frame is the inverse of the odd check code.

结合第五方面的第五种可能的实现方式,在第五方面的第七种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the fifth possible implementation of the fifth aspect, in the seventh possible implementation of the fifth aspect, the data check code is an even check code, and the first 1 in the frame header of the transmission frame bits are the even parity code, and the last bit in the frame header of the transmission frame is the inverse code of the even parity code; or the last bit in the frame header of the transmission frame is the The even check code, the first bit in the frame header of the transmission frame is the inverse of the even check code.

结合第五方面的第一种可能的实现方式,或者第五方面的第二种可能的实现方式,或者第五方面的第三种可能的实现方式,或者第五方面的第四种可能的实现方式,结合第五方面的第五种可能的实现方式,或者第五方面的第六种可能的实现方式,或者第五方面的第七种可能的实现方式,在第五方面的第八种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In combination with the first possible implementation of the fifth aspect, or the second possible implementation of the fifth aspect, or the third possible implementation of the fifth aspect, or the fourth possible implementation of the fifth aspect way, in combination with the fifth possible implementation of the fifth aspect, or the sixth possible implementation of the fifth aspect, or the seventh possible implementation of the fifth aspect, the eighth possible implementation of the fifth aspect In an implementation manner, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.

第六方面,本发明实施例提供一种解码终端,该解码终端包括:In a sixth aspect, an embodiment of the present invention provides a decoding terminal, where the decoding terminal includes:

接收单元,用于接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The receiving unit is used to receive the transmission frame sent by the encoding terminal, the transmission frame is obtained by encoding the JESD204 frame by the encoding terminal through 64B66B encoding technology, the transmission frame is composed of 8 bytes and 2 bits, and the 2 The bit is the frame header of the transmission frame;

解析单元,用于解析所述传输帧以获取所述8个字节和所述2比特中的数据;a parsing unit, configured to parse the transmission frame to obtain the data in the 8 bytes and the 2 bits;

解码单元,用于在所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;The decoding unit is configured to, when the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the transmission frame The data in the 8 bytes of the code-level synchronization frame is generated, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is D28.5;

所述解码单元,还用于在所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。The decoding unit is further configured to: when the frame header of the transmission frame carries the first identifier and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28.0, Generate an ILA sequence frame based on the data in the 8 bytes of the transmission frame, the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the ILA sequence The data of the 0th byte in the 8 bytes of the frame is D28.0.

结合第六方面,在第六方面的第一种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。With reference to the sixth aspect, in the first possible implementation of the sixth aspect, when the frame header of the transmission frame carries a preset second identifier and the data carried in the 8 bytes of the transmission frame are all D28 .5: the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.

结合第六方面,或者第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。With reference to the sixth aspect, or the first possible implementation of the sixth aspect, in the second possible implementation of the sixth aspect, when the frame header of the transmission frame carries the first identifier and the transmission When the data carried by the nth byte in the 8 bytes of the frame is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the service data frame The 8 bytes carry the data in the 8 bytes of the transmission frame one by one, and the data of the last byte in the 8 bytes of the service data frame is D28.3.

结合第六方面,或者第六方面的第一种可能的实现方式,或者第六方面的第二种可能的实现方式,在第六方面的第三种可能的实现方式中,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。With reference to the sixth aspect, or the first possible implementation of the sixth aspect, or the second possible implementation of the sixth aspect, in the third possible implementation of the sixth aspect, when the transmission frame When the frame header of the frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes of the transmission frame is D28.7, the decoding terminal based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last byte of the 8 bytes of the business data frame The data is D28.7.

结合第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,在第六方面的第四种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。With reference to the second possible implementation of the sixth aspect, or the third possible implementation of the sixth aspect, in the fourth possible implementation of the sixth aspect, when the frame header of the transmission frame carries a pre- When the second identifier is set and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, the decoding terminal generates a service based on the data in the 8 bytes of the transmission frame In the data frame, the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

结合第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,在第六方面的第五种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In combination with the second possible implementation of the sixth aspect, or the third possible implementation of the sixth aspect, or the fourth possible implementation of the sixth aspect, the fifth possible implementation of the sixth aspect In the manner, when the frame header of the transmission frame carries a preset second identifier and the data carried by the n-th byte in the 8 bytes of the transmission frame is D28.7, the decoding terminal based on the The data in the 8 bytes of the transmission frame is used to generate a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

结合第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,或者第六方面的第五种可能的实现方式,在第六方面的第六种可能的实现方式中,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In combination with the second possible implementation of the sixth aspect, or the third possible implementation of the sixth aspect, or the fourth possible implementation of the sixth aspect, or the fifth possible implementation of the sixth aspect way, in the sixth possible implementation manner of the sixth aspect, when the frame header of the transmission frame carries a preset second identifier and the nth byte of the 8 bytes of the transmission frame carries When the data is D28.0, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the 8 bytes of the transmission frame one by one. data in bytes.

结合第六方面,或者第六方面的第一种可能的实现方式,或者第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,或者第六方面的第五种可能的实现方式,或者第六方面的第六种可能的实现方式,在第六方面的第七种可能的实现方式中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;In combination with the sixth aspect, or the first possible implementation of the sixth aspect, or the second possible implementation of the sixth aspect, or the third possible implementation of the sixth aspect, or the first possible implementation of the sixth aspect Four possible implementations, or the fifth possible implementation of the sixth aspect, or the sixth possible implementation of the sixth aspect, in the seventh possible implementation of the sixth aspect, when the The data carried by the 8 bytes of the transmission frame is not all D28.5, or when the data carried by the nth byte of the 8 bytes of the transmission frame is not D28.0, D28.7 and D28.3 , the frame header of the transmission frame includes a data check code and the inverse of the data check code;

所述解码终端通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding terminal checks the data in the 8 bytes of the transmission frame through the data check code;

当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence Carry the data in the 8 bytes of the transport frame.

结合第六方面的第七种可能的实现方式,在第六方面的第八种可能的实现方式中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。With reference to the seventh possible implementation of the sixth aspect, in the eighth possible implementation of the sixth aspect, the data check code is an odd check code, and the first 1 in the frame header of the transmission frame bits are the odd check code, and the last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the The odd check code, the first bit in the frame header of the transmission frame is the inverse of the odd check code.

结合第六方面的第七种可能的实现方式,在第六方面的第九种可能的实现方式中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。With reference to the seventh possible implementation of the sixth aspect, in the ninth possible implementation of the sixth aspect, the data check code is an even check code, and the first 1 in the frame header of the transmission frame bits are the even parity code, and the last bit in the frame header of the transmission frame is the inverse code of the even parity code; or the last bit in the frame header of the transmission frame is the The even check code, the first bit in the frame header of the transmission frame is the inverse of the even check code.

结合第六方面的第一种可能的实现方式,或者第六方面的第二种可能的实现方式,或者第六方面的第三种可能的实现方式,或者第六方面的第四种可能的实现方式,或者第六方面的第五种可能的实现方式,或者第六方面的第六种可能的实现方式,或者第六方面的第七种可能的实现方式,或者第六方面的第八种可能的实现方式,或者第六方面的第九种可能的实现方式,在第六方面的第十种可能的实现方式中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In combination with the first possible implementation of the sixth aspect, or the second possible implementation of the sixth aspect, or the third possible implementation of the sixth aspect, or the fourth possible implementation of the sixth aspect way, or the fifth possible implementation of the sixth aspect, or the sixth possible implementation of the sixth aspect, or the seventh possible implementation of the sixth aspect, or the eighth possible implementation of the sixth aspect or the ninth possible implementation manner of the sixth aspect. In the tenth possible implementation manner of the sixth aspect, the first identifier is 10 and the second identifier is 01, or the The first identifier is 01 and the second identifier is 10.

通过运行上述功能单元,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above functional units, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with the 8B10B encoding technology In terms of greatly improving the coding efficiency.

第七方面,本发明实施例提供一种编码系统,所述编码系统包括编码终端和解码终端,所述编码终端为第三方面任一实现方式所描述的编码终端,或者第五方面所描述的编码终端;所述解码终端为第四方面任一实现方式所描述的解码终端,或者第六方面所描述的编码终端。In the seventh aspect, an embodiment of the present invention provides an encoding system, the encoding system includes an encoding terminal and a decoding terminal, and the encoding terminal is the encoding terminal described in any implementation manner of the third aspect, or the encoding terminal described in the fifth aspect. An encoding terminal; the decoding terminal is the decoding terminal described in any implementation manner of the fourth aspect, or the encoding terminal described in the sixth aspect.

通过运行上述系统,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above system, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with the 8B10B encoding technology The language greatly improves the coding efficiency.

通过实施本发明实施例,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By implementing the embodiment of the present invention, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B encoding technology In terms of greatly improving the coding efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是现有技术中JESD204B协议定义的拓扑结构示意图;FIG. 1 is a schematic diagram of a topology defined by the JESD204B protocol in the prior art;

图2是现有技术中基于JESD204B协议的数据的结构示意图;FIG. 2 is a schematic structural diagram of data based on the JESD204B protocol in the prior art;

图3是现有技术中基于8B10B编码技术编码的场景示意图;FIG. 3 is a schematic diagram of a scene encoded based on 8B10B encoding technology in the prior art;

图4是现有技术中的一种数据帧的结构示意图;Fig. 4 is a schematic structural diagram of a data frame in the prior art;

图5是现有技术中的又一种数据帧的结构示意图;Fig. 5 is a schematic structural diagram of another data frame in the prior art;

图6是现有技术中的又一种数据帧的结构示意图;Fig. 6 is a schematic structural diagram of another data frame in the prior art;

图7是本发明实施例提供的一种编码方法的流程示意图;FIG. 7 is a schematic flowchart of an encoding method provided by an embodiment of the present invention;

图8是本发明实施例提供的一种数据的结构示意图;Fig. 8 is a schematic structural diagram of data provided by an embodiment of the present invention;

图9是本发明实施例提供的一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 9 is a schematic diagram of a scene converted from a target JESD204 frame to a transmission frame provided by an embodiment of the present invention;

图10是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 10 is another schematic diagram of a scene converted from a target JESD204 frame to a transmission frame provided by an embodiment of the present invention;

图11是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 11 is a schematic diagram of another scene conversion from a target JESD204 frame to a transmission frame provided by an embodiment of the present invention;

图12是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 12 is a schematic diagram of another scene conversion from a target JESD204 frame to a transmission frame provided by an embodiment of the present invention;

图13是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 13 is a schematic diagram of another scene conversion from a target JESD204 frame to a transmission frame provided by an embodiment of the present invention;

图14是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;Fig. 14 is a schematic diagram of another scene conversion from a target JESD204 frame to a transmission frame provided by an embodiment of the present invention;

图15是本发明实施例提供的又一种由目标JESD204帧转换到传输帧的场景示意图;FIG. 15 is a schematic diagram of another scene conversion from a target JESD204 frame to a transmission frame provided by an embodiment of the present invention;

图16是本发明实施例提供的一种数据校验码的场景示意图;Fig. 16 is a schematic diagram of a scenario of a data verification code provided by an embodiment of the present invention;

图17是本发明实施例提供的一种数据校验码的场景示意图;Fig. 17 is a schematic diagram of a scenario of a data verification code provided by an embodiment of the present invention;

图18是本发明实施例提供的一种数据校验码的场景示意图;Fig. 18 is a schematic diagram of a scenario of a data verification code provided by an embodiment of the present invention;

图19是本发明实施例提供的一种数据校验码的场景示意图;Fig. 19 is a schematic diagram of a scenario of a data verification code provided by an embodiment of the present invention;

图20是本发明实施例提供的一种编码终端的结构示意图;FIG. 20 is a schematic structural diagram of an encoding terminal provided by an embodiment of the present invention;

图21是本发明实施例提供的一种解码终端的结构示意图;FIG. 21 is a schematic structural diagram of a decoding terminal provided by an embodiment of the present invention;

图22是本发明实施例提供的又一种编码终端的结构示意图;FIG. 22 is a schematic structural diagram of another encoding terminal provided by an embodiment of the present invention;

图23是本发明实施例提供的又一种解码终端的结构示意图;FIG. 23 is a schematic structural diagram of another decoding terminal provided by an embodiment of the present invention;

图24是本发明实施例提供的一种编码系统的结构示意图。Fig. 24 is a schematic structural diagram of an encoding system provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合附图对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.

请参见图7,图7是本发明实施例提供的一种编码方法的流程示意图,该方法包括但不限于如下步骤。Please refer to FIG. 7 . FIG. 7 is a schematic flowchart of an encoding method provided by an embodiment of the present invention. The method includes but is not limited to the following steps.

步骤S701:编码终端判断待传输的JESD204数据中的目标JESD204帧的帧类型。Step S701: the encoding terminal judges the frame type of the target JESD204 frame in the JESD204 data to be transmitted.

具体地,JESD204数据具体是指基于JESD204系列协议的数据,例如,目前使用较为成熟的JESD204B协议、以后可能演进出的JESD204C协议等。以JESD204B协议为例,该待传输的JESD204数据由至少一个multiframe(多帧)组成,每个multiframe包括K个frame,每个frame包含F个字节,其中,K和F均为正整数。Specifically, the JESD204 data specifically refers to data based on the JESD204 series protocols, for example, the relatively mature JESD204B protocol currently used, the JESD204C protocol that may evolve in the future, and the like. Taking the JESD204B protocol as an example, the JESD204 data to be transmitted consists of at least one multiframe (multi-frame), each multiframe includes K frames, and each frame includes F bytes, where K and F are both positive integers.

而本发明实施例将该JESD204数据重新以8byte为单位进行切分得到多个规格为64bit Block的JESD204帧,也即是说,frame和mulftiframe为现有技术中定义的量,而JESD204帧为本发明定义的量;由于该JESD204数据包括码级同步、ILA序列和业务数据三个部分,因此该JESD204帧可对应划分为码级同步帧、ILA序列帧和业务数据帧这三种帧类型。通常情况下,该编码终端可以通过本地状态机来确定该目标JESD204帧的帧类型。In the embodiment of the present invention, the JESD204 data is re-segmented in units of 8 bytes to obtain multiple JESD204 frames with a specification of 64bit Block, that is to say, frame and mulftiframe are defined in the prior art, and JESD204 frames The amount defined by the invention; since the JESD204 data includes three parts: code-level synchronization, ILA sequence and service data, the JESD204 frame can be correspondingly divided into three frame types: code-level synchronization frame, ILA sequence frame and service data frame. Normally, the encoding terminal can determine the frame type of the target JESD204 frame through a local state machine.

以图8为例,以上描述的8个字节按照顺序可以依次称为第0个字节、第1个字节、第2个字节、第3个字节、第4个字节、第5个字节、第6个字节和第7个字节,其中,第0个字节为最前一个字节,第7个字节为最后一个字节。Taking Figure 8 as an example, the 8 bytes described above can be called the 0th byte, the 1st byte, the 2nd byte, the 3rd byte, the 4th byte, and the 5 bytes, the 6th byte and the 7th byte, wherein, the 0th byte is the first byte, and the 7th byte is the last byte.

步骤S702:该编码终端通过64B66B编码技术对该目标JESD204帧进行编码以得到66比特的传输帧,该传输帧由8个字节和2比特组成且该2比特为该传输帧的帧头。Step S702: The encoding terminal encodes the target JESD204 frame by 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame consists of 8 bytes and 2 bits, and the 2 bits are the frame header of the transmission frame.

具体地,该编码终端对不同帧类型的JESD204帧的编码方式不同。Specifically, the encoding terminal encodes JESD204 frames of different frame types in different ways.

当该目标JESD204帧属于该码级同步帧时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节的每个字节携带的数据均为D28.5。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图9所示。When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the encoded transmission frame carries the first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5. Optionally, the data corresponding relationship of the transmission frame obtained by coding the target JESD204 frame is shown in FIG. 9 .

当该目标JESD204帧属于该ILA序列帧且该目标JESD204帧的第0个字节为控制字R时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节中预设的第n个字节携带的数据为D28.0,该传输帧的8个字节中除第n个字节外的7个字节一一对应携带该ILA序列帧的8个字节中的后7个字节中的数据。When the target JESD204 frame belongs to the ILA sequence frame and the 0th byte of the target JESD204 frame is the control word R, the frame header of the encoded transmission frame carries the first identifier, and the 8 bytes of the transmission frame The preset data carried by the nth byte is D28.0, and the 7 bytes except the nth byte in the 8 bytes of the transmission frame correspond to the 8 bytes of the ILA sequence frame The data in the last 7 bytes in.

具体地,该第n个字节为该8个字节中哪个字节,以及该传输帧的8个字节中除第n个字节外的7个字节与该ILA序列帧的8个字节中的后7个字节如何一一对应均可以通过预设规则预定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图10所示。Specifically, which byte is the nth byte in the 8 bytes, and the 7 bytes except the nth byte in the 8 bytes of the transmission frame and the 8 bytes of the ILA sequence frame The one-to-one correspondence of the last 7 bytes in the bytes can be predefined by a preset rule, so that when the decoding terminal subsequently receives the transmission frame, it can successfully decode (parse) the transmission frame based on the preset rule. Optionally, the data corresponding relationship of the transmission frame obtained by coding the target JESD204 frame is shown in FIG. 10 .

在一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧的8个字节携带的数据均为D28.5时,编码得到的该传输帧的帧头携带第二标识,该传输帧的8个字节携带的数据均为D28.5。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图11所示。In an optional solution, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame are all D28.5, the frame header of the encoded transmission frame carries the first Second, the data carried in the 8 bytes of the transmission frame are all D28.5. Optionally, the data corresponding relationship of the transmission frame obtained by coding the target JESD204 frame is shown in FIG. 11 .

在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧或ILA序列帧,并且该目标JESD204帧为A帧时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节的第n个字节携带的数据为D28.3,该传输帧的8个字节中除第n个字节外的7个字节一一对应携带该A帧的8个字节中的除控制字A以外的其他7个字节中的数据。In yet another optional solution, when the target JESD204 frame belongs to the service data frame or the ILA sequence frame, and the target JESD204 frame is an A frame, the frame header of the encoded transmission frame carries a first identifier, and the The data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the 7 bytes of the 8 bytes of the transmission frame except the nth byte correspond to the A frame Data in the other 7 bytes of the 8 bytes except the control word A.

具体地,该传输帧的8个字节中除第n个字节外的7个字节与该A帧的8个字节中的前7个字节具体如何一一对应可以通过该预设规则预定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图12所示。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图13所示。可选的,当该目标JESD204帧属于ILA帧且该目标JESD204帧的第7个字节的值为JESD204数据中的控制字A时,该目标JESD204帧为A帧。Specifically, the one-to-one correspondence between the 7 bytes of the 8 bytes of the transmission frame except the n-th byte and the first 7 bytes of the 8 bytes of the A frame can be determined through the preset The rules are predefined, so that when the decoding terminal subsequently receives the transmission frame, it can successfully decode (parse) the transmission frame based on the preset rule. Optionally, the data corresponding relationship of the transmission frame obtained by coding the target JESD204 frame is shown in FIG. 12 . Optionally, the data corresponding relationship of the transmission frame obtained by coding the target JESD204 frame is shown in FIG. 13 . Optionally, when the target JESD204 frame belongs to the ILA frame and the value of the seventh byte of the target JESD204 frame is the control word A in the JESD204 data, the target JESD204 frame is an A frame.

可选的,该目标JESD204帧未加扰,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame is not scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame are not replaced, and the transmission frame obtained after encoding processing also belongs to the A frame, and the four conditions are as follows:

1、该目标JESD204帧内只包含或小于上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理。1. The target JESD204 frame only contains or is less than a frame of F bytes in the above-mentioned multiframe; in the embodiment of the present invention, when the JESD204 frame contains less than 1 frame of data, it can be processed according to 1 frame; when the JESD204 frame When the number of contained data is greater than 1 frame, it can be processed according to multiple frames.

2、该frame为该multiframe中的的最后一帧;2. The frame is the last frame in the multiframe;

3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the frame is the last byte of the target JESD204 frame;

4、该frame的最后一个字节的数据与该frame的前一个frame的最后一个字节的数据相同。4. The data of the last byte of this frame is the same as the data of the last byte of the previous frame of this frame.

可选的,该目标JESD204帧未加扰,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame is not scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame are not replaced, and the transmission frame obtained after encoding processing also belongs to the A frame, and the four conditions are as follows:

1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD204 frame contains multiple F-byte frames in the above multiframe;

2、该多个frame中的最后一个frame为该multiframe的最后一个frame;2. The last frame of the multiple frames is the last frame of the multiframe;

3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the last frame is in the last byte of the target JESD204 frame;

4、该最后一个frame的最后一个字节的数据与该最后一个frame的前一个frame的最后一个字节的数据相同。4. The data of the last byte of the last frame is the same as the data of the last byte of the previous frame of the last frame.

可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame has been scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame are not replaced, and the transmission frame obtained after encoding processing also belongs to the A frame, and the four conditions are as follows:

1、该目标JESD204帧内只包含上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理;1. The target JESD204 frame only contains a frame of F bytes in the above multiframe; in the embodiment of the present invention, when the JESD204 frame contains less than 1 frame of data, it can be processed according to 1 frame; when the JESD204 frame contains data When the number is greater than 1 frame, it can be processed according to multiple frames;

2、该frame为该multiframe中的的最后一帧;2. The frame is the last frame in the multiframe;

3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the frame is the last byte of the target JESD204 frame;

4、该目标JESD204帧的最后一个字节的数据为D28.3。4. The data of the last byte of the target JESD204 frame is D28.3.

可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于A帧,将目标JESD204帧的第x个字节替换为控制字A(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于A帧,4个条件如下:Optionally, the target JESD204 frame has been scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to the A frame, and the xth byte of the target JESD204 frame is replaced with the control word A (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame are not replaced, and the transmission frame obtained after encoding processing also belongs to the A frame, and the four conditions are as follows:

1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD204 frame contains multiple F-byte frames in the above multiframe;

2、该多个frame中的最后一个frame为该multiframe的最后一个frame;2. The last frame of the multiple frames is the last frame of the multiframe;

3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the last frame is in the last byte of the target JESD204 frame;

4、该目标JESD204帧的最后一个字节的数据为D28.3。4. The data of the last byte of the target JESD204 frame is D28.3.

在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧为F帧时,编码得到的该传输帧的帧头携带第一标识,该传输帧的8个字节的第n个字节携带的数据为D28.7,该传输帧的8个字节中除第n个字节外的7个字节一一对应携带该F帧的8个字节中的除控制字F以外的其他7个字节中的数据;该解码终端不对帧头携带该第一标识且第n个字节携带的数据为D28.7的传输帧做奇偶校验。In another optional solution, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame header of the encoded transmission frame carries the first identifier, and the 8 transmission frames of the transmission frame The data carried by the nth byte of the byte is D28.7, and the 7 bytes except the nth byte in the 8 bytes of the transmission frame correspond to the 8 bytes of the F frame The data in the other 7 bytes except the control word F; the decoding terminal does not perform parity check on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.7.

具体地,该该传输帧的8个字节中除第n个字节外的7个字节与该F帧的8个字节中的前7个字节具体如何一一对应可以通过该预设规则预定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图14所示。可选的,由该目标JESD204帧编码得到该传输帧的数据对应关系如图15所示。Specifically, the one-to-one correspondence between the 7 bytes of the 8 bytes of the transmission frame except the nth byte and the first 7 bytes of the 8 bytes of the F frame can be determined through the preset It is assumed that the rules are predefined, so that when the decoding terminal subsequently receives the transmission frame, it can successfully decode (parse) the transmission frame based on the preset rule. Optionally, the data corresponding relationship of the transmission frame obtained by coding the target JESD204 frame is shown in FIG. 14 . Optionally, the data corresponding relationship of the transmission frame obtained by coding the target JESD204 frame is shown in FIG. 15 .

可选的,该目标JESD204帧未加扰,如果满足如下5个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,5个条件如下:Optionally, the target JESD204 frame is not scrambled. If the following five conditions are met, the target JESD204 frame can be regarded as belonging to an F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame are not replaced, and the transmission frame obtained after encoding processing also belongs to the F frame, and the five conditions are as follows:

1、该目标JESD204帧内只包含上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理。1. The target JESD204 frame only contains a frame of F bytes in the above multiframe; in the embodiment of the present invention, when the JESD204 frame contains less than 1 frame of data, it can be processed according to 1 frame; when the JESD204 frame contains data When the number is greater than 1 frame, it can be processed according to multiple frames.

2、该frame不为该multiframe中的的最后一帧;2. The frame is not the last frame in the multiframe;

3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the frame is the last byte of the target JESD204 frame;

4、该frame的前一个frame未发生过替换;4. The previous frame of this frame has not been replaced;

5、该frame的最后一个字节的数据与该frame的前一个frame的最后一个字节的数据相同。5. The data of the last byte of this frame is the same as the data of the last byte of the previous frame of this frame.

可选的,该目标JESD204帧未加扰,如果满足如下4个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,4个条件如下:Optionally, the target JESD204 frame is not scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to an F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame will not be replaced, and the transmission frame obtained after encoding processing also belongs to the F frame. The four conditions are as follows:

1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD204 frame contains multiple F-byte frames in the above multiframe;

2、该多个frame中的最后一个frame不为该multiframe的最后一个frame;2. The last frame of the multiple frames is not the last frame of the multiframe;

3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the last frame is in the last byte of the target JESD204 frame;

4、该最后一个frame的最后一个字节的数据与该最后一个frame的前一个frame的最后一个字节的数据相同。4. The data of the last byte of the last frame is the same as the data of the last byte of the previous frame of the last frame.

可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,4个条件如下:Optionally, the target JESD204 frame has been scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to an F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame will not be replaced, and the transmission frame obtained after encoding processing also belongs to the F frame. The four conditions are as follows:

1、该目标JESD204帧内只包含上述multiframe中的一个F字节的frame;在本发明实施例中,当JESD204帧包含数据个数小于1frame时,可以按照1个frame处理;当JESD204帧包含数据个数大于1frame时,可以按照多个frame处理;1. The target JESD204 frame only contains a frame of F bytes in the above multiframe; in the embodiment of the present invention, when the JESD204 frame contains less than 1 frame of data, it can be processed according to 1 frame; when the JESD204 frame contains data When the number is greater than 1 frame, it can be processed according to multiple frames;

2、该frame不为该multiframe中的最后一帧;2. The frame is not the last frame in the multiframe;

3、该frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the frame is the last byte of the target JESD204 frame;

4、该目标JESD204帧的最后一个字节的数据为D28.7。4. The data of the last byte of the target JESD204 frame is D28.7.

可选的,该目标JESD204帧加扰过,如果满足如下4个条件,则该目标JESD204帧可看做属于F帧,将目标JESD204帧的第x个字节替换为控制字F(后面条件中以第x个字节为最后一个字节为例进行描述),且该目标JESD204帧的其他数据不进行替换,进行编码处理后得到的传输帧也属于F帧,4个条件如下:Optionally, the target JESD204 frame has been scrambled. If the following four conditions are met, the target JESD204 frame can be regarded as belonging to an F frame, and the xth byte of the target JESD204 frame is replaced with the control word F (in the following conditions Take the xth byte as the last byte as an example for description), and other data of the target JESD204 frame will not be replaced, and the transmission frame obtained after encoding processing also belongs to the F frame. The four conditions are as follows:

1、该目标JESD204帧内包含上述multiframe中的多个F字节的frame;1. The target JESD204 frame contains multiple F-byte frames in the above multiframe;

2、该多个frame中的最后一个frame不为该multiframe的最后一个frame;2. The last frame of the multiple frames is not the last frame of the multiframe;

3、该最后一个frame的最后一个字节的数据在该目标JESD204帧的最后一个字节;3. The data of the last byte of the last frame is in the last byte of the target JESD204 frame;

4、该目标JESD204帧的最后一个字节的数据为D28.7。4. The data of the last byte of the target JESD204 frame is D28.7.

在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧的8个字节携带的数据不全为D28.5以及该目标JESD204帧不为A帧和F帧时,编码得到的该传输帧的8个字节一一对应携带该业务数据帧的8个字节中的数据,当该传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,该传输帧的帧头携带该第二标识,需要说明的是,数值D28.3对应的16进制数为0x7C,数值D28.7对应的16进制数为0xFC,数值D28.5对应的16进制数为0xBC,数值D28.0对应的16进制数为0x1C,数值D28.4对应的16进制数为0x9C。In another optional solution, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not A frame and F frame , the 8 bytes of the transmission frame obtained by encoding correspond to the data in the 8 bytes of the service data frame, when the data carried by the nth byte of the transmission frame is D28.3, D28. 7 or D28.0, the frame header of the transmission frame carries the second identifier. It should be noted that the hexadecimal number corresponding to the value D28.3 is 0x7C, and the hexadecimal number corresponding to the value D28.7 is 0xFC. The hexadecimal number corresponding to the value D28.5 is 0xBC, the hexadecimal number corresponding to the value D28.0 is 0x1C, and the hexadecimal number corresponding to the value D28.4 is 0x9C.

具体地,编码得到的该传输帧的8个字节与该业务数据帧的8个字节具体如何一一对应可以通过该预设规则预先定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。Specifically, the one-to-one correspondence between the encoded 8 bytes of the transmission frame and the 8 bytes of the service data frame can be predefined by the preset rule, so that when the decoding terminal subsequently receives the transmission frame, it can The transmission frame is successfully decoded (parsed) based on the preset rule.

在又一种可选的方案中,当该目标JESD204帧属于该业务数据帧且该目标JESD204帧的8个字节携带的数据不全为D28.5以及该目标JESD204帧不为A帧和F帧时,编码得到的该传输帧的8个字节一一对应携带该业务数据帧的8个字节中的数据,当该传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,该传输帧的帧头携带数据校验码和该数据校验码的反码,该数据校验码可以为奇偶校验码。In another optional solution, when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not A frame and F frame , the encoded 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is not D28.3, D28 .7 and D28.0, the frame header of the transmission frame carries a data check code and the inverse of the data check code, and the data check code can be a parity check code.

具体地,编码得到的该传输帧的8个字节与该业务数据帧的8个字节具体如何一一对应可以通过该预设规则预先定义好,以便解码终端后续接收到该传输帧时可以基于该预设规则顺利解码(解析)该传输帧。Specifically, the one-to-one correspondence between the encoded 8 bytes of the transmission frame and the 8 bytes of the service data frame can be predefined by the preset rule, so that when the decoding terminal subsequently receives the transmission frame, it can The transmission frame is successfully decoded (parsed) based on the preset rule.

可选的,该奇偶校验码为奇校验码,该传输帧的帧头中的前1个比特为该奇校验码,该传输帧的帧头中的后1个比特为该奇校验码的反码,如图16所示;或者该传输帧的帧头中的后1个比特为该奇校验码,该传输帧的帧头中的前1个比特为该奇校验码的反码,如图17所示。Optionally, the parity check code is an odd check code, the first bit in the frame header of the transmission frame is the odd check code, and the last bit in the frame header of the transmission frame is the odd check code. The inverse code of the check code, as shown in Figure 16; or the last bit in the frame header of the transmission frame is the odd check code, and the first bit in the frame header of the transmission frame is the odd check code The inverse of , as shown in Figure 17.

可选的,该奇偶校验码为偶校验码,该传输帧的帧头中的前1个比特为该偶校验码,该传输帧的帧头中的后1个比特为该偶校验码的反码,如图18所示;或者该传输帧的帧头中的后1个比特为该偶校验码,该传输帧的帧头中的前1个比特为该偶校验码的反码,如图19所示。Optionally, the parity check code is an even check code, the first bit in the frame header of the transmission frame is the even check code, and the last bit in the frame header of the transmission frame is the even check code. The inverse code of the check code, as shown in Figure 18; or the last bit in the frame header of the transmission frame is the even check code, and the first bit in the frame header of the transmission frame is the even check code The inverse of , as shown in Figure 19.

需要说明的是,经JESD204编码技术编码得到的传输在传输时可以保持该传输帧的帧头为10,或者01,因此本发明实施例中的第一标识可以为01以及第二标识可以为10,或者该第一标识为10以及该第二标识为01。当存在奇偶校验码时,还特地为该奇偶校验码配置了奇偶校验码反码,保证了该传输帧的帧头为10,或者01。It should be noted that the transmission encoded by JESD204 encoding technology can keep the frame header of the transmission frame as 10 or 01 during transmission, so the first identifier in the embodiment of the present invention can be 01 and the second identifier can be 10 , or the first identifier is 10 and the second identifier is 01. When there is a parity code, an inverse parity code is specially configured for the parity code to ensure that the frame header of the transmission frame is 10 or 01.

步骤S703:该编码终端将该传输帧发送给解码终端。Step S703: the encoding terminal sends the transmission frame to the decoding terminal.

步骤S704:该解码终端接收该编码终端发送的该传输帧。Step S704: the decoding terminal receives the transmission frame sent by the encoding terminal.

步骤S705:该解码终端解析该传输帧以获取该8个字节和该2比特中的数据。Step S705: the decoding terminal parses the transmission frame to obtain the data in the 8 bytes and the 2 bits.

步骤S706:该解码终端对该传输帧解码以得到JESD204帧,不同的传输帧的解码过程可能不一样,以下分别讲述各种传输帧的解码过程,以下描述的码级同步帧、ILA序列帧和业务数据帧均属于该JESD204帧。Step S706: The decoding terminal decodes the transmission frame to obtain a JESD204 frame. The decoding process of different transmission frames may be different. The following describes the decoding process of various transmission frames. The code-level synchronization frame, ILA sequence frame and All service data frames belong to the JESD204 frame.

当该传输帧的帧头携带预设的第一标识且该传输帧的8个字节的每个字节中的数据均为D28.5时,该解码终端基于该传输帧的8个字节中的数据生成码级同步帧,该码级同步帧的8个字节的每个字节携带的数据均为K28.5。When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal based on the 8 bytes of the transmission frame The data in the code-level synchronization frame is generated, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is K28.5.

当该传输帧的帧头携带该第一标识且该传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,该解码终端基于该传输帧的8个字节中的数据生成ILA序列帧,该ILA序列帧的8个字节一一对应携带该传输帧的8个字节中的数据,且该ILA序列帧的8个字节中第0个字节的数据为K28.0。可选的,如果该ILA序列帧生成后为ILA序列中的第二个ILA序列帧时,可以将该ILA序列帧的第1个字节中封装数值K28.4或D28.4。When the frame header of the transmission frame carries the first identifier and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28.0, the decoding terminal based on the 8 bytes of the transmission frame The data in the section generates an ILA sequence frame, and the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the 0th byte of the 8 bytes of the ILA sequence frame The data is K28.0. Optionally, if the generated ILA sequence frame is the second ILA sequence frame in the ILA sequence, the value K28.4 or D28.4 may be encapsulated in the first byte of the ILA sequence frame.

在一种可选的方案中,当该传输帧的帧头携带该第二标识且该传输帧的8个字节携带的数据均为D28.5时;该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节的每个字节携带的数据均为D28.5。In an optional solution, when the frame header of the transmission frame carries the second identifier and the data carried by the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not perform parity check on the transmission frame According to the verification, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5.

在又一种可选的方案中,当该传输帧的帧头携带该第一标识且该传输帧的8个字节中的第n个字节携带的数据为D28.3时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据,且该业务数据帧的8个字节中最后一个字节的数据为K28.3。In yet another optional solution, when the frame header of the transmission frame carries the first identifier and the data carried by the n-th byte in the 8 bytes of the transmission frame is D28.3, the decoding terminal No parity check is performed on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame , and the data of the last byte in the 8 bytes of the service data frame is K28.3.

在又一种可选的方案中,当该传输帧的帧头携带该第一标识且该传输帧的8个字节中的第n个字节携带的数据为D28.7时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据,且该业务数据帧的8个字节中最后一个字节的数据为K28.7。In yet another optional solution, when the frame header of the transmission frame carries the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, the decoding terminal No parity check is performed on the transmission frame, and the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame , and the data of the last byte in the 8 bytes of the service data frame is K28.7.

具体地,该业务数据帧的8个字节与该传输帧的8个字节具体如何一一对应可以基于上述预设规则得到,这样的话就可以保证目标JESD204帧在经过编码终端编码、发送给该解码终端后,经该解码终端还原出该目标JESD204帧,该解码终端还原的目标JESD204帧与编码之前的目标JESD204帧中的数据基本相同,以下类似之处不再赘述。Specifically, the one-to-one correspondence between the 8 bytes of the service data frame and the 8 bytes of the transmission frame can be obtained based on the above preset rules, so that it can be ensured that the target JESD204 frame is encoded by the encoding terminal and sent to After the decoding terminal, the target JESD204 frame is restored by the decoding terminal. The data in the target JESD204 frame restored by the decoding terminal is basically the same as the data in the target JESD204 frame before encoding, and the following similarities will not be repeated.

在又一种可选的方案中,当该传输帧的帧头携带预设的第二标识且该传输帧的8个字节中的第n个字节携带的数据为D28.7时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In yet another optional solution, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, the The decoding terminal does not perform a parity check on the transmission frame. The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame. The 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame. data in bytes.

在又一种可选的方案中,当该传输帧的帧头携带预设的第二标识且该传输帧的8个字节中的第n个字节携带的数据为D28.3时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In yet another optional solution, when the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, the The decoding terminal does not perform a parity check on the transmission frame. The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame. The 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame. data in bytes.

在又一种可选的方案中,当该传输帧的帧头携带预设的第二标识且该传输帧的8个字节中的第n个字节携带的数据为D28.0时,该解码终端不对该传输帧做奇偶校验,该解码终端基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In yet another optional solution, when the frame header of the transmission frame carries a preset second identifier and the data carried by the n-th byte in the 8 bytes of the transmission frame is D28.0, the The decoding terminal does not perform a parity check on the transmission frame. The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame. The 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame. data in bytes.

在又一种可选的方案中,当该传输帧的8个字节携带的数据不全为D28.5,或者当该传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,该解码终端通过该传输帧的帧头中预设的奇偶校验码校验该传输帧的8个字节中的数据;当校验出该传输帧的8个字节中的数据无误时,基于该传输帧的8个字节中的数据生成业务数据帧,该业务数据帧的8个字节一一对应携带该传输帧的8个字节中的数据。In yet another optional solution, when the data carried by the 8 bytes of the transmission frame is not all D28.5, or when the data carried by the nth byte in the 8 bytes of the transmission frame is not D28.0, D28.7 and D28.3, the decoding terminal checks the data in the 8 bytes of the transmission frame through the parity code preset in the frame header of the transmission frame; When the data in the 8 bytes of the transmission frame is correct, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame data in the section.

具体地,该编码终端与该解码终端所使用的64B66B编码技术中已经预定了该传输帧的帧头的2比特中哪个比特为奇偶校验码,以及使用的是奇校验还是偶校验。因此当该解码终端确定该传输帧需要进行奇偶校验时,可以通过预定义好的规则来进行校验。Specifically, in the 64B66B encoding technology used by the encoding terminal and the decoding terminal, it has been predetermined which bit in the 2 bits of the frame header of the transmission frame is the parity code, and whether the odd parity or the even parity is used. Therefore, when the decoding terminal determines that the parity check is required for the transmission frame, the check can be performed according to a predefined rule.

在图7所描述的方法中,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the method described in Figure 7, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B In terms of coding technology, the coding efficiency is greatly improved.

上述详细阐述了本发明实施例的方法,为了便于更好地实施本发明实施例的上述方案,相应地,下面提供了本发明实施例的装置。The method of the embodiment of the present invention has been described in detail above. In order to facilitate better implementation of the above solution of the embodiment of the present invention, correspondingly, the following provides the device of the embodiment of the present invention.

请参见图20,图20是本发明实施例提供的一种编码终端200,该编码终端200包括处理器21012001、存储器2002和收发器2003,所述处理器2001与存储器2002以及与收发器2003通过总线相互连接。Please refer to FIG. 20. FIG. 20 is an encoding terminal 200 provided by an embodiment of the present invention. The encoding terminal 200 includes a processor 21012001, a memory 2002, and a transceiver 2003. The processor 2001 communicates with the memory 2002 and the transceiver 2003. The buses are connected to each other.

存储器2002包括但不限于是随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、或便携式只读存储器(CD-ROM),该存储器2002用于相关指令及数据。Memory 2002 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), or portable read-only memory (CD-ROM). Memory 2002 is used for related instructions and data.

处理器2001可以是一个或多个中央处理器(英文:Central Processing Unit,简称:CPU),在处理器2001是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 2001 may be one or more central processing units (English: Central Processing Unit, CPU for short), and when the processor 2001 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.

所述编码终端200中的处理器2001用于读取所述存储器2002中存储的程序代码,执行以下操作:The processor 2001 in the encoding terminal 200 is used to read the program code stored in the memory 2002, and perform the following operations:

确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;Determine the frame type of the target JESD204 frame in the JESD204B data to be transmitted, the frame type in the JESD204B data includes a code-level synchronization frame, an ILA sequence frame and a service data frame, and the target JESD204 frame is composed of 8 bytes;

通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Encoding the target JESD204 frame by 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are the frame header of the transmission frame;

当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the transmission frame carries a first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;

当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28. 0, the 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the last 7 bytes of the 8 bytes of the ILA sequence frame in one-to-one correspondence;

通过所述收发器2003将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The transmission frame is sent to the decoding terminal through the transceiver 2003, and the decoding terminal does not carry the first identification in the frame header and the data carried by each byte of 8 bytes is a transmission frame of D28.5 Perform data verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0.

通过执行上述操作,编码终端200使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operations, the encoding terminal 200 encodes the target JESD204 frame using the 64B66B encoding technique to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through the 64B66B encoding technique to restore the target JESD204 frame. Compared with the 8B10B encoding technique, The language greatly improves the coding efficiency.

在一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。In an optional solution, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame are all D28.5, the frame header of the transmission frame carries The second identification, the data carried by the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not carry the second identification to the frame header and the data carried by the 8 bytes are all D28.5 transmissions Frame data verification.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In yet another optional solution, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an A frame, the frame header of the transmission frame carries a first identifier, and the frame header of the transmission frame The data carried by the nth byte of the 8 bytes is D28.3, and the 7 bytes except the nth byte among the 8 bytes of the transmission frame correspond to the 8 bytes carrying the A frame one by one. The data in the first 7 bytes of bytes; the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.3.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In another optional solution, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame header of the transmission frame carries a first identifier, and the frame header of the transmission frame The data carried by the nth byte of the 8 bytes is D28.7, and the 7 bytes except the nth byte among the 8 bytes of the transmission frame correspond to the 8 bytes carrying the F frame one by one. The data in the first 7 bytes of bytes; the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.3.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In another optional solution, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not A frame and F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is D28. 3. When D28.7 or D28.0, the frame header of the transmission frame carries the second identifier; the decoding terminal does not carry the second identifier on the frame header and the data carried by the nth byte is D28. 3. Do data verification for the transmission frame of D28.7 or D28.0.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In another optional solution, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not A frame and F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is not D28 .3, D28.7 and D28.0, the frame header of the transmission frame carries the data check code and the inverse code of the data check code, and the decoding terminal is used to pass the data check code to the first The data carried by n bytes is not D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and the data of 8 bytes is not all D28.5 transmission frame for data verification.

在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In yet another optional solution, the data check code is an odd check code, the first bit in the frame header of the transmission frame is the odd check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the first 1 bit in the frame header of the transmission frame bits are the one's complement of the odd-check code.

在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In yet another optional solution, the data check code is an even check code, the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 bit in the frame header of the transmission frame bits are the inverse code of the even parity code.

在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In yet another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.

需要说明的是,本发明实施例中的编码终端200具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that, the specific implementation of the encoding terminal 200 in the embodiment of the present invention may also refer to the corresponding description of the method embodiment shown in FIG. 7 .

在图20所描述的编码终端200中,编码终端200使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the encoding terminal 200 described in FIG. 20 , the encoding terminal 200 uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal uses the 64B66B encoding technology to decrypt the transmission frame to restore the target JESD204 frame. Compared with the 8B10B coding technology, the coding efficiency is greatly improved.

请参见图21,图21是本发明实施例提供的一种解码终端210,该解码终端210包括处理器2101、存储器2102和收发器2103,所述处理器2101与存储器2102以及与收发器2103通过总线相互连接。Please refer to FIG. 21. FIG. 21 is a decoding terminal 210 provided by an embodiment of the present invention. The decoding terminal 210 includes a processor 2101, a memory 2102, and a transceiver 2103. The processor 2101 communicates with the memory 2102 and the transceiver 2103. The buses are connected to each other.

存储器2102包括但不限于是随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或者快闪存储器)、或便携式只读存储器(CD-ROM),该存储器2102用于相关指令及数据。Memory 2102 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), or portable read-only memory (CD-ROM). Memory 2102 is used for related instructions and data.

处理器2101可以是一个或多个中央处理器2101(英文:Central ProcessingUnit,简称:CPU),在处理器2101是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 2101 may be one or more central processing units 2101 (English: Central Processing Unit, CPU for short). In the case where the processor 2101 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.

所述解码终端210中的处理器2101用于读取所述存储器2102中存储的程序代码,执行以下操作:The processor 2101 in the decoding terminal 210 is used to read the program code stored in the memory 2102, and perform the following operations:

通过所述收发器接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The transmission frame sent by the encoding terminal is received by the transceiver, the transmission frame is obtained by encoding the JESD204 frame by the encoding terminal through 64B66B encoding technology, the transmission frame is composed of 8 bytes and 2 bits, and the 2 The bit is the frame header of the transmission frame;

解析所述传输帧以获取所述8个字节和所述2比特中的数据;parsing the transmission frame to obtain data in the 8 bytes and the 2 bits;

当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the 8 bytes of the transmission frame The data in the code-level synchronization frame is generated, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is D28.5;

当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the preset n-th byte in the 8 bytes of the transmission frame is D28.0, the transmission frame-based The data in the 8 bytes generates an ILA sequence frame, and the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the 8 bytes of the ILA sequence frame The data of the 0th byte in is D28.0.

通过执行上述操作,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By performing the above operations, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B encoding technology Greatly improved coding efficiency.

在一种可选的方案中,所述处理器2101还用于:In an optional solution, the processor 2101 is further configured to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。When the frame header of the transmission frame carries a preset second identifier and the data carried in the 8 bytes of the transmission frame are all D28.5, generate a service based on the data in the 8 bytes of the transmission frame In the data frame, the data carried by each byte of the 8 bytes of the service data frame is D28.5.

在又一种可选的方案中,所述处理器2101还用于:In yet another optional solution, the processor 2101 is further configured to:

当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last word in the 8 bytes of the business data frame The data in section D28.3.

在又一种可选的方案中,所述处理器2101还用于:In yet another optional solution, the processor 2101 is further configured to:

当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last word in the 8 bytes of the business data frame Section data is D28.7.

在又一种可选的方案中,所述处理器2101还用于:In yet another optional solution, the processor 2101 is further configured to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

在又一种可选的方案中,所述处理器2101还用于:In yet another optional solution, the processor 2101 is further configured to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

在又一种可选的方案中,所述处理器2101还用于:In yet another optional solution, the processor 2101 is further configured to:

当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.0, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

在又一种可选的方案中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;所述处理器2101还用于:In yet another optional solution, when the data carried by the 8 bytes of the transmission frame is not all D28.5, or when the data carried by the nth byte of the 8 bytes of the transmission frame When it is not D28.0, D28.7 and D28.3, the frame header of the transmission frame includes a data check code and the inverse code of the data check code; the processor 2101 is also used for:

通过所述数据校验码校验所述传输帧的8个字节中的数据;Verifying the data in the 8 bytes of the transmission frame through the data check code;

当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence Carry the data in the 8 bytes of the transport frame.

在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In yet another optional solution, the data check code is an odd check code, the first bit in the frame header of the transmission frame is the odd check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the first 1 bit in the frame header of the transmission frame bits are the one's complement of the odd-check code.

在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In yet another optional solution, the data check code is an even check code, the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 bit in the frame header of the transmission frame bits are the inverse code of the even parity code.

在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In yet another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.

需要说明的是,本发明实施例中的解码终端具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that, the specific implementation of the decoding terminal in the embodiment of the present invention may also refer to the corresponding description of the method embodiment shown in FIG. 7 .

在图21所描述的解码终端中,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the decoding terminal described in Figure 21, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. 8B10B coding technology has greatly improved the coding efficiency.

请参见图22,图22是本发明实施例提供的又一种编码终端220的结构示意图,该编码终端220可以包括确定单元2201、编码单元2202和发送单元2203,其中,各个单元的详细描述如下。Please refer to FIG. 22, which is a schematic structural diagram of another encoding terminal 220 provided by an embodiment of the present invention. The encoding terminal 220 may include a determination unit 2201, an encoding unit 2202, and a sending unit 2203. The detailed description of each unit is as follows .

确定单元2201用于确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;The determination unit 2201 is used to determine the frame type of the target JESD204 frame in the JESD204B data to be transmitted, the frame type in the JESD204B data includes a code-level synchronization frame, an ILA sequence frame and a service data frame, and the target JESD204 frame consists of 8 byte composition;

编码单元2202用于通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The encoding unit 2202 is used to encode the target JESD204 frame by 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the frame of the transmission frame head;

当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the transmission frame carries a first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5;

当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28. 0, the 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the last 7 bytes of the 8 bytes of the ILA sequence frame in one-to-one correspondence;

发送单元2203用于将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The sending unit 2203 is used to send the transmission frame to the decoding terminal, and the decoding terminal does not do anything to the transmission frame whose frame header carries the first identifier and the data carried by each byte of 8 bytes is D28.5 Data verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0.

通过运行上述单元,编码中的220使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above units, 220 in encoding uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame, compared to 8B10B encoding technology In terms of greatly improving the coding efficiency.

在一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。In an optional solution, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame are all D28.5, the frame header of the transmission frame carries The second identification, the data carried by the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not carry the second identification to the frame header and the data carried by the 8 bytes are all D28.5 transmissions Frame data verification.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In yet another optional solution, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an A frame, the frame header of the transmission frame carries a first identifier, and the frame header of the transmission frame The data carried by the nth byte of the 8 bytes is D28.3, and the 7 bytes except the nth byte among the 8 bytes of the transmission frame correspond to the 8 bytes carrying the A frame one by one. The data in the first 7 bytes of bytes; the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.3.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。In another optional solution, when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame header of the transmission frame carries a first identifier, and the frame header of the transmission frame The data carried by the nth byte of the 8 bytes is D28.7, and the 7 bytes except the nth byte among the 8 bytes of the transmission frame correspond to the 8 bytes carrying the F frame one by one. The data in the first 7 bytes of bytes; the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the nth byte is D28.3.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。In another optional solution, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not A frame and F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is D28. 3. When D28.7 or D28.0, the frame header of the transmission frame carries the second identifier; the decoding terminal does not carry the second identifier on the frame header and the data carried by the nth byte is D28. 3. Do data verification for the transmission frame of D28.7 or D28.0.

在又一种可选的方案中,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。In another optional solution, when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame is not all D28.5 and the target JESD204 frame is not A frame and F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the data carried by the nth byte of the transmission frame is not D28 .3, D28.7 and D28.0, the frame header of the transmission frame carries the data check code and the inverse code of the data check code, and the decoding terminal is used to pass the data check code to the first The data carried by n bytes is not D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and the data of 8 bytes is not all D28.5 transmission frame for data verification.

在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In yet another optional solution, the data check code is an odd check code, the first bit in the frame header of the transmission frame is the odd check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the first 1 bit in the frame header of the transmission frame bits are the one's complement of the odd-check code.

在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In yet another optional solution, the data check code is an even check code, the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 bit in the frame header of the transmission frame bits are the inverse code of the even parity code.

在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In yet another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.

需要说明的是,本发明实施例中各个单元的具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that, the specific implementation of each unit in the embodiment of the present invention may also refer to the corresponding description of the method embodiment shown in FIG. 7 .

在图22所描述的编码中的220中,编码中的220使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the encoding 220 described in Figure 22, the encoding 220 uses 64B66B encoding technology to encode the target JESD204 frame to obtain the transmission frame, and the decoding terminal decrypts the transmission frame through the 64B66B encoding technology to restore the target JESD204 frame , Compared with the 8B10B coding technology, the coding efficiency is greatly improved.

请参见图23,图23是本发明实施例提供的又一种解码终端230的结构示意图,该解码终端230可以包括接收单元2301、解析单元2302和解码单元2303,其中,各个单元的详细描述如下。Please refer to FIG. 23. FIG. 23 is a schematic structural diagram of another decoding terminal 230 provided by an embodiment of the present invention. The decoding terminal 230 may include a receiving unit 2301, an analyzing unit 2302, and a decoding unit 2303. The detailed description of each unit is as follows .

接收单元2301用于接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The receiving unit 2301 is used to receive the transmission frame sent by the encoding terminal, the transmission frame is obtained by encoding the JESD204 frame by the encoding terminal through 64B66B encoding technology, the transmission frame is composed of 8 bytes and 2 bits, and the 2 The bit is the frame header of the transmission frame;

解析单元2302用于解析所述传输帧以获取所述8个字节和所述2比特中的数据;The parsing unit 2302 is configured to parse the transmission frame to obtain the data in the 8 bytes and the 2 bits;

解码单元2303用于在所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;The decoding unit 2303 is configured to, when the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the transmission frame The data in the 8 bytes of the code-level synchronization frame is generated, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is D28.5;

所述解码单元2303还用于在所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。The decoding unit 2303 is further configured to: when the frame header of the transmission frame carries the first identifier and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28.0, Generate an ILA sequence frame based on the data in the 8 bytes of the transmission frame, the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the ILA sequence The data of the 0th byte in the 8 bytes of the frame is D28.0.

通过运行上述单元,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the above units, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with the 8B10B encoding technology The language greatly improves the coding efficiency.

在一种可选的方案中,所述解码单元2303还用于在所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。In an optional solution, the decoding unit 2303 is further configured to carry a preset second identifier at the frame header of the transmission frame, and the data carried in the 8 bytes of the transmission frame are all D28.5 When: generating a service data frame based on the data in the 8 bytes of the transmission frame, the data carried in each byte of the 8 bytes of the service data frame is D28.5.

在又一种可选的方案中,所述解码单元2303用于在所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。In yet another optional solution, the decoding unit 2303 is configured to carry the first identifier in the frame header of the transmission frame and carry the nth byte in the 8 bytes of the transmission frame When the data is D28.3, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame one by one. data, and the data of the last byte in the 8 bytes of the service data frame is D28.3.

在又一种可选的方案中,所述解码单元2303用于所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。In another optional solution, the decoding unit 2303 is used for the frame header of the transmission frame to carry the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame When it is D28.7, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence , and the data of the last byte in the 8 bytes of the service data frame is D28.7.

在又一种可选的方案中,所述解码单元2303用于在所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端230基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In yet another optional solution, the decoding unit 2303 is configured to carry a preset second identifier in the frame header of the transmission frame and the nth byte among the 8 bytes of the transmission frame carries When the data is D28.3, the decoding terminal 230 generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the data of the transmission frame one by one. data in 8 bytes.

在又一种可选的方案中,所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码单元2303用于基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In yet another optional solution, when the frame header of the transmission frame carries a preset second identifier and the data carried by the n-th byte in the 8 bytes of the transmission frame is D28.7, The decoding unit 2303 is configured to generate a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame one by one. data.

在又一种可选的方案中,所述解码单元2303用于在所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。In yet another optional solution, the decoding unit 2303 is configured to carry a preset second identifier in the frame header of the transmission frame and the nth byte among the 8 bytes of the transmission frame carries When the data is D28.0, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame one by one. The data.

在又一种可选的方案中,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;In yet another optional solution, when the data carried by the 8 bytes of the transmission frame is not all D28.5, or when the data carried by the nth byte of the 8 bytes of the transmission frame When it is not D28.0, D28.7 and D28.3, the frame header of the transmission frame includes a data check code and the inverse of the data check code;

所述解码单元2303用于通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding unit 2303 is configured to check the data in the 8 bytes of the transmission frame through the data check code;

当校验出所述传输帧的8个字节中的数据无误时,所述解码单元2303用于基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, the decoding unit 2303 is configured to generate a service data frame based on the data in the 8 bytes of the transmission frame, and the service data frame The 8 bytes carry the data in the 8 bytes of the transmission frame in one-to-one correspondence.

在又一种可选的方案中,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。In yet another optional solution, the data check code is an odd check code, the first bit in the frame header of the transmission frame is the odd check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the first 1 bit in the frame header of the transmission frame bits are the one's complement of the odd-check code.

在又一种可选的方案中,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。In yet another optional solution, the data check code is an even check code, the first bit in the frame header of the transmission frame is the even check code, and the frame header of the transmission frame The last 1 bit in is the inverse code of the even parity code; or the last 1 bit in the frame header of the transmission frame is the even parity code, and the first 1 bit in the frame header of the transmission frame bits are the inverse code of the even parity code.

在又一种可选的方案中,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。In yet another optional solution, the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second identifier is 10.

需要说明的是,本发明实施例中各个单元的具体实现还可以对应参照图7所示的方法实施例的相应描述。It should be noted that, the specific implementation of each unit in the embodiment of the present invention may also refer to the corresponding description of the method embodiment shown in FIG. 7 .

在图23所描述的解码终端230中,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In the decoding terminal 230 described in FIG. 23 , the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal 230 uses the 64B66B encoding technology to decrypt the transmission frame to restore the target JESD204 frame. Compared with the 8B10B coding technology, the coding efficiency is greatly improved.

上述详细阐述了本发明实施例的方法和装置,为了便于更好地实施本发明实施例的上述方案,相应地,下面提供了本发明实施例的系统。The method and device of the embodiment of the present invention are described above in detail. In order to better implement the above solution of the embodiment of the present invention, correspondingly, the system of the embodiment of the present invention is provided below.

请参见图24,图24是本发明实施例提供的一种编码系统240,所述编码系统包括编码终端2401和解码终端2402,其中:Please refer to FIG. 24. FIG. 24 is an encoding system 240 provided by an embodiment of the present invention. The encoding system includes an encoding terminal 2401 and a decoding terminal 2402, wherein:

该编码终端2401可以为图20所示实施例中的编码终端200,或者图22所示的编码终端220。The encoding terminal 2401 may be the encoding terminal 200 in the embodiment shown in FIG. 20 , or the encoding terminal 220 shown in FIG. 22 .

该解码终端2402可以为图21所示实施例中的解码终端210,或者图23所示的解码终端230。The decoding terminal 2402 may be the decoding terminal 210 in the embodiment shown in FIG. 21 , or the decoding terminal 230 shown in FIG. 23 .

通过运行该编码系统240,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端230通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。By running the encoding system 240, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal 230 decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with 8B10B encoding In terms of technology, the coding efficiency is greatly improved.

综上所述,通过实施本发明实施例,编码终端使用64B66B编码技术对目标JESD204帧进行编码得到传输帧,以及解码终端通过64B66B编码技术对该传输帧进行解密以还原出该目标JESD204帧,相较于8B10B编码技术而言大大提高了编码效率。In summary, by implementing the embodiment of the present invention, the encoding terminal uses 64B66B encoding technology to encode the target JESD204 frame to obtain a transmission frame, and the decoding terminal decrypts the transmission frame through 64B66B encoding technology to restore the target JESD204 frame. Compared with the 8B10B coding technology, the coding efficiency is greatly improved.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. During execution, it may include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes various media capable of storing program codes such as ROM, RAM, magnetic disk or optical disk.

以上实施例仅揭露了本发明中较佳实施例,不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。The above embodiments only disclose the preferred embodiments of the present invention, and cannot limit the scope of rights of the present invention with this. Those of ordinary skill in the art can understand the whole or part of the process of realizing the above embodiments, and make according to the claims of the present invention Equivalent changes still belong to the scope covered by the invention.

Claims (41)

1.一种编码方法,其特征在于,包括:1. A coding method, characterized in that, comprising: 编码终端确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;The encoding terminal determines the frame type of the target JESD204 frame in the JESD204B data to be transmitted, the frame type in the JESD204B data includes a code-level synchronization frame, an ILA sequence frame and a service data frame, and the target JESD204 frame is composed of 8 bytes ; 所述编码终端通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The encoding terminal encodes the target JESD204 frame by 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the frame header of the transmission frame ; 当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the transmission frame carries a first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5; 当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28. 0, the 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the last 7 bytes of the 8 bytes of the ILA sequence frame in one-to-one correspondence; 所述编码终端将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The encoding terminal sends the transmission frame to the decoding terminal, and the decoding terminal does not carry the first identifier in the frame header and the data carried by each byte of 8 bytes is D28.5 transmission frame data verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0. 2.根据权利要求1所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。2. The method according to claim 1, wherein when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame are all D28.5, the The frame header of the transmission frame carries the second identifier, and the data carried by the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not carry the second identifier on the frame header and the data carried by the 8 bytes are all Do data check for D28.5 transmission frame. 3.根据权利要求1或2所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。3. The method according to claim 1 or 2, wherein when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an A frame, the frame header of the transmission frame carries the first Identification, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the 7 bytes of the 8 bytes of the transmission frame except the nth byte correspond one-to-one Carry the data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not carry the first identifier to the frame header and the data carried by the nth byte is a transmission frame of D28.3 Do data verification. 4.根据权利要求1~3任一项所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。4. The method according to any one of claims 1 to 3, wherein when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame header of the transmission frame Carrying the first identification, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, and the 7 bytes of the 8 bytes of the transmission frame except the nth byte One-to-one correspondence carries the data in the first 7 bytes of the 8 bytes of the F frame; the decoding terminal does not carry the first identifier to the frame header and the data carried by the nth byte is D28.3 The transmission frame is checked for data. 5.根据权利要求3或4所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。5. The method according to claim 3 or 4, wherein when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and all When the target JESD204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, and when the nth word of the transmission frame When the data carried in the section is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the second identification; the decoding terminal does not carry the second identification in the frame header and the nth word The data carried in the section is used for data verification of D28.3, D28.7 or D28.0 transmission frames. 6.根据权利要求3~5任一项所述的方法,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。6. The method according to any one of claims 3 to 5, wherein when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame is not all D28. 5 and when the target JESD204 frame is not an A frame or an F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, and when the first When the data carried by n bytes is not D28.3, D28.7 and D28.0, the frame header of the transmission frame carries the data check code and the inverse code of the data check code, and the decoding terminal uses Because the data carried by the nth byte through the data check code is not D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and the data of 8 bytes is not all D28 .5 transmission frame for data verification. 7.根据权利要求6所述的方法,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。7. The method according to claim 6, wherein the data check code is an odd check code, the first bit in the frame header of the transmission frame is the odd check code, and the The last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the frame of the transmission frame The first 1 bit in the header is the inverse of the odd parity code. 8.根据权利要求6所述的方法,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。8. The method according to claim 6, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, and the The last 1 bit in the frame header of the transmission frame is the inverse code of the even check code; or the last 1 bit in the frame header of the transmission frame is the even check code, and the frame of the transmission frame The first bit in the header is the inverse of the even parity code. 9.根据权利要求2~8任一项所述的方法,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。9. The method according to any one of claims 2-8, characterized in that, the first mark is 10 and the second mark is 01, or the first mark is 01 and the second mark for 10. 10.一种编码方法,其特征在于,包括:10. An encoding method, characterized in that, comprising: 解码终端接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The decoding terminal receives the transmission frame sent by the encoding terminal, the transmission frame is obtained by encoding the JESD204 frame by the encoding terminal through 64B66B encoding technology, the transmission frame is composed of 8 bytes and 2 bits, and the 2 bits are the The frame header of the transmission frame; 所述编码终端解析所述传输帧以获取所述8个字节和所述2比特中的数据;The encoding terminal parses the transmission frame to obtain the data in the 8 bytes and the 2 bits; 当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,所述解码终端基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, the decoding terminal based on the The data in the 8 bytes generates a code-level synchronization frame, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is D28.5; 当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the preset nth byte in the 8 bytes of the transmission frame is D28.0, the decoding terminal based on the transmission The data in the 8 bytes of the frame generates an ILA sequence frame, and the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the 8 bytes of the ILA sequence frame The data of the 0th byte in the byte is D28.0. 11.根据权利要求10所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时;所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。11. The method according to claim 10, wherein when the frame header of the transmission frame carries a preset second identifier and the data carried by the 8 bytes of the transmission frame are all D28.5; The decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the data carried in each byte of the 8 bytes of the service data frame is D28.5. 12.根据权利要求10或11所述的方法,其特征在于,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。12. The method according to claim 10 or 11, wherein when the frame header of the transmission frame carries the first identifier and the nth byte in the 8 bytes of the transmission frame carries When the data is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the 8 bytes of the transmission frame one by one. The data in the byte, and the data of the last byte in the 8 bytes of the service data frame is D28.3. 13.根据权利要求10~12任一项所述的方法,其特征在于,当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。13. The method according to any one of claims 10-12, wherein when the frame header of the transmission frame carries the first identifier and the nth word in the 8 bytes of the transmission frame When the data carried in the section is D28.7, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the transmission frame one by one The data in the 8 bytes of the service data frame, and the data of the last byte in the 8 bytes of the service data frame is D28.7. 14.根据权利要求12或13所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。14. The method according to claim 12 or 13, wherein when the frame header of the transmission frame carries a preset second identifier and the nth byte among the 8 bytes of the transmission frame carries When the data is D28.3, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame correspond to the 8 bytes of the transmission frame one by one. data in bytes. 15.根据权利要求12~14任一项所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。15. The method according to any one of claims 12-14, wherein when the frame header of the transmission frame carries a preset second identifier and the n-th byte in the 8 bytes of the transmission frame When the data carried by the byte is D28.7, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the transmission Data in the 8 bytes of the frame. 16.根据权利要求12~15任一项所述的方法,其特征在于,当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,所述解码终端基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。16. The method according to any one of claims 12-15, wherein when the frame header of the transmission frame carries a preset second identifier and the n-th byte of the 8 bytes of the transmission frame When the data carried by the byte is D28.0, the decoding terminal generates a service data frame based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame carry the transmission Data in the 8 bytes of the frame. 17.根据权利要求10~16任一项所述的方法,其特征在于,当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;17. The method according to any one of claims 10 to 16, wherein when the data carried in the 8 bytes of the transmission frame is not all D28.5, or when the 8 bytes of the transmission frame When the data carried by the nth byte in is not D28.0, D28.7 and D28.3, the frame header of the transmission frame includes a data check code and the inverse of the data check code; 所述解码终端通过所述数据校验码校验所述传输帧的8个字节中的数据;The decoding terminal checks the data in the 8 bytes of the transmission frame through the data check code; 当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence Carry the data in the 8 bytes of the transport frame. 18.根据权利要求17所述的方法,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。18. The method according to claim 17, wherein the data check code is an odd check code, the first bit in the frame header of the transmission frame is the odd check code, and the The last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the frame of the transmission frame The first 1 bit in the header is the inverse of the odd parity code. 19.根据权利要求17所述的方法,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。19. The method according to claim 17, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, and the The last 1 bit in the frame header of the transmission frame is the inverse code of the even check code; or the last 1 bit in the frame header of the transmission frame is the even check code, and the frame of the transmission frame The first bit in the header is the inverse of the even parity code. 20.根据权利要求11~19任一项所述的方法,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。20. The method according to any one of claims 11-19, characterized in that, the first mark is 10 and the second mark is 01, or the first mark is 01 and the second mark for 10. 21.一种编码终端,其特征在于,所述编码终端包括处理器、存储器和收发器:21. An encoding terminal, characterized in that, the encoding terminal comprises a processor, a memory, and a transceiver: 所述存储器用于存储数据和程序;The memory is used to store data and programs; 所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls the program in the memory to perform the following operations: 确定待传输的JESD204B数据中的目标JESD204帧的帧类型,所述JESD204B数据中的帧类型包括码级同步帧、ILA序列帧和业务数据帧,所述目标JESD204帧由8个字节组成;Determine the frame type of the target JESD204 frame in the JESD204B data to be transmitted, the frame type in the JESD204B data includes a code-level synchronization frame, an ILA sequence frame and a service data frame, and the target JESD204 frame is composed of 8 bytes; 通过64B66B编码技术对所述目标JESD204帧进行编码以得到66比特的传输帧,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;Encoding the target JESD204 frame by 64B66B encoding technology to obtain a 66-bit transmission frame, the transmission frame is composed of 8 bytes and 2 bits and the 2 bits are the frame header of the transmission frame; 当所述目标JESD204帧属于所述码级同步帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的每个字节携带的数据均为D28.5;When the target JESD204 frame belongs to the code-level synchronization frame, the frame header of the transmission frame carries a first identifier, and the data carried by each byte of the 8 bytes of the transmission frame is D28.5; 当所述目标JESD204帧属于所述ILA序列帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述ILA序列帧的8个字节中的后7个字节中的数据;When the target JESD204 frame belongs to the ILA sequence frame, the frame header of the transmission frame carries the first identifier, and the data carried by the preset nth byte among the 8 bytes of the transmission frame is D28. 0, the 7 bytes except the nth byte in the 8 bytes of the transmission frame carry the data in the last 7 bytes of the 8 bytes of the ILA sequence frame in one-to-one correspondence; 通过所述收发器将所述传输帧发送给解码终端,所述解码终端不对帧头携带所述第一标识以及8个字节的每个字节携带的数据均为D28.5的传输帧做数据校验,以及所述解码终端不对帧头携带所述第一标识以及8个字节中的第n个字节携带的数据为D28.0的传输帧做数据校验。The transmission frame is sent to the decoding terminal through the transceiver, and the decoding terminal does not do anything to the transmission frame carrying the first identifier in the frame header and the data carried in each byte of 8 bytes is D28.5 Data verification, and the decoding terminal does not perform data verification on the transmission frame whose frame header carries the first identifier and the data carried by the n-th byte in the 8 bytes is D28.0. 22.根据权利要求21所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据均为D28.5时,所述传输帧的帧头携带第二标识,所述传输帧的8个字节携带的数据均为D28.5;所述解码终端不对帧头携带所述第二标识以及8个字节携带的数据均为D28.5的传输帧做数据校验。22. The encoding terminal according to claim 21, wherein when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame are all D28.5, the The frame header of the transmission frame carries the second identification, and the data carried by the 8 bytes of the transmission frame are all D28.5; the decoding terminal does not carry the second identification and the data carried by the 8 bytes in the frame header Data verification is performed for D28.5 transmission frames. 23.根据权利要求21或22所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为A帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.3,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述A帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。23. The encoding terminal according to claim 21 or 22, wherein when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an A frame, the frame header of the transmission frame carries the first An identification, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.3, and the 7 bytes of the 8 bytes of the transmission frame except the nth byte are one by one Correspondingly carry the data in the first 7 bytes of the 8 bytes of the A frame; the decoding terminal does not carry the first identifier to the frame header and the data carried by the nth byte is the transmission of D28.3 Frame data verification. 24.根据权利要求21~23任一项所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧为F帧时,所述传输帧的帧头携带第一标识,所述传输帧的8个字节的第n个字节携带的数据为D28.7,所述传输帧的8个字节中除第n个字节外的7个字节一一对应携带所述F帧的8个字节中的前7个字节中的数据;所述解码终端不对帧头携带所述第一标识且第n个字节携带的数据为D28.3的传输帧做数据校验。24. The encoding terminal according to any one of claims 21 to 23, wherein when the target JESD204 frame belongs to the service data frame and the target JESD204 frame is an F frame, the frame of the transmission frame The header carries the first identification, the data carried by the nth byte of the 8 bytes of the transmission frame is D28.7, and the 7 characters of the 8 bytes of the transmission frame except the nth byte Sections carry the data in the first 7 bytes of the 8 bytes of the F frame in one-to-one correspondence; the decoding terminal does not carry the first identifier to the frame header and the data carried by the nth byte is D28. 3 transmission frame for data verification. 25.根据权利要求23或24所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据为D28.3、D28.7或D28.0时,所述传输帧的帧头携带所述第二标识;所述解码终端不对帧头携带所述第二标识且第n个字节携带的数据为D28.3、D28.7或D28.0的传输帧做数据校验。25. The encoding terminal according to claim 23 or 24, wherein when the target JESD204 frame belongs to the service data frame and the data carried by the 8 bytes of the target JESD204 frame is not all D28.5 and When the target JESD204 frame is not an A frame or an F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, and when the nth When the data carried by the byte is D28.3, D28.7 or D28.0, the frame header of the transmission frame carries the second identification; the decoding terminal does not carry the second identification to the frame header and the nth The data carried by the byte is used for data verification of D28.3, D28.7 or D28.0 transmission frames. 26.根据权利要求23~25任一项所述的编码终端,其特征在于,当所述目标JESD204帧属于所述业务数据帧且所述目标JESD204帧的8个字节携带的数据不全为D28.5以及所述目标JESD204帧不为A帧和F帧时,所述传输帧的8个字节一一对应携带所述业务数据帧的8个字节中的数据,当所述传输帧的第n个字节携带的数据不为D28.3、D28.7和D28.0时,所述传输帧的帧头携带数据校验码和所述数据校验码的反码,所述解码终端用于通过所述数据校验码对第n个字节携带的数据不为D28.3的传输帧、D28.7的传输帧、D28.0的传输帧,以及8个字节的数据不全为D28.5的传输帧做数据校验。26. The encoding terminal according to any one of claims 23 to 25, wherein when the target JESD204 frame belongs to the service data frame and the data carried in the 8 bytes of the target JESD204 frame is not all D28 .5 and when the target JESD204 frame is not an A frame and an F frame, the 8 bytes of the transmission frame carry the data in the 8 bytes of the service data frame one by one, when the transmission frame When the data carried by the nth byte is not D28.3, D28.7, and D28.0, the frame header of the transmission frame carries a data check code and the inverse of the data check code, and the decoding terminal It is used for the data carried by the nth byte through the data check code not to be D28.3 transmission frame, D28.7 transmission frame, D28.0 transmission frame, and the data of 8 bytes is not all The transmission frame of D28.5 is used for data verification. 27.根据权利要求26所述的编码终端,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。27. The encoding terminal according to claim 26, wherein the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd check code, so The last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the transmission frame The first bit in the frame header is the inverse code of the odd-check code. 28.根据权利要求26所述的编码终端,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。28. The encoding terminal according to claim 26, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, so The last bit in the frame header of the transmission frame is the inverse code of the even check code; or the last bit in the frame header of the transmission frame is the even check code, and the transmission frame The first bit in the frame header is the inverse code of the even parity code. 29.根据权利要求22~28任一项所述的编码终端,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。29. The encoding terminal according to any one of claims 22-28, wherein the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second ID is 10. 30.一种解码终端,其特征在于,所述编码终端包括处理器、存储器和收发器:30. A decoding terminal, characterized in that the encoding terminal comprises a processor, a memory, and a transceiver: 所述存储器用于存储数据和程序;The memory is used to store data and programs; 所述处理器调用所述存储器中的程序用于执行如下操作:The processor calls the program in the memory to perform the following operations: 通过所述收发器接收编码终端发送的传输帧,所述传输帧由所述编码终端通过64B66B编码技术对JESD204帧进行编码得到,所述传输帧由8个字节和2比特组成且所述2比特为所述传输帧的帧头;The transmission frame sent by the encoding terminal is received by the transceiver, the transmission frame is obtained by encoding the JESD204 frame by the encoding terminal through 64B66B encoding technology, the transmission frame is composed of 8 bytes and 2 bits, and the 2 The bit is the frame header of the transmission frame; 解析所述传输帧以获取所述8个字节和所述2比特中的数据;parsing the transmission frame to obtain data in the 8 bytes and the 2 bits; 当所述传输帧的帧头携带预设的第一标识且所述传输帧的8个字节的每个字节中的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成码级同步帧,所述码级同步帧的8个字节的每个字节携带的数据均为D28.5;When the frame header of the transmission frame carries a preset first identifier and the data in each byte of the 8 bytes of the transmission frame is D28.5, based on the 8 bytes of the transmission frame The data in the code-level synchronization frame is generated, and the data carried by each byte of the 8 bytes of the code-level synchronization frame is D28.5; 当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中预设的第n个字节携带的数据为D28.0时,所述基于所述传输帧的8个字节中的数据生成ILA序列帧,所述ILA序列帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述ILA序列帧的8个字节中第0个字节的数据为D28.0。When the frame header of the transmission frame carries the first identifier and the data carried by the preset n-th byte in the 8 bytes of the transmission frame is D28.0, the transmission frame-based The data in the 8 bytes generates an ILA sequence frame, and the 8 bytes of the ILA sequence frame carry the data in the 8 bytes of the transmission frame one by one, and the 8 bytes of the ILA sequence frame The data of the 0th byte in is D28.0. 31.根据权利要求30所述的解码终端,其特征在于,所述处理器还用于:31. The decoding terminal according to claim 30, wherein the processor is further used for: 当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节携带的数据均为D28.5时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节的每个字节携带的数据均为D28.5。When the frame header of the transmission frame carries a preset second identifier and the data carried in the 8 bytes of the transmission frame are all D28.5, generate a service based on the data in the 8 bytes of the transmission frame In the data frame, the data carried by each byte of the 8 bytes of the service data frame is D28.5. 32.根据权利要求30或31所述的解码终端,其特征在于,所述处理器还用于:32. The decoding terminal according to claim 30 or 31, wherein the processor is further configured to: 当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.3。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last word in the 8 bytes of the business data frame The data in section D28.3. 33.根据权利要求30~32任一项所述的解码终端,其特征在于,所述处理器还用于:33. The decoding terminal according to any one of claims 30-32, wherein the processor is further used for: 当所述传输帧的帧头携带所述第一标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据,且所述业务数据帧的8个字节中最后一个字节的数据为D28.7。When the frame header of the transmission frame carries the first identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, based on the 8 bytes of the transmission frame The data in the business data frame generates a business data frame, and the 8 bytes of the business data frame carry the data in the 8 bytes of the transmission frame one by one, and the last word in the 8 bytes of the business data frame The data in section D28.7. 34.根据权利要求32或33所述的解码终端,其特征在于,所述处理器还用于:34. The decoding terminal according to claim 32 or 33, wherein the processor is further configured to: 当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.3时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.3, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence. 35.根据权利要求32~34任一项所述的解码终端,其特征在于,所述处理器还用于:35. The decoding terminal according to any one of claims 32-34, wherein the processor is further used for: 当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.7时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.7, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence. 36.根据权利要求32~35任一项所述的解码终端,其特征在于,所述处理器还用于:36. The decoding terminal according to any one of claims 32-35, wherein the processor is further used for: 当所述传输帧的帧头携带预设的第二标识且所述传输帧的8个字节中的第n个字节携带的数据为D28.0时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When the frame header of the transmission frame carries a preset second identifier and the data carried by the nth byte in the 8 bytes of the transmission frame is D28.0, based on the 8 bytes of the transmission frame The data in the section generates a service data frame, and the 8 bytes of the service data frame carry the data in the 8 bytes of the transmission frame in one-to-one correspondence. 37.根据权利要求30~36任一项所述的解码终端,其特征在于,37. The decoding terminal according to any one of claims 30-36, wherein: 当所述传输帧的8个字节携带的数据不全为D28.5,或者当所述传输帧的8个字节中的第n个字节携带的数据不为D28.0、D28.7和D28.3时,所述传输帧的帧头包含数据校验码和所述数据校验码的反码;所述处理器还用于:When the data carried by the 8 bytes of the transmission frame is not all D28.5, or when the data carried by the nth byte of the 8 bytes of the transmission frame is not D28.0, D28.7 and During D28.3, the frame header of the transmission frame includes a data check code and the inverse code of the data check code; the processor is also used for: 通过所述数据校验码校验所述传输帧的8个字节中的数据;Verifying the data in the 8 bytes of the transmission frame through the data check code; 当校验出所述传输帧的8个字节中的数据无误时,基于所述传输帧的8个字节中的数据生成业务数据帧,所述业务数据帧的8个字节一一对应携带所述传输帧的8个字节中的数据。When it is verified that the data in the 8 bytes of the transmission frame is correct, a service data frame is generated based on the data in the 8 bytes of the transmission frame, and the 8 bytes of the service data frame are in one-to-one correspondence Carry the data in the 8 bytes of the transport frame. 38.根据权利要求37所述的解码终端,其特征在于,所述数据校验码为奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码,所述传输帧的帧头中的后1个比特为所述奇校验码的反码;或者所述传输帧的帧头中的后1个比特为所述奇校验码,所述传输帧的帧头中的前1个比特为所述奇校验码的反码。38. The decoding terminal according to claim 37, wherein the data check code is an odd check code, and the first bit in the frame header of the transmission frame is the odd check code, so The last 1 bit in the frame header of the transmission frame is the inverse code of the odd check code; or the last 1 bit in the frame header of the transmission frame is the odd check code, and the transmission frame The first bit in the frame header is the inverse code of the odd-check code. 39.根据权利要求37所述的解码终端,其特征在于,所述数据校验码为偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码,所述传输帧的帧头中的后1个比特为所述偶校验码的反码;或者所述传输帧的帧头中的后1个比特为所述偶校验码,所述传输帧的帧头中的前1个比特为所述偶校验码的反码。39. The decoding terminal according to claim 37, wherein the data check code is an even check code, and the first bit in the frame header of the transmission frame is the even check code, so The last bit in the frame header of the transmission frame is the inverse code of the even check code; or the last bit in the frame header of the transmission frame is the even check code, and the transmission frame The first bit in the frame header is the inverse code of the even parity code. 40.根据权利要求31~39任一项所述的解码终端,其特征在于,所述第一标识为10以及所述第二标识为01,或者所述第一标识为01以及所述第二标识为10。40. The decoding terminal according to any one of claims 31 to 39, wherein the first identifier is 10 and the second identifier is 01, or the first identifier is 01 and the second ID is 10. 41.一种编码系统,其特征在于,所述编码系统包括编码终端和解码终端:41. An encoding system, characterized in that the encoding system includes an encoding terminal and a decoding terminal: 所述编码终端为权利要求21~29任一项所述的编码终端;The coding terminal is the coding terminal according to any one of claims 21-29; 所述解码终端为权利要求30~40任一项所述的解码终端。The decoding terminal is the decoding terminal according to any one of claims 30-40.
CN201610575049.9A 2016-07-19 2016-07-19 A kind of coded method, relevant device and system Pending CN106160912A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610575049.9A CN106160912A (en) 2016-07-19 2016-07-19 A kind of coded method, relevant device and system
PCT/CN2017/071768 WO2018014529A1 (en) 2016-07-19 2017-01-19 Encoding method and associated apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610575049.9A CN106160912A (en) 2016-07-19 2016-07-19 A kind of coded method, relevant device and system

Publications (1)

Publication Number Publication Date
CN106160912A true CN106160912A (en) 2016-11-23

Family

ID=58059948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610575049.9A Pending CN106160912A (en) 2016-07-19 2016-07-19 A kind of coded method, relevant device and system

Country Status (2)

Country Link
CN (1) CN106160912A (en)
WO (1) WO2018014529A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789765A (en) * 2016-11-18 2017-05-31 广东工业大学 A kind of communication link management method and system
CN106919532A (en) * 2017-03-10 2017-07-04 重庆湃芯微电子有限公司 A kind of elastic buffer based on JESD204B
CN106933773A (en) * 2017-03-10 2017-07-07 重庆湃芯微电子有限公司 A kind of method of frame assembling in JESD204B agreements
CN106933774A (en) * 2017-03-10 2017-07-07 重庆湃芯微电子有限公司 A kind of method that frame is solved in JESD204B agreements
CN107395539A (en) * 2017-08-31 2017-11-24 华南理工大学 A kind of 8B10B encoder design methods the agreement suitable for JESD204B
WO2018014529A1 (en) * 2016-07-19 2018-01-25 华为技术有限公司 Encoding method and associated apparatus and system
CN109409901A (en) * 2018-08-20 2019-03-01 同济大学 Perforating type information encoding-decoding method for commodity outer packing
CN109815099A (en) * 2018-12-28 2019-05-28 北京时代民芯科技有限公司 FPGA Verification Method of JESD204B Controller
CN111124982A (en) * 2019-12-17 2020-05-08 中国电子科技集团公司第五十八研究所 Asynchronous clock data synchronous circuit

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071958A1 (en) * 2004-01-27 2005-08-04 Samsung Electronics Co., Ltd. Digital broadcast transmitting/receiving system having an improved receiving performance and signal processing method thereof
CN1859660A (en) * 2006-01-26 2006-11-08 华为技术有限公司 Method for transmitting frame timing and frame number of general radio interface
CN101366181A (en) * 2005-09-15 2009-02-11 阿纳洛格装置公司 high speed transmission system
CN103618551A (en) * 2013-10-18 2014-03-05 中国电子科技集团公司第十研究所 Method and device of realizing serial AD sampling based on JESD204 transport protocol
CN104063342A (en) * 2014-05-30 2014-09-24 中国电子科技集团公司第十研究所 IP core based on JESD 204 protocol

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7284182B2 (en) * 2003-07-30 2007-10-16 Alcatel Error correction on M-bit encoded links
CN101227450B (en) * 2007-01-16 2013-04-24 华为技术有限公司 Equipment, system and method for transmitting spending information
CN101610134B (en) * 2009-07-10 2013-06-05 中兴通讯股份有限公司 64B/66B encoding and decoding device and method for realizing 64B/66B encoding and decoding
US8738988B2 (en) * 2010-06-29 2014-05-27 Futurewei Technologies, Inc. Data sending/receiving method with forward error correction and related component and system for gigabit ethernet
CN106160912A (en) * 2016-07-19 2016-11-23 华为技术有限公司 A kind of coded method, relevant device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005071958A1 (en) * 2004-01-27 2005-08-04 Samsung Electronics Co., Ltd. Digital broadcast transmitting/receiving system having an improved receiving performance and signal processing method thereof
CN101366181A (en) * 2005-09-15 2009-02-11 阿纳洛格装置公司 high speed transmission system
CN1859660A (en) * 2006-01-26 2006-11-08 华为技术有限公司 Method for transmitting frame timing and frame number of general radio interface
CN103618551A (en) * 2013-10-18 2014-03-05 中国电子科技集团公司第十研究所 Method and device of realizing serial AD sampling based on JESD204 transport protocol
CN104063342A (en) * 2014-05-30 2014-09-24 中国电子科技集团公司第十研究所 IP core based on JESD 204 protocol

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018014529A1 (en) * 2016-07-19 2018-01-25 华为技术有限公司 Encoding method and associated apparatus and system
CN106789765A (en) * 2016-11-18 2017-05-31 广东工业大学 A kind of communication link management method and system
CN106933774B (en) * 2017-03-10 2019-08-27 重庆湃芯微电子有限公司 A kind of method of frame decoding in JESD204B agreement
CN106933774A (en) * 2017-03-10 2017-07-07 重庆湃芯微电子有限公司 A kind of method that frame is solved in JESD204B agreements
CN106933773A (en) * 2017-03-10 2017-07-07 重庆湃芯微电子有限公司 A kind of method of frame assembling in JESD204B agreements
CN106933773B (en) * 2017-03-10 2019-08-23 重庆湃芯微电子有限公司 A kind of method of frame assembling in JESD204B agreement
CN106919532A (en) * 2017-03-10 2017-07-04 重庆湃芯微电子有限公司 A kind of elastic buffer based on JESD204B
CN107395539A (en) * 2017-08-31 2017-11-24 华南理工大学 A kind of 8B10B encoder design methods the agreement suitable for JESD204B
CN109409901A (en) * 2018-08-20 2019-03-01 同济大学 Perforating type information encoding-decoding method for commodity outer packing
CN109409901B (en) * 2018-08-20 2021-08-10 同济大学 Punching type information coding and decoding method for commodity outer package
CN109815099A (en) * 2018-12-28 2019-05-28 北京时代民芯科技有限公司 FPGA Verification Method of JESD204B Controller
CN109815099B (en) * 2018-12-28 2022-08-05 北京时代民芯科技有限公司 FPGA (field programmable Gate array) verification method of JESD204B controller
CN111124982A (en) * 2019-12-17 2020-05-08 中国电子科技集团公司第五十八研究所 Asynchronous clock data synchronous circuit
CN111124982B (en) * 2019-12-17 2021-07-06 中国电子科技集团公司第五十八研究所 Asynchronous clock data synchronous circuit

Also Published As

Publication number Publication date
WO2018014529A1 (en) 2018-01-25

Similar Documents

Publication Publication Date Title
CN106160912A (en) A kind of coded method, relevant device and system
US9467165B2 (en) Physical layer encoding and decoding method and apparatuses thereof
US7707475B2 (en) 64b/66b coding apparatus and method
US8718098B2 (en) Method for compressing and decompressing time stamp and equipment thereof
US8582603B2 (en) Method and apparatus for configuring protocol header in wireless communication system
EP3484126B1 (en) Method and apparatus for carrying identifier information
CN108429599B (en) Method and apparatus for data processing in a communication system
CN108777606B (en) Decoding method, apparatus and readable storage medium
US12170571B2 (en) Data sending and receiving method and device
CN107659381A (en) Coding method and device
US20250226919A1 (en) Data processing method and device in passive optical network system
CN105306166A (en) Code block receiving and processing method and device
CN106656195A (en) Data compression decompression method and data compression decompression system
US6985726B2 (en) Method of blind transport format detection
US11502780B2 (en) Channel decoding method and apparatus in wireless communications
US9749237B2 (en) Method and apparatus for aggregating and encoding received symbols including generation of a pointer for a control code
CN103199953B (en) Data transmission method and device, communication equipment
CN108737020A (en) A kind of information bearing method and device
JP7228797B2 (en) Receiving device and receiving method
KR101690791B1 (en) Transmission/reception apparatus and method for frame including protocol version in ultra wide-band system
EP4210250A1 (en) Data processing method, communication apparatus and communication device
CN113726479A (en) FEC encoding module, FEC decoding module, FEC encoding method, and FEC decoding method
JP2019083507A (en) Reception device, transmission device, reception method and transmission method
AU2018328895A1 (en) Encoding method and apparatus
US10999009B2 (en) Channel encoding method and apparatus in wireless communications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20190104

AD01 Patent right deemed abandoned