JPH088759A - Code error correction method - Google Patents

Code error correction method

Info

Publication number
JPH088759A
JPH088759A JP13293094A JP13293094A JPH088759A JP H088759 A JPH088759 A JP H088759A JP 13293094 A JP13293094 A JP 13293094A JP 13293094 A JP13293094 A JP 13293094A JP H088759 A JPH088759 A JP H088759A
Authority
JP
Japan
Prior art keywords
error
code
correction
processing
syndrome
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP13293094A
Other languages
Japanese (ja)
Other versions
JP2988829B2 (en
Inventor
Yoshishige Nagata
良茂 永田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP6132930A priority Critical patent/JP2988829B2/en
Publication of JPH088759A publication Critical patent/JPH088759A/en
Application granted granted Critical
Publication of JP2988829B2 publication Critical patent/JP2988829B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

(57)【要約】 【目的】 高効率の符号誤り訂正処理をマイコン等のS
/W処理により容易に実現する。 【構成】 あらかじめ訂正すべきエラーパターンに対し
てエラーシンドロームを演算しておき、エラーシンドロ
ーム別にならべ直し、受信時のエラーシンドロームにお
いて直ちに訂正する。またフレームチェックシーケンス
(FCS)処理と組合せて高効率に訂正処理し、誤り訂
正における誤訂正について検知を行う。 【効果】 簡易な回路構成で実現でき、高効率の訂正能
力を有し、実回線に容易に適合可能である。
(57) [Summary] [Purpose] High-efficiency code error correction processing for S
It is easily realized by the / W process. [Structure] An error syndrome is calculated for an error pattern to be corrected in advance, the error syndromes are reordered for each error syndrome, and the error syndrome upon reception is immediately corrected. In addition, correction processing is performed with high efficiency in combination with frame check sequence (FCS) processing, and error correction in error correction is detected. [Effect] It can be realized with a simple circuit configuration, has a highly efficient correction capability, and can be easily adapted to an actual line.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はディジタルデータ伝送に
おける受信データの符号の誤り訂正方法に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of correcting an error in a code of received data in digital data transmission.

【0002】[0002]

【従来の技術】従来の誤り訂正方法のうち、エラーパタ
ーンと剰余項とを1:1に対応するようにした、エラー
パターン訂正テーブルを作りバーストエラーとランダム
エラーとを同時に訂正する方法に関して特開昭63−2
86026号公報に述べられている。図13に一般的な
符号伝送機能図を示す。図13において、まず送信動作
では1は送信データ、2は符号化機能、3は搬送路への
変調機能、4は搬送路上の搬送機能である。又受信動作
では5は搬送路からの復調機能、6は復号機能、7はデ
ータの表示・印字機能で実質的な受信データである。図
14に図13の機能を実現するマイクロコンピュータに
よる符号化・復号化回路を示す。
2. Description of the Related Art Among the conventional error correction methods, a method for making an error pattern correction table in which an error pattern and a remainder term correspond to each other 1: 1 and correcting a burst error and a random error at the same time 63-2
No. 86026. FIG. 13 shows a general code transmission function diagram. In FIG. 13, first, in the transmission operation, 1 is transmission data, 2 is an encoding function, 3 is a modulation function for a transport path, and 4 is a transport function on the transport path. In the receiving operation, 5 is a demodulation function from the conveying path, 6 is a decoding function, and 7 is a data display / printing function, which is substantially received data. FIG. 14 shows an encoding / decoding circuit by a microcomputer that realizes the functions of FIG.

【0003】図14において、10は中央演算装置(以
下CPU)、11は読み出専用メモリ(以下ROM)、
12はランダムアクセスメモリ(以下RAM)、13は
並列入出力回路、14は直列入出力回路である。エラー
パターンテーブルを作り誤り訂正する方法は、上記図1
4のROM11内のデータをデータテーブル化すること
により容易に符号誤り訂正処理ができる。前記特開昭6
3−286026号等による従来の符号誤り訂正過程に
おける状態遷移図を図15に示す。
In FIG. 14, 10 is a central processing unit (hereinafter, CPU), 11 is a read-only memory (hereinafter, ROM),
12 is a random access memory (hereinafter referred to as RAM), 13 is a parallel input / output circuit, and 14 is a serial input / output circuit. The method of creating an error pattern table and correcting errors is described in FIG.
By converting the data in the ROM 11 of No. 4 into a data table, the code error correction process can be easily performed. The above-mentioned JP-A-6
FIG. 15 shows a state transition diagram in the conventional code error correction process according to No. 3-286026.

【0004】次に動作について以下各動作にステップを
S1〜SN等を付して説明する。図15において、時間
Tの経過につれて、受信処理,誤り検知処理,誤り訂正
処理,処理結果への対応が行われる。まず、受信処理に
おいて、符号受信処理S1では、受信符号(データ部分
とチェックビット部分を含む)を以下の処理に先立って
例えば一定アドレスのRAM12へ記憶させる。この場
合以降の処理を容易にする為にデータ部分とチェックビ
ット部分とに分け、次に誤り検知処理において、受信符
号を生成多項式で演算した結果を「誤りなし」S2−1
と「誤りあり」S2−2とのいずれかに振り分ける。誤
り訂正処理において、上記「誤りあり」S2−2判定処
理の場合には、ROM11内のエラーパターン訂正テー
ブルからエラーパターンを抽出し修正するが、エラーパ
ターンがそのテーブルに存在する場合には、「訂正可」
S3−1の状態となり訂正できる。
Next, the operation will be described below by adding steps S1 to SN to each operation. In FIG. 15, as time T elapses, reception processing, error detection processing, error correction processing, and processing result correspondence are performed. First, in the receiving process, in the code receiving process S1, the received code (including the data part and the check bit part) is stored in the RAM 12 at a fixed address, for example, prior to the following process. In this case, in order to facilitate the subsequent processing, the data portion and the check bit portion are divided, and in the error detection processing, the result obtained by operating the received code with the generator polynomial is "no error" S2-1.
And “There is an error” S2-2. In the error correction process, in the case of the above-mentioned “error present” S2-2 determination process, the error pattern is extracted and corrected from the error pattern correction table in the ROM 11, but when the error pattern exists in the table, “ Correctable "
It becomes the state of S3-1 and can be corrected.

【0005】その場合「正訂正」S4−1になる場合と
本来の訂正能力外のエラーパターンにおいては「誤訂
正」S4−2となる。一方エラーパターン訂正テーブル
にエラーパターンが存在しない場合には「訂正不可」S
3−2の状態となる。全体の処理結果として上記各処理
S2−1,S4−1,S4−2の結果は復元データS5
として取り出され、元の送信符号に復元される。「正受
信」S6−1と、誤訂正される「誤受信」S6−2に分
れる。S2−2の一部とS3−2の結果は「不受信」S
6−3になる。ただし「正訂正」S4−1と「誤訂正」
S4−2および「正受信」S6−1と「誤受信」S6−
2の区別はどちらもできない。
In this case, "correction" S4-1 results and "erroneous correction" S4-2 occurs in an error pattern outside the original correction capability. On the other hand, if the error pattern does not exist in the error pattern correction table, “uncorrectable” S
The state becomes 3-2. As a result of the whole processing, the results of the above-mentioned respective processing S2-1, S4-1, S4-2 are restored data S5.
And is restored to the original transmission code. It is divided into "correct reception" S6-1 and "correct reception" S6-2 which is erroneously corrected. Part of S2-2 and the result of S3-2 are "not received" S
6-3. However, "correction" S4-1 and "correction"
S4-2 and "correct reception" S6-1 and "erroneous reception" S6-
Neither of the two can be distinguished.

【0006】従って、図15の従来の符号誤り訂正過程
における状態遷移過程は、巡回符号による訂正符号に一
般的に言える。訂正演算による方法を取ると、一定の誤
りパターンに関しては100%訂正できるが、それ以外
のパターンにおいては、「訂正不可」S3−2か又は
「誤訂正」S4−2の状態となる。
Therefore, the state transition process in the conventional code error correction process of FIG. 15 can be generally said to be a correction code by a cyclic code. When a method based on a correction operation is adopted, a certain error pattern can be corrected 100%, but in the other patterns, the state becomes “uncorrectable” S3-2 or “miscorrection” S4-2.

【0007】[0007]

【発明が解決しようとする課題】従来の方法は訂正処理
できない「訂正不可」状態が存在し、又訂正可のうちの
誤訂正について判別できない等、符号訂正能力も小さい
などの問題点があった。
However, the conventional method has a problem that there is a "uncorrectable" state in which correction processing cannot be performed, and erroneous correction of correctability cannot be determined, and the code correction capability is small. .

【0008】この発明は上記のような課題を解決するた
めになされたものであり、この発明は上記「訂正不可」
状態を極力少なくして、誤訂正を判別できるようにし、
誤り訂正能力を大きく向上し、かつ簡単な訂正処理で符
号訂正が可能となるものである。また、高品質の「正受
信」状態を保てるようにするものである。また、実用回
線の特性に合った効率の良い処理を可能とし、符号誤り
訂正能力を向上できるようにしたものである。また、信
頼性の高い誤り訂正が可能となるようにするものであ
る。
The present invention has been made to solve the above problems, and the present invention is "correctable".
Make the state as small as possible so that miscorrection can be identified,
The error correction capability is greatly improved, and the code can be corrected by a simple correction process. In addition, the high quality "normal reception" state can be maintained. In addition, it is possible to perform efficient processing that matches the characteristics of the practical line and improve the code error correction capability. Further, it is intended to enable highly reliable error correction.

【0009】[0009]

【課題を解決するための手段】請求項1の発明に係る符
号誤り訂正方法は巡回符号による誤り訂正符号とバース
ト誤り訂正符号とを使用したディジタル受信符号に対す
る誤り訂正方法において、実回線のエラーパターンを単
一バーストエラー,2ビットランダムエラー,3ビット
ランダムエラー等の複数のエラーパターンに分類し、こ
れらに優先順位付けを行い、これらすべてのエラーパタ
ーンのエラーシンドロームを演算させ、すべてのエラー
シンドロームに対して1つ以上のエラーパターンが埋ま
るまで拡張し更にこれらのエラーシンドロームについ
て、各々のエラーシンドロームに対する優先順位順にな
らべたうち、順位の高いもの1つをあらかじめ訂正すべ
きエラーパターンとしてテーブル化しておき、受信処理
後、符号誤り検知処理によりエラーシンドローム演算に
より生じたエラーシンドロームとエラーパターン訂正テ
ーブルとから、エラーシンドロームに対する訂正すべき
エラーパターンのうち優先順位の最も高いものを抽出
し、受信データへ排他的論理和演算をすることにより誤
りを訂正する符号誤り訂正方法とした。
A code error correction method according to the invention of claim 1 is an error correction method for a digital reception code using an error correction code by a cyclic code and a burst error correction code. Is classified into multiple error patterns such as single burst error, 2-bit random error, 3-bit random error, etc., prioritized for these, and the error syndromes of all these error patterns are calculated, and all error syndromes are calculated. On the other hand, by expanding until one or more error patterns are filled and further arranging these error syndromes in order of priority for each error syndrome, one with a higher priority is tabulated as an error pattern to be corrected in advance. , Code error detection processing after reception processing Error is generated by extracting the highest priority error pattern to be corrected for the error syndrome from the error syndrome caused by the error syndrome calculation and the error pattern correction table, and performing an exclusive OR operation on the received data. Is used as a code error correction method.

【0010】請求項2の発明に係る符号誤り訂正方法は
巡回符号による誤り訂正符号とバースト誤り訂正符号と
を使用したディジタル受信信号に対する誤り訂正方法に
おいて、実回線のエラーパターンを、単一バーストエラ
ー,2ビットランダムエラー,3ビットランダムエラー
等の複数のエラーパターンに分類し、これらに優先順位
付けを行い、前記エラーパターンのすべてのエラーシン
ドロームを演算し、これらのエラーシンドローム順に各
々のエラーシンドロームに対する1又は複数のエラーパ
ターンをエラーパターンの優先順に第1訂正パターン,
第2訂正パターン……第a訂正パターン(aは正の整
数)とならべたデータテーブルをあらかじめ用意してお
き、受信処理後、符号誤り検知処理によるエラーシンド
ローム演算により生じたエラーシンドロームとエラーパ
ターン訂正テーブルからエラーシンドロームに対する訂
正すべきエラーパターンをエラーパターンが1つの場合
は直ちに、複数ある場合優先順に従って順次訂正すべき
復元データとしてフレームチェックシーケンス(FC
S)処理におけるフレームの誤り検出処理に渡し、符号
誤りが検出されなくなるまでくり返し、エラーパターン
を選択し処理することにより選択したエラーパターンの
すべてに対する符号誤りを訂正できるようにした符号誤
り訂正方法とした。
A code error correction method according to a second aspect of the present invention is an error correction method for a digital received signal using an error correction code by a cyclic code and a burst error correction code. , Two-bit random error, three-bit random error, etc. are classified, priorities are assigned to these, and all error syndromes of the error pattern are calculated, and the error syndromes are sorted in the order of these error syndromes. 1 or more error patterns are the first correction pattern in the order of priority of error patterns,
Second correction pattern: A data table arranged with the a-th correction pattern (a is a positive integer) is prepared in advance, and after the reception processing, the error syndrome and error pattern correction caused by the error syndrome calculation by the code error detection processing are performed. From the table, an error pattern to be corrected for an error syndrome is immediately restored when there is one error pattern, and when there are a plurality of error patterns, as frame restoration sequence (FC) as restoration data to be sequentially corrected according to the priority order
And a code error correction method capable of correcting the code errors for all of the selected error patterns by passing them to the frame error detection process in the process, repeating until no code errors are detected, and selecting and processing the error patterns. did.

【0011】請求項3の発明に係る符号誤り訂正方法は
伝送情報が多い場合に、上記誤り訂正符号を複数のブロ
ック符号として使用し、最後のブロック符号にはエラー
パターン訂正テーブルからエラーシンドロームに対する
訂正すべきエラーパターンをエラーパターンが1つの場
合は直ちに、複数ある場合優先順に従って順次訂正すべ
き復元データとしてフレームチェックシーケンス(FC
S)処理におけるフレームの誤り検出処理に渡す、フレ
ームチェックシーケンス(FCS)処理を使用して全体
の誤り検出処理を行うように構成された伝送符号におい
て、受信後直ちに各ブロックについて誤り検出および誤
り訂正処理を行い、誤り検出時はエラーシンドロームと
エラーパターン訂正テーブルとから直ちに訂正を行い、
その結果、すべての伝送符号に対して各々復元データが
決まり、FCS処理による全体データの誤り検出処理に
より正受信状態か不受信状態かを判別する符号誤り訂正
方法とした。
In the code error correction method according to the third aspect of the present invention, when there is a large amount of transmission information, the error correction code is used as a plurality of block codes, and the last block code is corrected from the error pattern correction table to the error syndrome. If there is one error pattern, the frame check sequence (FC
S) In the transmission code configured to perform the overall error detection process using the frame check sequence (FCS) process, which is passed to the frame error detection process in the process, the error detection and the error correction for each block immediately after reception. Process, when an error is detected, it is immediately corrected from the error syndrome and the error pattern correction table,
As a result, the restored data is determined for each of the transmission codes, and the code error correction method is used to determine the normal reception state or the non-reception state by the error detection process of the entire data by the FCS process.

【0012】請求項4の発明に係る符号誤り訂正方法は
伝送情報が多い場合に複数のブロック符号として使用
し、最後のブロック符号にはデータ長のフレームチェッ
クシーケンス(FCS)処理を使用して、全体の誤り検
出処理が行なえるよう構成された伝送符号において、受
信後一定のエラーパターン分類に対してすべて訂正でき
るエラーパターン訂正テーブルを用い復元データを1つ
又は複数の候補にして一時保持しておきこれらの復元デ
ータに組合せ処理を行い、FCS処理において正受信状
態と不受信状態とに分けて判定する符号誤り訂正方法と
した。
The code error correction method according to the invention of claim 4 is used as a plurality of block codes when there is a lot of transmission information, and a frame length check sequence (FCS) process of the data length is used for the last block code. In a transmission code that is configured to perform overall error detection processing, an error pattern correction table that can correct all error pattern classifications after reception is used to temporarily store the restored data as one or more candidates. A code error correction method is performed in which the restored data is combined with each other and is determined separately in the normal reception state and the non-reception state in the FCS processing.

【0013】請求項5の発明に係る符号誤り訂正方法は
復元データ組合せ処理とFCS処理において、このFC
S処理にて第1訂正候補について誤りのない場合は正受
信状態とし、誤りのある場合は、組合せ処理を用いて第
1訂正候補以外に復元データを持つデータについて、複
数の組合せを効率良く作る為に、これらの復元データの
FCS処理によるエラーシンドローム(FCSシンドロ
ーム)をただ一回のみ選択されるように各ブロック符号
のデータ部分(復元データ)のFCSシンドロームを、
符号語番号とその符号語の順番を示すポインタおよび今
まで演算された全体データのエラーシンドロームとの入
れ子処理を作り、復元データのFCSシンドロームが1
つのみの場合は、処理を次に繰り上げ、それ以外の場合
のみFCS処理を行うが、全体符号のFCS処理を行う
代りに既演算FCS処理に対して特定のブロック符号の
第1候補の復元データのFCSシンドロームを論理和を
作ることにより、全体符号から特定ブロックの符号を除
いたFCS処理を行っておき、この特定ブロック符号を
除いたエラーシンドロームに対して第1候補以外の復元
データのFCSシンドロームのポインタに示し、その復
号データを排他的論理和演算(XOR)をさせることに
より、全体符号のFCS処理を行なわせるようにして、
エラーシンドローム演算を行い、0にならない場合誤り
ありと判定し、すべての組合せ処理を順番に行なわせる
ようにした符号誤り訂正方法とした。
According to a fifth aspect of the present invention, the code error correction method uses the FC in the restoration data combination process and the FCS process.
If there is no error in the first correction candidate in the S process, the normal reception state is set. If there is an error, a combination process is used to efficiently create a plurality of combinations of data having restored data other than the first correction candidate. Therefore, the FCS syndrome of the data portion (restored data) of each block code is selected so that the error syndrome (FCS syndrome) due to the FCS processing of these restored data is selected only once.
Nesting processing is made with a code word number, a pointer indicating the order of the code words, and an error syndrome of the whole data calculated so far, and the FCS syndrome of the restored data is 1
In the case of only one, the processing is advanced to the next, and the FCS processing is performed only in other cases, but instead of performing the FCS processing of the entire code, the restored data of the first candidate of the specific block code for the already-calculated FCS processing. FCS processing is performed by excluding the code of the specific block from the overall code by creating the logical sum of the FCS syndromes of the above, and the FCS syndrome of the restored data other than the first candidate for the error syndrome excluding the specific block code. Indicated by the pointer, and the decoded data is subjected to an exclusive OR operation (XOR) to perform the FCS processing of the entire code.
An error syndrome calculation is performed, and when it does not become 0, it is determined that there is an error, and all the combination processing is performed in order.

【0014】請求項6の発明に係る符号誤り訂正方法は
グループ分けしたエラーパターンは、100%訂正を行
い、それ以外の誤りに対する誤訂正に対しては、第2の
FCS処理における第1のFCS処理とは異なる誤り検
出符号を付加し、上記第1のFCS処理における正受信
状態である各復元データのFCSエラーシンドロームに
対するXOR演算結果=0が得られた場合に、あらため
てこの時の各復元データと第2のFCS受信語から誤り
訂正された複数の復元データの間で、FCS処理を行
い、この演算結果が0の場合には、第1のFCS処理に
おいて、見逃し誤りが無かったと判定する符号誤り訂正
方法とした。
In the code error correction method according to the sixth aspect of the present invention, the error patterns divided into groups are corrected by 100%, and the erroneous correction for other errors is performed by the first FCS in the second FCS processing. When an error detection code different from that used in the processing is added and an XOR operation result = 0 for the FCS error syndrome of each restored data in the normal reception state in the first FCS processing described above is obtained, each restored data at this time And a second FCS received word, the FCS processing is performed between a plurality of restored data that has been error-corrected, and if this operation result is 0, a code that determines that there was no missed error in the first FCS processing. The error correction method was used.

【0015】[0015]

【作用】請求項1の発明においては、使用回線のエラー
パターンに適合した訂正効率の良い訂正対象のエラーパ
ターンに分類し、それらすべてのエラーシンドロームを
テーブル化し、エラーシンドローム別にエラーパターン
テーブル化する。各エラーシンドローム別に1以上のエ
ラーパターン化することにより上記S3−2の「訂正不
可」状態を無くし、「訂正可」状態S3−1を1以上と
することができる。
According to the first aspect of the present invention, the error patterns to be corrected are classified into error patterns having a high correction efficiency and adapted to the error patterns of the lines used, all the error syndromes are tabulated, and an error pattern table is created for each error syndrome. By forming one or more error patterns for each error syndrome, the "uncorrectable" state of S3-2 can be eliminated and the "correctable" state S3-1 can be set to one or more.

【0016】請求項2の発明においては、復元データは
フレームチェックシーケンス(FCS)処理による全体
受信データの誤り検知処理により「誤りなし」の状態に
なるまで順次訂正可データを選択して処理するがすべて
の訂正可データに対して誤りなしの状態にならない場合
のみ最終的に不受信とすることに高品質の「正受信」状
態を保つことができる。
According to the second aspect of the present invention, the restored data is sequentially processed by selecting the correctable data until the state of "no error" is obtained by the error detection process of the entire received data by the frame check sequence (FCS) process. It is possible to maintain a high-quality "normal reception" state by finally making it non-reception only when there is no error-free state for all correctable data.

【0017】請求項3の発明においては符号誤り訂正方
法は、実回線の特性にあった効率の良いエラーパターン
を選択でき、あらかじめ作成されたエラーパターンシン
ドローム別エラーテーブルにより容易に訂正できる。
According to the third aspect of the present invention, the code error correction method can select an efficient error pattern that matches the characteristics of the actual line, and can easily correct the error pattern according to the error table for each error pattern syndrome.

【0018】請求項4の発明においては必要で十分な多
くの誤り訂正候補を作成でき、簡単な処理で符号訂正が
可能である。エラーパターンシンドローム別エラーテー
ブルをROM化することにより、特別のハードウェアに
よらず一般的なマイコン処理等で十分実現できる。
In the invention of claim 4, a large number of necessary and sufficient error correction candidates can be created, and the code can be corrected by a simple process. By implementing the error pattern syndrome-specific error table in ROM, it can be sufficiently realized by general microcomputer processing and the like without depending on special hardware.

【0019】請求項5の発明においてはすべての組合せ
処理を行うので、「誤訂正」を極限まで少なくし、「正
訂正」を増やすことができる。
According to the fifth aspect of the invention, since all the combination processing is performed, the "erroneous correction" can be minimized and the "correction correction" can be increased.

【0020】請求項6の発明においては第1のFCS処
理に追加して第2のFCS処理を行うので、高信頼度の
誤り訂正が可能となる。
In the sixth aspect of the invention, since the second FCS processing is performed in addition to the first FCS processing, highly reliable error correction is possible.

【0021】[0021]

【実施例】【Example】

実施例1(請求項1に対応). 本発明の実施例1を図に基づいて説明する。誤り訂正符
号の1例として、データ16ビット,チェックビット1
1ビット(合計27ビット長符号)のバースト誤り訂正
符号の場合、5ビットまでのバースト長の誤り訂正能力
のとき、符号長,データ長,訂正可能なバースト長を形
式(27,16,5)と表わすようにする。この符号
(27,16,5)を使用した例について、バーストエ
ラーおよびランダムエラーの訂正テーブルをROM11
に作成し、例えばROM11内のデータとして使用し、
このROMテーブルでマイコン処理においてエラー訂正
する方法が特開昭63−286026号公報に示されて
いる。
Example 1 (corresponding to claim 1). A first embodiment of the present invention will be described with reference to the drawings. As an example of the error correction code, data 16 bits, check bit 1
In the case of a burst error correction code of 1 bit (total 27-bit length code), when the error correction ability of the burst length up to 5 bits, the code length, the data length, and the correctable burst length are in the format (27, 16, 5). Will be expressed as For the example using this code (27, 16, 5), the correction table of the burst error and the random error is shown in the ROM 11
Created in, and used as data in ROM 11,
A method for error correction in microcomputer processing using this ROM table is disclosed in Japanese Patent Application Laid-Open No. 63-286026.

【0022】この発明はこの方法を更に延長し、訂正能
力を拡大し処理を容易にするものである。まず送信符号
の作成時における符号訂正処理の基本的な考え方を説明
する。符号語F(X)を F(X)=(fn-1 ,fn-2 ……f1 ,f0 ) ただしfn-1 ,fn-2 ……f1 ,f0 は”0”,また
は”1”の値、と表現するとき多項式表現では、F
(X)=fn-1 ・Xn-1 +fn-2 ・Xn-2 +……+f1
・X1 +f0 ・X0 となる。同様に送信データD
(X),チェックビットR(X)は、 D(X)=dk-1 ・Xk-1 +dk-2 ・Xk-2 +……+d
1 ・X1 +d0 ・X0 R(X)=rn-k-1 ・Xn-k-1 +rn-k-2 ・Xn-k-2
・・・・+r1 ・X1 +r0・X0 と表現される。巡回符号
における生成多項式G(X)は G(X)=Xn-k +gn-k-1 ・Xn-k-1 +……+g1
1 +g0 ・X0 と表現される。これらの関係を剰余の定理の形で表現す
れば符号語の式は下記式(1)のように
The present invention extends this method further, expanding the correction capability and facilitating the processing. First, the basic concept of code correction processing when creating a transmission code will be described. The code word F (X) is represented by F (X) = (f n-1 , f n-2, ... F 1 , f 0 ) where f n-1 , f n-2, ... F 1 , f 0 are "0". When expressed as "," or a value of "1", in polynomial expression, F
(X) = f n-1 · X n-1 + f n-2 · X n-2 + ... + f 1
・ X 1 + f 0・ X 0 . Similarly, send data D
(X), the check bit R (X) is D (X) = d k-1 · X k-1 + d k-2 · X k-2 + ... + d
1 · X 1 + d 0 · X 0 R (X) = r nk-1 · X nk-1 + r nk-2 · X nk-2 +
... is expressed as + r 1 · X 1 + r 0 · X 0 . The generator polynomial G (X) in the cyclic code is G (X) = X nk + g nk-1 · X nk-1 + ... + g 1 ·
It is expressed as X 1 + g 0 · X 0 . If these relationships are expressed in the form of the remainder theorem, the codeword equation is as shown in the following equation (1).

【0023】 F(X)=G(X)・Q(X) =D(X)・Xn-k +R(X) (1) (F(α)=0ただしαはG(X)の根)となる。意味
はデータD(X)・Xn-k に剰余R(X)を加えたもの
は符号語F(X)であり、F(X)は生成多項式G
(X)で割り切れる。その時の商多項式がQ(X)であ
る。またD(X)・Xn-k をG(X)で割ると剰余R
(X)ができる。ただしガロア集合(MOD2)におけ
る演算であり、代数演算が可能である。
F (X) = G (X) · Q (X) = D (X) · X nk + R (X) (1) (F (α) = 0, where α is the root of G (X)) Become. The meaning is the code word F (X) obtained by adding the remainder R (X) to the data D (X) · X nk , and F (X) is the generator polynomial G.
Dividable by (X). The quotient polynomial at that time is Q (X). If D (X) · X nk is divided by G (X), the remainder R
(X) can be done. However, since it is an operation in the Galois set (MOD2), algebraic operation is possible.

【0024】次に、受信符号処理時における符号訂正処
理の考え方を説明する。上記(1)式は送信過程である
とすると、受信過程においてはエラー多項式E(X)が
上記(1)式に加算され、受信多項式はJ(X)=F
(X)+E(X)となる。(1)式の表現において、 J(α)=F(α)+E(α),F(α)=0だから =E(α) (2)
Next, the concept of the code correction process during the reception code process will be described. If the above equation (1) is a transmitting process, the error polynomial E (X) is added to the above equation (1) during the receiving process, and the receiving polynomial is J (X) = F.
(X) + E (X). In the expression of the expression (1), since J (α) = F (α) + E (α) and F (α) = 0, = E (α) (2)

【0025】この意味は、送信時の符号語F(X)と剰
余R(X)の関係は、受信時におけるエラー多項式E
(X)とエラーシンドロームR(X)の関係であること
を表わしている。受信多項式J(X)を生成多項式G
(X)で割る操作は、エラーパターンE(X)を生成多
項式G(X)で割る操作と同一である。本発明は実回線
に適合した訂正すべき符号誤りの分類を行いその分類に
もとづきエラーパターン{E0 (X)}と対応する剰余
(エラーシンドローム){R0 (X)}の集合を演算す
る。各剰余{R0 (X)}を順にならべたテーブルを作
り、受信処理後の誤り検知処理において、エラーシンド
ロームR0 (X)が得られたらこれに対するエラー項E
0 (X)をテーブルからもって来てただちに修正するよ
うにするものである。
This means that the relationship between the code word F (X) and the remainder R (X) at the time of transmission is the error polynomial E at the time of reception.
(X) and the error syndrome R (X). Generate the receiving polynomial J (X) and the generating polynomial G
The operation of dividing by (X) is the same as the operation of dividing the error pattern E (X) by the generator polynomial G (X). The present invention classifies code errors to be corrected which are suitable for an actual line, and calculates a set of residuals (error syndromes) {R 0 (X)} corresponding to an error pattern {E 0 (X)} based on the classification. . A table in which the respective remainders {R 0 (X)} are arranged in order is created, and when the error syndrome R 0 (X) is obtained in the error detection process after the reception process, the error term E for this is generated.
0 (X) is brought from the table and corrected immediately.

【0026】本発明では、訂正符号の本来の訂正能力を
拡大すると同時に、従来の「訂正不可」S3−2の状態
を無くすことができる。本発明を更に詳しく説明する。
以下の説明は、符号長27,データ長16,訂正可能な
バースト長5ビット、形式(27,16,5)のバース
トエラー訂正符号に関して具体例を示すが、他の形式の
符号に関しても成立する。まず、図1、図2において、
(27,16,5)符号に対するエラーパターンの分類
方法、エラーパターン分類例1を説明し、後にエラーパ
ターン分類例2を説明する。単一バーストエラーについ
て、例えば5ビットバーストエラーについて説明する。
実回線の今訂正すべきエラーパターンを、下記のように
分類する。
According to the present invention, the original correction capability of the correction code can be expanded, and at the same time, the conventional "uncorrectable" state of S3-2 can be eliminated. The present invention will be described in more detail.
In the following description, a specific example will be given for a burst length error correction code having a code length of 27, a data length of 16, a correctable burst length of 5 bits, and a format (27, 16, 5), but is also valid for codes of other formats. . First, in FIG. 1 and FIG.
The error pattern classification method and the error pattern classification example 1 for the (27, 16, 5) code will be described, and the error pattern classification example 2 will be described later. A single burst error, for example, a 5-bit burst error will be described.
The error patterns to be corrected on the actual line are classified as follows.

【0027】5ビットバーストエラー(本来の訂正符
号能力) 2ビットランダムエラー 3ビットランダムエラー 4ビットランダムエラー このようにしたとき、図1において27ビット中のすべ
ての組合せの中で、各円中の数字が、上記エラーパター
ン〜に該当する各組合せの数である(重複部分はカ
ウントしていない)。エラーパターンの数字〜は優
先順位に従って番号をつけた。これらのエラーパターン
のすべてのエラーシンドロームを演算し、エラーシンド
ロームの順にならべ直したテーブルを、図3のエラーパ
ターン訂正テーブルに示す。
5-bit burst error (original correction code ability) 2-bit random error 3-bit random error 4-bit random error In this way, in all combinations of 27 bits in FIG. The numbers are the numbers of the respective combinations corresponding to the above error patterns (the overlapping part is not counted). Numbers in the error pattern are numbered according to priority. A table in which all error syndromes of these error patterns are calculated and rearranged in the order of the error syndromes is shown in the error pattern correction table of FIG.

【0028】図3において、生成多項式として、G
(X)=(X10+X8 +X7 +X5 +X4 +X3 +1)
(X+1)を使用、SYND(シンドローム)欄は11
ビットのエラーシンドロームを3桁のヘキサデシマル
(HEX)表現したものである。第1から第4の訂正欄
のうちEPは訂正すべきデータ16ビットを、Rは上記
{R0 (X)}に対応し訂正すべき剰余ビット11ビッ
トを、TPの数字1,3,2,4は訂正パターンのうち
上記5ビットバーストエラー〜4ビットランダムエ
ラーに夫々対応する。第1訂正欄には上記5ビットバ
ーストエラー〜4ビットランダムエラーの優先順位の
ものを配置とすることにより図3ではすべて表現できな
いが、本来の訂正能力である5ビットバーストエラー
は第1訂正部分にすべて含まれる。また4ビットラン
ダムエラーまでのエラーパターンにおいて、すべてのエ
ラーシンドロームにおいて、第1訂正欄はすべて訂正す
べきデータが埋められる。図3では第4訂正欄まで表示
し、第4候補までを紙面の制限上表示を行っている。
In FIG. 3, G is a generator polynomial.
(X) = (X 10 + X 8 + X 7 + X 5 + X 4 + X 3 +1)
(X + 1) is used, and the SYND (Syndrome) column is 11
It is a 3-digit hexadecimal (HEX) representation of the bit error syndrome. In the first to fourth correction columns, EP is 16 bits of data to be corrected, R is 11 bits of residual bits to be corrected corresponding to {R 0 (X)}, and TP numbers 1, 3, 2 , 4 correspond to the 5-bit burst error to 4-bit random error in the correction pattern, respectively. All of the 5 bits burst error to the 4 bits random error cannot be expressed in FIG. 3 by arranging the 5 bits burst error to the 4 bits random error in the first correction column. Are all included in. Further, in the error pattern up to 4-bit random error, the data to be corrected is filled in all the first correction columns in all the error syndromes. In FIG. 3, up to the fourth correction column is displayed, and up to the fourth candidate are displayed due to space limitations.

【0029】本発明は上記図3における第1訂正欄を使
用して訂正処理する方法を図15の差異と図5において
説明する。本発明における符号誤り訂正過程を図5に示
す。受信処理、誤り検知処理までは従来の図15と同一
である。ここで「誤りあり」S2−2の状態から誤り訂
正処理過程に移ると上記図3の第1訂正欄を使用すれば
エラーシンドロームに対応して必らずエラーパターンが
1つ存在する為、訂正不可がなくなる。次に訂正すべき
エラーパターンが分かり、正訂正S4−1誤訂正S4−
2はあるものの、復元データS5が再現できる。
The present invention will be explained with reference to the difference between FIG. 15 and FIG. 5 as to the method of correction processing using the first correction column in FIG. The code error correction process in the present invention is shown in FIG. The process up to the reception process and the error detection process is the same as in FIG. Here, when the state of "error" S2-2 is shifted to the error correction processing step, if the first correction column of FIG. 3 is used, there is always one error pattern corresponding to the error syndrome. Impossible goes away. Next, the error pattern to be corrected is known, and the correct correction S4-1 and the incorrect correction S4- are performed.
Although there is 2, the restored data S5 can be reproduced.

【0030】実施例2(請求項2に対応). 本発明の実施例2を図4を用いて更に詳しく説明する。
上記図1に対する上記5ビットバーストエラー〜4
ビットランダムエラーのエラーパターンをすべて訂正す
べきエラーパターンとして選択した場合がこのエラーパ
ターン分類例1であり、そのときのエラーパターン訂正
テーブルが図3である。この場合訂正すべき状態は第1
訂正,第2訂正……第a訂正の各欄にデータ作成するこ
とができる。(図3では第4訂正の候補までを紙面の部
分上表示している。)これら第1訂正〜第a訂正は、図
6に示す多数の「訂正可」状態S3−1〜S3−aに対
応している。このエラーパターン訂正テーブル例1によ
り処理すれば、符号誤り訂正対象である多数の復元デー
タS5−1〜S5−aを夫々生じる。
Embodiment 2 (corresponding to claim 2). The second embodiment of the present invention will be described in more detail with reference to FIG.
5 bit burst error to FIG. 1 to 4
This error pattern classification example 1 is a case in which all error patterns of bit random errors are selected as error patterns to be corrected, and the error pattern correction table at that time is shown in FIG. In this case, the condition to be corrected is the first
Correction, 2nd correction ... Data can be created in each column of the a-th correction. (In FIG. 3, the candidates for the fourth correction are displayed on the paper surface.) The first correction to the a-th correction are performed in a number of “correctable” states S3-1 to S3-a shown in FIG. It corresponds. If processing is performed according to this error pattern correction table example 1, a large number of restored data S5-1 to S5-a that are the object of code error correction are generated respectively.

【0031】これらに対して、順次全体の訂正候補を並
べて順に検証して行く方法であるフレームチェックシー
ケンス(FCS)処理により、上記復元データS5−1
〜S5−aのエラーシンドロームを演算する。FCS処
理による生成多項式で割り切れれば「正受信」S7−1
と判定する。割り切れなければ「復元データ選択」S6
による次の復元データの選択とFCS処理を行い、最後
の復元データS5−aのFCS処理まで割り切れなけれ
ば「不受信」S7−3と判定する。かくして上記図1の
分数例1における5ビットバーストエラー〜4ビッ
トランダムエラーのエラーパターンを100%訂正でき
る。
With respect to these, by the frame check sequence (FCS) processing, which is a method of sequentially arranging the entire correction candidates and sequentially verifying them, the restored data S5-1 is obtained.
Calculate the error syndrome of S5-a. If it is divisible by the generator polynomial by the FCS processing, "correct reception" S7-1
To determine. If it is not divisible, select "restoration data" S6
The next restored data is selected and the FCS process is performed, and if the FCS process of the last restored data S5-a is not divisible, it is determined as "non-reception" S7-3. Thus, the error pattern of the 5-bit burst error to the 4-bit random error in Fractional Example 1 of FIG. 1 can be corrected 100%.

【0032】実施例3(請求項3に対応). 本発明の実施例3を図に基づいて説明する。図7では本
実施例において符号語が複数1〜n+1存在する場合符
号誤り訂正処理(図5)と上記図6のFCS処理を組合
せ処理を行うことにより直ちに、上記の復元データ選択
S6なしで、誤り訂正およびFCS処理がなされること
を示す。
Embodiment 3 (corresponding to claim 3). A third embodiment of the present invention will be described with reference to the drawings. In FIG. 7, when there are a plurality of code words 1 to n + 1 in the present embodiment, the code error correction process (FIG. 5) and the FCS process of FIG. 6 are combined to immediately perform the restoration data selection S6. Indicates that error correction and FCS processing will be performed.

【0033】各符号語W1 〜Wn+1 の復元データS5−
1〜S5−nは、必らず1つずつ決定される。FCS処
理におけるエラーシンドローム演算により直ちに「正受
信」S7−1および「不受信」S7−3を判定できる。
ただしWn+1 はFCSチェックビットの符号語とする。
次に他のエラーパターンについて以下詳述する。
[0033] each codeword W 1 ~W n + 1 of the restored data S5-
1 to S5-n are necessarily determined one by one. The "correct reception" S7-1 and "non-reception" S7-3 can be immediately determined by the error syndrome calculation in the FCS processing.
However, W n + 1 is a code word of the FCS check bit.
Next, other error patterns will be described in detail below.

【0034】図2に他のエラーパターンの例である、形
式(27,16,5)、符号に対する他のエラーパター
ン分類例2を示す。実回線の訂正すべきエラーパターン
を 5ビットバーストエラー(本来の訂正符号能力) 1ビット+5ビットバーストエラー(先に1ビットラ
ンダムエラーを生じる) 5ビットバースト+1ビットエラー(後に1ビットラ
ンダムエラーを生じる) とするとき、図2中の円内の数値が訂正すべきエラーパ
ターンの組合せ数である(重複部分はカウントしていな
い)。エラーパターンの数字〜は優先順位に番号を
付けたものである。
FIG. 2 shows another error pattern classification example 2 for formats (27, 16, 5) and codes, which is an example of another error pattern. The error pattern to be corrected on the actual line is 5 bit burst error (original correction code capability) 1 bit + 5 bit burst error (1 bit random error occurs first) 5 bit burst + 1 bit error (1 bit random error occurs later) ), The numerical value in the circle in FIG. 2 is the number of combinations of error patterns to be corrected (the overlapping portion is not counted). The numbers ~ in the error pattern are numbers of priorities.

