JPH0244582A - Disk data control method - Google Patents

Disk data control method

Info

Publication number
JPH0244582A
JPH0244582A JP19578488A JP19578488A JPH0244582A JP H0244582 A JPH0244582 A JP H0244582A JP 19578488 A JP19578488 A JP 19578488A JP 19578488 A JP19578488 A JP 19578488A JP H0244582 A JPH0244582 A JP H0244582A
Authority
JP
Japan
Prior art keywords
data
sector
disk
error
errors
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
Application number
JP19578488A
Other languages
Japanese (ja)
Inventor
Toru Yamagishi
亨 山岸
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.)
Victor Company of Japan Ltd
Original Assignee
Victor Company of Japan Ltd
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 Victor Company of Japan Ltd filed Critical Victor Company of Japan Ltd
Priority to JP19578488A priority Critical patent/JPH0244582A/en
Publication of JPH0244582A publication Critical patent/JPH0244582A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To attain the correction of an error while the data of many errors can be corrected by re-recording the data to another sector when the number of errors is a correctable number and goes to be >=a prescribed number. CONSTITUTION:A central processing unit 12 reads the data of the designated sector from a disk drive device 7 by instruction from a high order device 18 and the error correction of the data is executed by an error correcting circuit 15. When the error is <=6 bytes, the unit 12 transfers the data, for which the error-correction is executed in the circuit 15, to the device 18. Out of the read data of one sector, when the error is >=7-8 bytes, the correcting data are reloaded to the other sector on a disk so that the data reading of the sector can not be impossible. Then, the data of the sector, which is first read, are made invalid. After that, the correcting data are transferred to the device 18.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はディスクデータ制御方法に係り、特に光磁気デ
ィスク等におけるディスクデータ制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a disk data control method, and more particularly to a disk data control method for a magneto-optical disk or the like.

従来の技術 光磁気ディスクなどのディスク装置ではデータをセクタ
中位′C−読み占ぎするものがあった。このようなディ
スク装置のデータの読み書きを制御する制御装置におい
ては、データの4込み時にデータに誤り訂正符号を付加
して読出し時にこの誤り訂正符号によりデータのエラー
を検出し、訂正を行なっていた。
Conventional disk devices such as magneto-optical disks read data from the middle of the sector 'C'. In a control device that controls reading and writing of data in such a disk device, an error correction code is added to the data when data is written, and when data is read, errors in the data are detected and corrected using this error correction code. .

この誤り訂正符号は例えば100バイト(Byte)の
データに対して16バイトのリードソ「1七ン符号をイ
」加するものであった。この場合は100←16=11
6バイト内の任意の8バイトのエラーが訂正可能となる
This error correction code was one in which, for example, 16 bytes of lead code were added to 100 bytes of data. In this case, 100←16=11
Any 8-byte error within 6 bytes can be corrected.

したがって、9バイト以上のエラーが発生すると、通常
では訂正は不可能となる。つまり、f−夕の読取りが不
可能となる。
Therefore, if an error of 9 bytes or more occurs, correction is normally impossible. In other words, it becomes impossible to read f-even.

このため、このような制m装置ではデータを、!:込む
時に、その直後に令書込んだデータを読み出して、その
データ内のエラーをSi数し、エラーが例えば7バイト
以上ならば他の代替セクタに占き直すよう制御していた
(例えば特願昭62−200576)。
For this reason, such m-control devices store data, ! : When writing data, the data written immediately after that was read out, the error in that data was counted as Si, and if the error was, for example, 7 bytes or more, control was performed to redirect to another alternative sector (for example, if the error was 7 bytes or more) Gansho 62-200576).

第3図は従来の制御装置のデータ読み出し時の流れ図を
示す。データの読み出し時にはまずディスクより1セク
タ分のデータを読み出して来てエラー訂正を行なう(ス
jツ119.20)。次に8バイトまではエラーg7正
であり、9バイト以七は訂正ができないため、エラーが
9バイト以上あるかどうか判断する(ステップ21)。
FIG. 3 shows a flowchart when reading data in a conventional control device. When reading data, first one sector of data is read from the disk and error correction is performed (Subject 119.20). Next, since the error g7 is positive up to 8 bytes and seven bytes after 9 bytes cannot be corrected, it is determined whether there are errors of 9 or more bytes (step 21).

