WO2014056188A1 - 编解码方法及其相关装置和编解码系统 - Google Patents

编解码方法及其相关装置和编解码系统 Download PDF

Info

Publication number
WO2014056188A1
WO2014056188A1 PCT/CN2012/082860 CN2012082860W WO2014056188A1 WO 2014056188 A1 WO2014056188 A1 WO 2014056188A1 CN 2012082860 W CN2012082860 W CN 2012082860W WO 2014056188 A1 WO2014056188 A1 WO 2014056188A1
Authority
WO
WIPO (PCT)
Prior art keywords
bit
bit data
data group
bits
remaining
Prior art date
Application number
PCT/CN2012/082860
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 CN201280041680.0A priority Critical patent/CN103988436B/zh
Priority to PCT/CN2012/082860 priority patent/WO2014056188A1/zh
Publication of WO2014056188A1 publication Critical patent/WO2014056188A1/zh

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/001Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits characterised by the elements used
    • H03M7/008Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits characterised by the elements used using opto-electronic devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/50Transmitters
    • H04B10/516Details of coding or modulation

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a codec method, a related device, and a codec system. Background technique
  • optical fibers greatly improves the data transmission and reception speed, and has better performance. Electrical safety performance, anti-electromagnetic interference capability, etc.
  • the use of optical fiber to replace coaxial cable transmission information in a multi-scene scenario is a trend in the future.
  • Optical fiber communication is different from cable communication. Negative light cannot be used in optical fiber communication. Therefore, bipolar pulses cannot be used like cables, and only unipolar pulses can be used. In a digital optical fiber communication system, the corresponding "1" is illuminated and "0" is not illuminated. In the unipolar digital code stream, there must be a certain DC component, and the AC coupling network cannot pass the DC component contained in the code stream. When the rectangular pulse is applied to the AC coupling network, the output pulse will have a reverse polarity drag. The magnitude and duration of the tail and tail depends on the low frequency characteristics of the AC coupled network.
  • the receiving end When using high-speed serial data communication with optical fibers, the receiving end needs to recover the clock information from the received data to ensure synchronization. This requires that the binary code stream transmitted in the line has enough transitions, that is, there should not be too many consecutive highs. Level or low level, otherwise the clock information cannot be extracted.
  • the traditional mechanism adopts the 4 ⁇ /5 ⁇ encoding scheme in the Ethernet standard, and the 4 ⁇ /5 ⁇ encoding needs to satisfy two rules: 1. Each 5bit code group does not contain 3 "0"; 2, 5 bit code groups Not less than 2 "1". If continuous transmission, 16 kinds of combinations need to consider 16 combinations in the encoding process. When decoding, 5 bits of binary need to consider 32 combinations. When using software coding and decoding, it consumes more resources and the logic is complicated, so the real-time performance is not strong, and it is not suitable for frequency conversion. In the device
  • the embodiments of the present invention provide a codec method, a related device, and a codec system, so as to improve the reliability of the codec and reduce the complexity of the codec, and avoid the fiber output pulse tailing problem as much as possible.
  • An embodiment of the present invention provides an encoding method, which is applied to an encoding device, where the encoding method includes:
  • the encoding device divides the original data into N n-bit data sets, where n is greater than 2 and less than 8; the encoding device transforms the N n-bit data sets to obtain N n+1-bit data sets, where If the xth bit of the first n-bit data group of the N n-bit data sets is 1, the y-th bit of the first n+1-bit data group transformed by the first n-bit data set Is 1 and the z-th bit is 0, and the remaining n-1 bits except the y-th bit and the z-th bit in the first n+1-bit data group and the X-th bit in the first n-bit data set The remaining n-1 bits are the same, or if the Xth bit of the first n-bit data group of the N n-bit data sets is 1, the first transformed by the first n-bit data set The yth bit of the n+1 bit data group is 1 and the zth bit is 0, and the remaining n-1 bits except the yth
  • the encoding device transmits the N n+1 bit data sets in a predetermined order.
  • Another aspect of the embodiments of the present invention provides a decoding method, which is applied to a decoding device, where the decoding method includes:
  • the decoding device receives N n+1 bit data sets, where n is greater than 2 and less than 8;
  • the decoding device Decoding, by the decoding device, the N n+1 bit data sets to obtain N n-bit data sets, wherein if the first n+1 bit data sets of the N n+1 bit data sets are y a bit of 1, the Xth bit of the first n-bit data set transformed by the first n+1 bit data set is 1, and the remaining n of the first n-bit data set except the Xth bit -1 bit is the same as the remaining n-1 bits except the yth bit and the zth bit in the first n+1 bit data group, or if the first n in the N n+1 bit data sets +1 bit data set
  • the first y-bit data group transformed by the first ⁇ +1-bit data set has a first bit of 1, and the first n-bit data set has a bit other than the Xth bit.
  • the remaining ⁇ -1 bits are obtained by the third preset operation from the remaining ⁇ -1 bits of the first ⁇ +1 bit data group except the yth bit and the ninth bit;
  • the first n-bit data group in the ⁇ +1-bit data group is 0, the first n-bit data group transformed by the first n+1-bit data group
  • the Xth bit is 0, and the remaining n-1 bits of the first n-bit data group except the Xth bit and the remaining of the first n+1 bit data group except the yth and zth bits
  • the n-1 bits are the same, or if the yth bit of the first n+1 bit data group in the N n+1 bit data sets is 0, the first n+1 bit data group is transformed.
  • the Xth bit of the first n-bit data set is 0, and the remaining n-1 bits of the first n-bit data set except the Xth bit are divided by the first n+1 bit data group by the yth The remaining n-1 bits outside the bit and the zth bit are obtained through a fourth preset operation;
  • the decoding device arranges the transformed N pieces of n-bit data groups in a predetermined order to recover the original data.
  • Another aspect of the embodiment of the present invention further provides an encoding device, which may include:
  • a dividing unit configured to divide the original data into N n-bit data groups, where the n is greater than 2 and less than 8;
  • a first transforming unit configured to transform the N n-bit data sets divided by the dividing unit to obtain N n+1-bit data sets, where, if the first n of the N n-bit data sets The Xth bit of the bit data group is 1, and the yth bit of the first n+1 bit data group transformed by the first n bit data group is 1 and the zth bit is 0, and the first n The remaining n-1 bits except the yth bit and the zth bit in the +1 bit data group are the same as the remaining n-1 bits except the Xth bit in the first n-bit data group, or, if the N The Xth bit of the first n-bit data group in the n-bit data group is 1, and the y-th bit of the first n+1-bit data group transformed by the first n-bit data set is 1 and the zth Bit 0, and the remaining n-1 bits except the yth bit and the zth bit in the first n+1 bit data group are the remaining n- except
  • a sending unit configured to send the N pieces of n+1 bit data transformed by the first transform unit in a predetermined order.
  • Another aspect of the embodiment of the present invention provides another encoding device, which may include:
  • a processor a memory, an input device, and an output device
  • the processor is configured to perform the following steps:
  • the remaining n-1 bits are the same as the remaining n-1 bits of the first n-bit data group except the xth bit, or if the first n-bit data group of the N n-bit data sets
  • the Xth bit is 1, the yth bit of the first n+1 bit data group transformed by the first n-bit data set is 1 and the z-th bit is 0, and the first n+1-bit data
  • the remaining n-1 bits of the group except the yth bit and the zth bit are obtained by the first preset operation by the remaining n-1 bits of the first n-bit data group except the Xth bit;
  • the Xth bit of the first n-bit data group in the n-bit data group is 0, and the y-th bit of the first n+1-bit data group transformed by the first n-bit data set is 0 and the zth Bit is 1, and the stated
  • the remaining n-1 bits of the n+1 bit data group except the yth bit and the zth bit
  • the N n+1-bit data sets are transmitted in a predetermined order.
  • a decoding device which may include: a receiving unit, configured to receive N n+1 bit data sets, where n is greater than 2 and less than 8; a second transform unit, configured to transform N N+1 bit data sets received by the receiving unit to obtain N An n-bit data set, wherein if the y-th bit of the first n+1-bit data group of the N n+1-bit data sets is 1, the data is transformed by the first n+1-bit data set The xth bit of the first n-bit data group is 1, and the remaining n-1 bits of the first n-bit data group except the X-th bit and the first n+1-bit data group except the y The bit is the same as the remaining n-1 bits outside the z-th bit, or, if the y-th bit of the first n+1-bit data group of the N n+1-bit data sets is 1, the first The Xth bit of the first n-bit data group obtained by the n+1 bit data
  • the Xth bit of the first n-bit data group is 0, and the remaining n-1 bits except the Xth bit in the first n-bit data group and the y-th bit in the first n+1-bit data group Same as the remaining n-1 bits outside the zth bit, or if the yth bit of the first n+1 bit data group in the N n+1 bit data sets is 0, then the first n
  • the Xth bit of the first n-bit data group obtained by the +1 bit data group transformation is 0, and the remaining n-1 bits except the Xth bit in the first n-bit data group are the first n+1
  • the remaining n-1 bits of the bit data group except the yth bit and the zth bit are obtained by the fourth preset operation;
  • a restoring unit configured to perform the permutation and combination of the N n-bit data groups obtained by transforming the second transform unit in a predetermined order to recover the original data.
  • Another aspect of the embodiment of the present invention provides another decoding device, which may include:
  • a processor a memory, an input device, and an output device
  • the processor is configured to perform the following steps:
  • the remaining ⁇ -1 bits are obtained by the third preset operation by the remaining n-1 bits of the first ⁇ +1 bit data group except the yth bit and the ninth bit; if the N n+1 bits The yth bit of the first n+1 bit data group in the data group is 0, and the Xth bit of the first n-bit data group transformed by the first n+1 bit data group is 0, and the The remaining n-1 bits of the first n-bit data group except the X-th bit are the same as the remaining n-1 bits of the first n+1-bit data group except the y-th bit and the z-th bit, or The yth bit of the first n+1 bit data group of the N n+1 bit data groups is 0, and the Xth of the first n-bit data group transformed by the first n+1 bit data group Bit 0, and the remaining n-1 bits of the first n-bit data group except the X-th bit are the remaining n- except the y-th bit and the z-th bit in the first
  • the transformed N pieces of n-bit data sets are arranged and combined in a predetermined order to recover the original data.
  • Another aspect of the embodiment of the present invention further provides a codec system, including: the encoding device according to the foregoing embodiment, and the decoding device as described in the foregoing embodiment.
  • Another aspect of the present invention further provides a computer storage medium storing a program, the program including some or all of the steps of the encoding method or the decoding method provided by the above embodiments.
  • the original data is divided into N n-bit data sets, and the N n-bit data sets are converted into N n+1-bit data sets, wherein, because each n At least one bit "0" and at least one bit "1" are included in the +1 bit data group, so that it is possible to minimize the occurrence of more than one bit "0" or bit "1" continuously with respect to the prior art. , which is beneficial to avoid the problem of fiber output pulse tailing and improve the reliability of codec.
  • FIG. 1 is a schematic flow chart of a coding provided by a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of decoding according to a second embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a codec according to a third embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an encoding device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another encoding device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a decoding device according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another decoding device according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a codec system according to an embodiment of the present invention. detailed description
  • the embodiments of the present invention provide a codec method, a related device, and a codec system, so as to improve the reliability of the codec and reduce the complexity of the codec, and try to avoid the fiber output pulse tailing problem.
  • the encoding method may include: dividing the original data into N n-bit data sets, where n may be an integer greater than 2 and less than 8; converting the N n-bit data sets N n+1-bit data sets; wherein, if the X-th bit of the first n-bit data set of the N n-bit data sets is 1, the first n+1 bits transformed by the first n-bit data set The yth bit of the data group is 1 and the zth bit is 0, and the remaining n-1 bits except the yth and zth bits in the first n+1 bit data group are excluded from the first n-bit data group.
  • the remaining n-1 bits outside the X bits are the same, or if the Xth bit of the first n-bit data set in the N n-bit data sets is 1, the first n+ transformed by the first n-bit data set
  • the yth bit of the 1-bit data set is 1 and the z-th bit is 0, and the remaining n-1 bits except the y-th bit and the z-th bit in the first n+1-bit data set are divided by the first n-bit data set
  • the remaining n-1 bits outside the Xth bit are obtained by a first preset operation; if the xth bit of the first n-bit data group in the N n-bit data sets is 0, the first n-bit data group is transformed.
  • the first n+ The y-th bit of the 1-bit data set is 0 and the z-th bit is 1, and the remaining n-1 bits except the y-th and z-th bits in the first n+1-bit data set are in the first n-bit data set.
  • the remaining n-1 bits except the xth bit are the same, or if the Xth bit of the first n-bit data set in the N n-bit data sets is 0, the first n-bit data set is transformed.
  • the yth bit of an n+1-bit data set is 0 and the z-th bit is 1, and the remaining n-1 bits except the y-th bit and the z-th bit in the first n+1-bit data set are from the first n-bit data
  • the remaining n-1 bits of the group except the Xth bit are obtained by a first preset operation; wherein, the first preset operation and the second preset operation are the same or different; and the N pieces of n+1 bit data are transmitted in a predetermined order group.
  • FIG. 1 is a schematic flowchart of an encoding method according to a first embodiment of the present invention.
  • the encoding method provided by the first embodiment of the present invention is applied to an encoding device, and may include the following content: 101.
  • the raw data is divided into N n-bit data sets.
  • n in each embodiment of the present invention may be an integer greater than 2 and less than 8 (e.g., n is equal to 4).
  • the n-bit data set represents a data set containing n bits
  • the n+1-bit data set represents a data set containing n+1 bits, and so on.
  • the original data (ie, the data to be encoded) may be obtained from the received data frame, for example, after the encoding device receives the data frame, the original data may be parsed from the data frame. Further, the parsed original data is encoded.
  • the encoding device can also obtain the original data to be encoded by other means.
  • the encoding device transforms the N pieces of n-bit data sets to obtain N pieces of n+1-bit data sets.
  • the xth bit of the first n-bit data set is 1 and the z-th bit is 0, and the first n+1-bit data group is in the first n+1 bit data group.
  • the remaining n-1 bits except the yth and zth bits are the same as the remaining n-1 bits except the Xth bit in the first n-bit data set, or, if the first n of the N n-bit data sets
  • the Xth bit of the bit data group is 1, and the yth bit of the first n+1 bit data group transformed by the first n bit data group is 1 and the zth bit is 0, and the first n+1 bit data
  • the remaining n-1 bits of the group except the yth and zth bits are obtained by the first preset operation from the remaining n-1 bits of the first n-bit data group except the Xth bit.
  • the y-th bit of the first n+1-bit data group transformed by the first n-bit data set is 0 and The z bit is 1, and the remaining n-1 bits except the yth and zth bits in the first n+1 bit data group are the same as the remaining n-1 bits except the xth bit in the first n-bit data set
  • the y-th bit of the first n+1-bit data group transformed by the first n-bit data set is 0 and the zth bit is 1, and the remaining n-1 bits except the yth bit and the zth bit in the first n+1 bit data group are the remaining n- except the Xth bit in the first n-bit data set.
  • One bit is obtained by a second preset operation; wherein the first preset operation and the second preset operation are
  • the first preset operation is, for example, a bitwise inversion operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the second preset operation is, for example, a bitwise inverse operation, a summation with a preset number, or a difference operation or other feasible operation.
  • the first preset operation and the second preset operation are agreed by the encoding device and the decoding device, and the decoding device may perform data restoration based on the inverse operation of the first preset operation or the second preset operation.
  • the Xth bit is, for example, the highest bit, the next highest bit, or any other one of the encoding devices and the decoding device.
  • the above yth bit is, for example, the highest bit, the next highest bit, or any other 1 bit agreed by the encoding device and the decoding device
  • the zth bit is a bit different from the yth bit, and the zth bit may be different from the yth bit.
  • the zth bit may be any other bit except the highest bit.
  • the second highest bit may be used.
  • the zth bit may be any other bit except the next highest bit, and the zth bit may be the highest bit, etc., and so on.
  • n is set to 4
  • the Xth bit is the highest bit
  • the yth bit is the highest bit
  • the zth bit is the next highest bit.
  • the first n-bit data group of the N n-bit data sets obtained after dividing the original data is 1111
  • the yth bit of the first n+1 bit data group obtained by the data group transformation is 1 and the zth bit is 0, and the remaining n-1 except the yth and zth bits in the first n+1 bit data group
  • the obtained first n+1 bit data set is 10111, which can minimize the continuousness with respect to the prior art.
  • the first n-bit data group of the N n-bit data sets obtained after dividing the original data is 1111, and if the first preset operation is a bitwise inverse operation, then "if the first n-bit data is passed"
  • the Xth bit of the group is 1, and the yth bit of the first n+1 bit data group transformed by the first n-bit data set is 1 and the z-th bit is 0, and the first n+1-bit data group is
  • the remaining n-1 bits except the yth and zth bits are obtained by the first preset operation of the remaining n-1 bits of the first n-bit data group except the Xth bit.
  • n+1-bit data set is 10000, so that the occurrence of more than one bit "0" or the bit "1" continuously occurs as compared with the prior art, thereby facilitating the avoidance of the fiber output pulse tailing problem and improving the codec. Reliability.
  • the first n-bit data group of the N n-bit data sets obtained after dividing the original data is 0000
  • the obtained first n+1 bit data set is 01000, which is relative to the existing
  • the technology can minimize the occurrence of multiple bits "0" or bit "1" continuously, which is beneficial to avoid the fiber output pulse tailing problem and improve the reliability of codec.
  • the first n-bit data group of the N n-bit data sets obtained after dividing the original data is 0000
  • the second preset operation is a bitwise inverse operation, then "if the first n-bit data is passed"
  • the Xth bit of the group is 0, the yth bit of the first n+1 bit data group transformed by the first n bit data set is 0 and the zth bit is 1, and the first n+1 bit data
  • the first n+1-bit data set obtained by the second-preset operation of the remaining n-1 bits except the X-th bit in the first n-bit data set is 01111, so that In the prior art, the situation that multiple bits "0" or the bit "1" appear continuously is minimized, thereby avoiding the problem of fiber output pulse tailing and improving the reliability of codec.
  • n can also be set to 3, 5, 6 or 7, and x, y, z can also be set to other possible values respectively, and the method of coding according to the above is similar to the above example. This will not repeat the illustration.
  • the encoding device sends the foregoing N n+1 bit data groups in a predetermined order.
  • the N n+1 bit data sets may be transmitted in a serial or parallel manner.
  • a data frame can be transmitted, wherein the data frame includes the above-mentioned N n+1-bit data sets that are combined in a predetermined order.
  • the decoding device can restore the order of the N n+1 bit data sets in a predetermined order.
  • the encoding device can be a power electronic device, such as a control panel or a power unit or other electronic device.
  • the coding device divides the original data into N n-bit data groups, and converts the N n-bit data groups into N n+1-bit data groups, where n can be An integer greater than 2 and less than 8, wherein since each n+1 bit data group includes at least 1 bit "0" and at least one bit "1", this can minimize continuous occurrence with respect to the prior art. Compared with the case of multiple bits "0" or bit "1", it is beneficial to avoid the fiber output pulse tailing problem and improve the reliability of codec.
  • the decoding method may include: receiving N n+1 bit data sets, where n is greater than 2 and less than 8; converting the N n+1 bit data sets to obtain N n bits a data group, wherein, if the yth bit of the first n+1 bit data group of the N n+1 bit data groups is 1, the first n bit data transformed by the first n+1 bit data group The Xth bit of the group is 1, and the remaining n-1 bits of the first n-bit data group except the Xth bit and the remaining n- except the yth and zth bits in the first n+1 bit data group 1 bit is the same, or, if the first n+1 bit data group of the above N n+1 bit data sets The first y bit is 1, and the Xth bit of the first n-bit data set transformed by the first ⁇ +1 bit data set is 1, and the remaining n-1 except the Xth bit in the first n-bit data set The bit is obtained by a third
  • FIG. 2 is a schematic flowchart of a decoding method according to a second embodiment of the present invention.
  • a decoding method provided by the second embodiment of the present invention is applied to a decoding device, where the decoding method includes the following:
  • the decoding device receives N n+1 bit data groups.
  • n in each embodiment of the present invention may be an integer greater than 2 and less than 8 (e.g., n is equal to 4).
  • the n-bit data set represents a data set containing n bits
  • the n+1-bit data set represents a data set containing n+1 bits, and so on.
  • N n+1 bit data sets may be received in a serial or parallel manner.
  • a data frame can be received to receive the above-mentioned N n+1-bit data sets that are combined in a predetermined order included in the data frame.
  • the decoding device transforms the received N+1+1 data groups to obtain N n-bit data groups.
  • the yth bit of any one of the n+1 bit data sets is 1, and the Xth bit of the first n-bit data set transformed by the first n+1 bit data set is 1, and the first n bits
  • the remaining n-1 bits except the Xth bit in the data group are the same as the remaining n-1 bits except the yth bit and the zth bit in the first n+1 bit data group, or, if the above N n+1
  • the first n ratio obtained by transforming the first n+1 bit data group is 1 when the yth bit of the first n+1 bit data group in the bit data group is 1.
  • the xth bit of the special data group is 1, and the remaining n-1 bits of the first n-bit data group except the Xth bit are left by the first n+1 bit data group except the yth and zth bits.
  • the n-1 bit is obtained by a third preset operation; if the yth bit of the first n+1 bit data group in the N n+1 bit data sets is 0, the first n+1 bit data group is transformed.
  • the Xth bit of the first n-bit data set is 0, and the remaining n-1 bits except the Xth bit in the first n-bit data set and the first n+1 bit data group except the yth bit and the zth The remaining n-1 bits outside the bit are the same, or if the yth bit of the first n+1 bit data group in the N n+1 bit data sets is 0, the first n+1 bit data set is transformed.
  • the Xth bit of the first n-bit data set is 0, and the remaining n-1 bits of the first n-bit data set except the X-th bit are divided by the first n-th bit data group except the y-th bit and the z-th bit The remaining n-1 bits outside the bit are obtained by the fourth preset operation.
  • the third preset operation is, for example, a bitwise inverse operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the second preset operation is, for example, a bitwise inverse operation, a summation with a preset number, or a difference operation or other feasible operation.
  • the first preset operation and the second preset operation are agreed by the encoding device and the decoding device, and the decoding device may perform data restoration based on the inverse operation of the first preset operation or the second preset operation.
  • the Xth bit is, for example, the most significant bit, the next highest bit, or any other one of the encoding devices and the decoding device.
  • the yth bit is, for example, the highest bit, the next highest bit, or any other 1 bit that the encoding device and the decoding device agree
  • the zth bit is a bit different from the yth bit
  • the zth bit is, for example, different from the yth bit.
  • the highest bit, the next highest bit, or any other bit of the encoding device and the decoding device may be any other bit except the highest bit, and the z-th bit may be the next highest bit, for example.
  • n is set to 4
  • the Xth bit is the highest bit
  • the yth bit is the highest bit
  • the zth bit is the next highest bit.
  • the decoding apparatus receives the first n+1 bit data group of the N n+1 bit data groups as 10111, then if "the first yth bit of the first n+1 bit data set is 1, then the first The Xth bit of the first n-bit data group obtained by the n+1 bit data group transformation is 1, and the remaining n-1 bits and the first n+1 bit data except the xth bit in the first n-bit data group After the decoding conversion of the same n-1 bits except the yth and zth bits in the group, the first n-bit data set obtained is 1111.
  • the decoding device receives the first n+1 bit data group of the N n+1 bit data groups. 10000, and assuming that the third preset operation is a bitwise inversion operation, then "if the yth bit of the first n+1 bit data set is 1, the first transformed by the first n+1 bit data set The xth bit of the n-bit data group is 1, and the remaining n-1 bits of the first n-bit data group except the X-th bit are excluded from the first n+1-bit data group except the y-th bit and the z-th bit. After the remaining n-1 bits are decoded by the third preset operation, the obtained first n-bit data set is 1111.
  • the decoding device receives the first n+1 bit data group of the N n+1 bit data groups as 01000, then if the yth bit of the first n+1 bit data group is 0, then The Xth bit of the first n-bit data group obtained by the n+1 bit data group transformation is 0, and the remaining n-1 bits and the first n+1 bit data except the Xth bit in the first n-bit data group After the decoding conversion of the same n-1 bits except the yth and zth bits in the group, the obtained first n+1 bit data group is 0000.
  • the decoding device receives the first n+1 bit data group of the N n+1 bit data groups as 01111, and assumes that the fourth preset operation is a bitwise inversion operation, then "if the first n+ The yth bit of the 1-bit data set is 0, and the xth bit of the first n-bit data set transformed by the first n+1-bit data set is 0, and the first n-bit data set is except the X-th bit.
  • the remaining n-1 bits are obtained by the decoding operation after the decoding of the remaining n-1 bits except the yth and zth bits in the first n+1 bit data group by the fourth preset operation.
  • the data set is 0000.
  • n can also be set to 3, 5, 6 or 7, and x, y, z can also be set to other possible values respectively, and the decoding method according to the above is similar to the above example. This will not repeat the illustration.
  • the decoding device performs the combination of the transformed N pieces of n-bit data groups in a predetermined order to recover the original data.
  • the decoding device can be a power electronic device, such as a control board or a power unit or other electronic device.
  • FIG. 3 is a schematic flowchart of a codec method according to a third embodiment of the present invention.
  • a codec method according to a third embodiment of the present invention may include the following content:
  • the encoding device divides the original data into N 4-bit data groups.
  • the original data (ie, the data to be encoded) may be obtained from the received data frame, for example, after the encoding device receives the data frame, the original data may be parsed from the data frame, and further The parsed raw data is encoded.
  • the encoding device can also obtain the original data to be encoded by other means.
  • the encoding device transforms the foregoing four 4-bit data groups to obtain N 5-bit data groups.
  • the first 4-bit data group of the N 4-bit data groups (where the first 4-bit data group can refer to any one of the N 4-bit data groups) has a highest bit of 1, The highest bit of the first 5-bit data set transformed by the first 4-bit data set is 1 and the next highest bit is 0, and the lower 3 bits of the first 5-bit data set are the same as the lower three bits of the first 4-bit data set.
  • the highest bit of the first 4-bit data group of the N 4-bit data sets is 1, the highest bit of the first 5-bit data group transformed by the first 4-bit data set is 1 and the next highest bit is 0, and the lower 3 bits of the first 5-bit data group are obtained by inverting the lower 3 bits of the first 4-bit data group; if the highest bit of the first 4-bit data group in the N 4-bit data groups is 0, the highest bit of the first 5-bit data set transformed by the first 4-bit data set is 0 and the next highest bit is 1, and the lower 3 bits of the first 5-bit data set and the first 4-bit data set
  • the lower 3 bits are the same, or if the first 4 bits of the above N 4-bit data sets According to the highest bit of the group being 0, the highest bit of the first 5-bit data set transformed by the first 4-bit data set is 0 and the next highest bit is 1, and the lower 3 bits of the first 5-bit data set are The lower 3 bits of a 4-bit data set are obtained by bitwise inversion.
  • the encoding device sends the foregoing N 5-bit data groups in a predetermined order.
  • the decoding device receives N 5-bit data sets from the encoding device.
  • the decoding device may receive N 5-bit data sets in a serial or parallel manner.
  • the decoding device can receive the data frame to receive the N 5-bit data sets that are combined in a predetermined order and included in the data frame.
  • the decoding device transforms the N 5-bit data groups to obtain N 4-bit data groups.
  • the highest bit is 1
  • the highest bit of the first 4-bit data set transformed by the first 5-bit data set is 1, and the lower 3 bits of the first 4-bit data set are the same as the lower 3 bits of the first 5-bit data set, or If the highest bit of the first 5-bit data group of the N 5-bit data sets is 1, the highest bit of the first 4-bit data group transformed by the first 5-bit data set is 1, and the first 4
  • the lower 3 bits in the bit data group are obtained by inverting the lower 3 bits of the first 5-bit data group; if the highest bit of the first 5-bit data group in the N 5-bit data sets is 0, then The highest bit of the first 4-bit data set obtained by a 5-bit data set is 0, and the lower 3 bits
  • the decoding device performs the combination of the transformed N 4-bit data groups obtained in a predetermined order to recover the original data.
  • N 4-bit data groups are encoded into N 5-bit data groups
  • other bit data group coding cases are deduced by analogy. For example.
  • the encoding device divides the original data into N 4-bit data groups, and then converts the N 4-bit data groups into N 5-bit data groups; and the decoding device receives The obtained N 5-bit data sets are transformed to obtain N n-bit data sets, and the transformed N 4-bit data sets are arranged and combined in a predetermined order to recover the original data, since each 5-bit data set includes At least 1 bit "0" and at least one bit "1", therefore, this can minimize the occurrence of more than one bit "0" or bit "1" continuously with respect to the prior art, thereby facilitating the avoidance of the fiber output pulse.
  • an embodiment of the present invention further provides an encoding device 400, which may include:
  • the dividing unit 410 is configured to divide the original data into N n-bit data sets, where the above n is greater than 2 and less than 8 (eg, n is equal to 4).
  • the first transform unit 420 is configured to transform the N pieces of n-bit data groups divided by the dividing unit 410 to obtain N pieces of n+1 bits, where the first n-bit data in the N pieces of n-bit data sets The Xth bit of the group is 1, and the yth bit of the first n+1 bit data group transformed by the first n-bit data set is 1 and the z-th bit is 0, and the first n+1 bit data group is divided.
  • the remaining n-1 bits outside the yth and zth bits are the same as the remaining n-1 bits except the Xth bit in the first n-bit data set, or if the first n of the N n-bit data sets
  • the Xth bit of the bit data group is 1, and the yth bit of the first n+1 bit data group transformed by the first n bit data group is 1 and the zth bit is 0, and the first n+1 bit data
  • the remaining n-1 bits in the group except the yth bit and the zth bit are obtained by the first preset operation from the remaining n-1 bits of the first n-bit data group except the Xth bit; if the above N n bits
  • the Xth bit of the first n-bit data group in the data group is 0, and the yth bit of the first n+1-bit data group transformed by the first n-bit data set is 0 and the zth
  • the bit is 1, and the remaining n-1 bits except the yth bit and the
  • the zth bit is 1, and the remaining n-1 bits except the yth bit and the zth bit in the first n+1 bit data group are the remaining n-1 except the Xth bit in the first n bit data group.
  • the bit is obtained by a second preset operation, wherein the first preset operation and the second preset operation are the same or different.
  • the sending unit 430 is configured to send the N pieces of n+1 bit data transformed by the first transform unit 420 in a predetermined order.
  • the third preset operation is, for example, a bitwise inverse operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the second preset operation is, for example, a bitwise inverse operation, a summation with a preset number, or a difference operation or other feasible operation.
  • the first preset operation and the second preset operation are agreed by the encoding device and the decoding device, and the decoding device may perform data restoration based on the inverse operation of the first preset operation or the second preset operation.
  • the Xth bit is, for example, the most significant bit, the next highest bit, or any other 1 bit that the encoding device has agreed with the decoding device.
  • the yth bit is, for example, the highest bit, the next highest bit, or any other 1 bit that the encoding device and the decoding device agree
  • the zth bit is a bit different from the yth bit, and the zth bit is, for example, no. Same as the highest bit, the next highest bit of the yth bit, or any other 1 bit agreed by the encoding device and the decoding device.
  • the zth bit may be any other bit except the highest bit.
  • the zth bit can be, for example, the next highest bit; when the yth bit is the next highest bit, the zth bit can be any other bit except the next highest bit, and the zth bit can be, for example, the highest bit, etc., and so on.
  • n may also be set to 3, 5, 6, or 7, and x, y, and z may also be set to other possible values, respectively.
  • n may also be set to 3, 5, 6, or 7, and x, y, and z may also be set to other possible values, respectively.
  • the encoding device 400 of the embodiment divides the original data into N n-bit data sets, converts N n-bit data sets into N n+1-bit data sets, and n can be an integer greater than 2 and less than 8. Since each n+1 bit data group includes at least one bit "0" and at least one bit "1", this is advantageous for reducing successive occurrences of more than one bit "0" or bit relative to the prior art. The case of "1" is beneficial to avoid the problem of fiber output pulse tailing and improve the reliability of codec. In addition, by correspondingly determining the value of the specific bit X set, the coding complexity is greatly reduced. Since this only uses one of the bits in each n+1 bit data set as the identifier, it is advantageous to improve the efficiency of encoding. Referring to FIG. 5, an embodiment of the present invention further provides an encoding device 500, which may include:
  • Processor 510 memory 520, input device 530, and output device 540.
  • the processor 510 is configured to perform the following steps:
  • n is greater than 2 and less than 8 (eg, n is equal to 4);
  • the above N n+1 bit data sets are transmitted in a predetermined order.
  • the first preset operation is, for example, a bitwise inversion operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the second preset operation is, for example, a bitwise inverse operation, a summation with a preset number, or a difference operation or other feasible operation.
  • the first preset operation and the second preset operation are agreed by the encoding device and the decoding device, and the decoding device may perform data restoration based on the inverse operation of the first preset operation or the second preset operation.
  • the Xth bit is, for example, the most significant bit, the next highest bit, or any other one of the encoding devices and the decoding device.
  • the yth bit is, for example, the highest bit, the next highest bit, or any other 1 bit that the encoding device and the decoding device agree
  • the zth bit is a bit different from the yth bit
  • the zth bit is, for example, different from the yth bit. The highest bit, the next highest bit, or any other 1 bit agreed by the encoding device and the decoding device.
  • the zth bit when the yth bit is the highest bit, the zth bit may be any other bit except the highest bit, and the zth bit may be, for example, When the yth bit is the next highest bit, the zth bit may be any other bit except the next highest bit, and the zth bit may be the highest bit, etc., and so on.
  • n may also be set to 3, 5, 6, or 7, and x, y, and z may also be set to other possible values, respectively.
  • n may also be set to 3, 5, 6, or 7, and x, y, and z may also be set to other possible values, respectively.
  • the encoding device 500 of the embodiment divides the original data into N n-bit data sets, converts the N n-bit data sets into N n+1-bit data sets, and n can be an integer greater than 2 and less than 8. Since each n+1 bit data group includes at least one bit "0" and at least one bit "1", thus, compared with the prior art, it is advantageous to reduce the occurrence of more than a plurality of bits "0" or In the case of "bits", it is beneficial to avoid the problem of fiber output pulse tailing and improve the reliability of codec.
  • an embodiment of the present invention further provides a decoding device 600, which may include:
  • the receiving unit 610 the second transform unit 620, and the restoring unit 630.
  • the receiving unit 610 is configured to receive N n+1 bit data sets, where n is greater than 2 and less than 8 (eg, n is equal to 4).
  • the second transform unit 620 is configured to transform the N n+1 bit data sets received by the receiving unit to obtain N n-bit data sets, where the first n+ of the N n+1 bit data sets The yth bit of the 1-bit data set is 1, and the X-th bit of the first n-bit data group transformed by the first n+1-bit data set is 1, and the X-th bit of the first n-bit data set is except the X-th bit.
  • the remaining n-1 bits are the same as the remaining n-1 bits except the yth and zth bits in the first n+1 bit data group, or if the first n of the N n+1 bit data sets The yth bit of the +1 bit data group is 1, and the Xth bit of the first n-bit data group transformed by the first n+1-bit data group is 1, and the X-th bit of the first n-bit data group
  • the remaining n-1 bits are obtained by the third preset operation from the remaining n-1 bits of the first n+1 bit data group except the yth and zth bits; if the above N n+1 bit data sets The yth bit of the first n+1 bit data group is 0, and the Xth bit of the first n-bit data group transformed by the first n+1 bit data group is 0, and the first n-bit data group
  • the remaining n-1 bits except the Xth bit are the same as the remaining n-1 bits except the yth bit and the zth bit in the
  • the recovery unit 630 is configured to perform the above-mentioned N pieces of n-bit data transformed by the second transform unit in a predetermined order to combine and restore the original data.
  • the third preset operation is, for example, a bitwise inverse operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the fourth preset operation is, for example, a bitwise inverse operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the Xth bit is, for example, the highest bit, the second highest bit, or an encoding device and solution. Any other 1 bit agreed by the code device.
  • the yth bit is, for example, the highest bit, the next highest bit, or any other 1 bit that the encoding device and the decoding device agree
  • the zth bit is a bit different from the yth bit
  • the zth bit is, for example, different from the yth bit. The highest bit, the next highest bit, or any other 1 bit agreed by the encoding device and the decoding device.
  • the zth bit when the yth bit is the highest bit, the zth bit may be any other bit except the highest bit, and the zth bit may be, for example, When the yth bit is the next highest bit, the zth bit may be any other bit except the next highest bit, and the zth bit may be the highest bit, etc., and so on.
  • n may also be set to 3, 5, 6 or 7, and x, y, z may also be set to other possible values respectively.
  • n may also be set to 3, 5, 6 or 7, and x, y, z may also be set to other possible values respectively.
  • the decoding device 600 converts the received N n+1 bit data sets into N n-bit data sets, and arranges the transformed N n-bit data sets according to a predetermined order. Combine to recover the original data, where n can be an integer greater than 2 and less than 8. Corresponding decoding is performed by judging the value on the set specific bit y during decoding, which greatly reduces the complexity of decoding, since this only uses one of the bits in each n+1 bit data set as the identifier. This will help improve the efficiency of decoding.
  • a decoding device 700 which may include:
  • Processor 710 memory 720, input device 730, and output device 740.
  • the processor 710 is configured to perform the following steps:
  • n+1 bit data sets where n is greater than 2 and less than 8 (eg, n is equal to 4).
  • N n-bit data sets Converting the received N n+1 bit data sets to obtain N n-bit data sets, wherein if the y-th bit of the first n+1-bit data set in the N n+1-bit data sets is 1
  • the Xth bit of the first n-bit data set transformed by the first n+1-bit data set is 1, and the remaining n-1 bits except the X-th bit of the first n-bit data set are compared with the first n
  • the remaining n-1 bits except the yth bit and the zth bit in the +1 bit data group are the same, or if the yth bit of the first n+1 bit data group in the N n+1 bit data sets is 1 , the xth bit of the first n-bit data group transformed by the first n+1 bit data group is 1, and the remaining n-1 bits of the first n-bit data group except the Xth bit are first
  • N pieces of n-bit data sets obtained by the transformation are arranged and combined in a predetermined order to obtain original data.
  • the third preset operation is, for example, a bitwise inverse operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the fourth preset operation is, for example, a bitwise inverse operation, a summation with a certain preset number, or a difference operation or other feasible operation.
  • the Xth bit is, for example, the most significant bit, the next highest bit, or any other one of the encoding devices and the decoding device.
  • the yth bit is, for example, the highest bit, the next highest bit, or any other 1 bit that the encoding device and the decoding device agree
  • the zth bit is a bit different from the yth bit
  • the zth bit is, for example, different from the yth bit. The highest bit, the next highest bit, or any other 1 bit agreed by the encoding device and the decoding device.
  • the zth bit when the yth bit is the highest bit, the zth bit may be any other bit except the highest bit, and the zth bit may be, for example, When the yth bit is the next highest bit, the zth bit may be any other bit except the next highest bit, and the zth bit may be the highest bit, etc., and so on.
  • n may also be set to 3, 5, 6, or 7, and x, y, and z may also be set to other possible values respectively.
  • n may also be set to 3, 5, 6, or 7, and x, y, and z may also be set to other possible values respectively.
  • the decoding device 700 transforms the received N n+1 bit data sets to obtain N n-bit data sets, and arranges the transformed N n-bit data sets according to a predetermined order. Combine to recover the original data, where n can be an integer greater than 2 and less than 8. Corresponding decoding is performed by judging the value on the set specific bit y during decoding, which greatly reduces the complexity of decoding, since this only uses one of the bits in each n+1 bit data set as the identifier. This will help improve the efficiency of decoding.
  • an embodiment of the present invention further provides a codec system, which may include:
  • Encoding device 810 and decoding device 820 The encoding device 810 can be, for example, the encoding device 400 or the encoding device 500, and the decoding device 820 can be, for example, the decoding device 600 or the decoding device 700.
  • the encoding device 810 and the decoding device 820 can communicate via optical fibers and/or other means.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes some or all of the steps of the codec method described in the foregoing method embodiments.
  • the computer storage medium may store a program
  • the program includes some or all of the steps of the codec method described in the foregoing method embodiments.
  • the coding device divides the original data into N n-bit data groups, and converts the N n-bit data groups into N n+1-bit data groups, where n can be An integer greater than 2 and less than 8, since at least 1 bit "0" and at least one bit "1" are included in each n+1 bit data group, thus, compared with the prior art, it is advantageous to reduce continuous occurrence. In the case of multiple bits "0" or bit "1", it is beneficial to avoid the fiber output pulse tailing problem and improve the reliability of the codec.
  • the decoding device converts the received N n+1 bit data sets into N n-bit data sets, and arranges the converted N n-bit data sets in a predetermined order.
  • n can be an integer greater than 2 and less than 8.
  • Corresponding decoding is performed by judging the value on the set specific bit y during decoding, which greatly reduces the complexity of decoding, since this only uses one of the bits in each n+1 bit data set as the identifier. This will help improve the efficiency of decoding.
  • the disclosed apparatus may be implemented in other manners.
  • the device embodiments described above are merely illustrative, such as the single
  • the division of elements is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

