Method for reading a CD having CD-text data
Patent Information
- Application Number
- MYPI1999000664
- Authority / Receiving Office
- MY · MY
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 1998-02-25
- Filing Date
- 1999-02-24
- Publication Date
- 1999-08-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional CD-ROM drives connected to host computers cannot obtain CD-TEXT information from CDs formatted in the CD-TEXT format, which includes album titles, performer names, and other metadata, limiting the ability to display this information on computers.
A method for a computer to receive and process data from a CD drive, identifying whether a CD-TEXT formatted disc is loaded and extracting character information from its management area, allowing the display of metadata such as disc names, song names, and artist information in multiple languages.
Enables users to properly obtain and display CD-TEXT information on computers, enhancing user experience by providing convenient access to music metadata when playing CDs formatted in the CD-TEXT format.
Abstract
Description
METHOD FOR READING A CD HAVING CD-TEXT DATA..BACKGROUND OF THE INVENTIONField of the InventionThe present invention relates to a reproducing method for reproducing data from a record medium for example a digital audio CD (Compact Disc), in particular, a reproducing method being accomplished as an .application program of a computer and a computer readable record medium on which such an application program has been recorded.'Description of the Related ArtTAs storing units for computers, CD-ROMs that feature large storage capacity, high speed access, low cost, and so' forth and their drives have been widely used.. A CD-ROM is a derivative of a CD-DA (simply referred to as CD) on which a digital audio signal· is recorded. Normally, computer data such as an application program is recorded on a CD-ROM. As an application of a personal computer, an application program that allows a CD-ROM drive of a personal computer to function as a CD player is known.In.a conventional CD player (dedicated unit), for user's convenience, various types of information corresponding to' reproduction information of a disc are displayed. As well-known examples, program numbers (so-called track numbers) recorded to sub-codes of Q channel as mode 1 and time information assigned to eachΙΌJ;2-5 ί ;fc track number are reproduced and displayed.In addition, a format of which character information such as an album title of a CD is recorded to sub-codes of R to W channels in a lead-in area has been proposed. This format is referred to as-CD-TEXT. As the CD-TEXT format, lead-in information (mode 4) and program area information (mode 2) have been defined. When lead-in area is reproduced, the lead-in information is stored in a memory (RAM) of a reproducing unit. When the user desires the information, it' can be displayed. On the other hand, information of the program area can be displayed at a timing designated by a producer of the CD. The present invention is applied to the mode 4 of the CD-TEXT format.In the case of a CD player, when data is reproduced from a CD corresponding to the CD-TEXT format, the CD-TEXT information is read at a timing of which the CD is loaded to the CD player. The CD-TEXT ^information is decoded and stored in the memory. When necessary, the CD-TEXT information is displayed. Since the album title, performer name, and so forth of the CD are displayed, the user can easily know the contents of the CD.An application program that allows a computer to function as a CD player is preferably applicable to, the CD-TEXT format. However, in a system of which af^· conventional drive such as a CD-ROM drive is connected to a host computer, an application program of the host computer does , not obtain CD-TEXT information. In other, words, a method for allowing such an application program to obtain CD-TEXT information is not known. In the case of the CD-ROM drive, a CD-ROM is usually loaded. Thus, when a disc corresponding to the CD-TEXT format is loaded, CD-TEXT data should be properly obtained.OBJECTS AND SUMMARY OF THE INVENTIONIt is therefore an object of the present invention to provide a reproducing method for causing a host computer to properly obtain character information reproduced from a management area of a record medium such as a CD-TEXT disc loaded to a drive.It is another object of the present invention to provide a record medium from which the computer to read a program for such a reproducing method;To attain the object, according to the present invention of claim 1, there is provided a reproducing method for causing a computer to obtain data reproduced from a record medium loaded to a drive connected to the .computer, comprising the steps of:receiving return data composed of data reproduced fromza management area of the record medium by the drive and identification data that represents the length of the data;determining whether or not the record medium is a record medium of which character information has been recorded in the management area corresponding to the identification data of the received return data;and obtaining character information when the record medium loaded to the drive is a record medium of which character information has been recorded in the management area.According to the present invention of claim 7, there is provided a record medium from which a computer reads a program for a reproducing method for causing a computer to obtain data reproduced from a record medium loaded to a drive connected- to the computer, the. reproducing method comprising the steps of:receiving return data composed of data reproduced from a management area of the record medium by the drive and identification data that represents the length of the data;determining whether or not the record medium loaded to the drive is a record medium of which character information has been recorded in the management area corresponding to the identification data of the received return data; and obtaining character information when the record medium loaded to the drive is a record medium of j!I jwhich character information has been recorded in the management area .When application software is installed to a computer corresponding to the reproducing method of the present invention, the user can reproduce., for example music from a CD loaded to a driver. In addition, when the loaded CD corresponds to the CD-TEXT format, CDTEXT information (disc name, song name, and so forth) can be displayed on a computer display in the most proper language of a plurality of languages.The above, and other, objects, features and advantage of the present invention will become readily apparent from,the following detailed description thereof which is to be read in connection with the accompanying drawings .BRIEF DESCRIPTION OF THE DRAWINGSFig. 1 is a schematic diagram showing a system structure according to an embodiment of the present invention;Fig . 2. is a schematic diagram showing areas of a conventional music reproducing CD according to the present invention;Fig. 3 is. a schematic diagram showing data of one frame;Fig. 4 is a schematic diagram for explaining l>a data structure of a sub-code frame;1 / 0 <Fig.. 5 is a schematic diagram showing data of all channels of a sub-code signal;Figs. 6A and 6B are schematic diagrams showing the data structure of a CD and the data structure of a TOC;Fig. 7 is a schematic diagram showing the structure of TOC data recorded in a lead-in area of a conventional CD;riFig. 8 is a schematic diagram showing data of all channels of a sub-code signal;Fig. 9 is a schematic diagram showing a data format of subcodes;Fig. 10A and 10B are schematic diagrams showing one pack and one symbol of a data format of aCD-TEXT;Fig. 11 is a schematic diagram showing a data format according to the embodiment of the present invention;Fig. 12 is a schematic diagram showing the contents of data of ID1;Fig. 13 is a schematic diagram showing the contents of data of ID2;Fig. 14 is a schematic diagram showing the contents of data of ID3;.Fig,. 15 is a schematic diagram showing the contents of data of ID4;Fig. 16 is a schematic diagram showing theΐ.b contents of data of a pack element (OOh) of a size pack;Fig. 17 is a schematic diagram showing the contents of data of a pack element (Olh) of a size pack;Fig. 18 is a schematic diagram showing the contents of data of a pack element (02h) of a size(.pack;Fig. 19 is a schematic diagram showing the relation between language codes and language names;Fig. 20 is a schematic diagram showing the relation between language codes and language names;Fig. 21 is a block diagram showing a structure according to the embodiment of the present invention;Figs.^22A and 22B are schematic diagrams showing an example of the structure of a read TOC command according to the embodiment of the present invention;Fig. 23 is a schematic diagram showing an example of the structure of return data sent from the drive to the computer according to the embodiment of the present invention; andFig; 24 is a flow chart for explaining the. operation according to the embodiment of the present invention.iDETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTSNext, with reference to the accompanying drawings, an embodiment of the present invention will be described. Fig. 1 shows an outlined structure of a system-according to an embodiment of the present invention. In Fig. 1, reference numeral'll is a computer display. Reference numeral 12 is a main body of a personal1computer. Reference numeral 13 is an optical disc drive disposed in the computer main body 12. Reference numeral 14 is a keyboard. Reference numeral 15 is a mouse. Such a personal computer is well-known. For example, a personal computer that operates with an operating system for example Windows 95 (registered trademark) can be used. It should be noted that the present invention can be applied to a computer that operates with another operating system.The:optical disc drive 13 can reproduce data from an optical disc such as a CD, a CD-ROM, a CD-R (recordable, non-rewritable CD), a CD-RW (rewritable CD). When an application software for the reproducing method according to the embodiment of the present invention is installed to the computer main body 12, music information of a CD loaded to the drive 13 can be reproduced by:a:built-in speaker or an external speaker. In addition, when the loaded CD is a CD corresponding.to the CD-TEXT format (CD-TEXT disc), the drive 13 reproduces CD-TEXT data from the lead-in area.<The reproduced CD-TEXT data is read to the computer main body 12. The CD-TEXT data is decoded and thereby a disc name, a program name, and so forth corresponding to the CD-TEXT data are displayed on display 11. The user can select a song with such information displayed.iIn the embodiment of the present invention, as a record medium, a CD is used. However, it should i:be noted that the present invention is applied to other types of optical discs (for example, DVD (digital video disc)), a magnetic tape, an optical tape, and a semiconductor memory. In addition, digital main information recorded on a record medium may be video data or the like as well as audio data.For easy understanding of the present invention, the data structure of an audio reproducible CD and the CD-TEXT format will be described in succession. As, shown in Fig. 2, a CD 101 has a hole 102 at the center thereof. A lead-in area 103 as a program management area for TOC (Table Of Contents) data, a program area 104 for program data, and a leadout area 105 as a program end area are disposed from an outer periphery of the hole 102 to an outer periphery of the CD. In the case of an audio reproducible CD, audio data is' recorded in the program area 104. Time information and so forth of the audio data are managed in the lead-in area 103. After the audio data has been completely redd from the program area 104 and the , ·Γ;rilίο pickup of the CD reproducing unit has reached the leadV out area 105, the CD reproducing unit completes the CD reproducing operation.On a CD, sub-codes have been recorded along 5 with audio data as main data. Next, data of P and Q channels as sub-codes will be described. An audio signal recorded· on the CD is sampled at a frequency of44.1 kHz with 16 bits per sample or word. 16 bits of ί one sample or one word are divided into high order eight bits and low order eight bits as two symbols. An error correcting process and an interleaving process = i are performed symbol by symbol. Every 24 symbols of ί audio data are grouped as one frame. One frame is μ equivalent to six samples of each of stereo left and right channels.< Eight bits as one symbol are converted into h 14 bits by EFM modulating method. Fig. 3 shows the r data structure of one frame that has been modulated by ' the EFM modulating method. Referring to Fig. 3, one2Ό frame 135 is composed of a synchronous pattern data ! area 131 of 24 channel bits, a sub-code area 132 of 14 j channel bits,: a program data area 133 having program ί data Dl to D12 of 12 symbols, a parity data area 134 i' having parity' data Pl to P4 of four symbols, another program data area 133, and another parity data area134. To connect each area or each data portion, connecting bits of three channel bits are disposed inJ?' Π each portion. Thus, one frame 135 is composed of data | of a total of.588 channel bits.i Fig. 4 shows data structure of which 98 frames are arranged so that each area and each data portion of the frames 135 continue in vertical ' direction. A period of the 98 frames shown in Fig. 4 is a unit of one sub-code; The 98 frames are referred to as sub-code frame. The sub-code frame is composed of a frame synchronous pattern portion 136, a sub-code portion 137, and a data and parity portion 138. One sub-code is equivalent to 1 / 75 seconds of reproduction time of a CD.i Sub-code data of P and Q channels is recordedI in the sub-code portion 137 shown in Fig. 4. Fig. 5 shows the data structure of sub-code frames of the subcode portion 137. Referring to Fig. 5, frame F01 andj. frame F02 are . synchronous patterns SO and SI of the sub-code frames, respectively. As with a frame.j, synchronous pattern, synchronous patterns SI and S2 are out-of-rule patterns of the EFM (Eight to Fourteen j !Modulation) modulating method. Each of eight bits of l· one symbol composes a sub-code of the P to W channels.;For example, the P channel is composed of parts of SO <ί and Si and Pl to P96.Sub-codes of the P channel contain jinformation that represents whether or not a program is Ji present. The Q channel contains absolute timeIQ information of the current CD, time information of each program, a program number (also referred to as track number), a movement number (also referred to as index), and so forth.. Thus, with information contained in the Q· channel, a reproducing operation such as a program start position detecting operation can be controlled.In addition, When the information of the Q channel is displayed, the user can visually know the program number of the,current program, the elapsed time of the tprogram, and the absolute time of the program.In addition, data of sub-codes of six channels from the R to W channels can be used for displaying a still picture, a song text, and so forth.A reproducing unit using these six channels from the R to W channels is well-known as CD-graphics. Recently, a format of which additional character information is.recorded to the R to W channels of the lead-in area of a CD (CD-TEXT) has been proposed. In the case of the CD-TEXT format,ij character information of around 6500 . characters can be recorded. In addition, additional character information of a CD is 800 characters or less in each of eight languages.Fig. 6A shows data recorded on a CD. As was described with reference to Fig. 2, a lead-in area 103, a program area 104, and a lead-out area 105 are successively disposed from the inner periphery of the CD to the outer periphery thereof. TOC data, programsNo. 1 to No. n, and data are recorded in the lead-in ! area 103, the.program area 104, and the lead-out area h 105, respectively.! As shown in Fig. 6B, the TOC data of a5' conventional CD is recorded in the Q channel as subcodes. A sub-code has a data structure of which one frame is composed of 98 bits. 72 bits of 98 bits are data. The TOC data has a format shown in Fig. 6B.When six programs are recorded on a CD, the , 10 data structure of the TOC is shown in Fig. 7. WhenPOINT is in the. range from 00 to 99, PMIN, PSEC, andPFRAME represent a start address (absolute time) of i each program. When POINT is A0, PMIN represents theP program number of the first program of the current disc. In this case, PSEC and PFRAME are 00. When j' POINT is A2, PMIN, PSEC, and PFRAME represent a leadi: out start address. As shown in Fig. 7, these contents ; are repeated three times each. In addition, these < contents are repeatedly recorded in the lead-in area.When the CD is loaded, the TOC data is read and stored, μ Fig; 8 shows the data structure of the CDj: TEXT format (mode 4) according to the embodiment of the present invention. In the case of a conventional CD, / as was described above, with data of 72 bits of one frame of sub-codes in the- Q channel, the number of programs (songs) and record position of each programJ are managed. In reality, a program number ranging from r 1 13 j&’ 14J 00 to 99, a start address (absolute time) of each ί program, the first program, the last program number, and a lead-out area start address are recorded. In i addition to sub-codes in the Q channel, CD-TEXT data in the R to W channels as shown in Fig. 8 is recorded in | the lead-in area.The first two frames of data of the R to W channels are synchronous patterns SO and Si. The >' remaining 96 frames contain 96 symbols each of which is composed of six bits. The 96 symbols are divided into l· four portions each of which is composed of 24 symbols.;i 24 symbols are referred to as one pack. Four packs are ’! referred to as one packet.j- At the beginning of each pack, an ID area 111 is disposed.:In the ID area 111, an ID code of 24 bitsΪ is recorded. 'The ID code includes mode information for p assigning a record mode of information recorded in the • current pack,IDl that represents the type of character ί information, and other ID codes (ID2, ID3, and ID4) i,20 that represent other identification information. The l· ID area 111 is followed by a text area 112 for r character information associated with main data. The text area 112 is composed of eight-bit blocks. Each . pack has a CRC area 113 of 16 bits for detecting an1error with a CRC (Cyclic Redundancy Code). The ID area111, the text'area 112, and the CRC area 113 compose a [ pack area 114 .$ ir l'OFig. 9 shows an outlined structure of the CDTEXT format. All character information is recorded in a text group.. In the lead-in area, the same text group is repeatedly'recorded. One text group is composed of up to eight blocks. Fig. 9 shows an example of which one text group is composed of two blocks (block 0 and block 1).Block 0 contains English character information corresponding to character code 8859-1. Block 1 contains Japanese character information corresponding to character code MS-JIS. Each block is composed of pack 0 to pack n.Fig. 10A shows serial data in the data format shown in Fig.^8. As shown in Fig. 10A, the' first 32 bits of data (only 24 bits are shown in Fig. 10A) are divided into four bytes and assigned to identification codes ID1, ID2, ID3, and ID4 as an ID (header) area. 1. The ID (or header) area 1 is followed by a text area 112. The text area 112 is divided into byte data. The data length of the text area 112 is 12 bytes. The text area 112 is followed by a CRC area 113 of two bytes.The ID area 111, the text area 112, and the CRC area 113 are referred to as pack 114. The data length of the pack 114 is 18 bytes. Thus, the signal on the Q channel can be processed byte by byte. Consequently, the processing circuit becomes simple.In the CD-TEXT format, an error is detectedl.1.I , i i1' with only a CRC error detection code. When an error is detected, data is read. Thus, data is read whenever an error is detected. Consequently, in the TOC, data is written pack by'pack four times. In addition, a data sequence is repeatedly recorded packet by packet. In other words, one pack that synchronizes with a' sub-code sync with a period of 1 / 75 seconds contains four packs. In such a multiple recording operation, a complicated circuit for an error correction can be omitted.The multiple writing operation for each pack is not limited to four time writing operation. In addition, the multiple writing operation may be performed for:each packet or every several packets rather than each pack.In addition, as shown in Fig. 10B, IDl at the beginning of the ID area 111 is handled with eight bits that are larger by two bits than a conventional symbol. Data for identifying a particular mode is written to three bits after the MSB (inclusive) so as to prevent the reproducing unit having a decoding function for sub-codes of the R to W channels from malfunctioning.In the CD-TEXT format recorded in the lead-in area, as a mode represented with the three bits, before the CDTEXT format is proposed, mode 4 (100) that has not been defined is: assigned. Thus, even if such a decoding function is provided to a conventional reproducing unit, only an unrecognizable mode isJ?iV iv *.5 detected. Thus, the reproducing unit simply stops, not malfunctions. As undefined modes, mode 5 and mode 6 are considerable along with of mode 4. Thus, instead of mode 4, one of mode 5 and mode 6 may be used.In the example of which mode 4 is represented with IDl, as shown in Fig. 11, one pack includes identification codes IDl, ID2, ID3, and ID4 (eight bits (one byte) each), text bytes textl to textl2, and a 16bit CRC code.:IDi:is composed of eight bits. Fig. 12 shows contents of data handled with ID1 and each pack. As described above, IDl is denoted by (8xh) so as to represent mode 4 with high order bits (where h represents hexadecimal notation; x represent low order four bits).IDl represents the contents of a character string preceded·· by textl. (80h) represents an albumI name / program name. (81h) represents a performer name / conductor name / orchestra name. (82h) represents a song writer name. (83h) represents a composer name. (84h) represents an arranger name. (85h) represents a message. (86h)- represents a disc ID. (87h) represents a search keyword. (88h) represents a TOC. (89h) represents a 2nd TOC. (8ah), (8bh), and (8ch) represent reserved areas. (8dh) represents closed information. (8eh) represents UPC / ΕΑΝ (POS code) of the album and ISRC of each track. (8fh) represents block size information. Reserved areas represent that these areas have not been currently defined and will be defined in. future.ID2. includes a one-bit extension flag and a seven-bit truck.number or a seven-bit pack element number. The track number represents a track number to which the first,character of the text data of the pack belongs. As shown in Fig. 13, a track number ranging from 1 to 99 is recorded to ID2. Thus, other values ”0” and ’’100 (64h) or higher have special meanings. 00 represents information representative of the entire disc. .MSB is always 0. When MSB is 1, it represents an extension flag. The pack element number is used depending on the type of a pack represented byIDl.4' ΐ !ID3 represents a pack sequential number. As shown in Fig. 14, the pack sequential number of a block ranges from 00 to 255 (Oh to FFh). When ID3 is 0, it represents the first pack of IDl = 80h.As shown in Fig. 15, ID4 includes a one-bit (MSB) DBCC (Double Byte Character Code) identification, a three-bit block number, and a four-bit pack character position information. When the current block includes a DBCC character string, the DBCC identification is 1. When the current block includes an S(Single)BCC character string, the DBCC identification is 0. The block number represents a block number to which the cΊΟJ.J·* current pack belongs. The four-bit character position information represents the character position of textl of the current pack. When the four-bit character position information is 0000, it represents that the character position is the first character. 0001 represents that the character position is the second character. 0010 represents that the character position is the third character. Likewise, 0011, 0100, ..., represent that the character position is the fourth character, the fifth character, ...As described above, text data is composed of 12 bytes. The text data includes a character string or binary information corresponding to the type of a pack represented by IDl. When a pack is other than (IDl = 88h), (IDl = 89h), and (IDl = 8fh), text data thereof is a character string. A character string is composed of charactersand a null code as an end mark. When the character string is a SBCC character string, one null code is used.' When the character string is a DBCC character string, two null codes are used. A null code is (OOh). The size of each character string is preferably 160 bytes or less.Figs. 16, 17, and 18 show examples of the structure of a pack (IDl = 8fh) of block size information corresponding to the present invention.Fig. 16 shows:the data structure of a pack of pack element number - (00h). Fig. 17 shows the dataV-ι structure of a pack of pack element number = (Olh).Fig. 18 shows the data structure of a pack of pack element number = (02h).ID3 represents the sequential number of a pack..of (ID2 = 00h) (see Fig. 16) . ID4 represents a block number. . ID4 is followed by textl that represents a character code of the current block. The character code is used for a character string of a pack (IDl =80h to 85h). The character code of other packs is (OOh). When the block number is 0, the character code is (OOh). The character code is defined as follows.OOh = ISO 8859-1Olh = ISO 646, ASCII02h ~ '7F = Reserved80h = MS-JIS81h = ^Korean character code82h = Mandarin (standard) Chinese character code83h ~ FFh = ReservedFor example, in the ISO 8859-1, alphanumeric characters, symbols, and so forth are represented with one byte. The ISO 8859-1 code is used as a standard character code.text2 represents the first track number. text3 represents the last track number. text4 represents mode .2 and copy protection flag. One bit (MSB) of text4 is a flag that represents whether or not15j]' a CD-TEXT packet of mode 2 has been encoded to a program area. The remaining seven bits are used as a copy protection flag. texts to textl2 represent the number of packs of each of (ID1 = 80h) ~ (ID1 ~ 87h). - · *As with the pack shown in Fig. 16, in a pack ;(ID1 = 8fh, ID2 = Olh) (see Fig. 17), ID3 and ID4 * represent a sequential number and a block number, J trespectively. textl to text8 represent the number of ) packs of each of (IDl = 88h) ~ (ID1 = 8fh). text9 to jt.textl2 represent the last sequential number of each of ίblock 0 to block 3. J ίAs with the packs shown in Figs. 16 and 17, j in a pack (IDl - 8fh, ID2 = 02h) (see Fig. 18), ID3 and JID4 represent a sequential number and a block number, respectively. textl to text4 represent the last j sequential number of each of block 4 to block 7. When »the last sequential number is (OOh) , it represents that t no block is present. When no block is present, it is:· i referred to as non-data block. texts to textl2 j represent language codes of block 0 to block 7. A , icharacter code represents a data format type of each!character of a character string. On the other hand, aΪ language code represents the country of character | information of each block. tFigs. 19 and 20 are tables showing the j relation between language codes (one byte each) and I languages. The:table shown in Fig. 19 lists language ;codes used in'European countries. The table shown in Fig. 20 lists language codes used in other countries. The language codes in these, lists are only examples. Thus, other language codes may be used.Next, with reference, to Fig. 21, an example of an optical. di'sc drive 13 according to an embodiment of the present invention will be described. The optical disc drive 13 can reproduce data from a CD-ROM, ia CD, and a CD-TEXT. In Fig. 21, reference numeral 21 is a disc that'is loaded to the drive. Data is reproduced from the drive. The disc 21 is rotated and driven by a spindle motor 23. An optical pickup 22 reads data from.the disc 21.'A reproduction signal that is output from the optical pickup 22 is supplied to a servo and signal processing portion 30 that has the same structure as a CD player. The reproduction signal is supplied to an RF amplifier 31. The RF amplifier 31 has a function of an RF signal processing circuit. In other words, the RF amplifier 31 performs a process for digitizing an RF signal, a process for generating a tracking error signal TE and.a focus error signal FE, and so forth.The error signals TE and FE are supplied to a servo signal processing circuit 32. The servo signal processing circuit 32 performs a focus controlling process and a tracking controlling process. A focusactuator and a tracking actuator of the optical pickup &l· ί' ίare driven corresponding to signals received through driving circuits 33 and 34. A unit (not shown) that moves the pickup 22 to the direction of the disc diameter is controlled by a servo signal processing circuit 32.A digitized reproduction signal received from the RF amplifier 31 is supplied to a PLL 35, an EFM demodulating circuit 36, and a timing generating circuit 37. The PLL 35 generates a clock signal that synchronizes with the reproduction signal. A digital audio signal received from the EFM demodulating circuit 36 is supplied to a signal processing circuit 38. The signal processing circuit 38 performs an error correcting process, an error data interpolating !process, and so forth. A digital audio signal received rfrom the signal processing circuit 38 is supplied to an interface 42. The interface 42 connects a computer main body 12 (a host computer 53 in Fig. 21) and an optical disc drive 13. The interface 42 is a SCSI interface, an ATAPI interface, or the like. A digitalI audio signal is reproduced as an audio signal by software (an application program) of the host computer53..The timing generating circuit 37 generates' a timing signal that synchronizes with the reproduction signal. An output signal of the timing generating circuit 37 is supplied to·a CLV processor 39. The CLV ίrf ii ;5 j :j processor 39 drives the spindle motor 23 at CLV (Constant Linear Velocity). A sub-code separated by the EFM demodulating circuit 36 is supplied to a subcode processor 40. The sub-code processor 40 performs J a process for detecting an error of the sub-code and so ; i forth. The sub-code processor 40 separately outputs1s data of sub-codes of the P and Q channels and data of ί sub-codes of the R to W channels. The sub-code data is ) :Ί · supplied to the interface 42.As described above, sub-codes in the R to W channels of theLlead-in area contain CD-TEXT data. The CD-TEXT data is sent to the host computer 53 through the interface 42. A CD-TEXT data decoding process for separating character information from CD-TEXT data and displaying the character information on the display is performed by software of the host computer 53. A disc name, a song name, an artist name, and so forth corresponding, to CD-TEXT data are displayed in English or another language on the computer display 11. Alternatively, instead of such software, hardware for decoding CD-TEXT data may be disposed in the host computer 53 or the drive.When data is reproduced from a CD-ROM, an output signal of, the servo and signal processing portion 30 is supplied to a CD-ROM signal processing portion 50. In a CD-ROM, the data length of a sub-code is defined as a data unit (1 / 75 seconds).In other iwords, the data,, length of 2352 bytes is treated as one block. At the beginning, a sync (12 bytes) is disposed. The sync is followed by a header (4 bytes). The header is'followed by user data. The header contains an address similar to an absolute address of a sub-code of the Q channel of the CD. As the data structure of a CD-ROM, mode 0, mode 1, mode 2 (form 1), and mode 2 (form 2) have been defined. Data other than sync has been scrambled. In addition, each block is encoded with an error detection code or an error correction code.After data is block-segmented, an error correction code encoding process and an EFM modulating process for a CD-ROM are performed as with data for aCD. The resultant data is recorded on a CD-ROM. Thus, the CD-ROM signal processing portion 50 includes a .1¾ descrambler 51 and an error correcting circuit 52. The descrambler 51 descramble output data of the signal processing portion 38. The error correcting circuit 52 decodes output signal of the descrambler 51 with an error detection'i.code or an error correction code. Reproduction data that is output from the error correcting circuit 52 is supplied to the host computer 53 through the interface 42.The system controller 41 is a microcomputer. The system controller 41 controls the entire operation of the optical disc drive. In other words, the system •15 controller 41 controls the servo and signal processing portion 30, the . CD-ROM signal processing portion 50, and the interface 42. The disc reproduction data is supplied to the.host computer 53 through the interface 42 corresponding to a read TOC command received from the host computer 53. Data supplied from the drive to l· :the host computer 53 is referred to as return data.Next, with reference to Fig. 22, a read TOC command that is.one of commands issued by the host computer 53 will be described. The data length of the read TOC command is 10 bytes. The read TOC command has the data structure shown in Fig. 22A. Referring to !Fig. 22A, byte 0 to byte 9 are assigned to the read TOC command. In addition, bit 0 to bit 7 are assigned to each of byte 0 to byte 9. In Fig. 22A and other drawings, hatched areas represent areas allocated, but not defined.Byte 0 is an operation code that represents a command type.; As shown in Fig. 22A, when the operation code is (43h), it represents a read TOC command. Bit 1 of byte 1 of the read TOC command is MSF that defines an address type'. When MSF is 0, it represents that a.logical block. address is required. - When MSF is 1, it represents that' an address denoted by minute, second, and frame is required.Bit 0· to bit 3 (four bits) of byte 2 are a format field.' The format field represents a return data type as defined in Fig. 22B. When the format field is format:0 (0000), .it represents that' TOC data (P and Q channels) is returned as return data. When the format field is format 1, it represents that session information is returned as return data. When the format field is format 2, it represents that all sub-codes of the Q channel are returned as return data. When the format field is format 3, it represents that sub-codes of the Q channel of PMA (area defined for a CD-R) are returned as return data. When the format field is format 4, it represents that an ATIP (an address represented as a wobbling group such as a CD-R, a CD-RW, etc.) is returned as return data. When the format field is format 5, it represents that CD-TEXT data recorded- in the R to W channels of the lead-in area is returned as return data.Format 5 (0101)- of the format field relates to the sprit of the present invention. When the host computer 53 issues a command corresponding to format 5 to the optical disc drive, the system controller 41 of the drive interprets the command and controls the optical pickup 22 to read data in the R to W channels of the lead-in area. Although part of music CDs correspond to· the CD-TEXT format, it is possible to allow other CDs to correspond to the CD-TEXT format.Byte 6 of the read TOC command is a track number and a session number at which the read operationOft starts. Bytes 7 and 8 (two bytes) (allocation length) represent the length of return data designated by the host computer 53. However, real return data sent back from the drive to the host computer does not match the allocation length. The CD-TEXT data in the R to W channels of the sub-code does not have a constant data length. A code (identification data) that is contained in the header:of the return data represents the data length of CD-TEXT read from the disc. Byte 9 (control) is a parameter for an interface such as SCSI.With reference to Fig. 23, the structure of return data will be described. When the system controller 41 of the optical disc drive receives the read TOC command of format 5 through the interface 42, the optical pickup 22 reads CD-TEXT data from the discJ and controls the drive to send the CD-TEXT data as return data to the host computer 53. The first four bytes (bytes 0 to 3) of the return data are a header.The; data length of the return data preceded by the first two bytes of the header is represented by bytes 0 and 1. of the header. In the example shown in Fig. 23, the data length is the last two bytes of the header and (n + 1) bytes. The second and third bytes (two bytes) of the header are reserved (undefined).The CD-TEXT data of (n + 1) bytes is subcodes of the R to W channels read from the lead-in area. When necessary, descriptor data may be disposed between the =10 header and the CD-TEXT data.According to the embodiment of the present invention, a process for causing the host computer 53 to obtain CD-TEXT data from the drive will be described with reference to a flow chart shown in Fig. 24. In Fig. 24, the process is started in the condition that the application μ. has been started and the application has detected that the disc has been loaded.The application'secures previously memory enough to store the CD-TEXT data read from the disc corresponding to above-mentioned CD-TEXT format.The host computer 53 issues the read TOC command (format's) to the drive so as to send back CDTEXT data (at,step Si). When the drive receives the read TOC command, the system controller 41 sends return data to the host computer through the host computer 53.tThe return data has a header that contains a code representing the data length. The host computer 53 receives return, data (at step S2). The host computer 53 reads only.the header of the return data. Alternatively, the drive may send only the header to the host computer 53 corresponding to the read TOC command that has been issued.The host computer 54 determines whether or not the header of the first four bytes of the return data is (00020000h) (at step S3). The header represents that the data length is two bytes (namely, that the read.data contains only a header, rather than CD-TEXT data). Thus, when the header is (00020000h) as the determined result at step S3, the flow advances to step S4. At step S4, it is determined that the currently loaded data is not. a CD-TEXT disc. On the other hand, when the determined result at step S3 is No, it is determined that the currently loaded disc is a CD-TEXT disc..’When it is determined that the currently loaded disc is a CD-TEXT disc at step S5, the flow advances to step S6. At step S6, the read TOC command (format 5) is:. re-issued. The re-issued read TOC command is the same as the original read TOC command.jReturn data is received corresponding to the re-issued command (at step S7). The received return data (CDTEXT data} is. stored to a memory allocated corresponding· to the application (at step S8). When it is determined^ that the currently loaded disc is a CDTEXT disc, the CD-TEXT data is obtained from the disc.At step S3, in addition to determining whether or not the currently loaded disc is a CD-TEXT disc corresponding to the header of the return data, the data length of the CD-TEXT data may be determined corresponding to the header... At least the memory area corresponding to the determined data length may be allocated by the application. The allocation length of the re-issued' command may- represent the data length.,k trigger other tian the read TOCIn this case, it is determined of- the ?. to W channels in is reproduced. ReturnF of the host computer 53.I . ,In.addition, another kcommand may be .used.whether or not 'a disc has been loaded. Corresponding to the detected result, data the lead-in area'of the disc data is stored in the 'memory ϊWith the retu-rn data stored in the memory, it is determined'whether or not the 'currenoly loaded disc is' • ' ί a CD-TEXT disc?' In addition, the CD-TEXT. data is k Ϊ obtained'(read from the memory). ' . Having described a specific, preferred embodiment of: the present invention with reference to' the accompanying drawmcs, it is to re understood that 'if - the invention- is not limited to that precise embodiment, and that various changes and modifications may be effected'therein by one skilled in the art without 'departing from the scope of the invention' asv.defined^iη the. .appended; cla-imso.·As described above, according to the present'· «1>invention, the computer .can determinewhether or-not-a record-medium! that has been loaded to the drive'is a record medium* of which character recorded to its management area.is such a disc as the determined information can be' obtained. According to the present :1 ' invention, with the interface disposed between the ’Ϊ Ai computer' and the drive, the type of ohe loadedrecord information has- been'When the loadeddisc result, the characterPI medium can be determined and the character information can be obtained. In addition, a special signal transmission path other than the interface is not required.
Claims
CLAIMS :
1. A reproducing method for causing a computer. (12) to . obtain data reproduced from a record medium loaded on a drive 5 connected to the computer (12) , the record medium having a management area (103) and a program area (104), the method if comprising the steps of: ί causing the computer (12) to issue a predetermined command to 10 the drive so that the drive reads the management area (103); receiving return data composed of data reproduced from the management area (103) of the record medium by the drive and including a header; having identification data representing a 15 length of' the data;? 30 determining whether the record medium has character information recorded in the management area (103) based on the ί μ identification data of the return data received in the step of receiving; and H obtaining character; information from the return data when the record medium loaded on the drive is determined to have the character information recorded in the management area (103), wherein the steps; of receiving, determining, and obtaining are performed by the computer (12).
2. The reproducing method as set forth in claim 1, 4 * ϊ F wherein the receiving step is performed by detecting the ii record medium loaded on the drive, reproducing the management PI 99000664 area (103) , and receiving the return data generated from the management area (103), and wherein the determining step is performed by storing the return data received in the step of receiving and determining 5 whether the record medium loaded on the drive is a record medium determined to have character information recorded in the management area (103) corresponding to the return data stored in the step of storing. io3. The reproducing method as set forth in claim 1, further comprising the step of: causing the computer (12) to allocate a memory area with a data length exceeding a length of the identification data.
4. The reproducing method as set forth in claim 1, wherein the character information recorded in the management area (103) is character information associated with a program 20 recorded in a program area (104) of the record medium.
5. The reproducing method as set forth in claim 1, wherein the identification data is placed at a top portion of the return data.
6. A record medium from which a computer (12) reads data using a reproducing method for causing the computer (12) to obtain data reproduced .from the record medium loaded on a drive connected to the computer ¢12), the record medium having a management area (103) and a program area (104) , the reproducing method comprising the steps of: PI 99000664 causing the computer (12) to issue a predetermined command to the drive so that the drive reads the management area (103); 5 receiving return data composed of data reproduced from a the management area (103) of the record medium loaded on the drive and including a header having identification data representing a length of the data;10 determining whether the record medium loaded on the drive has character information recorded in the management area (103) based on the identification data of the return data received in the step of receiving; and15 obtaining character information from the return data when the record medium loaded on the drive is determined to have the L character information recorded in the management area (103), wherein the steps of receiving, determining, and obtaining are performed by the computer (12).
