This application claims the priority of Korean Patent Application No. 2004-9948, filed on Feb. 16, 2004, in the Korean Intellectual Property Office, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
The present invention relates to a recording method of a storage medium in which data is recorded in a track, and more particularly, to a method for recording data capable of preventing an adjacent track erase and a storage medium on which a program for executing the method is recorded.
2. Description of the Related Art
A hard disk drive is a recording apparatus for reading and recording information. The information is generally recorded on concentric tracks disposed on a surface of at least one magnetic disk. The disk is rotatably loaded on a spindle motor, and the information is accessed by a reading and/or writing device mounted on an actuator arm rotated by a voice coil motor. The voice coil motor receives an electric current to rotate the actuator, thereby shifting a reading and/or writing head. The reading and/or writing head detects a change of a magnetic field radiated from a surface of the disk to read the information recorded on the surface of the disk. In order to record the information on a data track, an electric current is fed to the head. The electrical current generates the magnetic field to magnetize the surface of the disk.
A recording density may be increased by shortening a distance between the reading and/or writing head and the disk. To this end, a size of the reading and/or writing head is reduced, and the reading and/or writing head is positioned as close as possible to the disk. However, if a distance between the reading and/or writing head and the disk is shortened, when data is recorded in a track, the adjacent track is overwritten by the magnetic field generated by the reading and/or writing head, so that the data recorded in the adjacent tracks may be erased.
Such a phenomenon is referred to as ATE, and a degree of the ATE may be determined by repeatedly recording data in the tracks adjacent to a target track for a predetermined time and measuring a bit error rate produced at the data recorded in the target track. Such a method evidences that if the data is repeatedly recorded in any track, data recorded in tracks adjacent to the track may be erased.
For example, a file allocation table (FAT) is renewed in the hard disk drive whenever the data is recorded. Accordingly, the more times the file allocation table is renewed, the more completely the data in the track adjacent to the track in which the FAT is located is erased or corrupted.
Meanwhile, in personal video recorders (PVRs), if the data is continuously and repeatedly recorded in an allocated section to realize a trick play function, the data recorded in a track adjacent to the allocated section may be erased.
Such a phenomenon in that the data recorded in the tracks adjacent to any track repeatedly recorded is erased may often occur in storage media which record the data in units of tracks, such as a floppy disk, CD-R, DVD-R, magneto optical disk, hard disk or the like, as well as the hard disk drive. The CD-R and DVD-R, by which the data is optically recorded, are less influenced relative to the floppy disk, the magneto optical disk and hard disk, but is not free from the influence of the ATE.
In an aspect of the present invention, a method of recording data in a storage medium in which the data is recorded in unit of track, by which when the data is repeatedly recorded in any track, the data recorded in a track adjacent to the track is not erased is provided.
In another aspect of the present invention, a storage medium to be read by a computer to execute the data recording method to minimize ATE is provided.
According to an aspect of the present invention, there is provided a method of recording data in a storage medium in which a data is recorded in units of tracks having at least one sector, the method including accumulating and computing the number of times the data is recorded in the sector; determining whether the accumulated number of times exceeds a predetermined number of times; and rewriting the data, which is recorded in regions adjacent to the region, in the regions, if the accumulated number of times exceeds the predetermined number of times.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing a program for executing a method of recording data in a storage medium in which a data is recorded in units of tracks having at least one sector, the method including accumulating and computing the number of times the data is recorded in the sector; determining whether the accumulated number of times exceeds a predetermined number of times; and rewriting the data, which is recorded in regions adjacent to the region, in the regions, if the accumulated number of times exceeds the predetermined number of times.
With the present invention, the number of times data is recorded is accumulated to record data in a specific region. If the number of times exceeds a predetermined number, the data is rewritten, thereby minimizing the influence of the ATE.
Additional aspects and/or advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
These and/or other aspects and advantages of the invention will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the like elements throughout. The embodiments are described below to explain the present invention by referring to the figures.
A personal video recorder (PVR), sometimes called as digital video recorder (DVR), refers to a product built in a hard disk drive (HDD) to write and/or read a currently broadcasting digital video stream in real time.
Providing the PVR with the hard disk drive, the PVR can store digital audio/video information in a different way from a tape for a conventional analog VCR. Even though writing and/or reading operations are repeatedly performed, the quality of images is preserved without any loss.
A key technique of the PVR is a streaming process to freely record and playback the broadcasting stream by use of high-capacity and high-speed HDD. Moving pictures such as MPEG-2 have a continuous-time function, and a random writing/reading property, like an HDD, is far superior relative to other storage media. Accordingly, even though the PVR is restricted by mechanical properties, such as track positioning of disk heads, real-time storage and playback of moving pictures may be sufficiently secured.
One of the functions realized by the PVR is a time-shift recording function, by which broadcasting contents are recorded at a present time and then the recorded contents will be played back at some time in the future. For example, in the case where a person talks over a telephone while seeing and hearing TV, the broadcasting contents are recorded, and then the recorded contents, which the person did not watch, are played back after talking over the telephone.
Such a time-shift recording function is similar to a recording function, except that the time-shift recording function is continuously performed and the recorded contents are automatically erased after a determined time to record new contents. In other words, according to the time-shift recording function, a specific region of the hard disk drive is allocated for the time-shift recording, and a broadcasting signal is continuously recorded in the time-shift recording region. If the contents are recorded in the last section of the region allocated for the time-shift recording, the recording begins at the beginning of the region. Accordingly, the time-shift recording function serves a backup function of an image signal of a constant period.
Generally, a PVR's user allocates a predetermined region for the time-shift recording function, so that the time-shift recording function is continuously performed during the operation of the PVR. The region allocated for the time-shift recording function in the hard disk drive is continuously and repeatedly recorded with the data, and thus the data recorded in the region adjacent to the allocated region may be erased under the influence of the ATE.
In accordance with an aspect, the influence of the ATE is prevented by computing the number of times data is recorded in any region, and rewriting the data in regions adjacent to the region if the number of times exceeds a predetermined number at which the data is influenced by the ATE.
Such a method can be effectively utilized in the region in which recording operations are performed more often, such as in a region for a time-shift recording function or FAT.
The disk 12 is rotated by the spindle motor 14, and the head 16 converts electrical information into magnetic information or vice versa to read or write the data from or on the disk 12. Although only one head 16 is shown in
The head 16 may be integrated with a slider 20. The slider 20 is adapted to produce an air bearing between the head 16 and the surface 18 of the disk 12. Alternatively, the slider 20 may be integrated with a head gimbal assembly (HGA) 22. The HGA 22 is attached to an actuator arm 24 having a voice coil 26.
The voice coil 26 and a magnet assembly 28 are provided to compose a voice coil motor (VCM) 30. When an electric current is applied to the voice coil 26, a torque is generated to rotate the actuator arm 24 around a bearing assembly 32. As such, the head 16 is moved across the surface 18 of the disk 12 with the rotation of the actuator arm 24.
Information is recorded in circular tracks 34 of the disk 12. Each of the tracks 34 includes a plurality of sectors. Each of the sectors includes a user data area and a servo data area. The servo data area is recorded with a Gray Code for identifying sectors or tracks (or cylinders), a servo burst signal for controlling a head position, and the like.
The information is transferred between the read/write channel circuit 44 and a host interface circuit 54. The host interface circuit 54 includes a control circuit for controlling an interface between the hard disk drive 10 and a host system, such as a personal computer, and a buffer memory for buffering the information transferred between the hard disk drive 10 and the host system.
The controller 42 is also connected to a VCM driver 48 to supply a driving current to the voice coil 26. The controller 42 sends the control signal to the VCM driver 48 to control the shift of the head 16.
The controller 42 is connected to a nonvolatile memory device, such as a ROM 50 or a flash memory device, or a RAM device 52. The memory devices 50 and 52 include commands or data used to enable the controller 42 to carry out a software routine.
Accordingly, the number of times Nc the data is recorded in the region 302 is computed, and other data is read from regions 304 and 306 adjacent to the region 302 and is rewritten in the regions 304 and 306, if the number of times Nc exceeds a predetermined number of times Nt, thereby preventing the recorded data from being erased.
In an aspect of the present invention, the recording region 302 is maintained in units of clusters. However, the recording region may also be maintained in units of logical block addressing (LBA) (i.e., in units of sectors). When maintaining the data integrity of the recording region through the LBA, however, the number of the recording regions to be managed is excessively increased, and the number of times the data is rewritten is increased, thereby causing inconvenience and increased processing resources.
In the case of the PVR, the recording region 302 is a region allocated for the time-shift recording. Even though the recording region allocated for the time-shift recording includes a plurality of tracks, the data is recorded at any time in these tracks. Embodiments of the recording method of the present invention may or may not be applied to these time-shift allocated recording region tracks. However, it is important to apply the recording method embodiments of the present invention to the tracks adjacent to the allocated time-shift recording region.
In
The number of recording times to each cluster is stored in a storage space 308 for the future, and is referenced, if necessary. Accordingly, the number of recording times to each cluster is stored in a separate storage space of the hard disk drive or host system. The storage space may be a maintenance cylinder or a flash memory in the case of the hard disk drive.
First, when the host system is turned on, the host system loads computing information provided in a predetermined region (S402).
If a new event occurs in operation S404, whether the new event is a recording operation is determined in operation S406.
If it is determined in operation S406 that the new event is not the recording operation, another operation of the host, for example, a reproducing operation or a menu is used to select a program, is performed in operation S408, and the process is returned to operation S404 to wait for an occurrence of a new event.
If it is determined in operation S406 that the new event is the recording operation, a recording command is sent to the hard disk drive 10 in operation S410.
In operation S412, it is determined whether the predetermined region is a specific region that is easily influenced by the ATE, such as the time-shift recording region. If the predetermined region is not the specific region, a normal recording operation is performed in operation S414. In other words, the embodiments of the recording method of the present invention are not applied.
In operation S416 the computing information of the predetermined region recorded with the data is obtained.
In operation S418, a counter is incremented each time data is recorded in the specific region. For example, the number of times Nc data is recorded in the region is increased by one each time the data is recorded. In operation S420, it is determined whether the number of times Nc is larger than a predetermined number of times Nt.
If Nc is larger than Nt, the other data recorded in regions adjacent to the specific region, which is repeatedly recorded with the data such as time-shift data, is read and rewritten in the adjacent regions in operation S422. Specifically, the adjacent track information of the hard disk drive 10 is obtained from the track information of the specific region recorded with the data. Then, the PVR or host reads the data recorded in the adjacent tracks, and rewrites the data in the adjacent regions to ensure data integrity is maintained.
If the data is rewritten in the adjacent regions in operation S422, the number of times Nc on the specific region is reset in operation S424. It is understood that the method of
Referring to
The operation of storing the desired program in the PVR in
The program packets multiplexed in the received transport stream are demultiplexed by the TS demux 502. These program packets are stored in the hard disk drive 504 via the digital interface 506.
The program packets stored in the hard disk drive 504 are input into the TS demux 502 via the digital interface 506. Such input program packets are converted into the A/V elementary stream by the TS demux 502, and the A/V elementary stream is output into the audio decoder 510 and the video decoder 512.
The controller 508 controls a process of storing the desired program in the TS demux 502, the digital interface 506 and the hard disk drive 504.
The transport stream (TS stream) comprises transport packets (TS packet) having a size of 188 bits. A type of the TS packet is identified by packet identification (PID). A program allocation table (PAT) includes the PID of the TS packet having information of a program map table (PMT), and the PMT includes the PIDs of the TS packet having audio/video information of the program.
In the operation of the time-shift recording, the controller 508 allocates a portion of the storage space of the hard disk drive 504 as the predetermined region for the time-shift recording, and stores the number of recording times on the region in a computing memory 514. For example, when all the tracks on the region for the time-shift recording are recorded with data from first to last, the number of recording times is increased by one. Alternatively, it is possible to compute the number of recording times regarding first and last tracks of the predetermined region allocated for the time-shift recording region.
The controller 508 stores the input TS stream in the hard disk drive 504, and also stores the number of recording times in the computing memory 514. In addition, the controller 508 compares the accumulated number of recording times Nc stored in the computing memory 514 with the predetermined number of times Nt, whenever the number of recording times Nc is incremented or computed, and then controls rewriting of the tracks adjacent to the time-shift recording region of the hard disk drive 504 according to the compared results as described in
Aspects of the present invention may be accomplished by a method, an apparatus, a system and the like. If performed by software, the method of the present invention is necessarily implemented in code segments executing a necessary operation. Programs or code segments may be stored in a processor-readable medium, or may be sent by a computer data signal combined with a carrier wave via a transferring medium or communication network. The processor-readable medium includes any medium capable of storing or sending information. Examples of the processor-readable medium are an electronic circuit, a semiconductor memory device, a ROM, a flash memory, an erasable ROM, a floppy disk, an optical disk, a hard disk, an optical fiber medium, a radio frequency (RF) network, and the like. The computer data signal includes any signal, which can be transmitted through transmission medium, such as an electronic network channel, an optical fiber, air, an electromagnetic field, an RF network, and the like.
Although a few 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 |
---|---|---|---|
2004-9948 | Feb 2004 | KR | national |