JP3029738B2 - Error detection method for multiple block transmission frames - Google Patents
Error detection method for multiple block transmission framesInfo
- Publication number
- JP3029738B2 JP3029738B2 JP4171370A JP17137092A JP3029738B2 JP 3029738 B2 JP3029738 B2 JP 3029738B2 JP 4171370 A JP4171370 A JP 4171370A JP 17137092 A JP17137092 A JP 17137092A JP 3029738 B2 JP3029738 B2 JP 3029738B2
- Authority
- JP
- Japan
- Prior art keywords
- block
- data
- error detection
- crc
- transmission frame
- 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.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【産業上の利用分野】本発明は複数のデータブロックで
構成された伝送フレームの誤りを誤り検出符号を用いて
検出する方法に関する。なお以下各図において同一の符
号は同一もしくは相当部分を示す。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting an error in a transmission frame composed of a plurality of data blocks by using an error detection code. In the drawings, the same reference numerals indicate the same or corresponding parts.
【0002】[0002]
【従来の技術】図3はこの種のデータ伝送における従来
の誤り検出方法の説明図である。同図において1は伝送
フレーム、2(2−1〜2−3)は夫々この伝送フレー
ム1を構成するデータブロック(便宜上夫々ブロック#
1〜#3又は第1ブロック〜第3ブロックとも記す)、
3(3−1〜3−3)は夫々このデータブロック2−1
〜2−3を構成するデータ(便宜上夫々データ#1〜#
3とも呼ぶ)、CRC1〜CRC3は同じく夫々データ
ブロック2−1〜2−3を構成する誤り検出符号として
のCRC(サイクリック・リダンダンシ・チェック:巡
回符号ともいう)である。2. Description of the Related Art FIG. 3 is an explanatory diagram of a conventional error detection method in this type of data transmission. In the figure, 1 is a transmission frame, and 2 (2-1 to 2-3) are data blocks (block #
1 to # 3 or the first to third blocks),
3 (3-1 to 3-3) correspond to the data block 2-1.
To 2-3 (data # 1 to # 3 for convenience)
3), and CRC1 to CRC3 are CRCs (cyclic redundancy check: also referred to as cyclic codes) as error detection codes constituting the data blocks 2-1 to 2-3, respectively.
【0003】従来は、各ブロック2を単位として各々独
立して誤り検出を行っている。また一般に用いられてい
るCRCによる誤り検出機構は、シフトレジスタを用い
て演算を行う符号器と複号器で構成される。即ち図3の
〜に対応する太い実線は夫々CRC1〜CRC3に
対応する有効データの範囲を示し、上向の矢印は夫々符
号器,複号器の初期化時点を示している。Conventionally, error detection is performed independently for each block 2 as a unit. An error detection mechanism based on CRC which is generally used includes an encoder for performing an operation using a shift register and a decoder. That is, the thick solid lines corresponding to in FIG. 3 indicate the range of valid data corresponding to CRC1 to CRC3, respectively, and the upward arrows indicate the initialization time points of the encoder and the decoder, respectively.
【0004】図4(A),(B)は夫々前記した伝送元
の符号器,伝送先の複号器の動作手順を示し、S11〜
S15の符号は同図(A)のステップを、またS21〜
S25の符号は同図(B)のステップを夫々示す。同図
を説明すると伝送元は初期値を設定した符号器にまずブ
ロックデータ3−1を入力し(S11,S12)、この
データ3−1からCRCを演算し(S13)、この演算
したCRCを当該ブロック2−1のデータ3−1に付加
し(S14)、以上の動作を残りの全てのデータブロッ
ク2−2,2−3についても繰返して(S15→S11
〜S15の繰返し)、伝送フレーム1を作成する。FIGS. 4 (A) and 4 (B) show the operation procedures of the transmission source encoder and the transmission destination decoder, respectively.
The reference numerals in S15 denote the steps in FIG.
Symbols in S25 indicate the steps in FIG. Referring to the figure, a transmission source first inputs block data 3-1 to an encoder in which an initial value is set (S11, S12), calculates a CRC from the data 3-1 (S13), and calculates the calculated CRC. This operation is added to the data 3-1 of the block 2-1 (S14), and the above operation is repeated for all the remaining data blocks 2-2 and 2-3 (S15 → S11).
繰 S15), and the transmission frame 1 is created.
【0005】伝送先では複号器に初期値を設定しておき
(S21)、これに伝送フレーム1のまずブロック2−
1を入力する。そしてこの入力データ(つまりデータ3
−1にCRC1が付加されたデータ)からCRCを演算
し(S23)、このCRC演算の結果がある定まった値
になれば(S24,分岐Y)、受けたデータは正しいと
し、これ以外ならば(S24,分岐N)、受けたデータ
は誤っていると判定する。ここで受けたデータが正しい
間は、以上の動作を残りの全てのデータブロック2−
2,2−3についても繰返して(S25→S21〜S2
5の繰返し)、受信した伝送フレーム1の誤りチェック
を終わる。At the transmission destination, an initial value is set in the decoder (S21).
Enter 1. And this input data (that is, data 3
CRC is calculated from the data obtained by adding CRC1 to -1 (S23). If the result of the CRC calculation becomes a certain value (S24, branch Y), the received data is determined to be correct. (S24, branch N), it is determined that the received data is incorrect. While the data received here is correct, the above operation is performed on all remaining data blocks 2-
Repeat steps 2 and 2-3 (S25 → S21-S2
5), and the error check of the received transmission frame 1 is completed.
【0006】[0006]
【発明が解決しようとする課題】したがって、伝送フレ
ーム1が複数ブロック化した場合、一つの伝送フレーム
の中で各ブロック毎に毎回、符号器又は複号器の初期化
が必要であり、かつデータは遅滞無く符号化又は複号化
がなされなければならず、高速化の傾向にあるデータ伝
送において誤り検出機構の初期化に伴う遅延及び装置の
肥大化が問題となる。Therefore, when the transmission frame 1 is divided into a plurality of blocks, it is necessary to initialize an encoder or a decoder every time in each block within one transmission frame, Must be coded or decoded without delay, and in data transmission, which tends to be faster, there is a problem of delay due to initialization of an error detection mechanism and enlargement of a device.
【0007】そこでこの発明の課題は、従来の誤り検出
の性能を落とさずに、装置の誤り検出機構を簡素化する
ことができる複数ブロック化伝送フレームの誤り検出方
法を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a method of detecting an error in a multi-block transmission frame which can simplify the error detection mechanism of the apparatus without deteriorating the performance of the conventional error detection.
【0008】[0008]
【課題を解決するための手段】前記の課題を解決するた
めに、本発明の誤り検出方法は、複数のデータブロック
(2など)で構成された伝送フレーム(1など)の各ブ
ロックデータ(3など)毎に巡回符号(CRC)を付加
してこのデータブロック毎に誤り検出を行う方法であっ
て、伝送フレームの先頭から各該当するデータブロック
までのフレームの内容を有効範囲とする巡回符号を各々
のブロックデータに付加するようにする。In order to solve the above-mentioned problems, an error detection method according to the present invention provides a method for detecting each block data (3) of a transmission frame (1 or the like) composed of a plurality of data blocks (2 or the like). This is a method of performing an error detection for each data block by adding a cyclic code (CRC) to each of the data blocks. The cyclic code having the effective range of the contents of the frame from the head of the transmission frame to each corresponding data block is used. It is added to each block data.
【0009】[0009]
【作用】各データブロックに設けるCRCの演算開始位
置(初期化位置)を共通化し伝送フレームの先頭に置
く。CRCの有効範囲は、初期化した位置からCRCを
セットした位置までである。初期化するのは伝送フレー
ムの先頭位置のみなので、伝送元で各ブロック毎にセッ
トしたCRCは、伝送先で伝送フレームの先頭から各ブ
ロックまでが有効範囲となり、ブロック単位の誤り検出
を行うことになる。The CRC calculation start position (initialization position) provided for each data block is shared and placed at the head of the transmission frame. The valid range of the CRC is from the position where the CRC is initialized to the position where the CRC is set. Since only the start position of the transmission frame is initialized, the CRC set for each block at the transmission source has an effective range from the start of the transmission frame to each block at the transmission destination. Become.
【0010】[0010]
【実施例】以下図1におよび図2に基づいて本発明の実
施例を説明する。図1は本発明の実施例としての誤りチ
ェック方法の説明図で図3に対応し、図2(A),
(B)は同じく夫々符号器,複号器の動作手順を示すフ
ローチャートで図4(A),(B)に対応する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is an explanatory diagram of an error checking method as an embodiment of the present invention, and corresponds to FIG.
4B is a flowchart showing the operation procedure of the encoder and the decoder, respectively, and corresponds to FIGS. 4A and 4B.
【0011】図1,図2は図3,図4に対し共に符号
器,複号器の初期設定が伝送フレーム1の先頭のみで行
われる点が異なる。次に図1を参照しつつ図2を説明す
る。図2(A)において、伝送元では、予め初期値を符
号器に設定しておき(S11)、はじめのブロック2−
1のデータ3−1からCRC(CRC1)を生成し(S
12,S13)、第1ブロックデータ3−1に付加する
(S14)(図1)。次の第2ブロック2−2では符
号器の初期化を行わずに第1ブロックの状態を継続して
(つまり符号器にはCRC1のデータを残したままで)
符号化する。従って外部からは第1ブロック2−1のデ
ータ3−1及び第2ブロック2−2のデータ3−2を入
力してCRC(CRC2)を生成することになる(S1
2〜S14)(図1)。FIGS. 1 and 2 are different from FIGS. 3 and 4 in that the initialization of the encoder and the decoder is performed only at the beginning of the transmission frame 1. Next, FIG. 2 will be described with reference to FIG. In FIG. 2A, at the transmission source, an initial value is set in the encoder in advance (S11), and the first block 2-
A CRC (CRC1) is generated from the data 3-1 of S1 (S1).
12, S13), and is added to the first block data 3-1 (S14) (FIG. 1). In the next second block 2-2, the state of the first block is continued without initializing the encoder (that is, the CRC1 data is left in the encoder).
Encode. Therefore, a CRC (CRC2) is generated by inputting the data 3-1 of the first block 2-1 and the data 3-2 of the second block 2-2 from outside (S1).
2 to S14) (FIG. 1).
【0012】残る第3ブロック2−3についても同様に
ステップS12〜S14の手順を繰返すことにより、各
ブロック毎に、先頭ブロックから有効なCRC(CRC
1〜CRC3)を付加した伝送フレーム1をつくる。ま
た図2(B)において、伝送先では、初期値を複号器に
設定しておき(S21)、はじめのブロック2−1の検
査をする(S22〜S24)(図1)、第2ブロック
2−2は複号器の初期化を行わずに第1ブロックの状態
を継続して検査する(S25→S22〜S24)(図1
)。このように順次継続することにより、各ブロック
毎の誤り検出を行う。By repeating the steps S12 to S14 in the same manner for the remaining third block 2-3, a valid CRC (CRC) from the first block is obtained for each block.
1 to CRC3) are added. Also, in FIG. 2B, at the transmission destination, the initial value is set in the decoder (S21), and the first block 2-1 is inspected (S22 to S24) (FIG. 1), and the second block 2-2 continuously inspects the state of the first block without initializing the decoder (S25 → S22 to S24) (FIG. 1).
). By sequentially continuing in this manner, error detection is performed for each block.
【0013】[0013]
【発明の効果】本発明によれば、伝送フレームの誤り検
出開始位置をブロック単位で区切らず、各ブロック共通
に伝送フレームの先頭に置き、各該当ブロックまでを有
効範囲とする方法を採用するようにしたので、第2ブロ
ック以降での初期化に関する機構が不要になり装置を簡
素化でき、データ伝送を高速化することができる。According to the present invention, a method is employed in which the error detection start position of a transmission frame is not divided for each block, but is placed at the head of the transmission frame in common for each block and the effective range up to each corresponding block is adopted. Therefore, a mechanism related to initialization in the second block and thereafter is not required, the apparatus can be simplified, and the speed of data transmission can be increased.
【図1】本発明の実施例としての誤り検出方法の説明図FIG. 1 is an explanatory diagram of an error detection method according to an embodiment of the present invention.
【図2】同じく符号器及び複号器の動作手順を示すフロ
ーチャートFIG. 2 is a flowchart showing an operation procedure of the encoder and the decoder.
【図3】図1に対応する従来の説明図FIG. 3 is a conventional explanatory diagram corresponding to FIG. 1;
【図4】図2に対応する従来のフローチャートFIG. 4 is a conventional flowchart corresponding to FIG. 2;
1 伝送フレーム 2(2−1〜2−3) データブロック 3(3−1〜3−3) データ CRC(CRC1〜CRC3) 巡回符号 1 Transmission frame 2 (2-1 to 2-3) Data block 3 (3-1 to 3-3) Data CRC (CRC1 to CRC3) Cyclic code
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 1/00 G06F 11/10 330 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04L 1/00 G06F 11/10 330
Claims (1)
レームの各ブロックデータ毎に巡回符号を付加してこの
データブロック毎に誤り検出を行う方法であって、 伝送フレームの先頭から各該当するデータブロックまで
のフレームの内容を有効範囲とする巡回符号を各々のブ
ロックデータに付加するようにしたことを特徴とする複
数ブロック化伝送フレームの誤り検出方法。1. A method for performing an error detection for each data block by adding a cyclic code to each block data of a transmission frame composed of a plurality of data blocks, comprising: An error detection method for a multi-block transmission frame, wherein a cyclic code having an effective range of a frame up to a block is added to each block data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4171370A JP3029738B2 (en) | 1992-06-30 | 1992-06-30 | Error detection method for multiple block transmission frames |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4171370A JP3029738B2 (en) | 1992-06-30 | 1992-06-30 | Error detection method for multiple block transmission frames |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0621920A JPH0621920A (en) | 1994-01-28 |
JP3029738B2 true JP3029738B2 (en) | 2000-04-04 |
Family
ID=15921926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4171370A Expired - Fee Related JP3029738B2 (en) | 1992-06-30 | 1992-06-30 | Error detection method for multiple block transmission frames |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3029738B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8875004B2 (en) | 2007-07-10 | 2014-10-28 | Mitsubishi Electric Corporation | Transmitting apparatus and communication system |
US8892983B2 (en) * | 2008-11-04 | 2014-11-18 | Alcatel Lucent | Method and apparatus for error detection in a communication system |
DE102010028485A1 (en) * | 2010-05-03 | 2011-11-03 | Robert Bosch Gmbh | Method and device for securing data packets to be transmitted via an interface |
WO2019030860A1 (en) | 2017-08-09 | 2019-02-14 | 日本電気株式会社 | Method and device for generating error detecting redundant bit |
-
1992
- 1992-06-30 JP JP4171370A patent/JP3029738B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH0621920A (en) | 1994-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140304574A1 (en) | Signal segmentation method and crc attachment method for reducing undetected error | |
WO2001082487A1 (en) | Encoding/decoding device and encoding/decoding method | |
KR0147150B1 (en) | Crc error debugging system using decoder | |
JP3875274B2 (en) | Method and apparatus for shortened fire code error trapping decoding | |
JP3029738B2 (en) | Error detection method for multiple block transmission frames | |
JPS632370B2 (en) | ||
US20050066258A1 (en) | Error decoding circuit, data bus control method and data bus system | |
JP3237700B2 (en) | Error detection method and error detection system | |
US6691275B1 (en) | Encoder with vector-calculated disparity logic | |
JPS617729A (en) | Device for correcting error burst in compressed circulating block code | |
US20040003334A1 (en) | Efficient method and apparatus for low latency forward error correction | |
JPH10327080A (en) | Syndrome calculation device | |
JPH0468921A (en) | Error correction method for drawing data | |
EP0200124A2 (en) | Decoding method and encoder-decoder for cyclic codes | |
JPH06252874A (en) | Word synchronization detection circuit | |
US20100192046A1 (en) | Channel encoding | |
JP3231713B2 (en) | Cyclic redundancy check calculation method and apparatus | |
JP2584069B2 (en) | Fire code decoder | |
JP2600130B2 (en) | Error correction circuit | |
JPH0481896B2 (en) | ||
JPH0244921A (en) | Error detecting circuit | |
JPH0432317A (en) | Sequential decoder | |
JPH07114377B2 (en) | Single error correction mechanism | |
JPS6276932A (en) | Data transmission repeater | |
JPH0113249B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080204 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090204 Year of fee payment: 9 |
|
LAPS | Cancellation because of no payment of annual fees |