ここでエラーが9バイト以上のときはデータの読取りが
不nJ能であることをディスク装置が接続されている上
位装置に通知しくステップ22)、エラーが8バイト以
];のときは;]正したデータを上位装置に転送する(
スラップ23)よう制御装置により制御されていた。
If the error is 9 bytes or more, notify the host device to which the disk device is connected that the data cannot be read (Step 22); if the error is 8 bytes or more; Transfer the data to the host device (
Slap 23) was controlled by a control device.

発明が解決しようとする課題 しかるに、従来の制御方法はデータをディスクに古き込
む時にデータ書込み直後に令書込んだデータを読み出し
、ディスクの媒体の状態など悪くデータに生じた場合な
どにはこのときのエラーが例えば7バイト以上ならば他
の代替セクタに書き直すだけで、読み込み時にはエラー
の訂正だけを行っていたため、書き込んだ占後にはデー
タはエラーなしで読み取り可能であるが長時間侵にはデ
ィスクの経時変化によりエラーを発生し、エラーは時間
の経過と共に増大する方向にあるのでエラーが例えば9
バイト以上になるとニジー訂正符Sコによる訂正が不可
能となりデータの再び読み出しが不可能となってしまう
等の問題点があった。
Problems to be Solved by the Invention However, in the conventional control method, when data is written to a disk, the written data is read out immediately after the data is written, and if the condition of the disk medium is bad or something happens to the data, the control method reads out the written data at this time. If the error is, for example, 7 bytes or more, it is simply rewritten to another alternative sector, and only the error is corrected when reading, so after writing, the data can be read without errors, but if the data is read for a long time, the disk Errors occur due to changes over time, and errors tend to increase with the passage of time.
When the number of bytes or more is exceeded, there is a problem that correction using the error correction mark S becomes impossible and it becomes impossible to read the data again.

本発明は上記の点に鑑みてなされたものでう1−タの読
み出し時にデータの書き替えを行ないデータの信頼性を
向上させるディスクデータ制御方法を提供することを目
的どする。
The present invention has been made in view of the above points, and an object of the present invention is to provide a disk data control method that improves data reliability by rewriting data when reading data.

課題を解決するための手段 本発明は誤り=J正符号が付加されたディジタルデータ
をセクタ毎に記録再生するディスク装置のディスクデー
タ制御方法において、面記1セクタ分のディジタルデー
タ中の誤り数を検出する検出手段と、前記検出手段が検
出した前記誤り数が前記誤り訂正符号に基づいて、訂正
可能な数で一定数以上のときに前記誤り訂正符号に基づ
いて訂正した1けフタ分のディジタルデータを+’+f
f記ディスク上の伯のセクタに記録し直すと共にゲイジ
タルデータを読み出したセクタを読取り不可にするよう
前記ディスク装置を制御Jる制御!l′f−段とを具備
してなる。
Means for Solving the Problems The present invention provides a disk data control method for a disk device that records and reproduces digital data to which an error=J positive sign is added sector by sector. a detection means for detecting, and a digital signal corresponding to one digit corrected based on the error correction code when the number of errors detected by the detection means is a correctable number or more based on the error correction code; data +'+f
Control to control the disk device to rewrite data to the sector on the disk f and to make the sector from which the gage digital data has been read unreadable! l'f-stage.

作用 本発明では例えば第1図に示Jような手順でディジタル
データを処理する。まず、ディスク装置αよりディジタ
ルデータを読み出す時にディジタルデータは1セクタ毎
に読み出される(スj°ツブ1)。
Operation In the present invention, digital data is processed in the procedure shown in FIG. 1, for example. First, when reading digital data from the disk device α, the digital data is read sector by sector (Sub 1).

1セクタ分のディジタルデータは誤り訂正された後(ス
テップ2)、他の機器に供給される(ステップ5)。こ
のとき、1セクタ中の誤り数を検出手段により検出し、
誤り数が誤り訂正符号に基づいで・訂正可能な数で、一
定数以上かどうかを判断する(ステップ3)。誤り数が
訂正可能な敢て・、一定数以上のときは制御手段により
誤りIil正したディジタルデータをディスク上の他の
セクタに記録し直し、ディジタルデータを読み出したセ
クタは読取り不可にするようディスク装置を制御しくス
テップ6)、上位装置にデータを転送する(ステップ5
)。
After one sector's worth of digital data is error corrected (step 2), it is supplied to other equipment (step 5). At this time, the number of errors in one sector is detected by the detection means,
It is determined whether the number of errors is correctable based on the error correction code and is greater than or equal to a certain number (step 3). If the number of errors is correctable or exceeds a certain number, the control means re-records the corrected digital data in another sector on the disk, and the sector from which the digital data was read is made unreadable. Control the device (Step 6) and transfer data to the host device (Step 5)
).

