This application is related to and claims priority to Japanese patent application No. 2007-212364 filed on Aug. 16, 2007, in the Japan Patent Office, the entire contents of which are incorporated by reference herein.
1. Field of the Invention
The present invention relates to a medium control device that accepts a medium, reads from or writes to the medium, and monitors for errors that occur while reading or writing, a medium control method, and a recording medium.
2. Description of the Related Art
A conventional technology to notify a user of a quality state of a medium by displaying an error rate indicating an error frequency during playback of the medium in a monitoring device is disclosed as a technology to prevent data losses.
However, according to the above conventional technology, only the quality state of the medium during playback is displayed. Whether the quality of the medium has deteriorated or not cannot be recognized after the medium is removed from a medium control device. Thus, there is a problem that the user mistakenly continues to use a medium whose quality has deteriorated until the medium ultimately becomes impossible to play back or write to, leading to data losses.
The present invention is a medium control device that accepts a medium, reads from or writes to the medium, and monitors for errors that occur while reading or writing, and comprises a quality determiner for determining whether medium quality has deteriorated based on errors by monitoring for errors that occur while reading or writing, and a quality marker for marking a message indicating deterioration of the quality of a medium on a label side of the medium when the quality determiner determines that the quality of the medium has deteriorated.
The above-described embodiments of the present invention are intended as examples, and all embodiments of the present invention are not limited to including the features described above.
Reference may now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
A medium control device, a medium control method, and a medium control program according to the present invention will be described below in more detail with reference to the attached drawings.
In an embodiment below, description will be made of the overview and features of a medium control device according to a first embodiment, the configuration of the medium control device, and the flow of processing are described in turn and lastly, an effect by the first embodiment. An example in which the present invention is applied to a medium control device having a read/write function of CD-R, CD-RW, DVD-R, DVD±RW, DVD-RAM, magnetic disk, optical disk and the like (hereinafter, referred to as media) will be described below.
First, the configuration and features of the medium control device according to the first embodiment will be described using
A basic function of a medium control device 10 in the first embodiment is to accept a medium to read from or write to the medium and monitors for errors while reading or writing. The medium control device 10 is typically characterized in that data losses are prevented.
The main features of the medium control device 10 will be more specifically described. After accepting a medium (See (1) in
Subsequently, if the quality of the medium is determined to have deteriorated when the medium is ejected, the medium control device 10 prints a message indicating deterioration of the quality of the medium on the label side of the medium using a stamp 16 provided in a solenoid 15 (See (3) in
The medium control device 10 allows the user to recognize that quality of a medium has deteriorated before the medium becomes impossible to play back or write to and therefore, like the above main features, data losses can be prevented.
Configuration of the Medium Control Device
Next, the configuration of the medium control device 10 shown in
As shown in
The communication control I/F 11 controls communication of various kinds of information performed with the connected PC 20. More specifically, the communication control I/F 11 receives read and write requests from the PC 20 and transmits data read from a medium to the PC 20.
The controller 12 not only performs control to read from or write to a medium, but also monitors for errors that occur while reading or writing to determine whether the quality of the medium has deteriorated based on errors. More specifically, the controller 12 determines whether or not the retry count of reading from the medium or the number of times that the processing time of a read command exceeds a monitoring time of the operating system, tracking error value, focus error value, or reflected light level value exceeds respective preset threshold values. If, as a result, the controller 12 determines that some threshold value has been exceeded, the controller 12 sets a flag indicating that quality of the medium has deteriorated.
The Flash ROM 13 is rewritable. The Flash ROM 13 is a non-volatile semiconductor memory in which data is retained even after power-off. The Flash ROM 13 stores data and programs necessary for various processes by the controller 12. The driver 14 receives a driving signal from the controller 12 to control the solenoid 15 based on the driving signal. The solenoid 15 is an actuator driving on a medium and the stamp 16 described later is provided at a tip of the solenoid 15.
The stamp 16 is provided at the tip of the solenoid 15. The stamp 16 does not require refilling. The stamp 16 prints a message indicating deterioration of the quality of the medium on the label side of the medium if a flag indicating that quality of a medium has deteriorated is set when the medium is ejected. More specifically, as exemplified in
Processing by the Medium Control Device
Next, processing by the medium control device 10 according to the first embodiment will be described using
As shown in
Subsequently, the medium control device 10 reads from or writes to the medium (operation S103) and monitors for errors that occur while reading or writing to determine whether any error has occurred (operation S104). If, as a result, the medium control device 10 determines that an error has occurred (Yes in operation S104), the medium control device 10 performs retry processing of reading or writing (operation S105) to determine whether an error has occurred (operation S106). If, as a result, the medium control device 10 determines that an error has occurred (Yes in operation S106), the medium control device 10 determines whether any time-out exceeding the monitoring time of the operating system has occurred (operation S107).
If, as a result, the medium control device 10 determines that no time-out has occurred (No in operation S107), the medium control device 10 performs retry processing of reading or writing (operation S105) after reducing the number of rotations (operation S108). If a time-out has occurred (Yes in operation S107), the medium control device 10 determines whether to retry by resetting the monitoring time depending on a decision of the operating system. If, as a result, reading or writing should be retried (Yes in operation S109), the medium control device 10 repeats retry processing of reading or writing by returning to operation S105. If, on the other hand, reading or writing should be not retried (No in operation S109), the medium control device 10 stops reading or writing (operation S110) and sets a flag indicating that quality of the medium has deteriorated (operation S111).
If, on the other hand, the medium control device 10 determines that no error has occurred at operation S104 or operation S106 (No in operation S104; No in operation S106), the medium control device 10 determines whether values concerning errors (the retry count, time-out count, tracking error value, focus error value, or reflected light level value) that have occurred are equal to or more than threshold values (operation S112). If values concerning errors that have occurred are less than respective threshold values (No in operation S112), the process is terminated immediately.
Next, a printing process of the medium control device 10 will be described using
If, as a result, the medium control device 10 determines that a flag is set (Yes in operation S202), the medium control device 10 prints a message indicating deterioration of the quality of the medium using the stamp 16 (operation S203) and, if no flag is set (No in operation S202), the medium control device 10 proceeds to operation S204 without printing any message. Subsequently, the medium control device 10 ejects the medium (operation S204) to terminate the process.
The medium control device 10 allows the user to recognize that quality of a medium has deteriorated before the medium becomes impossible to play back or write to, as described above, and therefore, data losses can be prevented.
According to the first embodiment, whether the quality of a medium has deteriorated can appropriately be determined by monitoring the number of times of retrying to read data from a medium and the number of times that the processing time of a read commend exceeds a monitoring time of the operating time.
Also, according to the first embodiment, whether the quality of a medium has deteriorated can appropriately be determined by monitoring the tracking error value, focus error value, and reflected light level value.
Incidentally, in the first embodiment, a message is printed on a medium when values concerning errors that have occurred are equal to or more than some threshold value, but the present invention is not limited to this. If values concerning errors that have occurred are equal to or more than some threshold value and the range where errors have occurred is equal to less than a threshold value, a message may be printed on a medium.
Thus, in the second embodiment, the overview, features, and processing of a medium control device 10a in the second embodiment will be described using
First, the overview and features of the medium control device 10a according to the second embodiment will be described. As shown in
If, as a result, the medium control device 10a determines that the range where the quality of the medium has deteriorated is equal to or less than a predetermined threshold value, the medium control device 10a drives the solenoid 15 to print a message indicating deterioration of the quality of the medium on the label side of the medium using the stamp 16 (See (2) in
Next, processing by the medium control device 10a according to the second embodiment will be described using
That is, as shown in
If the range where the quality of the medium has deteriorated is equal to or less than the threshold value (Yes in operation S303), the medium control device 10a prints a message indicating deterioration of the quality of the medium on the label side of the medium using the stamp 16 (operation S304). If, on the other hand, no flag is set at operation S302 (No in operation S302) or the range where the quality of the medium has deteriorated is more than a threshold value at operation S303 (No in operation S303), the medium control device 10a proceeds to operation S305 without printing any message. Subsequently, the medium control device 10 ejects the medium (operation S304) to terminate the process.
Thus, in the second embodiment, if the range where the quality of a medium has deteriorated is large, a message indicating deterioration of the quality of the medium is not printed assuming that errors are caused by dust, dirt or the like. If, on the other hand, the range where the quality of a medium has deteriorated is small, a message indicating deterioration of the quality of the medium is printed assuming that errors are caused by poor quality of the medium and therefore, media recoverable by wiping out dust, dirt or the like can be prevented from being printed.
Embodiments of the present invention have been described, but the present invention is not limited to these embodiments and may be carried out in various modifications within the scope of technical ideas described in claims. Moreover, effects described in embodiments are not limited to these.
Various kinds of processes described in the above embodiments can be realized by executing prepared programs in a processing unit of CPU (or MCU or MPU) provided in a medium control device. In the example shown in
Incidentally, these various kinds of programs need not be stored in the Flash ROM 13 in advance and may be read from a portable physical storage medium or an external computer connected via a network when needed before being executed by the CPU.
Various kinds of processes described above are not limited to those whose code stored in the Flash ROM 13 in advance is read by the CPU for execution and may be realized by wired logic.
Although a few preferred embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2007-212364 | Aug 2007 | JP | national |