Data recording/reproducing apparatus

Abstract: Generally in case that a rotary head type digital audio tape recorder (R-DAT) is used as an auxiliary storage of a computer and the like, the R-DAT reads recorded data (Di) immediately after the data (Di) was recorded and inspects its recording state by comparing it with its original data, and if the recording state is inferior, namely, if an error is detected, the R-DAT records the data again in order to improve reliability of the recorded data. Since an R-DAT according to the present invention re-records the original data of some error-detected data plural times in such a case as this, the R-DAT can obtain a good result by reproducing the data re-recorded second or later after the error-­ detected data, in case that the first re-recorded data cannot be reproduced correctly. Moreover, since the R-DAT re-records the data (Di) in which an error was detected and the data (Di-1) recorded immediately before the data (Di), the R-DAT can obtain a good result by reproducing the re-­ recorded data (Di-1) in case that the data (Di-1) contiguous to a defective portion (14a) of a recording medium (14) cannot be correctly reproduced due to expansion of the defective portion (14a) caused by repetition or the like of reproducing operations. In this way, reliability of recorded data is remarkably improved.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data recording/reproducing apparatus such as a rotary head type digital audio tape recorder (hereinafter referred to as R-DAT) and the like which can perform recording/reproducing of digital signals. 2. Description of the Prior Art In some examples of the prior art, there has been such a magnetic recording/reproducing apparatus as an R-DAT or the like which makes it possible to reproduce original data from partially lost data through an error correction technique in reproduction, by adding some error correction information (such as parity check code) to the original data in case of recording digital signals in high density on a magnetic recording medium. Although such an apparatus can correct completely data which has a very little lost part, it cannot reproduce original data in case that a consecutive write error has caused data to be lost in a wide range, for example, in case that a so-called flaw exists over a wide range on a magnetic tape. In case of using such a magnetic recording/reproducing apparatus as an auxiliary storage of a computer or the like, it is necessary to check recorded data after writing them, in order to detect such a situation. To check those data, for example, there is a method by which for verification after finishing a write operation the magnetic tape is rewound to a position at which the recording has been started and then run at the same speed as a speed in recording to reproduce the data for making a parity check. Such a method as this requires a long time for recording data due to necessity of writing data again, in case that some errors occur in the reproduced data due to a flaw on the recording medium and the errors cannot be corrected. TILESTON (Mini-Micro Systems Vol.15 No.10 p.257 - 264) discloses a magnetic recording/reproducing apparatus which has improved its reliability of recording by providing a streaming drive apparatus with a writing head and a reading head separately. The reading head reproduces the data written on a magnetic recording medium with the reading head immediately after writing the data with the writing head, and compares them with the original data. Such a magnetic recording/reproducing apparatus improves its reliability of recording by checking the recorded data to detect write errors by comparison and by re-writing the data in the defective area and any following areas already passed, if necessary. US-A-4 637 023 discloses an apparatus for serially recording a block of digital data on a continuously moving serial storage medium to allow for error correction, with means responsive to a recording error in an erroneously recorded subpart for re-recording a plurality of sequential subparts starting with the subpart having an associated identification number preceding the identification number of the subpart last recorded by a predetermined, fixed amount on said medium at a position other than the position at which said erroneously-recorded subpart was originally recorded. Figure 1 is a diagram showing a recording pattern of a magnetic tape on which data were recorded by the magnetic recording/reproducing apparatus. The magnetic tape 21 is run in the direction of arrow 23 and data Di (i=1,2,...) is recorded in a frame Fi (i=1,2,...) sequentially. In this case, when an error occurs in data D2 in frame F2 due to a defective portion of a flaw on the magnetic tape 21 as shown in Figure 1 (1), the data D2 is re-recorded. Since the magnetic recording/reproducing apparatus has already performed recording up to data D6 in a frame F6 before the error of the data D2 is detected, data on and after the data D2 are recorded on and after a frame F7. Since a tracking control for reproducing data from the magnetic tape 21 is performed on the basis of reproduced signals, some disorder occurs in the tracking control when reproducing frames F2 to F6 having a defective portion 22 on them. Since it takes a certain period of time for the tracking control to recover from this disorder, data in the frames to be reproduced for this period of time may not be reproduced correctly. Namely, the data D2 in the frame F7 and the like which were re-recorded on the magnetic tape 21 may not be reproduced correctly. As shown in Figure 1 (2), the defective portion 22 may be slightly overlapped on the frame F1. In this case, since a defective portion of the frame F1 occupies only a minute area, an error found in the error detection immediately after recording can be corrected. In case of reproducing data from the magnetic tape 21 multiple times, wear or the like of the surface of the recording medium may cause its recording state to be deteriorated or the defective portion in the frame F1 to be expanded, and this may make it impossible to correct an error in the data D1 in the frame F1. In this case, there is a problem that reproduction of the data D1 becomes impossible because the data D1 is not recorded in any frame other than the frame F1. SUMMARY OF THE INVENTION An object of the present invention is to provide a data recording/reproducing apparatus which can solve the above-mentioned problem and record and/or reproduce data in high reliability. The invention provides a data recording/reproducing apparatus as defined in claim 1. According to the invention, data is recorded in each predetermined unit recording area on a recording medium by a recording means, and the recorded data is read by a reading means immediately after recorded by the recording means. An error detecting means detects an error in the read data on the basis of output of the reading means. When an error is detected by the error detecting means, data recorded in a predetermined number of unit recording areas including one or plural contiguous unit recording areas recorded before the unit recording area in which the error was detected are recorded on the recording medium after a predetermined number of unit recording areas following the error-detected unit recording areas passed. In case that expansion of a defective portion on the recording medium caused by aging, repetition of a read operation, or the like makes it impossible to reproduce data in a unit recording area contiguous to the defective portion, reproduction of the re-recorded data will do. In this way, reliability of the data recording/reproducing apparatus can be improved remarkably. According to the invention, in case that an error of data in a unit recording area in which the error was detected can be corrected, data corresponding to the error-detected unit recording areas including this error-detected unit recording area may be recorded on the recording medium after a predetermined number of unit recording areas following the error-detected unit recording areas passed. According to the invention, recording and/or reproducing of data may be performed by a helical scan method. BRIEF DESCRIPTION OF THE DRAWINGS Other and further objects, features, and advantages of the invention will be more explicit from the following detailed description taken with reference to the drawings wherein: Figure 1 is a diagram showing a recording pattern of a magnetic tape 21 on which data are recorded by a conventional R-DAT; Figure 2 is a block diagram showing a basic configuration of an embodiment of an R-DAT1 of the present invention; Figure 3 is a diagram showing an examples of recording patterns of a magnetic tape 14 on which data was recorded by the R-DAT1; Figure 4 is a flowchart to explain a recording operation of the R-DAT1; and Figure 5 is a flowchart to explain another recording operation of the R-DAT1. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Now referring to the drawing, preferred embodiments of the invention are described below. Figure 2 is a block diagram showing configuration of an embodiment of the present invention. The embodiment uses a rotary head type digital audio tape recorder (R-DAT) 1 as an auxiliary storage of an external computer 16. In case of recording data from an external computer 16 on a magnetic tape 14, the data from the external computer 16 is supplied to an interface 2 through line ℓ1. The data through the line ℓ1 consists of image information, voice information, processing information of the external computer 16, or the like, and is output in each information unit for two tracks of the magnetic tape 14 as described later (hereinafter this information unit is referred to as a frame). A frame contains 5120 bytes for example, and is output one by one after data is divided into each frame by the external computer 16. Such data as this is output to a signal processing circuit 7 through a line ℓ3 at the same time when the data is output to a memory 3 of random access memory or the like through a line ℓ2 from the interface 2. Input and/or output operations or the like in the interface 2 are performed according to control signals from a control circuit 4 implemented by a microcomputer and the like. A parity code, frame number, and the like in the R-DATA are added to the data supplied to the signal processing circuit 7 from the interface 2 through the line ℓ3. The data to which a parity code and the like were added is supplied to an amplifier 8 through a line ℓ4. Data signals amplified by the amplifier 8 are supplied to a recording head W1 through a line ℓ5 or to a recording head W2 through a line ℓ6 as being switched over between them by a signal synchronized with rotation of a rotary cylinder 9 from a synchronizing circuit 13, and are recorded on the magnetic tape 14. Such recording heads W1 and W2 as these, and reproducing heads R1 and R2 described later are fixed on the rotary cylinder 9 of circular cylinder type. The rotary cylinder 9 is rotated by a motor 6 around its axis in the direction indicated by an arrow 17. At this time, a servo circuit 5 controls a rotation speed of the motor 6, using a control signal from the control circuit 4. The magnetic tape 14 is run by a capstan motor (not shown in the figure) or the like in the direction indicated by an arrow 18. The magnetic tape 14 is contact with the side face of the rotary cylinder 9 over a range of 90°, for example, of its circular cylindrical face. The recording heads W1 and W2 trace the magnetic tape 14 in a slant direction as shown in Figure 3 and form frames Fi (i=1,2,...) on it, respectively. A frame number which is a serial number is recorded for each frame as its identification information. The same frame number is recorded when recording the same data. The data are recorded in the recording direction indicated by an arrow 19. Data recorded on the magnetic tape 14 is read by the reproducing head R1 or R2 individually corresponding to the recording head W1 or W2, as being switched over between them by a synchronizing signal from the synchronizing circuit 13 in the same way as the above-mentioned write operation. Signals from the reproducing heads R1 and R2 are supplied to an amplifier 10 through a line ℓ7 and line ℓ8 respectively. At this time the reproducing heads R1 and R2 respectively reproduce data in frames formed by the recording heads W1 and W2 individually corresponding to the reproducing heads R1 and R2. A data signal amplified by an amplifier 10 is supplied to a synchronizing circuit 11 through a line ℓ9, and in the synchronizing circuit 11 the data signal is synchronized with a clock signal from a clock generating circuit 15. Output from the synchronizing circuit 11 is supplied to a signal processing circuit 12 through a line ℓ10, and in this signal processing circuit 12 an error correction for the output signal is made by a parity code added in the signal processing circuit 7. Such a signal processing as an error correction and the like at this time is performed synchronously with such a signal processing as a parity code addition and the like. Data which is output from the signal processing circuit 12 is supplied to the interface 2 through a line ℓ12. Usually the interface 2 stores the data in the memory 3 through the line ℓ2, and then reads the data from the memory 3 to output to the external computer 16. Figure 4 is a flowchart to explain a recording operation of the R-DAT1. It is assumed that an error has occurred at the time of recording data D2 in a frame F2 on the magnetic tape 14 shown in Figure 3 (1). At step n1, data Di (i=1,2,...) from the external computer 16 are supplied to the signal processing circuit 7 as well as stored in the memory 3. At step n2, the data D2 to which a parity code and the like were added in the signal processing circuit 7 is recorded on the magnetic tape 14. At step n3, the data D2 reproduced by the reproducing head R1 or R2 is supplied to the signal processing circuit 12, in which signal processing is performed including an error correction of the data by a parity code added in the signal processing circuit 7. At step n4, it is decided whether or not an error in the data D2 can be corrected. In case that the error in the data D2 can be corrected, namely, in case that the data D2 is normally recorded, the recording operation returns to step 1 and the next data is entered. In case that an error in the data D2 cannot be corrected, namely, in case that it is decided that the error in the data D2 in the frame F2 cannot be corrected due to such a defective portion 4a as a flaw or the like on the magnetic tape 14 as shown in Figure 3 (1), the recording operation proceeds to step n5 and entering data from the external computer 16 is stopped. At this times data D2 to D6 at least are stored in the memory 3 and data D1 to D6 have been recorded on the magnetic tape 14. At step n6, the data D2 in which an error could not be corrected is read from the memory 3, and at step n7 the first re-recording of the data D2 is performed. At step n8, the signal processing circuit 12 performs a signal processing including an error correction of the data D2 by a parity check. For this period of time, data D3 to D6 are sequentially read from the memory 3 and are recorded in frames F8 to F11 respectively. At step n9, it is decided whether or not an error in the re-recorded data D2 can be corrected. In case that the error correction is impossible, the recording operation returns to step n6, while it proceeds to step n10 in case that the error correction is possible. At step n10, the data D2 is read again from the memory 3, and at step n11 the second re-recording of the data D2 is performed. At step n12, the signal processing circuit 12 performs a signal processing including an error correction of the re-recorded data D2. For this period of time, data D3 to D6 are sequentially read from the memory 3 and sequentially recorded on the magnetic tape 14. At step n13, it is decided whether or not an error in the data D2 can be corrected. In case that the error correction is impossible, the recording operation returns to step n6 and starts again with the first re-recording of the data D2. In case that the error correction is possible, the recording operation returns to step n1 and makes the next data be entered from the external computer 16. In other words, in case that an error in the first recorded data cannot be corrected by its parity code, a re-recording operation is repeated until two consecutive recording operations are normally performed. As mentioned above, in case that a data error caused by a defective portion 14a of a magnetic tape 14 has been detected in recording when using an R-DAT1 as an auxiliary storage of an external computer 16, the data is re-recorded twice. In other words, the data to be re-recorded for the second time results in being re-recorded at a distance long enough from the defective portion 14a. When reproducing the second re-recorded data, therefore, any disorder does not occur in a tracking control during reproduction as described in relation to the prior art; and as a result, highly reliable recording/reproducing of data can be performed. In the embodiment the re-recording is performed twice, but it may be performed three or more times, too. In case of reproducing data recorded on a magnetic tape 14 in this way, for example, reproduced data in each frame is temporarily stored in a memory 3 and when it is output, a frame number of the data to be output and a frame number of the data fifthly after the data to be output are compared with each other; and if these two frame numbers are equal to each other, the prior data out of them is made not to output. Figure 5 is a flowchart to explain a recording operation of the invention. In this embodiment of the invention, it is assumed that an error has occurred at the time of recording data D2 in a frame F2 on the magnetic tape 14 shown in Figure 3 (2). At step m1, data Di (i=1,2,...) from the external computer 16 are supplied to the signal processing circuit 7 as well as stored in the memory 3. At step m2, the data D2 to which a parity code and the like were added in the signal processing circuit 7 is recorded on the magnetic tape 14. At step m3, the data D2 reproduced by the reproducing head R1 or R2 is supplied to the signal processing circuit 12, in which signal processing is performed including an error correction of the data by a parity code added in the signal processing circuit 7. At step m4, it is decided whether or not an error in the data D2 can be corrected. In case that the error in the data D2 can be corrected, namely, in case that the data is normally recorded, the recording operation returns to step m1 and the next data is entered. In case that an error in the data D2 cannot be corrected, namely, in case that it is decided that the error in the data D2 in the frame F2 cannot be corrected due to such a defective portion 14a as a flaw or the like on the magnetic tape 14 as shown in Figure 3 (2), the recording operation proceeds to step m5 and entering data from the external computer 16 is stopped. At this time, data D1 to D6 at least are stored in the memory 3 and the data D1 to D6 have been recorded on the magnetic tape 14. At step m6, the data D1 first before the data D2 in which an error could not be corrected is read from the memory 3, and at step m7 the data D1 is re-recorded. At step m8, the signal processing circuit 12 performs a signal processing including an error correction of the data D1 by a parity check. For this period of time, data D2 to D5 are sequentially read from the memory 3 and are recorded in frames F8 to F11 respectively. At step m9, it is decided whether or not an error in the re-recorded data D1 can be corrected. In case that the error correction is impossible, the recording operation returns to step m6 and the data D1 is re-recorded again. In case that the error correction is possible, the recording operation returns to step m1 and makes the next data be entered from the external computer 16. As mentioned above, when an error in recorded data cannot be corrected, data on and after the data recorded immediately before the data containing the error are re-recorded. According to the embodiment, as mentioned above, in case that an error in data D2 caused by a defective portion 14a of a magnetic tape 14 has been detected in recording when using an R-DAT1 as as auxiliary storage of an external computer 16, data D1 which was recorded immediately before the data D2 is also re-recorded. Therefore, in case that expansion of a defective portion 14a caused by aging or repetition of a reproducing operation makes it impossible to reproduce the data D1 in the frame F1, reproduction of the data D1 in the frame F7 will do. In this way, highly reliable recording/reproducing of data can be performed. In the embodiment of the present invention, the re-recording begins with the data D1, but it may also begin with some data recorded before the data D1. In case of reproducing data recorded on a magnetic tape 14 in this way, reproduced data in each frame is temporarily stored in a memory 3 and when it is output, a frame number of the data to be output and a frame number of the data fifthly after the data to be output are compared with each other; and if these two frame numbers are equal to each other, the prior data out of them is made not to output. Since a tracking control for reproducing data on the magnetic tape 14 is performed on the basis of reproducing signals, some disorder occurs in a tracking control when reproducing data in frames F2 to F5 holding a defective portion 14a on them. Since it takes a certain period of time for the tracking control to recover from this disorder, data in frames to be reproduced for this period of time may not be reproduced correctly. Namely, since the data D1 or the like recorded in a frame F7 on the magnetic tape 14 may not be reproduced correctly, re-recording of the data may be performed plural times. In the embodiment of the present invention, description is given on an R-DAT, but the invention does not have to be restricted to an R-DAT. The invention can be embodied also in such storage apparatus as a cassette tape recorder, video cassette tape recorder and the like.

Claims: A data recording/reproducing apparatus comprising: a recording means (W1, W2) for recording data (Di) into respective unit recording areas (Fi) on a recording medium (14), a reading means (R1, R2) for reading said data (Di) immediately after having been recorded said reading means being located adjacently to the recording means (W, W2), and an error detecting means (12) for detecting an error in the read data (Di) on the basis of the output of the reading means (R1, R2); and re-recording, on the recording medium (14), data (D2-D6) corresponding to a predetermined number of unit recording areas (F2-F6), after the passage of the predetermined number of unit recording areas (F2-F6) including and following any error-detected unit recording area (D2, F2) into following unit recording areas (F8-F12) of that predetermined number, characterized in that the re recorded data includes data (D1) of one (F1) or plural contiguous unit recording areas, in which data have been recorded prior to the unit recording area (D2, F2) in which the error have been detected by the error detecting means (12). A data recording/reproducing apparatus as claimed in claim 1, said re-recording on a recording medium (14) of data (D1) corresponding to one (F1) or plural unit recording areas immediately before the in the recording direction first error-detected unit recording area (D2, F2) or areas, after a predetermined number of unit recording areas (F3-F6) following the error-detected unit recording areas (F2) have passed, is in response to an error of data in said first error-detected unit recording area (F2) being so that the data (D2) in this unit recording area (F2) cannot be restored. A data recording/reproducing apparatus as claimed in claim 1, further comprising re-recording on a recording medium (14) of data corresponding to the error-detected unit recording areas including the most upstream unit recording area in the recording direction (19), after a predetermined number of unit recording areas following the error-detected unit recording areas have passed, in case that an error in the unit recording area at the most upstream location in the recording direction (19) is so insignificant that the data in this unit recording area may be restored. A data recording/reproducing apparatus as claimed in claim 1, recording/reproducing data by means of a helical scan method.

Inventors: YAMAMOTO HIROTOSHI, YAMAMOTO, HIROTOSHI
Applicants: SHARP KK, SHARP KABUSHIKI KAISHA
Application year: 1989
Main classification: G11B27
IPC codes: G11B27, G11B20