一种编解码方法及其相关装置和编解码系统。其中,本发明实施例提供的编码方案中,将原始数据划分为N个n比特数据组,将N个n比特数据组转换为N个n+1比特数据组,其中,由于每个n+1比特数据组中都包括至少1个比特"0"和至少一个比特"1",因此,这样相对于现有技术能尽量减少连续出现较多个比特"0"或比特"1"的情况,进而有利于避免光纤输出脉沖拖尾问题,提升编解码的可靠性。此外,通过判断所设定的特定比特位x上的值来进行对应编码,大大降低了编码的复杂度,由于这种只是将每个n+1比特数据组中的其中1个比特用作标识,这样有利于提高编码的效率。

Description

编解码方法及其相关装置和编解码系统
技术领域
本发明涉及电子技术领域,具体涉及一种编解码方法及其相关装置和编解 码系统。 背景技术
随着现代社会经济的迅猛发展,对例如变频器等设备的数据收发速率提出 了更高的要求,相比于同轴电缆, 采用光纤进行数据传输极大提高了数据收发 速度, 具有更好的电气安全性能、 抗电磁干扰能力等。 在^艮多场景下用光纤逐 步替代同轴电缆传输信息是今后发展的趋势。
光纤通信与电缆通信不同, 光纤通信中不可能有负光, 因此, 不能像电缆 那样采用双极性脉沖, 而只能采用单极性脉沖。 在数字光纤通信系统中, 对应 的 "1" 为发光, "0" 为不发光。 在单极性的数字码流中必然有一定的直流成 分, 而交流耦合网络中不能通过码流所包含的直流分量, 当矩形脉沖加到交流 耦合网络时,输出脉沖将出现反极性的拖尾,拖尾的幅度和持续时间取决于交 流耦合网络的低频特性。
采用光纤进行高速串行数据通信时,接收端需要从接收数据中恢复时钟信 息来保证同步, 这就需要线路中所传输的二进制码流有足够多的跳变, 即不能 有过多连续的高电平或低电平, 否则无法提取时钟信息。传统机制是采用以太 网标准中的 4Β/5Β编码方案, 4Β/5Β编码需满足两个规则: 1、 每个 5bit码组中 不包含 3个 "0" ; 2、 5个比特码组中不少于 2个 "1"。 如果连续发送, 在编码过 程中 4位二进制需考虑 16种组合,解码时 5位二进制需考虑 32种组合, 采用软件 编码解码时消耗资源较多且逻辑复杂造成实时性不强, 不适用于变频器中
PWM信息的实时传输。 发明内容
有鉴于此, 本发明实施例提供编解码方法及其相关装置和编解码系统, 以 期提升编解码的可靠性并降低编解码的复杂度,尽量避免光纤输出脉沖拖尾问 题。 本发明实施例一方面提供一种编码方法,应用于编码设备, 所述编码方法 包括:
所述编码设备将原始数据划分为 N个 n比特数据组, 所述 n大于 2且小于 8; 所述编码设备将所述 N个 n比特数据组变换得到 N个 n+1比特数据组,其中, 若所述 N个 n比特数据组中的第一 n比特数据组的第 x位为 1 , 则由所述第一 n比 特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、 且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位与所述第一 n比特数据组中除 第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数据 组的第 X位为 1 ,则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1 位由所述第一 n比特数据组中除第 X位外的剩余 n-1位经第一预置运算得到; 若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0 , 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且所述第 一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位与所述第一 n比特数据组中 除第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数 据组的第 X位为 0,则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的 第 y位为 0且第 z位为 1、 且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位由所述第一 n比特数据组中除第 X位外的剩余 n-1位经第二预置运算得到, 其中, 所述第一预置运算和所述第二预置运算相同或不同;
所述编码设备按照预定顺序发送所述 N个 n+1比特数据组。
本发明实施例另一方面提供一种解码方法,应用于解码设备, 所述解码方 法包括:
所述解码设备接收 N个 n+1比特数据组, 所述 n大于 2且小于 8;
所述解码设备将所述 N个 n+1比特数据组变换得到 N个 n比特数据组,其中, 若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 ,则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 1、 且所述第一 n比特数 据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z位外 的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数据组 的第 y位为 1 , 则由所述第一 η+1比特数据组变换得到的第一 η比特数据组的第 χ 位为 1、 且所述第一 η比特数据组中除第 X位外的剩余 η- 1位由所述第一 η+1比特 数据组中除第 y位和第 ζ位外的剩余 η-1位经过第三预置运算得到;
若所述 Ν个 η+1比特数据组中的第一 η+1比特数据组的第 y位为 0 ,则由所述 第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 0、 且所述第一 n比 特数据组中除第 X位外的剩余 n- 1位与所述第一 n+1比特数据组中除第 y位和第 z 位外的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数 据组的第 y位为 0,则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的 第 X位为 0、 且所述第一 n比特数据组中除第 X位外的剩余 n-1位由所述第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算得到;
所述解码设备按照预定顺序将变换得到的所述 N个 n比特数据组进行排列 组合以恢复出原始数据。
本发明实施例另一方面还提供一种编码设备, 可包括:
划分单元, 用于将原始数据划分为 N个 n比特数据组, 其中, 所述 n大于 2 且小于 8;
第一变换单元, 用于将所述划分单元划分出的所述 N个 n比特数据组变换 得到 N个 n+1比特数据组,其中, 若所述 N个 n比特数据组中的第一 n比特数据组 的第 X位为 1 , 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y 位为 1且第 z位为 0、 且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1 位与所述第一 n比特数据组中除第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n 比特数据组中的第一 n比特数据组的第 X位为 1 ,则由所述第一 n比特数据组变换 得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且所述第一 n+1比特数据组 中除第 y位和第 z位外的剩余 n- 1位由所述第一 n比特数据组中除第 x位外的剩余 n-1位经第一预置运算得到;若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0 ,则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0 且第 z位为 1、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位与所 述第一 n比特数据组中除第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数 据组中的第一 n比特数据组的第 X位为 0 ,则由所述第一 n比特数据组变换得到的 第一 n+1比特数据组的第 y位为 0且第 z位为 1、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位由所述第一 n比特数据组中除第 x位外的剩余 n- 1位经 第二预置运算得到, 其中, 所述第一预置运算和所述第二预置运算相同或者不 同;
发送单元, 用于按照预定顺序发送所述第一变换单元变换得到的 N个 n+1 比特数据组。
本发明实施例另一方面还提供另一种编码设备, 可包括:
处理器、 存储器、 输入装置和输出装置;
其中, 所述处理器用于执行如下步骤:
将原始数据划分为 N个 n比特数据组, 其中, 所述 n大于 2且小于 8;
将所述 N个 n比特数据组变换得到 N个 n+1比特数据组, 其中, 若所述 N个 n 比特数据组中的第一 n比特数据组的第 X位为 1 ,则由所述第一 n比特数据组变换 得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且所述第一 n+1比特数据组 中除第 y位和第 z位外的剩余 n-1位与所述第一 n比特数据组中除第 x位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 1 , 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位 为 0、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位由所述第一 n 比特数据组中除第 X位外的剩余 n-1位经第一预置运算得到;若所述 N个 n比特数 据组中的第一 n比特数据组的第 X位为 0 ,则由所述第一 n比特数据组变换得到的 第一 n+1比特数据组的第 y位为 0且第 z位为 1、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位与所述第一 n比特数据组中除第 x位外的剩余 n- 1位相 同, 或者, 若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0, 则由所 述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且 所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位由所述第一 n比特数 据组中除第 X位外的剩余 n-1位经第二预置运算得到, 其中, 所述第一预置运算 和所述第二预置运算相同或不同;
按照预定顺序发送所述 N个 n+1比特数据组。
本发明实施例另一方面还提供一种解码设备, 可包括: 接收单元, 用于接收 N个 n+1比特数据组, 所述 n大于 2且小于 8; 第二变换单元, 用于将所述接收单元接收到的 N个 n+1比特数据组变换得 到 N个 n比特数据组,其中,若所述 N个 n+1比特数据组中的第一 n+1比特数据组 的第 y位为 1 , 则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 x 位为 1、 且所述第一 n比特数据组中除第 X位外的剩余 n- 1位与所述第一 n+1比特 数据组中除第 y位和第 z位外的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据 组中的第一 n+1比特数据组的第 y位为 1 , 则由所述第一 n+1比特数据组变换得 到的第一 n比特数据组的第 X位为 1、 且所述第一 n比特数据组中除第 X位外的剩 余 n-1位由所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位经过第三 预置运算得到; 若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0, 则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 0、 且 所述第一 n比特数据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中 除第 y位和第 z位外的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第 一 n+1比特数据组的第 y位为 0 , 则由所述第一 n+1比特数据组变换得到的第一 n 比特数据组的第 X位为 0、 且所述第一 n比特数据组中除第 X位外的剩余 n-1位由 所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算 得到;
恢复单元, 用于按照预定顺序将所述第二变换单元变换得到的所述 N个 n 比特数据组进行排列组合以恢复出原始数据。
本发明实施例另一方面还提供另一种解码设备, 可包括:
处理器、 存储器、 输入装置和输出装置;
其中, 所述处理器用于执行如下步骤:
接收 N个 n+1比特数据组, 所述 n大于 2且小于 8;
将接收到的所述 N个 n+1比特数据组变换得到 N个 n比特数据组, 其中, 若 所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 , 则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 1、 且所述第一 n比特数 据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z位外 的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数据组 的第 y位为 1 , 则由所述第一 η+1比特数据组变换得到的第一 η比特数据组的第 χ 位为 1、 且所述第一 η比特数据组中除第 X位外的剩余 η- 1位由所述第一 η+1比特 数据组中除第 y位和第 ζ位外的剩余 n-1位经过第三预置运算得到; 若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0 , 则由所述第一 n+1比特数 据组变换得到的第一 n比特数据组的第 X位为 0、且所述第一 n比特数据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1 位相同,或者,若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0, 则由所述第一 n+ 1比特数据组变换得到的第一 n比特数据组的第 X位为 0、且所述 第一 n比特数据组中除第 X位外的剩余 n- 1位由所述第一 n+1比特数据组中除第 y 位和第 z位外的剩余 n-1位经过第四预置运算得到;
按照预定顺序将变换得到的所述 N个 n比特数据组进行排列组合以恢复出 原始数据。
本发明实施例另一方面还提供一种编解码系统, 其特征在于, 包括: 如上述实施例所述的编码设备, 以及如上述实施例所述的解码设备。
本发明实施例另一方面还提供一种计算机存储介质,所述计算机存储介质 存储有程序,所述程序执行时包括如上述实施例提供的编码方法或解码方法的 部分或全部步骤。
由上可见, 本发明实施例提供的编码方案中, 将原始数据划分为 N个 n比 特数据组, 将 N个 n比特数据组转换为 N个 n+1比特数据组, 其中, 由于每个 n+1 比特数据组中都包括至少 1个比特 "0" 和至少一个比特 "1" , 因此, 这样相对 于现有技术能尽量减少连续出现较多个比特 "0" 或比特 "1" 的情况, 进而有 利于避免光纤输出脉沖拖尾问题, 提升编解码的可靠性。 此外, 通过判断所设 定的特定比特位 X上的值来进行对应编码, 大大降低了编码的复杂度, 由于这 种只是将每个 n+ 1比特数据组中的其中 1个比特用作标识,这样有利于提高编码 的效率。 附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述所需要 使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的一 些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还 可以根据这些附图获得其他的附图。
图 1是本发明第一实施例提供的一种编码的流程示意图;
图 2是本发明第二实施例提供的一种解码的流程示意图;
图 3是本发明第三实施例提供的一种编解码的流程示意图;
图 4是本发明实施例提供的一种编码设备的示意图;
图 5是本发明实施例提供的另一种编码设备的示意图;
图 6是本发明实施例提供的一种解码设备的示意图;
图 7是本发明实施例提供的另一种解码设备的示意图;
图 8是本发明实施例提供的一种编解码系统的示意图。 具体实施方式
本发明实施例提供编解码方法及其相关装置和编解码系统,以期提升编解 码的可靠性并降低编解码的复杂度, 尽量避免光纤输出脉沖拖尾问题。
下面通过具体实施例, 分别进行详细的说明。
为使得本发明的发明目的、 特征、 优点能够更加的明显和易懂, 下面将结 合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 下面所描述的实施例仅仅是本发明一部分实施例, 而非全部的实施 例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其它实施例, 都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语 "第一"、 "第二"、 "第 三" "第四" 等(如果存在)是用于区别类似的对象, 而不必用于描述特定的 顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换, 以便这里 描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序 实施。 此外, 术语 "包括" 和 "具有" 以及他们的任何变形, 意图在于覆盖不 排他的包含, 例如, 包含了一系列步骤或单元的过程、 方法、 系统、 产品或设 备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对 于这些过程、 方法、 产品或设备固有的其它步骤或单元。 本发明编码方法的一个实施例, 该编码方法可包括: 将原始数据划分为 N 个 n比特数据组, 其中, n可为大于 2且小于 8的整数; 将上述 N个 n比特数据组 变换得到 N个 n+1比特数据组; 其中,若 N个 n比特数据组中的第一 n比特数据组 的第 X位为 1 ,则由第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 1 且第 z位为 0、 且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位与第一 n 比特数据组中除第 X位外的剩余 n-1位相同,或者,若 N个 n比特数据组中的第一 n比特数据组的第 X位为 1 , 则由第一 n比特数据组变换得到的第一 n+1比特数据 组的第 y位为 1且第 z位为 0、 且第一 n+ 1比特数据组中除第 y位和第 z位外的剩余 n-1位由第一 n比特数据组中除第 X位外的剩余 n-1位经第一预置运算得到; 若上 述 N个 n比特数据组中的第一 n比特数据组的第 x位为 0, 则由第一 n比特数据组 变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且第一 n+1比特数据组 中除第 y位和第 z位外的剩余 n-1位与第一 n比特数据组中除第 x位外的剩余 n-1位 相同, 或者, 若上述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0, 则由 第一 n比特数据组变换得到的第一 n+ 1比特数据组的第 y位为 0且第 z位为 1、且第 一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位由第一 n比特数据组中除第 X位外的剩余 n-1位经第一预置运算得到; 其中, 第一预置运算和第二预置运算 相同或不同; 按照预定顺序发送上述 N个 n+1比特数据组。
参见图 1 , 图 1本发明第一实施例提供的一种编码方法的流程示意图, 本发 明第一实施例提供的一种编码方法, 应用于编码设备中, 可包括以下内容: 101、 编码设备将原始数据划分为 N个 n比特数据组。
其中, 本发明各实施例中的 n可为大于 2且小于 8的整数(例如 n等于 4 )。 n 比特数据组表示包含 n个比特的数据组, n+1比特数据组表示包含 n+1个比特的 数据组, 以此类推。
在本发明的一些实施例中, 原始数据(即待进行编码的数据 )可从接收到 的数据帧中得到, 例如当编码设备接收完数据帧后, 可从该数据帧中解析出原 始数据, 进而对解析出的原始数据进行编码处理。 当然, 编码设备也可通过其 它方式来得到待编码的原始数据。
102、 编码设备将上述 N个 n比特数据组变换得到 N个 n+1比特数据组。 在本发明的一些实施例中, 若 N个 n比特数据组中的第一 n比特数据组(其 中, 第一 n比特数据组可指 N个 n比特数据组中的任意 1个 n比特数据组) 的第 x 位为 1 ,则由第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z 位为 0、且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位与第一 n比特数 据组中除第 X位外的剩余 n-1位相同, 或者, 若 N个 n比特数据组中的第一 n比特 数据组的第 X位为 1 ,则由第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位由 第一 n比特数据组中除第 X位外的剩余 n- 1位经第一预置运算得到。
若上述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0 , 则由第一 n比 特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、 且第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n- 1位与第一 n比特数据组中除第 x位外 的剩余 n-1位相同, 或者, 若上述 N个 n比特数据组中的第一 n比特数据组的第 X 位为 0 ,则由第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z 位为 1、且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位由第一 n比特数 据组中除第 X位外的剩余 n-1位经第二预置运算得到; 其中, 第一预置运算和第 二预置运算相同或不同。
在本发明的一些实施例中, 第一预置运算例如为按位取反运算、与某预置 数进行求和 /或求差运算或其它可行运算。 类似的, 第二预置运算例如为按位 取反运算、 与某预置数进行求和 /或求差运算或其它可行运算。 其中, 第一预 置运算和第二预置运算是编码设备与解码设备约定的,解码设备可基于第一预 置运算或第二预置运算的逆运算进行数据还原。
在本发明的一些实施例中, 上述第 X位例如为最高位、 次高位或编码设备 与解码设备约定的其它任意 1位。 类似的, 上述第 y位例如为最高位、 次高位或 编码设备与解码设备约定的其它任意 1位, 而第 z位是与第 y位不同的位, 第 z 位可能为不同于第 y位的最高位、 次高位或编码设备与解码设备约定的其它任 意 1位, 例如当第 y位为最高位时, 第 z位可为除最高位外的其它任意 1位, 此时 第 z位例如可为次高位等; 当第 y位为次高位时, 第 z位可为除次高位外的其它 任意 1位, 此时第 z位例如可为最高位等, 以此类推。 为便于更好的理解上述编码方案, 下面通过几个例子进行说明。举例中假 设 n设定为 4, 第 X位为最高位、 第 y位为最高位、 第 z位为次高位。
举例一, 假设划分原始数据后得到的 N个 n比特数据组中的第一 n比特数据 组为 1111 , 则经过 "若第一 n比特数据组的第 X位为 1 , 则由第一 n比特数据组变 换得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且第一 n+1比特数据组中 除第 y位和第 z位外的剩余 n- 1位与第一 n比特数据组中除第 x位外的剩余 n- 1位相 同" 的编码变换后, 得到的第一 n+1比特数据组为 10111 , 这样相对于现有技术 能尽量减少连续出现较多个比特 "0" 或比特 "1" 的情况, 进而有利于避免光 纤输出脉沖拖尾问题, 提升编解码的可靠性。
举例二, 假设划分原始数据后得到的 N个 n比特数据组中的第一 n比特数据 组为 1111 , 并且假设第一预置运算为按位取反运算, 则经过 "若第一 n比特数 据组的第 X位为 1 , 则由第一 n比特数据组变换得到的第一 n+1比特数据组的第 y 位为 1且第 z位为 0、 且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位由 第一 n比特数据组中除第 X位外的剩余 n-1位经第一预置运算得到" 的编码变换 后,得到的第一 n+1比特数据组为 10000,这样相对于现有技术能尽量减少连续 出现较多个比特 "0" 或比特 "1" 的情况, 进而有利于避免光纤输出脉沖拖尾 问题, 提升编解码的可靠性。
举例三, 假设划分原始数据后得到的 N个 n比特数据组中的第一 n比特数据 组为 0000, 则经过 "若第一 n比特数据组的第 X位为 0, 由所述第一 n比特数据组 变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且所述第一 n+1比特数 据组中除第 y位和第 z位外的剩余 n- 1位与所述第一 n比特数据组中除第 x位外的 剩余 n-1位相同" 的编码变换后, 得到的第一 n+1比特数据组为 01000, 这样相 对于现有技术能尽量减少连续出现较多个比特 "0" 或比特 "1" 的情况, 进而 有利于避免光纤输出脉沖拖尾问题, 提升编解码的可靠性。
举例四, 假设划分原始数据后得到的 N个 n比特数据组中的第一 n比特数据 组为 0000, 并且假设第二预置运算为按位取反运算, 则经过 "若第一 n比特数 据组的第 X位为 0 ,由所述第一 n比特数据组变换得到的第一 n+ 1比特数据组的第 y位为 0且第 z位为 1、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1 位由所述第一 n比特数据组中除第 X位外的剩余 n-1位经第二预置运算得到 " 的 编码变换后, 得到的第一 n+1比特数据组为 01111 , 这样相对于现有技术能尽量 减少连续出现较多个比特 "0" 或比特 "1" 的情况, 进而有利于避免光纤输出 脉沖拖尾问题, 提升编解码的可靠性。
可以理解的是, n还可以设定为 3、 5、 6或 7, x、 y、 z也还可以分别设定为 其他可能的值, 而据此所做编码的方法与上述举例类似,在此就不再重复举例 说明。
103、 编码设备按照预定顺序发送上述 N个 n+1比特数据组。
在本发明的一些实施例中, 可按照串行或者并行方式发送上述 N个 n+1比 特数据组。 举例来说, 可发送数据帧, 其中, 该数据帧中包含按照预定顺序排 列组合的上述 N个 n+1比特数据组。如此,解码设备则可按照预定顺序恢复出 N 个 n+1比特数据组的排列顺序。
其中, 编码设备可为电力电子设备, 例如, 控制板或功率单元或其它电子 设备。
由上可见, 本实施例提供的编码方案中, 编码设备将原始数据划分为 N个 n比特数据组, 将 N个 n比特数据组转换为 N个 n+1比特数据组, 其中, n可为大 于 2且小于 8的整数, 其中, 由于每个 n+1比特数据组中都包括至少 1个比特 "0" 和至少一个比特 " 1" , 因此, 这样相对于现有技术能尽量减少连续出现较多个 比特 "0" 或比特 "1" 的情况, 进而有利于避免光纤输出脉沖拖尾问题, 提升 编解码的可靠性。 此外, 通过判断所设定的特定比特位 X上的值来进行对应编 码, 大大降低了编码的复杂度, 由于这种只是将每个 n+1比特数据组中的其中 1 个比特用作标识, 这样有利于提高编码的效率。 本发明解码方法的一个实施例, 该解码方法可包括: 接收 N个 n+1比特数 据组, 其中, n大于 2且小于 8; 将该 N个 n+1比特数据组变换得到 N个 n比特数据 组, 其中, 若上述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 , 则 由第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 1、 且第一 n比特 数据组中除第 X位外的剩余 n- 1位与第一 n+1比特数据组中除第 y位和第 z位外的 剩余 n-1位相同, 或者, 若上述 N个 n+1比特数据组中的第一 n+1比特数据组的 第 y位为 1 , 则由第一 η+1比特数据组变换得到的第一 n比特数据组的第 X位为 1、 且第一 n比特数据组中除第 X位外的剩余 n- 1位由第一 n+ 1比特数据组中除第 y位 和第 z位外的剩余 n- 1位经过第三预置运算得到;若 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0 , 则由第一 n+1比特数据组变换得到的第一 n比特数 据组的第 X位为 0、且第一 n比特数据组中除第 X位外的剩余 n- 1位与第一 n+ 1比特 数据组中除第 y位和第 z位外的剩余 n-1位相同, 或者, 若 N个 n+1比特数据组中 的第一 n+1比特数据组的第 y位为 0 , 则由第一 n+1比特数据组变换得到的第一 n 比特数据组的第 X位为 0、 且第一 n比特数据组中除第 X位外的剩余 n- 1位由第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算得到;按照 预定顺序将变换得到的上述 N个 n比特数据组进行排列组合以恢复出原始数 据。
参见图 2, 图 2本发明第二实施例提供的一种解码方法的流程示意图, 本发 明第二实施例提供的一种解码方法,应用于解码设备, 该解码方法包括以下内 谷:
201、 解码设备接收 N个 n+1比特数据组。
其中, 本发明各实施例中的 n可为大于 2且小于 8的整数(例如 n等于 4 )。 n 比特数据组表示包含 n个比特的数据组, n+1比特数据组表示包含 n+1个比特的 数据组, 以此类推。
在本发明的一些实施例中, 可按照串行或者并行方式接收 N个 n+1比特数 据组。 举例来说, 可接收数据帧, 从而接收到该数据帧中包含的按照预定顺序 排列组合的上述 N个 n+1比特数据组。
202、 解码设备将接收到的 N个 n+1比特数据组变换得到 N个 n比特数据组。 在本发明的一些实施例中,若上述 N个 n+1比特数据组中的第一 n+1比特数 据组(其中, 第一 n+1比特数据组可指 N个 n+1比特数据组中的任意 1个 n+1比特 数据组 )的第 y位为 1 ,则由第一 n+1比特数据组变换得到的第一 n比特数据组的 第 X位为 1、且第一 n比特数据组中除第 X位外的剩余 n-1位与第一 n+1比特数据组 中除第 y位和第 z位外的剩余 n-1位相同, 或者, 若上述 N个 n+1比特数据组中的 第一 n+1比特数据组的第 y位为 1 , 则由第一 n+1比特数据组变换得到的第一 n比 特数据组的第 x位为 1、且第一 n比特数据组中除第 X位外的剩余 n- 1位由第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n-1位经过第三预置运算得到; 若 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0, 则由第一 n+1比特数据组 变换得到的第一 n比特数据组的第 X位为 0、 并且第一 n比特数据组中除第 X位外 的剩余 n-1位与第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位相同, 或 者, 若 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0, 则由第一 n+1 比特数据组变换得到的第一 n比特数据组的第 X位为 0、且第一 n比特数据组中除 第 X位外的剩余 n-1位由第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位 经过第四预置运算得到。
在本发明的一些实施例中, 第三预置运算例如为按位取反运算、与某预置 数进行求和 /或求差运算或其它可行运算。 类似的, 第二预置运算例如为按位 取反运算、 与某预置数进行求和 /或求差运算或其它可行运算。 其中, 第一预 置运算和第二预置运算是编码设备与解码设备约定的,解码设备可基于第一预 置运算或第二预置运算的逆运算进行数据还原。
在本发明的一些实施例中, 第 X位例如为最高位、 次高位或编码设备与解 码设备约定的其它任意 1位。 类似的, 第 y位例如为最高位、 次高位或编码设备 与解码设备约定的其它任意 1位, 而第 z位是与第 y位不同的位, 第 z位例如为不 同于第 y位的最高位、次高位或编码设备与解码设备约定的其它任意 1位。其中, 例如当第 y位为最高位时, 第 z位可为除最高位外的其它任意 1位, 此时第 z位例 如可为次高位等。
为便于更好的理解上述编码方案, 下面通过几个例子进行说明。举例中假 设 n设定为 4, 第 X位为最高位、 第 y位为最高位、 第 z位为次高位。
举例一,假设解码设备接收到 N个 n+1比特数据组的第一 n+1比特数据组为 10111 , 则经过 "若第一 n+1比特数据组的第 y位为 1 , 则由第一 n+1比特数据组 变换得到的第一 n比特数据组的第 X位为 1、 且第一 n比特数据组中除第 x位外的 剩余 n-1位与第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位相同" 的解 码变换后, 得到的第一 n比特数据组为 1111。
举例二,假设解码设备接收到 N个 n+1比特数据组的第一 n+1比特数据组为 10000, 并且假设第三预置运算为按位取反运算, 则经过 "若第一 n+1比特数据 组的第 y位为 1 , 则由第一 n+1比特数据组变换得到的第一 n比特数据组的第 x位 为 1、 且第一 n比特数据组中除第 X位外的剩余 n- 1位由第一 n+1比特数据组中除 第 y位和第 z位外的剩余 n-1位经过第三预置运算得到" 的解码变换后, 得到的 第一 n比特数据组为 1111。
举例三,假设解码设备接收到 N个 n+1比特数据组的第一 n+1比特数据组为 01000, 则经过 "若第一 n+1比特数据组的第 y位为 0, 则由第一 n+1比特数据组 变换得到的第一 n比特数据组的第 X位为 0、 且第一 n比特数据组中除第 X位外的 剩余 n- 1位与第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位相同" 的解 码变换后, 得到的第一 n+1比特数据组为 0000。
举例四,假设解码设备接收到 N个 n+1比特数据组的第一 n+1比特数据组为 01111 , 并且假设第四预置运算为按位取反运算, 则经过 "若第一 n+1比特数据 组的第 y位为 0 , 则由第一 n+1比特数据组变换得到的第一 n比特数据组的第 x位 为 0、 且第一 n比特数据组中除第 X位外的剩余 n- 1位由第一 n+1比特数据组中除 第 y位和第 z位外的剩余 n-1位经过第四预置运算得到" 的解码变换后, 得到的 第一 n比特数据组为 0000。
可以理解的是, n还可以设定为 3、 5、 6或 7, x、 y、 z也还可以分别设定为 其他可能的值, 而据此所做解码的方法与上述举例类似,在此就不再重复举例 说明。
203、 解码设备按照预定顺序将变换得到的上述 N个 n比特数据组进行排列 组合以恢复出原始数据。
其中, 解码设备可为电力电子设备, 例如, 控制板或功率单元或其它电子 设备。
由上可见, 本实施例解码方案中, 解码设备将接收到的 N个 n+1比特数据 组变换得到 N个 n比特数据组, 按照预定顺序将变换得到的上述 N个 n比特数据 组进行排列组合以恢复出原始数据, 其中, n可为大于 2且小于 8的整数。 解码 时通过判断所设定的特定比特位 y上的值来进行对应解码, 大大降低了解码的 复杂度, 由于这种只是将每个 n+1比特数据组中的其中 1个比特用作标识,这样 有利于提高解码的效率。 下面通过一具体的应用场景进行介绍。参见图 3 , 图 3是本发明第三实施例 提供的一种编解码方法的流程示意图,本发明第三实施例提供的一种编解码方 法可包括以下内容:
301、 编码设备将原始数据划分为 N个 4比特数据组。
在本发明一些实施例中, 原始数据 (即待进行编码的数据 )可从接收到的 数据帧中得到, 例如当编码设备接收完数据帧后, 可从该数据帧中解析出原始 数据, 进而对解析出的原始数据进行编码处理。 当然, 编码设备也可通过其它 方式来得到待编码处理的原始数据。
302、 编码设备将上述 N个 4比特数据组变换得到 N个 5比特数据组。
其中, 若 N个 4比特数据组中的第一 4比特数据组(其中, 第一 4比特数据 组可指 N个 4比特数据组中的任意 1个 4比特数据组) 的最高位为 1 , 则由第一 4 比特数据组变换得到的第一 5比特数据组的最高位为 1且次高位为 0、 且第一 5 比特数据组低 3位与第一 4比特数据组中低 3位相同, 或者, 若 N个 4比特数据组 中的第一 4比特数据组的最高位为 1 , 则由第一 4比特数据组变换得到的第一 5 比特数据组的最高位为 1且次高位为 0、 且第一 5比特数据组低 3位由第一 4比特 数据组中的低 3位按位取反得到; 若上述 N个 4比特数据组中的第一 4比特数据 组的最高位为 0 , 则由第一 4比特数据组变换得到的第一 5比特数据组的最高位 为 0且次高位为 1、且第一 5比特数据组中的低 3位与第一 4比特数据组的低 3位相 同, 或者, 若上述 N个 4比特数据组中的第一 4比特数据组的最高位为 0, 则由 第一 4比特数据组变换得到的第一 5比特数据组的最高位为 0且次高位为 1、且第 一 5比特数据组中的低 3位由第一 4比特数据组中的低 3位按位取反得到。
303、 编码设备按照预定顺序发送上述 N个 5比特数据组。
304、 解码设备接收来自编码设备的 N个 5比特数据组。
在本发明的一些实施例中, 解码设备可按照串行或者并行方式接收 N个 5 比特数据组。 举例来说, 解码设备可接收数据帧, 从而接收到该数据帧中包含 的按照预定顺序排列组合的上述 N个 5比特数据组。
其中, 编码设备和解码设备可通过光纤连接。 305、 解码设备将该 N个 5比特数据组变换得到 N个 4比特数据组。 其中, 若上述 N个 5比特数据组中的第一 5比特数据组(其中, 第一 5比特 数据组可指 N个 5比特数据组中的任意 1个 5比特数据组)的最高位为 1 , 则由第 一 5比特数据组变换得到的第一 4比特数据组的最高位为 1、且第一 4比特数据组 中低 3位与第一 5比特数据组中的低 3位相同, 或者, 若上述 N个 5比特数据组中 的第一 5比特数据组的最高位为 1 ,则由第一 5比特数据组变换得到的第一 4比特 数据组的最高位为 1、且第一 4比特数据组中的低 3位由第一 5比特数据组中的低 3位按位取反得到; 若 N个 5比特数据组中的第一 5比特数据组的最高位为 0, 则 由第一 5比特数据组变换得到的第一 4比特数据组的最高位为 0、且第一 4比特数 据组中的低 3位与第一 5比特数据组中的低 3位相同, 或者, 若 N个 5比特数据组 中的第一 5比特数据组的最高位为 0 , 则由第一 5比特数据组变换得到的第一 4 比特数据组的最高位为 0、且第一 4比特数据组中的低 3位由第一 5比特数据组中 的低 3位按位取反得到。
306、 解码设备按照预定顺序将变换得到的上述 N个 4比特数据组进行排列 组合以恢复出原始数据。
可以理解的是, 本实施例中主要是以 N个 4比特数据组编码为 N个 5比特数 据组的场景为例进行介绍的, 其它比特数据组编码情况以此类推, 此处不再一 一举例。
由上可见, 本实施例提供的编解码方案中, 编码设备将原始数据划分为 N 个 4比特数据组, 而后将 N个 4比特数据组转换为 N个 5比特数据组; 而解码设备 将接收到的 N个 5比特数据组变换得到 N个 n比特数据组, 按照预定顺序将变换 得到的上述 N个 4比特数据组进行排列组合以恢复出原始数据, 由于每个 5比特 数据组中都包括至少 1个比特 "0" 和至少一个比特 "1" , 因此, 这样相对于现 有技术能尽量减少连续出现较多个比特 "0" 或比特 "1" 的情况, 进而有利于 避免光纤输出脉沖拖尾问题, 提升编解码的可靠性; 此外, 由于是将每个 5比 特数据组中的其中 1个比特用作标识, 这样有利于降低编解码的复杂度。 参见图 4, 本发明实施例还提供一种编码设备 400, 可包括:
划分单元 410、 第一变换单元 420和发送单元 430。 划分单元 410, 用于将原始数据划分为 N个 n比特数据组, 其中, 上述 n大 于 2且小于 8 (例如上述 n等于 4 )。
第一变换单元 420, 用于将划分单元 410划分出的上述 N个 n比特数据组变 换得到 N个 n+1比特数据组, 其中,若上述 N个 n比特数据组中的第一 n比特数据 组的第 X位为 1 , 则由第一 n比特数据组变换得到的第一 n+ 1比特数据组的第 y位 为 1且第 z位为 0、 且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位与第 一 n比特数据组中除第 X位外的剩余 n-1位相同, 或者, 若上述 N个 n比特数据组 中的第一 n比特数据组的第 X位为 1 , 则由第一 n比特数据组变换得到的第一 n+1 比特数据组的第 y位为 1且第 z位为 0、 且第一 n+1比特数据组中除第 y位和第 z位 外的剩余 n-1位由第一 n比特数据组中除第 X位外的剩余 n-1位经第一预置运算 得到; 若上述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0, 则由第一 n 比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n- 1位与第一 n比特数据组中除第 x位外 的剩余 n-1位相同, 或者, 若上述 N个 n比特数据组中的第一 n比特数据组的第 X 位为 0 ,则由第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z 位为 1、且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位由第一 n比特数 据组中除第 X位外的剩余 n-1位经第二预置运算得到, 其中, 第一预置运算和第 二预置运算相同或不同。
发送单元 430 , 用于按照预定顺序发送第一变换单元 420变换得到的 N个 n+1比特数据组。
在本发明的一些实施例中, 第三预置运算例如为按位取反运算、与某预置 数进行求和 /或求差运算或其它可行运算。 类似的, 第二预置运算例如为按位 取反运算、 与某预置数进行求和 /或求差运算或其它可行运算。 其中, 第一预 置运算和第二预置运算是编码设备与解码设备约定的,解码设备可基于第一预 置运算或第二预置运算的逆运算进行数据还原。
在本发明的一些实施例中, 第 X位例如为最高位、 次高位或编码设备与解 码设备约定的其它任意 1位。 类似的, 第 y位例如为最高位、 次高位或编码设备 与解码设备约定的其它任意 1位, 而第 z位是与第 y位不同的位, 第 z位例如为不 同于第 y位的最高位、次高位或编码设备与解码设备约定的其它任意 1位, 例如 当第 y位为最高位时, 第 z位可为除最高位外的其它任意 1位, 此时第 z位例如可 为次高位; 当第 y位为次高位时, 第 z位可为除次高位外的其它任意 1位, 此时 第 z位例如可为最高位等, 以此类推。
在本发明的一些实施例中, n还可以设定为 3、 5、 6或 7 , x、 y、 z也还可以 分别设定为其他可能的值,相关举例说明参见前述的编码方法实施例中所举的 例子, 在此就不再重复举例说明。
由上可见, 本实施例编码设备 400将原始数据划分为 N个 n比特数据组, 将 N个 n比特数据组转换为 N个 n+1比特数据组, n可为大于 2且小于 8的整数, 由于 每个 n+1比特数据组中都包括至少 1个比特 "0"和至少 1个比特 "1" , 这样相对 于现有技术, 有利于减少连续出现较多个比特 "0" 或者比特 "1" 的情况, 进 而有利于避免光纤输出脉沖拖尾问题, 提升编解码的可靠性; 此外, 通过判断 所设定的特定比特位 X的值来进行对应编码, 大大降低了编码的复杂度, 由于 这种只是将每个 n+1比特数据组中的其中 1个比特用作标识,这样有利于提高编 码的效率。 参见图 5 , 本发明实施例还提供一种编码设备 500, 可包括:
处理器 510、 存储器 520、 输入装置 530和输出装置 540。
其中, 处理器 510用于执行如下步骤:
将原始数据划分为 N个 n比特数据组, 其中, 上述 n大于 2且小于 8 (例如上 述 n等于 4 );
将上述 N个 n比特数据组变换得到 N个 n+1比特数据组, 其中, 若上述 N个 n 比特数据组中的第一 n比特数据组的第 X位为 1 ,则由第一 n比特数据组变换得到 的第一 n+1比特数据组的第 y位为 1且第 z位为 0、 且第一 n+ 1比特数据组中除第 y 位和第 z位外的剩余 n-1位与第一 n比特数据组中除第 X位外的剩余 n-1位相同,或 者, 若上述 N个 n比特数据组中的第一 n比特数据组的第 X位为 1 , 则由第一 n比 特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、 且第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n- 1位由第一 n比特数据组中除第 x位外 的剩余 n-1位经第一预置运算得到;若上述 N个 n比特数据组中的第一 n比特数据 组的第 x位为 0 , 则由第一 η比特数据组变换得到的第一 η+ 1比特数据组的第 y位 为 0且第 z位为 1、 且第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位与第 一 n比特数据组中除第 X位外的剩余 n-1位相同, 或者, 若上述 N个 n比特数据组 中的第一 n比特数据组的第 X位为 0 , 则由第一 n比特数据组变换得到的第一 n+1 比特数据组的第 y位为 0且第 z位为 1、 且第一 n+1比特数据组中除第 y位和第 z位 外的剩余 n-1位由第一 n比特数据组中除第 X位外的剩余 n-1位经第二预置运算 得到, 其中, 第一预置运算和第二预置运算相同或者不同;
按照预定顺序发送上述 N个 n+1比特数据组。
在本发明的一些实施例中, 第一预置运算例如为按位取反运算、与某预置 数进行求和 /或求差运算或其它可行运算。 类似的, 第二预置运算例如为按位 取反运算、 与某预置数进行求和 /或求差运算或其它可行运算。 其中, 第一预 置运算和第二预置运算是编码设备与解码设备约定的,解码设备可基于第一预 置运算或第二预置运算的逆运算进行数据还原。
在本发明的一些实施例中, 第 X位例如为最高位、 次高位或编码设备与解 码设备约定的其它任意 1位。 类似的, 第 y位例如为最高位、 次高位或编码设备 与解码设备约定的其它任意 1位, 而第 z位是与第 y位不同的位, 第 z位例如为不 同于第 y位的最高位、次高位或编码设备与解码设备约定的其它任意 1位, 例如 当第 y位为最高位时, 第 z位可为除最高位外的其它任意 1位, 此时第 z位例如可 为次高位; 当第 y位为次高位时, 第 z位可为除次高位外的其它任意 1位, 此时 第 z位例如可为最高位等, 以此类推。
在本发明的一些实施例中, n还可以设定为 3、 5、 6或 7 , x、 y、 z也还可以 分别设定为其他可能的值,相关举例说明参见前述的编码方法实施例中所举的 例子, 在此就不再重复举例说明。
由上可见, 本实施例编码设备 500将原始数据划分为 N个 n比特数据组, 将 N个 n比特数据组转换为 N个 n+1比特数据组, n可为大于 2且小于 8的整数, 由于 每个 n+1比特数据组中都包括至少 1个比特 "0"和至少 1个比特 "1" , 因此这样 相对于现有技术,有利于减少连续出现较多个比特 "0"或者比特 " 的情况, 进而有利于避免光纤输出脉沖拖尾问题, 提升编解码的可靠性。 此外, 通过判 断所设定的特定比特位 x上的值来进行对应编码, 大大降低了编码的复杂度, 由于这种只是将每个 n+1比特数据组中的其中 1个比特用作标识,这样有利于提 高编码的效率。 参见图 6, 本发明实施例还提供一种解码设备 600, 可包括:
接收单元 610、 第二变换单元 620和恢复单元 630。
接收单元 610, 用于接收 N个 n+1比特数据组, 上述 n大于 2且小于 8 (例如 上述 n等于 4 )。
第二变换单元 620, 用于将上述接收单元接收到的 N个 n+1比特数据组变换 得到 N个 n比特数据组,其中,若上述 N个 n+1比特数据组中的第一 n+1比特数据 组的第 y位为 1 , 则由第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位 为 1、 且第一 n比特数据组中除第 X位外的剩余 n- 1位与第一 n+1比特数据组中除 第 y位和第 z位外的剩余 n-1位相同, 或者, 若上述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 , 则由第一 n+1比特数据组变换得到的第一 n比特数 据组的第 X位为 1、且第一 n比特数据组中除第 X位外的剩余 n-1位由第一 n+1比特 数据组中除第 y位和第 z位外的剩余 n-1位经过第三预置运算得到; 若上述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0, 则由第一 n+1比特数据组 变换得到的第一 n比特数据组的第 X位为 0、 并且第一 n比特数据组中除第 X位外 的剩余 n-1位与第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位相同, 或 者, 若上述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0, 则由第一 n+1比特数据组变换得到的第一 n比特数据组的第 x位为 0、 且第一 n比特数据组 中除第 X位外的剩余 n- 1位由第一 n+ 1比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算得到;
恢复单元 630, 用于按照预定顺序将第二变换单元变换得到的上述 N个 n比 特数据组进行排列组合以恢复出原始数据。
在本发明的一些实施例中, 第三预置运算例如为按位取反运算、与某预置 数进行求和 /或求差运算或其它可行运算。 类似的, 第四预置运算例如为按位 取反运算、 与某预置数进行求和 /或求差运算或其它可行运算。
在本发明的一些实施例中, 第 X位例如为最高位、 次高位或编码设备与解 码设备约定的其它任意 1位。 类似的, 第 y位例如为最高位、 次高位或编码设备 与解码设备约定的其它任意 1位, 而第 z位是与第 y位不同的位, 第 z位例如为不 同于第 y位的最高位、次高位或编码设备与解码设备约定的其它任意 1位, 例如 当第 y位为最高位时, 第 z位可为除最高位外的其它任意 1位, 此时第 z位例如可 为次高位; 当第 y位为次高位时, 第 z位可为除次高位外的其它任意 1位, 此时 第 z位例如可为最高位等, 以此类推。
在本发明的一些实施例中, n还可以设定为 3、 5、 6或 7 , x、 y、 z也还可以 分别设定为其他可能的值,相关举例说明参见前述的解码方法实施例中所举的 例子, 在此就不再重复举例说明。
由上可见, 本发明实施例提供的解码设备 600将接收到的 N个 n+1比特数据 组变换得到 N个 n比特数据组, 按照预定顺序将变换得到的上述 N个 n比特数据 组进行排列组合以恢复出原始数据, 其中, n可为大于 2且小于 8的整数。 解码 时通过判断所设定的特定比特位 y上的值来进行对应解码, 大大降低了解码的 复杂度, 由于这种只是将每个 n+1比特数据组中的其中 1个比特用作标识,这样 有利于提高解码的效率。 参见图 7, 本发明实施例还提供一种解码设备 700, 可包括:
处理器 710、 存储器 720、 输入装置 730和输出装置 740。
其中, 处理器 710用于执行如下步骤:
接收 N个 n+1比特数据组, 上述 n大于 2且小于 8 (例如上述 n等于 4 )。
将接收到的上述 N个 n+1比特数据组变换得到 N个 n比特数据组, 其中, 若 上述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 , 则由第一 n+1比 特数据组变换得到的第一 n比特数据组的第 X位为 1、且第一 n比特数据组中除第 X位外的剩余 n-1位与第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位相 同, 或者, 若上述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 , 则 由第一 n+1比特数据组变换得到的第一 n比特数据组的第 x位为 1、 且第一 n比特 数据组中除第 X位外的剩余 n- 1位由第一 n+1比特数据组中除第 y位和第 z位外的 剩余 n-1位经过第三预置运算得到; 若上述 N个 n+1比特数据组中的第一 n+1比 特数据组的第 y位为 0,则由第一 n+1比特数据组变换得到的第一 n比特数据组的 第 x位为 0、且第一 n比特数据组中除第 X位外的剩余 n- 1位与第一 n+ 1比特数据组 中除第 y位和第 z位外的剩余 n-1位相同, 或者, 若上述 N个 n+1比特数据组中的 第一 n+ 1比特数据组的第 y位为 0 , 则由第一 n+ 1比特数据组变换得到的第一 n比 特数据组的第 X位为 0、且第一 n比特数据组中除第 X位外的剩余 n-1位由第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算得到;
按照预定顺序将变换得到的上述 N个 n比特数据组进行排列组合以得到原 始数据。
在本发明的一些实施例中, 第三预置运算例如为按位取反运算、与某预置 数进行求和 /或求差运算或其它可行运算。 类似的, 第四预置运算例如为按位 取反运算、 与某预置数进行求和 /或求差运算或其它可行运算。
在本发明的一些实施例中, 第 X位例如为最高位、 次高位或编码设备与解 码设备约定的其它任意 1位。 类似的, 第 y位例如为最高位、 次高位或编码设备 与解码设备约定的其它任意 1位, 而第 z位是与第 y位不同的位, 第 z位例如为不 同于第 y位的最高位、次高位或编码设备与解码设备约定的其它任意 1位, 例如 当第 y位为最高位时, 第 z位可为除最高位外的其它任意 1位, 此时第 z位例如可 为次高位; 当第 y位为次高位时, 第 z位可为除次高位外的其它任意 1位, 此时 第 z位例如可为最高位等, 以此类推。
在本发明的一些实施例中, n还可以设定为 3、 5、 6或 7, x、 y、 z也还可以 分别设定为其他可能的值,相关举例说明参见前述的解码方法实施例中所举的 例子, 在此就不再重复举例说明。
由上可见, 本发明实施例提供的解码设备 700将接收到的 N个 n+1比特数据 组变换得到 N个 n比特数据组, 按照预定顺序将变换得到的上述 N个 n比特数据 组进行排列组合以恢复出原始数据, 其中, n可为大于 2且小于 8的整数。 解码 时通过判断所设定的特定比特位 y上的值来进行对应解码, 大大降低了解码的 复杂度, 由于这种只是将每个 n+1比特数据组中的其中 1个比特用作标识,这样 有利于提高解码的效率。
参见图 8, 本发明实施例还提供一种编解码系统, 可包括:
编码设备 810和解码设备 820。 其中, 编码设备 810例如可如编码设备 400或编码设备 500 , 解码设备 820 例如可如解码设备 600或解码设备 700。
其中, 编码设备 810和解码设备 820可通过光纤和 /或其它方式进行通信。 本发明实施例还提供一种计算机存储介质, 其中, 该计算机存储介质可存 储有程序,该程序执行时包括上述方法实施例中记载的编解码方法的部分或全 部步骤。 需要说明的是, 对于前述的各方法实施例, 为了筒单描述, 故将其都表述 为一系列的动作组合,但是本领域技术人员应该知悉, 本发明实施例并不受所 描述的动作顺序的限制, 因为依据本发明实施例, 某些步骤可以采用其他顺序 或者同时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例 均属于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没 有详述的部分, 可以参见其他实施例的相关描述。
综上, 本发明实施例提供的编码方案中, 编码设备将原始数据划分为 N个 n比特数据组, 将 N个 n比特数据组转换为 N个 n+1比特数据组, 其中, n可为大 于 2且小于 8的整数, 由于每个 n+1比特数据组中都包括至少 1个比特 "0" 和至 少一个比特 "1" , 因此, 这样相对于现有技术, 有利于减少连续出现较多个比 特 "0" 或比特 "1" 的情况, 进而有利于避免光纤输出脉沖拖尾问题, 提升编 解码的可靠性。 此外, 通过判断所设定的特定比特位 X上的值来进行对应的编 码, 大大降低了编码的复杂度, 由于这种只是将每个 n+1比特数据组中的其中 1 个比特用作标识, 这样有利于提高编码的效率。
本发明实施例提供的解码方案中, 解码设备将接收到的 N个 n+1比特数据 组变换得到 N个 n比特数据组, 按照预定顺序将变换得到的上述 N个 n比特数据 组进行排列组合以恢复出原始数据, 其中, n可为大于 2且小于 8的整数。 解码 时通过判断所设定的特定比特位 y上的值来进行对应解码, 大大降低了解码的 复杂度, 由于这种只是将每个 n+1比特数据组中的其中 1个比特用作标识,这样 有利于提高解码的效率。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置, 可通过其 它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如所述单 元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例 如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可以忽 略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连 接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性或其 它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可集成在一个处理单元中,也 可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的 形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可为个人计算机、 服务器或 者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前述的 存储介质包括: U盘、 只读存储器(ROM, Read-Only Memory )、 随机存取存 储器(RAM, Random Access Memory ), 移动硬盘、 磁碟或者光盘等各种可以 存储程序代码的介质。
以上所述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽 管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理 解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分 技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱 离本发明各实施例技术方案的精神和范围。

