JPH0468618A - Information recording and reproducing device - Google Patents
Information recording and reproducing deviceInfo
- Publication number
- JPH0468618A JPH0468618A JP2175348A JP17534890A JPH0468618A JP H0468618 A JPH0468618 A JP H0468618A JP 2175348 A JP2175348 A JP 2175348A JP 17534890 A JP17534890 A JP 17534890A JP H0468618 A JPH0468618 A JP H0468618A
- Authority
- JP
- Japan
- Prior art keywords
- data
- crc
- information data
- information
- recording
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Detection And Correction Of Errors (AREA)
- Error Detection And Correction (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
本発明は、情報データに積符号及びCRC(Cycli
c Redunclancy Check)を付加して
情報データの誤り検出、訂正を行なう情報記録再生装置
に関するものである。The present invention provides a product code and a CRC (Cycli) for information data.
The present invention relates to an information recording and reproducing apparatus that performs error detection and correction of information data by adding a redundancy check (c. Redundancy Check).
従来、積符号を用いた情報記録再生装置は、第4図のよ
うに、C2方向のパリティを用いて情報データの誤り検
出および訂正を行なうように構成されている。一般に2
つの線形符号C1,C2が与えられたとき、これら2つ
の符号をそれぞれ(n+、に+)符号、(nz 、 k
2 )符号とする。これらの符号を第4図(B)に示す
ように2次元的に配置して行方向にC1、列方向にC2
で符号化すれば、線形(n+ n2.に+ kg )符
号が得られる。この符号が積符号と呼ばれるものである
。Conventionally, an information recording/reproducing apparatus using a product code is configured to detect and correct errors in information data using parity in the C2 direction, as shown in FIG. Generally 2
When two linear codes C1 and C2 are given, these two codes are respectively (n+, ni+) sign and (nz, k
2) Sign. These codes are arranged two-dimensionally as shown in Figure 4 (B), with C1 in the row direction and C2 in the column direction.
If encoded with , a linear (n+n2.+kg) code is obtained. This code is called a product code.
しかしながら第4図(A)に示した上記従来例では、C
2方向の情報データと、C2方向の情報データに基づい
て作成され、付加されたC2パリティの比較のみしか行
なっていない。このため、例えばデータ再生時において
データマークを誤検知し、これにより情報データのバイ
トシフト等が発生すると、これを検知できないという欠
点があった。
本発明は上記従来例に鑑みてなされたもので、情報デー
タの記録時に、積符号によるパリティバイトに加え、こ
のデータのCRCを計算して付加することにより、再生
時における情報データの誤り検知を正確に行なうことが
できる情報記録再生装置を提供することを目的とする。However, in the conventional example shown in FIG. 4(A), C
Only the comparison between the information data in the two directions and the C2 parity created and added based on the information data in the C2 direction is performed. For this reason, for example, if a data mark is erroneously detected during data reproduction and a byte shift of information data occurs as a result, there is a drawback that this cannot be detected. The present invention has been made in view of the above-mentioned conventional example, and when recording information data, in addition to the parity byte using a product code, the CRC of this data is calculated and added, thereby making it possible to detect errors in information data during reproduction. It is an object of the present invention to provide an information recording and reproducing device that can perform accurate information recording and reproducing.
上記目的を達成するために本発明の情報記録再生装置は
以下の様な構成からなる。即ち、情報データに基づいて
前記情報データのCRCコードを算出するCRC算出手
段と、前記CR’C算出手段により算出されたCRCコ
ードと、積符号によるパリティバイトを前記情報データ
に付加して記録媒体に記録する記録手段と、前記記録媒
体より前記情報データを前記パリティバイトと前記CR
Cコートとともに読出す続出手段と、前記続出手段によ
り読出された情報データに基づいて前記CRC算出手段
により算出されたCRCコードと、前記続出手段により
読出されたCRCコートとを比較する比較手段とを備え
る。In order to achieve the above object, the information recording/reproducing apparatus of the present invention has the following configuration. That is, a CRC calculation means for calculating a CRC code of the information data based on the information data, a CRC code calculated by the CR'C calculation means, and a parity byte based on a product code are added to the information data, and the information data is recorded on a recording medium. recording means for recording the information data from the recording medium into the parity byte and the CR;
a CRC code calculated by the CRC calculating means based on the information data read by the successive reading means, and a comparison means for comparing the CRC code read by the successive reading means. Be prepared.
以上の構成において、情報データに基づいて前記情報デ
ータのCRCコードを算出し、その算出されたCRCコ
ートと、積符号によるパリティバイトを情報データに付
加して記録媒体に記録する。この記録媒体より情報デー
タを、そのパリティバイトとCRCコードとともに読出
し、その読出された情報データに基づいて算出されたC
RCコードと、続出されたCRCコートとを比較して読
出された情報データにエラーが発生しているかどうかを
みる。In the above configuration, the CRC code of the information data is calculated based on the information data, and the calculated CRC code and a parity byte based on the product code are added to the information data and recorded on the recording medium. Information data is read out from this recording medium along with its parity byte and CRC code, and a C code is calculated based on the read information data.
The RC code is compared with successively issued CRC codes to see if an error has occurred in the read information data.
以下、添付図面を参照して本発明の好適な実施例を詳細
に説明する。
〈記録データ例の説明 (第2図、第3図)〉第2図は
、情報データ記録の時、その情報データに積符号パリテ
ィC1、C2及びCRCバイトを付加した記録データの
一例を示す図である。図において、最小の口で囲まれた
ブロックは1バイトを表わしている。
このような、情報データの再生時において、データマー
クの誤検知等がなく、正常に再生できればC2方向の誤
り検出も正常となり、かっCRCの値も記録された内容
と、再生時にその再生されたデータに基づいて計算され
た内容とが一致する。これにより、再生された情報デー
タには誤りがないものとして再生処理を終了する。
これに対して、第3図に示すように、データの再生時に
例えばバイトシフトが発生して、3バイトのバイトシフ
トが発生した場合であっても、C2方向の誤り検知では
、異常が検出されない。従って、このままでは誤った再
生情報データを採用してしまうことになる。
しかし、ここで再生した情報データの値をもとにCRC
の値を計算し、この計算した値をCRClとする。この
CRC1と第2図に示すように記録されているCRCと
を比較することにより、CRCコードの不一致が検出さ
れる。こうして、積符号によるC2方向及びC1方向の
誤り検出では検出できなかったバイトシフトによるエラ
ー検出を、CRCにより行なうことができる。
く情報記録再生装置の説明 (第1図)〉第1図は本発
明の一実施例の情報記録再生装置の概略構成を示すブロ
ック図である。
第1図において、101は、本実施例の情報記録再生装
置にデータを記録し、またはこの情報記録再生装置より
データを再生するように指示命令を出力するホストコン
ピュータである。102はホストコンピュータ101と
情報記録再生装置との間でインターフェースを制御する
ホスト・インターフェース部で、例えば5csrなどで
ある。
103は実施例の情報記録再生装置全体を制御するCP
U、104はCPU 103の制御プログラムや各種デ
ータを記憶しているROM、105はCPU103のワ
ークエリアとして使用されるRAMである。
106はバッファメモリで、ホストコンピュータ101
より受信した受信データを一時的に保存している。10
7はディスク・コントローラで、ディスク・インターフ
ェース部111を介してディスク装置112を駆動して
いる。108はECC(エラー検出及び訂正部)で、再
生したデータ(7)CRCエラー或はパリティエラーを
検出すると、そのエラーコードをもとに再生データの訂
正等を行っている。
109はCRC計算部で、情報データをディスク112
に書込む時に、そのデータのCRCを計算してそのデー
タに付加して書込むとともに、ディスク112よりのデ
ータの再生時、その読出したデータに基づいてCRCを
計算している。110はCRC比較部で、ディスク11
2よりのデータの再生時、その再生されたデータに基づ
いて、CRC計算部109で計算されたCRCコートと
ディスク112に記憶されているCRCとを比較して、
データの再生時にエラーが発生したかどうかを調べる。
111はディスク装置112とディスク・コントローラ
107との間のインターフェースを制御するディスク・
インターフェース部で、例えばESDIなどである。1
12はディスクドライブ装置。113はディスク・コン
トローラである。
次に、上記構成に基づく本実施例の情報記録再生装置に
おけるディスク112よりのデータ読$し動作を説明す
る。
ディスク装置112より読出されたデータは、ディスク
・インターフェース部111を通ってディスク・コント
ローラ107及びECClO3を経由しバッファメモリ
106に記憶される。この時、読込みデータにエラーが
あった場合、ECClO3により検知されて、訂正され
る。
しかしながら、例えば第3図に示したように、再生デー
タにバイトシフトが発生したときには、これを検知する
ことができない。そこで、CRC計算部109により、
読出したデータのCRC値を計算し、この計算された値
とディスク装置112より再生したCRCの値とを、C
RC比較部110で比較する。これにより、例えば第3
図に示すような、C1及びC2パリティでは検出できな
いバイトシフトが発生しても、これを検出して訂正する
ことができる。
く再生データのエラー検知動作(第5図)〉第5図は本
実施例の情報記録再生装置におけるディスク112より
の記録データの再生処理を示すフローチャートで、この
処理を実行する制御プログラムはROM104に記憶さ
れている。
まず、ステップS1でディスク装置112よりデータの
読込みが行なわれると、CRC計算部109に指示して
、その再生したデータに基づくCRCを算出する。そし
て、ステップS2ではCRC計算部109で計算したC
RCの値と、実際にディスク装置112から読出したC
RCの値とを比較する。この両者のCRC値が一致すれ
ばステップS3に進み、ディスク112より読出した再
生データをエラーなしとして、ホストコンピュータ10
1に送出する。
一方、ステップS2でこれら両者の値が不一致の場合は
ステップS5に進み、例えばバイトシフト等のエラーが
発生したことを検知し、ステップS6で所定のエラー処
理を行なう。
なお、本実施例では、情報記録再生装置における情報デ
ータエラーの検出の場合で説明したが、本発明はこれに
限定されるものでなく、例えば通信装置、画像処理装置
等の情報転送時のエラー検出時においても、同様にして
情報データのエラー検出を行なうことができる。
以上説明したように本実施例によれば、情報データの記
録の際に、積符号のパリティを付加する以外に、データ
のCRC値を加えて記録する。
こうしてこのデータの再生時に、その再生したデータに
基づいて新たに計算したCRCの値と、再生したCRC
の値とを比較することにより、通常のパリティチエツク
では検出できない、例えばバイトシフト等によるエラー
を検出することができる。Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. <Explanation of recorded data example (Figures 2 and 3)> Figure 2 is a diagram showing an example of recorded data in which product code parity C1, C2 and CRC byte are added to the information data when recording the information data. It is. In the figure, the block surrounded by the smallest opening represents one byte. When reproducing information data, if there is no false detection of data marks and the reproduction is normal, error detection in the C2 direction will also be normal, and the CRC value will also match the recorded content and the reproduced data during reproduction. The content calculated based on the data matches. Thereby, the reproduction process is terminated, assuming that the reproduced information data is free of errors. On the other hand, as shown in Fig. 3, even if a byte shift occurs during data reproduction and a byte shift of 3 bytes occurs, error detection in the C2 direction does not detect any abnormality. . Therefore, if this continues, incorrect reproduction information data will be adopted. However, based on the value of the information data reproduced here, the CRC
Calculate the value of , and let this calculated value be CRCl. By comparing this CRC1 with the CRC recorded as shown in FIG. 2, a mismatch of CRC codes is detected. In this way, error detection due to byte shift, which could not be detected by error detection in the C2 direction and C1 direction using the product code, can be performed using CRC. Description of Information Recording and Reproducing Apparatus (Fig. 1)> Fig. 1 is a block diagram showing a schematic configuration of an information recording and reproducing apparatus according to an embodiment of the present invention. In FIG. 1, 101 is a host computer that outputs an instruction to record data in the information recording/reproducing apparatus of this embodiment or to reproduce data from the information recording/reproducing apparatus. Reference numeral 102 denotes a host interface unit that controls the interface between the host computer 101 and the information recording/reproducing device, and is, for example, 5csr. 103 is a CP that controls the entire information recording and reproducing apparatus of the embodiment.
104 is a ROM that stores control programs and various data for the CPU 103, and 105 is a RAM used as a work area for the CPU 103. 106 is a buffer memory, and the host computer 101
The received data is temporarily stored. 10
A disk controller 7 drives a disk device 112 via a disk interface section 111. Reference numeral 108 denotes an ECC (error detection and correction unit) which, upon detecting a CRC error or parity error in the reproduced data (7), corrects the reproduced data based on the error code. 109 is a CRC calculation unit that stores information data on disk 112;
When data is written to the disk 112, the CRC of the data is calculated and added to the data and written, and when the data is reproduced from the disk 112, the CRC is calculated based on the read data. 110 is a CRC comparison section, and disk 11
When reproducing the data from step 2, the CRC code calculated by the CRC calculation unit 109 is compared with the CRC stored on the disk 112 based on the reproduced data.
Find out if any errors occurred when playing data. A disk controller 111 controls the interface between the disk device 112 and the disk controller 107.
The interface section is, for example, ESDI. 1
12 is a disk drive device. 113 is a disk controller. Next, the operation of reading data from the disk 112 in the information recording/reproducing apparatus of this embodiment based on the above configuration will be explained. Data read from the disk device 112 is stored in the buffer memory 106 via the disk interface section 111, the disk controller 107 and the ECClO3. At this time, if there is an error in the read data, it is detected by the ECClO3 and corrected. However, as shown in FIG. 3, for example, when a byte shift occurs in reproduced data, this cannot be detected. Therefore, the CRC calculation unit 109 calculates
The CRC value of the read data is calculated, and the calculated value and the CRC value reproduced from the disk device 112 are used as the CRC value.
The RC comparison unit 110 compares. This allows, for example, the third
Even if a byte shift occurs that cannot be detected with C1 and C2 parity as shown in the figure, it can be detected and corrected. Error detection operation of reproduced data (Fig. 5)> Fig. 5 is a flowchart showing the process of reproducing recorded data from the disk 112 in the information recording/reproducing apparatus of this embodiment. A control program for executing this process is stored in the ROM 104. remembered. First, when data is read from the disk device 112 in step S1, the CRC calculation unit 109 is instructed to calculate a CRC based on the reproduced data. Then, in step S2, the C calculated by the CRC calculation unit 109
RC value and C actually read from the disk device 112
Compare with the value of RC. If the two CRC values match, the process advances to step S3, and the host computer 100 determines that the playback data read from the disk 112 is error-free.
Send to 1. On the other hand, if these two values do not match in step S2, the process proceeds to step S5, where it is detected that an error such as byte shift has occurred, and predetermined error processing is performed in step S6. In this embodiment, the case of detecting an information data error in an information recording/reproducing device has been described, but the present invention is not limited to this, and for example, detecting an error during information transfer in a communication device, an image processing device, etc. At the time of detection, errors in information data can be detected in a similar manner. As described above, according to this embodiment, when recording information data, in addition to adding the parity of the product code, the CRC value of the data is also added and recorded. In this way, when reproducing this data, the newly calculated CRC value based on the reproduced data and the reproduced CRC value
By comparing the value of , it is possible to detect errors due to byte shifts, etc., which cannot be detected by normal parity checks.
以上説明したように本発明によれば、情報データの記録
時に、積符号によるパリティバイトに加え、このデータ
のCRCを計算して付加することにより、再生時におけ
る情報データの誤り検知を正確に行なうことができる効
果がある。As explained above, according to the present invention, when recording information data, in addition to the parity byte using the product code, the CRC of this data is calculated and added, thereby accurately detecting errors in information data during reproduction. There is an effect that can be done.
第1図は本実施例の情報記録再生装置の概略構成を示す
ブロック図、
第2図は本実施例の情報記録再生装置での記録時のデー
タの一例を示す図、
第3図は本実施例の情報記録再生装置においてバイトシ
フトが発生して再生されたデータの一例を示す図、
第4図(A)は積符号を用いたC2方向のパリティエラ
ー検出の概略を示す図、
第4図(B)は積符号を説明するための図、そして
第5図は本実施例の情報記録再生装置においてディスク
よりのデータ再生時におけるエラー検出処理を示すフロ
ーチャートである。
図中、101・・・ホストコンピュータ、102・・・
ホスト・インターフェース部、103・・・CPU、1
04・・・ROM、105・・・RAM、106・・・
バッファメモリ、107・・・ディスクコントローラ、
108・・・ECC,109・・・CRC計算部、11
・・・CRC比較部、111・・・ディスク・インター
フェース部、112・・・ディスク装置である。
特許出願人 キャノン株式会社
代理人 弁理士 大塚康徳(他1名゛)−;
第
因
OK OK
OK
C2方向の誤り訂正
第
図
(A)
(B)
第
因FIG. 1 is a block diagram showing a schematic configuration of the information recording/reproducing apparatus of this embodiment. FIG. 2 is a diagram showing an example of data recorded by the information recording/reproducing apparatus of this embodiment. FIG. A diagram showing an example of data reproduced with byte shift occurring in the example information recording/reproducing device. FIG. 4(A) is a diagram showing an outline of parity error detection in the C2 direction using a product code. (B) is a diagram for explaining the product code, and FIG. 5 is a flowchart showing error detection processing when reproducing data from a disk in the information recording/reproducing apparatus of this embodiment. In the figure, 101... host computer, 102...
Host interface section, 103...CPU, 1
04...ROM, 105...RAM, 106...
Buffer memory, 107... disk controller,
108...ECC, 109...CRC calculation section, 11
CRC comparison section, 111 disk interface section, 112 disk device. Patent applicant Canon Co., Ltd. agent Patent attorney Yasunori Otsuka (and 1 other person) -; Cause OK OK OK C2 direction error correction chart (A) (B) Cause
Claims (1)
算出するCRC算出手段と、 前記CRC算出手段により算出されたCRCコードと、
積符号によるパリテイバイトを前記情報データに付加し
て記録媒体に記録する記録手段と、 前記記録媒体より前記情報データを前記パリテイバイト
と前記CRCコードとともに読出す読出手段と、 前記読出手段により読出された情報データに基づいて前
記CRC算出手段により算出されたCRCコードと、前
記読出手段により読出されたCRCコードとを比較する
比較手段と、 を備えることを特徴とする情報記録再生装置。[Scope of Claims] CRC calculation means for calculating a CRC code of the information data based on the information data; a CRC code calculated by the CRC calculation means;
a recording means for adding a parity byte based on a product code to the information data and recording it on a recording medium; a reading means for reading the information data together with the parity byte and the CRC code from the recording medium; and by the reading means. An information recording/reproducing apparatus comprising: a comparison means for comparing a CRC code calculated by the CRC calculation means based on the read information data and a CRC code read by the reading means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2175348A JPH0468618A (en) | 1990-07-04 | 1990-07-04 | Information recording and reproducing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2175348A JPH0468618A (en) | 1990-07-04 | 1990-07-04 | Information recording and reproducing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0468618A true JPH0468618A (en) | 1992-03-04 |
Family
ID=15994501
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2175348A Pending JPH0468618A (en) | 1990-07-04 | 1990-07-04 | Information recording and reproducing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0468618A (en) |
-
1990
- 1990-07-04 JP JP2175348A patent/JPH0468618A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6912682B1 (en) | Signal processor for correcting and detecting errors | |
| US5371745A (en) | Error correction apparatus for reproducing data multi-encoded with error correcting code | |
| KR100236367B1 (en) | Error correction method | |
| CN100412979C (en) | Error code correction method and device | |
| JPH0468618A (en) | Information recording and reproducing device | |
| JPH02270168A (en) | Error correction controller | |
| JPH0454655A (en) | Information recording/reproducing device | |
| JP3219318B2 (en) | Error signal correction device | |
| JP2664267B2 (en) | Code error correction device | |
| JP2751415B2 (en) | Error detection and correction circuit | |
| JP3282425B2 (en) | Digital signal recording device | |
| JPS63298777A (en) | Correction system for error detection | |
| JP2539429B2 (en) | Error correction method for read data | |
| JPH04177673A (en) | Information recording and reproducing device | |
| JPS62200577A (en) | Error correcting system | |
| JPH04177676A (en) | Information recorder/reproducer | |
| JP2647646B2 (en) | Error correction method | |
| JP2619528B2 (en) | Error track pointer control method | |
| JP2607366B2 (en) | Disk device | |
| JP2561236B2 (en) | Error correction device | |
| JPH05174505A (en) | Data protective system | |
| JPH03154141A (en) | Information recording and reproducing device | |
| JPH11213575A (en) | Data playback device and data recording / playback device | |
| JPS5818683B2 (en) | Error correction method | |
| JPH03176867A (en) | Data recording and reproducing device |