【0035】これらのエラーパターンのすべてをエラー
シンドロームを演算し、エラーシンドロームの順になら
べ直したテーブルを図4のエラーパターン訂正テーブル
例2に示す。図4では第5訂正欄までを、紙面の制限上
表示している。図4において生成多項式として、G
(X)=(X10+X8 +X7 +X5 +X4 +X3 +1)
(X+1)を使用、SYND(シンドローム)欄は11
ビットのエラーシンドロームを13桁のヘキサデシマル
(HEX)表現したものである。第1から第5の訂正欄
のうちEPは、訂正すべきデータ16ビットを、Rは上
記{R0 (X)}に対応し、訂正すべき剰余ビット11
を、TPの数字1,2,3は訂正パターンのうち上記
5ビットバーストエラー〜5ビットバースト+1ビッ
トエラーに夫々対応している。
An error pattern correction table example 2 in FIG. 4 shows a table in which the error syndromes are calculated for all of these error patterns and the error syndromes are rearranged in the order. In FIG. 4, up to the fifth correction column is displayed due to space limitations. As a generator polynomial in FIG.
(X) = (X 10 + X 8 + X 7 + X 5 + X 4 + X 3 +1)
(X + 1) is used, and the SYND (Syndrome) column is 11
It is a 13-digit hexadecimal (HEX) representation of the bit error syndrome. In the first to fifth correction columns, EP corresponds to 16 bits of data to be corrected, R corresponds to {R 0 (X)}, and the surplus bits 11 to be corrected
The numbers 1, 2, and 3 of TP correspond to the above 5 bit burst error to 5 bit burst + 1 bit error in the correction pattern, respectively.