Claims

权 利 要 求
1、 一种编码方法, 应用于编码设备中, 其特征在于, 所述编码方法包括: 所述编码设备将原始数据划分为 N个 n比特数据组, 所述 n大于 2且小于 8; 所述编码设备将所述 N个 n比特数据组变换得到 N个 n+1比特数据组,其中, 若所述 N个 n比特数据组中的第一 n比特数据组的第 x位为 1 , 则由所述第一 n比 特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、 且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位与所述第一 n比特数据组中除 第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数据 组的第 X位为 1 ,则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1 位由所述第一 n比特数据组中除第 X位外的剩余 n-1位经第一预置运算得到; 若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0 , 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且所述第 一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位与所述第一 n比特数据组中 除第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数 据组的第 X位为 0,则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的 第 y位为 0且第 z位为 1、 并且所述第一 n+1比特数据组中除第 y位和第 z位外的剩 余 n-1位由所述第一 n比特数据组中除第 X位外的剩余 n-1位经第二预置运算得 到, 其中, 所述第一预置运算和所述第二预置运算相同或不同;
所述编码设备按照预定顺序发送所述 N个 n+1比特数据组。
2、 根据权利要求 1所述的编码方法, 其特征在于, 所述第一预置运算为按 位取反运算, 和 /或, 所述第二预置运算为按位取反运算。
3、 根据权利要求 1所述的编码方法, 其特征在于,
所述第 X位为所述第一 n比特数据组的最高位, 或者为所述第一 n比特数据 组的次高位, 或者为所述第一 n比特数据组中任意位; 和 /或,
所述第 y位为所述第一 n+1比特数据组的最高位, 或者为所述第一 n+1比特 数据组的次高位, 或者为所述第一 n+1比特数据组的任意位, 其中, 所述第 z 位是与所述第 y位不同的位。
4、 根据权利要求 1所述的编码方法, 其特征在于,
所述按照预定顺序发送所述 N组 n+1比特数据组具体包括:
发送数据帧, 其中, 所述数据帧中包含按照预定顺序排列组合的所述 N个 n+1比特数据组。
5、 一种解码方法, 应用于解码设备中, 其特征在于, 所述解码方法包括: 所述解码设备接收 N个 n+1比特数据组, 所述 n大于 2且小于 8;
所述解码设备将所述 N个 n+1比特数据组变换得到 N个 n比特数据组,其中, 若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 ,则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 1、 且所述第一 n比特数 据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z位外 的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数据组 的第 y位为 1 , 则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 x 位为 1、 且所述第一 n比特数据组中除第 X位外的剩余 n- 1位由所述第一 n+1比特 数据组中除第 y位和第 z位外的剩余 n-1位经过第三预置运算得到;
若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0 ,则由所述 第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 0、 且所述第一 n比 特数据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z 位外的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数 据组的第 y位为 0,则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的 第 X位为 0、 且所述第一 n比特数据组中除第 X位外的剩余 n-1位由所述第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算得到;
所述解码设备按照预定顺序将变换得到的所述 N个 n比特数据组进行排列 组合以恢复出原始数据。
6、 根据权利要求 5所述的解码方法, 其特征在于,
所述第三预置运算为按位取反运算, 和 /或,
所述第四预置运算为按位取反运算。
7、 根据权利要求 5或 6所述的解码方法, 其特征在于,
所述第 X位为所述第一 n比特数据组的最高位, 或者为所述第一 n比特数据 组的次高位, 或者为所述第一 n比特数据组的任意位; 和 /或,
所述第 y位为所述第一 n+1比特数据组的最高位, 或者为所述第一 n+1比特 数据组的次高位, 或者为所述第一 n+1比特数据组的任意位, 其中, 所述第 z 位是与所述第 y位不同的位。
8、 一种编码设备, 其特征在于, 包括:
划分单元, 用于将原始数据划分为 N个 n比特数据组, 其中, 所述 n大于 2 且小于 8;
第一变换单元, 用于将所述划分单元划分出的所述 N个 n比特数据组变换 得到 N个 n+1比特数据组,其中, 若所述 N个 n比特数据组中的第一 n比特数据组 的第 X位为 1 , 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y 位为 1且第 z位为 0、 且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1 位与所述第一 n比特数据组中除第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n 比特数据组中的第一 n比特数据组的第 X位为 1 ,则由所述第一 n比特数据组变换 得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且所述第一 n+1比特数据组 中除第 y位和第 z位外的剩余 n- 1位由所述第一 n比特数据组中除第 x位外的剩余 n- 1位经第一预置运算得到;
若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0, 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且所述第 一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位与所述第一 n比特数据组中 除第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数 据组的第 X位为 0,则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的 第 y位为 0且第 z位为 1、 并且所述第一 n+1比特数据组中除第 y位和第 z位外的剩 余 n-1位由所述第一 n比特数据组中除第 X位外的剩余 n-1位经第二预置运算得 到, 其中, 所述第一预置运算和所述第二预置运算相同或者不同;
发送单元, 用于按照预定顺序发送所述第一变换单元变换得到的 N个 n+1 比特数据组。
9、 根据权利要求 8所述的编码设备, 其特征在于,
所述第一预置运算为按位取反运算, 和 /或, 所述第二预置运算为按位取反运算。
10、 根据权利要求 8或 9所述的编码设备, 其特征在于,
所述第 X位为所述第一 n比特数据组的最高位, 或者为所述第一 n比特数据 组的次高位, 或者为所述第一 n比特数据组的任意位; 和 /或,
所述第 y位为所述第一 n+1比特数据组的最高位, 或者为所述第一 n+1比特 数据组的次高位, 或者为所述第一 n+1比特数据组的任意位, 其中, 所述第 z 位是与所述第 y位不同的位。
11、 一种编码设备, 其特征在于, 包括:
处理器、 存储器、 输入装置和输出装置;
其中, 所述处理器用于执行如下步骤:
将原始数据划分为 N个 n比特数据组, 其中, 所述 n大于 2且小于 8;
将所述 N个 n比特数据组变换得到 N个 n+1比特数据组, 其中, 若所述 N个 n 比特数据组中的第一 n比特数据组的第 X位为 1 ,则由所述第一 n比特数据组变换 得到的第一 n+1比特数据组的第 y位为 1且第 z位为 0、且所述第一 n+1比特数据组 中除第 y位和第 z位外的剩余 n-1位与所述第一 n比特数据组中除第 x位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 1 , 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 1且第 z位 为 0、且所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位由所述第一 n 比特数据组中除第 X位外的剩余 n- 1位经第一预置运算得到;
若所述 N个 n比特数据组中的第一 n比特数据组的第 X位为 0, 则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的第 y位为 0且第 z位为 1、且所述第 一 n+1比特数据组中除第 y位和第 z位外的剩余 n- 1位与所述第一 n比特数据组中 除第 X位外的剩余 n-1位相同, 或者, 若所述 N个 n比特数据组中的第一 n比特数 据组的第 X位为 0,则由所述第一 n比特数据组变换得到的第一 n+1比特数据组的 第 y位为 0且第 z位为 1、 并且所述第一 n+1比特数据组中除第 y位和第 z位外的剩 余 n-1位由所述第一 n比特数据组中除第 X位外的剩余 n-1位经第二预置运算得 到, 其中, 所述第一预置运算和所述第二预置运算相同或不同;
按照预定顺序发送所述 N个 n+1比特数据组。
12、 根据权利要求 11所述的编码设备, 其特征在于,
所述第一预置运算为按位取反运算, 和 /或,
所述第二预置运算为按位取反运算。
13、 根据权利要求 11或 12所述的编码设备, 其特征在于,
所述第 X位为所述第一 n比特数据组的最高位, 或者为所述第一 n比特数据 组的次高位, 或者为所述第一 n比特数据组的任意位; 和 /或,
所述第 y位为所述第一 n+1比特数据组的最高位, 或者为所述第一 n+1比特 数据组的次高位, 或者为所述第一 n+1比特数据组的任意位, 其中, 所述第 z 位是与所述第 y位不同的位。
14、 一种解码设备, 其特征在于, 包括:
接收单元, 用于接收 N个 n+1比特数据组, 所述 n大于 2且小于 8;
第二变换单元, 用于将所述接收单元接收到的 N个 n+1比特数据组变换得 到 N个 n比特数据组,其中,若所述 N个 n+1比特数据组中的第一 n+1比特数据组 的第 y位为 1 , 则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 x 位为 1、 且所述第一 n比特数据组中除第 X位外的剩余 n-1位与所述第一 n+1比特 数据组中除第 y位和第 z位外的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据 组中的第一 n+1比特数据组的第 y位为 1 , 则由所述第一 n+1比特数据组变换得 到的第一 n比特数据组的第 X位为 1、 且所述第一 n比特数据组中除第 X位外的剩 余 n-1位由所述第一 n+1比特数据组中除第 y位和第 z位外的剩余 n-1位经过第三 预置运算得到;
若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0 ,则由所述 第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 0、 且所述第一 n比 特数据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z 位外的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数 据组的第 y位为 0,则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的 第 X位为 0、 且所述第一 n比特数据组中除第 X位外的剩余 n-1位由所述第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算得到;
恢复单元, 用于按照预定顺序将所述第二变换单元变换得到的所述 N个 n 比特数据组进行排列组合以恢复出原始数据。
15、 根据权利要求 14所述的解码设备, 其特征在于,
所述第三预置运算为按位取反运算, 和 /或,
所述第四预置运算为按位取反运算。
16、 根据权利要求 14或 15所述的解码设备, 其特征在于,
所述第 X位为所述第一 n比特数据组的最高位, 或者为所述第一 n比特数据 组的次高位, 或者为所述第一 n比特数据组的任意位; 和 /或,
所述第 y位为所述第一 n+1比特数据组的最高位, 或者为所述第一 n+1比特 数据组的次高位, 或者为所述第一 n+1比特数据组的任意位, 其中, 所述第 z 位是与所述第 y位不同的位。
17、 一种解码设备, 其特征在于, 包括:
处理器、 存储器、 输入装置和输出装置;
其中, 所述处理器用于执行如下步骤:
接收 N个 n+1比特数据组, 所述 n大于 2且小于 8;
将接收到的所述 N个 n+1比特数据组变换得到 N个 n比特数据组, 其中, 若 所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 1 , 则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 1、 且所述第一 n比特数 据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z位外 的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数据组 的第 y位为 1 , 则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的第 x 位为 1、 且所述第一 n比特数据组中除第 X位外的剩余 n- 1位由所述第一 n+1比特 数据组中除第 y位和第 z位外的剩余 n-1位经过第三预置运算得到;
若所述 N个 n+1比特数据组中的第一 n+1比特数据组的第 y位为 0 ,则由所述 第一 n+1比特数据组变换得到的第一 n比特数据组的第 X位为 0、 且所述第一 n比 特数据组中除第 X位外的剩余 n-1位与所述第一 n+1比特数据组中除第 y位和第 z 位外的剩余 n-1位相同, 或者, 若所述 N个 n+1比特数据组中的第一 n+1比特数 据组的第 y位为 0,则由所述第一 n+1比特数据组变换得到的第一 n比特数据组的 第 X位为 0、 且所述第一 n比特数据组中除第 X位外的剩余 n-1位由所述第一 n+1 比特数据组中除第 y位和第 z位外的剩余 n-1位经过第四预置运算得到; 按照预定顺序将变换得到的所述 N个 n比特数据组进行排列组合以恢复出 原始数据。
18、 根据权利要求 17所述的解码设备, 其特征在于,
所述第三预置运算为按位取反运算, 和 /或,
所述第四预置运算为按位取反运算。
19、 根据权利要求 17或 18所述的解码设备, 其特征在于,
所述第 X位为所述第一 n比特数据组的最高位, 或者为所述第一 n比特数据 组的次高位, 或者为所述第一 n比特数据组的任意位; 和 /或,
所述第 y位为所述第一 n+1比特数据组的最高位, 或者为所述第一 n+1比特 数据组的次高位, 或者为所述第一 n+1比特数据组的任意位, 其中, 所述第 z 位是与所述第 y位不同的位。
20、 一种编解码系统, 其特征在于, 包括:
如权利要求 8~13任一项所述的编码设备, 以及如权利要求 14~19任一项所 述的解码设备。
21、 一种计算机存储介质, 其特征在于,
所述计算机存储介质存储有程序, 所述程序执行时包括如权利要求 1至 7 任一项所述的步骤。
PCT/CN2012/082860 2012-10-12 2012-10-12 编解码方法及其相关装置和编解码系统 WO2014056188A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280041680.0A CN103988436B (zh) 2012-10-12 2012-10-12 编解码方法及其相关装置和编解码系统
PCT/CN2012/082860 WO2014056188A1 (zh) 2012-10-12 2012-10-12 编解码方法及其相关装置和编解码系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/082860 WO2014056188A1 (zh) 2012-10-12 2012-10-12 编解码方法及其相关装置和编解码系统

