APPARATUS AND METHOD FOR RECORDING AND/OR REPRODUCING A DIGITAL SIGNAL

Abstract: An apparatus and method for recording and/or reproducing digital data employing a DAT (digital audio tape recorder) adapted to record and/or reproduce data from a computer or the like in accordance with the DAT format. Main data is recorded in a main area of a track while error detecting data for the main data recorded in the main area of the track is recorded in a sub-area of the track to thereby easily detect an error in the main data.

Description: The present invention relates to an apparatus and method for recording and/or reproducing a digital signal, and more particularly to such an apparatus and method suitable for use in recording and/or reproducing a digital signal transferred from a computer or the like. In practice, data stored in a hard disk or the like of a computer can be transferred to and recorded by a data streamer (data-recorder) once a day so as to protect the data or back up the same. For this operation, or as a data recorder, analog audio tape recorders have been conventionally used in many cases. However, analog tape recorders have disadvantages in that they need an excessive amount of a recording medium or magnetic tape for recording and operate at a quite low data transferring rate upon recording, so that it takes too much time to transfer and record such data information. Moreover, analog tape recorders have problems, e.g. the starting point of a desired portion of the recorded data information cannot be rapidly searched for, and so on. Thus, to overcome the above-mentioned problems, it is thought to utilize a helical-scan type DAT (digital audio tape recorder) using a rotary head, that is, a so-called recently commercialized DAT as a data recorder. Such data recorders utilizing a DAT are described in EP-A-0,272,130, EP-A-0,286,412, EP-A-0,297,809 and EP-A-0,300,732. To utilize the DAT as a data recorder, data transferred from a host computer is transformed in accordance with a DAT format before recording. In the DAT format, one frame is made up of two oblique tracks formed by one rotation of two heads respectively having a different azimuth angle with each other. 16-bit PCM audio data, which has been interleaved, and auxiliary sub-data are recorded in this one frame area as a unit. During recording, there are formed in each track a main area for recording the PCM data and a sub-area for recording the sub-data With the DAT as described above, when another signal is to be recorded on a previously recorded recording medium or tape, previously recorded signals are erased by recording new signals thereover, that is, by a so-called overwriting, without using an erasing head. Therefore, if overwriting is not normally effected, for example, due to clogging of the head or the like, there is the possibility that a part of the previously recorded signals may remain unerased. Therefore, if overwriting is not effected normally, for example, if the tape loses contact with the heads for an instant or due to clogging, previously recorded signals may remain unerased, which causes a data error referred to as "drop-in". To attend to this data error, in the DAT format, an error detecting code is added to each of the main area and the sub-area of each track in which signals are recorded, so as to detect an unerased portion, if any, in the track as an error. In the DAT format as described above, the main area and the sub-area of one track are respectively provided with the error detecting code so that the drop-in can be detected in the concerned area. However, even though such an error detecting code is added, in the event that previously recorded signals in an entire main area or an entire sub-area remain unerased, the drop-in cannot be detected if the error detecting code in the concerned area is considered to be normal. If a signal to be recorded is an audio signal, signals remaining in the unerased portion can be removed by positional correlation or the like. However, when the DAT is utilized as a data recorder, there is generally no positional correlation of data. Moreover, when the DAT is used as a data recorder, it is required to record and reproduce data more exactly than that for audio signals. Accordingly, it is an aim of the present invention to provide an apparatus and method for recording and/or reproducing a digital signal which is capable of solving the above-mentioned problems. According to a first aspect of the present invention, there is provided an apparatus for recording a digital signal containing main data and sub data comprising address data for said main data in consecutive tracks formed on a recording medium, comprising: means for forming in each track a main area for recording the main data and a sub-area for recording the sub-data; means for formatting said sub-data for each track in a sub-code block containing error correction data for correcting errors in the data contained in said sub-code block; means for formatting said main data for each track in main data blocks containing error correction data for correcting errors in the data contained in said main data block; and means for recording said sub-code blocks in said sub-areas of said tracks and said main data blocks in said main areas of said tracks, characterised by: means for generating check data for each main data block for detecting errors in data recorded in said main data areas and mixing said check data for each main data block with the corresponding sub-data prior to formatting the corresponding sub-code blocks. According to a second aspect of the present invention, there is provided an apparatus for reproducing a digital signal containing main data, sub-data, and check data recorded in tracks formed on a recording medium, with each track having a main area in which is recorded the main data and a sub-area in which is recorded the sub-data mixed with check data for detecting an error in data recorded in corresponding blocks in said main area, said main area containing error correction data for correcting errors in the data contained in said main area and said sub-area containing error correction data for correcting errors in the data contained in said sub-area, the reproducing apparatus comprising: means for reproducing signals recorded in the tracks formed on the recording medium; means for extracting said check data recorded in said sub-area from the reproduced signals; and means for comparing the extracted check data and the reproduced main data to detect an error in the main data. With the invention, pairs of tracks may be considered one frame and the data is organized according to logical frame numbers and absolute frame numbers. The means for comparing the reproduced check data and the reproduced main data may include means for detecting the continuities of the logical and absolute frame numbers. The present invention also provides corresponding methods for recording and reproducing a digital signal. The above and other aims, features and advantages of the present invention will become apparent from the following detailed description of the preferred embodiment taken in conjunction with the accompanying drawings, throughout which like reference numerals designate like elements and parts. Fig. 1 is a block diagram showing an embodiment of the present invention; Fig. 2 is a diagram showing a DAT format; Fig. 3 is a diagram showing the data arrangement in a main data block; Figs. 4A and 4B are a diagram showing the data arrangement of the main area in one frame; Fig. 5 is a diagram showing the data arrangement of the logical frame number; Figs. 6A and 6B together are a diagram showing the data arrangement of a sub-code block; Fig. 7 is a diagram showing the data arrangement of the packs in the sub-code block; Fig. 8 is a flow chart showing a sequence of the error determining method; Fig. 9 is a table showing error determination bases; and Fig. 10 is a table showing the contents of the respective determinations. One embodiment of the present invention will now be described with reference to the accompanying drawings. Fig. 1 shows the whole arrangement of an embodiment according to the present invention in which a DAT is used as a data recorder. In Fig. 1 reference numeral 1 generally designates a DAT, 2 an interface bus, 3 a host computer and 4, 5 inner buses, respectively. The DAT 1 is mainly formed of a recording and reproducing section 6, a recording amplifier 7, a reproducing amplifier 8, a signal processing circuit 9, a RAM 10, a data controller 11, an interface board 12, a system controller 13, a servo and motor drive circuit 14 and so on. The system controller 13, the signal processing circuit 9 and the data controller 11 are arranged to interchange among them predetermined signals such as an absolute frame number AFNO, check data, a mode indication, a logical frame number LFNO, a determination result by the check data, a data transfer instruction and so on. The recording and reproducing section 6 is provided with a rotary head drum, though not shown, such that a magnetic tape 15 (Fig. 2) is wrapped around the peripheral surface of the drum over an angular range of about 90° of head travel and transported by a capstan. The drum is provided with a pair of heads A and B mounted thereon respectively having azimuth angles different from each other, in a manner such that two oblique tracks are recorded on and reproduced from the tape by the heads with each rotation of the drum. Digital data delivered from the host computer 3 through the buses 5, 2 and 4 is fed to the interface board 12 through which the digital data is subjected to predetermined signal processing in the data controller 11, the RAM 10, the signal processing circuit 9, and so on, under the control of the system controller 13 to be converted in accordance with aforementioned DAT format. The DAT formatted data is then supplied through the recording amplifier 7 to the recording and reproducing section 6 to be recorded on the magnetic tape by the heads A and B. The signal recorded on the magnetic tape can be subsequently reproduced by the heads A and B. The reproduced signal is supplied through the reproducing amplifier 8 to the signal processing circuit 9 wherein the signal is re-converted from the DAT format. The digital data therefrom is supplied through the data controller 11, the interface board 12 and the buses 4, 2 and 5 to the host computer 3. In the above-mentioned apparatus, the DAT format according to which signals are recorded on a magnetic tape is as shown in Fig. 2. In Fig. 2, two oblique tracks T A and T B are formed on a tape 15 by one rotation of the heads A and B, as indicated by an arrow a in Fig. 2. One frame is made up of these two tracks T A and T B . One track T A or T B comprises 196 blocks and one block is formed of 288 bits. At each end portion thereof 34 blocks are assigned to be the sub-areas and 128 blocks of the central portion thereof the main area. The sub-areas are further divided into several areas. Specifically, beginning from the lower end side of each sub-area, as viewed in Fig. 2, the first sub-areas of the tracks T A and T B are partitioned into a margin area, a preamble area for the PLL of the sub-code, a first sub-code area, a postamble area, an interblock gap area, a tracking (ATF) signal area, an interblock gap area, and a preamble area for the PLL of data. The second sub-areas, at the other ends of the tracks T A and T B are partitioned into an interblock gap area, an ATF signal area, an interblock gap area, a preamble area for the PLL of the sub-code area, a second sub-code area, a postamble area, and a margin area. Among these areas, the first and second sub-code areas are respectively formed of eight blocks, and the other areas are formed of a predetermined number of blocks. It should be noted that the scale of the respective areas in Fig. 4 is not exact. The main area comprises 128 data blocks. Each of the blocks thereof comprises, as shown in Fig. 3, from its head (the left side as viewed in Fig. 3), eight bits each of a synchronizing signal, a W₁ area for recording the PCM-ID and so on, a block address area and a parity area and the remaining 256 bits of a main data area. When an audio signal is recorded, the main data area is loaded with a left (L) channel and a right (R) channel, each comprising 16 bit PCM data. The 16-bit PCM data are interleaved and recorded with parities in the main areas of the two tracks T A and T B (one frame). Thus, the main areas of one frame have a data capacity of approximately 5760 bytes. When the DAT is employed as a data recorder the data transferred from the host computer 3 is converted into 16-bit data so as to be treated in the same manner as the above-mentioned audio PCM data and arranged in accordance with the format as shown in Fig. 4 and recorded in the main areas of one frame. Let the above format be explained in more detail. In Figs. 4A and 4B, the above-mentioned 5760 bytes are divided into words (numbered 0 - 1439) each formed of four bytes (32 bits). Each of these words is divided into an R-channel and L-channel of 16-bit each (two bytes) in accordance with the DAT-formatted audio signal. The first three words (12 bytes) are assigned to be a synchronizing area in which all the bits of the first byte are set to "0", all the bits of the subsequent 10 bytes are set to "1", and all the bits of the last byte are set to "0". Next, four words (16 bytes) are assigned to a header portion in which the same contents are written in the L-channel and R-channel portions. Specifically, explaining the arrangement of the header portion, the beginning half byte of the fourth word (note that the fourth word is referenced "3(-)," the fifth word is referenced "4(+)," etc.) of the L-channel in this header portion is assigned to be a format ID for indicating the format of the data recorder. The 4 bits in the last half of the first byte of the fourth word are indefinite. The remaining three bytes of the fourth word are assigned to be logical frame number (LFNO) areas. By means of the LFNO, each being made of 8 bits, there is provided a binary value which is indicative of the serial number (1 - 23) of a frame, with 23 frames being treated as a unit. The eleventh to 1439th words subsequent to the header portion are assigned to be a data area having a total capacity of 5728 bytes, and data signals from the host computer 3 are sequentially recorded in these frames four bytes at a time. The 1440th word is assigned to an error detecting code (EDC) area in which is recorded an error detecting code (EDC) for each of the data bit sequences formed in the vertical direction of the data signals written in the header portion and the data area. As described above, the DAT format of the present embodiment is such that L-channel data and R-channel data are alternately recorded in two byte increments in two tracks, wherein each track is generally identified, for example, by plus and minus (+ and -) azimuth angles of the heads A and B for forming the tracks which are marked on the both sides of Figs. 4A and 4B. The EDC can be generated for the two tracks forming one frame in the above-mentioned manner so that the EDC is generated for the data sequence formed of the data signals in the header portion and the data area in the vertical direction. Therefore, according to this format, it is therefore possible to determine whether there remain unerased portions or not by effecting the EDC operation. Specifically, if an unerased portion remains in one of the two tracks, every other data for generating the EDC are erroneous so that the EDC cannot be generated correctly. Thus, the unerased portion can be detected by checking the generated EDC values. Next, the logical frame number LFNO will be explained with reference to Fig. 5. As described above, the logical frame number LFNO is assigned to record the serial numbers (1 - 23) of each frame, for example, with 23 frames being taken as a unit. In other words, the frame numbers 1 to 23 repeat at every 23 frames. As illustrated in Fig. 5, the LFNO is formed of eight bits. The most significant bit of the LFNO is a last frame ID (LASTF-ID) indicative of the last frame in the unit, that is, the 23rd frame when the unit is formed of 23 frames. The next most significant bit is an ECC frame ID (ECCF-ID) indicative of an error correcting code (ECC) frame for correcting errors. The remaining six bits represent the LFNO 1 - 23 in binary combination. The number of frames in one unit can be selected arbitrarily from the range of 1 to 64 in place of the above-mentioned 23 frames. In such case the last frame in one unit can be identified by the LASTF-ID. The ECCF-ID can be recorded in a plurality of frames, instead of recorded only in one frame. The use of such a frame unit provided with the LFNOs can clearly delimit data by a predetermined quantity, and accordingly the signal processing is facilitated. Further, since the number of frames in one unit can be appropriately selected by changing the maximum value of the LFNO, the signal processing can be effected more easily. Next, an explanation will be given of the data arrangement of the first and second sub-code portions in the sub-area. The first and second sub-code portions are respectively formed of eight sub-code blocks in each of which 2048 bits of data can be recorded. Figs. 6A and 6B show, respectively, the constructions of the even-numbered sub-code block (EVEN block) and the odd-numbered sub-code block (ODD block), in each of which a synchronizing signal, the areas W₁ and W₂ and a parity, respectively formed of eight bits, and 256 bits of sub-code data including a parity are located in this order. The sub-code data is divided into four packs formed of 64 (8 x 8) bits (eight symbols), respectively. As shown in Figs. 6A and 6B, the contents of W₁ and W₂ in the EVEN block are different from those in the ODD block, and the packs in the EVEN and ODD blocks are alternately numbered from "1" to "7". The eighth pack is assigned to record an error detecting code C₁. In the EVEN block, the area W₁ consists of a four-bit control code (CTL-ID) and another four bits all set at "0", while the area W₂ consists of an upper bit set at "1", a three-bit format ID and a four-bit block address. On the other hand, in the ODD block, the area W₁ consists of program number codes (PNO-2 and PNO-3) respectively formed of four bits, while the area W₂ consists of an upper bit set at "1", a three-bit program number code (PNO-1) and a four-bit block address. The packs 1 - 7 are respectively divided into eight words of eight bits each in which are recorded a variety of codes such as a code indicating the lead-in area of the record starting portion on a tape, a code indicating a lead-out area of the record terminating portion, a code indicating the recording date, an absolute frame number, a logical frame number and so on, with parities. Fig. 7 shows the construction of the pack 3 as an example of one of these seven packs. As can be seen from Fig. 7, the pack 3 consists of eight, eight-bit words PC1 - PC8. The upper four bits of the word PC1 are assigned to record a pack number ("0011" indicating the pack 3 in Fig. 7), and the lower four bits of the same are assigned a format ID. The word PC2 is indefinite. The upper four bits of the word PC3 are assigned to record an area ID indicative of the lead-in area or the lead-out area. A total 20 bit area formed of the lower four bits of the word PC3 and the words PC4 and PC5 is assigned to record the absolute frame number (AFNO). The AFNO is the serial number recorded in each corresponding frame in one volume of tape. A total 16-bit area formed of the subsequent words PC6 and PC7 is assigned to record a check data CD which relates to the present invention. The word PC8 is assigned to record a parity for the words PC1 - PC7. The above 16-bit check data CD is the exclusive OR of all the data (transferred from the host computer 3) recorded in the main area located in one of the tracks T A and T B in which the pack 3 is provided. Alternatively, the check data CD can be an error detecting signal such as CRC for all the data recorded in the main area. Check Data(+azimuth)=L0+R1+L2+R3-------+R1439 Check Data(-azimuth)=R0+L1+R2+L3-------+L1439 The check data can be recorded in superimposed fashion in the word PC1 and other indefinite portions in the words PC2 - PC7 to improve the reliability of the data. In this case, since one track has eight blocks of the first and second sub-code portions and there are seven packs available in a pair of EVEN and ODD blocks, it is possible to record maximally 56 sets of the check data CD in one track. The check data is utilized in the following cases. Upon reproduction, the check data read out from one track is compared with an exclusive OR of the main data read out from the main portion of the same track. If, as the result of this comparison, both data do not coincide with each other, it can be determined that the whole main area or the whole sub-area remains unerased (previously recorded check data CD also remains). On the other hand, if both data coincide with each other, it can be determined that the whole main area and the whole sub-area are either both correct or both are erroneous. Next, it can be detected which of the main area and the sub-area is erroneous by the use of the LFNO and AFNO in the following manner. Fig. 8 shows the sequence of such a determination, as carried out by the system controller 13, wherein the checking of items at steps S1 - S4 provide the determination bases as shown in Fig. 9, from which errors can be defined as shown in Fig. 10. In Fig. 8, it is first examined at step S1 whether or not data recorded in the main area (hereinafter simply called "the main data") was corrected by the codes C₁ and C₂. If the correction was not possible, it is determined on the bases of column C in Fig. 10 that there is a drop-out in the main data on the track, and a message indicative of the determination is transferred. If it is detected at step S1 that the correction was carried out, the process proceeds to the next step S2 to examine the continuity of the LFNO in the main area. If continuity is not found, it is determined on the basis of the column B in Fig. 10 that the overwrite was not correctly effected and hence unerased signals, which had been previously recorded, are reproduced, that is, a drop-in occurred in the concerned track, and a message indicative of the determination is transferred. If continuity is found in the LFNO, the process terminates the check on the main area and proceeds to the next step S3 to check the sub-area. Specifically, the reproducibility of data in the packs of the sub-area is examined by the error correcting code C₁, the parities recorded in the packs, coincidence of data and so on. If these checks cannot be effected, it is determined on the basis of the row (5) in Fig. 10 that a drop-out occurred in data in the sub-area (sub-data) and the main data is correct. If the reproducibility check has been effected, the process proceeds to the next step S4 wherein the continuity of the AFNO and the main data are checked, the latter by the use of the check data CD, and the determination bases shown in Fig. 9 are provided from the respective check results. Thus, the determinations in the column A of Fig. 10 can be obtained from the bases of Fig. 9. The contents of respective determination are as follows: A - (1) The main data is correct. A - (2) Drop-in occurred in both of the main data and sub-data. A - (3) Drop-in occurred in the main data. The AFNO was continuous eventually. A - (4) Drop-in occurred in the sub-data. The AFNO is made to self-run and the main data is regarded to be correct. A - (5) Drop-out occurred in the sub-data. The AFNO is made to self-run and the main data is regarded to be correct. Incidentally, a flag can be generated when the drop-in is detected by the check data CD, whereby error correction can be effected by an error correction code EGG on the basis of this flag. Also, the above-mentioned error detection by the check data CD can be effected a plurality times to prevent misreading of the check data CD and data in the main area. According to the present invention, since the sub-area is provided with check data CD for all of the data in the main area of one track and the serial number AFNO of the frame, it is possible to easily detect errors such as a drop-in or the like which occur in the entire main area or the entire sub-area and specifically reveal the type of errors, whereby the performance of the DAT used as a data recorder can be highly improved.