【0036】この場合もすべてのエラーシンドロームに
1つ以上のエラーパターンが存在し、第1訂正欄はすべ
て訂正すべきデータが埋められる。従って従来の「訂正
不可」S3−2の状態を無くすことができる。訂正処理
方法およびその訂正能力は図6のFCS処理に同じであ
る。即ち、これら第1訂正〜第a訂正は、図6に示す多
数の「訂正可」状態S3−1〜S3−aに対応してい
る。このエラーパターン訂正テーブル例2により処理す
れば、符号誤り訂正対象である多数の復元データはS5
−1〜S5−aを夫々生じる。
Also in this case, one or more error patterns exist in all error syndromes, and the first correction column is filled with the data to be corrected. Therefore, the state of the conventional "uncorrectable" S3-2 can be eliminated. The correction processing method and its correction capability are the same as those of the FCS processing of FIG. That is, the first correction to the a-th correction correspond to a large number of “correctable” states S3-1 to S3-a shown in FIG. If processing is performed according to this error pattern correction table example 2, a large number of restored data subject to code error correction will be S5.
-1 to S5-a are generated respectively.

【0037】これらに対して、順次全体のフレームチェ
ックシーケンス(FCS)処理により、上記復元データ
S5−1〜S5−aのエラーシンドロームを演算する。
FCS処理による生成多項式で割り切れれば「正受信」
S7−1と判定する。割り切れなければ「復元データ選
択」S6による次の復元データの選択とFCS処理を行
い、最後の復元データS5−aのFCS処理まで割り切
れなければ「不受信」S7−3と判定する。かくして上
記図3の分数例2における5ビットバーストエラー〜
5ビットバースト+1ビットエラーのエラーパターン
を100%訂正できる。
For these, the error syndromes of the restored data S5-1 to S5-a are calculated by sequentially performing the entire frame check sequence (FCS) process.
"Normal reception" if divisible by the generator polynomial by FCS processing
It is determined to be S7-1. If it is not divisible, the next restoration data is selected and FCS processing is performed by "restoration data selection" S6. If it is not divisible until the FCS processing of the last restoration data S5-a, "non-reception" S7-3 is determined. Thus, the 5-bit burst error in Fractional Example 2 of FIG.
An error pattern of 5 bit burst + 1 bit error can be corrected 100%.