Publications (1)

Publication Number Publication Date
WO2014056188A1 true WO2014056188A1 (zh) 2014-04-17

Family

ID=50476895

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/082860 WO2014056188A1 (zh) 2012-10-12 2012-10-12 编解码方法及其相关装置和编解码系统

Country Status (2)

Country Link
CN (1) CN103988436B (zh)
WO (1) WO2014056188A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868206A (zh) * 2021-10-08 2021-12-31 八十一赞科技发展(重庆)有限公司 一种数据压缩方法、解压缩方法、装置及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5390041A (en) * 1991-11-06 1995-02-14 Cray Research, Inc. Fiber optic channel extender interface method and apparatus
JP2004080300A (ja) * 2002-08-15 2004-03-11 Fuji Xerox Co Ltd 符号化装置およびその方法
CN101086844A (zh) * 2007-07-19 2007-12-12 清华大学 抗信道恶劣丢包伴随误码的语音编码传输方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5390041A (en) * 1991-11-06 1995-02-14 Cray Research, Inc. Fiber optic channel extender interface method and apparatus
JP2004080300A (ja) * 2002-08-15 2004-03-11 Fuji Xerox Co Ltd 符号化装置およびその方法
CN101086844A (zh) * 2007-07-19 2007-12-12 清华大学 抗信道恶劣丢包伴随误码的语音编码传输方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868206A (zh) * 2021-10-08 2021-12-31 八十一赞科技发展(重庆)有限公司 一种数据压缩方法、解压缩方法、装置及存储介质

