Method and apparatus for recording and reproduction, medium, and program
Abstract
This record has no abstract on file.
Term
Term ended
Expired 30 October 2021, 4.9 years ago.
- Priority
- Filed
- Granted
- Expired
- Today
13 claims: 9 independent, 4 dependent
- 1記録媒体に対してAVデータの書き込みと、読み取りとが可能な記録手段と、 前記記録媒体に連続してアクセスする最小単位であるディスクアクセスユニットに対して、 AVデータの同時記録再生を行う場合に、記録及び再生を行うAVデータの連続性を共に保障するよう決定されたタイムオーバ時間が経過しても、前記ディスクアクセスユニットに前記AVデータの書込み、若しくは読み取りが完了しないときにAVデータの書き込み、若しくは読み込みエラーが生じたと判断するエラー判断手段と、 前記判断に基づいて、前記ディスクアクセスユニットに対してAVデータの書込み、若しくは読み込みエラーが生じた場合、交替ディスクアクセスユニットを設けることなく、当該書き込み、若しくは読み込みエラーが生じた ディスクアクセスニットを飛ばして、 次に書き込み、若しくは読み取るべきディスクアクセスユニットに前記AVデータを書き込む、若しくは読み込むよう前記記録手段を制御する記録制御手段と、 前記ディスクアクセスユニットから前記AVデータの書込み、若しくは読み取りを行った際に生じた前記エラーの回数を数えるスキップカウンターと、を備え、 前記記録制御手段は、前記回数が 1 以上の値である所定の値を超えた場合、そのディスクアクセスユニットの書込み、若しくは読み取りを禁止し、以後使用しないように制御することを特徴とする 記録再生装置。
- 2前記エラー判断手段は、コマンドエラーが生じた場合に前記書き込みエラーまたは前記読み取りエラーが生じたと判断することを特徴とする請求項 1 に記載の記録再生装置。
- 3前記タイムオーバ時間が経過しても前記ディスクアクセスユニットに前記AVデータの書き込みまたは読み取りが完了しない場合、前記記録制御手段は、前記記録手段に発行したコマンドを強制終了させることによって、前記ディスクアクセスユニットを飛ばすよう制御することを特徴とする請求項 1 に記載の記録再生装置。
- 4前記スキップカウンターが数える回数は、前記記録媒体がフォーマット処理されない限り初期化されないことを特徴とする請求項 1に 記載の記録再生装置。
- 5前記ディスクアクセスユニットの読み取りを禁止するかどうかを示す読み取り禁止フラグを備え、 前記記録制御手段は、前記ディスクアクセスユニットに対応する前記読み取り禁止フラグがオンになっている場合、前記記録制御手段はそのディスクアクセスユニットの読み取りを行わず、 前記ディスクアクセスユニットに対応する前記読み取り禁止フラグがオフになっている場合、そのディスクアクセスユニットの読み取りを行うよう制御することを特徴とする請求項1 に 記載の記録再生装置。
- 6前記記録制御手段は、前記ディスクアクセスユニットに前記AVデータを書き込む際に前記書き込みエラーが生じた場合、そのディスクアクセスユニットに対応する前記読み取り禁止フラグをオンにすることを特徴とする 請求項5に記載の 記録再生装置。
- 7前記記録制御手段は、前記ディスクアクセスユニットに前記AVデータを正常に書き込めた場合、そのディスクアクセスユニットに対応する前記読み取り禁止フラグをオフにし、そのディスクアクセスユニットに対応する前記読み取りスキップカウンターの値を0に初期化することを特徴とする請求項 6に 記載の記録再生装置。
- 8前記記録制御手段は、前記ディスクアクセスユニットに記録されている前記AVデータが消去された場合、そのディスクアクセスユニットに対応する前記読み取り禁止フラグをオフにし、そのディスクアクセスユニットに対応する前記読み取りスキップカウンターの値を初期化することを特徴とする請求項 6に 記載の記録再生装置。
- 9前記AVデータの書き込みの際に、前記AVデータを一時的に格納する記録バッファと、 前記AVデータの読み込みの際に、前記AVデータを一時的に格納する再生バッファと を備え、 前記タイムオーバ時間は、少なくとも前記記録バッファへの前記AVデータの格納時間、前記再生バッファからの前記AVデータの出力時間、前記ディスクアクセスユニットの読取りに必要な時間、及び前記ディスクアクセスユニットの書込みに必要な時間に基づいて算出される、請求項1に記載の記録再生装置。
- 10記録媒体に対してAVデータの書き込みと、読み取りとが可能な記録ステップと、 前記記録媒体に連続してアクセスする最小単位であるディスクアクセスユニットに対して、 AVデータの同時記録再生を行う場合に、記録及び再生を行うAVデータの連続性を共に保障するよう決定されたタイムオーバ時間が経過しても、前記ディスクアクセスユニットに前記AVデータの書込み、若しくは読み取りが完了しないときにAVデータの書き込み、若しくは読み込みエラーが生じたと判断するエラー判断ステップと、 前記判断に基づいて、前記ディスクアクセスユニットに対してAVデータの書込み、若しくは読み込みエラーが生じた場合、交替ディスクアクセスユニットを設けることなく、当該書き込み、若しくは読み込みエラーが生じた ディスクアクセスニットを飛ばして、 次に書き込み、若しくは読み取るべきディスクアクセスユニットに前記AVデータを書き込む、若しくは読み込むよう前記記録手段を制御する記録制御ステップと、 前記ディスクアクセスユニットから前記AVデータの書込み、若しくは読み取りを行った際に生じた前記エラーの回数を数えるスキップカウンターステップと、を備え、 前記記録制御ステップは、前記回数が 1 以上の値である所定の値を超えた場合、そのディスクアクセスユニットの書込み、若しくは読み取りを禁止し、以後使用しないように制御することを特徴とする 記録再生方法。
- 11前記エラー判断ステップは、コマンドエラーが生じた場合に前記書き込みエラーまたは前記読み取りエラーが生じたと判断することを特徴とする請求項 10 に記載の記録再生方法。
- 12請求項1記載の記録再生装置の、記録媒体に対してAVデータの書き込みと、読み取りとが可能な記録手 段、 前記記録媒体に連続してアクセスする最小単位であるディスクアクセスユニットに対して、 AVデータの同時記録再生を行う場合に、記録及び再生を行うAVデータの連続性を共に保障するよう決定されたタイムオーバ時間が経過しても、前記ディスクアクセスユニットに前記AVデータの書込み、若しくは読み取りが完了しないときにAVデータの書き込み、若しくは読み込みエラーが生じたと判断するエラー判断手段、 前記判断に基づいて、前記ディスクアクセスユニットに対してAVデータの書込み、若しくは読み込みエラーが生じた場合、交替ディスクアクセスユニットを設けることなく、当該書き込み、若しくは読み込みエラーが生じた ディスクアクセスニットを飛ばして、 次に書き込み、若しくは読み取るべきディスクアクセスユニットに前記AVデータを書き込む、若しくは読み込むよう前記記録手段を制御する記録制御手段、 前記ディスクアクセスユニットから前記AVデータの書込み、若しくは読み取りを行った際に生じた前記エラーの回数を数えるスキップカウンター としてコンピュータを機能させるためのプログラム。
- 13請求項12記載のプログラムを記録した記録媒体であって、コンピュータにより処理可能な記録 媒体。
Independent claims13
263 paragraphs, as filed
The present invention relates to a recording / reproducing device for recording AV data, a recording / reproducing method, a medium, and a program.
[0002] [Conventional Technology] With the spread and progress of personal computers in recent years, many recording / playback devices such as hard disk drives and magneto-optical disk drives have come to be used as external storage devices due to their large capacity and high speed. ing. With the bloat of computer software and the increase in the capacity of data to be handled, the speed and capacity of these recording / playback devices as external storage devices have been further increased.
[0003] The recording / playback device that has handled computer data in this way makes use of its high speed and large capacity, and also applies digital technology to record / reproduce video / audio data (hereinafter referred to as AV data). It is also being used as a device.
[0004] When recording computer data or a program in a recording / playback device, if an error occurs even in one bit, a serious problem such as a malfunction of the program occurs. Therefore, the recording / playback device performs strict error checking when recording and playing back computer data to guarantee the reliability of the data and the program.
[0005] For such an error check, a reassignment process of reallocating an LBA (Logical Block Address) to a sector of a recording medium, a retry process of re-recording or reading to a sector in which an error has occurred, or an error has occurred. There is a replacement process that allocates the LBA assigned to a sector to another sector existing in the replacement area and stops using the sector in which the error occurred.
[0006] On the other hand, when recording AV data in a recording / playback device, it is important to guarantee the continuity of the AV data by recording / reproducing the AV data so that the AV data is not interrupted, rather than the reliability of the data. is there.
[0007] That is, when playing back AV data, if an error occurs in one byte of data, when the AV data is displayed on a TV monitor, there is only an effect that the viewer hardly notices.
[0008] However, if a strict error check such as retry processing or replacement processing is executed during AV data playback, the AV data playback is interrupted due to the error check, so that the image displayed on the TV monitor is interrupted. It becomes very annoying to the viewer.
[0009] FIG. 13 shows a recording / reproducing device 40 that guarantees the continuity of the proposed AV data and records / reproduces the data.
[0010] The recording / playback device 40 is composed of an HDD 41, an HDD controller 43 for AV recording / playback, an alternate DAU table 42, a file system 4, a recording buffer 8, and a playback buffer 9.
[0011] Further, FIG. 14 shows a magnetic disk medium 44 in which the HDD 41 writes and reads AV data.
[0012] The magnetic disk medium 44 is provided with an AV data recording area 47 and an alternate DAU area 46. That is, the AV data recording area 47 is an area for writing AV data in units of disk access units, which is the minimum unit for continuously accessing the magnetic disk medium 44, and the alternate DAU area 46 is the disk access of the AV data recording area 47. This is an area in which a disk access unit for writing AV data is reserved in advance as a substitute for the disk access unit when the unit cannot be written normally due to a defect or the like. In this way, the recording / playback device 40 performs replacement processing of the disk access unit for writing AV data to the disk access unit secured in the replacement DAU area 46 as a substitute for the disk access unit in the AV data recording area 47.
[0013] Further, when the size of the disk access unit is reduced, the HDD 41 seeks and waits for rotation frequently occurs, so that the AV data transfer rate decreases. Therefore, the size of the disk access unit is large enough to guarantee continuous transfer of AV data, for example, 2 Mbytes.
As shown in FIG. 17, the HDD 41 stores a table in which the notified LBA (Logical Block Address) is associated with a track number and a sector number representing the physical position of the magnetic disk medium 44, and this table is stored. Is a means for writing or reading AV data by identifying the physical location of the magnetic disk medium 44 using the above.
The AV recording / playback HDD controller 43 is a means for controlling the HDD 41. The replacement DAU table 42 is a table for knowing the number of the disk access unit after the replacement process from the number of the disk access unit before the replacement process.
FIG. 15 shows an example of the alternate DAU table 42. The DAU number 51 is the number of the disk access unit before the replacement process, and the DAU number 52 after the replacement process is the number of the disk access unit after the replacement process. However, if the replacement process is not performed, the same number as the DAU number 51 is stored in the DAU number 52 after the replacement process.
[0017] The file system 4 is for handling AV data as a file, stores file information including information of disk access units constituting the file, and refers to the file information by designating a file name. It is also a means to update file information.
Further, the file system 4 stores the DAU conversion table 53 shown in FIG. The DAU conversion table 53 is a table that converts the disk access unit number 54 assigned to identify the disk access unit to the LBA 55 at the head of the disk access unit of the magnetic disk medium 44.
[0019] The recording buffer 8 is a buffer for temporarily storing the AV data to be written to the magnetic disk medium 44 when the AV data is transferred.
[0020] Playback buffer<u style="single">9</u>Is a buffer for temporarily storing the AV data read from the magnetic disk medium 44.
Next, the operation of such a recording / reproducing device 40 will be described.
[0022] First, the recording / playback device 40 performs formatting processing on the magnetic disk medium 44 prior to recording or playing back the AV data on the magnetic disk medium 44. When performing this format processing, a replacement DAU area 46 is also secured in addition to the AV data recording area 47.
Next, a disk in the alternate DAU area 46 without using a disk access unit that is defective or takes more than a predetermined time to write or read so that the AV data can be guaranteed to be transferred in real time. Performs replacement processing to replace the access unit.
[0024] That is, the AV recording / playback controller 43 has a defect or takes a predetermined time or more for writing or reading by performing a writing process and a reading process on the disk access unit of the disk medium 44. Find such a disk access unit.
[0025] When the AV recording / playback controller 43 finds such a disk access unit, it notifies the file system 4.
[0026] The file system 4 rewrites the alternate DAU table 42 when notified. That is, the DAU number 52 after the replacement process corresponding to the notified disk access unit number is rewritten to the disk access unit number in the replacement DAU area 46.
[0027] The above process is repeated for all the disk access units of the magnetic disk medium 44.
[0028] When the sector-by-sector alternation process is performed, the seek operation and the rotation wait occur in the sector on which the alternation process is performed, so that it takes an extra time to write and read. Therefore, if the alternation process occurs at intervals smaller than the size that can guarantee the continuous transfer of AV data, the continuous transfer of AV data cannot be guaranteed due to seek or waiting for rotation. However, since the recording / playback device 40 performs replacement processing for each disk access unit having a size that guarantees continuous transfer of AV data, not for sector units, the continuity of AV data is performed even if the replacement processing is performed. Can be guaranteed.
[0029] As described above, the recording / playback device 40 guarantees that the AV data is transferred in real time by performing the replacement process for each disk access unit in advance.
Next, a case where AV data is recorded on the magnetic disk medium 44 will be described.
The AV data received by the tuner of the television or the like is transferred to the recording / playback device 40 in real time.
The recording buffer 8 temporarily records the AV data transferred in real time in this way.
[0033] When the recording buffer 8 stores AV data for the disk access unit, it notifies the HDD controller 43 for AV recording / playback.
[0034] When the HDD controller 43 for AV recording / playback is notified from the recording buffer 8 that the AV data for the disk access unit is stored, the file system 4 is notified to which disk access unit the AV data is to be written. To request.
[0035] In response to this, the file system 4 checks the number of the disk access unit to which the AV data should be written from the file information, and substitutes the disk access unit number 51 with the alternate DAU table 42 shown in FIG. Convert to number 52. When the disk access unit to which the AV data should be written is undergoing replacement processing due to a defect or the like, the number of the disk access unit in the replacement DAU area 46 is described in the DAU number 52 after the replacement processing. If the replacement process has not been performed, the same number as the disk access unit number to which the AV data should be written is described in the DAU number 52 after the replacement process. Then, the converted disk access unit number is notified to the HDD controller 43 for AV recording / playback. Therefore, among the disk access units in the AV data recording area 47, the disk access units that are defective or take a predetermined time or longer to write or read are not used.
[0036] When the HDD controller 43 for AV recording / playback is notified of the number of the disk access unit to which the AV data should be written from the file system 4, the HDD controller 43 is further notified of the first LBA of the notified disk access unit number. Request.
When the file system 4 receives the request from the HDD controller 43 for AV recording / playback, the file system 4 indicates the disk access unit number at the head LBA 55 according to the DAU conversion table 53 shown in FIG. Is requested and notified to the HDD controller 43 for AV recording / playback.
Further, the AV recording / playback HDD controller 43 requests the recording buffer 8 to transfer AV data to be written to one disk access unit.
[0039] In response to this, the recording buffer 8 transfers the AV data to be written to one disk access unit to the HDD controller 43 for AV recording / playback.
The HDD controller 43 for AV recording / playback specifies the number of sectors to which AV data should be written from the notified LBA, issues a write command to the file system 4, and outputs the AV data transferred from the recording buffer 8. Transfer to HDD41.
[0041] The file system 4 is a writing command sent from the HDD controller 43 for AV recording / playback.<u style="single">Do</u>Send to HDD41.
The HDD 41 converts the notified LBA into a track number and a sector number according to the table of FIG. 17, and writes the transferred AV data to the sectors constituting the corresponding track of the magnetic disk medium 44.
[0043] On the other hand, AV data is transferred to the recording buffer 8 in real time, and when the recording buffer 8 stores the AV data for the disk access unit again, it notifies the HDD controller 43 for AV recording / playback. Hereinafter, the same operation as above is repeated to record the AV data transferred in real time. In this way, the disk access unit whose AV data recording is not completed even after a predetermined time or more elapses due to a defect or the like is not used, so that real-time transfer of AV data can be guaranteed. ..
Next, a case where the AV data is read from the magnetic disk medium 44 will be described.
The playback buffer 9 outputs AV data in real time, and notifies the HDD controller 43 for AV recording / playback when there is a vacancy for the disk access unit.
Upon receiving the notification from the playback buffer 9, the AV recording / playback HDD controller 43 requests the number of the disk access unit to be read next from the file system 4.
In response to this, the file system 4 checks the number of the disk access unit to which the AV data should be written from the file information, and substitutes the disk access unit number 51 with the alternate DAU table 42 shown in FIG. Convert to number 52. Therefore, defective disk access units are not used. Then, the converted disk access unit number is notified to the HDD controller 43 for AV recording / playback.
[0048] When the HDD controller 43 for AV recording / playback is notified by the file system 4 of the number of the disk access unit to which the AV data should be written, the HDD controller 43 further inquires of the head LBA of the disk access unit notified to the file system 4.
When the file system 4 receives an inquiry from the AV recording / playback HDD controller 43, the file system 4 notifies the AV recording / playback controller 43 of the head LBA of the disk access unit.
[0050] When the HDD controller 43 for AV recording / playback receives the LBA notified from the file system 4, the HDD controller 43 specifies the LBA and the number of sectors for reading the AV data, and issues a read command to the file system 4.
[0051] The file system 4 relays the read command sent from the HDD controller 43 for AV recording / playback to the HDD 41.
The HDD 41 converts the notified LBA into a track number and a sector number according to the table of FIG. 17, reads AV data from the sectors constituting the corresponding track of the magnetic disk medium 44, and is an HDD controller for AV recording / playback. Transfer to 43.
The AV recording / playback HDD controller 43 transfers the read AV data to the playback buffer 9.
[0054] The playback buffer 9 stores the AV data read by the HDD controller 43 for AV recording / playback, and outputs the stored AV data in real time.
Therefore, the recording / playback device 40 sets the size of the disk access unit to a size sufficiently large enough to continuously transfer AV data, and further, replaces the defective disk access unit with a disk access unit in the alternate DAU area 46. Since it is used, continuous transfer of AV data can be guaranteed.
[0056] [Problems to be Solved by the Invention] However, in order to guarantee that the conventional recording / playback device 40 continuously transfers AV data without interruption, it is necessary to perform a disk access unit replacement process in advance. It takes time and effort.
[0057] That is, in order to continuously transfer AV data without interruption, it is necessary to perform a disk access unit replacement process, which causes a problem that it takes time and effort (first problem).
[0058] Further, when performing the replacement process, in order to find a defect in the disk access unit or a disk access unit in which reading or writing takes a predetermined time or longer, the reading process and the writing process are performed over the entire magnetic disk medium 44. Since this is done, the AV data already recorded on the magnetic disk medium 44 will be erased.
[0059] That is, if the disk access unit is replaced in order to guarantee that the AV data is continuously transferred without interruption, the AV data previously recorded on the recording medium is erased (No. 1). There are 2 issues).
[0060] Further, in order to perform the replacement process of the disk access unit, it is necessary to secure an alternative disk access unit such as the replacement DAU area 46 in the magnetic disk medium 44. Therefore, the area where the user can freely record AV data, such as the AV data recording area 47, is reduced.
[0061] That is, when the disk access unit replacement process is performed to guarantee that the AV data is continuously transferred without interruption, a substitute disk access unit must be secured in advance, so that the replacement process is performed. There is a problem (third problem) that the area that can be freely used by the user of the recording medium is reduced as compared with the case where there is no recording medium.
[0062] Further, when there is a disturbance such as vibration, even if the disk access unit of the magnetic disk medium 44 is not defective, the disk access unit is determined to be defective. After that, it will be treated as a bad disk access unit until it is reformatted.
[0063] That is, when there is a disturbance such as vibration, even a disk access unit without defects is determined to be a defective disk access unit, and thereafter, the defective disk access unit until the recording medium is formatted. There is a problem (fourth problem) that it is treated as.
[0064] The present invention considers the above-mentioned first problem, and is a recording / reproducing device and a recording / reproducing method capable of continuously transferring AV data without any trouble and time.<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Is intended to provide.
[0065] Further, in consideration of the second problem described above, the present invention is a recording / reproducing device and recording / reproducing device capable of continuously transferring AV data without erasing the AV data already recorded on the recording medium. Method<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Is intended to provide.
[0066] Further, in consideration of the third problem described above, the present invention is a recording / reproducing device and a recording / reproducing method capable of continuously transferring AV data without reducing the area that can be freely used by the user.<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Is intended to provide.
[0067] Further, in consideration of the fourth problem described above, the present invention does not permanently treat a defect-free disk access unit as a defective disk access unit due to a cause such as vibration or other disturbance, and the defect-free disk access. Recording / playback device that can reuse the unit, recording / playback method<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Is intended to provide.
[Means for Solving the Problems] In order to solve the above-mentioned problems, the first invention (corresponding to claim 1) can write and read AV data on a recording medium. For the recording means and the disk access unit, which is the smallest unit for continuously accessing the recording medium.<u style="single">In the case of simultaneous recording and playback of AV data, even if the time over time determined to guarantee the continuity of the AV data to be recorded and played back has elapsed, the AV data can be written to the disk access unit or the AV data can be written or played back. An error judgment means for determining that an AV data writing or reading error has occurred when reading is not completed,</u><u style="single"> Based on the above judgment, when an AV data write or read error occurs in the disk access unit, the write or read error occurs without providing a replacement disk access unit.</u>Skip the disc access knit,<u style="single">A recording control means that controls the recording means to write or read the AV data to a disk access unit to be written or read next.</u><u style="single"> It is provided with a skip counter that counts the number of errors that occur when writing or reading the AV data from the disk access unit.</u><u style="single"> The recording control means has the number of times</u><u style="single">1</u><u style="single">When the above value exceeds a predetermined value, writing or reading of the disk access unit is prohibited, and control is performed so that the disk access unit is not used thereafter.</u>It is a recording / playback device.
[0071] In addition, the first<u style="single">2</u>The present invention (claim)<u style="single">2</u>The error determination means determines that a write error or a read error has occurred when a command error occurs.<u style="single">1</u>The recording / reproducing device according to the present invention.
[0073] In addition, the first<u style="single">3</u>The present invention (claim)<u style="single">3</u>When the writing or reading of the AV data to the disk access unit is not completed even after the time over time elapses, the recording control means forcibly terminates the command issued to the recording means. The first feature is that the disk access unit is controlled to be skipped.<u style="single">1</u>The recording / reproducing device according to the present invention.
[0075] In addition, the first<u style="single">4</u>The present invention (claim)<u style="single">4</u>The number of times the write skip counter counts is not initialized unless the recording medium is formatted.<u style="single">1</u>The recording / reproducing device according to the present invention.
[0076] Also, the first<u style="single">5</u>The present invention (claim)<u style="single">5</u>(Corresponding to) includes a read prohibition flag indicating whether or not to prohibit reading of the disk access unit, and the recording control means is described when the read prohibition flag corresponding to the disk access unit is turned on. The recording control means does not read the disk access unit, and controls to read the disk access unit when the read prohibition flag corresponding to the disk access unit is turned off. 1 is the recording / reproducing device according to the present invention.
[0077] In addition, the first<u style="single">6</u>The present invention (claim)<u style="single">6</u>The recording control means turns on the read prohibition flag corresponding to the disk access unit when the write error occurs when writing the AV data to the disk access unit. No.<u style="single">5</u>The recording / reproducing device according to the present invention.
[0079] In addition, the first<u style="single">7</u>The present invention (claim)<u style="single">7</u>When the recording control means can normally write the AV data to the disk access unit, the recording control means turns off the read prohibition flag corresponding to the disk access unit, and the read corresponding to the disk access unit. The first feature is that the value of the skip counter is initialized to 0.<u style="single">6</u>The recording / reproducing device according to the present invention.
[0080] In addition, the first<u style="single">8</u>The present invention (claim)<u style="single">8</u>When the AV data recorded in the disk access unit is erased, the recording control means turns off the read prohibition flag corresponding to the disk access unit and corresponds to the disk access unit. The first feature is to initialize the value of the read skip counter.<u style="single">6</u>The recording / reproducing device according to the present invention.
[0081] In addition, the first<u style="single">9</u>The present invention (claim)<u style="single">9</u>Corresponds to)<u style="single">A recording buffer that temporarily stores the AV data when writing the AV data,</u><u style="single"> A playback buffer for temporarily storing the AV data when reading the AV data is provided.</u><u style="single"> The time over time is at least the storage time of the AV data in the recording buffer, the output time of the AV data from the playback buffer, the time required for reading the disk access unit, and the writing of the disk access unit. This is the first recording / reproducing device of the present invention, which is calculated based on the required time.</u>[0082] In addition, the first<u style="single">10</u>The present invention (claim)<u style="single">10</u>Corresponds to)<u style="single">A recording step that allows you to write and read AV data to a recording medium,</u><u style="single"> A time determined to guarantee the continuity of the AV data to be recorded and reproduced when the AV data is simultaneously recorded and reproduced for the disk access unit, which is the minimum unit for continuously accessing the recording medium. An error determination step for determining that an AV data writing or reading error has occurred when the writing or reading of the AV data to the disk access unit is not completed even after the overtime has elapsed.</u><u style="single"> Based on the above judgment, when an AV data write or read error occurs in the disk access unit, the disk access knit in which the write or read error occurs is skipped without providing a replacement disk access unit. A recording control step that controls the recording means to write or read the AV data to the disk access unit to be written or read next.</u><u style="single"> A skip counter step for counting the number of errors that occur when writing or reading the AV data from the disk access unit is provided.</u><u style="single"> The number of times of the recording control step is</u><u style="single">1</u><u style="single">When the value exceeds a predetermined value, which is the above value, writing or reading of the disk access unit is prohibited, and the recording / playback method is controlled so as not to be used thereafter.</u>[0084] In addition, the first<u style="single">11</u>The present invention (claim)<u style="single">11</u>The error determination step is characterized in that, when a command error occurs, it is determined that the write error or the read error has occurred.<u style="single">10</u>This is the recording / reproducing method of the present invention.
[0086] In addition, the first<u style="single">12</u>The present invention (claim)<u style="single">12</u>Corresponds to)<u style="single">A recording means capable of writing and reading AV data to a recording medium of the first recording / reproducing device of the present invention.</u><u style="single"> A time determined to guarantee the continuity of the AV data to be recorded and reproduced when the AV data is simultaneously recorded and reproduced for the disk access unit, which is the minimum unit for continuously accessing the recording medium. An error determining means for determining that an AV data writing or reading error has occurred when the writing or reading of the AV data to the disk access unit is not completed even after the overtime has elapsed.</u><u style="single"> Based on the above judgment, when an AV data write or read error occurs in the disk access unit, the disk access knit in which the write or read error occurs is skipped without providing a replacement disk access unit. A recording control means that controls the recording means to write or read the AV data to a disk access unit to be written or read next.</u><u style="single"> This is a program for operating a computer as a skip counter that counts the number of errors that occur when the AV data is written or read from the disk access unit.</u>[0087] In addition, the first<u style="single">13</u>The present invention (claim)<u style="single">13</u>Corresponds to)<u style="single">The twelfth recording medium on which the program of the present invention is recorded, which is a recording medium that can be processed by a computer.</u>BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First Embodiment) First, the first embodiment will be described.
FIG. 1 shows the recording / reproducing device 1 of the present embodiment.
[0091] The recording / playback device 1 is composed of an HDD 2, an HDD controller 3 for AV recording / playback, a file system 4, a Skip processing determination means 5, an error monitoring means 6, a timer 7, a recording buffer 8, and a playback buffer 9.
As shown in FIG. 17, the HDD 2 has a table for associating the notified LBA (Logical Block Address) with the track number and the sector number representing the physical position of the magnetic disk medium as in the conventional technique. It is a means for writing or reading AV data to the magnetic disk medium by associating the LBA with the track number and the sector number of the magnetic disk medium using this table.
FIG. 5 shows a magnetic disk medium 20 to which the HDD 2 writes or reads AV data. Unlike the magnetic disk medium 44 described in the prior art, the magnetic disk medium 20 is not provided with the alternate DAU region 46.
[0094] The HDD controller 3 for AV recording / playback is a means for controlling the HDD 2.
[0095] The file system 4 obtains the LBA at the beginning of the disk access unit from the file information which is the information about the file recorded in the HDD 2, the information of each disk access unit of the magnetic disk medium 20, and the disk access unit number. A means of managing files and disk access units using DAU translation tables.
[0096] Here, the file information is information indicating from the file name to which disk access unit the AV data is written in what order, for example, in the file name of the disk access unit constituting the file. It is information that can be associated with numbers and the numbers of disk access units can be listed in the order in which AV data is written.
[0097] Further, the information of each disk access unit of the magnetic disk medium 20 is a write skip counter that counts the number of times that the disk access unit skips writing for each disk access unit, and the disk access unit reads. There is a read skip counter that counts the number of skips, a bad DAU flag that indicates that AV data is not read from the disk access unit when reading, and so on.
[0098] FIG. 16 shows the DAU conversion table 53. The DAU conversion table 53 is a table that converts the disk access unit number 54 assigned to identify the disk access unit to the LBA 55 at the head of the disk access unit of the magnetic disk medium 44.
[0099] The Skip processing determination means 5 is a means for determining whether or not to skip the disk access unit when writing or reading.
[0100] The error monitoring means 6 is a means for monitoring whether a write error or a read error has occurred while performing a write or read process on the disk access unit.
[0101] The timer 7 is a means for measuring the time during which the disk access unit is being written or read.
[0102] The recording buffer 8 is a buffer for temporarily storing the AV data to be written to the HDD 2 when the AV data is transferred.
[0103] The playback buffer 9 is a buffer for temporarily storing the AV data read from the HDD 2.
The HDD 2 of the present embodiment is an example of the recording means of the present invention, the magnetic disk medium 20 of the present embodiment is an example of the recording medium of the present invention, and the AV recording / playback of the present embodiment. HDD controller 3 and Skip processing determination means 5 are examples of the recording control means of the present invention, and error monitoring means 6 of the present embodiment is an example of the error monitoring means of the present invention, and the defective DAU of the present embodiment. The flag is an example of the read prohibition flag of the present invention, and the error monitoring means 6 of the present embodiment is an example of the read error monitoring means of the present invention.
Next, the operation of such a recording / playback device 1 will be described. First, the operation when recording AV data on the magnetic disk medium 20 of the HDD 2 will be described.
[0106] When the magnetic disk medium 20 is formatted, both the write skip counter and the read skip counter of each of the above-mentioned disk access units are initialized to 0, and the defective DAU flag is set to off. Here, if the bad DAU flag is off, it means that AV data is read from the disk access unit, and if the bad DAU flag is on, it means that AV data is not read from the disk access unit. ..
[0107] The file information used by the file system 4 to manage the files, the information of the disk access unit, and the DAU conversion table 53 are stored in the magnetic disk medium 20. Then, when the recording / playback device 1 is started, the file system 4 loads the file information, the disk access unit information, and the DAU conversion table 53 from the magnetic disk medium 20 into the memory of the file system 4.
[0108] The AV data received by the tuner of the television or the like is transferred to the recording / playback device 1 in real time.
[0109] The recording buffer 8 temporarily stores the AV data transferred in real time in this way. Then, when the AV data for the disk access unit is stored, the HDD controller 3 for AV recording / playback is notified that the AV data for the disk access unit is stored.
[0110] When the HDD controller 3 for AV recording / playback is notified from the recording buffer 8 that the AV data for the disk access unit is stored, the file system 4 is notified of which disk access unit to write the AV data to. To request.
[0111] In response to this, the file system 4 notifies the HDD controller 3 for AV recording / playback of the number of the disk access unit to which the AV data should be written from the file information.
[0112] When the HDD controller 3 for AV recording / playback is notified by the file system 4 of the number of the disk access unit to which the AV data should be written, the first LBA of the notified disk access unit number is further transmitted to the file system 4. Inquire.
When the file system 4 receives an inquiry from the HDD controller 3 for AV recording / playback, the file system 4 sets the leading LBA of the disk access unit as shown in the leading LBA 55 by the DAU conversion table 53 shown in FIG. It asks and notifies the HDD controller 3 for AV recording / playback.
Further, the AV recording / playback HDD controller 3 requests the recording buffer 8 to transfer AV data to be written to one disk access unit.
[0115] In response to this, the recording buffer 8 transfers the AV data to be written to one disk access unit to the HDD controller 3 for AV recording / playback.
The HDD controller 3 for AV recording / playback transfers the AV data transferred from the recording buffer 8 to the HDD 2, and specifies the head LBA55 of the disk access unit and the write size which is the size of one disk access unit. And issue a write command to file system 4. The file system 4 relays the write command sent from the HDD controller 3 for AV recording / playback to the HDD 2.
[0117] The HDD 2 converts the notified LBA into a track number and a sector number according to the table of FIG. 17, and writes the transferred AV data to the corresponding sector of the magnetic disk medium 44.
On the other hand, AV data has been transferred to the recording buffer 8 in real time, and when the recording buffer 8 stores AV data for the disk access unit again, it notifies the HDD controller 3 for AV recording / playback. The recording / playback device 1 repeats the same operation as described above and records the AV data transferred in real time for each disk access unit one after another.
[0119] When recording AV data in this way, the error monitoring means 6 is defective by monitoring whether the write command issued by the AV recording / playback HDD controller 3 is normally executed or whether an error has occurred. Disk access unit is detected.
FIG. 7 shows the operation of the error monitoring means 6. Hereinafter, the operation of the error monitoring means 6 will be described with reference to FIG. 7.
[0121] When the HDD controller 3 for AV recording / playback issues a write command as described above (S1), the error monitoring means 6 enters the error monitoring operation. That is, the time elapsed from the time when the HDD controller 3 for AV recording / playback issues the write command is measured by using the timer 7.
Then, the error monitoring means 6 determines whether or not the end notification of the write command has been sent from the HDD 2 (S2). Then, if the end notification of the write command has not yet been sent from HDD2, the process proceeds to S4, and if the end notification of the write command has been sent from HDD2, the process proceeds to S3.
[0123] In S4, the error monitoring means 6 determines whether or not the elapsed time from the issuance of the write command is 300 milliseconds or more. This 300 ms time is the time over time derived from the continuity of AV data. That is, if the writing process to one disk access unit is completed within 300 milliseconds, the continuity of the AV data to be written can be guaranteed. The method of deriving the time over time will be described later. If 300 milliseconds or more have passed since the write command was issued, the process proceeds to S5, and if 300 milliseconds or less, the process proceeds to S2.
[0124] In S5, when the elapsed time from the issuance of the write command to 300 milliseconds or more has elapsed, the error monitoring means 6 instructs the AV recording / playback controller 3 to interrupt the writing process. Upon receiving the instruction from the error monitoring means 6, the HDD controller 3 for AV recording / playback issues a write interruption command to the file system 4, and the file system 4 relays the write interruption command to the HDD 2. When HDD2 receives the write interruption command, it interrupts the writing process and proceeds to S6.
[0125] In S6, the error monitoring means 6 notifies the Skip processing determining means 5 that a defective disk access unit has been detected. The Skip processing determination means 5 activates the Skip processing when the error monitoring means 6 notifies that a defective DAU has been detected. The skip process will be described later.
[0126] On the other hand, in S3, when the HDD2 notifies the end of the write command, it also notifies whether it ended normally or due to an error. Upon receiving the end notification of the write command from the HDD 2, the error monitoring means 6 determines whether the write command has ended normally or due to an error.
[0127] Then, if it ends due to an error, it proceeds to S6, and if it ends normally, it proceeds to S7.
That is, in S6, the error monitoring means 6 assumes that a write error has occurred when the write command ends with an error, or when the write command does not end even after 300 milliseconds have elapsed, and the AV data is input. The disk access unit to be written is determined to be a defective disk access unit.
[0129] In S7, when the write command ends normally, the error monitoring means 6 notifies the Skip processing determination means 5 that the write command ends normally, and the HDD controller 3 for AV recording / playback sets the recording buffer. The next write command is issued at the timing when it is notified that the AV data for the next disk access unit has been stored from 8.
Next, the operation of the Skip processing determination means 5 will be described. FIG. 8 shows the operation of the Skip processing determination means 5.
[0131] In S10, when notified by the error monitoring means 6, the Skip processing determination means 5 determines whether the notification is a notification that the write command has been completed normally or a notification that a defective disk access unit has been detected. Judge (S11).
[0132] If it is a notification that a bad disk access unit has been detected, the process proceeds to S12, and if it is a notification that the write command has been completed normally, the process proceeds to S15.
[0133] In S15, when the Skip processing determination means 5 is notified that the write command has been completed normally, the write skip flag of the disk access unit is initialized to 0, the bad DAU flag is turned off, and S16. Proceed to.
On the other hand, in S12, when the error monitoring means 6 notifies that a defective disk access unit has been detected, the Skip processing determination means 5 adds 1 to the write skip counter of the disk access unit.
Then, the bad DAU flag of the disk access unit is turned on (S13), and the process proceeds to S16.
[0136] In S16, the Skip processing determination means 5 acquires the number of the disk access unit to be written next from the file system 4, sets it as the current disk access unit, and proceeds to S17.
[0137] In S17, the Skip processing determination means 5 determines whether or not the current disk access unit is permanently defective. That is, if the value of the write skip counter of the current disk access unit exceeds 5, it is determined to be a permanent defect, and if it is 5 or less, it is not determined to be a permanent defect. A permanently defective disk access unit means a unit in which writing or reading cannot be performed normally due to a defect in the disk access unit itself rather than a disturbance such as vibration.
[0138] Here, a method for determining permanent defects will be described. Causes of writing and reading errors in the recording / playback device 1 include errors due to disk defects, errors due to random errors, and errors due to disturbances such as vibration.
[0139] Of these, the error due to a disk defect is an error that occurs when the disk access unit of the magnetic disk medium 20 of the HDD 2 is defective, and an error always occurs when reading from the defective disk access unit. It is a thing, and an error occurs at the time of reading as well. On the other hand, an error due to a random error is an error that occurs due to random access to the disk access unit, and the probability that an error due to a random error occurs is 10.<sup>-12</sup>Degree and small. In addition, errors due to disturbances such as vibration vary depending on the usage environment, but empirically 10 for stationary use in a normal home.<sup>-9</sup>The probability of occurrence.
[0140] A permanently defective disk access unit is a disk access unit in which the disk access unit itself is defective as described above, and an error occurs every time such a disk access unit is written or read. To do. Therefore, if the probability of an error occurring when writing or reading to a disk access unit is greater than the probability of an error occurring due to a random error and the probability of an error occurring due to a disturbance such as vibration, the disk access unit Can be determined to be a permanent defect. Therefore, the probability of an error when writing or reading is 10<sup>-9</sup>If it is larger, the disk access unit can be determined to be a permanently defective disk access unit.
[0141] Specifically, it is assumed that the user uses the recording / playback device 1 for 5 years, the magnetic disk medium 20 of the HDD 2 has a capacity of 30 Gbyte, and the size of the disk access unit is 1 Mbyte. If you continue to record 24 Mbps data for 8 hours a day, on average, one disk access unit will be written twice a day. Therefore, in 5 years, on average, one disk access unit will be written only 2 x 365 x 5 = 3650 times. Therefore, when writing to a certain disk access unit only 3650 times, the number of times that an error other than a disk defect occurs is about once or not. That is, an error due to a disturbance such as vibration occurs only about once every five years for one disk access unit, and an error due to a random error occurs only about once every ten years.
[0142] Therefore, in this model, the detection of a permanent error can be determined as an error due to a disk defect when the error occurs twice. That is, in the case of this model, if the value of the write skip counter of the current disk access unit exceeds 1, it is determined to be a permanent defect, and if it is 1 or less, it is not determined to be a permanent defect. It can be determined whether the unit is permanently defective. In this way, if the value of the skip counter exceeds a predetermined value (1 in the case of this model), it is determined to be a permanent defect, and if it is less than the predetermined value, it is not determined to be a permanent defect. It can be determined whether the unit is permanently defective. Further, since the error determination of a disk defect differs depending on the usage status and the error characteristics of the media, it is necessary to determine in advance a predetermined value for determining a permanent defect according to each application. In S17, it is possible that some disk access units of the magnetic disk medium 20 of HDD2 are written or read more frequently than other disk access units. 5 was used as the value.
[0143] Further, in S17, if the current disk access unit is permanently defective, the process proceeds to S16. If the current disk access unit is not permanently defective, notify the HDD controller 3 for AV recording / playback of the number of the disk access unit to be skipped, and proceed to S18. That is, the disk access unit determined to be permanently defective will no longer be used.
[0144] For example, in the magnetic disk medium 20 of FIG. 5, the reusable defective DAU22 has a write skip counter value of 5 or less, and a write process is performed on such a disk access unit. Will be. However, in the non-reusable DAU23, the value of the write skip counter exceeds 5, and the write process is not performed on such a disk access unit.
[0145] In S18, when the AV recording / playback HDD controller 3 is notified from the recording buffer 8 that the AV data to be written to the next disk access unit has been stored for the disk access unit, the AV recording / playback HDD controller 3 3 skips the disk access unit notified by the Skip processing determination means 5 that it should be skipped, obtains the number of the disk access unit to be written next from the file system 4, and proceeds to S19.
[0146] In S19, the AV recording / playback HDD controller 3 issues a write command to the HDD 2 for writing to the next disk access unit via the file system 4.
[0147] In this way, the recording / playback device 1 writes AV data to the disk access unit of the magnetic disk medium 20 one after another.
As described above, when recording AV data, the recording / playback device 1 of the present embodiment adds only one write skip counter of the disk access unit in which the error has occurred, and turns on the defective DAU flag. To do. Then, the AV data is written to the disk access unit to be written next to the disk access unit. A disk access unit whose write skip counter value exceeds 5 is regarded as a permanent defect and does not write AV data.
If writing is successful even once, the bad DAU flag of the disk access unit is turned off, and the read skip counter is set to 0. In this case, the write skip counter is left as it is.
Therefore, unlike the conventional technique, the recording / reproducing device 1 of the present embodiment can continuously transfer AV data without interruption even though the disk access unit is not replaced. In addition, even if the disk access unit does not complete writing even after 300 milliseconds have passed due to disturbance, it can be reused.
[0151] Next, an operation when the recording / reproducing device 1 reproduces the AV data recorded on the magnetic disk medium 20 will be described.
[0152] It is assumed that AV data has already been recorded on the magnetic disk medium 20 as described above. Then, when the recording / playback device 1 is started, the file system 4 loads the file information, the disk access unit information, and the DAU conversion table 53 from the magnetic disk medium 20 onto the memory of the file system 4.
[0153] The HDD controller 3 for AV recording / playback inquires about the number of the disk access unit to be read next from the file system 4.
[0154] In response to this, the file system 4 notifies the HDD controller 3 for AV recording / playback of the number of the disk access unit for reading the AV data from the file information.
[0155] When the HDD controller 3 for AV recording / playback is notified of the number of the disk access unit for reading the AV data from the file system 4, it inquires about the head LBA of the disk access unit.
When the file system 4 receives an inquiry from the HDD controller 3 for AV recording / playback, the file system 4 indicates the disk access unit number at the head LBA 55 according to the DAU conversion table 53 shown in FIG. Is requested and notified to the HDD controller 3 for AV recording / playback.
[0157] When the HDD controller 3 for AV recording / playback is notified of the LBA, the HDD controller 3 issues a read command to the file system 4 by designating the number of sectors corresponding to the size of the LBA and the disk access unit, and the file system 4 sends the LBA. The read command received is relayed to HDD2.
[0158] The HDD 2 converts the notified LBA into a track number and a sector number according to the table of FIG. 17, reads AV data from the sectors constituting the corresponding track of the magnetic disk medium 44, and is an HDD controller for AV recording / playback. Transfer to 3.
The AV recording / playback HDD controller 3 transfers the read AV data to the playback buffer 9.
[0160] The playback buffer 9 stores the AV data transferred from the HDD controller 3 for AV recording / playback, and outputs the stored AV data in real time.
[0161] When the playback buffer 9 has more than one free disk access unit, the AV recording / playback HDD controller 3 is notified of the free space.
[0162] The AV recording / playback controller 3 issues a read command to the file system 4 at the timing when the playback buffer 9 notifies that there is free space for the disk access unit. After that, the same operation as above is repeated, and AV data is read one after another.
[0163] When playing back AV data in this way, the error monitoring means 6 is defective by monitoring whether the read command issued by the HDD controller 3 for AV recording / playback is normally executed or an error has occurred. Disk access unit is detected.
That is, FIG. 7 shows the operation of the error monitoring means 6. The operation of the error monitoring means 6 will be described below with reference to FIG. 7.
[0165] When the HDD controller 3 for AV recording / playback issues a read command as described above (S1), the error monitoring means 6 enters the error monitoring operation. That is, the time elapsed from the time when the HDD controller 3 for AV recording / playback issues the read command is measured by using the timer 7.
Then, the error monitoring means 6 determines whether or not the end notification of the read command has been sent from the HDD 2 (S2). Then, if the read command end notification has not yet been sent from HDD2, the process proceeds to S4, and if the read command end notification has been sent from HDD2, the process proceeds to S3.
[0167] In S4, the error monitoring means 6 determines whether or not the elapsed time from the issuance of the read command is 300 milliseconds or more. This 300 ms time is the time over time derived from the continuity of AV data. That is, if the reading process is completed within 300 milliseconds, the AV data can be continuously played back without interruption. The method of obtaining the time over time will be described later. Then, if 300 milliseconds or more have passed since the read command was issued, the process proceeds to S5, and if 300 milliseconds or less, the process proceeds to S2.
[0168] In S5, when the elapsed time from the issuance of the read command to 300 milliseconds or more has elapsed, the error monitoring means 6 instructs the AV recording / playback controller 3 to interrupt the reading process. Upon receiving the instruction from the error monitoring means 6, the HDD controller 3 for AV recording / playback issues a read interruption command to the file system 4, and the file system 4 relays the read interruption command to the HDD 2. When HDD2 receives the read interrupt command, it interrupts the read process and proceeds to S6.
[0169] In S6, the error monitoring means 6 notifies the Skip processing determining means 5 that a defective disk access unit has been detected. The Skip processing determination means 5 activates the Skip processing when the error monitoring means 6 notifies that a defective DAU has been detected. The skip process will be described later.
On the other hand, in S3, when the HDD 2 notifies the end of the read command, it also notifies whether it ended normally or due to an error. Upon receiving the end notification of the read command from the HDD 2, the error monitoring means 6 determines whether the read command has ended normally or due to an error. Then, if it ends due to an error, it proceeds to S6, and if it ends normally, it proceeds to S7.
That is, in S6, the error monitoring means 6 assumes that a read error has occurred when the read command ends with an error, or when the read command does not end even after 300 milliseconds have elapsed, and the AV data is stored. The disk access unit to be read is determined to be a defective disk access unit.
[0172] In S7, when the read command ends normally, the error monitoring means 6 notifies the Skip processing determination means 5 that the read command ends normally, and the HDD controller 3 for AV recording / playback sets the playback buffer. The AV data read to 9 is transferred, and the next read command is issued at the timing when it is notified that the playback buffer 9 has output the AV data for the disk access unit.
Next, the operation of the Skip processing determination means 5 will be described. FIG. 9 shows the operation of the Skip processing determination means 5.
[0174] In S20, when notified by the error monitoring means 6, the Skip processing determination means 5 determines whether the notification is a notification that the read command has been completed normally or a notification that a defective disk access unit has been detected. Judge (S21).
[0175] If the notification from the error monitoring means 6 is a notification that the read command has been completed normally, the process proceeds to S25. If it is a notification that a defective disk access unit has been detected, the process proceeds to S22.
[0176] In S22, when the error monitoring means 6 notifies that a defective disk access unit has been detected, the Skip processing determination means 5 adds 1 to the read skip counter of the disk access unit and proceeds to S23. ..
[0177] In S23, the Skip processing determination means 5 determines whether or not the value of the read skip counter exceeds 5. If it exceeds 5, proceed to S24, and if it is 5 or less, proceed to S25.
[0178] In S24, the Skip processing determination means 5 turns on the defective DAU flag of the disk access unit, and proceeds to S25.
[0179] In S25, the Skip processing determination means 5 acquires the number of the disk access unit to be read next from the file system 4, sets it as the current disk access unit, and proceeds to S26.
[0180] In S26, the Skip processing determination means 5 determines whether the defective DAU flag of the current disk access unit is on or off. That is, if the bad DAU flag of the current disk access unit is on, proceed to S25. If the bad DAU flag of the current disk access unit is off, the HDD controller 3 for AV recording / playback is notified of the number of the disk access unit for which the bad DAU flag is turned on, and the process proceeds to S27.
[0181] In S27, when AV data for a disk access unit is output from the playback buffer 9 and it is notified that the playback buffer 9 has a free space for one disk access unit, the HDD controller 3 for AV recording / playback Skips the disk access unit notified by the Skip processing determination means 5, obtains the number of the disk access unit to be written next from the file system 4, and proceeds to S28.
[0182] In S28, the HDD controller 3 for AV recording / playback issues a read command to the HDD 2 for reading AV data from the next disk access unit via the file system 4.
[0183] In this way, the recording / playback device 1 reads AV data from the magnetic disk medium 20 one after another.
[0184] As described above, the recording / reproducing device 1 of the present embodiment adds only 1 to the read skip counter of the disk access unit when an error occurs at the time of reading. Then, for the disk access unit whose read skip counter value exceeds 5, the bad DAU flag is turned on. Also, read processing is not performed for disk access units for which the bad DAU flag is turned on.
Therefore, even at the time of reading, unlike the conventional technique, the recording / reproducing device 1 of the present embodiment continuously transfers AV data without interruption even though the disk access unit is not replaced. Can be done.
Next, an operation when erasing the AV data recorded on the magnetic disk medium 20 will be described.
[0187] The AV data recorded on the magnetic disk medium 20 is managed as an object. That is, the object means the AV data from pressing the recording start button of the recording / playback device to pressing the recording stop button. During this time, the pause button of the recording / playback device may be inserted.
FIG. 12 shows an operation when erasing an object recorded on the magnetic disk medium 20. Hereinafter, description will be made based on FIG.
[0189] In S40, the HDD controller 3 for AV recording / playback activates the erasing process. That is, the number of the disk access unit of the file to be erased is acquired from the file system 4, and the erase command for erasing the AV data recorded in the disk access unit is issued.
[0190] When the file system 4 receives the erase command, it initializes the table associated with the file to be erased and the disk access unit, and writes it to the HDD 2.
That is, this table contains a bad DAU flag and a skip counter, and the file system 4 turns off the bad DAU flag (S41) and sets the read skip counter to 0 when the table is initialized. Initialize (S42).
[0192] The write skip counter of the erased disk access unit is not initialized and is left as it is. Therefore, a disk access unit whose write skip counter value exceeds 5 cannot be reused even if the AV data is erased. On the other hand, a disk access unit with a write skip counter of 5 or less can be reused when the AV data is erased.
[0193] FIG. 5 shows the magnetic disk medium before the object is erased as the magnetic disk medium 20, and FIG. 6 shows the magnetic disk medium after the object is erased as the magnetic disk medium 30.
[0194] Object 0 (24) and object 1 (25) are recorded on the magnetic disk medium 20. The disk access unit on which object 0 (24) is recorded has a reusable bad DAU22 with a write skip counter value of 5 or less and a reusable bad DAU23 with a write skip counter value of more than 5. is there.
[0195] After erasing the object, the reusable bad DAU22 has a write skip counter value of 5 or less, the read skip counter value is initialized to 0, and the bad DAU flag is turned off, so that the object is erased. Reusable as shown in DAU28. On the other hand, the non-reusable defective DAU23 is not reused as shown in the non-reusable defective DAU29 because the value of the write skip counter exceeds 5 even after the object is erased.
[0196] Therefore, a defective disk access unit is not permanently treated as a defective disk access unit due to a disturbance such as vibration, and the defective disk access unit can be reused.
[0197] In the above description, the case of recording the AV data and the case of reproducing the AV data have been described separately. However, the recording / reproducing device 1 of the present embodiment simultaneously records the AV data and simultaneously performs the magnetic disk medium 20. It is also possible to play back the AV data recorded in. When playing back the already recorded AV data while recording the AV data at the same time in this way, the HDD controller 3 for AV recording / playback, the error monitoring means 6, and the Skip processing judgment means 5 divide the time into the above-mentioned recording operation and playback. Do the action.
[0198] As described above, how to obtain the time over time of 300 milliseconds will be described.
[0199] When the recording / reproducing device 1 of the present embodiment simultaneously performs simultaneous recording / reproduction of recording AV data and simultaneously reproducing the AV data recorded on the magnetic disk medium 20, the continuity of the recorded AV data. It is also assumed that the continuity of the AV data to be reproduced is guaranteed, and the continuity of the AV data is guaranteed until the failure of the disk access unit occurs uniformly in both writing and reading with a probability of 30%.
[0200] The recording buffer 8 can store AV data for up to three disk access units, and the playback buffer 9 can also store AV data for up to three disk access units. Is possible.
[0201] Then, the time required for writing or reading to a non-defective disk access unit is set to 160 milliseconds. The time required to output or input AV data for one disk access unit is 560 milliseconds.
Then, the time for storing the AV data for three disk access units in the recording buffer 8 or the time for outputting the AV data for three disk access units from the playback buffer 9 is 560 × 3 mm. It will be seconds. The time for reading processing for three disk access units and writing processing for three disk access units is 160 milliseconds x 3 x 2+ (Tout-160), assuming that the time over time is Tout. ) × 3 × 0.3 × 2. In order to guarantee the continuity of AV data, this time is the time when the AV data for 3 disk access units is stored in the recording buffer 8 and the AV data for 3 disk access units from the playback buffer 9 is set. Since it must be less than the output time, the relationship of equation 1 shown below must hold.
[0203] [Number 1] 160 × 3 × 2 + (Tout-160) × 3 × 0.3 × 2 <560 × 3 From number 1, Tout must satisfy the following number 2.
[0204] [Number 2] Tout <560 In addition, when AV data for three disk access units is written and AV data for three disk access units is read at the same time, a timeout occurs once for each of the write and read processes. In order to guarantee the continuity of AV data in such a case, the following relationship (3) must be established.
[Number 3] 160 milliseconds x 2 x 2 + Tout x 2 <560 x 3 From number 3 to Tout must satisfy the number 4 shown below.
[0206] [Equation 4] Tout <520 milliseconds Therefore, it is necessary to set the time-over time shorter if a timeout occurs once for each write / read.
[0207] Further, when a time-over occurs when the read process is performed and the retry process for reading from the disk access unit is performed only once, the equation 5 must be satisfied next.
[Number 5] 160 milliseconds x 2 x 2 + Tout x 3 <560 x 3 From number 5 to Tout must satisfy the number 6 shown below.
[0209] [Equation 6] Tout <347 milliseconds Therefore, if a time-over occurs in the read process, if the disk access unit is allowed to perform the read process only once, the time-over time will be 347 milliseconds. It may be set to seconds or less. Also, if Tout is set to 347 milliseconds or less, all the conditions of several 1 to 6 can be satisfied.
[0210] The time over time of the present embodiment, 300 milliseconds, is obtained by conducting the above consideration.
[0211] In the present embodiment, the recording / reproducing device 1 using the magnetic disk medium 20 has been described, but the recording / reproducing device may be a recording / reproducing device using another recording medium.
[0212] For example, FIG. 2 shows a recording / playback device 11 that uses DVDRAM as a recording medium. Unlike the recording / playback device 1 of FIG. 1, the recording / playback device 11 includes a DVD controller 13 for AV recording / playback and a DVD RAM drive 12. The AV recording / playback DVD controller 13 controls the DVDRAM drive 12 in the same way that the AV recording / playback HDD controller 3 controls the HDD 2. The file system 4 is the same as the fill system of the recording / playback device 1 except that the number of the disk access unit is converted to the LBA of DVDRAM. The blocks other than the above of the recording / reproducing device 11 are the same as those of the recording / reproducing device 1. As described above, the present embodiment can be applied not only to the recording / playback device using an HDD but also to the recording / playback device using a DVD.
[0213] Fig. 3 shows a recording / playback device 14 that uses a magneto-optical disk as a recording medium. Unlike the recording / playback device 1 of FIG. 1, the recording / playback device 14 includes a DVD controller 16 for AV recording / playback and an MO drive 15. The AV recording / playback DVD controller 16 controls the MO drive 15 in the same way that the AV recording / playback HDD controller 3 controls the HDD 2. In addition, file system 4 sets the disk access unit number to the MO drive.<u style="single">L</u>It is the same as the file system 4 of the recording / playback device 1 except that it is converted to BA. The blocks other than the above of the recording / reproducing device 14 are the same as those of the recording / reproducing device 1. As described above, the present embodiment can be applied to a recording / reproducing device using a magneto-optical disk medium.
[0214] Further, in the present embodiment, if the command does not end even if the elapsed time from the issuance of the write command or the read command is 300 milliseconds or more, the error monitoring means 6 has a bad disk access. The Skip processing determination means 5 is notified that the unit has been detected, but the present invention is not limited to this. The error monitoring means 6 may notify the Skip processing determining means 5 that a defective disk access unit has been detected even when a command error occurs in the issued write command or read command. The command error in this case is that when a write command or read command is issued to HDD2, if HDD2 cannot execute the command for some reason, HDD2 will notify within 300 milliseconds, which is the time over time. It is an error, and such an error occurs when an ECC (error correction) error occurs during read operation or when a command is issued during HDD2 initialization.
[0215] Further, the case where the write error of the present invention occurs is not limited to the case where the write command is not terminated even if the elapsed time from the issue of the write command is 300 milliseconds or more, and the write command is issued. Be done<u style="single">hand</u>In short, the write error of the present invention is the time over time derived from the continuity of AV data, such as when the HDD2 notifies that it is impossible to execute the command within 300 mm of the elapsed time from. It does not matter if the recording of AV data in the disk access unit is not completed even after the elapse has passed, or if a command error occurs.
[0216] In S24 of FIG. 9 of the present embodiment, the Skip processing determination means 5 has been described as turning on the defective DAU flag of the disk access unit and proceeding to S25, but the present invention is not limited to this. That is, as shown in FIG. 10, in S24, the Skip processing determination means 5 turns on the defective DAU flag of the disk access unit and proceeds to S24a, and in S24a, the Skip processing determination means 5 sets the write-side skip counter. You can increment by 1 and then proceed to S25. Depending on the specifications of the recording / playback device 1, there may be a case where it is determined that the writing is completed normally even though the AV data is not actually written to the disk access unit normally. In such a case, an error always occurs when reading to the disk access unit. Therefore, as shown in FIG. 10, by executing S24a after S24, it is determined that the writing is completed normally even though the AV data is not actually written to the disk access unit normally. Even if this is the case, it will be possible to accurately determine whether or not the disk access unit is permanently defective.
(Second Embodiment) Next, the second embodiment will be described.
FIG. 4 shows the recording / reproducing device 17 of the present embodiment.
[0219] The recording / playback device 17 of the present embodiment includes an AV recording / playback HDD controller 18 instead of the AV recording / playback HDD controller 3 of the recording / playback device 1 of the first embodiment.
[0220] Unlike the AV recording / playback HDD controller 3 of the first embodiment, the AV recording / playback controller 18 is stored in the playback buffer 9 when an error occurs in reading the disk access unit during playback. It is a means to control the HDD2 so that the disk access unit is repeatedly read until all the AV data is output.
[0221] Other than that, the same as in the first embodiment, and thus the description thereof will be omitted.
[0222] Next, the operation of the present embodiment will be described.
[0223] The operation when recording the AV data is the same as that of the first embodiment.
[0224] When reproducing the AV data, the error monitoring means 6 monitors whether or not an error has occurred in the reading process in the same manner as in the first embodiment.
FIG. 11 shows the operation of the Skip processing determination means 5. This will be described below with reference to FIG.
[0226] In S30, when notified by the error monitoring means 6, the Skip processing determination means 5 determines whether the notification is a notification that the read command has been completed normally or a notification that a defective disk access unit has been detected. Judge (S31).
[0227] If the notification from the error monitoring means 6 is a notification that the read command has been completed normally, the process proceeds to S37. If it is a notification that a bad disk access unit has been detected, proceed to S32.
[0228] When the error monitoring means 6 notifies that a defective disk access unit has been detected in S32, the Skip processing determination means 5 adds 1 to the read skip counter of the disk access unit and proceeds to S33. ..
[0229] In S33, the Skip processing determination means 5 determines whether or not the value of the read skip counter exceeds 5. If it exceeds 5, proceed to S34, and if it is 5 or less, proceed to S35.
[0230] In S35, the Skip processing determination means 5 inquires the HDD controller 18 for AV recording / playback whether or not the playback buffer 9 is empty. The HDD controller 18 for AV recording / playback checks the state of the playback buffer 9 in response to an inquiry from the Skip processing determination means 5, and notifies the Skip processing determination means 5 whether or not the playback buffer 9 is empty. If the playback buffer 9 is empty, the Skip processing determination means 5 proceeds to S37. If playback buffer 9 is not empty, proceed to S36.
[0231] In S36, the Skip processing determination means 5 instructs the AV recording / playback HDD controller 18 to perform the reading processing again for the disk access unit in which the error has occurred, and the AV recording / playback controller 18 performs the Skip processing. When instructed by the determination means, a read command is issued to read the disk command again. The error monitoring means 6 monitors whether or not an error has occurred in the reading process in the same manner as in the first embodiment.
[0232] In S34, since the value of the read skip counter exceeds 5, the Skip processing determination means 5 turns on the defective DAU flag of the disk access unit, and proceeds to S37.
[0233] In S37, the Skip processing determination means 5 acquires the number of the disk access unit to be read next from the file system 4, sets it as the current disk access unit, and proceeds to S38.
[0234] In S38, the Skip processing determination means 5 determines whether the defective DAU flag of the current disk access unit is on or off. That is, if the bad DAU flag of the current disk access unit is on, proceed to S37. If the bad DAU flag of the current disk access unit is off, the HDD controller 18 for AV recording / playback is notified of the number of the disk access unit for which the bad DAU flag is turned on, and the process proceeds to S39.
[0235] In S39, when notified that the AV data for the disk access unit has been output from the playback buffer 9, the HDD controller 18 for AV recording / playback has the disk access unit notified from the Skip processing determination means 5. Skip to get the number of the next disk access unit to write from file system 4 and proceed to S40.
[0236] In S40, the HDD controller 3 for AV recording / playback issues a read command to the HDD 2 for reading AV data from the next disk access unit via the file system 4.
[0237] In this way, the recording / playback device 1 reads AV data from the magnetic disk medium 20 one after another. Then, when an error occurs in the disk access unit, the reading process is repeated for the disk access unit until the recording buffer 9 becomes empty.
[0238] Therefore, in addition to the effect of the first embodiment, it is possible to further improve the reliability of the reproduction of the AV data as compared with the first embodiment while continuously reproducing the AV data without interruption. You can.
[0239] The time over time of the present invention is not limited to 300 milliseconds in the embodiment of the present invention, but is a time such as 310 milliseconds and 280 milliseconds, which can guarantee the continuity of AV data. All you have to do is.
[0240] Further, the skip counter of the present invention is not limited to the write skip counter and the read skip counter in the present embodiment, which are separately provided corresponding to the read process and the write process, and the read and the write are combined. It may be the one to be counted. In short, the skip counter of the present invention need only count the number of times the disk access unit has been skipped.
[0241] Further, the predetermined number of times of the present invention is not limited to 5 times in the present embodiment, but may be 4 times, 7 times, etc. In short, the predetermined number of times of the present invention does not require the disk access unit permanently. It suffices as long as the number of times is suitable for determining.
[0242] Further, the recording medium of the present invention is not limited to the magnetic disk medium 20 in the present embodiment, and the recording medium of the present invention such as a magneto-optical disk medium or an optical disk medium can record or reproduce AV data. It only has to be a thing.
[0243] Further, the recording medium of the present invention may be built in the recording / playback device of the present invention, or may be detachable.
[0244] Further, the present invention is a program for causing a computer to execute the functions of all or part of the means (or device, element, circuit, part, etc.) of the recording / reproducing device of the present invention described above. It is a program that works in cooperation with a computer.
[0245] Further, the present invention is a medium carrying a program for causing a computer to execute all or a part of the functions of all or a part of the recording / reproducing device of the present invention described above, and is readable by a computer. Moreover, the read program is a medium for executing the function in cooperation with the computer.
[0246] Note that some means (or devices, elements, circuits, parts, etc.) of the present invention mean some means among the plurality of means, or one means. It means some of the functions in.
[0247] The present invention also includes a computer-readable recording medium on which the program of the present invention is recorded.
[0248] Further, one usage form of the program of the present invention may be a mode in which the program is recorded on a recording medium readable by a computer and operates in cooperation with the computer.
[0249] Further, one usage form of the program of the present invention may be a mode in which the program is transmitted in a transmission medium, read by a computer, and operates in cooperation with the computer.
[0250] The recording medium includes a ROM and the like, and the transmission medium includes a transmission medium such as the Internet, light, radio waves, sound waves, and the like.
[0251] Further, the computer of the present invention described above is not limited to pure hardware such as a CPU, and may include firmware, an OS, and peripheral devices.
[0252] As described above, the configuration of the present invention may be realized by software or hardware.
[Effect of the Invention] As is clear from the above description, the present invention is a recording / reproducing device and a recording / reproducing method capable of continuously transferring AV data without taking time and effort.<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Can be provided.
[0254] Further, the present invention is a recording / playback device capable of continuously transferring AV data without erasing the AV data already recorded on the recording medium.<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Can be provided.
[0255] Further, the present invention is a recording / playback device capable of continuously transferring AV data without reducing the area that can be freely used by the user.<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Can be provided.
[0256] Further, in the present invention, a defective disk access unit is not permanently treated as a defective disk access unit due to a cause such as vibration or other disturbance, and the defective disk access unit is reused. Recording / playback device<u style="single">, Pu</u>Rogram<u style="single">And recording media</u>Can be provided.
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram showing a configuration of a recording / playback device according to a first embodiment of the present invention.
FIG. 2 is a diagram showing a configuration of a recording / reproducing device for recording / reproducing on a DVD according to the first embodiment of the present invention.
FIG. 3 is a diagram showing a configuration of a recording / reproducing device for recording / reproducing on a magneto-optical disk according to the first embodiment of the present invention.
FIG. 4 is a diagram showing a configuration of a recording / playback device according to a second embodiment of the present invention.
FIG. 5 is a diagram showing an example of a magnetic disk medium according to the first embodiment of the present invention.
FIG. 6 is a diagram showing an example of a magnetic disk medium when AV data is erased according to the embodiment of the stand 1 of the present invention.
FIG. 7 is a flowchart showing the operation of the error monitoring means according to the first embodiment of the present invention.
FIG. 8 is a flowchart showing an operation at the time of recording of the Skip processing determination means according to the first embodiment of the present invention.
FIG. 9 is a flowchart showing an operation during reproduction of the Skip processing determination means according to the first embodiment of the present invention.
FIG. 10 is another flowchart showing an operation during reproduction of the Skip processing determination means according to the first embodiment of the present invention.
FIG. 11 is a flowchart showing an operation during reproduction of the Skip processing determination means according to the second embodiment of the present invention.
FIG. 12 is a flowchart showing an operation of the recording / reproducing device at the time of erasing AV data according to the first embodiment of the present invention.
FIG. 13 is a diagram showing a configuration of a conventional recording / playback device.
FIG. 14 is a diagram showing an example of a magnetic disk medium that is recorded and reproduced by a conventional recording / reproducing device.
FIG. 15 is a diagram showing an example of a replacement DAU table of a conventional recording / playback device.
FIG. 16 is a diagram showing an example of a DAU conversion table used by a conventional recording / playback device and a recording / playback device of the present embodiment.
FIG. 17 is a diagram showing a table for associating an LBA used by a conventional recording / playback device and the recording / playback device of the present embodiment with a physical address.
[Code description] 1 Recording / playback device 2 HDD3 AV recording / playback HDD controller 34 File system 5 Skip processing Judgment means 6 Error monitoring means 7 Timer 8 Recording buffer 9 Playback buffer 11 Recording / playback device 12 DVD RAM drive 13 AV recording / playback DVD Controller 14 Recording / playback device 15 MO drive 16 AV recording / playback MO controller 17 Recording / playback device 18 AV recording / playback controller 20 Magnetic disk medium 22 Reusable defect DAU23 Reusable additional defect DAU26 AV data recording area 27 Magnetic disk medium
Every citation, both ways
| Document | Relation | Office |
|---|---|---|
| JP2001006294A | Cites | Japan |
| JP11039775A | Cites | Japan |
| JP11045158A | Cites | Japan |
| JP11176105A | Cites | Japan |
| JP2001051807A | Cites | Japan |
| JP11086454A | Cites | Japan |
| WO9814938A1 | Cites | World Intellectual Property Organization (WIPO) |
| JP2000003562A | Cites | Japan |
| JP11327808A | Cites | Japan |
10 members in 6 offices
Priority claims6
| Document | Office | Kind | Date |
|---|---|---|---|
| 2000333317 | Japan | A | |
| 2000333317 | Japan | – | |
| 2001333173 | Japan | A | |
| 20002000333317 | – | – | – |
| JP20000333317 | – | – | – |
| JP20010333173 | – | – | – |
Members10
| Document | Office | Kind | |
|---|---|---|---|
| WO0237491A1 | World Intellectual Property Organization (WIPO) | A1 | |
| JP2002203376A | Japan | A | |
| KR20030045845A | Republic of Korea | A | |
| EP1331639A1 | European Patent Office (EPO) | A1 | |
| US2004067047A1 | United States of America | A1 | |
| TWI253061B | Taiwan Province of China | B | |
| EP1331639A4 | European Patent Office (EPO) | A4 | |
| US7346265B2 | United States of America | B2 | |
| KR100837012B1 | Republic of Korea | B1 | |
| JP4137429B2This record | Japan | B2 |
12 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Cancellation because of no payment of annual feesLAPS | LAPS | |
| Renewal fee payment (event date is renewal date of database)FPAY | FPAY | |
| Renewal fee payment (event date is renewal date of database)FPAY | FPAY | |
| Renewal fee payment (event date is renewal date of database)FPAY | FPAY | |
| Certificate of patent or registration of utility modelJAPANESE INTERMEDIATE CODE: R150R150 | R150 | |
| First payment of annual fees (during grant procedure)JAPANESE INTERMEDIATE CODE: A61A61 | A61 | |
| Written decision to grant a patent or to grant a registration (utility model)JAPANESE INTERMEDIATE CODE: A01A01 | A01 | |
| Written decision to grant a patent or to grant a registration (utility model)JAPANESE INTERMEDIATE CODE: A01A01 | A01 | |
| Decision of grant or rejection writtenTRDD | TRDD | |
| Written amendmentJAPANESE INTERMEDIATE CODE: A523A521 | A521 | |
| Notification of reasons for refusalJAPANESE INTERMEDIATE CODE: A131A131 | A131 | |
| Written request for application examinationJAPANESE INTERMEDIATE CODE: A621A621 | A621 |
Numbers
- Publication
- 4137429
- Publication, DOCDB
- 4137429
- Publication, EPODOC
- JP4137429B
- Application
- 333173
- Application, DOCDB
- 2001333173
- Application, EPODOC
- JP20010333173
Titles2
- Japanese
- 記録再生装置、記録再生方法、プログラム及び記録媒体
- English
- Recording / playback device, recording / playback method, program and recording medium
Classification
- IPC, 5
- G11B20 12
- H04N5 92
- G11B7 004
- G11B20 10
- G11B20 18