The present invention generally relates to a method and a system for recording data to an optical recordable medium, and more particularly to a method and a system for seamlessly transiting from a verifying operation to a recording operation in sequence to record data onto the optical recordable medium and the verifying operation.
After an optical recording apparatus records data to an optical recordable medium, the optical recording system operates a verifying operation to verify the reliability of data just recorded. Data recording-verification performance of a data recording system is limited by the time-consuming and resource hungry verification process, since the storage drive may not retrieve further data for recording prior to the completion of previous data verification. When a defect block is found during the verifying operation, the optical recordable medium allocates a replacement for the defect block, and this operation is called a defect management.
Please refer to
As shown in
Please refer to
Upon initialization, unrecorded data level increases steadily until reaching an upper threshold in data transferring, where blocks B0˜B19 is transferred from a data source to the buffer. The data level remains at a constant level throughout seeking 101. Then the data level decreases continuously to a lower threshold during recording 102. Next the data level remains constant throughout seeking 103 and verifying 104 of the complete recorded data blocks B0˜B19. And the data level increases again in data transferring of the next data section D2 with blocks B20˜B39. The buffer space of the buffer is available only for the next data section D2 with blocks B20˜B39 after the verification of data section D1 is completed. Therefore the time consuming of the whole data storage process, including the recording and verification, suffers from the wait for verification 104.
As shown in
Correspondingly, there is a need to develop an optical recording method and apparatus, which is capable of seamlessly transiting from a verifying operation to a recording operation to improve the entire performance of recording operation. Further, as demand for data access grows, better data recording-verification performance is in favor, so that higher data throughput may be delivered in an unit time. Thus an efficient data storage scheme is needed to speed processing of data recording-verification.
One aspect of the present invention is to provide a method of recording a plurality of data units from a source via a buffer to an optical recordable medium, the method comprising: recording a first number of data units to the optical recordable medium; verifying a second number of data units being recorded; preparing for recording a third number of new data units after verifying one recorded data unit of the recorded data units during the verifying step; recording the third number of data units when finishing the verifying step; and repeating the above steps until the plurality of data units being recorded and verified.
Another aspect of the present invention is to provide an recording system for recording a plurality of data units from a source via a buffer to an optical recordable medium, the apparatus comprising: a pick-up head module (PUH module), for controlling a pick-up head (PUH) to record a first number of data units to the optical recordable medium, and controlling the PUH to read a second number of recorded data unit from the optical recordable medium; a verifier coupled to the PUH module, verifying the second number of recorded data units and generating a verifying status signal; a buffer management unit for controlling the buffer to buffer data units, and receiving the verifying status signal, when the verifying status signal indicating one of recorded data units is verified, generating a transfer control signal to control a source interface to receive new data unit, and a buffer control signal to control the buffer to release buffer space of the verified data unit to buffer new data unit; wherein after the verifier verifies the second number of the data units, the PUH module follows to an initial position to record a third number of new data units and keeps recording and reading until the plurality of data units being recorded and verified.
As mentioned above, the optical recording method and recording system according to the present invention provides an efficient data storage scheme and transits from verifying operation to recording operation seamlessly to provide an efficient recording better than the prior art.
The foregoing aspects and many of the attendant advantages of this invention will become more readily appreciated as the same becomes better understood by referencing the following detailed descriptions, when taken in conjunction with the accompanying drawings, wherein:
shows buffer space allocation of the buffer during the recording operation in
Please refer to
After the buffer 500 has any data from the data source for recording, the encoder 516 encodes the data to be data units for recording. The PUH module 518 receives the encoded data units and generating some control signals to control the pick-up head (not shown). The PUH module 518 makes the pick-up head seek to a target position B0 to generate laser to record the first section of encoded data units B0˜B19 to the optical recordable medium 54. After the recording operation of the first section of data units B0˜B19, the PUH module seeks to the target position B0 and reading back the data units B0˜B19 recorded to the optical recordable medium 54. The PUH module 518 receives the signal representing the recorded data units B0˜B19 reflected from the optical recordable medium and then transfers the recorded data units B0˜B19 to the verifier 502. The PUH module 518 comprises a signal processing unit, and a servo controller in one embodiment of the present invention for performing the above operations. The verifier 502 verifies recorded data units with the encoded data units buffered in the buffer 500. The verifier could be also implemented by a decoder as wild-used by the person skilled in the art. When the verifier 502 verifies a predetermined number of recorded data units of the first section with the corresponding encoded data units buffered in the buffer 500, the memory capacity is released to the data source 200 to let the data source 200 transfers the second section of data. And when the buffer 500 gets the new data from the data source 200, the encoder 516 also starts to encode the new coming data for next recording operation. For example, the data level remains at a constant level during seeking of the recording location in seeking 201. When the recording system starts to record the data onto the recordable medium, the data level decreases continuously to a lower threshold during recording 202. Next, the data level remains constant during seeking verification location in seeking 203 and verification of the first recorded data block B0 in verifying 204. The data level increases again with the next data transfer D2, while verification of recorded data block B1, . . . , B19 is in progress in verifying 204. The upper threshold level may be the capacity of the buffer, or less than the capacity. The lower threshold level may be zero, or less than the upper threshold level.
In comparison to
The above processes are performed during the PUH module 518, and the verifier 502 performing the first verifying operation. So when the PUH module 518 and the verifier 502 finish the first verifying operation, the encoder 516 and the buffer 500 have prepared enough encoded data units for the PUH module 518 to record to the optical recordable medium 54. According to the present invention, the PUH module 518 follows to a second initial position for recording the second section of data units without another seeking operation between the first verifying operation and the second recording operation. On the other hand, according to the present invention, the hardware latency between the read mode and the write mode transition can be eliminated. After the optical recording apparatus verifies the last data block of the first section, the optical recording apparatus could immediately records the first data block of the second section and without performing any seeking operation, i.e. the PUH module 518 controls the pick-up head to perform a normal following operation from the last data block of the first section to the first data block of the second section continuously. The hardware in the optical recording apparatus could be operated simultaneously; the hardware used for recording could prepare data for recording when the hardware for verifying are used to verify data. As aforementioned, the hardware of the optical recording apparatus according to prior art can only implement one operation at one time, that is, decoding or encoding, seeking, recording, verifying, or defect managing. Meanwhile, it is necessary to execute the seeking operation between the finished verifying operation and the upcoming recording operations in the prior art. The hardware latency (post-process of verifying operation 104 and pre-process of the recording operation 106) cannot be avoided. However, by having aforesaid ability of bi-directional data processing, the processing of the recorded data to be verified in the verifying operations and the processing of the recording data to be written in the recording operations can be executed at the same time. The apparatus of the present invention can prepare the data to be recorded for next recording operation during the time of verifying operation by encoding the data to be recorded and buffering them in the buffer 500. Accordingly, seamlessly transiting from a verifying operation to a recording operation can be achieved.
On the other hand, referring
If recorded data Bi is verified successfully, buffer management unit 504 generates buffer control signal 512, and transfer control signal 514, while verification continues for recorded data Bi+1. Buffer control signal 512 releases only the buffer space corresponding to the part of recorded data Bi in buffer 500. Transfer control signal 514 enables further data retrieval at source interface 506. As more buffer space is released, more buffer space in buffer 500 becomes available for the next data transfer from data source 52. Buffer management unit 504 compares the available buffer space in buffer 500 and requested buffer space from data source 52, and generates transfer control signal 514 if the available buffer space exceeds or equals the requested buffer space. Consequently subsequent second section D2 from data source 52 may be received in the released buffer space. Buffer management unit 504 may also enable source interface 506 to receive partial or full data blocks of data section D2, subject to the available buffer space at the time.
Please refer to
After the Recording 205 is finished, the apparatus of the present invention executes Seeking 206 for seeking the initial position for Verifying 207, and then executes the Verifying 207. During the time of Verifying 207, the apparatus of the present invention prepares for the Recording 208 as described above. After the Verifying 207 is finished, the apparatus of the present invention executes the Recording 208 instantaneously (without any delay) since the data to be recorded was ready. After the Recording 208 is finished, the apparatus of the present invention executes Seeking 209 for seeking the initial position for Verifying 210, and then executes the Verifying 210. Finally, the one recording procedure for fifty-two data units is completed.
According to the present invention, seamlessly transiting from Verifying 204 to Recording 205 and seamlessly transiting from Verifying 207 to Recording 208 to improve the entire performance of recording data to the optical recordable medium can be achieved. Furthermore, the number of data units recorded in each recording operation is flexible and variable in the present invention to provide efficient flexibility for many possible defects or physical segments which existed on the optical recordable medium. For example, if the aforesaid PUH module obtains the information that one recording procedure is across a boundary of a physical segment, the data unit number of the recording operations can be changed to avoid crossing the boundary of the physical segment for preventing possible error caused by the boundary between two physical segments. In addition, the defect management unit 508 can terminate the Recording 205 when a defect data unit is found in the verified data units of the Verifying 204 in replacing the data of the defect data unit. Similarly, the defect management unit 508 terminates the Recording 208 when a defect is found in the verified data units of the Verifying 207 in replacing the data of the defect. Alternatively, the defect management unit 508 provides a defect mark for the defect when the defect is found in Verifying 204 and 207 and replaces the data of the defect after finishing one recording procedure.
As mentioned above, the number of data units recorded in each recording operation is flexible and variable in the present invention to provide efficient flexibility for recording procedure. In one embodiment, the data source 200, the buffer 500, the encoder 516 prepare a first number of data units for recording, after recording, the verifier can just verify a second number of data units that just recorded to the optical recordable medium 54. The first number and the second number can be the same or different integers, but the second number should be less or equal to the first number. During verifying operation, the data source 200, the buffer 500, the encoder 516 can prepare a third number of data units for next recording. The first number and third number can be the same or different integers, but should be both limited to the memory capacity.
During verification, recording-verification method 40 resets counter i=1 and j=20 in step S400, the verifier 502 determines verification result of the recorded data Bi of data section D1 in step S402. If verification signal 510 indicates the verification result is successful, buffer management unit 504 releases only the buffer space corresponding to the part of recorded data Bi in buffer 500 by buffer control signal 512 in step S404, otherwise recording method 40 proceeds to step S406.
Next in step S405, counter i is incremented by 1 such that the next portion of data Bi+1 of the first data section D1 can be verified in the next round of verification.
Followed by step S406, buffer management unit 504 checks for the presence of a transmit command from data source 52. Under the condition where the transmit command is absent, method 40 routes to step S414 so that the verification for data Bi continues. If the transmit command is present, buffer management unit 504 evaluates the buffer space requested thereby, estimating the available buffer space in buffer 500, and comparing the requested buffer space with the available buffer space in step S408. If the available buffer space exceeds or equals the requested buffer space, recording method 40 proceeds with step S410, otherwise it routes to step S414. In step S410, buffer management unit 504 generates transfer control signal 514 to permit reception of the second data Bj of the data section D2 from data source 52 to buffer 500.
Next in step S412, counter j is incremented by 1 such that the next data block Bj+1 of the second data section D2 can be received at buffer 500 in the next round.
In step S414, buffer management unit 504 determines if data section D1 is completely verified, i.e., if the last data B19 is verified. If it is, method 40 is completed and the system keeps going to process the next data section D2, otherwise, the verification process continues at step S402 until verification of data section D1 is completed. There has to emphasized that the ending of the method 40 only means the data section D1 had been verified completely, not means the whole recording-verification process is completed. The system should keep going to record then verify the following data until the whole data being verified.
Please refer to
Step 700, preparing for recording a first number of data units;
Step 705, seeking to a target position for recording the first number of data units;
Step 710, recording a first number of data units to the optical recordable medium 54;
Step 720, verifying a second number of data units recorded on the optical recordable medium 54;
Step 725, checking whether verifying the second number of data units is the last verifying operation or not; if yes, go to step 760; if no, go to step 730;
Step 730, preparing for recording a third number of data units during the aforesaid verifying step;
Step 740, following to record the third number of data units when finished the verifying step;
Step 750, checking all the data units have been verified; if yes, go to step 760, if no, go to step 720.
Step 760, the recording procedure is completed.
As is understood by a person skilled in the art, the foregoing preferred embodiments of the present invention are illustrative rather than limiting of the present invention. It is intended that they cover various modifications and similar arrangements be included within the spirit and scope of the appended claims, the scope of which should be accorded the broadest interpretation so as to encompass all such modifications and similar structure.
This application is a Continuation-In-Part of pending U.S. patent application Ser. No. 11/260,607, filed Oct. 27, 2005 and is a Continuation-In-Part of pending U.S. patent application Ser. No. 11/536,814, filed Sep. 29, 2006, the entirety of which are incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
Parent | 11260607 | Oct 2005 | US |
Child | 12822263 | US | |
Parent | 11536814 | Sep 2006 | US |
Child | 11260607 | US |