Also Published As

Publication number Publication date
CN103988436A (zh) 2014-08-13
CN103988436B (zh) 2016-12-14

Similar Documents

Publication Publication Date Title
US9673969B2 (en) Transcoding method for multi-wire signaling that embeds clock information in transition of signal state
JP3204672B2 (ja) 遷移制御されたデジタルエンコード及び信号伝送システム
JPH0514420A (ja) シリアル信号伝送装置
JP2011138472A (ja) シリアル・バス・デバイス及びその差分クロック補償方法
CN107534548A (zh) 用于基于脉冲的多线链路的时钟和数据恢复
WO2019227831A1 (zh) 编码方法、设备及可读存储介质
CN106063181B (zh) 接收机电路和在接收机电路上操作的方法
US7612694B1 (en) Efficient coding of small integer sets
JP2010516162A (ja) 直列通信システムにおける直列データの送受信方法及び装置とこのための直列通信システム
WO2019237624A1 (zh) 加扰方法、设备及可读存储介质
CN107077448A (zh) 用于多模总线的同时边缘翻转免疫电路
WO2019237625A1 (zh) 解扰方法、设备及可读存储介质
WO2014056188A1 (zh) 编解码方法及其相关装置和编解码系统
JP2001024712A (ja) 並列システムをデータ・ストローブ型の送受信器とインタフェース接続するための伝送システム、送信器、受信器、及びインタフェース装置
JP2011103552A (ja) 情報処理装置、及び信号処理方法
Jena et al. A novel bit stuffing technique for Controller Area Network (CAN) protocol
CN216119513U (zh) 发光二极管驱动器以及发光二极管驱动设备
CN110620635A (zh) 解码方法、设备及可读存储介质
CN102487307A (zh) 一种用于fc协议的eof极性选择方法
CN105553801B (zh) 一种低延迟1394物理层转发电路
CN113196661A (zh) 一种数据处理方法及相关装置
TWI698092B (zh) 用於高速序列資料通訊系統的編碼和解碼架構及其相關方法、實體層電路、發射器與接收器及其中的通訊系統
CN113193873A (zh) 编码方法、解码方法、编码装置及解码装置
US9692590B1 (en) Serial data multiplexing
CN114730297A (zh) 数据发送单元、数据接收单元、数据发送方法及接收方法

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: 12886289

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: 12886289

Country of ref document: EP

Kind code of ref document: A1