The present disclosure relates to optical storage techniques, and more particularly, to methods and apparatuses for identifying an optical disc's type.
Conventionally, identification of a Digital Versatile Disc Random Access Memory (DVD-RAM) disc can be implemented by counting the number of headers during one rotation of the DVD-RAM disc while an optical pickup (OPU) of an optical disc drive accessing the DVD-RAM disc is in a track-on status and also in a track-on status. According to the related art, the architecture for header recognition in the optical disc drive should be enabled, which takes a lot of efforts and times. Worst of all, as the header recognition is not always accurate, the optical disc drive may fail to count the number of headers accurately. As a result, erroneously identifying the DVD-RAM disc as an optical disc of another type or erroneously identifying a non DVD-RAM disc as a DVD-RAM disc may occur.
It is an objective of the claimed invention to provide methods and apparatuses for identifying an optical disc's type.
An exemplary embodiment of a method for identifying an optical disc's type comprises: detecting at least one header's appearance according to a reproduced signal in an optical storage device accessing the optical disc; after the appearance of a first header of the at least one header is detected, detecting whether there is another header's appearance in a window that lags behind the first header's appearance; and determining whether the optical disc is a DVD-RAM disc according to the number of times that there is a header's appearance in a corresponding window.
An exemplary embodiment of an apparatus for identifying an optical disc's type comprises: a header appearance detection module; and a decision unit, coupled to the header appearance detection module. The header appearance detection module is utilized for detecting at least one header's appearance according to a reproduced signal in an optical storage device accessing the optical disc. After the appearance of a first header of the at least one header is detected, the decision unit detects whether there is another header's appearance in a window that lags behind the first header's appearance. In addition, the decision unit determines whether the optical disc is a DVD-RAM disc according to the number of times that there is a header's appearance in a corresponding window.
According to one aspect of one embodiment of the claimed invention, the apparatus is substantially the optical storage device. According to another aspect of the embodiment of the claimed invention, the apparatus is a circuit positioned in the optical storage device.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Certain terms are used throughout the description and following claims to refer to particular components. As one skilled in the art will appreciate, electronic equipment manufacturers may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not in function. In the following description and in the claims, the terms “include” and “comprise” are used in an open-ended fashion, and thus should be interpreted to mean “include, but not limited to . . . ”. Also, the term “couple” is intended to mean either an indirect or direct electrical connection. Accordingly, if one device is coupled to another device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections.
Please refer to
According to this embodiment, the header appearance detection module 110 is utilized for detecting at least one header's appearance according to a reproduced signal in the optical storage device 100 accessing the optical disc 102, and further generating a reference signal corresponding to the reproduced signal to represent the detection result of the at least one header's appearance. More particularly, the header appearance detection module 110 generates the reference signal RSZC corresponding to the reproduced signal RS as shown in
As shown in
According to this embodiment, the photo detector 130 is arranged for detecting light reflected from the optical disc 102 to generate detection signals A, B, C, D, E, F, G, and H, where the detection signals A through D correspond to the reflected light of the main beam while the detection signals E through H correspond to the reflected light of the side beam. In addition, the corresponding positions of the detection signals A through H with respect to the photo detector 130 are illustrated in
In this embodiment, a slice level generator comprising the two sample/hold circuits 170-1 and 170-2 and the average unit 180 shown in
According to the foregoing descriptions, it can be appreciated that both the combination of the photo detector 130 and the operating unit 140 and the combination of the photo detector 130 and the operating unit 150 can be utilized for generating the reproduced signal RS, and the combination of the comparator 190 and the slice level generator (which comprises the two sample/hold circuits 170-1 and 170-2 and the average unit 180 in this embodiment) converts the reproduced signal RS into a better format (i.e., the reference signal RSZC) for use of detecting and monitoring the headers' appearances. Regarding the situation when the optical disc 102 is a DVD-RAM disc, as the reflectance corresponding to header areas is typically greater than that corresponding to the others in a focus-on status of the OPU mentioned above while the optical disc 102 is not polluted or scratched, regular appearances of the headers can be detected according to the reproduced signal RS, and more particularly, according to the better format of the reproduced signal RS, i.e. the reference signal RSZC.
For simplicity, in the following embodiments of the present invention, the reproduced signal RS is described as the main beam sum signal RFLVL, and the reference signal RSZC is described as the reference signal RFLZC corresponding the main beam sum signal RFLVL. Those skilled in the art will appreciate that in other embodiments of the present invention, the reproduced signal RS can be described as the side beam sum signal SBAD, and the reference signal RSZC is described as the reference signal SBZC corresponding the side beam sum signal SBAD.
According to this embodiment, before the state machine enters a Search State corresponding to Step 201, the counter values CNT and Unlock are set to be zero at first. In Step 201, search any header's appearance according to the reference signal RFLZC. According to this embodiment, “RFLZC=1” represents the situation that the reference signal RFLZC is at a high level, which means a header's appearance is detected. Conversely, “RFLZC=0” represents the situation that the reference signal RFLZC is at a low level, which means no header's appearance is detected. Once the situation that the reference signal RFLZC is at the high level is detect, the state machine enters a Pre-lock State corresponding to Step 202.
In Step 202, check the next header's appearance in a fixed window or not according to the reference signal RFLZC, and further set the counter value LockCnt to be zero. In this embodiment, the state machine of the decision unit 120 detects whether there is another header's appearance in the fixed window that lags behind the first header's appearance, where the fixed window is determined according to the rotational speed of the optical disc 102 and the location of the OPU of the optical storage device 100.
If there is no header's appearance in the fixed window, enter Step 203, where the operations “++CNT>M” of Step 203 are explained as mentioned above. Once the counter value CNT is greater than the threshold M, the state machine of the decision unit 120 determines the optical disc 102 is a non DVD-RAM disc; otherwise, the state machine reenters the Search State corresponding to Step 201.
In Step 202, if there is a header's appearance in the fixed window, the state machine enters the Lock State corresponding to Step 204. According to this embodiment, instead of a fixed window such as that utilized in the Pre-lock State, at least one predicted window is utilized in the Lock State. The state machine of the decision unit 120 detects whether there is another header's appearance in a predicted window that lags behind the previous header's appearance, where the predicted window can be determined according to the interval between two previous headers' appearances, for example, the interval between the first header's appearance detected in the Search State and the second header's appearance detected in the Pre-lock State, or the interval between two headers' appearances that have been detected previously in Step 204. Here, once a header's appearance is detected in a predicted window, enter Step 205.
In Step 205, once the counter value LockCnt is greater than the threshold β, the state machine of the decision unit 120 determines the optical disc 102 is a DVD-RAM disc; otherwise, the state machine reenters the Lock State corresponding to Step 204.
In Step 204, once there is no header's appearance in a predicted window, enter Step 207. In Step 207, once the number of times that there is no header's appearance in a predicted window is greater than the threshold α, enter Step 206; otherwise, reenter Step 204.
In Step 206, once the counter value Unlock is greater than the threshold N, the state machine of the decision unit 120 determines the optical disc 102 is a non DVD-RAM disc; otherwise, the state machine reenters the Search State corresponding to Step 201.
According to a variation of the embodiment shown in
Tfw1(k)=TPeriod(k−1)−IDW1; and
Tfw2(k)=TPeriod(k−1)+IDW2;
where the parameters IDW1 and IDW2 are predetermined values for defining a common width of the predicted windows.
At the time point 300A-0, the state machine of the decision unit 120 resets a timer to start timing the interval TPeriod(1). According to this embodiment, a delay time t1 can be applied for delaying the beginning of the Pre-lock State, in order to mask the first pulse of the reference signal RFLZC shown in
It is noted that the relative time of the fixed window 305 with respect to the first header's appearance is independent of any header's appearance, and the relative time of the predicted windows 307 and the relative time of the predicted windows 309 are predicted according to the intervals TPeriod(1) and TPeriod(2), respectively. If a specific predicted windows of the predicted windows in the Lock State exceeds a candidate fixed window having the same parameters Tfw1 and Tfw2 as those of the fixed window 305, that is, Tpw1(k)<Tfw1 and/or Tpw2(k)>Tfw2, the state machine of the decision unit 120 replaces the specific predicted windows with the candidate fixed window.
Please refer to
In the Pre-lock State 420, two parameters Period and oldPeriod are involved, where the parameter Period is utilized for retrieving the latest value Timer of the timer, and the parameter oldPeriod is utilized for temporarily storing the value of the parameter Period for comparisons of different header periods corresponding to the headers' appearances. For example, parameters Period and oldPeriod can be utilized for respectively representing the intervals TPeriod(k) and TPeriod(k−1).
In the Pre-lock State 420, the pseudo code “Period=Timer” means the operation of retrieving the latest value Timer of the timer mentioned above. Afterward, if a header's appearance is detected, the state machine enters Step 421; otherwise, the state machine enters Step 422.
In Step 422, if the parameter Period is greater than the parameter Pfw2, the state machine enters Step 440 to determine whether the optical disc 102 is a non DVD-RAM disc according to the counter value CNT and the threshold M mentioned above; otherwise, the state machine retrieves the latest value Timer of the timer.
In Step 421, the state machine checks whether the recently detected header's appearance is in a fixed window such as the fixed window 305 mentioned above. If the recently detected header's appearance is in the fixed window, the state machine enters Step 423; otherwise, the state machine enters Step 440.
In Step 423, the state machine resets the timer and delay with the delay amount t1 as mentioned, and save the value of the parameter Period into the parameter old period.
In the Lock State 430, the operations of comparing the latest value Timer of the timer with the parameter Tpw1 (e.g., Tpw1(2), Tpw1(3), . . . etc.), the parameter Tpw2 (e.g., Tpw2(2), Tpw2(3), . . . etc.), and the parameter Tfw2 respectively in Step 431 and Step 432 are utilized for determining whether the recently detected header's appearance is in a predicted window. In addition, the operation of comparing the parameter Period with the Tfw1 in Step 434 is utilized for determining whether the header's appearance is in a candidate fixed window such as the candidate fixed window mentioned above. Additionally, the operation of comparing the difference (Period−oldPeriod) with the parameter Tpv is utilized for determining whether the difference between two intervals such as the difference (TPeriod(k)−TPeriod(k−1)) is greater than the threshold Tpv (which is a predetermined value in this embodiment), in order to determine whether the headers' appearances are regular.
As a result, if the headers' appearances are not regular, Step 450 will be entered more than once. In Step 450, once the parameter Unlock, which represents the number of times that the headers' appearances are not locked, is greater than the threshold N, the state machine determines the optical disc 102 is a non DVD-RAM disc.
Conversely, if the headers' appearances are regular, Step 435 will be entered more than once. In Step 435, once the parameter LockCnt, which represents the number of times that the headers' appearances are locked, is greater than the threshold β, the state machine determines the optical disc 102 is a DVD-RAM disc.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.