したがって誤り数が訂i1可能な数で一定数以上となっ
たときは他のセクタに記録し直すため、エラーの多いデ
ータを誤り訂正符号により訂正可能なうちにエラーを訂
正して記録し直すことがl’1丁能となる。
Therefore, when the number of errors exceeds a certain number that can be corrected, data with many errors should be corrected and re-recorded while it is still possible to correct them using an error correction code, in order to re-record in another sector. becomes l'1 chono.

実施例 第2図は本発明の一実施例のブロック図を示づ。Example FIG. 2 shows a block diagram of one embodiment of the invention.

図中、7は光ディスクを駆動し、データの読書きをする
ディスクドライブ装置、8はディスクドライブ装置¥7
を制御I¥る制御装置、18はディスクドライブ装置7
にデータを供給したり、必要なデータを受は取る上位装
置を示す。
In the figure, 7 is a disk drive device that drives an optical disk and reads and writes data, 8 is a disk drive device ¥ 7
18 is the disk drive device 7.
Indicates a higher-level device that supplies data to or receives necessary data.

制muV装置8は−F位装置18との通信を行なうため
の外部通信用インターフェイス17、データを一時的に
収納するバック716、エラーの訂正を行なうエラー訂
正回路15、ディスクドライブ装置8とデータの送受イ
3を行なうインターフェイス19及び上記の回路を制御
するための中央処理装置12、読み書き可能Cランダム
アクセス可能な記憶装置(RAM)13、読み出し専用
記憶装置(ROM)14とよりなる。
The control muV device 8 has an external communication interface 17 for communicating with the -F device 18, a bag 716 for temporarily storing data, an error correction circuit 15 for correcting errors, and a data exchanger with the disk drive device 8. It consists of an interface 19 for transmitting and receiving data 3, a central processing unit 12 for controlling the above-mentioned circuits, a read/write C randomly accessible memory (RAM) 13, and a read only memory (ROM) 14.

外部通信用インターフェイス17、バッファ16、エラ
ー訂正回路15及びディスクドライブ用インターフェイ
ス9はバス10に接続されデータのやりとりを行なう。
An external communication interface 17, a buffer 16, an error correction circuit 15, and a disk drive interface 9 are connected to a bus 10 for data exchange.

また、外部通信用インターフェイス17、エラー訂正回
路15及びディスクドライブ用インターフェイス9【よ
バス2にも接続されており、同様にバス2に接続された
中央処理装置12、RAM13、ROM14によりデー
タの伝送が制御される。
It is also connected to an external communication interface 17, an error correction circuit 15, and a disk drive interface 9 [Yo bus 2], and data transmission is performed by the central processing unit 12, RAM 13, and ROM 14, which are also connected to the bus 2. controlled.

f−タに生じたエラーは中央処理装置12からの指令に
より駆動するエラー訂正回路15がバッフi16よりデ
ータを読み込み訂正演算を行なって訂正される。エラー
訂正回路15で訂正されたデータは再びバッファ16に
戻される。
Errors occurring in the f-tater are corrected by an error correction circuit 15 driven by a command from the central processing unit 12, which reads data from the buffer i16 and performs a correction operation. The data corrected by the error correction circuit 15 is returned to the buffer 16 again.

また、外部の上位装e118にデータを転送する際は中
央処理装置12からの指令により外部通信用インターフ
ェイス17を駆動しでバッファ16よりデータを取り込
み、上位装置18に転送する。
Further, when transferring data to an external host device e118, the external communication interface 17 is driven by a command from the central processing unit 12, data is taken in from the buffer 16, and the data is transferred to the host device 18.

一方、ディスクにデータを書込む際はディスクドライブ
装置用インターフェイス9が中央処理装置12からの指
令に応じてバック116よりデータを取り込み、ディス
クドライブ装置7に転送する。このとき、ディスク上の
どのセクタに記録するかをディスクドライブ装置7に通
知するよう構成されている。
On the other hand, when writing data to a disk, the disk drive device interface 9 takes in data from the back 116 in response to a command from the central processing unit 12 and transfers it to the disk drive device 7. At this time, it is configured to notify the disk drive device 7 in which sector on the disk the data is to be recorded.

