Control method of optical disc drive system when optical disc write failure occurs
10679665 ยท 2020-06-09
Assignee
Inventors
Cpc classification
International classification
G11B7/00
PHYSICS
Abstract
A control method of an optical disc drive system is provided. Firstly, a first write command is issued to burn a first write data including plural data files to an optical disc in an optical disc drive. If a write fail message from the optical disc drive is received after a specified data block of a specified data file is transmitted to the optical disc drive, the transmission of the first write data is stopped. Then, a data amount of the specified data file that has not been transmitted to the optical disc drive is calculated, and a dummy data with the data amount is generated. Then, the dummy data and the other data files that have not been transmitted are burnt to the optical disc.
Claims
1. A control method of an optical disc drive system when an optical disc write failure occurs, the control method comprising steps of: issuing a first write command to burn a first write data to an optical disc in an optical disc drive, wherein the first write data contains plural data files; if a write fail message from the optical disc drive is received after a specified data block of a specified data file of the plural data files is transmitted to the optical disc drive, stopping transmitting the first write data; calculating a data amount of the specified data file that has not been transmitted to the optical disc drive, and generating a dummy data with the data amount; and issuing a second write command to burn a second write data to the optical disc in the optical disc drive, wherein the dummy data and the other data files that have not been transmitted are served as the second write data, wherein if the optical disc write failure occurs after the optical disc drive receives the specified data block, the optical disc drive stops a writing operation, sets an updated next write address according to a burning end address of the specified data block, records the updated next write address into the optical disc, and generates the write fail message to a host.
2. The control method as claimed in claim 1, wherein the updated next write address is recorded in a lead-in area of the optical disc.
3. The control method as claimed in claim 1, further comprising steps of: the optical disc drive receiving the first write command and the first write data from the host; controlling an optical pickup head to burn the first write data to a track of the optical disc from a next write address of the optical disc when the optical disc drive performs a writing operation; the optical disc drive receiving the second write command and the second write data from the host; and controlling the optical pickup head to burn the second write data to the track of the optical disc from the updated next write address of the optical disc when the optical disc drive performs the writing operation according to the second write command.
4. The control method as claimed in claim 3, wherein after the second write data is successfully burnt to the track of the optical disc, an address next to a final burning address of the track of the optical disc is set as another updated next write address by the optical disc drive.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
(12) The present invention provides an optical disc drive system. If the optical disc write failure occurs while the optical disc drive performs the writing operation, it is necessary to take a proper measure to allow the write data continues to be burnt to the optical disc 115 in order to efficiently use the storage space of the optical disc 115. For achieving the above purpose, the present invention provides a control method of the optical disc drive system. Hereinafter, some examples of the control method will be described.
(13)
(14) During the process of transmitting the write data, the write data is divided into plural data blocks by the host 12. The data blocks are sequentially transmitted to the optical disc drive 10 and temporarily stored in the buffer 113. For example, the data amount of each data block is 64K bytes.
(15) When the control circuit 101 intends to perform the writing operation, the optical disc drive 10 reads the previously-recorded next write address (NWA) from the lead-in area of the optical disc 115.
(16) When the writing operation is started, the control circuit 101 controls the optical pickup head to burn the write data to the corresponding track of the optical disc 115 from the next write address NWAn1. In addition, the write data is continued to transmit from the host 12 to the buffer 113.
(17) Please refer to
(18) When the host 12 receives the write fail message from the optical disc drive 10, the host 12 stops transmitting the write data to the optical disc drive 10. Moreover, according to the last data block that the host 12 transmits to the optical disc drive 10, the host 12 can confirm the damaged data file. As shown in
(19) In this embodiment, the control circuit 101 sets the next write address (NWA) according to the information of the last data block. Please refer to
(20) The write command from the host 12 contains the start address of burning the corresponding data block on the track of the optical disc 115 and the burning length. According to the write command, the control circuit 101 can obtain the burning end address of the last data block on the track of the optical disc 115, and there is no need to actually burn the last data block to the optical disc 15.
(21) After the next write address NWAn is recorded in the optical disc 115 and the host 12 confirms that the second data file (Data file 2) is damaged, the data amount of the second data file (Data file 2) that has not been transmitted to the optical disc drive 10 is calculated by the host 12. Moreover, the second data file (Data file 2) that has not been transmitted to the optical disc drive 10 is replaced by a dummy data. For example, if the data amount of the second data file (Data file 2) that has not been transmitted to the optical disc drive 10 is 500 Mbytes, the host 12 generates a dummy data with the data amount of 500 Mbytes.
(22) That is, in the second data file (Data file 2), the data amount of which the burning address is posterior to the next write address NWAn is calculated by the host 12 and is replaced by the dummy data.
(23) Then, please refer to
(24) Please refer to
(25)
(26) Please refer to
(27) If the host 12 receives a write fail message from the optical disc drive 10 after a specified data block of an x-th data file is transmitted to the optical disc drive 10, the host 12 stops transmitting the write data (Step S504).
(28) In a step S506, the host 12 calculates a data amount of the x-th data file that has not been transmitted to the optical disc drive 10 and generates a dummy data with the data amount. In a step S508, the dummy data and the other data files that have not been transmitted are served as the write data by the host 12, and the host 12 issues another write command to burn the write data to the optical disc 115 in the optical disc drive 10.
(29) Please refer to
(30) Then, the optical disc drive 10 performs a writing operation to burn the write data to the optical disc 115 from a first next write address of the optical disc 115 (Step S512).
(31) When the optical disc drive 10 receives a specified data block and the optical disc write failure occurs, the optical disc drive 10 stops the writing operation (Step S514). The next address of the burning end address of the specified data block is set as a second next write address by the optical disc drive 10 and recorded in the optical disc 115, and the optical disc drive 10 responds a write fail message to the host 12 (Step S516). In the step S514 and the step S516, the optical disc drive 10 has received the specified data block, but the specified data block has not been completely burnt to the optical disc 115. For example, the specified data block is temporarily stored in the buffer 113, but has not been completely burnt to the optical disc 115.
(32) Then, in a step S518, the optical disc drive 10 receives another write command and the write data from the host 12. Then, the optical disc drive 10 performs the writing operation to burn the write data to the optical disc 115 from the second next write address of the optical disc 115 (Step S520).
(33) From the above descriptions, even the optical disc write failure occurs while the optical disc drive 10 performs the writing operation on the optical disc 115, the control method of the present invention can continue to burn data to the storage space of the optical disc 115. According to the last data block received, the control circuit 101 of the optical disc drive 10 obtains the end burning address of the last data block on the track of the optical disc 115 to set the updated next write address NWAn. In addition, the updated next write address NWAn is recorded in a lead-in area of the optical disc 115. Then, the host 12 issues another write command. In the write command, the dummy data and the other data files that have not been transmitted are served as the write data. The write data continues to be transmitted to the optical disc drive 10. Consequently, the optical disc drive 10 can continue to perform the writing operation.
(34) As mentioned above, except the second data file (Data file 2) is damaged because of the optical disc write failure, by using the control method of the present invention, the writing operation can continue to be performed to burn the write data on the track of the optical disc 115 having not been burnt. Besides, the host 12 can additionally control the optical disc drive 10 to burn the second data file (Data file 2) to other position of the optical disc 115.
(35) In some embodiments, the host 12 confirms the damaged data file according to other methods. For example, after the writing operation is completed, the host 12 confirms the damaged data file according to the result of a verify-after-write operation that is performed by the optical disc drive 10. Alternatively, the host 12 issues a write-fail-address-enquiry command to the optical disc drive 10. After the optical disc drive 10 receives the write-fail-address-enquiry command, the optical disc drive 10 responds the write fail address to the host 12. According to the write fail address, the host 12 confirms the damaged data file.
(36) In some situations, more than one data files are possibly damaged. For recognizing the damaged data files, the control method as shown in
(37)
(38) When the writing operation is started, the control circuit 101 controls the optical pickup head to burn the write data to the corresponding track of the optical disc 115 from the next write address NWAn1. In addition, the write data is continued to transmit from the host 12 to the buffer 113.
(39) Please refer to
(40) When the host 12 receives the write fail message from the optical disc drive 10, the host 12 stops transmitting the write data to the optical disc drive 10. Moreover, according to the last data block that the host 12 transmits to the optical disc drive 10, the host 12 can confirm the damaged data file. As shown in
(41) Then, the control circuit 101 sets the next address of the burning end address of the last data block on the track of the optical disc 115 as the next write address NWAn. Moreover, the next write address NWAn is recorded in the lead-in area of the optical disc 115.
(42) After the next write address NWAn is recorded in the optical disc 115 and the host 12 confirms that the third data file (Data file 3) is damaged, the data amount of the third data file (Data file 3) that has not been transmitted to the optical disc drive 10 is calculated by the host 12. Moreover, the third data file (Data file 3) that has not been transmitted to the optical disc drive 10 is replaced by a dummy data.
(43) Then, please refer to
(44) Please refer to
(45) According to the information of the last data block, the host 12 confirms that only the third data file (Data file 3) is damaged. However, after the writing operation is completed, the host 12 confirms that the second data file (Data file 2) is also damaged according to the result of a verify-after-write operation that is performed by the optical disc drive 10. Alternatively, the host 12 issues a write-fail-address-enquiry command to the optical disc drive 10, and confirms that the second data file (Data file 2) is also damaged according to the write fail address responded by the optical disc drive 10.
(46) As mentioned above, except the second data file (Data file 2) and the third data file (Data file 3) are damaged because of the optical disc write failure, by using the control method of the present invention, the writing operation can continue to be performed to burn the write data on the track of the optical disc 115 having not been burnt. Besides, the host 12 can additionally control the optical disc drive 10 to burn the second data file (Data file 2) and the third data file (Data file 3) to other positions of the optical disc 115.
(47) In an embodiment, after the host 12 receives the write fail message and before the write command is issued again, the host 12 issues a blank track search command to the optical disc drive 10 in order to judge whether the track posterior to the write failure position is damaged.
(48)
(49) Please refer to
(50) If the host 12 receives a write fail message from the optical disc drive 10 after a specified data block of an x-th data file is transmitted to the optical disc drive 10, the host 12 stops transmitting the write data (Step S704).
(51) Then, the host 12 issues a blank track search command to search the blank track position of the optical disc 115 after the write failure position and confirms the affected data file after the x-th data file (Step S706).
(52) In a step S708, the host 12 calculates a first data amount of the x-th data file that has not been transmitted to the optical disc drive 10. Then, the host 12 calculates a second data amount of the affected data file after the x-th data file (Step S710). Then, the host 12 generates a dummy data with the total data amount of the first data amount and the second data amount (Step S712).
(53) In a step S714, the dummy data and the other unaffected data files that have not been transmitted are served as the write data by the host 12, and the host 12 issues another write command to burn the write data to the optical disc 115 in the optical disc drive 10.
(54) Please refer to
(55) Then, the optical disc drive 10 performs a writing operation to burn the write data to the optical disc 115 from a first next write address of the optical disc 115 (Step S722).
(56) When the optical disc drive 10 receives a specified data block and the optical disc write failure occurs, the optical disc drive 10 stops the writing operation (Step S724).
(57) The next address of the burning end address of the specified data block is set as a second next write address by the optical disc drive 10 and recorded in the optical disc 115, and the optical disc drive 10 responds a write fail message to the host 12 (Step S726).
(58) After the optical disc drive 10 receives the blank track search command, the optical disc drive 10 searches the blank track position of the optical disc after the write failure position (Step S728).
(59) Then, in a step S730, the optical disc drive 10 receives another write command and the write data from the host 12. Then, the optical disc drive 10 performs the writing operation to burn the write data to the optical disc 115 from the second next write address of the optical disc 115 (Step S732).
(60)
(61) When the writing operation is started, the control circuit 101 controls the optical pickup head to burn the write data to the corresponding track of the optical disc 115 from the next write address NWAn1. In addition, the write data is continued to transmit from the host 12 to the buffer 113.
(62) Please refer to
(63) When the host 12 receives the write fail message from the optical disc drive 10, the host 12 stops transmitting the write data to the optical disc drive 10. Moreover, according to the last data block that the host 12 transmits to the optical disc drive 10, the host 12 can confirm the damaged data file. As shown in
(64) In this embodiment, the control circuit 101 sets the next write address according to the information of the last data block. Please refer to
(65) Then, the host 12 issues a blank track search command to the optical disc drive 10. According to the blank track search command, the optical disc drive 10 searches the blank track position of the optical disc 115 after the write failure position 750. That is, searching a position on the track of the optical disc 115 where the write data can be written to after the write failure position 750. In
(66) Please refer to
(67) Then, the host 12 calculates a first data amount of the second data file (Data file 2) that has not been transmitted to the optical disc drive 10. Then, the host 12 calculates a second data amount of the affected data file, i.e., the third data file (Data file 3). Then, the host 12 generates a dummy data with the total data amount of the first data amount and the second data amount.
(68) Please refer to
(69) Please refer to
(70) As mentioned above, the present invention provides a control method of the optical disc drive system when the optical disc write failure occurs. The control circuit 101 of the optical disc drive 10 sets the next write address NWAn according to the burning end address of the last data block on the track of the optical disc 115. Moreover, the next write address NWAn is recorded in the lead-in area of the optical disc 115. The host 12 issues the blank track search command to recognize the affected data file. The damaged data file and the affected data file are replaced by the dummy data. Then, the host 12 issues the write command again. In the write command, the dummy data and the other unaffected data files are served as the write data. The write data is transmitted to the optical disc drive 10. Consequently, the optical disc drive 10 can continue to perform the writing operation according to the next write address NWAn.
(71) As mentioned above, except the second data file (Data file 2) and the third data file (Data file 3) are damaged because of optical disc write failure occurs, by using the control method of the present invention, the writing operation can continue to be performed to burn the write data on the track of the optical disc 115 having not been burnt. Besides, the host 12 can additionally control the optical disc drive 10 to burn the second data file (Data file 2) and the third data file (Data file 3) to other positions of the optical disc 115.
(72) From the above descriptions, the present invention provides a control method of an optical disc drive system when the optical disc write failure occurs. If the optical disc write failure occurs while the optical disc drive performs the writing operation, it is necessary to take a proper measure to allow the write data continue to be burnt to the optical disc in order to make efficiently use of the storage space of the optical disc.
(73) While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.