JP3898736B2 - system - Google Patents
system Download PDFInfo
- Publication number
- JP3898736B2 JP3898736B2 JP2006291942A JP2006291942A JP3898736B2 JP 3898736 B2 JP3898736 B2 JP 3898736B2 JP 2006291942 A JP2006291942 A JP 2006291942A JP 2006291942 A JP2006291942 A JP 2006291942A JP 3898736 B2 JP3898736 B2 JP 3898736B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- writing
- optical disk
- write
- host
- 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 - Lifetime
Links
Images
Description
この発明は、ホストと、CD−R(データ書き込み可能なCD)やCD−R/E(データ書き込み及び消去可能なCD)等の光ディスクに対してデータの記録及び再生を行なう光ディスク装置とからなるシステムに関する。 The present invention comprises a host and an optical disc apparatus that records and reproduces data with respect to an optical disc such as a CD-R (data writable CD) or CD-R / E (data writable and erasable CD). About the system.
CD−RやCD−R/E等の光ディスクの記録フォーマットはオレンジブックに規定されており、そのオレンジブックにはデータの書き込み継目、すなわちデータの書き始めと書き終わりのルールが明確に決められている。
また、データの書き込み単位であるデータセクタには、必ずリンク(Link),ランイン(RunIn),ランアウト(RunOut)などの冗長セクタを付加するようにしている。
The recording format of optical discs such as CD-R and CD-R / E is defined in the Orange Book, and in the Orange Book, rules for data writing seam, that is, data writing start and write end are clearly determined. Yes.
Also, redundant sectors such as a link (Link), run-in (RunIn), and run-out (RunOut) are always added to the data sector, which is a data writing unit.
これは、継目でデータが途切れることを前提にしているので、同期やインタリーブの関係上必要になるのである。その継目でデータが途切れることを前提にしているのは、以前書き込んだデータや今後書き込むデータを含めたエンコードが不可能なことや、同期が外れないように正確にデータを書き始めることが非常に難しいことであるからだと推測される。 This is based on the assumption that data is interrupted at the joint, and is necessary for synchronization and interleaving. The assumption that the data is interrupted at the joint is that encoding including previously written data and data to be written in the future is impossible, and it is very important to start writing data accurately so that synchronization is not lost Presumably because it is difficult.
ところで、光ディスクでは記録フォーマットの性格上、データの書き込み単位はある程度大きなものになる。
従来の光ディスク装置では、データ書き込み中の一時停止をしないようにしており、ホストから光ディスク装置の書き込み速度以上の転送レートでデータを送らないと書き込みが中断してしまって、次にデータを書き足すことができなくなって書き込みに失敗してしまう。これをバッファアンダーランと称する。
By the way, in the optical disc, the unit of data writing is somewhat large due to the nature of the recording format.
In conventional optical disk devices, data is not paused during data writing. If data is not sent from the host at a transfer rate higher than the writing speed of the optical disk device, writing is interrupted and data is then added. I can't write, and writing fails. This is called buffer underrun.
つまり、従来の光ディスク装置では、トラックや光ディスクを1回の書き込みで形成する必要があり、その書き込み方式名もトラックアットワンス(Track at once)やディスクアットワンス(Disk at once)等の名称になっている。 That is, in the conventional optical disc apparatus, it is necessary to form a track or an optical disc by one writing, and the writing method name is also a name such as Track at once or Disc at once. ing.
このことはデータの高速書き込みになるほどシビアになり、ユーザに取ってデータの書き込み失敗は非常に深刻な問題になる。なぜなら、例えば、CD−Rの場合ではライトワンスなので、書き込みの失敗はそのディスクの損失になり、高価な光ディスクや過去に書き込んだデータの損失リスクを常に持たなければならない。 This becomes more severe as data is written at a higher speed, and data writing failure becomes a very serious problem for the user. This is because, for example, in the case of a CD-R, write-once causes a loss of the disk, and there is always a risk of loss of an expensive optical disk or data written in the past.
上記データの書き込みの一時停止をしない理由の1つには、エンコーダチップが一時停止を考慮していないので、データの先頭で本来前のセクタのデータが入る所にダミーデータを挿入して書き出し、データの連続性が失われることにあった。 One of the reasons for not pausing the writing of the data is that the encoder chip does not consider the pausing, so the dummy data is inserted and written at the beginning of the data where the data of the previous sector originally enters, The continuity of data was lost.
そこで、データの書き込みの一時停止と再開を行なっても後から連続的に正常にデータを読み出せるようにするとよい。 Therefore, it is preferable that data can be continuously read out normally after the pause and restart of data writing.
また、データの書き込みの終点と始点の部分の継目でフォーマット上、論理的なデータの連続性が確保されていたとしても、物理的にその継目がぴったりと一致していないと正常なデータ再生は行なえない。 Even if the continuity of logical data is ensured in the format at the seam between the end point and the start point of data writing, normal data reproduction is not possible if the seam is not exactly the same. I can't do it.
通常、±2ビット程度のフレームシンクのずれは許容されていて正常にデータ再生を行なえるが、従来の光ディスク装置のように、ウォブルの同期信号から回転制御に頼った書き込み開始を行なっていては繰り返し誤差が何十ビットにも及ぶので、この部分で同期がはずれて数フレームのデータが欠落してしまうという問題があった。 Normally, a frame sync deviation of about ± 2 bits is allowed and data can be reproduced normally. However, as in the conventional optical disk device, writing start depending on the rotation control from the wobble synchronization signal is not allowed. Since the repetitive error reaches several tens of bits, there is a problem that synchronization is lost at this portion and data of several frames is lost.
そこで、データの書き込みの継目を再生上問題が無いレベルにするために前回書き込んだデータの終端を正確に検出できるようにするとよい。 Therefore, it is preferable that the end of the previously written data can be accurately detected in order to make the data writing seam at a level where there is no problem in reproduction.
さらに、低コストで前回書き込んだデータの終端を正確に検出できるようにするとよい。 Furthermore, it is preferable that the end of the previously written data can be accurately detected at low cost.
また、従来の光ディスク装置では、1トラックを1回で書き込まなければならないので、ホストからのデータ転送が遅かったり、バッファRAMで吸収できないような転送の脈動があると書き込みを失敗してしまう。
そこで、光ディスクへのデータの書き込みの際、ホストは常にディスクよりも早い転送レートで安定的にデータを送り続ける必要がある。
Further, in the conventional optical disc apparatus, since one track must be written at a time, data transfer from the host is slow, or if there is a pulsation of transfer that cannot be absorbed by the buffer RAM, the writing fails.
Therefore, when writing data to the optical disc, the host must always send data stably at a faster transfer rate than the disc.
しかし、実際には転送レートの早いホストも遅いホストも存在し、上述したデータ転送の制約が光ディスク使用上の大きな足かせになっている。
そこで、ホストのソフトウェアにはテストモードを用意しており、模擬書き込みを行なうことによってこの種の書き込み失敗を減少させている。
しかし、このソフトウェアはデータの書き込みに倍の時間がかかり、マルチタスクOSにおいては刻々とマシンの状況が変化するので完全に安全ではないという問題があった。
However, there are actually hosts with a fast transfer rate and hosts with a slow transfer rate, and the above-mentioned restrictions on data transfer are a major obstacle to the use of optical discs.
Therefore, a test mode is provided in the host software, and this type of writing failure is reduced by performing simulated writing.
However, this software has a problem that it takes twice as much time to write data, and the multitask OS is not completely safe because the machine status changes every moment.
この発明は上記の点に鑑みてなされたものであり、ホストからのデータ転送が間に合わないことによるデータ書き込み失敗を防止することを目的とする。
さらに、ホストからのデータ転送が間に合わないときのデータ書き込みの信頼性を向上させるとよい。
The present invention has been made in view of the above points, and an object of the present invention is to prevent a data write failure due to a lack of data transfer from a host in time.
Furthermore, it is preferable to improve the reliability of data writing when data transfer from the host is not in time.
この発明は上記の目的を達成するため、次のシステムを提供する。
(1)ホストと、光ディスクに対してデータの記録を行う光ディスク装置とを備え、上記ホストは、上記光ディスク装置にライトコマンドとデータの転送を行い、上記光ディスク装置は、上記ライトコマンドと所定量のデータを受け取ると、上記光ディスクに対して上にリンクブロックとランインブロックとを後にランアウトブロックをそれぞれ設けたユーザデータブロックを書き込み単位にしてデータ書き込みを開始し、データ書き込み中に上記ホストからのデータ転送が間に合わない場合、上記光ディスクに対してデータの記録中にランアウトブロックを書き込まずに書き込みを一時中断するシステム。
In order to achieve the above object, the present invention provides the following system.
(1) A host and an optical disk device that records data on the optical disk are provided, the host transfers a write command and data to the optical disk device, and the optical disk device transmits the write command and a predetermined amount of data. When data is received, data writing is started with the user data block in which the link block and the run-in block are provided on the optical disc and the run-out block is provided later as a writing unit. A system that temporarily suspends writing without writing a run-out block during data recording to the optical disc when transfer is not in time.
(2)上記のようなシステムにおいて、上記光ディスク装置は、データ書き込みを再開する場合、上記リンクブロックを書き込まずにデータの書き込みの終点及び始点部分でCIRC復調によるデータの連続性を維持する書き込みを行うシステム。 (2) In the system as described above, when resuming data writing, the optical disc apparatus performs writing to maintain data continuity by CIRC demodulation at the end point and start point of data writing without writing the link block. System to do.
(3)上記のようなシステムにおいて、上記光ディスク装置は、バッファRAMを備え、上記所定量のデータは上記バッファRAMを一杯にするデータであるシステム。 (3) In the system as described above, the optical disc apparatus includes a buffer RAM, and the predetermined amount of data is data that fills the buffer RAM.
(4)上記のようなシステムにおいて、上記光ディスク装置は、データを所定のレングス書き終えた後に上記ランアウトブロックを書き込むシステム。 (4) In the system as described above, the optical disc apparatus writes the runout block after the data has been written to a predetermined length.
(5)上記のようなシステムにおいて、上記光ディスク装置は、上記ホストから受け取ったデータをエンコードするエンコーダと、上記書き込みを一時中断する場合、上記エンコーダによるエンコード動作を中断し、エンコード途中のデータ書き込み再開時に引き続き上記光ディスクに書き込まれるデータを記憶するRAMとを備えたシステム。 (5) In the system as described above, the optical disc apparatus, when the encoder that encodes the data received from the host and the writing is temporarily interrupted, interrupts the encoding operation by the encoder and resumes the data writing during the encoding. A system comprising a RAM for storing data to be written to the optical disc sometimes at times.
この発明によるシステムは、ホストからのデータ転送が間に合わないことによるデータ書き込み失敗を防止することができる。 The system according to the present invention can prevent a data write failure due to a lack of data transfer from the host.
以下、この発明を実施するための最良の形態を図面に基づいて具体的に説明する。
図1は、この発明の一実施形態の光ディスク装置の構成を示すブロック図である。この光ディスク装置は、光ディスク1,スピンドルモータ2,モータドライバ3,サーボ4,光ピックアップ5,リードアンプ6,CDデコーダ7,CD−ROMデコーダ8,バッファマネージャ9,バッファRAM10,ATPI/SCSIインタフェース11,D/Aコンバータ12,ATIPデコーダ13,CDエンコーダ14,CD−ROMエンコーダ15,レーザコントロール回路16,CPU17,ROM18,及びRAM19からなる。
Hereinafter, the best mode for carrying out the present invention will be specifically described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of an optical disc apparatus according to an embodiment of the present invention. The optical disk apparatus includes an
この光ディスク装置は、光ディスク1をスピンドルモータ2によって回転駆動させる。スピンドルモータ2はモータドライバ3とサーボ4によって線速度が一定になるように制御される。その線速度は段階的に変更が可能である。
光ピックアップ5は、図示を省略した半導体レーザ,光学系,フォーカスアクチュエータ,トラックアクチュエータ,受光素子,及びポジションセンサを内蔵しており、レーザ光Lを光ディスク1の記録面に照射する。
In this optical disk apparatus, an
The
また、光ピックアップ5はシークモータによってスレッジ方向に移動可能である。これらのフォーカスアクチュエータ,トラックアクチュエータ,シークモータは受光素子,ポジションセンサから得られた信号を基にしてモータドライバ3とサーボ4によってレーザスポットを光ディスク1上の目的の場所に位置するように制御する。
The
データリード(データ再生)の場合、光ピックアップ5で得られた再生信号をリードアンプ6で増幅して2値化した後、CDデコーダ7に入力してデインターリーブとエラー訂正の処理を行なう。さらに、そのデインターリーブとエラー訂正の処理後のデータをCD−ROMデコーダ8に入力してデータの信頼性を高めるためのエラー訂正処理を行なう。
In the case of data read (data reproduction), the reproduction signal obtained by the
その後、CD−ROMデコーダ8で処理したデータをバッファマネージャ9によって一旦バッファRAM10に蓄積し、セクタデータとして揃ったときにATAPI/SCSIインタフェース11によってホストへ一気に転送する。
また、音楽データの場合、CDデコーダ7から出力したデータをD/Aコンバータ12に入力してアナログのオーディオ信号を取り出す。
Thereafter, the data processed by the CD-
In the case of music data, the data output from the
次に、データライト(データ書き込み)の場合、ATAPI/SCSIインタフェース11によってホストから転送されたデータを受信すると、そのデータをバッファマネージャ9によって一旦バッファRAM10に蓄積する。
Next, in the case of data write (data write), when data transferred from the host by the ATAPI /
バッファRAM10にある程度のデータが溜ったときにライトを開始するが、その前にレーザスポットを書き込み開始地点に位置させる。その書き込み開始地点はトラックの蛇行によって予め光ディスク1に刻まれているウォブル信号によって求められる。そのウォブル信号にはATIPと称する絶対時間情報が含まれており、ATIPデコーダ13によってATIPの情報を取り出す。
Writing starts when a certain amount of data is accumulated in the
また、ATIPデコーダ13が生成する同期信号はCDエンコーダ14に入力されて正確な位置でのデータの書き出しを可能にしている。
バッファRAM10のデータはCD−ROMエンコーダ15やCDエンコーダ14でエラー訂正コードの付加やインターリーブを行なってレーザコントロール回路16,光ピックアップ5を介して光ディスク1に記録する。
The synchronization signal generated by the
The data in the
上記CPU17等がこの発明に係る機能を果たす。また、データ書き込み可能な光ディスクに対するデータの記録及び再生を行なうと共に、光ディスクに対してデータ書き込みの終点及び始点部分でCIRC復調によるデータ連続性を維持する書き込みを行なう手段と、光ディスクに対して前回書き込まれたデータの終端から正確に書き始めるタイミングを取るチャンネルビットのPLLをカウントする手段の機能を果たす。
The
また、光ディスクに対して前回書き込まれたデータの終端から正確に書き始めるタイミングを取るフレームシンク信号をカウントする手段の機能を果たす。
さらに、光ディスクに対するデータの書き込み中にホストからのデータ転送が間に合わないときはデータ書き込みを一時停止し、ホストからデータが充分に送られてきたときにデータ書き込みを再開する手段の機能を果たす。
It also functions as a means for counting the frame sync signal that takes the timing to start writing accurately from the end of the previously written data on the optical disc.
Further, when the data transfer from the host is not in time during the writing of data to the optical disc, the data writing is temporarily stopped, and the data writing is resumed when the data is sufficiently sent from the host.
さらにまた、光ディスクに対するデータの書き込み中にホストからのデータ転送が間に合わないときはデータ書き込みを一時停止し、光ディスクに対するデータの書き込み速度を落した後にデータ書き込みを再開する手段の機能を果たす。 Furthermore, when data transfer from the host is not in time during data writing to the optical disk, the data writing is temporarily stopped, and the function of means for restarting data writing after reducing the data writing speed to the optical disk is achieved.
図2はオレンジブックに規定されているCD−R,CD−R/Eのデータ書き込み単位のフォーマットを示す図である。通常、データインターリーブや同期引込みの関係から、ユーザデータブロック(User Data blocks)にデータを書き込んだだけでは完全にそのデータを読み出すことができない。そこで、ユーザデータブロックの前と後にそれぞれ5ブロックと2ブロックの冗長ブロックを設けることによってユーザデータブロックを保護し、通常の光ディスク装置でも確実にデータを読み出せるようにしている。 FIG. 2 is a diagram showing a format of a data writing unit of CD-R and CD-R / E defined in Orange Book. Usually, because of data interleaving and synchronization pull-in, it is not possible to read the data completely just by writing the data in the user data block (User Data blocks). Therefore, the user data block is protected by providing 5 blocks and 2 redundant blocks before and after the user data block, respectively, so that data can be surely read even by a normal optical disk apparatus.
すなわち、図2に示すように、ユーザデータブロックの前に、リンクブロック(Link block),ランインブロック1(Run−in block1),ランインブロック2(Run−in block2),ランインブロック3(Run−in block3),ランインブロック4(Run−in block4),ランインブロック5(Run−in block5)の5ブロックの冗長ブロックを、後にランアウトブロック1(Run−out block1),ランアウトブロック2(Run−out block2)の2ブロックの冗長ブロックを設けている。 That is, as shown in FIG. 2, before the user data block, a link block (Link block), a run-in block 1 (Run-in block 1), a run-in block 2 (Run-in block 2), and a run-in block 3 ( Run-in block 3), run-in block 4 (Run-in block 4), run-in block 5 (Run-in block 5), 5 redundant blocks, run-out block 1 (Run-out block 1), run-out block 2 ( Two redundant blocks of Run-out block 2) are provided.
図3は図2に示したユーザデータブロックに対して複数回に分けてデータを書き込んだときのフォーマットの一例を示す図である。この実施形態の光ディスク装置は、ホストからデータを受け取り、バッファRAM10がそのデータで一杯になるとスタートライト(Start Write)を実行する。
FIG. 3 is a diagram showing an example of a format when data is written in a plurality of times for the user data block shown in FIG. The optical disk apparatus of this embodiment receives data from the host, and executes start write (Start Write) when the
そして、ユーザデータブロックを書き始めて、バッファRAM10のデータが残り少なくなると、ポーズライト(Pause Write)を実行して書き込みを一時停止する。その後、ホストからのデータ転送を待ち、バッファRAM10がデータで一杯になったときにリスタートライト(Restart Write)を実行し、ポーズライトでデータ書き込みを一時停止した位置から続けてデータを書き始める。
When the user data block starts to be written and the remaining data in the
このように、バッファRAM10のデータが少なくなるとポーズライトでデータ書き込みを一時停止し、バッファRAM10にデータが一杯になるとリスタートライトでデータ書き込みを再開する処理を適宜繰り返して、ホストからのデータを全て書き込んだら最後にストップライト(Stop Write)で書き込みを完了する。
As described above, when the data in the
ところで、従来の光ディスク装置で上述のようなデータの書き込みを行なわなかったのは、オレンジブックに規定されていないこともさることながら、次の2つの点の障害ポイントがあったからである。 By the way, the reason why the above-mentioned data is not written in the conventional optical disk apparatus is that there are the following two points of failure as well as not being defined in the Orange Book.
第1の点は、データの書き込み単位はホスト(ファイルシステム)が決定し、それを1回で書き込まなければならないという固定観念から発している。
確かに、ユーザデータブロックだけでは再生できないというCD等の光ディスクに特有のフォーマットのためにホストのデータ書き込み単位を変えることはできない。
The first point stems from the fixed idea that the host (file system) determines the data write unit and it must be written once.
Certainly, the data write unit of the host cannot be changed due to a format peculiar to an optical disc such as a CD that cannot be reproduced only by the user data block.
しかし、データの連続性が維持されるのならばホストのデータ書き込み単位を分けて書き込むようにしても問題はない。
そこで、この実施形態の光ディスク装置では、データの連続性を維持してホストからのデータ書き込み単位を分けて書き込むように制御している。
However, if data continuity is maintained, there is no problem even if the host data write unit is divided and written.
Therefore, in the optical disc apparatus of this embodiment, control is performed so that data continuity is maintained and data write units from the host are written separately.
つまり、オレンジブックに規定されたルールに沿った論理的なデータ書き込み単位と、実際に光ディスクにデータを書き込むときの物理的なデータ書き込み単位を分けるのである。そして、ホストは必ずデータを連続して送ってくるので、エンコーダが一時停止を行なうようにすれば、データの物理的な書き込み単位を分けることは容易に行なえる。 In other words, the logical data writing unit according to the rules defined in the Orange Book is divided from the physical data writing unit when data is actually written to the optical disc. Since the host always sends data continuously, it is easy to divide the physical write unit of data if the encoder pauses.
次に、そのデータ書き込み制御について説明する。
図4はそのデータ書き込み制御を行なう回路構成例を示すブロック図である。
この回路にポーズ(Pause)信号が入力されるとCD−ROMエンコーダ15とCIRCエンコーダ20へのクロック(Clock)が中断されるので、CD−ROMエンコーダ15とCIRCエンコーダ20はエンコード動作を中断し、ライトデータ(Write Data)の出力を中止する。
Next, the data write control will be described.
FIG. 4 is a block diagram showing a circuit configuration example for performing the data write control.
When a pause signal is input to this circuit, the clock to the CD-
また、ポーズ信号でライトゲート(Write Gate)もマスクするので、光ディスクへのデータ書き込みも中断する。
しかし、RAM21,22にはエンコード途中のデータがそのまま記憶されているので、ポーズ信号の解除によってそのデータがライトデータとして引き続き出力され、ライトゲートのマスク解除と共に光ディスクへの書き込みを再開する。ただし、データ書き込みの一時停止と再開にはポーズ信号を高度に同期化させている。
Further, since the write gate is also masked by the pause signal, data writing to the optical disc is also interrupted.
However, since the
このようにして、光ディスクに対してデータ書き込みの終点及び始点部分でCIRC復調によるデータ連続性を維持する書き込みを行なうので、光ディスクに対してデータの書き込みを一時停止し、その後に再開して書き込んでも、後からそのデータを正確に且つ連続的に読み出すことができる。
すなわち、データの書き込みの一時停止と再開を行なっても後からデータを連続的且つ正常に読み出すことができる。
In this way, since writing is performed to maintain data continuity by CIRC demodulation at the end point and start point of data writing on the optical disc, data writing to the optical disc is paused and then resumed and written. Later, the data can be read out accurately and continuously.
In other words, data can be continuously and normally read out even if data writing is paused and resumed.
次に、障害ポイントの第2点は、従来の光ディスク装置の書き込み制御では、データ書き始めのビーム位置をビットクロックの誤差レベルで決められなかったからである。 Next, the second failure point is that the beam position at the start of data writing cannot be determined by the error level of the bit clock in the writing control of the conventional optical disk apparatus.
図5はオレンジブックに規定されている光ディスク上のデータの書き終わりと書き始めの位置関係を示す図である。
このフォーマットに示すように、4EFMフレーム(4EFM Frames)というかなり大きなデータの重なりが許容されている。これは、始めから前提にしていないが、これでは訂正能力の高いCD等の光ディスクでもフレーム同期が外れてしまって正常な再生は行なえない。
FIG. 5 is a diagram showing the positional relationship between the end of writing data and the start of writing on the optical disc defined in the Orange Book.
As shown in this format, a considerably large data overlap of 4 EFM frames (4 EFM Frames) is allowed. This is not presupposed from the beginning, but with this, even with an optical disc such as a CD having a high correction capability, frame synchronization is lost and normal reproduction cannot be performed.
そして、このような許容値が許されている理由は、スピンドルモータの制御誤差を吸収するためであり、データ書き込み開始位置が既に書き込まれたデータとは無関係にウォブル信号のATIPによって決定しているからである。 The reason why such an allowable value is allowed is to absorb the control error of the spindle motor, and the data write start position is determined by the ATIP of the wobble signal regardless of the already written data. Because.
そこで、データ記録の継目で同期を損なわずにデータを再生するためにフレーム同期保護ウィンドウ幅を考慮すると、図6に示すフォーマットのようになる。
図6は図1に示した光ディスク装置による光ディスク上の継目の形成例を示す図である。
Therefore, when the frame synchronization protection window width is taken into consideration in order to reproduce data without losing synchronization at the data recording seam, the format shown in FIG. 6 is obtained.
FIG. 6 is a diagram showing an example of forming a seam on the optical disc by the optical disc apparatus shown in FIG.
つまり、同図に示すように、±2ビットクロック程度のズレで継目を形成する必要がある。このように正確なデータ書き出し位置を決定するには従来の光ディスク装置のようにスピンドルモータの制御精度に基づいた書き込み制御では困難であった。 That is, as shown in the figure, it is necessary to form a seam with a deviation of about ± 2 bit clock. As described above, it is difficult to determine an accurate data writing position by writing control based on the control accuracy of the spindle motor as in the conventional optical disk apparatus.
そこで、この実施形態の光ディスク装置では、光ディスク上の直前に書き込んだデータの終端を見つけ、具体的には直前に書き込んだデータに同期したクロックに基づいて計算した終端位置を求めて、その終端位置に基づいてデータ書き出し位置を決定するようにしている。 Therefore, in the optical disk device of this embodiment, the end of the data written immediately before on the optical disk is found, specifically, the end position calculated based on the clock synchronized with the data written immediately before is obtained, and the end position is determined. The data write position is determined based on the above.
次に、チャンネルビットのPLLをカウントして書き込みタイミングをとり、光ディスク上に書き込まれたデータの終端から正確に書き込みを始める書き込み処理について説明する。 Next, a description will be given of a writing process in which the PLL of channel bits is counted to take a writing timing and the writing is started accurately from the end of the data written on the optical disk.
図7は図1に示した光ディスク装置の図6に示した継目形成の書き込みタイミングを作る回路構成例を示すブロック図、図8は図7に示した回路のタイミングチャート図である。 FIG. 7 is a block diagram showing a circuit configuration example for creating the write timing of the seam formation shown in FIG. 6 of the optical disc apparatus shown in FIG. 1, and FIG. 8 is a timing chart of the circuit shown in FIG.
図7に示す回路は、チャンネルビットPLLをカウントして書き込み開始タイミングを作成する。まず、チャンネルビットオフセットレジスタ30が、サブコードシンククロックから書き込み開始位置までのチャンネルビットクロック数を入力する。
The circuit shown in FIG. 7 counts channel bits PLL and creates a write start timing. First, the channel bit offset
その後、ATIP又はSubQコードによって書き込み開始セクタ1のアドレスを検出し、最初のサブコードシンク、つまり書き込み開始セクタのサブコードシンクでチャンネルビットオフセットレジスタの値を16ビットDOWNカウンタ31にロードする。
そして、16ビットDOWNカウンタ31がチャネルビットPLLでディクリメントされて「0」になるとRC、つまり書き込み開始(ライトスタート)を出力する。
Thereafter, the address of the
When the 16-bit DOWN counter 31 is decremented by the channel bit PLL and becomes “0”, RC, that is, write start (write start) is output.
このようにして、チャンネルビットのPLLのカウントに基づくタイミングで光ディスクに対して前回書き込まれたデータの終端から正確に書き始めることができ、書き込まれたデータに対して最も誤差が小さい信号であるチャンネルビットのPLLによってずれの小さい書き込み継目を精度良く形成することができ、データ書き込みを一時停止した後の再開時の書き込みを精度を良く行なえる。 In this way, it is possible to start writing accurately from the end of the last written data on the optical disc at a timing based on the count of the PLL of the channel bits, and the channel is the signal with the smallest error with respect to the written data. A write seam with small deviation can be formed with high accuracy by the PLL of the bit, and writing at the time of resumption after pausing data writing can be performed with high accuracy.
次に、フレームシンク信号をカウントして書き込みタイミングをとり、光ディスク上に書き込まれたデータの終端から正確に書き込みを始める書き込み制御処理について説明する。 Next, a description will be given of a write control process in which the frame sync signal is counted and the write timing is taken to start writing accurately from the end of the data written on the optical disc.
図9は図1に示した光ディスク装置のフレームシンク信号に基づいて書き込みタイミングを作る回路構成例を示すブロック図、図10は図9に示した回路のタイミングチャート図である。 FIG. 9 is a block diagram showing a circuit configuration example for creating a write timing based on the frame sync signal of the optical disc apparatus shown in FIG. 1, and FIG. 10 is a timing chart of the circuit shown in FIG.
図9に示す回路は、フレームシンククロックをカウントして書き込み開始タイミングを作成する。まず、フレームオフセットレジスタ40がサブコードシンククロックから「Fr25」のフレームシンクまでのフレームシンククロック数を入力する。また、クロックオフセットレジスタ41が「Fr25」のフレームシンククロックから書き込み開始位置までのライト基準クロック数を入力する。
The circuit shown in FIG. 9 generates a write start timing by counting the frame sync clock. First, the frame offset
その後、ATIP又はSubQコードによって書き込み開始セクタ1のアドレスを検出し、最初のサブコードシンク、つまり書き込み開始セクタのサブコードシンクでフレームオフセットレジスタの値を5ビットDOWNカウンタ42にロードして、チャンネルビットオフセットレジスタの値を16ビットDOWNカウンタ31にロードする。
After that, the address of the
さらに、5ビットDOWNカウンタ42がフレームシンククロックでディクリメントされて「0」になると、クロックオフセットレジスタ41の値を11ビットDOWNカウンタ43にロードする。そして、11ビットDOWNカウンタ43がライト基準クロックでディクリメントされて「0」になるとRC、つまり書き込み開始(ライトスタート)を出力する。
Further, when the 5-bit DOWN counter 42 is decremented by the frame sync clock to “0”, the value of the clock offset
このようにして、フレームシンク信号のカウントに基づくタイミングで光ディスクに対して前回書き込まれたデータの終端から正確に書き始めることができ、安価な汎用品のデコーダLSIによってそのフレームシンク信号を得ることができるので、光ディスク装置のコストを低減することができる。 In this way, it is possible to accurately start writing from the end of the data previously written to the optical disc at a timing based on the count of the frame sync signal, and the frame sync signal can be obtained by an inexpensive general-purpose decoder LSI. Therefore, the cost of the optical disk device can be reduced.
次に、この実施形態の光ディスク装置におけるホストからのデータ転送が間に合わないときの書き込み制御処理について説明する。
まず、データ書込中にホストからのデータ転送が間に合わないときは書き込みを中断して、充分な量を受信してから書き込みを再開するときの処理について説明する。
Next, a write control process when data transfer from the host is not in time for the optical disc apparatus of this embodiment will be described.
First, a description will be given of the processing when the data transfer from the host is not in time during data writing, and the writing is interrupted and the writing is resumed after receiving a sufficient amount.
図11はそのデータ書き込み制御処理を示すフローチャートである。
この処理は、ステップ(図中「S」で示す)1でスタートライトし、ステップ2へ進んでディスクライトし、ステップ3へ進んでホストからデータ受信して、ステップ4へ進んでホストデータ(ホストから転送されるデータ)が少量か否かを判断する。
FIG. 11 is a flowchart showing the data write control process.
In this process, start writing is performed at step (indicated by “S” in FIG. 1), the process proceeds to step 2, the disk is written, the process proceeds to step 3, the data is received from the host, the process proceeds to step 4, and the host data (host It is determined whether or not the amount of data transferred from (1) is small.
ステップ4の判断でホストからのデータが少量でなければ、ステップ5へ進んでデータ書き込み終了か否かを判断して、データ書き込みが終了でなければステップ2へ戻ってデータ書き込みを継続し、データ書き込み終了ならステップ6へ進んでストップライトして、この処理を終了する。
If it is determined in
また、ステップ4の判断でホストからのデータが少量なら、ステップ7へ進んでポーズライトして光ディスクへの書き込みを中断し、ステップ8へ進んでホストからデータを受信して、ステップ9へ進んでホストデータ(ホストから転送されるデータ)が満量になったか否かを判断して、ならなければステップ8へ進んでホストからのデータ受信を継続し、満量になったらステップ10へ進んでリスタートライトして光ディスクへの書き込みを再開し、ステップ3へ戻ってデータ書き込み処理を継続する。
If it is determined in
さらに、この処理について説明する。まず、光ディスク装置はホストからライトコマンドとある程度量のデータを受け取るとデータ書き込み開始(スタートライト)を実行する。そのスタートライトはリンクブロックから始まる通常のライトシーケンスであり、光ディスクへのライトとホストからのデータ受信を所定のレングス繰り返す。 Further, this process will be described. First, when the optical disk apparatus receives a write command and a certain amount of data from the host, it starts data writing (start writing). The start light is a normal write sequence starting from a link block, and repeats a predetermined length for writing to the optical disk and receiving data from the host.
そして、そのデータ書込中、光ディスクへの書き込み速度よりもデータ転送速度が遅いと、バッファ内のデータの減少が早くて書き込みが続行できなくなるので、データの減少を検出してデータの転送が間に合わないと判断したらポーズライトを実行する。そのポーズライトはランアウトブロックを書き込まずに書き込みを一時中断するライトシーケンスである。 During data writing, if the data transfer speed is slower than the writing speed to the optical disk, the data in the buffer will decrease quickly and writing will not be continued. If it is determined that there is no, the pause light is executed. The pause light is a write sequence in which writing is temporarily suspended without writing a runout block.
その後、ホストからデータを充分受信してリスタートライトを実行する。そのリスタートライトは、リンクブロックを書き込まずに前からのデータの連続性を保ち、且つ同期が外れないように前のデータピット終端に正確に合わせて書き出すライトシーケンスである。 After that, sufficient data is received from the host and a restart write is executed. The restart write is a write sequence in which the continuity of the previous data is maintained without writing the link block, and the write is accurately written at the end of the previous data pit so as not to lose synchronization.
そして、所定のレングスを書き終わるとストップライトを実行する。そのストップライトはランアウトブロックを書き込む通常のライトシーケンスである。
つまり、この光ディスク装置は、ライトシーケンス中にバッファのデータ量を監視し、バッファアンダーランによる書き込み失敗を防ぐために随時ポーズライトとリスタートライトを繰り返す。
When a predetermined length is written, stop light is executed. The stoplight is a normal write sequence for writing a runout block.
In other words, this optical disc apparatus monitors the data amount of the buffer during the write sequence, and repeats pause write and restart write as needed to prevent writing failure due to buffer underrun.
このようにして、光ディスクに対するデータの書き込み中にホストからのデータ転送が間に合わないときはデータ書き込みを一時停止し、ホストからデータが充分に送られてきたときにデータ書き込みを再開する。 In this way, when the data transfer from the host is not in time during the writing of data to the optical disc, the data writing is temporarily stopped, and the data writing is resumed when the data is sufficiently sent from the host.
したがって、ホストからのデータ転送が一瞬途切れたり転送レートが多少低下しても複数回に分けて正常にデータを光ディスクに書き込むことができ、データ書き込み失敗を防止することができる。
また、データ転送の脈動を吸収するバッファRAMの容量を小さくすることができ、光ディスクのコストダウンを図ることができる。
Therefore, even if the data transfer from the host is interrupted for a moment or the transfer rate is somewhat reduced, the data can be normally written to the optical disc in a plurality of times, and data writing failure can be prevented.
In addition, the capacity of the buffer RAM that absorbs the pulsation of data transfer can be reduced, and the cost of the optical disk can be reduced.
次に、データ書込中にホストからのデータ転送が間に合わないときは書き込みを中断して、書き込み速度を落してから書き込みを再開するときの処理について説明する。 Next, a description will be given of processing for interrupting writing when data transfer from the host is not in time during data writing, and restarting writing after reducing the writing speed.
図12はそのデータ書き込み制御処理を示すフローチャートである。
この処理は、ステップ(図中「S」で示す)11で最高速度又はホストが設定した速度でスタートライトし、ステップ12へ進んでディスクライトし、ステップ13へ進んでホストからデータ受信して、ステップ14へ進んでホストデータ(ホストから転送されるデータ)が少量か否かを判断する。
FIG. 12 is a flowchart showing the data write control process.
In this process, start writing is performed at the maximum speed or the speed set by the host in step (indicated by “S” in FIG. 11), the process proceeds to step 12, the disk is written, the process proceeds to step 13, and data is received from the host. Proceeding to step 14, it is determined whether or not the host data (data transferred from the host) is small.
ステップ14の判断でホストからのデータが少量でなければ、ステップ15へ進んでデータ書き込み終了か否かを判断して、データ書き込みが終了でなければステップ12へ戻ってデータ書き込みを継続し、データ書き込み終了ならステップ16へ進んでストップライトして、この処理を終了する。
If it is determined in
また、ステップ14の判断でホストからのデータが少量なら、ステップ17へ進んでポーズライトして光ディスクへの書き込みを中断し、ステップ18へ進んでホストからデータを受信して、ステップ19へ進んでホストデータ(ホストから転送されるデータ)が満量になったか否かを判断する。
If it is determined in
ステップ19の判断で満量にならなければ、ステップ18へ進んでホストからのデータ受信を継続し、満量になったらステップ20へ進んで最低速度でなければ速度を一段階落して、ステップ21へ進んでリスタートライトして光ディスクへの書き込みを再開し、ステップ13へ戻ってデータ書き込み処理を継続する。
If it is not full at
さらに、この処理について説明する。
まず、光ディスク装置はホストからライトコマンドとある程度の量のデータを受け取るとデータ書き込み開始(スタートライト)を実行するが、このとき、ホストが設定した速度又は設定がなければ光ディスク装置の持つ最高速度でスタートライトを実行する。そのスタートライトはリンクブロックから始まる通常のライトシーケンスであり、光ディスクへのライトとホストからのデータ受信を所定のレングス繰り返す。
Further, this process will be described.
First, when the optical disk device receives a write command and a certain amount of data from the host, it starts data writing (start write). At this time, at the speed set by the host or if there is no setting, the optical disk device has the maximum speed. Run the start light. The start light is a normal write sequence starting from a link block, and repeats a predetermined length for writing to the optical disk and receiving data from the host.
そして、そのデータ書込中、光ディスクへの書き込み速度よりもデータ転送速度が遅いと、バッファ内のデータの減少が早くて書き込みが続行できなくなるので、データの減少を検出してデータの転送が間に合わないと判断したらポーズライトを実行する。そのポーズライトはランアウトブロックを書き込まずに書き込みを一時中断するライトシーケンスである。 During data writing, if the data transfer speed is slower than the writing speed to the optical disk, the data in the buffer will decrease quickly and writing will not be continued. If it is determined that there is no, the pause light is executed. The pause light is a write sequence in which writing is temporarily suspended without writing a runout block.
そのデータ書き込みの中断時、最低速度でなければ書き込み速度を一段階落して、ホストからデータを受信してリスタートライトを実行する。そのリスタートライトは、リンクブロックを書き込まずに前からのデータの連続性を保ち、且つ同期が外れないように前のデータピット終端に正確に合わせて書き出すライトシーケンスである。 When the data writing is interrupted, if the speed is not the minimum speed, the writing speed is lowered by one step, data is received from the host, and a restart write is executed. The restart write is a write sequence in which the continuity of the previous data is maintained without writing the link block, and the write is accurately written at the end of the previous data pit so as not to lose synchronization.
その後、再びホストからのデータ転送が間に合わないときには、データ書き込みを中断し、データ書き込みの速度をさらに落してリスタートライトする。
そして、所定のレングスを書き終わるとストップライトを実行する。そのストップライトはランアウトブロックを書き込む通常のライトシーケンスである。
Thereafter, when the data transfer from the host is not in time again, the data writing is interrupted, the data writing speed is further reduced, and the restart writing is performed.
When a predetermined length is written, stop light is executed. The stoplight is a normal write sequence for writing a runout block.
このようにして、光ディスクに対するデータの書き込み中にホストからのデータ転送が間に合わないときはデータ書き込みを一時停止し、光ディスクに対するデータの書き込み速度を落した後にデータ書き込みを再開する。 In this way, when data transfer from the host is not in time during the writing of data to the optical disk, the data writing is temporarily stopped, and the data writing is resumed after the data writing speed to the optical disk is reduced.
したがって、この光ディスク装置は、ホストからのデータ転送にあったデータ書き込み速度に自動的に変更して書き込みを継続するので、バッファアンダーランによる書き込み失敗を防ぐために随時ポーズライトとリスタートライトを多数回繰り返して書き込み処理が長時間になることを防止できる。
また、ユーザがホストのデータ転送能力や光ディスク装置の書き込み速度を常にチェックする必要が無くて操作性を向上させることができ、ホストの能力を最大限に生かしたデータ書き込みを行なえる。
Therefore, this optical disk device automatically changes to the data writing speed suitable for the data transfer from the host and continues writing. Therefore, to prevent writing failure due to buffer underrun, pause and restart writes are performed many times. Repetitive writing processing can be prevented from taking a long time.
In addition, it is not necessary for the user to constantly check the data transfer capability of the host and the writing speed of the optical disk apparatus, so that the operability can be improved, and data writing can be performed making the best use of the capability of the host.
この実施形態の光ディスク装置では、バッファアンダーランを回避し、書き込みデータを連続データとして正常に読み出すことができるようにデータ書き込みを行なえる。したがって、データ書き込みの信頼性を向上させることができる。
また、ユーザはホストのパフォーマンスを気にすること無く光ディスクに対して安全にデータの書き込みを行なえる。したがって、データ書込時の操作性を向上させることができる。
In the optical disk device of this embodiment, buffer underrun can be avoided, and data can be written so that write data can be normally read as continuous data. Therefore, the reliability of data writing can be improved.
Further, the user can safely write data to the optical disc without worrying about the performance of the host. Therefore, the operability at the time of data writing can be improved.
1:光ディスク 2:スピンドルモータ 3:モータドライバ 4:サーボ 5:光ピックアップ 6:リードアンプ 7:CDデコーダ 8:CD−ROMデコーダ 9:バッファマネージャ 10:バッファRAM 11:ATPI/SCSIインタフェース 12:D/Aコンバータ 13:ATIPデコーダ 14:CDエンコーダ 15:CD−ROMエンコーダ 16:レーザコントロール回路 17:CPU 18:ROM 19,21,22:RAM 20:CIRCエンコーダ 30:チャンネルビットオフセットレジスタ 31:16ビットDOWNカウンタ 40:フレームオフセットレジスタ 41:クロックオフセットレジスタ 42:5ビットDOWNカウンタ 43:11ビットDOWNカウンタ
1: Optical disk 2: Spindle motor 3: Motor driver 4: Servo 5: Optical pickup 6: Read amplifier 7: CD decoder 8: CD-ROM decoder 9: Buffer manager 10: Buffer RAM 11: ATPI / SCSI interface 12: D / A converter 13: ATIP decoder 14: CD encoder 15: CD-ROM encoder 16: Laser control circuit 17: CPU 18:
Claims (5)
前記ホストは、前記光ディスク装置にライトコマンドとデータの転送を行い、
前記光ディスク装置は、前記ライトコマンドと所定量のデータを受け取ると、前記光ディスクに対して前にリンクブロックとランインブロックとを後にランアウトブロックをそれぞれ設けたユーザデータブロックを書き込み単位にしてデータ書き込みを開始し、データ書き込み中に前記ホストからのデータ転送が間に合わない場合、前記光ディスクに対してデータの記録中にランアウトブロックを書き込まずに書き込みを一時中断することを特徴とするシステム。 A host and an optical disk device for recording data on the optical disk;
The host transfers a write command and data to the optical disk device,
When the optical disk apparatus receives the write command and a predetermined amount of data, the optical disk apparatus writes data in a user data block in which a link block, a run-in block, a run-out block and a run-out block are respectively provided to the optical disk. The system is characterized in that, when data transfer from the host is not in time during data writing, the writing is temporarily suspended without writing a run-out block during data recording on the optical disc.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006291942A JP3898736B2 (en) | 2006-10-27 | 2006-10-27 | system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006291942A JP3898736B2 (en) | 2006-10-27 | 2006-10-27 | system |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002026549A Division JP3898522B2 (en) | 2002-02-04 | 2002-02-04 | Optical disk device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007052921A JP2007052921A (en) | 2007-03-01 |
JP3898736B2 true JP3898736B2 (en) | 2007-03-28 |
Family
ID=37917232
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006291942A Expired - Lifetime JP3898736B2 (en) | 2006-10-27 | 2006-10-27 | system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3898736B2 (en) |
-
2006
- 2006-10-27 JP JP2006291942A patent/JP3898736B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2007052921A (en) | 2007-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3363712B2 (en) | Optical disk drive | |
JP2001344756A (en) | Information recorder | |
US7580333B2 (en) | Optical disk apparatus | |
JP2842262B2 (en) | Optical disk recording device | |
JP4056721B2 (en) | Information recording device | |
JP2002170342A (en) | Method for recording write-once type optical disk | |
JP3898736B2 (en) | system | |
JP3938464B2 (en) | Optical disk device | |
JP3898522B2 (en) | Optical disk device | |
JPH0935270A (en) | Cd-r driving device | |
JP2003123387A (en) | Data recording device and control device for the same | |
JP4657518B2 (en) | Optical disk device | |
JP3752108B2 (en) | Optical disc recording / reproducing apparatus | |
JP3240860B2 (en) | Optical disk recording device | |
JP3885538B2 (en) | Optical disk device | |
JP2001351311A (en) | Seeking method for optical disk and optical disk driver | |
JP2007073187A (en) | Optical disk device | |
JP2002203362A (en) | Optical disk unit | |
JP2005032351A (en) | Optical disk drive | |
JP2005025938A (en) | Controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20061219 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20061221 |
|
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20061215 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110105 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120105 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120105 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130105 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140105 Year of fee payment: 7 |
|
EXPY | Cancellation because of completion of term |