次に本実施例の装置の主要な動作について第1図と共に
説明する。第1図はディスクよりデータを読み出す際の
フローチャートをボす。
Next, the main operations of the apparatus of this embodiment will be explained with reference to FIG. FIG. 1 shows a flowchart for reading data from a disk.

まず、上位装置1Bよりデータ読出し指令を受けると中
央処理装置12はこの指令に基づいてディスクドライブ
用インターフェイス9を介してディスクドライブ装置7
より上位¥’!;118より指定されたセクタのデータ
を読み出させる(ステップ1)。次にエラー訂正回路1
5でディスクより読み出してきたデータのエラーをS」
正する(ステップ2)。このとき、エラーが何バイト分
あるかがわかる。
First, upon receiving a data read command from the host device 1B, the central processing unit 12 sends the data to the disk drive device 7 via the disk drive interface 9 based on this command.
Higher ¥'! ; The data in the sector designated by 118 is read out (step 1). Next, error correction circuit 1
5. Errors in the data read from the disk in step 5.
Correct (Step 2). At this time, you can see how many bytes there are errors.

中央処理装置12ではエラーが9バイト以上あれば、エ
ラー訂正回路15ではり“べてのエラーを訂正するのが
不可能であり、読取りができないため、外部通信用イン
ターフェイス17を介して上位装置18に読取り不+Q
能であることを通知する(ステップ4)。
In the central processing unit 12, if there is an error of 9 bytes or more, the error correction circuit 15 cannot correct all the errors, and therefore cannot be read. Unreadable +Q
(Step 4).

また、エラーが6バイト以トのときは、エラーの訂正が
十分にi+J能であるため、エラー訂正回路15で1ラ
ー訂正後、バス10より外部通信用インターフェイス1
7を介してデータが上位装置18に転送される(ステッ
プ5)。
In addition, when the error is 6 bytes or more, since the error correction is sufficiently i+J, after 1 error is corrected by the error correction circuit 15, the bus 10 is connected to the external communication interface 1.
7, the data is transferred to the host device 18 (step 5).

ディスクより読み出した1セクタのデータのうらエラー
が7バイト又は8バイト分になるときは次回にディスク
より同セクタを読み出したときにディスクの劣化などに
より、エラーが増大し、9バイト以上となり、同セクタ
のデータの読取りが不可能となってしまわないように、
訂正したデータをディスク上の読み出してきたセクタと
は別の他の代替セクタに書き替え、初めに読み出してき
たセクタのデータを無効にする(ステップ6)。
If the error on the back of one sector of data read from the disk is 7 or 8 bytes, the next time the same sector is read from the disk, the error will increase due to disk deterioration and become 9 bytes or more, and the same error will occur. To prevent the data in the sector from becoming unreadable,
The corrected data is rewritten to another alternative sector on the disk that is different from the sector that was read out, thereby invalidating the data in the sector that was read out first (step 6).

その後、訂正したデータを上位装置8に転送する(ステ
ップ5)。
Thereafter, the corrected data is transferred to the host device 8 (step 5).

発明の効果 上述の如く、本発明によれば、誤り訂正符号に基づいて
訂正可能な数で、一定数以上のときは誤り訂正したディ
ジタルデータを他のセクタに記録し直すため、訂正可能
なうちに誤りのあるディジタルデータを訂正してディス
クに記録し直されているのでディスクのデータの信頼性
を向トでき、また、訂正した後に記録し直しているので
誤り数が少なくなり、再度読み出した際の誤り訂正時間
も減少することができる等の特長を有する。
Effects of the Invention As described above, according to the present invention, when the number of errors that can be corrected based on the error correction code is greater than a certain number, the error-corrected digital data is re-recorded in another sector. Errors in the digital data are corrected and re-recorded on the disc, increasing the reliability of the data on the disc.Furthermore, since the data is re-recorded after correction, the number of errors is reduced and data can be read out again. It has the advantage of reducing the time required for error correction.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の動作を説明するフローチャ
ート、第2図は本発明の一実施例のブロック図、第3図
は従来の一例の動作を説明り−るためのフローチャート
である。 7・・・ディスクドライブ装置、8・・・1blI御装
置、12・・・中央処理装置、15・・・エラー訂正回
路、18・・・上位装置。 特許出願人 日本ビクター株式会社 1「11
Fig. 1 is a flowchart for explaining the operation of an embodiment of the present invention, Fig. 2 is a block diagram of an embodiment of the invention, and Fig. 3 is a flowchart for explaining the operation of a conventional example. . 7... Disk drive device, 8... 1blI control device, 12... Central processing unit, 15... Error correction circuit, 18... Host device. Patent applicant: Victor Japan Co., Ltd. 1 “11”