【0038】この結果本来の符号能力である5ビット
バーストエラー訂正分368通りを、チェックビットの
総組合せ数である211(=2048)通りまで拡大でき
る。同様に、図7では本実施例において符号語が複数1
〜n+1存在する場合、符号誤り訂正処理(図5)と上
記図6のFCS処理を組合せ処理を行うことにより直ち
に、上記の復元データ選択S6なしで、誤り訂正および
FCS処理がなされることを示す。
As a result, it is possible to expand the 368 kinds of 5-bit burst error correction, which is the original coding ability, to 2 11 (= 2048) kinds, which is the total number of check bit combinations. Similarly, in FIG. 7, a plurality of code words 1
If ~ n + 1 exists, it indicates that the error correction and the FCS processing are immediately performed by performing the combination processing of the code error correction processing (FIG. 5) and the FCS processing of FIG. 6 without the above-mentioned restored data selection S6. .

【0039】一方、複数の符号語W1 ,W2 ,Wn+1
(ただしWn+1 はフレームチェックシーケンス(FC
S))に対して、上記誤り訂正処理された復元データは
各々唯一つ決まり、それらをS5−1〜S5−(n+
1)とするとFCS処理において各々を排他的論理和
(XOR)演算すると全体のフレーム(W1 〜Wn+1
の誤り検知処理ができその結果(FCSのエラーシンド
ローム)が0の場合、正受信S7−1となる。零でない
場合、「不受信」S7−3となり、上記「誤訂正」S4
−2は大部分この状態にできる。誤受信S7−2は結果
として正受信S7−1に含まれて符号誤り訂正処理にお
いては判別できないが、その数量は僅かである。
On the other hand, a plurality of code words W 1 , W 2 , W n + 1
( Wn + 1 is the frame check sequence (FC
S)), the restored data that has been subjected to the error correction processing is uniquely determined, and these are restored to S5-1 to S5- (n +
If it is set to 1), an exclusive OR (XOR) operation is performed on each frame in the FCS processing, and the entire frame (W 1 to W n + 1 )
If the error detection processing of (1) is successful and the result (FCS error syndrome) is 0, the normal reception is S7-1. If it is not zero, it becomes "non-reception" S7-3, and the above "wrong correction" S4
Most of -2 can be in this state. The erroneous reception S7-2 is included in the correct reception S7-1 as a result and cannot be identified in the code error correction process, but the number thereof is small.

【0040】実施例4(請求項4に対応). 本発明の実施例4を図に基づいて説明する。図6に示す
ような図3の例1および図4の例2に示すようなすべて
のエラーパターン訂正を同時に対象にし、複数の符号語
の符号誤り訂正過程を図8に示す。この場合の復元デー
タの数は、各符号語W1 ,W2 ……Wn+1 に対応してa
1 ,a2 ……an+1 とし、FCS処理すべき訂正データ
の組合せの数はa1 ・a2 ・an+1 となり、符号語の数
に伴い莫大なものとなる。
Embodiment 4 (corresponding to claim 4). A fourth embodiment of the present invention will be described with reference to the drawings. FIG. 8 shows a code error correction process for a plurality of code words, simultaneously targeting all error pattern corrections as shown in Example 1 of FIG. 3 and Example 2 of FIG. 4 as shown in FIG. The number of restored data in this case is a corresponding to each code word W 1 , W 2 ... W n + 1.
1 , a 2 ... A n + 1 , the number of combinations of correction data to be subjected to FCS processing is a 1 · a 2 · a n + 1 , which is enormous with the number of code words.

【0041】これに対してすべての復元データのFCS
処理におけるエラーシンドローム(以後、FCSシンド
ロームと略す)1回ずつFCS処理へ渡し、効率良く復
元データ組合せを行う方法を図9のフロー図に示す。図
9の本実施例における復元データ組合せ処理とFCS処
理フローに示すように、符号語W1 からWn+1 までの訂
正第1候補、すなわち誤りなし判定のものか、訂正すべ
きエラーパターン訂正テーブル図3,4の第1訂正欄に
より訂正されたものをデータD1 (1),D2(1)…
…Dn+1 (1)とする。これらのFCSシンドロームR
1 (1),R2(1)……Rn+1 (1)のFCS処理X
OR1 はXOR1 =R1 (1)+R2 (1)……+R
n+1 (1)となり、「処理」P11で行われる。FCS
処理結果に通し番号x’を付加して以後の処理が判別し
やすいように図示した。
On the other hand, the FCS of all the restored data
A flow chart of FIG. 9 shows a method of transferring error syndromes in the processing (hereinafter, abbreviated as FCS syndrome) once to the FCS processing to efficiently perform restoration data combination. As shown in the restored data combination processing and FCS processing flow in this embodiment of FIG. 9, the first correction candidate of the code words W 1 to W n + 1 , that is, the error-free judgment, or the error pattern correction to be corrected. The data corrected by the first correction column in FIGS. 3 and 4 are data D 1 (1), D 2 (1) ...
... D n + 1 (1). These FCS Syndrome R
FCS processing X of 1 (1), R 2 (1) ... R n + 1 (1)
OR 1 is XOR 1 = R 1 (1) + R 2 (1) …… + R
It becomes n + 1 (1) and is performed in "Processing" P11. FCS
A serial number x'is added to the processing result so that the subsequent processing can be easily identified.

【0042】処理の結果「判定処理」P12において、
XOR1 が0の場合FCS処理は完了し、図8の正受信
S7−1の状態となる。この場合図8の誤受信S7−2
になるケースは確率的に非常に低いことが分かってい
る。一方「処理」P12において0でない場合、「処
理」P13に進む。ここでは符号語番号W(=1,2…
…n+1)の過去のFCS処理番号x(=1,2……x
max )および各符号語Diの復元データ数ai に対する
ポインタP(=1,2……ai )の入れ子処理により排
他的論理和演算を効率良く行うことができることを示
す。
As a result of the processing "determination processing" P12,
When XOR 1 is 0, the FCS processing is completed, and the state is the normal reception S7-1 of FIG. In this case, erroneous reception S7-2 in FIG.
It is known that the case of is extremely low in probability. On the other hand, if it is not 0 in "processing" P12, the process proceeds to "processing" P13. Here, the code word number W (= 1, 2, ...
... n + 1) past FCS processing number x (= 1, 2 ... x
By nesting for the max) and each code word D i pointer P for restoring data number a i of (= 1,2 ...... a i) indicating that the exclusive OR operation can be efficiently performed.

【0043】実施例5(請求項5に対応). 本発明の実施例5を図9に基づいて説明する。まず、符
号語番号の初期化を「処理」P13で行い、「処理」P
14で1加算される。「判定処理」P15において最大
符号語数n+1を起えた場合には*2に従いすべての処
理は終了しこの状態は不受信S7−3となる。一方Wが
n+1を起えない場合、「処理」P16において過去の
FCS処理番号xの初期化が行なわれ、「処理」P17
で1加算される。「判定処理」P18において、過去の
最大FCS処理数xmax を起えた場合には、xmax にF
CS処理の現状の最大処理数であるx’を代入し、次の
符号語の処理へ移るために「処理」P14へ戻る。
Embodiment 5 (corresponding to claim 5). A fifth embodiment of the present invention will be described with reference to FIG. First, the initialization of the code word number is performed in "Processing" P13, and then "Processing" P13.
1 is added at 14. When the maximum number of codewords n + 1 is generated in the "determination process" P15, all the processes are completed according to * 2, and this state is the non-reception S7-3. On the other hand, if W cannot occur n + 1, the past FCS process number x is initialized in "process" P16, and "process" P17.
Is incremented by 1. In the “judgment process” P18, when the maximum number of past FCS processes x max has occurred, F is added to x max .
Substituting the current maximum number of CS processes, x ', and returns to "Process" P14 to move to the process of the next codeword.

【0044】xmax を起えない場合、「処理」P20に
おいて、ポインタPの初期化が行なわれ、「処理」P2
1で1加算される。「判定処理」P22は、符号語Wの
復元データが1つのみである場合((P=1)AND
P+1>aw となり)、この場合には復元データの選択
処理は不要である為「処理」P14へ戻り、次の符号語
が選択される。「判定処理」P22において、複数の復
元データが認められる場合は、「判定処理」P23へ移
る、そこでポインタPがその符号語の最大復元データa
w を起えない場合には、*1に従って以降のFCS処理
が行なわれる。起えた場合には、「処理」P17へ戻
り、次のFCS処理結果に対して順次処理が行なわれ
る。
When x max cannot be generated, the pointer P is initialized in the "process" P20, and the "process" P2 is executed.
1 is incremented by 1. The “determination process” P22 is performed when there is only one restored data of the codeword W ((P = 1) AND
P + 1> aw )). In this case, since the restoration data selection process is unnecessary, the process returns to P14, and the next code word is selected. In the "judgment process" P22, when a plurality of restored data are recognized, the process moves to the "judgment process" P23, where the pointer P indicates the maximum restored data a of the code word.
If w cannot occur, the subsequent FCS processing is performed according to * 1. If it occurs, the process returns to "Processing" P17, and the next FCS processing result is sequentially processed.