Claims: An apparatus for recording a digital signal containing main data and sub data comprising address data for said main data in consecutive tracks formed on a recording medium (15), comprising: means (6) for forming in each track a main area for recording the main data and a sub-area for recording the sub-data; means for formatting said sub-data for each track in a sub-code block containing error correction data for correcting errors in the data contained in said sub-code block; means for formatting said main data for each track in main data blocks containing error correction data for correcting errors in the data contained in said main data block; and means (6) for recording said sub-code blocks in said sub-areas of said tracks and said main data blocks in said main areas of said tracks, characterised by: means for generating check data for each main data block for detecting errors in data recorded in said main data areas and mixing said check data for each main data block with the corresponding sub-data prior to formatting the corresponding sub-code blocks. An apparatus for recording a digital signal according to claim 1, wherein the means for forming the main and sub-areas in the track and said means for recording include a rotary head type tape recorder. An apparatus for recording a digital signal according to claim 1 or 2, wherein said check data is derived by exclusive ORing of the main data recorded in one track. An apparatus for recording a digital signal according to claim 1, 2 or 3, further including means for recording a number indicative of the sequence of tracks in said main area. An apparatus for recording a digital signal according to any one of claims 1 to 4, further including means for recording an absolute number indicative of the sequence of tracks in said sub-area. An apparatus for reproducing a digital signal containing main data, sub-data, and check data recorded in tracks formed on a recording medium, with each track having a main area in which is recorded the main data and a sub-area in which is recorded the sub-data mixed with check data for detecting an error in data recorded in corresponding blocks in said main area, said main area containing error correction data for correcting errors in the data contained in said main area and said sub-area containing error correction data for correcting errors in the data contained in said sub-area, the reproducing apparatus comprising: means for reproducing signals recorded in the tracks formed on the recording medium; means for extracting said check data recorded in said sub-area from the reproduced signals; and means for comparing the extracted check data and the reproduced main data to detect an error in the main data. An apparatus for reproducing a digital signal according to claim 6 wherein the recorded digital data further includes a number indicative of the sequence of tracks recorded in said main area and an absolute number indicative of the absolute sequence of tracks recorded in said sub-area, and the apparatus for reproducing further comprises: means for extracting the number indicative of the sequence of tracks recorded in said main area from the reproduced signals; means for detecting the continuity of said number and generating a corresponding first signal; means for extracting the absolute number indicative of the absolute sequence of tracks recorded in said sub-area from the reproduced signals; means for detecting the continuity of said absolute number and generating a corresponding second signal; and means supplied with the reproduced check data, the first signal, and the second signal for error detecting the check data and detecting an error in the main data or the sub-data. A method for recording a digital signal containing main data and sub data comprising address data for said main data in consecutive tracks formed on a recording medium, comprising the steps of: forming in each track a main area for recording the main data and a sub-area for recording the sub-data; formatting said sub-data for each track in a sub-code block containing error correction data for correcting errors in the data contained in said sub-code block; formatting said main data for each track in main data blocks containing error correction data for correcting errors in the data contained in said main data block; and recording said sub-code blocks in said sub-areas of said tracks and said main data blocks in said main areas of said tracks, characterised by the further step of: generating check data for each main data block for detecting errors in data recorded in said main data areas and mixing said check data for each main data block with the corresponding sub-data prior to formatting the corresponding sub-code blocks. A method for recording a digital signal according to claim 8, wherein the step of forming the main and sub-areas in the track includes the step of using a rotary head type tape recorder in recording the digital data. A method for recording a digital signal according to claim 8 or 9, wherein said check data is derived by exclusive ORing the main data recorded in one track. A method for recording a digital signal according to claim 8, 9 or 10, further including the step of recording a number indicative of the sequence of tracks in said main area. A method for recording a digital signal according to any one of claims 8 to 11, further including the step of recording an absolute number indicative of the sequence of tracks in said sub-area. A method for reproducing a digital signal containing main data, sub-data, and check data recorded in tracks formed on a recording medium, with each track having a main area in which is recorded the main data and a sub-area in which is recorded the sub-data mixed with the check data for detecting an error in data recorded in the corresponding block in said main area, said main area containing error correction data for correcting errors in the data contained in said main area and said sub-area containing error correction data for correcting errors in the data contained in said sub-area, the reproducing method comprising the steps of: reproducing signals recorded in the tracks formed on the recording medium; extracting said check data recorded in said sub-area from the reproduced signals; and comparing the extracted check data and the reproduced main data to detect an error in the main data. A method for reproducing a digital signal according to claim 13, wherein the recorded digital data further includes a number indicative of the sequence of tracks recorded in said main area and an absolute number indicative of the absolute sequence of tracks recorded in said sub-area, and the method for reproducing further comprises the steps of: extracting the number indicative of the sequence of tracks recorded in said main area from the reproduced signals; detecting the continuity of said number and generating a corresponding first signal; extracting the absolute number indicative of the absolute sequence of tracks recorded in said sub-area from the reproduced signals; detecting the continuity of said absolute number and generating a corresponding second signal; and on the basis of the reproduced check data, the first signal, and the second signal, error detecting the check data and detecting an error in the main data or the sub-data.

Inventors: IIJIMA, TATSUYA, INAZAWA, YOSHIZUMI, ISHIBASHI, HIROSHI, ODAKA, KENTARO, OZAKI, SHINYA, YAMADA, MASAKI
Applicants: SONY CORPORATION
Application year: 1988
Main classification: G11B20
IPC codes: G11B20, G11B27, G11B5