Claims (1)

【特許請求の範囲】 誤り訂正符号が付加されたディジタルデータをセクタ毎
に記録再生するディスク装置のディスクデータ制御方法
において、 前記ディスクより前記ディジタルデータを読み出し、前
記ディジタルデータを訂正する際、誤り検出手段により
前記所定セクタ中のディジタルデータの誤り数を検出し
、前記所定セクタ分のディジタルデータ中の誤り数が前
記誤り訂正符号に基づいて訂正可能で、かつ、所定の数
以上のときは制御手段により前記誤り訂正符号に基づい
て訂正した前記所定セクタ分のディジタルデータを前記
ディスク上の他のセクタに記録し直すと共に前記ディス
ク上のディジタルデータを読み出したセクタを使用不可
とするよう前記ディスク装置を制御することを特徴とす
るディスクデータ制御方法。
[Scope of Claims] A disk data control method for a disk device that records and reproduces digital data added with an error correction code sector by sector, comprising: error detection when reading the digital data from the disk and correcting the digital data; means detects the number of errors in the digital data in the predetermined sector, and when the number of errors in the digital data in the predetermined sector is correctable based on the error correction code and is equal to or greater than the predetermined number, the control means detects the number of errors in the digital data in the predetermined sector; The disk device is configured to re-record the digital data of the predetermined sector corrected based on the error correction code in other sectors on the disk, and to make the sector from which the digital data on the disk was read unusable. A disk data control method characterized by controlling.
JP19578488A 1988-08-05 1988-08-05 Disk data control method Pending JPH0244582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19578488A JPH0244582A (en) 1988-08-05 1988-08-05 Disk data control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19578488A JPH0244582A (en) 1988-08-05 1988-08-05 Disk data control method

Publications (1)

Publication Number Publication Date
JPH0244582A true JPH0244582A (en) 1990-02-14

Family

ID=16346911

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19578488A Pending JPH0244582A (en) 1988-08-05 1988-08-05 Disk data control method

Country Status (1)

Country Link
JP (1) JPH0244582A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999008273A1 (en) * 1997-08-12 1999-02-18 Sony Corporation Signal recording and reproducing device and method for managing defect of signal recording area

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6161273A (en) * 1984-08-31 1986-03-29 Nec Corp Control system of memory device
JPS63157374A (en) * 1986-12-19 1988-06-30 Matsushita Electric Ind Co Ltd Code error correcting method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6161273A (en) * 1984-08-31 1986-03-29 Nec Corp Control system of memory device
JPS63157374A (en) * 1986-12-19 1988-06-30 Matsushita Electric Ind Co Ltd Code error correcting method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999008273A1 (en) * 1997-08-12 1999-02-18 Sony Corporation Signal recording and reproducing device and method for managing defect of signal recording area
US6198709B1 (en) 1997-08-12 2001-03-06 Sony Corporation Signal recording/reproducing device and fault control method for signal recording area

Similar Documents

Publication Publication Date Title
US5528571A (en) Optical disc apparatus
JP2854391B2 (en) Method for assembling data groups on DAT tape
KR100430657B1 (en) Signal processor for correcting and detecting errors
GB2404830A (en) Data with multiple sets of error correction codes
JPH02216672A (en) Optical disk drive device
JPH0461374B2 (en)
JPH0244582A (en) Disk data control method
JP2539417B2 (en) Information recording method
JP3584566B2 (en) Data error correction device
JPS58181162A (en) Information storage method
JP2623238B2 (en) Information playback method
JPS63195877A (en) Data recording and reproducing system
JPH01307063A (en) Optical disk recording and reproducing device
JPS60176136A (en) Data recording method in magnetic recording and reproducing device
JPS62287472A (en) Magnetic tape controlling device
JP2604489B2 (en) Optical disk processing device
TW425545B (en) Coding error correction detection device
JPH0798941A (en) Recording / reproducing apparatus using disc type recording medium
JPH06202819A (en) Disk device
JPS6013360A (en) Storage device
JPS6344364A (en) Optical disk controller
JPH03245369A (en) Information recording and reproducing device
JPH0258768A (en) Disk controller
JPH04177676A (en) Information recorder/reproducer
JPH0464978A (en) Magnetic disk device