WO2014101087A1 - 编码/解码方法、装置及*** - Google Patents

编码/解码方法、装置及*** Download PDF

Info

Publication number
WO2014101087A1
WO2014101087A1 PCT/CN2012/087804 CN2012087804W WO2014101087A1 WO 2014101087 A1 WO2014101087 A1 WO 2014101087A1 CN 2012087804 W CN2012087804 W CN 2012087804W WO 2014101087 A1 WO2014101087 A1 WO 2014101087A1
Authority
WO
WIPO (PCT)
Prior art keywords
bit
valid data
value
transmitted
encoded information
Prior art date
Application number
PCT/CN2012/087804
Other languages
English (en)
French (fr)
Inventor
张帅
黄春行
董晓青
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2012/087804 priority Critical patent/WO2014101087A1/zh
Priority to CN201280002474.9A priority patent/CN103229444B/zh
Publication of WO2014101087A1 publication Critical patent/WO2014101087A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0075Transmission of coding parameters to receiver

Definitions

  • the present invention relates to communication technologies, and in particular, to an encoding/decoding method, apparatus, and system.
  • BACKGROUND OF THE INVENTION With the development of communication technologies, the rate of data transmission and the amount of data are constantly increasing. To improve the reliability of high-rate data transmission, the transmitted data is generally encoded, and the data is encoded. , coding efficiency, DC balance characteristics and bit error rate are all important factors to consider.
  • 64B./67B is a high-speed serial coding method with higher coding efficiency
  • the coding data of the coding method includes a 64-bit effective number ⁇ , 2-bit sync header and bit flip bit
  • setting the bit flip bit enables the decoding device at the receiving end to determine whether to flip the received valid data according to the flipped bit it receives, to obtain the transmitting end.
  • the data actually transmitted before the encoding device encodes
  • the BER of the present invention provides an encoding/decoding method, apparatus and system for reducing the bit error rate of the codec system.
  • an encoding method including: adding, before a valid data to be transmitted, a coded information and a predefined 2-bit toggle bit for flipping the transmitted valid data and the encoded information, so that the decoding device is received according to the received
  • the value of the toggle bit and the value of the predefined toggle bit determine whether a toggle bit transmission error occurs and whether the received valid data is inverted.
  • the coded information includes a 1-bit sync header;
  • the transmitted valid data encoding information and the inverted bits constitute the transmitted data frame.
  • the encoding information further includes an error check and a correction code for correcting the transmitted valid data and the encoded information.
  • the method further includes: sending valid data and encoding information Perform polarity statistics to obtain a statistical report of the polarity of the first polarity sent to the decoding device;
  • the value of the predefined toggle bit is “ ⁇ ”, indicating that the valid data and the encoded information are not generated.
  • Flip, "10” means that the valid data and encoding information sent is reversed or the value of the predefined toggle bit is ":10", indicating that the valid data and encoding information sent have not been inverted, "or indicates the valid data and encoding information sent.
  • a decoding method including:
  • Whether or not a flip bit transmission error occurs and whether the valid data is inverted is determined based on the value of the toggle bit and a predefined value of whether the transmitted valid data and the encoded information are inverted.
  • the encoding information further includes error checking and correction for error correction of the transmitted valid data and the encoded information.
  • the second implementation manner according to the value of the toggle bit and a predefined one-bit flip bit of the transmitted valid data and the encoded information The value determines whether a flip bit transmission error occurs and whether the valid data is flipped.
  • determining whether a flip bit transmission error occurs and whether the valid data is inverted is performed according to the value of the flipped bit and a predefined value of whether the transmitted valid data and the encoded information are inverted. If the value of the received flip bit is detected as a value of the non-predefined flip bit, the received valid data and the encoded information are subjected to polarity statistics, and the second polarity statistical result is obtained, and the first polarity statistical result is obtained. And the second polarity statistical result determines whether to flip the received valid data, otherwise it is determined according to the value of the received flip bit whether to flip the received valid data
  • the third implementation manner if the value of the toggle bit is "01", the valid number of the transmission and the coding information are not inverted. "10” means that the valid data and the encoded information are reversed, or the value of the inverted bit is "10", indicating that the transmitted valid data and the encoded information have not been inverted, "or indicates that the transmitted valid data and the encoded information are inverted.
  • an encoding apparatus including:
  • an encoding module configured to add, before the valid data to be sent, the encoding information and the predefined 2-bit flipping bit for inverting the transmitted valid data and the encoding information, so that the decoding device according to the value of the received flipping bit and the predefined flipping The value of the bit determines whether a flip bit transmission error occurs and whether the received valid data is inverted.
  • the encoded information includes 1. a bit sync header;
  • a framing module configured to transmit the transmitted data, the encoded information, and the flipped bits to form the transmitted data.
  • the encoded information further includes error checking and correcting codes for correcting the transmitted valid data and the encoded information.
  • the coding apparatus further includes:
  • a statistics module configured to perform polarity statistics on the transmitted valid data and the encoded information, and obtain a first polarity statistical result sent to the decoding device
  • the coding module is specifically configured to add coding information before the valid data that is sent, where the coded information includes an i-bit synchronization header, and specifically used to add a predefined valid data to the transmitted data before the valid data is sent. Encoding the inverted 2-bit toggle bit, and determining the value of the toggle bit according to the first polarity statistics result, so that the decoding device determines whether a flip bit transmission error occurs according to the value of the received toggle bit and the value of the predefined toggle bit.
  • the decoding device detects that the value of the received flip bit is a value of the non-predefined flip bit, performs polarity statistics on the received valid data and the encoded information, and obtains the second polarity statistical result, and according to the first pole The statistical results and the second polarity statistics determine whether to flip the received valid data.
  • the value of the predefined toggle bit is "01", indicating that the valid number of the transmission and the coding information are not Flip occurs, "10" indicates that the valid data and encoding information sent are reversed, or the value of the predefined toggle bit is "10", indicating that the valid data and encoding information sent have not been inverted, "0! indicates valid data sent. And encoding information is flipped"
  • a decoding apparatus including:
  • the acquiring module is configured to capture valid data, encoding information, and 2-bit flipping bits in the received data frame, where the encoding information includes a 1-bit sync header;
  • a decoding module configured to determine whether a value of the toggle bit and a predefined value of a 2-bit toggle bit of the transmitted valid data and the coded information are inverted, whether a flip bit transmission error occurs and whether the valid data is inverted
  • the encoding information further includes an error check and correction code for error correction of the transmitted valid data and the encoded information.
  • the acquiring module is further configured to obtain the first polarity statistics of the polarity statistics of the valid data and the encoded information sent by the encoding apparatus. Result
  • the decoding module is specifically configured to: if it is detected that the value of the received flip bit is a value of a non-predefined flip bit, perform polarity statistics on the received valid number ⁇ and the encoded information > obtain a second polarity statistical result, and according to The first polarity statistical result and the second statistical result determine whether to flip the received valid data, otherwise it is determined according to the value of the received flip bit whether to flip the received valid data.
  • the first implementation manner, or the second implementation manner, in the third implementation manner if the value of the toggle bit is “0”, the valid data and the encoded information are not flipped. 0" means that the transmitted valid number ⁇ and the encoded information are reversed, or the value of the inverted bit is "10", indicating that the transmitted valid data and the encoded information are not inverted, "0 means that the transmitted valid data and the encoded information are inverted"
  • a codec system including the above-described encoding device and the above-described decoding device.
  • the encoding apparatus of the present invention can increase the value of the toggle bit received by the decoding apparatus according to the value of the toggle bit it receives and the predefined toggle bit by adding a pre-defined ⁇ bit toggle bit to the transmitted valid data and the coded information before the transmitted valid data. The value determines whether the received toggle bit has a send error.
  • Figure ⁇ is a flow chart of the actual coding method of the present invention.
  • FIG. 2 is a flow chart of a practical example of a decoding method according to the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of an encoding apparatus according to the present invention.
  • FIG. 4 is a schematic structural diagram of an embodiment of a decoding apparatus according to the present invention.
  • FIG. 5 is a schematic structural diagram of another embodiment of an encoding apparatus/decoding apparatus of the present invention.
  • FIG. 6 is a schematic structural diagram of a practical example of a codec system according to the present invention. detailed description
  • FIG. 1 is a flow chart of an embodiment of an encoding method according to the present invention. As shown in the figure, the encoding method of this embodiment includes
  • Step 101 Add, before the valid data to be transmitted, the encoding information and the predefined 2-bit toggle bit f that is valid for the transmitted data and the encoded information to be caused by the decoding device according to the value of the received flip bit and the predefined flip bit.
  • the value determines whether a flip bit transmission error occurs and whether the received valid data is inverted, the encoded information including a 1-bit sync header
  • the transmitting end embeds the clock in the data and transmits it to the receiving end.
  • the receiving end recovers the data and the clock separately by using clock and data recovery (CD).
  • CD clock and data recovery
  • the transmitted data is encoded at the transmitting end, so that the receiving end has sufficient data edges and good DC balance.
  • the pair of transmitting devices is effective.
  • the data adds some information, such as sync header and flip bit, etc., which will occupy certain transmission resources. Therefore, the encoding of the line at the transmitting end will reduce the coding efficiency to a certain extent, and use less coding information and obtain accurate information. High quality coded data is always what people expect.
  • the 64B/67B encoding has higher encoding efficiency, when the flipping bit in the encoding has a transmission error, the decoding device at the receiving end cannot judge the error, and thus the received valid data cannot be correctly flipped, so the codec is decoded.
  • the bit error rate is relatively high 9 embodiment, the encoding apparatus in the transmitting side to be transmitted before valid data increases!
  • the synchronization header of the bit is used to enable the decoding device at the receiving end to determine whether the transmitted effective number is control information or data information according to the synchronization header. Since the i-bit synchronization header is used, the number of code bits occupied by the encoded information can be reduced, which is advantageous for improving coding efficiency. .
  • the synchronization header can be set to indicate the control information ⁇ "(T indicates data information, and the synchronization header can be set to "0" for control information, and "1" for data information. For the flip bit to appear in the transmission The error is judged to reduce the decoding error caused by the inverted bit transmission error.
  • the number of bits of the inverted bit is extended to 2 bits, that is, the encoding device adds a predefined pair before the valid data to be transmitted.
  • the transmitted valid number ⁇ and the 2bii flip bit of the encoded information flipping because the 2bit flip bit is used, when the decoding device of the receiving end acquires the 2bii flip bit, it can determine whether the flip bit has a transmission error according to the value of the flip bit. "00", " ⁇ ", “0 ⁇ and "0" are four types. Since the probability of the 2-bit toggle bit changing at the same time in transmission is small, only the bit transmission error can be encoded and protected, that is, predefined.
  • the 2-bit flipping bit can be selected from the combination of "01” and “10” or the combination of "00” and “11", and the decoding device at the receiving end can judge according to the flipping bit it receives. Transmission error occurred. I.e. encoding and decoding devices can agree on a selected one of said predefined combination of whether the effective data transmission and the coding information bits inverted 2-bit flipping
  • the decoding device decodes the value of the inverted bit to be "0”, it is confirmed that the encoding device at the transmitting end does not reverse the transmitted significant number ⁇ and the encoded information at the time of encoding, and if the value of the obtained inverted bit is "10", it is confirmed.
  • the encoding device of the sending end reverses the transmitted effective number ⁇ and the encoding information during encoding, and can obtain the valid data to be actually sent before the encoding of the transmitting end encoder by inverting the received valid data;
  • the value is either "00", that is, the value of the obtained toggle bit is a value of the non-predefined flip bit, then it is confirmed that the transmission has an error, and the sender needs to retransmit the code number or need to further determine which transfer occurs. Error and handle it accordingly
  • the processing method after the decoding device of the receiving end acquires the flipping bit is similar to the processing in the above implementation manner.
  • the encoding device when the decoding device finds a flip bit transmission error, in order to avoid retransmission of the encoded data, the encoding device also transmits to the decoding device information for determining which flipping error occurs in the flipping bit, as long as the encoding device and the decoding device
  • the matching information is obtained by the same algorithm, and the encoding device transmits the captured comparison information to the decoding device, and the decoding device compares the received comparison information with the self-calculated comparison information to obtain the flipping bit.
  • the encoding device determines the value of the inverted bit to be transmitted based on the first polarity statistical result obtained by the encoding device, the valid data and the encoding of the transmitting device before the valid data, the encoded information and the inverted bit to be transmitted constitute the transmitted data frame.
  • the information is subjected to polarity statistics, and the first polarity statistical result is obtained, and the first polarity statistical result is sent to the decoding device at the receiving end, so that the decoding device can receive the value when detecting the value of the non-predefined turning bit.
  • the effective number ⁇ and the encoded information are entered into the row polarity statistics, and the second polarity statistical result is obtained, and according to the received first polarity statistical result and the second polarity statistical result, it is determined which one of the inversion bits in the transmission occurs.
  • the flipping error means that the decoding device compares the first polarity statistical result with the second polarity statistical result to determine whether the flipping bit is in the transmission error. For example, a predefined flip The values of the transposition are "10" and ⁇ s 01 ", and 3 ⁇ 4 "I and "00" are the values of the non-predefined flip bits. When the value of the detected flip bit is "00", that is, the non-predefined flip The value of the bit indicates that the transmission has an error.
  • the decoding device obtains the second polarity statistical result based on the polarity statistics of the received valid data and the encoded information, if the second polarity statistical result is received and received. If the first polarity statistics result is consistent, it is confirmed that the encoding device does not reverse the transmitted valid data and the encoded information, otherwise the confirmation encoding device reverses the transmitted valid data and the encoded information, and the value of the inverted bit can be determined from "10" is also changed from "01", so as to further determine whether the received valid number is flipped to obtain valid data to be transmitted before encoding by the encoding device.
  • Step 102 The transmitted valid data, the encoded information, and the flipped bits constitute a transmitted data frame.
  • the transmitted valid data > encoding information and the inverted bits constitute the transmitted digital frame, and the decoding device sent to the receiving end, for example, the valid data to be transmitted is 64.
  • the number of bits ⁇ , the encoding information is a 1-bit sync header, and the flipping bit is 2 bits, which can form a 67-bit data frame to be transmitted, where [63:0] is valid data, [64] is a sync header.
  • the encoding apparatus increases the value of the flipped bit received and the predefined by the decoding device by adding a predefined 2-bit toggle bit to the transmitted valid data and the encoded information before transmitting the valid data.
  • the value of the toggle bit determines whether the received toggle bit has a transmission error to retrieve the correct coded data; further, the value of the transmitted flip bit is determined and the first pole is determined by the obtained statistical value of the first polarity
  • the statistical statistic is sent to the receiving end, so that the decoding device at the receiving end can accurately determine which flipping error occurs in the flipping bit when determining the transmission error of the flipping bit, thereby determining whether to perform the flipping of the received valid data to realize the self-encoding data. Protection, which effectively reduces the bit error rate of the codec system, improves the coding shield, and ensures the coding efficiency is above 90% ⁇ ,
  • the present invention further carries an error detection for correcting the transmitted valid data and the encoded information on the basis of the above embodiments.
  • the error checking and correcting (ECC) code can realize the transmission of the effective number t and the encoded information by using the £CC code in the encoded information, and the transmitted data is transmitted by using the ECC code.
  • the effective data and the encoded information realize the self-protection of the encoding, which can avoid the problem that the receiving end decoding device needs to retransmit the data when the data transmission error is found, and further reduces the delay of the data transmission.
  • the valid data transmitted is 64-bit
  • FIG. 2 is a flowchart S of an embodiment of a decoding method according to the present invention. As shown in FIG. 2, the decoding method of the embodiment is:
  • Step 20 Obtain valid data encoding information and a 2-bit flipping bit in the received data frame, where the encoding information includes a 1-bit sync header.
  • the decoding device at the receiving end of the high-speed serial transmission system obtains the encoded data sent by the transmitting end, the data frame is parsed, and the valid data, the encoded information and the 2-bit flipping step carried in step 202 are obtained, according to the value of the flipping bit. And determining whether the value of the 2-bit flip bit inverted by the transmitted valid data and the encoded information determines whether a flip bit transmission error occurs and whether the valid data is inverted ⁇
  • the decoding device can determine whether an inverted bit has occurred during transmission based on the value of the inverted toggle bit and the value of the predefined toggle bit. For example, if the value of the received toggle bit is a value other than the predefined flip bit, then it is confirmed that the transmission has an error, and the sender needs to retransmit the coded data or further determine which transmission error occurred in the flip bit and perform corresponding processing.
  • the determination of the flipping bit by the decoding device in this step and the corresponding processing are as detailed in the above description of the encoding method embodiment, and are no longer obscured here.
  • the decoding apparatus in this embodiment determines whether a flip bit transmission error occurs and whether the valid data is inverted according to the value of the received toggle bit and the value of the predefined toggle bit, and may transmit a transmission error in the transfer bit during transmission. Corresponding processing and obtaining the correct coded data can effectively reduce the bit error rate of the codec system caused by the transmission error of the flip bit, thereby improving the coding quality.
  • the encoded information acquired by the decoding device further includes error checking and correcting ECC for correcting the transmitted valid data and the encoded information, and is effective for transmitting. encoding information into data and encoding protection line, further reducing the bit error rate codec system ⁇
  • the decoding device obtains whether the flipping bit transmission error occurs and whether the valid data is reversed according to the value of the toggle bit and the value of the predefined toggle bit, and also acquires the encoding device pair transmission.
  • the statistical result and the second polarity statistical result determine whether to flip the received valid data. If the value of the predefined flip bit is detected, it is confirmed that no error occurs during the sending of the inverted bit, and whether the value of the inverted bit is directly determined is determined according to the value of the inverted bit. Flip the valid data received.
  • the embodiment of the present invention further provides a processor for performing the method steps of the embodiment shown in FIG. 1 or FIG. 2 above.
  • the embodiment of the invention further provides a storage device; the storage device is configured to store the program instructions corresponding to the method steps of the embodiment shown in FIG. 1 or FIG. 2 above.
  • Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
  • the encoding apparatus of this embodiment includes: an encoding module 0 and a framing module 1], wherein the encoding module 10 is configured to be effective in sending Before the data, the encoding information and the predefined ⁇ bit flipping bit for the transmitted valid data and the encoding information are inverted to enable the decoding device to determine whether the flip bit transmission occurs according to the value of the received flip bit and the value of the predefined toggle bit.
  • the error and whether to flip the received valid number data, the encoding information includes a 1-bit sync header; the framing module 1 1 is configured to transmit the valid data encoding information and the flip bit into the transmitted data frame.
  • the encoding module adds 1 bit synchronization header information before the valid data to make the decoding device at the receiving end know whether the encoded data is data information or control information, and the added 2-bit flipping bit can make the decoding device. It is known whether a transmission error has occurred in the encoded data transmission, so that the decoding apparatus can perform corresponding decoding processing according to different situations. If no transmission error occurs, it is determined whether to flip the valid data directly according to the value of the received flip bit. Otherwise, it is necessary to transmit the retransmitted encoded data or determine whether the valid data is performed according to further determining which error has occurred. Inverted, in this way, the embodiment of the present invention can effectively reduce the occurrence of errors caused by the flip bit transmission.
  • the encoding apparatus of this embodiment may further include a statistic module (not shown) for performing polarity statistics on the transmitted significant digits and the encoded information, and acquiring the first polarity statistics sent to the decoding device.
  • a statistic module (not shown) for performing polarity statistics on the transmitted significant digits and the encoded information, and acquiring the first polarity statistics sent to the decoding device.
  • a predefined 2-bit flipping bit for the transmitted valid data and the encoded information is added, and the value of the flipping bit is determined according to the first polarity statistical result, so that the receiving end Decoding means determining, according to the value of the received toggle bit and the value of the predefined toggle bit, whether a toggle bit transmission error occurs, and the ⁇ decoding means detects that the value of the received toggle bit is a value of a non-predefined toggle bit,
  • the valid data and the encoded information are carried out.
  • the polarity statistics are obtained, and the second polarity statistical result is obtained and determined according to the first
  • the coded information further includes 4 error checking and correcting the ECC code for correcting the transmitted effective number ⁇ and the encoded information, and the transmission can be implemented by the ECC code.
  • the effective data and coding information are protected by coding, thereby further reducing the bit error rate of the codec system.
  • the coding apparatus of this embodiment can be used to implement the technical solution of the foregoing coding method embodiment, and the working principle and the technical effects achieved are similar, and no further details are entertained here.
  • the decoding apparatus of this embodiment includes: a capturing module 20 and a decoding module 21, wherein the acquiring module 20 is configured to acquire received data.
  • the valid data, the encoded information, and the 2-bit flipping bit, the encoding information includes a 1-bit sync header;
  • the decoding module 21 is configured to determine whether a flip bit transmission error occurs according to the value of the toggle bit and the value of the predefined toggle bit And whether to flip the valid data.
  • the obtained module obtains the number of encoded frames transmitted by the transmitting end, and decomposes the data frame to obtain the valid data> encoding information and the 2-bit flipping bit, and the decoding module obtains the flipping bit and the pre-acquisition according to the acquiring module.
  • the value of the defined 2-bit flip bit is compared to determine whether a flip bit transmission error occurs for corresponding processing, and the bit error rate caused by the flip bit transmission error can be reduced.
  • the encoding information decoded by the decoding device may further include an ECC code for encoding and protecting the transmitted valid data and the encoded information.
  • the acquiring module of the decoding device further acquires the The statistical information is collected, so that when the value of the received flip bit is detected as a value of the non-predefined flip bit, the decoding module performs the polarity statistics on the received valid number ⁇ and the encoded information to obtain the second polarity statistic.
  • the decoding device of the present embodiment can be used to implement the technical solution of the foregoing decoding method embodiment, and the working principle and the technical effects achieved are similarly not described in detail herein.
  • FIG. 5 is a schematic structural diagram of another embodiment of an encoding apparatus/decoding apparatus according to the present invention.
  • the encoding apparatus/decoding apparatus of this embodiment includes a CRJ 50, a memory 52, a communication interface 54, and a bus 53, wherein the CPU 50 can be used.
  • the memory 52 can be used to store program instructions corresponding to the steps in the above-described encoding method embodiment or decoding method embodiment
  • the communication interface 54 can be used to transmit or
  • the received encoded data frame 5 bus 53 is used for communication between the various functional units within the encoding device/decoding device. In the actual application, if the encoding device is shown in FIG.
  • the CPU 50 when the CPU 50 acquires the valid data to be transmitted, the CPU 50 encodes the transmission data according to the program instruction stored in the memory 52, and forms an encoded data frame, which is sent to the communication interface 54.
  • the decoding device is shown in FIG. 5, when the communication interface 54 receives the encoded data frame transmitted by the transmitting end, it transmits it to the CPLI 50, and the CPU 50 parses the digital frame according to the program instruction stored in the memory 52. Process to obtain valid data before encoding.
  • FIG. 6 is a schematic structural diagram of an embodiment of a codec system according to the present invention.
  • the codec system of this embodiment includes the above-mentioned coding apparatus shown in FIG. 3 or FIG. 5 and FIG. 4 or FIG. 5 described above.
  • the decoding device 200 is shown.
  • the encoding device 100 is configured to encode the number of frames to be transmitted to form a transmitted encoded data frame
  • the decoding device 200 is configured to decode the encoded data frame obtained by the encoding device and capture the data to be transmitted before encoding by the encoding device.
  • the codec system of the present embodiment can increase the 2-bit predefined toggle bit by the encoding device before the valid data transmitted, so that the decoding device can receive the data encoded by its transmission according to the value of the received toggle bit and the predefined
  • the toggle bit is compared to determine if a transfer bit has occurred in the transfer. An error can be taken to take the appropriate processing to obtain an accurate data before the encoding of the encoding device.
  • the coding and decoding system of this embodiment can complete the technical solution of the technical solution and the decoding method embodiment of the foregoing coding method embodiment, and the working principle and the technical effects achieved are similar, and are not detailed here. Description 4
  • the present invention may be implemented in hardware, or in a firmware implementation, or a combination thereof.
  • the functions described above may be stored in or embodied as one or more instructions or code on a computer readable medium, including computer storage media and communication media.
  • a computer-readable media can comprise RAM, ROM , EEPROM, CO-ROM or other optical disc storage, magnetic storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and that can be accessed by a computer. Also. Any connection may suitably be a computer readable medium.
  • a 5 coaxial cable is transmitted from a website > server or other remote source.
  • fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared wireless and oscillating waves are included in the fixing of the associated medium.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disc, and a Blu-ray disc, wherein the disc is usually magnetically copied, and The disc uses a laser to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