【0045】*1に従った「判定処理」P24におい
て、ポインタP=1の場合、x番目のFCS処理結果で
あるXORx はすでに計算されている。更にこれにこの
符号語の特定ブロックとしてまず第1訂正候補Dw
(1)のFCSシンドロームRw (1)を論理和するこ
とにより、「処理」P25においてこの符号語を除いた
FCS処理結果XORx (−Rw (1))が得られる。
次のポインタP1から「処理」P26に示すようにXO
x (−Rw (1))+Rw (P)を行うことによりF
CS処理である符号語W1 〜Wn+1 のn個の復元データ
のFCSシンドロームの排他的論理和を行うことと、同
じ結果が得られる。
In the "judgment process" P24 according to * 1, when the pointer P = 1, the x-th FCS process result XOR x has already been calculated. Further, as a specific block of this code word, the first correction candidate D w
By FORing the FCS syndrome R w (1) of (1), the FCS processing result XOR x (−R w (1)) excluding this code word is obtained in “processing” P25.
XO from the next pointer P1 to "Process" P26
By performing R x (−R w (1)) + R w (P), F
The same result can be obtained by performing the exclusive OR of the FCS syndrome of the n restored data of the code words W 1 to W n + 1 which is the CS process.

【0046】この処理結果XORX が「判定処理」P2
7において、0である場合は、誤りなしとの判定になり
処理が完了し、正受信S7−1状態となる。ここで0で
ない場合は、処理P28でXORx データをx’の係数
を付加して「処理」P21の次のポインタへ戻る。この
ようにして、FCS処理した結果を順次使用しながら、
新たな復元データは一回のみ取り込みすべての復元デー
タの組合せを作ることができる。図10は、この図9の
ような組合せ処理により、複数の復元データとFCS演
算が更新されて行く一過程を示す。
This processing result XOR X is "determination processing" P2
If it is 0 in 7, it is determined that there is no error, the processing is completed, and the normal reception S7-1 state is set. If it is not 0, the XOR x data is added with the coefficient of x ′ in the process P28, and the process returns to the pointer next to the “process” P21. In this way, while sequentially using the results of FCS processing,
New restored data can be captured only once to create a combination of all restored data. FIG. 10 shows a process in which a plurality of restored data and FCS calculation are updated by the combination processing as shown in FIG.

【0047】実施例6(請求項6に対応). 本発明の実施例6を図に基づいて説明する。図11に本
発明の符号語の構成と本発明の誤り訂正時に伴う見逃し
誤り率の能力低下方法を図示する。本発明の符号語構成
は図中、送信すべきデータを一定長のブロックに分けて
符号語1〜nにおけるデータD1 〜Dn とに分ける。こ
れに対して誤り訂正用生成多項式GFECで割算した剰余
がCRC1 〜CRCn に夫々付加される。一方上記D
1 ,D2 ……Dn に対する第1の誤り検出用符号の生成
多項式GEDαにおける剰余をFCSαとし、これに対す
る上記GFEC の剰余はCRCn+1 とする。
Embodiment 6 (corresponding to claim 6). A sixth embodiment of the present invention will be described with reference to the drawings. FIG. 11 illustrates the structure of the code word of the present invention and the method of reducing the ability of the missed error rate accompanying the error correction of the present invention. In the code word structure of the present invention, data to be transmitted is divided into blocks of a fixed length and divided into data D 1 to D n in code words 1 to n in the figure. On the other hand, the remainders divided by the error-correction generator polynomial G FEC are added to CRC 1 to CRC n , respectively. On the other hand, the above D
The remainder in the generator polynomial G ED α of the first error detection code for 1 , D 2 ... D n is FCSα, and the remainder of G FEC for this is CRC n + 1 .