本发明公开了一种编码/解码方法,装置及***,其中编码方法,包括:在发送的有效数据前增加编码信息和预定义的是否对发送的有效数据和编码信息翻转的2比特翻转位,以使解码装置根据接收的翻转位的值和预定义的翻转位的值确定是否发生翻转位发送错误以及是否对接收的有效数据进行翻转,所述编码信息包括1比特同步头;将发送的有效数据、编码信息及翻转位组成发送的数据帧。本发明通过采用2比特翻转位使得编解码***能够有效降低***的误码率。

Description

编码 /解码方法、 装置及*** 技术领域 本发明涉及通信技术, 尤其涉及一种编码 /解码方法、 装置及***。 背景技术 随着通信技术的发..展, 数据传输的速率和数据量在不断增大, 为提高高 速率传撿数据的可靠性, 一般会对传输的数据进行编码, 在对数据的编码中, 编码效率、 直流平衡特性以及误码率都是需要考虑的重要因素。
在现有的高速串行传输***的编码中, 64B./67B 是一种具有较高编码效 率的高速串行编码方法, 该编码方法的编码数据中包括 64比特 (bit)的有效数 椐, 2比特的同步头和〗 比特的翻转位 在该编码方法中, 设定〖比特的翻 转位可使接收端的解码装置根据其接收的翻转位确定是否对接收的有效数据 进行翻转, 以获取发送端的编码装置编码前实际传输的数据
但是, 编码数据在链路上传输的过程中, 翻转位若发生了变化 则解码 装置解码获取的数据并非是编码装置编码前实际要传输的数据, 从而出现解 码错误, 导致编解码***发生较大的误码率,, 发明内容 有鉴于此, 本发明实施例提供了一种编码 /解码方法、 装置及***, 用以 降低编解码***的误码率。
第一个方面, 提供了一种编码方法, 包括: 在发送的有效数据前增加编 码信息和預定义的是否对发送的有效数据和编码信息翻转的 2比特翻转位, 以使解码装置根据接收的翻转位的值和预定义的翻转位的值确定是否发生翻 转位发送错误以及是否对接收的有效数据进行翻转 所述编码信息包括 1 比 特同步头;
将发送的有效数据 编码信息及翻转位组成发送的数据帧。
结合第一个方面的编码方法, 在第一种实现方式中, 所述编码信息还 包括用于对发送的有效数据和编码信息进行纠错的错误检查和糾正码 結合第一个方面的编码方法或第一种实现方式, 在第二种实现方式 中 将发送的有效数据 编码信息及翻转位组成发送的数据帧之前, 还包括: 对发送的有效数据和编码信息进行极性统计, 获取发送给解码装置的第 极性统计结杲;
根据第一极性统计結果确定发送的翻转位的值, 以使.解码装置检测到接 收的翻转位的值为非预定义的翻转位的值时, 对接收的有效数据和编码信息 进行极性统计, 获取第二极性統计结果 并根椐第一极性统计结果和第二极 杜统计结果确定是否对接收的有效数椐进行翻转。
结合第一个方面的编码方法、 第一种实现方式或第二种实现方式, 在 第三种实现方式中, 预定义的翻转位的值为 "ΟΓ'表示发送的有效数据和编 码信息没有发生翻转, " 10" 表示发送的有效数据和编码信息发生翻转 或 者预定义的翻转位的值为 ":10" 表示发送的有效数据和编码信息没有发生翻 转, "or 表示发送的有效数据和编码信息发生翻转
第二个方面, 提供了一种解码方法, 包括:
获取接收的数据幀中的有效数据、 编码信息及 2比特翻转位, 所述编码 信息包括 1 比特同步头;
根据所述翻转位的值和預定义的是否对发送的有效数据和编码信息翻转 的 2比特翻转位的值确定是否发生翻转位发送错误以及是否对所述有效数据 进 4†翻转。
结合第二个方面的解码方法, 在第一种实现方式中, 所述编码信息还 包括用于对发送的有效数据和编码信息进行糾错的错误检查和纠正。
结合第二个方面的解码方法或第一种实现方式, 在第二种实现方式 中, 根据所述翻转位的值和预定义的是否对发送的有效数据和编码信息翻转 的 1比特翻转位的值确定是否发生翻转位发送错误以及是否对所迷有效数据 进行翻转之前, 还包括:
获取编码装置对发送的有效数椐和编码信息进行极性统计的第一极性统 计结果;
相应地, 根据所述翻转位的值和预定义的是否对发送的有效数据和编码 信息翻转的 2比特翻转位的值确定是否发生翻转位发送错误以及是否对所述 有效数据进行翻转, 包括: 若检测到接收的翻转位的值为非预定义的翻转位的值, 则对接收的有效 数据和编码信息进行极性统计, 荻取第二极性统计結果, 并根据第一极性统 计结果和第二极性统计结果确定是否对接收的有效数据进行翻转, 否则根据 接收的翻转位的值确定是否对接收的有效数据进行翻转
結合第二个方面的解码方法、 第一种实现方式或第二种实现方式, 在 第三种实现方式中, 若翻转位的值为 "01 " 表示发送的有效数椐和编码信息 没有发生翻转, " 10" 表示发送的有效数据和编码信息发生翻转, 或者所述 翻转位的值为 "10" 表示发送的有效数据和编码信息没有发生翻转, "or 表示发送的有效数据和编码信息发生翻转
第三个方面, 提供了一种编码装置, 包括:
编码模块, 用于在发送的有效数据前增加编码信息和预定义的是否对发 送的有效数据和编码信息翻转的 2比特翻转位, 以使解码装置根据接收的翻 转位的值和预定义的翻转位的值确定是否发生翻转位发送措误以及是否对接 收的有效数据进行翻转, 所述编码信息包括 1. 比特同步头;
成帧模块, 用于将发送的有效数椐, 编码信息及翻转位组成发送的数据 顿
结合第三个方面的编码装置, 在第一种实现方式中, 所迷编码信息还 包括用于对发送的有效数据和编码信息进行纠错的错误检查和纠正码
结合第三个方面的编码装置或第一种实现方式, 在第二种实现方式 中, 编码装置还包括:
统计模块, 用于对发送的有效数椐和编码信息进行极性统计, 获取发送 给解码装置的第一极性统计结果;
所述编码模块, 具体用于在发送的有效数据前增加编码信息, 所述.编码 信息包括 i 比特同步头; 以及具体用于在发送的有效数据前增加预定义的是 否对发送的有效数据和编码信息翻转的 2比特翻转位, 且根据第一极性统计 结果确定翻转位的值, 以使解码装置根据接收的翻转位的值和预定义的翻转 位的值确定是否发生翻转位发送错误, 以及当解码装置检测到接收的翻转位 的值为非预定义的翻转位的值时, 对接收的有效数据和编码信息进行极性统 计, 荻取第二极性统计结果, 并根据第一极性统计結果和第二极性统计结果 确定是否对接收的有效数据进行翻转。 結合第三个方面的编码装置、 第一种实现方式或第二种实现方式, 在 第三中实现方式中, 預定义的翻转位的值为 "01 " 表示发送的有效数椐和编 码信息没有发生翻转, " 10" 表示发送的有效数据和编码信息发生翻转, 或 者预定义的翻转位的值为 "10" 表示发送的有效数据和编码信息没有发生翻 转, "0! " 表示发送的有效数据和编码信息发生翻转》
第 个方面, 提供了一种解码装置, 包括:
获取模块 用于荻取接收的数据帧中的有效数据、 编码信息及 2比特翻 转位 所述编码信息包括 1 比特同步头;
解码模块, 用于根椐所述翻转位的值和预定义的是否对发送的有效数据 和编码信息翻转的 2比特翻转位的值确定是否发生翻转位发送错误以及是否 对所述有效数据进行翻转
结合第四个方面的解码装置, 在第一种实现方式中, 所述编码信息还 包括用于对发送的有效数据和编码信息进 -行纠错的错误检查和纠正码„
結合第四个方面的解码装置或第一种实现方式, 在第二种实现方式 中, 获取模块, 还用于获取编码装置对发送的有效数据和编码信息进行极性 统计的第一极性统计结果;
解码模块, 具体用于若检测到接收的翻转位的值为非预定义的翻转位的 值, 则对接收的有效数椐和编码信息进行极性统计 > 获取第二极性统计结果, 并根据第一极性统计结果和第二统计结果确定是否对接收的有效数据进行翻 转, 否则根据接收的翻转位的值确定是否对接收的有效数据进行翻转
结合第 ¾9个方面的解码装置、 第一种实现方式或第二种实现方式, 在 第三种实现方式中, 若翻转位的值为 "0Γ表示发送的有效数据和编码信息 没有发生翻转, " 0" 表示发送的有效数椐和编码信息发生翻转, 或者所述 翻转位的值为 " 10" 表示发送的有效数据和编码信息没有发生翻转, "0 表示发送的有效数据和编码信息发生翻转„
第五个方面, 提供了一种编解码***, 包括上述的編码装置和上迷的解 码装置。
本发明的编码装置通过在发送的有效数据前增加预定义的是否对发送的 有效数据和编码信息翻转的 τ比特翻转位 使得解码装置可以根据其接收的 翻转位的值和预定义的翻转位的值确定其接收的翻转位是否出现了发送错误 以获馭正确的编码数据; 进一步地, 通过根据获取的第一极性统计结果确定 发送的翻转位的值并将第一极性统计结果发送给接收端, 使得接收端的解码 装置在确定翻转位发生传送错误时可以准确确定翻转位发生了哪种翻转错 误, 从而确定是否对接收的有效数据进行翻转, 实现了编码数椐的自保护, 从而有效降低了编解码***的误码率„, 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描迷中所需要使用的附图作一简单地介紹, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动的前提下 还可以根据这些附图获得其他的附图;
图 】为本发明编码方法实拖例的流程图;
图 2为本发明解码方法实旄例的流程图;
图 3为本发明编码装置一实施例的结构示意图;
图 4为本发明解码装置一实施例的结构示意图;
图 5本发明编码装置 /解码装置另一实施例的结构示意图;
图 6为本发明编解码***实旄例的结构示意图。 具体实施方式
为使本发明实施例的 S的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例„ 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实旄例, 都属于本发明保护的范 L
图 1为本发明编码方法实旄例的流程图, 如图 】所示, 本实施例的编 码方法, 包^
步骤 101、 在发送的有效数据前增加编码信息和预定义的是否对发送的 有效.数据和编码信息翻转的 2比特翻转位 f 以使解码装置根据接收的翻转位 的值和预定义的翻转位的值确定是否发生翻转位发送错误以及是否对接收的 有效数据进行翻转, 所述编码信息包括 1 比特同步头 在高速串行传输***中, 发送端会把时钟嵌在数据中传输到接收端, 接 收端利用时钟和数据恢复(clock and data recovery, CD )将数.据和时钟分 别恢复出来。 为了接收端能够准确的恢复出数据和时钟, 在发送端对发送的 数据进行了编码, 使得接收端有足够的数据沿和良好的直流平衡性, 为满足 这些特性, 编码装置一 对发送的有效数据增加了一些信息, 如同步头和翻 转位等, 这些信息会占用一定的传输资源, 因此, 在发送端进.行的编码在一 定程度上会降低编码效率 利用较少的编码信息并获得准确的、 质量高编码 数据总是人们所期望的。 64B/67B 编码尽管具有较高的编码效率, 但当编码 中的翻转位出现传送错误时, 接收端的解码装置无法判断出这种错误, 从而 无法对接收的有效数据进行正确的翻转, 因此编解码***的误码率较.高9 本 实施例中,发送端的编码装置在待发送的有效数据前增加了 !比特的同步头 以使接收端的解码装置可以根据该同步头确定发送的有效数椐是控制信息还 是数据信息, 由于采用 i 比特同步头, 可以降低编码信息占用的码位数, 有 利于提高编码效率。具体应用中,可以设定同步头为 表示控制信息 ÷ "(T 表示数据信息, 也可以设定同步头为 "0" 表示控制信息, " 1" 表示数据信 息。 为对翻转位在传送中出现的错误进行判断, 降低由于翻转位传送错误而 产生解码错误, 本实施例中, 将翻转位的位数扩展到 2比特, 即编码装置还 在待发送的有效数据前增加了预定义的是否对发送的有效数椐和编码信息翻 转的 2bii翻转位, 由于采用了 2bit翻转位, 当接收端的解码装置获取 2bii翻 转位时, 可以根据翻转位的值确定翻转位是否发生了传送错误。 2bit数据有 "00" 、 "Π" 、 "0Γ 和 " 0" 四种, 由于 2比特翻转位同时在发送中发 生变化的概率较小, 编码时可以仅考虑对 〖 比特传送错误进行编码保护, 即 預定义的 2比特翻转位可选自 "01" 和 "10" 组合或者 "00" 和 "11" 组合, 接收端的解码装置可以根据其接收到的翻转位判断出是否发生了传送错误。 即编码装置和解码装置可以约定选用上述组合之一作为预定义的是否对发送 的有效数据和编码信息翻转的 2比特翻转位
实际应用中, 为提升编解码***的直流平衡特性, 在本发明的优选实施 例中, 选用 "01" 和 " 10" 作为预定义的翻转位的值, 而选用 "00" 和 "1 1" 作为非预定义的翻转位的值, 当发送中 "0Γ 和 'Ί Ο" 发生 1 比特变化时, 接收端解码装置可以检测出传送错误, 而且由于选用 "0! " 和 "】0" 作为预 定义的翻转位的值, 翻转位中的 "1 " 和 "0" 是相等的, 有利于使传输数据 中 和 "0" 的个数差别尽量减小, 即有利于提升编解码***的直流平衡 特性, 从! ¾有利于降低***的误码率。
在本实施例的一种实现方式中, 若預定义的翻转位的值为 "01 " 表示发 送的有效数据和编码信息没有发生翻转 " 10" 表示发送的有效数据和编码 信息发生了翻转, 则当解码装置解码得到翻转位的值是 "0Γ 时, 则确认发 送端的编码装置在编码时没有对发送的有效数椐和编码信息进行翻转, 若得 到的翻转位的值是 "10" , 则确认 送端的编码装置在编码时对发送的有效 数椐和编码信息进行了翻转, 可以通过对接收的有效数据进行翻转以获取发 送端编码器编码前实际要发送的有效数据; 而当得到的翻转位的值是 或者 "00" , 即得到的翻转位的值为非预定义的翻转位的值, 则确认发送出 现错误, 需要发送端重传编码数椐或者需要进一步判断翻转位发生了哪种传 送錯误并进行相应的处理
在本实旄例的另一种实现方式中, 当预定义的翻转位的值为 "〗0" 表示 发送的有效数据和編码信息没有发生翻转, "01" 表示发送的有效数椐和编 码信息发生翻转时, 接收端的解码装置获取翻转位后的处理方式与上迷实现 方式中的处理类似。
在实际应用中, 在解码装置发现翻转位传送错误时, 为避免进行编码数 据需要重传, 编码装置还向解码装置传送用于确定翻转位出现了哪种翻转错 误的信息 只要编码装置与解码装置通过相同的算法获取比对信息, 编码装 置将其荻取的比对信息传输給解码装置, 解码装置将其接收的比对信息与其 自身计算出的比对信息进-行比较即可获知翻转位的变换情况。 如编码装置根 椐其计算获取的第一极性统计结果确定发送的翻转位的值, 即将发送的有效 数据、 编码信息及翻转位组成发送的数据帧之前, 编码装置对发送的有效数 据和编码信息进行极性统计, 获驭第一极性统计结杲, 并将该第一极性统计 结果发送给接收端的解码装置, 从而解码装置在检测到非预定义的翻转位的 值时 可以对接收的有效数椐和编码信息进.行极性统计, 获馭第二极性统计 结果, 并根据接收的第一极性统计结果和第二极性统计结果对确定传送中翻 转位发生了哪种翻转错误 即解码装置比较第一极性统计结果和第二极性统 计结果是否一致, 从而确定翻转位在发送中出现的错误。 例如, 预定义的翻 转位的值为 " 10" 和 <s01 " , ¾ " I 和 "00" 为非预定义的翻转位的值, 当检测到的翻转位的值是 "00" , 即非预定义的翻转位的值, 则说明发送出 现错误, 此时, 解码装置根椐其对接收的有效数据和编码信息进行的极性统 计获取第二极性统计结果 若该第二极性统计结杲与其接收的第一极性统计 结果一致, 则确认编码装置没有对发送的有效数据和编码信息进行翻转, 否 则确认编码装置对发送的有效数据和编码信息进行了翻转, 从 可确定该翻 转位的值是从 " 10" 还是从 "01 " 变化来的, 从而再进一步确定是否对接收 的有效数椐进行翻转, 以获取编码装置编码前要传输的有效数据。
步骤 102、 将发送的有效数据、 编码信息及翻转位组成发送的数据幀。 当编码装置在上述步骤〗01 中完成对传输的数据编码后, 可以将发送的 有效数据> 编码信息及翻转位组成发送的数椐帧, 发送给接收端的解码装置 如待发送的有效数据为 64比特数椐, 编码信息为 1比特的同步头, 翻转位为 2比特, 即可组成发送的 67bit数据帧,其中 [63:0]为有效数据, [64]为同步头,
[65 :66]为翻转位
本实施例中, 編码装置通过在发送的有效数据前增加预定义的是否对发 送的有效数据和编码信息翻转的 2比特翻转位, 使得解码装置可以根据其接 收的翻转位的值和预定义的翻转位的值确定其接收的翻转位是否出现了发送 错误以荻取正确的编码数据; 进一步地, 通过根据获取的笫一极性统计结杲 确定发送的翻转位的值并将第一极性统计结杲发送给接收端, 使得接收端的 解码装置在确定翻转位发生传送错误时可以准确确定翻转位发生了哪种翻转 错误, 从而确定是否对接收的有效数据进行翻转 实现了编码数据的自保护, 从而有效降低了编解码***的误码率, 提高了编码盾量, 而且还能保证编码 效率在 90%以上 <,
在实际应用中, 为了进一步降低编解码***的误码率, 本发明还在上迷 实施例的基础上, 进一步在编码信息中携带有用于对发送的有效数据和编码 信息进行纠错的错误检査和纠正 ( error checking and correcting, ECC )码, 通过编码信息中的 £CC码可以实现对发送的有效数t和编码信息进-行 护, 而且由于使用了 ECC码使得传送的数据桢中发送的有效数据和编码信息实现 了编码自保护, 可避免接收端解码装置发现数据传输错误时需要^ ^送端重传 的问題, 进一步降低了数据传输的延迟。 具体实施中, 若传送的有效数据为 64比特, 则可以设定 3比特的 ECC码, 此时组成发送的 70比特的数椐帧, 其中 [63:0〗为有效数据 , [66:64 "!为 ECC码, [67]为同步头, 『69:68 j为翻转位 若采用四通道进行传输,则利用】2比特 ECC码可校正 256比特有效数据和 4 比特同步头中出现的 1比特错误
图 2为本发明解码方法实施例的流程 S , 如图 2所示, 本实旄例的解码 方法包 4舌:
步骤; 20】、 获取接收的数据帧中的有效数据 编码信息及 2比特翻转位, 所述编码信息包括 1 比特同步头。
高速串行传输***接收端的解码装置获取发送端发送的编码数据愤后, 对该数据帧进行解析, 获取其中携带的有效数据、 编码信息及 2比特翻转位 步骤 202、 根据所述翻转位的值和预定义的是否对发送的有效数据和编 码信息翻转的 2比特翻转位的值确定是否发生翻转位发送错误以及是否对所 述有效数据进行翻转 β
解码装置根据获取的翻转位的值和预定义的翻转位的值可以确定翻转位 在发送过程中是否发生了错误。 例如, 若接收的翻转位的值为非预定义的翻 转位的值, 则确认发送出现错误, 需要发送端重传编码数据或者需要进一步 判断翻转位发生了哪种传送错误并进行相应的处理。 该步骤中解码装置进行 翻转位的判定及相应处理如上述编码方法实施例的详细说明,在此不再赘迷。
本实施例中的解码装置根据接收的翻转位的值和预定义的翻转位的值确 定是否发生翻转位发送错误以及是否对所述有效数据进行翻转, 可对传输过 程中翻转位出现的传送错误进行相应的处理, 获取正确的编码数据, 可有效 降低因翻转位出现传送错误而产生的编解码***的误码率, 从而提高编码质 量。
在实际应用中, 为提髙編码数据的纠错能力, 解码装置获取的编码信息 还包括用于对发送的有效数据和编码信息进行纠错的错误检查和纠正 ECC, 实现了对发送的有效数据和编码信息进.行的编码保护, 进一步降低了编解码 ***的误码率 β
在具体实拖例中, 解码装置在根据所述翻转位的值和预定义的翻转位的 值确定是否发生翻转位发送错误以及是否对所述有效数据进行翻转之前, 还 获取编码装置对发送的有效数椐和编码信息进行极性统计的第一极性统计结 杲; 若检测到接收的翻转位的值为非预定义的翻转位的值, 则对接收的有效 数据和编码信息进行极性统计, 荻取第二极性统计結果, 并根据第一极性统 计结果和第二极性统计结果确定是否对接收的有效数据进行翻转 若检测到 预定义的翻转位的值, 則确认翻转位发送过程中没有发生错误, 直接根据接 收的翻转位的值确定是否对接收的有效数据进行翻转。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中,该程序在执行时 处理器,如中央处理单元(Central Processing Unit,, CPU ) , 执行包括上述方法实施例的步骤; 而前述的存储介盾包括: 只读存储器■ ( read-only memory, ROM )、随机存'储器■ ( random access memory , RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介盾。 因此 本发明实施 例还提供一种处理器, 该处理器用于执行上述图 1.或图 2所示实施例的方法 步骤。 本发明实施例还提供一种存储装置; 该存储装置用于存储上述图 1或 图 2所示实施例的方法步驟对应的程序指令。
本发明实施例进一步给出实现上述方法实施例中各步骤及方法的装置实 施例 ,
图 3为本发明编码装置一实施例的结构示意图, 如图 3所示, 本实施例 的编码装置包括: 编码模块】 0和成帧模块 1】, 其中编码模块 10, 用于在发 送的有效数据前增加编码信息和预定义的是否对发送的有效数据和编码信息 翻转的 τ比特翻转位 以使解码装置根据接收的翻转位的值和预定义的翻转 位的值确定是否发生翻转位发送.错误以及是否对接收的有效数.据进行翻转, 所述编码信息包括 1 比特同步头; 成幀模块 1 1, 用于将发送的有效数据 编码信息及翻转位纽成发送的数据帧。
本实旄例中编码模块在编码时, 在有效数据前增加 1 比特同步头信息以 使接收端的解码装置荻知该编码数据为数据信息还是控制信息, 而增加的 2 比特翻转位可使解码装置获知编码数据传送中是否发生了传送错误, 从而使 解码装置可根椐不同情况进行相应的解码处理。 如没有发生传送错误, 则直 接根据接收的翻转位的值确定是否对有效数据进行翻转, 否则则需要发送瑞 重传编码数据或者根据进一步判断出发生了哪种错误而进行确定是否对有效 数据进行翻转, 固此, 本发明实施例可有效降低因翻转位传送错误而发生的 在具体应用中, 本实施例的编码装置还可以进一步包括统计模块(未 示出) > 用于对发送的有效数椐和编码信息进行极性统计, 获取发送给解码 装置的第一极性统计结杲, 从 编码模块, 在发送的有效数据前增加预定义 的是否对发送的有效数据和编码信息翻转的 2比特翻转位时根据第一极性统 计结果确定翻转位的值, 以使接收端的解码装置根据接收的翻转位的值和预 定义的翻转位的值确定是否发生翻转位发送错误, 以及 ΐ解码装置检测到接 收的翻转位的值为非预定义的翻转位的值时, 对接收的有效数据和编码信息 进行.极性统计, 获取第二.极性统计结果 并根据第一.极性统计结果和第二极 性统计结果确定是否对接收的有效数据进.行翻转。
在实际应用中, 为进一步提高编码的纠错能力, 在编码信息中还包括有 用于对发送的有效数椐和编码信息进行纠错的 4 误检查和纠正 ECC码,通过 ECC码可实现对发送的有效数据和编码信息进行的编码保护, 从而进一步降 低编解码***的误码率。
本实施例的编码装置可用于执行上述编码方法实施例的技术方案, 其工 作原理及达到的技术效果类似, 在此不再详细赘迷, >
图 4为本发明解码装置一实施例的结构示意图, 如图 4所示, 本实施例 的解码装置包括: 荻取模块 20和解码模块 21 , 其中获取模块 20 , 用于获取 接收的数据桢中的有效数据、 编码信息及 2比特翻转位, 所述编码信息包括 1 比特同步头; 解码模块 21 , 用于根据所述翻转位的值和预定义的翻转位的 值确定是否发生翻转位发送 误以及是否对所述有效数据进行翻转。
本实施例中获馭模块获取发送端传送的编码数椐帧, 并对该数据幀进行 分解获取其中包括的有效数据> 编码信息及 2比特翻转位, 解码模块根据获 取模块获取的翻转位与預定义的 2比特翻转位的值进行比较确定是否发生翻 转位发送错误以进行相应的处理,可降低因翻转位传送错误而产生的误码率 具体应用中, 与发送端的编码装置的編码相对应, 解码装置解码出的编 码信息中还可以包括 ECC码 用于对发送的有效数据和编码信息进行编码保 护 当发送端还传送有第一极性统 #结果时, 解码装置的获取模块还获取该 统计结杲信息, 从而解码模块在检测到接收的翻转位的值为非预定义的翻转 位的值时, 对接收的有效数椐和编码信息进^极性统计, 获取第二极性统计 结果 , 并根据获取模块接收的第一极性统计结果与其统计获馭的第二统计結 杲进行比较以确定是否对接收的有效数据进行翻转, 而当检测到接收的翻转 位的值为预定义的翻转位的值时, 直接根据接收的翻转位的值确定是否对接 收的有效数据进行翻转, 而无需再对接收的有效数椐和编码信息进行极性统 计
本实施倒的解码装置可用于执行上述解码方法实施例的技术方案, 其工 作原理及达到的技术效杲类似 在此不再详细赘述。
图 5本发明编码装置 /解码装置另一实施例的结构示意图, 如图 5所示, 本实施例的編码装置 /解码装置包括 CRJ50、 存储器 52、 通信接口 54以及总 线 53 ,其中 CPU50可用于执行上述编码方法实施例或解码方法实旄例中的操 作步骤,存储器 52可用于存储与上述.编码方法实施例或解码方法实施例中搡 作步骤对应的程序指令, 通信接口 54 可用于发送或接收编码数据帧5 总线 53用于编码装置 /解码装置内部各个功能单元之间的通信。 实际应用中, 若图 5表示的是编码装置, 则 CPU50获取待传输的有效数据时, 根据存储器 52 中存储的程序指令对发送数据进行编码, 形成编码数据帧, 通过通信接口 54 将其发送給接收端, 若图 5表示的是解码装置, 别通信接口 54接收到发送端 传输的编码数据帧时, 将其传送给 CPLI50, 同时 CPU50根据存储器 52中存 储的程序指令对该数椐帧进行解析处理获取编码前的有效数据。
图 6为本发明编解码***实施例的结构示意图, 如图 5所示, 本实施例 的编解码***包括上述图 3或图 5所示的编码装置〗()0和上述图 4或图 5所 示的解码装置 200。 其中编码装置 100用于对待发送的数椐进行编码以组成 发送的编码数据幀, 解码装置 200用于对其获取的编码数据幀迸 -行解码荻取 编码装置编码前待发送的数据<,
本实旄例的编解码***通过编码装置在发送的有效数据前增加 2比特预 定义的翻转位可使解码装置在接收到其传送的数据编码 «时根据接收的翻转 位的值和预定义的翻转位进行比较以确定翻转位在传送中是否发生了传送.错 误, 从而可以采取相应的处理措施进行处理以获取准确的编码装置编码前的 有效数据
本实施例的编解码***可完成上述编码方法实施例的技术方案和解码方 法实施例的技术方案, 其工作原理及达到的技术效果类似, 在此不再详细赘 述4
通过以上的实施方式的描迷 所属领域的技术人员可以清楚地了解到本 发明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件 实现时, 可以将上述功能存储在计雾机可读介质中或作为计算机可读介质上 的一个或多个指令或代码进行传输 计算机可读介盾包括计算机存储介盾和 通信介质, 其中通信介质包括便于从一个地方向另一个地方传送计算机 序 的任何介质 存储介质可以是计算机能够存取的任何可用介质 以此为例但 不〖:艮于: 计算机可读介质可以包括 RAM、 ROM, EEPROM、 CO-ROM或其 他光盘存储、 磁盘存储介质或者其他磁存储设备、 或者能够用于携带或存储 具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他 介质。 此外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是 使用同轴电缆、 光纤光缆、 双绞线、 数字用户线(DSL )或者诸如红外线、 无线电和微波之类的无线技术从网站> 服务器或者其他远程源传输的5 那么 同轴电缆, 光纤光缆、 双絞线、 DSL或者诸如红外线 无线和徵波之类的无 线技术包括在所属介质的定影中。 如本发明所使用的, 盘( Disk )和碟( disc ) 包括压缩光碟 ( CD ) 、 激光碟、 光碟、 数字通用光碟(DVD ) 、 软盘和蓝光 光碟, 其中盘通常磁性的复制数椐, 而碟则用激光来光学的复制数据。 上面 的组合也应当包括在计算机可读介质的保护范围之内。
总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定 本发明的保护范围 凡在本发明的精神和原则之内, 所作的任何修改、 等同 替换, 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求
1、 一种编码方法, 其特征在于, 包括:
在发送的有效数据前增加编码信息和预定义的是否对发送的有效数据和 编码信息翻转的 2比特翻转位, 以使解码装置根据接收的翻转位的值和预定 义的翻转位的值确定是否发生翻转位发送错误以及是否对接收的有效数据进 行翻转, 所述编码信息包括】 比特同步头;
将发送的有效数据、 编码信息及翻转位组成发送的数据帧。
2、 根据权利要求 :1所述的方法, 其特征在于, 所迷编码信息还包括用于 对发送的有效数据和编码信息进行糾错的错误检查和纠正码。
3 , 根据权利要求 1或 2所述的方法, 其特征在于, 将发送的有效数据、 编码信息及翻转位组成发送的数据帧之前, 还包括:
对发送的有效数据和编码信息进行极性统计, 荻取发送给解码装置的第 一极性统计结果;
根据第一极性统计结果确定发送的翻转位的值, 以使解码装置检测到接 收的翻转位的值为非预定义的翻转位的值时, 对接收的有效数据和编码信息 进行极性统计, 获取第二极性统计结果, 并根据第一极性统计结果和第二极 性统计结果确定是否对接收的有效数据进行翻转。
4、 根据权利要求 1至 3中任一项所述的方法, 其特征在于, 预定义的翻 转位的值为 Λ01 " 表示发送的有效数据和编码信息没有发生翻转, £Ί 0" 表 示发送的有效数据和编码信息发生翻转, 或者预定义的翻转位的值为 " 10" 表示发送的有效数椐和编码信息没有发生翻转, "0Γ, 表示发送的有效数椐 和编码信息发生翻转
5、 一种解码方法, 其特征在于, 包括:
获取接收的数据帧中的有效数据、 编码信息及 2比特翻转位, 所述编码 信息包括 1 比特同步头;
根据所述翻转位的值和预定义的是否对发送的有效数据和编码信息翻转 的 2比特翻转位的值确定是否发生翻转位发送错误以及是否对所述有效数据 进行翻转。
6、 根椐权利要求 5所迷的方法, 其特征在于 所述编码信息还包括用于 对发送的有效数据和编码信息进行糾错的错误检查和纠正。 7、 根据权利要求 5或 6所述的方法, 其特征在于, 根据所述翻转位的值 和预定义的是否对发送的有效数据和编码信息翻转的 2比特翻转位的值确定 是否发生翻转位发送错误以及是否对所述有效数据进行翻转之前, 还包括: 荻取编码装置对发送的有效数据和编码信息进行极性统计的第一极性统 计結果;
相应地, 根据所述翻转位的值和预定义的是否对发送的有效数据和编码 信息翻转的 2比特翻转位的值确定是否发生翻转位发送错误以及是否对所述 有效数据进行翻转, 包括:
若检测到接收的翻转位的值为非预定义的翻转位的值, 则对接收的有效. 数据和编码信息进行极性统计, 获取第二极性统计结果, 并艮据第一极性统 计结果和第二极性统计结果确定是否对接收的有效数据进行翻转 否则根据 接收的翻转位的值确定是否对接收的有效数据进行翻转
8、 根据权利要求 5至 7中任一项所述的方法, 其特征在子, 若翻转位的 值为 "0Γ 表示发送的有效数据和编码信息没有发生翻转, "10" 表示发送 的有效数据和编码信息发生翻转, 或者所述翻转位的值为 " 10" 表示发送的 有效数据和编码信息没有发生翻转, "0Γ, 表示发送的有效数据和编码信息 发生翻转。
9、 一种编码装置, 其特征在于, 包括:
编码模块, 用于在发送的有效数据前增加编码信息和预定义的是否对发 送的有效数据和编码信息翻转的 τ比特翻转位, 以使解码装置根椐接收的翻 转位的值和预定义的翻转位的值确定是否发生翻转位发送错误以及是否对接 收的有效数据进行翻转, 所述编码信息包括 1 比特同步头;
成帧模块, 用于将发送的有效数据、 编码信息及翻转位组成发送的数据 i。
10、 裉据权利要求 9所述的装置, 其特征在于, 所述编码信息还包括 用于对发送,的有效数据和编码信息进.行纠错的错 ϋ检查和纠正码,
11、 根据权利要求 9或】0所述的装置, 其特征在于, 还包括: 统计模块, 用于对发送的有效数据和编码信息进行极性统计, 获取发送 给解码装置的第一极性统计结果;
所述编码模块, 具体用于在发送的有效数椐前增加编码信息, 所述编码 信息包括 1 比特同步头; 以及具体用于在发送的有效数据前增加预定义的是. 否对发送的有效数据和编码信息翻转的 2比特翻转位, 且根据第一极性统计 结杲确定翻转位的值, 以使解码装置才 据接收的翻转位的值和预定义的翻转 位的值确定是否发生翻转位发送错误, 以及当解码装置检测到接收的翻转位 的值为非预定义的翻转位的值时 对接收的有效数据和编码信息进行极性统 计, 获取第二极性统计结果, 并根据第一极性统计结果和第二极性统计结果 确定是否对接收的有效数据进行翻转„
】2、 根据权利要求 9至 1】 中任一项所迷的装置, 其特征在于, 预定 义的翻转位的值为 "0Γ表示发送的有效数据和编码信息没有发生翻转, "10" 表示发送的有效数据和编码信息发生翻转, 或者预定义的翻转位的值为 'Ί Ο" 表示发送的有效数据和编码信息没有发生翻转, "01 " 表示发送的有效数据 和编码信息发生翻转
13、 —种解码装置, 其特征在于, 包括:
获取模块, 用于获取接收的数据帧中的有效数据、 编码信息及 2比特翻 转位, 所述编码信息包括 1 比特同步头;
解码模块, 用于根据所述翻转位的值和预定义的是否对发送的有效数椐 和编码信息翻转的 2比特翻转位的值确定是否发生翻转位发送错误以及是否 对所述有效数椐进行翻转。
14、 根据权利要求 13所述的装置, 其特征在于, 所述编码信息还包括 用于对发送的有效数据和编码信息进行糾错的错误检查和纠正码, :
15、 根据权利要求 3或 14所述的装置, 其特征在于, 获取模块, 还 用于获馭编码装置对发送的有效数据和编码信息迸-行极性统计的第一极性统 计结果;
解码模块,,具体用于若检测到接收的翻转位的值为非预定义的翻转位的 值, 则对接收的有效数据和编码信息进行极性统计, 获馭第二极性统计结杲, 并根据第一极性统计结果和第二统计结果确定是否对接收的有效数据进行翻 转, 否则根据接收的翻转位的值确定是否对接收的有效数椐进行翻转
16、 根据权利要求 13至】5中任一项所述的装置, 其特征在于, 若翻 转位的值为 "0Γ 表示发送的有效数据和编码信息没有发生翻转, "10" 表 示发送的有效数椐和编码信息发生翻转, 或者所述翻转位的值为 " 10" 表示 发送的有效数据和编码信息没有发生翻转, "0Γ 表示发送的有效数椐和编 码信息发生翻转
17、 一种编解码***, 其特征在于, 包括如权利要求 9至〗 2中任一项所 述的编码装置和如权利要求 B至 1.6中任一项所迷的解码装置. >
PCT/CN2012/087804 2012-12-28 2012-12-28 编码/解码方法、装置及*** WO2014101087A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/087804 WO2014101087A1 (zh) 2012-12-28 2012-12-28 编码/解码方法、装置及***
CN201280002474.9A CN103229444B (zh) 2012-12-28 2012-12-28 编码/解码方法、装置及***

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087804 WO2014101087A1 (zh) 2012-12-28 2012-12-28 编码/解码方法、装置及***

Publications (1)

Publication Number Publication Date
WO2014101087A1 true WO2014101087A1 (zh) 2014-07-03

Family

ID=48838341

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087804 WO2014101087A1 (zh) 2012-12-28 2012-12-28 编码/解码方法、装置及***

Country Status (2)

Country Link
CN (1) CN103229444B (zh)
WO (1) WO2014101087A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018085771A1 (en) * 2016-11-06 2018-05-11 Gideon Samid Transmitter for encoding information with randomly flipped bits and transmitting that information through a communications channel
CN108051829A (zh) * 2017-11-06 2018-05-18 深圳开阳电子股份有限公司 一种卫星导航接收机及其导航比特同步方法和装置
CN110972338A (zh) * 2018-09-28 2020-04-07 北京松果电子有限公司 确定用户设备循环冗余校验crc错误的方法、用户设备、基站及存储介质
US10728028B2 (en) 2016-02-18 2020-07-28 Gideon Samid Transmitter for encoding information with randomly flipped bits and transmitting that information through a communications channel

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052577B (zh) * 2014-06-23 2017-11-24 硅谷数模半导体(北京)有限公司 信号传输的处理方法和装置及视频数据的传输方法和***
CN108847916B (zh) * 2018-05-30 2020-12-04 深圳市华星光电技术有限公司 编码方法、设备及可读存储介质
CN112436989B (zh) * 2020-11-11 2021-12-14 北京天融信网络安全技术有限公司 一种can数据帧的信号识别方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1393996A (zh) * 2001-06-29 2003-01-29 日本胜利株式会社 数字信号的调制方法、调制装置及记录媒体
JP2004312133A (ja) * 2003-04-03 2004-11-04 Victor Co Of Japan Ltd 符号化方法、符号化装置、復号方法、復号装置、及び情報記録媒体
CN101729198A (zh) * 2008-10-27 2010-06-09 华为技术有限公司 一种编解码方法、装置及***
CN101867450A (zh) * 2010-06-04 2010-10-20 深圳市国微控股股份有限公司 基于有线数字电视的频谱翻转检测和纠正装置及方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101483190B1 (ko) * 2008-09-05 2015-01-19 삼성전자주식회사 메모리 시스템 및 그것의 데이터 처리 방법
CN102480333B (zh) * 2010-11-22 2014-08-13 华为技术有限公司 线路编码方法、编码数据块同步的处理方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1393996A (zh) * 2001-06-29 2003-01-29 日本胜利株式会社 数字信号的调制方法、调制装置及记录媒体
JP2004312133A (ja) * 2003-04-03 2004-11-04 Victor Co Of Japan Ltd 符号化方法、符号化装置、復号方法、復号装置、及び情報記録媒体
CN101729198A (zh) * 2008-10-27 2010-06-09 华为技术有限公司 一种编解码方法、装置及***
CN101867450A (zh) * 2010-06-04 2010-10-20 深圳市国微控股股份有限公司 基于有线数字电视的频谱翻转检测和纠正装置及方法

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10728028B2 (en) 2016-02-18 2020-07-28 Gideon Samid Transmitter for encoding information with randomly flipped bits and transmitting that information through a communications channel
WO2018085771A1 (en) * 2016-11-06 2018-05-11 Gideon Samid Transmitter for encoding information with randomly flipped bits and transmitting that information through a communications channel
CN108051829A (zh) * 2017-11-06 2018-05-18 深圳开阳电子股份有限公司 一种卫星导航接收机及其导航比特同步方法和装置
CN108051829B (zh) * 2017-11-06 2021-09-28 深圳开阳电子股份有限公司 一种卫星导航接收机及其导航比特同步方法和装置
CN110972338A (zh) * 2018-09-28 2020-04-07 北京松果电子有限公司 确定用户设备循环冗余校验crc错误的方法、用户设备、基站及存储介质
CN110972338B (zh) * 2018-09-28 2021-09-21 北京小米松果电子有限公司 确定用户设备循环冗余校验crc错误的方法、用户设备、基站及存储介质

Also Published As

Publication number Publication date
CN103229444B (zh) 2016-01-13
CN103229444A (zh) 2013-07-31

Similar Documents

Publication Publication Date Title
WO2014101087A1 (zh) 编码/解码方法、装置及***
JP6067637B2 (ja) 集約されたパケットの送信におけるパケットレベル消去保護コーディング
US7805661B2 (en) Method of formatting and encoding uplink short length data in a wireless communication system
JP2007508750A5 (zh)
WO2017092617A1 (zh) 一种错误估计的方法、基站及终端
CN110943800A (zh) 数据包的发送方法、装置及***、存储介质、电子装置
CN101689972B (zh) 用于指示使用捎带的ack/nack字段的临时块流的方法和设备
RU2012151004A (ru) Система управления доступом к среде с прямой коррекцией ошибок
CN103312458A (zh) 混合编码方法
JP7282895B2 (ja) データの再送復号方法、装置、システム及び通信装置
US20160261376A1 (en) Redundancy Scheme
TWI547111B (zh) 指示搭載確認/非確認欄位被定址臨時塊流之方法及裝置
US10389384B2 (en) Data communication method and apparatus using forward error correction
WO2022083371A1 (zh) 一种数据传输方法和装置
WO2015085875A1 (zh) 流媒体报文的处理方法、WiFi芯片及移动终端
WO2021190031A1 (zh) 基于wdm的数据传输方法、装置、***及存储介质
WO2018214070A1 (zh) 译码的方法和装置
WO2015006908A1 (zh) 突发数据块中的空闲块idle的处理方法、设备及***
WO2018133415A1 (zh) 一种物理编码子层的数据编解码方法和装置、存储介质
WO2012092833A1 (zh) 一种资源管理的方法、基站和***
JP2012124642A (ja) 受信装置、データ転送装置、及びプログラム
JP2009152864A (ja) 送信装置および受信装置およびデータ伝送方法
WO2018103667A1 (zh) 信息处理方法及装置、通信设备和存储介质
WO2023273671A1 (zh) 重传音频数据包的方法、音频接收器、存储介质及***
KR100926669B1 (ko) 소거 회복 코드를 이용한 데이터 전송 시스템

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12891138

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12891138

Country of ref document: EP

Kind code of ref document: A1