【0048】以上は送信時の符号構成法である。一方受
信時には。受信データ(D’1 ,CRC’1 )〜(D’
n ,CRC’n ),(FCS’α,CRC’n+1 )の各
々の各語に対して上記生成多項式GFEC の割算剰余を算
出するが、剰余が0の場合は誤りなし判定、剰余がある
場合には、上記エラーパターン訂正テーブル例1,2か
ら1又は複数の復元データ(訂正候補)Di (1)〜D
i (ai )が得られる。これらに対する生成多項式GED
αのエラーシンドロームRi (1)〜Ri (ai )を求
め、これらの組合せ処理において、FCS処理にて訂正
すべきデータを決定するものであった。
The above is the code configuration method at the time of transmission. On the other hand when receiving. Received data (D ' 1 , CRC' 1 ) to (D '
n , CRC ' n ), (FCS'α, CRC' n + 1 ) calculates the division remainder of the generator polynomial G FEC for each word, but when the remainder is 0, it is determined that there is no error, If there is a remainder, one or more of the error pattern correction table examples 1 to 2 or a plurality of restored data (correction candidates) D i (1) to D
i (a i ) is obtained. Generator polynomial G ED for these
The error syndromes R i (1) to R i (a i ) of α are obtained, and the data to be corrected in the FCS process is determined in the combination process of these.

【0049】この場合、FCS処理結果は、上記符号語
1〜nの復元データの組合せを1つ決定し、正しいと判
定する。上記エラーパターン訂正テーブル例1,2以外
のエラーパターンが発生した場合に、誤訂正を起こした
ものに対して、FCS処理は大部分を誤訂正と判定でき
る。更に誤り検出能力を高めるために次の処理を追加し
て行う。これに対して第2の誤り検出用符号は、第1の
それとは異なる生成多項式GEDβデータD1 ,D2 ……
n による剰余FCS’βを追加する。
In this case, the FCS processing result is determined to be correct by determining one combination of the restored data of the code words 1 to n. When an error pattern other than the error pattern correction table examples 1 and 2 occurs, the FCS processing can determine most of the error correction as to the error correction. The following processing is added to further improve the error detection capability. On the other hand, the second error detecting code is different from the first one in the generator polynomial G ED β data D 1 , D 2 ...
The surplus FCS'β due to D n is added.

【0050】受信データ(FCS’β,CRC’n+2
に対して、復元データDn+2 (1)〜Dn+2 (an
2)毎に、上記第1のFCS処理結果復元データの組合
せを1つ決定する。この場合、復元結果が正しく、しか
もFCS’βに対する復元データも正しいものが含まれ
るならば、これらの組合せによるFCS処理、すなわち
第2の生成多項式GEDβによる割算剰余結果=0となる
ことは明らかである。上記のように二重にFCS処理を
行うことにより、見逃し誤り検出能力を高めることがで
きる。
Received data (FCS'β, CRC ' n + 2 )
For the restored data D n + 2 (1) to D n + 2 (a n +
For each 2), one combination of the first FCS processing result restored data is determined. In this case, if the restoration result is correct and the restoration data for FCS'β is also correct, the FCS processing by these combinations, that is, the division remainder result by the second generator polynomial G ED β is 0. Is clear. By performing the FCS processing twice as described above, the missed error detection capability can be enhanced.

【0051】本発明の効果を評価する場合にエラー訂正
能力と処理効率及び経済効果等で行うと以下のようにな
る。 (1)エラー訂正能力 従来の5ビットバーストエラー訂正能力は、227通りの
うち368通り(図1,2による)、である。これに対
し本発明による訂正能力は図1の場合21,079通
り、図2の場合8,464通りとなる。本発明による図
1,図3とも同じく2,048通り(227通り中)(各
符号語単位)である。
When the effect of the present invention is evaluated, the error correction capability, processing efficiency, economic effect, etc., are as follows. (1) Error correction capability The conventional 5-bit burst error correction capability is 368 out of 2 27 types (according to FIGS. 1 and 2). On the other hand, the correction capability according to the present invention is 21,079 in the case of FIG. 1 and 8,464 in the case of FIG. 1 and 3 according to the present invention, there are 2,048 ways (out of 27 ways) (each codeword unit).

【0052】一方本発明におけるモデムのS/N改善特
性を図12に示す。訂正エラーパターンとS/N改善を
図に示す。縦軸はエレメントエラー率Pe,横軸はモデ
ム入力の信号とノイズの比S/Nで表わす。形式(2
7,16,5)の巡回符号において、符号誤り訂正を行
なわない状態においては、エレメントエラーPeは27
ビット中0.5ビットのエラー(Pe=0.5/27)
において半分受信される。半分不受されない状態では、
図中S/N入力のSN0 で表わされる。一方1ビット訂
正状態ではPe=1.5/27にてSN1 ,2ビット訂
正状態では、Pe=2.5/27にてSN2 ,3ビット
訂正状態では、SN3 で表わされる。SN1 に対するS
/N改善効果が認められる。上記4ビット訂正能力をモ
デム方式別に見ると、以下の通りである。 FSK非同期検波方式 約4.7dB改善 BPSK同期検波方式 約7.3dB改善 (2)処理効果 請求項第1項,第3項の発明の場合には、直ちにエラー
シンドロームから訂正処理が可能である。請求項第2
項,第4項の発明の場合には、復元データ組合せ処理を
行うことにより、より高い訂正処理を容易に行うことが
できる。 (3)経済効果 実回線に適合した誤り訂正を特別のハードウェアを必要
とせず、一般的なマイコン処理等で容易に行うことがで
きる。
On the other hand, FIG. 12 shows the S / N improvement characteristics of the modem according to the present invention. The correction error pattern and S / N improvement are shown in the figure. The vertical axis represents the element error rate Pe, and the horizontal axis represents the modem input signal-to-noise ratio S / N. Format (2
In the cyclic code (7, 16, 5), the element error Pe is 27 when no code error correction is performed.
0.5 bit error in bits (Pe = 0.5 / 27)
Received half at. In the half unaccepted state,
It is represented by SN 0 of S / N input in the figure. On the other hand, it is represented by SN 1 at Pe = 1.5 / 27 in the 1- bit correction state, SN 2 at Pe = 2.5 / 27 in the 2- bit correction state, and SN 3 in the 3-bit correction state. S for SN 1
/ N improvement effect is recognized. The 4-bit correction capability according to the modem system is as follows. FSK asynchronous detection system improved by about 4.7 dB BPSK synchronous detection system improved by about 7.3 dB (2) Processing effect In the case of the inventions of claims 1 and 3, correction processing can be immediately performed from the error syndrome. Claim 2
In the case of the inventions of the items (4) and (4), a higher correction process can be easily performed by performing the restoration data combination process. (3) Economic effect It is possible to easily perform error correction adapted to a real line by general microcomputer processing without requiring special hardware.

【0053】[0053]

【発明の効果】以上説明したように、請求項1の発明に
よれば巡回符号による誤り訂正符号とバースト誤り訂正
符号とを使用したディジタル受信符号に対する誤り訂正
方法において、実回線のエラーパターンを単一バースト
エラー,2ビットランダムエラー,3ビットランダムエ
ラー等の複数のエラーパターンに分類し、これらに優先
順位付けを行い、これらすべてのエラーパターンのエラ
ーシンドロームを演算させ、すべてのエラーシンドロー
ムに対して1つ以上のエラーパターンが埋まるまで拡張
し更にこれらのエラーシンドロームについて、各々のエ
ラーシンドロームに対する上記優先順位順にならべたう
ち、順位の高いもの1つをあらかじめ訂正すべきエラー
パターンとしてテーブル化しておき、受信処理後、符号
誤り検知処理によりエラーシンドローム演算により生じ
たエラーシンドロームとエラーパターン訂正テーブルと
から、エラーシンドロームに対する訂正すべき、エラー
パターンのうち優先順位の最も高いものを抽出し、受信
データへ排他的論理和演算をすることにより誤りを訂正
する符号誤り訂正方法としたので、各エラーシンドロー
ム別に1以上のエラーパターン化することにより「訂正
不可」状態を無くし、「訂正可」状態を1以上とするこ
とができる。
As described above, according to the first aspect of the invention, in the error correction method for the digital reception code using the error correction code by the cyclic code and the burst error correction code, the error pattern of the real line is simply Classify into multiple error patterns such as 1 burst error, 2 bit random error, 3 bit random error, etc., prioritize these, calculate the error syndromes of all these error patterns, and for all error syndromes Expanding until one or more error patterns are filled, and further, regarding these error syndromes, one having a higher order among the above-mentioned priority order for each error syndrome is tabulated as an error pattern to be corrected in advance, After reception processing, code error detection processing An error is generated by extracting the highest priority error pattern to be corrected for the error syndrome from the error syndrome generated by the error syndrome calculation and the error pattern correction table, and performing an exclusive OR operation on the received data. Since the code error correction method for correcting the above is used, it is possible to eliminate the "uncorrectable" state and set the "correctable" state to 1 or more by forming one or more error patterns for each error syndrome.

【0054】請求項2の発明によれば巡回符号による誤
り訂正符号とバースト誤り訂正符号とを使用したディジ
タル受信符号に対する誤り訂正方法において、実回線の
エラーパターンを単一バーストエラー,2ビットランダ
ムエラー,3ビットランダムエラー等の複数のエラーパ
ターンに分類し、これらに優先順位付けを行い、エラー
パターンのすべてのエラーシンドロームを演算し、これ
らのエラーシンドローム順に各々のエラーシンドローム
に対する1又は複数のエラーパターンをエラーパターン
の優先順に第1訂正パターン,第2訂正パターン……第
a訂正パターン(aは正の整数)とならべたデータテー
ブルをあらかじめ用意しておき、受信処理後、符号誤り
検知処理によるエラーシンドローム演算により生じたエ
ラーシンドロームとエラーパターン訂正テーブルからエ
ラーシンドロームに対する訂正すべきエラーパターンを
エラーパターンが1つの場合は直ちに、複数ある場合優
先順に従って順次訂正すべき復元データとしてフレーム
チェックシーケンス(FCS)処理におけるフレームの
誤り検出処理に渡し、符号誤りが検出されなくなるまで
くり返し、エラーパターンを選択し処理することにより
選択したエラーパターンのすべてに対する符号誤りを訂
正できるようにした符号誤り訂正方法としたので、すべ
ての訂正可データに対して誤りなしの状態にならない場
合のみ最終的に不受信とすることができ、高品質の「正
受信」状態を保つことができる。
According to the second aspect of the present invention, in the error correction method for the digital reception code using the error correction code by the cyclic code and the burst error correction code, the error pattern of the real line is a single burst error or a 2-bit random error. , Three-bit random error, etc. are classified into a plurality of error patterns, priority is given to these, all error syndromes of the error patterns are calculated, and one or a plurality of error patterns for each error syndrome are calculated in the order of these error syndromes. A data table in which the first correction pattern, the second correction pattern, and the a-th correction pattern (a is a positive integer) are arranged in the order of priority of the error patterns is prepared in advance. Error syndrome caused by syndrome calculation From the error pattern correction table, the error pattern to be corrected with respect to the error syndrome is immediately used when there is one error pattern, and when there are a plurality of error patterns, it is used as restoration data to be sequentially corrected according to the priority order. The code error correction method is designed to correct the code errors for all of the selected error patterns by passing and repeating until the code error is no longer detected, and processing the error patterns. Only when the error-free state does not occur, it is possible to finally make no reception, and it is possible to maintain a high-quality “normal reception” state.

【0055】請求項3の発明によれば、伝送情報が多い
場合に、誤り訂正符号を複数のブロック符号として使用
し、最後のブロック符号にはエラーパターンテーブルか
らエラーシンドロームに対する訂正すべきエラーパター
ンをエラーパターンが1つの場合は直ちに、複数のある
場合優先順に従って順次訂正すべき復元データとしてフ
レームチェックシーケンス(FCS)処理におけるフレ
ームの誤り検出処理に渡す、フレームチェックシーケン
ス(FCS)処理を使用して全体の誤り検出処理を行う
ように構成された請求項1の伝送符号において、受信後
直ちに各ブロックについて誤り検出および誤り訂正処理
を行い、誤り検出時はエラーシンドロームとエラーパタ
ーン訂正テーブルとから直ちに訂正を行い、その結果、
すべての伝送符号に対して各々復元データが決まり、前
記FCS処理による全体データの誤り検出処理により正
受信状態か不受信状態かを判別する符号誤り訂正方法と
したので、実用回線の特性にあった効率の良い処理を可
能として、符号誤り訂正能力を向上できる。
According to the invention of claim 3, when there is a lot of transmission information, the error correction code is used as a plurality of block codes, and the last block code is an error pattern to be corrected for the error syndrome from the error pattern table. When there is one error pattern, immediately when there are a plurality of error patterns, it is passed to the error detection processing of the frame in the frame check sequence (FCS) processing as restoration data to be sequentially corrected according to the priority order. In the transmission code according to claim 1, which is configured to perform overall error detection processing, error detection and error correction processing is performed for each block immediately after reception, and at the time of error detection, correction is performed immediately from the error syndrome and error pattern correction table. And as a result,
The restored data is determined for each transmission code, and the code error correction method is used to determine whether the data is in the normal reception state or the non-reception state by the error detection process of the entire data by the FCS process. It is possible to perform efficient processing and improve the code error correction capability.

【0056】請求項4の発明によれば、伝送情報が多い
場合に複数のブロック符号として使用し、最後のブロッ
ク符号には上記データ長のフレームチェックシーケンス
(FCS)処理を使用して、全体の誤り検出処理が行な
えるように構成された伝送符号において、受信後一定の
エラーパターン分類に対してすべて訂正できるエラーパ
ターン訂正テーブルを用い復元データを1つ又は複数の
候補にして一時保持しておきこれらの復元データに組合
せ処理を行い、FCS処理において、正受信状態と不受
信状態とに分けて判定する符号誤り訂正方法としたの
で、必要で十分な多くの誤り訂正候補を作成でき、簡単
な処理で符号訂正が可能となる。
According to the invention of claim 4, when there is a lot of transmission information, it is used as a plurality of block codes, and for the last block code, a frame check sequence (FCS) process of the above data length is used, and the whole block code is used. In a transmission code configured to perform error detection processing, the restored data is temporarily held as one or a plurality of candidates by using an error pattern correction table that can correct all error pattern classifications after reception. A combination of these restored data is performed, and in the FCS processing, a code error correction method for determining whether the received state is the normal reception state or the non-reception state is used. Therefore, a large number of necessary and sufficient error correction candidates can be created. The code can be corrected by the processing.

【0057】請求項5の発明によれば、復元データ組合
せ処理とFCS処理において、このFCS処理にて第1
訂正候補について誤りのない場合は正受信状態とし、誤
りのある場合は組合せ処理を用いて第1訂正候補以外に
復元データを持つデータについて、複数の組合せを効率
良く作る為に、これらの復元データのFCS処理による
エラーシンドロームをただ一回のみ選択されるように各
ブロック符号のデータ部分(復元データ)の上記FCS
シンドロームを、符号語番号とその符号語の順番を示す
ポインタおよび今まで演算された全体データのエラーシ
ンドロームとの入れ子処理を作り、復元データの上記F
CSシンドロームが1つのみの場合は、処理を次に繰り
上げ、それ以外の場合のみ上記FCS処理を行うが、全
体符号のFCS処理を行う代りに既演算FCS処理に対
して特定のブロック符号の第1候補の復元データの上記
FCSシンドロームを論理和を作ることにより、全体符
号から特定ブロックの符号を除いたFCS処理を行って
おき、この特定ブロック符号を除いたエラーシンドロー
ムに対して第1候補以外の復元データのFCSシンドロ
ームのポインタに示し、その復号データを排他的論理和
演算(XOR)をさせることにより、全体符号のFCS
処理を行なわせるようにして、エラーシンドローム演算
を行い、0にならない場合誤りありと判定し、すべての
組合せ処理を順番に行なわせるようにしたので、「誤訂
正」を極限まで少なくし、「正訂正」を大幅に増やすこ
とができる。
According to the invention of claim 5, in the restoration data combination process and the FCS process, the first is performed in the FCS process.
When there is no error in the correction candidate, the normal reception state is set, and when there is an error, the combined data is used to efficiently create a plurality of combinations of the data having the restored data other than the first correction candidate. The FCS of the data portion (restored data) of each block code is selected so that the error syndrome due to the FCS processing of is selected only once.
The syndrome is nested with the code word number, a pointer indicating the order of the code word, and the error syndrome of the entire data calculated so far, and the above-mentioned F of the restored data is created.
When there is only one CS syndrome, the processing is advanced to the next, and the above FCS processing is performed only in other cases, but instead of performing the FCS processing of the entire code, the first FCS processing of the specific block code is performed for the calculated FCS processing. FCS processing is performed by removing the code of the specific block from the overall code by logically ORing the FCS syndromes of the restored data of one candidate, and the error syndrome other than the specific block code is excluded from the first candidate. The FCS of the entire code is obtained by indicating the decoded data with the pointer of the FCS syndrome and performing the exclusive OR operation (XOR) on the decoded data.
The error syndrome calculation is performed so that the processing is performed, and when it is not 0, it is determined that there is an error, and all the combination processing is performed in order. Corrections can be significantly increased.

【0058】請求項6の発明によれば、グループ分けし
たエラーパターンは、100%訂正を行い、それ以外の
誤りに対する誤訂正に対しては、第2のFCS処理にお
ける第1のFCS処理とは異なる誤り検出符号を付加
し、上記第1のFCS処理における正受信状態である各
復元データのFCSエラーシンドロームに対するXOR
演算結果=0が得られた場合に、あらためてこの時の各
復元データと第2のFCS受信語から誤り訂正された複
数の復元データの間でFCS処理を行い、この演算結果
が0の場合には、上記第1のFCS処理において、見逃
し誤りが無かったと判定する符号誤り訂正方法としたの
で、第1のFCS処理に第2のFCS処理が追加され
て、信頼性の高い誤り訂正が可能となる。
According to the sixth aspect of the invention, the error patterns divided into groups are corrected 100%, and the error correction for other errors is different from the first FCS processing in the second FCS processing. XOR for the FCS error syndrome of each restored data in the normal reception state in the first FCS processing, to which different error detection codes are added
When the operation result = 0 is obtained, FCS processing is performed again between each restored data at this time and a plurality of restored data that has been error-corrected from the second FCS received word. Is a code error correction method for determining that there was no missed error in the first FCS processing, and therefore, the second FCS processing is added to the first FCS processing to enable highly reliable error correction. Become.

【図面の簡単な説明】[Brief description of drawings]

【図1】 エラーパターン分類例1を示す図である。FIG. 1 is a diagram showing an error pattern classification example 1;

【図2】 エラーパターン分類例2を示す図である。FIG. 2 is a diagram showing an error pattern classification example 2;

【図3】 本発明のエラーパターン訂正テーブル例1を
示す図である。
FIG. 3 is a diagram showing an error pattern correction table example 1 of the present invention.

【図4】 本発明のエラーパターン訂正テーブル例2を
示す図である。
FIG. 4 is a diagram showing an error pattern correction table example 2 of the present invention.

【図5】 本発明における符号誤り訂正過程を示す図で
ある。
FIG. 5 is a diagram showing a code error correction process in the present invention.

【図6】 本発明における第1の符号誤り訂正過程とF
CS処理を示す図である。
FIG. 6 shows a first code error correction process and F in the present invention.
It is a figure which shows CS processing.

【図7】 本発明における第2の符号誤り訂正過程とF
CS処理を示す図である。
FIG. 7 shows a second code error correction process and F in the present invention.
It is a figure which shows CS processing.

【図8】 本発明における第3の符号誤り訂正過程とF
CS処理を示す図である。
FIG. 8 shows a third code error correction process and F in the present invention.
It is a figure which shows CS processing.

【図9】 本発明における復元データ組合せ処理とFC
S処理フローの図である。
FIG. 9 is a flowchart showing a combination of restored data and FC according to the present invention.
It is a figure of S processing flow.

【図10】 本発明の復元データ組合せ処理とFCS処
理結果のデータフロー図である。
FIG. 10 is a data flow diagram of a restored data combination process and an FCS process result of the present invention.

【図11】 本発明における符号構成とFCSの複数処
理を示す図である。
FIG. 11 is a diagram showing a code configuration and a plurality of FCS processes according to the present invention.

【図12】 本発明の訂正エラーパターンとS/N改善
を示す図である。
FIG. 12 is a diagram showing a correction error pattern and S / N improvement of the present invention.

【図13】 一般的な符号伝送機能を示す図である。FIG. 13 is a diagram showing a general code transmission function.

【図14】 一般的なマイクロコンピュータによる符号
化・復号化回路図である。
FIG. 14 is an encoding / decoding circuit diagram of a general microcomputer.

【図15】 従来の符号誤り訂正過程における状態遷移
図である。
FIG. 15 is a state transition diagram in the conventional code error correction process.

【符号の説明】[Explanation of symbols]

1 送信データ、2 符号化機能、3 搬送路への変調
機能、4 搬送路上の搬送機能、5 搬送路からの復調
機能、6 復号機能、7 データの表示・印字機能、1
0 中央演算装置、11 読み出専用メモリ、12 ラ
ンダムアクセスメモリ、13 並列入出力回路、14
直列入出力回路。
1 transmission data, 2 encoding function, 3 modulation function to carrier path, 4 carrier function on carrier path, 5 demodulation function from carrier path, 6 decoding function, 7 data display / print function, 1
0 central processing unit, 11 read only memory, 12 random access memory, 13 parallel input / output circuit, 14
Serial input / output circuit.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 巡回符号による誤り訂正符号とバースト
誤り訂正符号とを使用したディジタル受信符号に対する
誤り訂正方法において、実回線のエラーパターンを単一
バーストエラー,2ビットランダムエラー,3ビットラ
ンダムエラー等の複数のエラーパターンに分類し、これ
らに優先順位付けを行い、これらすべてのエラーパター
ンのエラーシンドロームを演算させ、すべてのエラーシ
ンドロームに対して1つ以上のエラーパターンが埋まる
まで拡張し更にこれらのエラーシンドロームについて、
各々のエラーシンドロームに対する上記優先順位順にな
らべたうち、順位の高いもの1つをあらかじめ訂正すべ
きエラーパターンとしてテーブル化しておき、受信処理
後、符号誤り検知処理によりエラーシンドローム演算に
より生じたエラーシンドロームと上記エラーパターン訂
正テーブルとから、エラーシンドロームに対する訂正す
べきエラーパターンのうち優先順位の最も高いものを抽
出し、受信データへ排他的論理和演算をすることにより
誤りを訂正することを特徴とする符号誤り訂正方法。
1. An error correction method for a digital reception code using an error correction code by a cyclic code and a burst error correction code, wherein an error pattern of a real line is a single burst error, a 2-bit random error, a 3-bit random error, etc. Of error patterns, prioritize them, calculate the error syndromes of all these error patterns, expand all error patterns until one or more error patterns are filled, and About error syndrome,
Of the above-mentioned priority order for each error syndrome, one having a higher order is made into a table as an error pattern to be corrected in advance, and after the reception processing, the error syndrome generated by the error syndrome calculation by the code error detection processing A code characterized by extracting the error pattern with the highest priority among error patterns to be corrected for the error syndrome from the error pattern correction table and performing an exclusive OR operation on the received data to correct the error. Error correction method.
【請求項2】 巡回符号による誤り訂正符号とバースト
誤り訂正符号とを使用したディジタル受信符号に対する
誤り訂正方法において、実回線のエラーパターンを単一
バーストエラー,2ビットランダムエラー,3ビットラ
ンダムエラー等の複数のエラーパターンに分類し、これ
らに優先順位付けを行い、前記エラーパターンのすべて
のエラーシンドロームを演算し、これらのエラーシンド
ローム順に各々のエラーシンドロームに対する1又は複
数のエラーパターンをエラーパターンの優先順に第1訂
正パターン,第2訂正パターン……第a訂正パターン
(aは正の整数)とならべたデータテーブルをあらかじ
め用意しておき、受信処理後、符号誤り検知処理による
エラーシンドローム演算により生じたエラーシンドロー
ムと、上記エラーパターン訂正テーブルからエラーシン
ドロームに対する訂正すべきエラーパターンをエラーパ
ターンが1つの場合は直ちに、複数ある場合優先順に従
って順次訂正すべき復元データとしてフレームチェック
シーケンス処理におけるフレームの誤り検出処理に渡
し、符号誤りが検出されなくなるまでくり返し、エラー
パターンを選択し処理することにより上記選択したエラ
ーパターンのすべてに対する符号誤りを訂正できるよう
にしたことを特徴とする符号誤り訂正方法。
2. An error correction method for a digital reception code using an error correction code by a cyclic code and a burst error correction code, wherein an error pattern of a real line is a single burst error, a 2-bit random error, a 3-bit random error, etc. Of the error patterns, prioritize them, calculate all error syndromes of the error patterns, and prioritize one or more error patterns for each error syndrome in order of these error syndromes. A data table in which the first correction pattern, the second correction pattern, and the a-th correction pattern (a is a positive integer) are arranged in advance, is generated by the error syndrome calculation by the code error detection process after the reception process. The error syndrome and the above error pattern If there is one error pattern, the error pattern to be corrected for the error syndrome is immediately passed from the error correction table to the frame error detection process in the frame check sequence process as restoration data to be sequentially corrected according to the priority order. A code error correction method characterized in that a code error for all of the selected error patterns can be corrected by repeating an error pattern until no error is detected and processing the error pattern.
【請求項3】 伝送情報が多い場合に、上記誤り訂正符
号を複数のブロック符号として使用し、最後のブロック
符号には上記エラーパターン訂正テーブルからエラーシ
ンドロームに対する訂正すべきエラーパターンをエラー
パターンが1つの場合は直ちに、複数ある場合優先順に
従って順次訂正すべき復元データとしてフレームチェッ
クシーケンス処理におけるフレームの誤り検出処理に渡
す、上記フレームチェックシーケンス処理を使用して全
体の誤り検出処理を行うように構成された請求項1の伝
送符号において、受信後直ちに各ブロックについて誤り
検出および誤り訂正処理を行い、誤り検出時はエラーシ
ンドロームと上記エラーパターン訂正テーブルとから直
ちに訂正を行い、その結果、すべての伝送符号に対して
各々復元データが決まり、前記フレームチェックシーケ
ンス処理による全体データの誤り検出処理により正受信
状態か不受信状態かを判別することを特徴とする請求項
第1項記載の符号誤り訂正方法。
3. When there is a lot of transmission information, the error correction code is used as a plurality of block codes, and the last block code is an error pattern to be corrected for the error syndrome from the error pattern correction table. In the case of one, immediately when there is a plurality, it is passed to the error detection processing of the frame in the frame check sequence processing as restoration data to be sequentially corrected according to the priority order, and the entire error detection processing is performed using the frame check sequence processing. In the transmission code according to claim 1, error detection and error correction processing is performed for each block immediately after reception, and at the time of error detection, correction is performed immediately from the error syndrome and the error pattern correction table, and as a result, all transmission is performed. Restored data is decided for each code That is, the code error correction method according to claim 1, wherein it is determined whether the normal reception state or the non-reception state is performed by the error detection process of the entire data by the frame check sequence process.
【請求項4】 受信後前記一定のエラーパターン分類に
対してすべて訂正できる前記エラーパターン訂正テーブ
ルを用い復元データを1つ又は複数の候補にして一時保
持しておきこれらの復元データに組合せ処理を行い、上
記フレームチェックシーケンス処理において正受信状態
と不受信状態とに分けて判定することを特徴とする請求
項第2項記載の符号誤り訂正方法。
4. The received data is temporarily stored as one or a plurality of candidates by using the error pattern correction table capable of correcting all of the certain error pattern classification after reception, and a combination process is performed on these restored data. 3. The code error correction method according to claim 2, wherein the frame check sequence process is performed separately for the normal reception state and the non-reception state.
【請求項5】 フレームチェックシーケンス処理にて第
1訂正候補について誤りのない場合は正受信状態とし、
誤りのある場合は上記組合せ処理を用いて前記第1訂正
候補以外に復元データを持つデータについて、複数の組
合せを効率良く作る為に、これらの復元データのフレー
ムチェックシーケンス処理によるエラーシンドロームを
ただ一回のみ選択されるように各ブロック符号のデータ
部分の上記フレームチェックシーケンスシンドローム
を、符号語番号とその符号語の順番を示すポインタおよ
び今まで演算された全体データのエラーシンドロームと
の入れ子処理を作り、上記復元データの上記フレームチ
ェックシーケンスシンドロームが1つのみの場合は、処
理を次に繰り上げ、それ以外の場合のみ上記フレームチ
ェックシーケンス処理を行うが、全体符号のフレームチ
ェックシーケンス処理を行う代りに既演算フレームチェ
ックシーケンス処理に対して特定のブロック符号の第1
候補の復元データの上記フレームチェックシーケンスシ
ンドロームを論理和を作ることにより、全体符号から特
定ブロックの符号を除いたフレームチェックシーケンス
処理を行っておき、この特定ブロック符号を除いたエラ
ーシンドロームに対して第1候補以外の復元データのフ
レームチェックシーケンスシンドロームのポインタに示
し、この復号データを排他的論理和演算させることによ
り、全体符号のフレームチェックシーケンス処理を行な
わせるようにして、エラーシンドローム演算を行い、0
にならない場合誤りありと判定し、すべての組合せ処理
を順番に行なわせるようにしたことを特徴とする請求項
第4項記載の符号誤り訂正方法。
5. A normal reception state is set when there is no error in the first correction candidate in the frame check sequence processing,
When there is an error, in order to efficiently create a plurality of combinations of data having restoration data other than the first correction candidate by using the above combination processing, only one error syndrome is generated by the frame check sequence processing of these restoration data. Nested the above frame check sequence syndrome of the data part of each block code so that it is selected only once, with the pointer indicating the code word number and the order of the code word, and the error syndrome of the entire data calculated so far. If the number of the frame check sequence syndrome of the restored data is only one, the process is advanced to the next, and the frame check sequence process is performed only in other cases, but instead of performing the frame check sequence process of the entire code, Computation frame check sequence processing First specific block code for
By performing a logical sum of the frame check sequence syndromes of the restored data of the candidates, the frame check sequence processing is performed by removing the code of the specific block from the overall code, and the error syndrome excluding the code of the specific block is processed first. 1 Point to the frame check sequence syndrome of the restored data other than the candidate, and by performing an exclusive OR operation on the decoded data, the frame check sequence processing of the entire code is performed, and the error syndrome operation is performed.
5. The code error correction method according to claim 4, wherein if there is no error, it is determined that there is an error, and all combination processing is performed in order.
【請求項6】 前記グループ分けしたエラーパターン
は、100%訂正を行い、それ以外の誤りに対する誤訂
正に対しては、第2のフレームチェックシーケンス処理
における第1のフレームチェックシーケンス処理とは異
なる誤り検出符号を付加し、上記第1のフレームチェッ
クシーケンス処理における正受信状態である各復元デー
タのフレームチェックシーケンスエラーシンドロームに
対するXOR演算結果=0が得られた場合に、あらため
てこの時の各復元データと第2のフレームチェックシー
ケンス受信語から誤り訂正された複数の復元データの間
でフレームチェックシーケンス処理を行い、この演算結
果が0の場合には、上記第1のフレームチェックシーケ
ンス処理において、見逃し誤りが無かったと判定するこ
とを特徴とする請求項第4項又は第5項記載の符号誤り
訂正方法。
6. The grouped error pattern is 100% corrected, and an error different from that of the first frame check sequence process in the second frame check sequence process is applied to miscorrection for other errors. When a detection code is added and an XOR operation result = 0 for the frame check sequence error syndrome of each restored data in the normal reception state in the first frame check sequence processing is obtained, each restored data at this time A frame check sequence process is performed between a plurality of restored data that has been error-corrected from the second frame check sequence received word. If this operation result is 0, a miss error is detected in the first frame check sequence process. Claim to determine that there was no The code error correction method according to item 4 or 5.
JP6132930A 1994-06-15 1994-06-15 Code error correction method Expired - Fee Related JP2988829B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6132930A JP2988829B2 (en) 1994-06-15 1994-06-15 Code error correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6132930A JP2988829B2 (en) 1994-06-15 1994-06-15 Code error correction method

Publications (2)

Publication Number Publication Date
JPH088759A true JPH088759A (en) 1996-01-12
JP2988829B2 JP2988829B2 (en) 1999-12-13

Family

ID=15092827

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6132930A Expired - Fee Related JP2988829B2 (en) 1994-06-15 1994-06-15 Code error correction method

Country Status (1)

Country Link
JP (1) JP2988829B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001050467A1 (en) * 2000-01-07 2001-07-12 Matsushita Electric Industrial Co., Ltd. Error correcting method, disk medium, disk recording method, and disk reproducing method
CN115237915A (en) * 2022-07-21 2022-10-25 成都智谷耘行信息技术有限公司 Data preprocessing method and system based on message middleware and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2602021B2 (en) 1987-05-19 1997-04-23 三菱電機株式会社 Error correction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001050467A1 (en) * 2000-01-07 2001-07-12 Matsushita Electric Industrial Co., Ltd. Error correcting method, disk medium, disk recording method, and disk reproducing method
CN115237915A (en) * 2022-07-21 2022-10-25 成都智谷耘行信息技术有限公司 Data preprocessing method and system based on message middleware and electronic equipment

Also Published As

Publication number Publication date
JP2988829B2 (en) 1999-12-13

Similar Documents

Publication Publication Date Title
JP2576776B2 (en) Packet transmission method and packet transmission device
US4584685A (en) Method for improving message reception from multiple sources
JP4392004B2 (en) Encoding and decoding techniques for packet recovery
US11201695B2 (en) Forward error correction with compression coding
EP1030456A2 (en) Error correction coding/decoding method and apparatus
JPH0831808B2 (en) Error correction method, its apparatus, and its transmission system
JP2009171540A (en) Transmitting apparatus and method, receiving apparatus and method, and program
JP3283097B2 (en) Communications system
US20130191696A1 (en) Parity frame
US7404133B2 (en) Error detection and correction employing modulation symbols satisfying predetermined criteria
US4696007A (en) Method of correcting errors in binary coded words
EP1280281A1 (en) Decoder and decoding method
JP2988829B2 (en) Code error correction method
JP3263706B2 (en) Error correction decoding method
JP4379329B2 (en) CRC generator polynomial selection method, CRC encoding method, and CRC encoding circuit
JP3338320B2 (en) Burst error correction method and apparatus
TW200540609A (en) System and method for detecting codeword errors in error correction code or cyclic redundancy check code
JPH07183874A (en) Error correction decoding circuit and selective calling receiver
JPH0137048B2 (en)
JPH08330978A (en) Error correction system
JP4965614B2 (en) Encoding and decoding techniques for packet recovery
JP2001102938A (en) Error detecting method, error correcting method and error correcting device for received signal
JPH0846523A (en) Error correction device and control method thereof
Oprisan et al. Error correction with feedback for asymmetric errors
JPH10261970A (en) Error detection code generator, error detection circuit, and error correction circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees