JP5117366B2 - Program supply device, program supply method, and optical drive including the program supply device - Google Patents
Program supply device, program supply method, and optical drive including the program supply device Download PDFInfo
- Publication number
- JP5117366B2 JP5117366B2 JP2008316654A JP2008316654A JP5117366B2 JP 5117366 B2 JP5117366 B2 JP 5117366B2 JP 2008316654 A JP2008316654 A JP 2008316654A JP 2008316654 A JP2008316654 A JP 2008316654A JP 5117366 B2 JP5117366 B2 JP 5117366B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- optical drive
- recording medium
- recording capacity
- host
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
Description
本発明は、ホストコンピュータと光学ドライブとを仲立ちし、ブート時にホストコンピューターに対して所定のプログラムに基づいた処理を実行させるプログラム供給装置、および当該プログラム供給装置を備えた光学ドライブに関する。 The present invention relates to a program supply apparatus that mediates between a host computer and an optical drive and causes a host computer to execute processing based on a predetermined program at the time of booting, and an optical drive including the program supply apparatus.
近年、光ディスクの記録容量の大容量化が進むと共に、コンピュータのオペレーティングシステム(OS:Operating System)環境を異なるコンピュータ間で共有するために、光学ドライブを用いてOSを起動させる機会も多くなっている。 In recent years, as the recording capacity of optical discs has increased, there are also many opportunities to start up the OS using an optical drive in order to share the operating system (OS) environment of computers between different computers. .
しかし、記録媒体として光ディスクを用いる光学ドライブと、記録媒体として磁気ディスクを用いるハードディスクドライブとでは異なる点も多く、光学ドライブを用いたOS起動処理にはいくつかの問題点が存在する。 However, there are many differences between an optical drive that uses an optical disk as a recording medium and a hard disk drive that uses a magnetic disk as a recording medium, and there are some problems with OS startup processing using an optical drive.
このような問題点のうちのいくつかを解決するための技術として、例えば、特許文献1〜3が知られている。 For example, Patent Documents 1 to 3 are known as techniques for solving some of these problems.
特許文献1に記載の技術は、光ディスク装置を計算機に接続するために新たなハードウェアまたはソフトウェアが必要となる問題点を始めとして、ハードディスク装置と比して光ディスク装置のスループットが低いという問題点、およびハードディスク装置と比して光ディスク装置のライト動作時における処理速度が著しく低下する問題点を解決する技術である。また、特許文献2に記載の技術は、光ディスクドライブをあたかもハードディスクドライブに見せかけるためエミュレーションの形態を、ホストコンピュータのOSで準備されているハードディスク用の入出力処理に合わせて固定せず、エミュレーション機能の自由度を向上する技術である。
しかし、OSを光学ドライブを用いて起動させるためには、特許文献1および2において解決した問題以外にも問題点が存在する。以下に、特許文献1および2に記載の技術を用いても解決することができない問題点について説明する。 However, there are problems other than the problems solved in Patent Documents 1 and 2 for starting up the OS using an optical drive. Below, the problem which cannot be solved even if it uses the technique of patent document 1 and 2 is demonstrated.
OSを起動する際、すなわちホストコンピュータ(以下、単にホストPCと称する)の電源をオンにした際、ホストPCは、まず自身に接続されている各デバイスの初期化を実行する。通常、OSはハードディスクドライブに記録されているため、ホストPCは、ATAを介して、ハードディスクドライブに対して自身の記録容量情報などを含む固有情報を問い合わせるコマンド(IDENTIFY DEVICEコマンド)を送信する。そして、送信したIDENTIFY DEVICEコマンドに対するハードディスクドライブからの応答を受けて、初期化を実行する。ハードディスクドライブの初期化が完了すると、ホストPCは、そのハードディスクドライブから読み出したMBR(Mater Boot Record)に収められているプログラム(ブートストラップローダー)を実行することにより、記録メディアからOSをロードする。 When the OS is started, that is, when a host computer (hereinafter simply referred to as a host PC) is turned on, the host PC first initializes each device connected to itself. Since the OS is normally recorded in the hard disk drive, the host PC sends a command (IDENTIFY DEVICE command) for inquiring specific information including its own recording capacity information to the hard disk drive via the ATA. Then, initialization is executed in response to a response from the hard disk drive to the transmitted IDENTIFY DEVICE command. When the initialization of the hard disk drive is completed, the host PC loads the OS from the recording medium by executing a program (bootstrap loader) stored in an MBR (Mater Boot Record) read from the hard disk drive.
このとき、ハードディスクドライブは、ホストPCから送信されるIDENTIFY DEVICEコマンドに対する応答を数秒以内(一般的には1〜2秒以内)に通知する(送信する)必要がある。通常、円盤状の記録メディアでは、記録メディアの回転が安定した後にしか情報を読み出すことができない。しかし、ハードディスクドライブでは、搭載されている記録メディアの取り出しが不可能であるため、自身の記録容量情報として予め定められている固定値を用いてIDENTIFY DEVICEコマンドに応答することにより、この問題をクリアしている。 At this time, the hard disk drive needs to notify (transmit) a response to the IDENTIFY DEVICE command transmitted from the host PC within a few seconds (generally within 1 to 2 seconds). Usually, in a disk-shaped recording medium, information can be read only after the rotation of the recording medium is stabilized. However, since it is impossible to take out the installed recording media in the hard disk drive, this problem is cleared by responding to the IDENTIFY DEVICE command using a fixed value that is predetermined as its recording capacity information. is doing.
しかし、光学ドライブでは、ハードディスクドライブと異なり、搭載されている記録メディア(すなわち、光ディスク)を取り替える(取り出す)ことが可能である。そのため、搭載されている光ディスクの記録容量情報(以下、メディア情報とも称する)を毎回確認する必要があり、ハードディスクドライブのように、予め定められた固定値を用いて応答することができない。すなわち、光学ドライブの場合は、光ディスクの回転が安定するまで、搭載されている光ディスクのメディア情報を取得することができない。 However, in the optical drive, unlike the hard disk drive, it is possible to replace (take out) the mounted recording medium (that is, the optical disk). Therefore, it is necessary to check the recording capacity information (hereinafter also referred to as media information) of the mounted optical disk, and it is impossible to respond using a predetermined fixed value as in a hard disk drive. That is, in the case of an optical drive, the media information of the mounted optical disk cannot be acquired until the rotation of the optical disk is stabilized.
このように、光学ドライブの場合は、所定の時間内にIDENTIFY DEVICEコマンドに対する応答ができないため、ホストPCでは、デバイスの認識エラーとして処理される。すなわち、ホストPCにおいて不良デバイスとして判定されてしまうことになる。当然のことながら、光学ドライブを用いたOS起動処理は、この時点で中止されてしまう。 As described above, in the case of an optical drive, since a response to the IDENTIFY DEVICE command cannot be made within a predetermined time, it is processed as a device recognition error in the host PC. That is, it is determined as a defective device in the host PC. As a matter of course, the OS startup process using the optical drive is stopped at this point.
以上説明したように、光学ドライブでは、ハードディスクドライブと異なり、電源がオンになってから数秒以内に搭載されている光ディスクのメディア情報をホストPCに対して通知することができないという問題を有している。 As described above, unlike the hard disk drive, the optical drive has a problem in that it cannot notify the host PC of the media information of the optical disk mounted within several seconds after the power is turned on. Yes.
本発明は、上記の問題点に鑑みてなされたものであり、その目的は、ブートデバイスの初期化の際に生じる光学ドライブの認識エラーを回避しつつ、ホストPCに対して所定のプログラムを供給するプログラム供給装置を実現することにある。 The present invention has been made in view of the above problems, and an object thereof is to supply a predetermined program to a host PC while avoiding an optical drive recognition error that occurs at the time of initialization of a boot device. The present invention is to realize a program supply apparatus.
本発明に係るプログラム供給装置は、上記課題を解決するために、
光学ドライブからオペレーティングシステムをロードするホストコンピュータに対して所定のプログラムを供給するプログラム供給装置であって、オペレーティングシステムをロードするためのプログラムを有する記録メディアを搭載するデバイスの持つ固有情報を問い合わせる第1のコマンドを上記ホストコンピュータから受信したとき、当該記録メディアの記録容量を所定のダミー値とした仮想固有情報を出力する固有情報出力手段と、上記プログラムを格納するセクタを読み出す第2のコマンドを、上記ホストコンピュータから受信したとき、所定のダミープログラムを出力するプログラム出力手段と、を備えていることを特徴としている。
In order to solve the above problems, a program supply apparatus according to the present invention provides:
A program supply apparatus that supplies a predetermined program to a host computer that loads an operating system from an optical drive, and that inquires about unique information of a device having a recording medium having a program for loading the operating system. When the above command is received from the host computer, unique information output means for outputting virtual unique information with the recording capacity of the recording medium as a predetermined dummy value, and a second command for reading the sector storing the program, And a program output means for outputting a predetermined dummy program when received from the host computer.
本発明に係るプログラム供給装置は、OSをロードするためのプログラムを有する記録メディアを搭載するデバイスの持つ固有情報を問い合わせる第1のコマンドに対して、記録メディアの記録容量を所定のダミー値とした仮想固有情報を出力し、仮想固有情報を持つデバイスに搭載されている仮想記録メディアからOSをロードするためのプログラムを格納しているセクタ(以下、ブートセクタとも称する)を読み出す第2のコマンドに対して、所定のダミープログラムを供給する。 The program supply apparatus according to the present invention sets the recording capacity of the recording medium to a predetermined dummy value in response to the first command inquiring about the unique information of the device having the recording medium having the program for loading the OS. A second command that outputs virtual unique information and reads a sector (hereinafter also referred to as a boot sector) that stores a program for loading an OS from a virtual recording medium mounted on a device having virtual unique information. On the other hand, a predetermined dummy program is supplied.
本発明に係るプログラム供給装置では、ホストPCから送信される第1のコマンドを受信したときに、記録メディアの記録容量を所定のダミー値として応答するため、第1のコマンドに対する応答を所定の時間内に返すことができる。 In the program supply apparatus according to the present invention, when the first command transmitted from the host PC is received, the recording capacity of the recording medium is responded as a predetermined dummy value. Can be returned within.
また、本発明に係るプログラム供給装置では、仮想固有情報を持つデバイスの搭載する仮想記録メディアからの情報読み出し要求のコマンド(第2のコマンド)を受信したとき、所定のダミープログラムを出力するため、仮想固有情報を持つデバイスであっても、情報の読み出しの際に問題が生じることを避けることができる。また、第2のコマンドに対して出力されるダミープログラムに応じた処理をホストPCに実行させることができる。 Further, in the program supply apparatus according to the present invention, when a command (second command) for reading information from a virtual recording medium mounted on a device having virtual unique information is received, a predetermined dummy program is output. Even a device having virtual unique information can avoid problems when reading information. In addition, it is possible to cause the host PC to execute processing corresponding to the dummy program output for the second command.
したがって、本発明に係るプログラム供給装置は、ホストPCに接続されているデバイスを初期化する際に生じる光学ドライブの認識エラーを回避しつつ、ホストPCに対して所定のプログラムを供給することができる効果を奏する。 Therefore, the program supply apparatus according to the present invention can supply a predetermined program to the host PC while avoiding an optical drive recognition error that occurs when a device connected to the host PC is initialized. There is an effect.
本発明に係るプログラム供給装置では、さらに、上記プログラム出力手段から出力されるダミープログラムは、上記光学ドライブから、当該光学ドライブに搭載されている記録メディアの記録容量情報の取得処理が完了したか否かを、当該プログラム供給装置に対して一定時間毎に問い合わせるように上記ホストコンピュータを制御するプログラムであることが好ましい。 In the program supply device according to the present invention, the dummy program output from the program output means may be determined whether or not the acquisition process of the recording capacity information of the recording medium mounted on the optical drive is completed from the optical drive. It is preferable that the program controls the host computer so as to inquire the program supply apparatus at regular intervals.
上記の構成によれば、光学ドライブに搭載されている記録メディアの記録容量情報を取得するための時間(Wait時間)を作り出すことができる効果を奏する。 According to said structure, there exists an effect which can produce the time (Wait time) for acquiring the recording capacity information of the recording medium mounted in the optical drive.
本発明に係るプログラム供給装置では、さらに、上記光学ドライブから、当該光学ドライブの搭載する記録メディアの記録容量情報を取得する取得手段と、上記取得手段における記録容量情報の取得処理の完了を上記ホストコンピュータに対して通知する通知手段と、をさらに備えており、上記固有情報出力手段は、上記通知手段からの通知を受けてリセットされた上記ホストコンピュータから上記第1のコマンドを受信したとき、上記記録メディアの記録容量を上記取得手段において取得した記録容量情報とした固有情報を出力することが好ましい。 In the program supply device according to the present invention, an acquisition unit that acquires recording capacity information of a recording medium mounted on the optical drive from the optical drive, and completion of the acquisition process of the recording capacity information in the acquisition unit is performed on the host. Notification means for notifying the computer, and the specific information output means receives the first command from the host computer that has been reset in response to the notification from the notification means. It is preferable to output unique information in which the recording capacity of the recording medium is the recording capacity information acquired by the acquisition means.
上記の構成によれば、ホストPCは、光学ドライブに搭載されている記録メディアの記録容量情報を取得したことを示す通知の受信をトリガとして、仮想的な固有情報を持つデバイスに関する情報をリセットする。すなわち、ダミーデバイスに関する情報をリセットする。これによって、ホストPCでは、接続されているデバイスの初期化処理が再度実行されることになる。 According to the above configuration, the host PC resets information related to a device having virtual unique information, triggered by reception of a notification indicating that the recording capacity information of the recording medium mounted on the optical drive has been acquired. . That is, the information regarding the dummy device is reset. As a result, in the host PC, the initialization process of the connected device is executed again.
このとき、ホストPCから受信する第1のコマンドに対して、光学ドライブに搭載されている記録メディアの記録容量情報を用いて応答することができる。すなわち、ホストPCは、光学ドライブの搭載する記録メディアの記録容量を有するデバイスを認識することができる。 At this time, it is possible to respond to the first command received from the host PC using the recording capacity information of the recording medium installed in the optical drive. That is, the host PC can recognize a device having a recording capacity of a recording medium mounted on the optical drive.
これによって、上記の構成を用いて光学ドライブに搭載されてい記録メディア(すなわち、光ディスク)からOSを起動させる場合には、ブートセクタ上の情報を書き換えるなどの特別な操作を必要とすることなく、光ディスクからOSを起動させることができる。そのため、コンピュータの操作に不慣れなユーザーであっても、容易に光ディスクからのOSの起動を実行することができる効果を奏する。 As a result, when the OS is started up from a recording medium (that is, an optical disk) mounted on the optical drive using the above configuration, a special operation such as rewriting information on the boot sector is not required. The OS can be started from the optical disk. Therefore, even if it is a user unfamiliar with computer operation, there exists an effect that starting of OS from an optical disk can be performed easily.
本発明に係るプログラム供給装置では、さらに、上記取得手段において取得した記録容量情報を記憶する記憶部をさらに備えており、上記固有情報出力手段は、上記記憶部に上記取得手段において取得した記録容量情報が記憶されている場合には、当該記録容量情報を用いた固有情報を出力し、上記記憶部に上記取得手段において取得した記録容量情報が記憶されていない場合には、所定のダミー値を用いた仮想的な固有情報を出力することが好ましい。 The program supply apparatus according to the present invention further includes a storage unit that stores the recording capacity information acquired by the acquisition unit, and the unique information output unit stores the recording capacity acquired by the acquisition unit in the storage unit. When the information is stored, the unique information using the recording capacity information is output. When the recording capacity information acquired by the acquiring unit is not stored in the storage unit, a predetermined dummy value is set. It is preferable to output the virtual unique information used.
上記の構成によれば、取得した記録メディアの記録容量情報を、記憶部に記憶させておくことができる。そのため、記録メディアの記録容量情報が記憶部に記憶されている場合、ホストPCからの第1のコマンドに対して、記憶部に記憶されている記録容量情報を用いて応答することができる。 According to said structure, the recording capacity information of the acquired recording medium can be memorize | stored in a memory | storage part. Therefore, when the recording capacity information of the recording medium is stored in the storage unit, it is possible to respond to the first command from the host PC using the recording capacity information stored in the storage unit.
これによって、例えば、光ディスクからOSを起動させる場合、所定時間内にホストPCからの第1のコマンドに応答することができるため、ホストPCにおいてダミープログラムを処理させる間に、光ディスクの記録容量情報を取得する処理をスキップすることができる。すなわち、OSのロードに要する時間を短縮することができる効果を奏する。 Thus, for example, when the OS is started from the optical disk, it is possible to respond to the first command from the host PC within a predetermined time, so that the recording capacity information of the optical disk is obtained while the host PC is processing the dummy program. The acquisition process can be skipped. That is, there is an effect that the time required for loading the OS can be shortened.
本発明に係るプログラム供給装置では、さらに、上記プログラム出力手段において出力される所定のプログラムは、上記光学ドライブの診断プログラムであることが好ましい。 In the program supply apparatus according to the present invention, it is preferable that the predetermined program output from the program output means is a diagnostic program for the optical drive.
上記の構成によれば、ホストPCに対して、光ディスクドライブの自己診断処理を実行させることができる効果を奏する。 According to said structure, there exists an effect which can perform the self-diagnosis process of an optical disk drive with respect to host PC.
本発明に係るプログラム供給装置では、さらに、上記プログラム出力手段において出力する所定のプログラムを切り替えるためのスイッチをさらに備えていることが好ましい。 The program supply apparatus according to the present invention preferably further includes a switch for switching a predetermined program output by the program output means.
上記の構成によれば、スイッチに応じてプログラム出力手段から出力する所定のプログラムを適宜変更することができる。これによって、ブート時においてホストPCに対して様々な種類のプログラムに応じた処理を実行させることができる効果を奏する。 According to said structure, the predetermined program output from a program output means can be suitably changed according to a switch. As a result, the host PC can be made to execute processing according to various types of programs at the time of booting.
本発明に係るプログラム供給装置を備えた光学ドライブも本発明の範疇に含まれる。 An optical drive provided with the program supply device according to the present invention is also included in the scope of the present invention.
本発明に係る光学ドライブでは、さらに、搭載されている記録メディアが取り出されたことを検知すると共に、記録メディアが取り出されたことを検知した時点で、記録メディアの記録容量情報を記憶する記憶部から、取り出された記録メディアの記録容量情報を消去する検知手段をさらに備えていることが好ましい。 In the optical drive according to the present invention, the storage unit that detects that the mounted recording medium is removed and stores the recording capacity information of the recording medium at the time that the recording medium is detected is detected. From the above, it is preferable to further include detection means for erasing the recording capacity information of the removed recording medium.
上記の構成によれば、光学ドライブに搭載されている記録メディアが取り出された場合には、取り出された記録メディアの記録容量情報を消去する。 According to the above configuration, when the recording medium mounted on the optical drive is removed, the recording capacity information of the removed recording medium is erased.
これによって、誤った記録メディアの記録容量情報をホストPCに対して送信してしまうことを防止することができる効果を奏する。 As a result, it is possible to prevent the recording capacity information of the wrong recording medium from being transmitted to the host PC.
本発明に係るプログラム供給装置におけるプログラム供給方法は、上記課題を解決するために、
光学ドライブからオペレーティングシステムをロードするホストコンピュータに対して所定のプログラムを供給するプログラム供給装置におけるプログラム供給方法であって、記録メディアを搭載するデバイスの持つ固有情報を問い合わせる第1のコマンドを上記ホストコンピュータから受信したとき、当該記録メディアの記録容量を所定のダミー値とした仮想固有情報を出力する固有情報出力ステップと、上記仮想固有情報を持つデバイスの搭載する仮想記録メディアにおいてオペレーティングシステムをロードするための情報を格納するセクタを読み出す第2のコマンドを上記ホストコンピュータから受信したとき、所定のダミープログラムを出力するプログラム出力ステップと、を含むことを特徴としている。
In order to solve the above problems, a program supply method in a program supply apparatus according to the present invention is as follows.
A program supply method in a program supply apparatus for supplying a predetermined program to a host computer that loads an operating system from an optical drive, wherein a first command for inquiring specific information of a device on which a recording medium is installed A unique information output step of outputting virtual unique information with the recording capacity of the recording medium as a predetermined dummy value when loaded from the recording medium, and for loading an operating system on the virtual recording medium mounted on the device having the virtual unique information And a program output step of outputting a predetermined dummy program when a second command for reading the sector storing the information is received from the host computer.
上記の構成によれば、本発明に係るプログラム供給装置と同様の作用効果を奏する。 According to said structure, there exists an effect similar to the program supply apparatus which concerns on this invention.
また、本発明に係るプログラム供給装置を動作させるためのプログラムであって、コンピュータを上記の各手段として駆動させることを特徴とするプログラムおよび該プログラムを記録したコンピュータ読み取り可能な記録媒体も本発明の範疇に含まれる。 Further, a program for operating the program supply apparatus according to the present invention, which is characterized in that the computer is driven as each of the above-described means and a computer-readable recording medium on which the program is recorded. Included in the category.
本発明に係るプログラム供給装置は、以上のように、オペレーティングシステムをロードするためのプログラムを有する記録メディアを搭載するデバイスの持つ固有情報を問い合わせる第1のコマンドに対して、記録メディアの記録容量を所定のダミー値とした仮想固有情報を出力する固有情報出力手段と、オペレーティングシステムをロードするためのプログラムを格納するセクタを読み出す第2のコマンドに対して、所定のダミープログラムを供給する。 As described above, the program supply apparatus according to the present invention sets the recording capacity of the recording medium in response to the first command for inquiring the unique information of the device equipped with the recording medium having the program for loading the operating system. A predetermined dummy program is supplied to specific information output means for outputting virtual specific information having a predetermined dummy value and a second command for reading a sector storing a program for loading an operating system.
これによって、本発明に係るプログラム供給装置は、デバイスを初期化する際に生じる光学ドライブの認識エラーを回避しつつ、ホストPCに対して所定のプログラムに基づいた処理を実行させることができる効果を奏する。 Thus, the program supply apparatus according to the present invention can cause the host PC to execute processing based on a predetermined program while avoiding an optical drive recognition error that occurs when the device is initialized. Play.
本発明に係るプログラム供給装置を備えた光学ドライブの一実施形態について、図1〜3を参照しつつ以下に説明する。 An embodiment of an optical drive provided with a program supply device according to the present invention will be described below with reference to FIGS.
(光学ドライブ装置100の構成)
本発明に係るプログラム供給装置を備えた光学ドライブの構成について、図1を参照しつつ以下に説明する。図1は、ブート制御部120(プログラム供給装置)を備えた光学ドライブ装置100の要部構成を示すブロック図である。
(Configuration of Optical Drive Device 100)
The configuration of the optical drive provided with the program supply device according to the present invention will be described below with reference to FIG. FIG. 1 is a block diagram illustrating a main configuration of an
光学ドライブ装置100は、図1に示すように、インターフェース110、ブート制御部120、ディスク取出検知部130、ATA/ATAPI変換部140、および光学ドライブ部150を備えている。これらの部材について、以下に説明する。
As shown in FIG. 1, the
なお、図1に示すホストコンピュータ200(以下、ホストPC200と称する)および光学ドライブ150に搭載されている光ディスク151は、光学ドライブ装置100を構成する部材ではないが、本発明の理解を容易にするために、便宜上図1に示している。
The
(インターフェース110)
インターフェース110は、ホストPC200と光学ドライブ装置100との間で情報の送受信を行うものである。インターフェース110から伸びるバス(データライン)は、ブート制御部120を介して、またはブート制御部120からATA/ATAPI変換部140を介して、光学ドライブ部150に接続されている。
(Interface 110)
The
インターフェース110の規格としては、例えば、ATA(AT attachment)を挙げることができる。なお、ATAは、転送方式がシリアルのATAであるSATA(Serial AT attachment)を用いてもよいし、転送方式がパラレルのATAを用いてもよい。
Examples of the standard of the
(ブート制御部120)
ブート制御部120は、OS起動前において、すなわちブート時におけるホストPC200からの光学ドライブ部150におけるデータの読み出しを仲立ちする。ブート制御部120は、図1に示すように、制御部121、応答部122、プログラム出力部123、プログラム格納部124、メディア情報取得部125、通知部126、記憶部127およびスイッチ128を備えている。ブート制御部120に備えられているこれらの各部材について、以下に説明する。
(Boot control unit 120)
The
(制御部121)
制御部121は、ブート制御部120における処理全般を制御する。すなわち、OS起動前においてホストPC200からインターフェース110を介して光学ドライブ装置100に入力される各種コマンドは、まず制御部121に入力されることになる。制御部121では、入力された各種コマンドに応じて、それぞれの部材に処理を割り振る。
(Control unit 121)
The
(応答部122)
応答部122は、ホストPC200からのハードディスクの有する固有情報を問い合わせるコマンド(以下、IDENTIFY DEVICEコマンドと称する)を受けたとき、搭載されている記録メディアの記録容量情報の値に記憶部127に記憶されている値を用いて応答する。
(Response unit 122)
When the
応答部122は、ホストPC200からのIDENTIFY DEVICEコマンドに対して、記憶部127に光ディスク151の記録容量情報の真値が記録されている場合には真値を用いて応答し、記録されていない場合には、予め記録されているダミー値を用いて応答する。
In response to the IDENTIFY DEVICE command from the
(プログラム出力部123、プログラム格納部124)
プログラム出力部123は、応答部122から出力される値に従って認識される記録メディアに対するホストPC200からのプログラム読み出し要求に対して、プログラム格納部124に格納されているプログラムを出力する。
(
The
プログラム格納部124は、プログラム出力部123において出力するプログラムを格納しているメモリである。プログラム格納部124に複数のプログラムが格納されている場合、出力されるプログラムはブート制御部120に備えられているスイッチ128に応じて決定される。
The
(メディア情報取得部125)
メディア情報取得部125は、光学ドライブ部150に搭載されている光ディスク151から、光ディスク151の記録容量の値を含むメディア情報を取得する。
(Media information acquisition unit 125)
The media
(通知部126)
通知部126は、メディア情報取得部125におけるメディア情報の読み出し処理が完了したことを示す完了情報を、インターフェース110を介してホストPC200に出力する。
(Notification unit 126)
The
(記憶部127)
記憶部127は、光学ドライブ部150に搭載されている光ディスク151の記録容量の値を記憶するメモリである。記憶部127は、2つの記憶領域に仮想的に区切られており、一方の記憶領域には、ダミー値を記憶しており、もう一方の記憶領域には、真値を記憶するように構成されていればよい。このとき、ダミー値の記憶されている記憶領域は、データの書き換えが不可能に設定されており、真値の記憶されている記憶領域は、データの書き換えが可能に設定されていることが好ましい。
(Storage unit 127)
The
なお、本実施形態では、1つの記憶部にダミー値および真値を記憶する場合を例に挙げて説明しているが、これに限定されるものではなく、ダミー値を記憶する記憶部と真値を記憶する記憶部とをそれぞれ備えていてもよい。この場合、真値を記憶する記憶部は、揮発性メモリであってもよい。 In this embodiment, the case where the dummy value and the true value are stored in one storage unit is described as an example. However, the present embodiment is not limited to this, and the storage unit storing the dummy value and the true value are not limited thereto. And a storage unit for storing values. In this case, the storage unit that stores the true value may be a volatile memory.
(スイッチ128)
スイッチ128は、プログラム出力部123から出力するプログラムを決定するためのものである。すなわち、スイッチ128を適宜切り替えることにより、プログラム格納部124から読み出すプログラムは適宜変更される。スイッチ128は、ホストPC200において実行するモードを切り替えるスイッチと言い換えることもできる。
(Switch 128)
The
なお、図1ではスイッチ128がブート制御部120に備えられている場合を例示しているが、これに限定されるものではなく、光学ドライブ装置100に備えられていてもよい。
Although FIG. 1 illustrates the case where the
(ディスク取出検知部130)
ディスク取出検知部130は、光学ドライブ部150に搭載された光ディスクが取り出されたことを検知する。光ディスクの取り出しは、光学ドライブ部150に備えられた光ディスクを取り出すスイッチ(いわゆる、イジェクトボタン)の押下により検知される。
(Disc removal detection unit 130)
The disk
(ATA/ATAPI変換部140)
ATA/ATAPI変換部140は、ホストPC200から出力され、インターフェース110およびブート制御部120を介して入力されるATAコマンドをATAPIコマンドに変換する。
(ATA / ATAPI converter 140)
The ATA /
このとき、ATAコマンドにより指定される1セクタ当たりの容量と、ATAPIコマンドにより指定される1セクタ当たりの容量とは異なるため、ATA/ATAPI変換部140では、ATAPIコマンドに基づいて指定される領域から読み出した情報から、ATAコマンドにより指定される領域に対応する領域に記録されている情報を抽出する。
At this time, since the capacity per sector specified by the ATA command is different from the capacity per sector specified by the ATAPI command, the ATA /
(光学ドライブ部150)
光学ドライブ部150は、搭載されている光ディスク151からのデータの読み出しおよび光ディスク151へのデータの書き込みを実行する。
(Optical drive unit 150)
The
(光学ドライブ装置100におけるプログラム実行処理)
次に、光学ドライブ装置100におけるプログラム実行処理を図2および3を参照しつつ以下に説明する。本実施形態では、光学ドライブ装置100におけるプログラム実行処理の一例として、光ディスク151からのOSの起動処理を例に挙げて説明する。したがえって、図2および3は、光学ドライブ装置100におけるOS起動処理動作を示すフローチャートである。
(Program execution processing in the optical drive device 100)
Next, program execution processing in the
ここで、光学ドライブ装置100における光ディスク151からのOS起動処理は、大別して、ダミー値を用いた固有情報の送信処理、真値の取得処理、および真値を用いた固有情報の送信処理の3つの処理に分類することができる。本実施形態では、OS起動処理における3つの処理それぞれについて、以下に詳細に説明する。
Here, the OS activation process from the
(ダミー値を用いた固有情報の送信処理)
まず、ダミー値を用いた固有情報の送信処理について説明する。ダミー値を用いた固有情報の送信処理は、ホストPC200におけるBIOS(basic input/output system)の実行に基づいてなされる処理である。
(Transmission processing of unique information using dummy values)
First, unique information transmission processing using dummy values will be described. The unique information transmission process using the dummy value is a process performed based on execution of a basic input / output system (BIOS) in the
ホストPC200に備えられた電源(図示しない)をオンにすると、ホストPC200に電力が供給されると共に(ステップS1)、光学ドライブ装置100に対しても電力が供給される(ステップS2)。すなわち、ホストPC200および光学ドライブ装置100の双方の電源がオンとなる。
When a power source (not shown) provided in the
電源がオンになると共に、ホストPC200は自装置に接続されているデバイスを初期化する。このとき、ホストPC200は、インターフェース110を介して、自装置に接続されているデバイスの持つ固有情報を問い合わせるコマンドを送信する(ステップS3)。なお、本実施形態では、光学ドライブ装置100をATAを介してホストPC200に接続しているため、ここで送信されるコマンドは、ATAコマンドにおける「IDENTIFY DEVICE」コマンドである。
As the power is turned on, the
ホストPC200からIDENTIFY DEVICEコマンドを受信した光学ドライブ装置100における制御部121は、応答部122に受信したIDENTIFY DEVICEコマンドに対する応答を指示する。指示を受けた応答部122は、記憶部127に光ディスク151の記録容量情報の真値が記憶されているか否かを判定する(ステップS4)。記憶部127に光ディスク151の記録容量情報の真値が記憶されている場合(ステップS4においてYes)、応答部122は、記憶部127から真値を読み出し、搭載されている記録メディアの記録容量情報として読み出した真値を用いて応答する(図3におけるステップS17)。
The
一方で、記憶部127に光ディスク151の記録容量情報の真値が記憶されていない場合(ステップS4においてNo)、応答部122は、搭載されている記録メディアの記録容量情報として記憶部127に記憶されている所定のダミー値を用いて応答する(ステップS5)。応答部122がダミー値を用いてIDENTIFY DEVICEコマンドに対して応答すると、制御部121は、メディア情報取得部125に対して光ディスク151から記録容量情報を含むメディア情報を取得するように指示する。メディア情報取得部125は、制御部121からの指示を受けて、光ディスク151からメディア情報の取得を開始する(ステップS6)。より具体的には、メディア情報取得部125は、光学ドライブ部150に対して搭載されている光ディスク151のメディア情報の読み出しを指示し、指示を受けた光学ドライブ部150が光ディスク151からメディア情報を読み出す。
On the other hand, when the true value of the recording capacity information of the
ダミー値を受信したホストPC200は、光学ドライブ装置100のことを、ダミー値に従った記録容量を有する記録メディアを搭載しているデバイスであると認識する(ステップS7)。例えば、光学ドライブ装置100は、IDENTIFY DEVICEコマンドに対して、自身が、10GBの記録容量を有するハードディスクドライブであると応答した場合、ホストPC200は、光学ドライブ装置100に搭載されている記録メディアが10GBであり、かつ、光学ドライブ装置100がハードディスクであると認識することになる。続いて、ホストPC200は、認識したダミーデバイスからMBRを読み出すために、光学ドライブ装置100に対してMBRの読出コマンドを送信する(ステップS8)。
The
ここで、MBRとは、通常、ハードディスクドライブにおける記録メディアの0〜512バイトまでの領域に記録されている情報である。したがって、MBRを読み出すための読出コマンドは、記録メディアの0〜512バイトまでの領域に記録されている情報を読み出すためのコマンドと同義である。 Here, the MBR is information recorded in an area of 0 to 512 bytes of a recording medium in a hard disk drive. Therefore, the read command for reading the MBR is synonymous with the command for reading the information recorded in the area from 0 to 512 bytes of the recording medium.
MBRを読み出す読出コマンドを受信した光学ドライブ装置100における制御部121は、プログラム出力部123に対して所定のダミープログラムをホストPC200に対して送信するように指示する。制御部121からの指示を受けたプログラム出力部123は、プログラム格納部124からダミープログラムを読み出し(ステップS9)、読み出したダミープログラムをインターフェース110を介してホストPC200に送信する(ステップS10)。
The
ここで、光ディスク151からのOS起動処理においてプログラム格納部124から読み出されるダミープログラムは、光学ドライブ装置100に対して、一定時間毎に、光ディスク151のメディア情報の真値の取得処理が完了したか否かを問い合わせる問合せコマンドを送信するプログラムである。言い換えれば、ステップS6におけるメディア情報の取得処理の完了を問い合わせるようにホストPC200を制御するプログラムである。
Here, the dummy program read from the
以上説明したステップS1からS10までが、ホストPC200におけるBIOSの実行に基づいてなされる処理であり、ダミー値を用いた固有情報の送信処理に分類される。すなわち、ダミー値を用いた固有情報の送信処理は、主として、デバイスの認識エラーを回避するために、ホストPC200に対してダミーデバイスを認識させる処理である。
Steps S1 to S10 described above are processes performed based on the execution of the BIOS in the
(真値の取得処理)
次に、真値の取得処理について説明する。光学ドライブ装置100から送信された問合せプログラム(ダミープログラム)を受信したホストPC200は、受信した問合せプログラムを実行し、実行したプログラムに従って、一定時間毎に光学ドライブ装置100に対してメディア情報の取得処理の完了を問い合わせる問合せコマンドを送信する(ステップS11)。
(True value acquisition process)
Next, true value acquisition processing will be described. The
一方で、光学ドライブ装置100は、メディア情報取得部125における光ディスク151のメディア情報の取得処理が完了したか否かを判定する(ステップS12)。メディア情報取得部125における光ディスク151のメディア情報の取得処理が完了していない場合(ステップS12においてNo)、メディア情報取得部125は、光ディスク151のメディア情報の取得処理を継続する。この場合、ホストPC200からの問合せコマンドに対しては、「False」を返す。ホストPC200は、光学ドライブ200からの応答がFalseである場合、一定時間経過後に再度問合せコマンドを送信する。
On the other hand, the
メディア情報取得部125における光ディスク151のメディア情報の取得処理が完了した場合(ステップS12においてYes)、通知部126は、ホストPC200からの問合せコマンドに対して、メディア情報の取得処理が完了したことを表す完了情報(すなわち、「True」)を送信する(ステップS13)。なお、このとき、メディア情報取得部125は、光ディスク151のメディア情報に含まれる記録容量情報の真値を記憶部127に記憶する(ステップS14)。
When the media information acquisition process of the
以上説明したステップS11からS14までが、ダミープログラムの実行に基づいてなされる真値の取得処理に分類される。すなわち、真値の取得処理は、主として、光ディスク151のメディア情報の読み出し処理が完了するまでの間、ホストPC200に対して所定の処理を実行させておく処理である。
Steps S11 to S14 described above are classified into true value acquisition processing performed based on execution of the dummy program. That is, the true value acquisition process is a process for causing the
(真値を用いた固有情報の送信処理)
次に、真値を用いた固有情報の送信処理について説明する。現時点において光学ドライブ装置100(ホストPC200はダミーデバイスとして認識している)の記録メディアは、ダミー値に従ったものであるため、これを真値に従って認識される記録メディアに変更しなければならない。
(Transmission processing of unique information using true value)
Next, unique information transmission processing using a true value will be described. Since the recording medium of the optical drive device 100 (recognized as a dummy device by the host PC 200) currently complies with the dummy value, it must be changed to a recording medium recognized according to the true value.
ホストPC200は、光学ドライブ装置100からの完了情報を受信すると、リセット処理を実行する(ステップS15)。続いて、ホストPC200は、ステップS3と同様に、ホストPC200に接続されている光学ドライブ装置100を初期化するために、インターフェース110を介して、IDENTIFY DEVICEコマンドを送信する(ステップS16)。
Upon receiving the completion information from the
ホストPC200からIDENTIFY DEVICEコマンドを受信した光学ドライブ装置100における制御部121は、応答部122にIDENTIFY DEVICEコマンドに対する応答を指示する。応答部122は、搭載されている記録メディアの記録容量情報にメディア情報取得部125において取得した記録容量情報の真値(記憶部127に記憶されている真値)を用いて応答する(ステップS17)。なお、ステップS4において既に記憶部127に記録容量情報の真値が記憶されている場合には(ステップS4においてYes)、ステップS17における処理を実行する。
The
光ディスク151の記録容量情報の真値を受信したホストPC200は、受信した真値に従って記録メディアを認識する(ステップS18)。続いて、ホストPC200は、記録メディアからMBRを読み出すために、光学ドライブ装置100に対してMBRの読出コマンドを送信する(ステップS19)。
Receiving the true value of the recording capacity information of the
このとき、光学ドライブ装置100は、自身の記録容量は真値を用いて応答するが、自身がハードディスクドライブであるとしてホストPC200に認識させる。すなわち、ホストPC200からはATAコマンドにより指示が送信され、光学ドライブ装置100は、受信したATAコマンドをATA/ATAPI変換部140においてATAPIコマンドに変換して処理することになる。また、光学ドライブ装置100は、光ディスク151の記録容量情報の真値を用いて応答しているため、ステップS9およびS10における処理のように、ダミープログラムを出力しない。すなわち、ホストPC200から送信されるMBRの読出しコマンドは、インターフェース110およびブート制御部120を経由して、ATA/ATAPI変換部140に入力される。
At this time, the
なお、光学ドライブ装置100は。ホストPC200においてはハードディスクドライブとして認識されているが、本実施形態では、一貫して光学ドライブ装置100と表示する。
The
ATA/ATAPI変換部140は、ATAコマンドとして入力されたMBRの読み出しコマンドを、光ディスク151においてMBRに相当するセクタ(すなわち、ハードディスクドライブにおける記録メディアの0〜512バイトまでの領域に相当するセクタ;以下、ブートセクタとも称する)から情報を読み出すというATAPIコマンドに変換する。ATA/ATAPI変換部140は、ATAコマンドをATAPIコマンドに変換した後、変換したATAPIコマンドに基づいて、光学ドライブ150に対して光学ディスク151からの情報の読み出しを指示する。
The ATA /
ATA/ATAPI変換部140からの指示を受けた光学ドライブ部150は、光ディスク151からブートセクタを読み出す(ステップS20)。読み出されたブートセクタに収められている情報(すなわち、ブートセクタ上の情報)は、ブート制御部120およびインターフェース110を介して、ホストPC200に送信される(ステップS21)。このとき、ブートセクタ上の情報は、ブート制御部120を素通りして、インターフェース110からホストPC200へと送信される。
Upon receiving the instruction from the ATA /
ブートセクタを読み込んだホストPC200は、ブートセクタ上の情報の1つであるブートストラップローダーを実行する(ステップS22)。そして、ホストPC200は、実行したブートストラップローダーに基づいて、光ディスク151からOSをロードする(ステップS23)。以下、ホストPC200は、従来と同様のアルゴリズムによりOSを起動するため、本実施形態ではOS起動処理におけるこれ以降の説明を省略する。
The
以上説明したステップS15からS23までが光学ドライブの再設定処理に分類される。なお、光学ドライブの再設定処理も、ダミー値の送信処理と同様に、ホストPC200におけるBIOSの実行に基づいてなされる処理である。
Steps S15 to S23 described above are classified as optical drive resetting processes. The optical drive resetting process is also a process performed based on the execution of the BIOS in the
なお、本明細書等における「ブートセクタ」とは、記録メディアにおいてブートプログラムなどのコードを格納する部分を指すものであり、PC/AT互換機におけるブートセクタに限定されるものではない、また、記録メディアは、磁気ディスクに限定されるものではなく、光学ディスクである場合も含む。 The “boot sector” in this specification and the like refers to a part that stores a code such as a boot program in a recording medium, and is not limited to the boot sector in a PC / AT compatible machine. The recording medium is not limited to a magnetic disk, but includes a case where it is an optical disk.
(光学ドライブ装置100の利点)
以上説明したように、光学ドライブ装置100に備えられたブート制御部120は、OSをロードするためのプログラムを有する記録メディアを搭載するデバイスの持つ固有情報を問い合わせるIDENTIFY DEVICEコマンドに対して、所定のダミー値を用いて応答し、応答の結果ホストPC200において認識されるダミーデバイス(ダミー値により認識される仮想デバイス)に搭載されている記録メディアからのOSをロードするためのプログラムを格納するブートセクタの読み出し要求に対して、所定のダミープログラムを供給する。
(Advantages of the optical drive device 100)
As described above, the
光学ドライブ装置100では、ホストPC200から送信されるIDENTIFY DEVICEコマンドに対する応答を所定の時間内に返すことができる。また、光学ドライブ装置100では、応答の結果ホストPC200において認識される仮想デバイスに搭載されている記録メディアからのブートセクタの読み出し要求に対して、所定のダミープログラムを供給するため、ダミーデバイスであっても、プログラムの読み出しの際に問題が生じることを避けることができる。また、出力されるダミープログラムに応じた処理をホストPC200に実行させることができる。
In the
これによって、光学ドライブ装置100は、ホストPC200に接続されているデバイスを初期化する際に生じる光学ドライブの認識エラーを回避しつつ、ホストPC200に対して所定のプログラムに基づいた処理を実行させることができる。
Thus, the
また、ホストPC200は、光ディスク151の記録容量情報の真値を取得したことを示す通知の受信をトリガとして、ホストPC200において認識されているダミーデバイスに関する情報をリセットする。これによって、ホストPC200では、接続されているデバイスの初期化が再度実行されることになる。
Further, the
このとき、ブート制御部120は、ホストPC200からの2度目のIDENTIFY DEVICEコマンドに対して、光ディスク151の記録容量情報の真値を用いて応答することができる。すなわち、ホストPC200に対して、光学ドライブ装置100に搭載されている光ディスク151の正しい記録容量を認識させることができる。
At this time, the
これによって、ブートセクタ上の情報を書き換えるなどの特別な操作を必要とすることなく、光ディスク151からOSを起動させることができる。そのため、コンピュータの操作に不慣れなユーザーであっても、容易に光ディスク151からOSを起動させることができる。また、光ディスクドライブ装置100からのOSを起動に際して、ホストPC200を改造する必要もない。
As a result, the OS can be booted from the
また、光学ドライブ装置100に備えられたブート制御部120の記憶部127には、取得した光ディスクの記録容量情報の真値を記憶することができる。
In addition, the
これによって、記憶部127に真値が記憶されている光ディスクであれば、ダミー値を用いることなく、記憶部127に記憶されている真値を用いて、ホストPC200からのIDENTIFY DEVICEコマンドに対して応答することができる。すなわち、記憶部127に真値が記憶されている場合には、OSの起動に要する時間を短縮することができる。
Thus, if the optical value has a true value stored in the
(記憶部127における記録容量情報の消去)
記憶部127において記憶されている光ディスク151の記録容量情報の真値は、光ディスク151が光学ドライブ装置100から取り出された際に消去されることが好ましい。記憶部127に記憶されている記録容量情報の真値の消去処理について、以下に説明する。
(Erase of recording capacity information in storage unit 127)
The true value of the recording capacity information of the
光学ドライブ装置100に備えられた光ディスクの取り出しボタンが押下されると、ディスク取出検知部130は、光ディスク151が光学ドライブ装置100から取り出されたと判定する。ディスク取出検知部130は、光ディスク151が取り出されたことを検知すると、記憶部127に記憶されている光ディスク151の記録容量情報の値を消去する。
When an optical disk eject button provided in the
このように、光ディスクの取り出しを検知する毎に、記憶部127に記憶されている記録容量情報の値を消去することによって、光ディスク151とは異なる新たな光ディスクを搭載している場合に、ホストPC200から送信されるIDENTIFY DEVICEコマンドに対して、光ディスク151の記録容量情報の値を用いて応答してしまうことを防止することができる。
As described above, each time the removal of the optical disk is detected, the value of the recording capacity information stored in the
なお、光ディスクの取り出しが実行されない場合には、光ディスクの記録容量情報の値は、記憶部127に記憶され続ける。その場合には、図2および3を参照して説明したように、ダミー値を用いた応答処理をスキップすることができるため、OSの起動処理に要する時間を短縮することができる。
If the removal of the optical disk is not executed, the value of the recording capacity information of the optical disk continues to be stored in the
また、光ディスクの取り出しの検知は、光ディスクの取り出しボタンの押下による検知に限定されるものではなく、他の手法により検知するようにしてもよい。 The detection of the removal of the optical disk is not limited to the detection by pressing the eject button of the optical disk, but may be detected by other methods.
(光ディスクが搭載されていない場合の処理)
光学ドライブ装置100に光ディスクが搭載されていない場合、当然のことながら、メディア情報取得部125は光ディスクのメディア情報を取得することができない。この場合、ステップS11における処理においてループが発生し、ホストPC200からの問合せコマンドに対して「True」を応答することができない。
(Processing when no optical disk is installed)
When no optical disk is mounted on the
したがって、ホストPC200は、一定時間経ってもメディア情報取得部125におけるメディア情報の取得が完了しない場合は、光学ドライブ装置100に光ディスクが搭載されていないと判定するようにすることが好ましい。すなわち、メディア情報取得に関する問合せコマンドに対する応答において「False」を返した数が所定数以上となった場合、ホストPC200は、光学ドライブ装置100に光ディスクが搭載されていないと判断する。
Therefore, it is preferable that the
この場合、ホストPC200は、ユーザーに対して光学ドライブ装置100に光ディスクが搭載されていないことを通知すると共に、光ディスクの搭載を要求する。光ディスクが搭載されていない旨の通知および光ディスクの搭載の要求は、例えばホストPC200に備えられた表示モニターに文字または画像により表示するようにしてもよいし、ホストPC200に備えられたスピーカーから音声により通知するようにしてもよい。また、所定のLEDなどを点灯(または点滅)させるなどしてユーザーに通知するようにしてもよい。
In this case, the
また、光学ドライブ装置100は、電源がオンになった時点で、光ディスクが搭載されているか否かを判定するようにしてもよい。そして、光学ドライブ装置100において光ディスクが搭載されている状態であると判定された場合に、ホストPC200からのIDENTIFY DEVICEコマンドに対して応答するようにしてもよい。
Further, the
なお、電源がオンになった時点で、搭載されている光ディスクにOSプログラムが格納されているか否かを判定し、格納されていない場合には、その旨ユーザーに対して通知するようにしてもよい。 When the power is turned on, it is determined whether or not the OS program is stored in the mounted optical disk. If the OS program is not stored, the user is notified accordingly. Good.
(ホストPC200において実行させるプログラムの変形例)
ホストPC200に実行させることができるダミープログラムは、上述した動作処理において例示した問合せプログラムに限定されるものではない。
(Modified example of program executed in host PC 200)
The dummy program that can be executed by the
ホストPC200に実行させることができるダミープログラムの他の例としては、光ディスクドライブ装置100の診断プログラムを挙げることができる。
Another example of the dummy program that can be executed by the
この場合、図2におけるステップS9およびS10における処理の代わりに、プログラム出力部123は、プログラム格納部124から診断プログラムを読み出し、読み出した診断プログラムをホストPC200に対して送信する。
In this case, instead of the processing in steps S9 and S10 in FIG. 2, the
そして、診断プログラムを受信したホストPC200は、図2におけるステップS9およびS10における処理の代わりに、受信した診断プログラムを実行し、光学ドライブ装置100の診断を開始する。この場合にはOSの起動処理は実行せず、光学ドライブ装置100の自己診断処理のみを実行することになる。
Then, the
(ホストPC200において実行させるプログラムの決定)
上述したように、プログラム格納部124に複数のプログラムが格納されている場合、プログラム格納部124からいずれのプログラムを読み出すのかは、ブート制御部120に備えられたスイッチ128により決定する。
(Determination of program to be executed in host PC 200)
As described above, when a plurality of programs are stored in the
すなわち、スイッチ128がOS起動モード側にセットされている場合には、図2におけるステップS9において説明したように、プログラム出力部123は、ダミープログラムとしてプログラム格納部124から問合せプログラムを読み出し、ホストPC200に対して送信する。一方、スイッチ128が自己診断モード側にセットされている場合には、図2におけるステップS9およびS10の代わりに、プログラム出力部123は、ダミープログラムとしてプログラム格納部124から診断プロフラムを読み出し、ホストPC200に対して送信する。
That is, when the
なお、スイッチ128は、ユーザーにより適宜切り替えることができるようなものであれば、どのような形状のものであってもよい。例えば、ボタンによって各モードが切り替わるようなものであってもよい。
The
また、上記の説明では、スイッチ128がOS起動モードと自己診断モードとの2つのモードを切り替え可能な場合について説明したが、3つ以上のモードに切り替えることが可能なスイッチであってもよい。
In the above description, the case where the
(付記事項)
本実施形態では、ブート制御部120が光学ドライブ装置100に備えられている場合を例に挙げて説明したが、もちろんこれに限定されるものではない。ブート制御部120は、光学ドライブ装置100とは独立した装置であってもよい。
(Additional notes)
In the present embodiment, the case where the
この場合、プログラム供給装置は、ホストPCと光学ドライブ装置とを仲立ちする位置に配置される。したがって、上述したダミー値の送信処理では、ホストPCとプログラム供給装置との間でのみ情報の送受信が行われる。そして、上述した真値の取得処理では、プログラム供給装置と光学ドライブ装置との間でのみ情報の送受信が行われる。最後に、上述した光学ドライブ装置の再設定処理では、ホストPCと光学ドライブ装置との間でのみ情報の送受信が行われることになる。 In this case, the program supply device is arranged at a position where the host PC and the optical drive device are intermediated. Therefore, in the dummy value transmission process described above, information is transmitted and received only between the host PC and the program supply device. In the true value acquisition process described above, information is transmitted and received only between the program supply device and the optical drive device. Finally, in the above-described optical drive device resetting process, information is transmitted and received only between the host PC and the optical drive device.
(プログラムおよび記録媒体)
最後に、ブート制御部120に含まれる制御部121、応答部122、プログラム出力部123、メディア情報取得部125、通知部126は、ハードウェアロジックによって構成すればよい。または、次のように、MPUなどのCPU(Central Processing Unit)を用いてソフトウェアによって実現してもよい。
(Program and recording medium)
Finally, the
すなわち、ブート制御部120に含まれる制御部121、応答部122、プログラム出力部123、メディア情報取得部125、通知部126は、各機能を実現するプログラムの命令を実行するMPUなどのCPU、このプログラムを格納したROM(Read Only Memory)、上記プログラムを実行可能な形式に展開するRAM(Random Access Memory)、および、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)を備えている。
That is, the
そして、本発明の目的は、上記プログラムが制御部121、応答部122、プログラム出力部123、メディア情報取得部125、通知部126のプログラムメモリに固定的に担持されている場合に限らず、上記プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、または、ソースプログラム)を記録した記録媒体をブート制御部120に供給し、ブート制御部120が上記記録媒体に記録されている上記プログラムコードを読み出して実行することによっても、達成可能である。
The object of the present invention is not limited to the case where the program is fixedly carried in the program memory of the
上記記録媒体は、特定の構造または種類のものに限定されない。すなわちこの記録媒体は、たとえば、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などとすることができる。 The recording medium is not limited to a specific structure or type. That is, the recording medium includes, for example, a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a floppy (registered trademark) disk / hard disk, and an optical disk such as a CD-ROM / MO / MD / DVD / CD-R. System, a card system such as an IC card (including a memory card) / optical card, or a semiconductor memory system such as a mask ROM / EPROM / EEPROM / flash ROM.
また、ブート制御部120(または光学ドライブ装置100)を通信ネットワークと接続可能に構成しても、本発明の目的を達成できる。この場合、上記のプログラムコードを、通信ネットワークを介してブート制御部120に供給する。この通信ネットワークはブート制御部120にプログラムコードを供給できるものであればよく、特定の種類または形態に限定されない。たとえばインターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(Virtual Private Network)、電話回線網、移動体通信網、衛星通信網等であればよい。
Further, even if the boot control unit 120 (or the optical drive device 100) is configured to be connectable to a communication network, the object of the present invention can be achieved. In this case, the program code is supplied to the
この通信ネットワークを構成する伝送媒体も、プログラムコードを伝送可能な任意の媒体であればよく、特定の構成または種類のものに限定されない。たとえばIEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL(Asymmetric Digital Subscriber Line)回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。なお本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。 The transmission medium constituting the communication network may be any medium that can transmit the program code, and is not limited to a specific configuration or type. For example, even with wired lines such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber Line) line, infrared rays such as IrDA and remote control, Bluetooth (registered trademark), 802.11 wireless, HDR, mobile phone It can also be used by radio such as a telephone network, a satellite line, and a terrestrial digital network. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.
本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.
本発明に係るブート制御部を備えた光学ドライブ装置は、CDドライブ、DVDドライブおよびBDドライブなどの光学ドライブ全般として好適に利用することができる。 The optical drive device provided with the boot control unit according to the present invention can be suitably used as a general optical drive such as a CD drive, a DVD drive, and a BD drive.
100 光学ドライブ装置(光学ドライブ)
110 インターフェース
120 ブート制御部(プログラム供給装置)
121 制御部
122 応答部(固有情報出力手段)
123 プログラム出力部
124 プログラム格納部
125 メディア情報取得部(取得手段)
126 通知部
127 記憶部
128 スイッチ
130 ディスク取出検知部(検知手段)
140 ATA/ATAPI変換部
150 光学ドライブ部
151 光ディスク
200 ホストコンピュータ
100 Optical drive device (optical drive)
110
121
123
126
140 ATA /
Claims (11)
オペレーティングシステムをロードするためのプログラムを有する記録メディアを搭載するデバイスの持つ固有情報を問い合わせる第1のコマンドを上記ホストコンピュータから受信したとき、当該記録メディアの記録容量を所定のダミー値とした仮想固有情報を出力する固有情報出力手段と、
上記プログラムを格納するセクタを読み出す第2のコマンドを上記ホストコンピュータから受信したとき、所定のダミープログラムを出力するプログラム出力手段と、
を備えていることを特徴とするプログラム供給装置。 A program supply device that supplies a predetermined program to a host computer that loads an operating system from an optical drive,
When a first command for inquiring about unique information of a device equipped with a recording medium having a program for loading an operating system is received from the host computer, the virtual uniqueness with the recording capacity of the recording medium as a predetermined dummy value Specific information output means for outputting information;
A program output means for outputting a predetermined dummy program when a second command for reading a sector storing the program is received from the host computer;
A program supply apparatus comprising:
上記取得手段における記録容量値の取得処理の完了を上記ホストコンピュータに対して通知する通知手段と、をさらに備えており、
上記固有情報出力手段は、上記通知手段からの通知を受けてリセットされた上記ホストコンピュータから上記第1のコマンドを受信したとき、上記記録メディアの記録容量を上記取得手段において取得した記録容量値とした固有情報を出力することを特徴とする請求項2に記載のプログラム供給装置。 Acquisition means for acquiring a recording capacity value of a recording medium mounted on the optical drive from the optical drive;
Notification means for notifying the host computer of the completion of the recording capacity value acquisition process in the acquisition means,
The specific information output means, when receiving the first command from the host computer that has been reset in response to the notification from the notification means, the recording capacity value acquired by the acquisition means with the recording capacity value acquired by the acquisition means The program supply apparatus according to claim 2, wherein the unique information is output.
上記固有情報出力手段は、上記記憶部に上記取得手段において取得した記録容量値が記憶されている場合には、上記記録メディアの記録容量を当該記録容量値とした固有情報を出力し、上記記憶部に上記取得手段において取得した記録容量値が記憶されていない場合には、上記記録メディアの記録容量を所定のダミー値とした仮想固有情報を出力することを特徴とする請求項3に記載のプログラム供給装置。 A storage unit for storing the recording capacity value acquired by the acquisition unit;
When the recording capacity value obtained by the obtaining means is stored in the storage unit, the unique information output means outputs unique information using the recording capacity of the recording medium as the recording capacity value, and stores the storage capacity value. The virtual unique information with the recording capacity of the recording medium as a predetermined dummy value is output when the recording capacity value acquired by the acquisition means is not stored in the unit. Program supply device.
オペレーティングシステムをロードするためのプログラムを有する記録メディアを搭載するデバイスの持つ固有情報を問い合わせる第1のコマンドを上記ホストコンピュータから受信したとき、当該記録メディアの記録容量を所定のダミー値とした仮想固有情報を出力する固有情報出力ステップと、
上記プログラムを格納するセクタを読み出す第2のコマンドを上記ホストコンピュータから受信したとき、所定のダミープログラムを出力するプログラム出力ステップと、
を含むことを特徴とするプログラム供給方法。 A program supply method in a program supply apparatus that supplies a predetermined program to a host computer that loads an operating system from an optical drive,
When a first command for inquiring about unique information of a device equipped with a recording medium having a program for loading an operating system is received from the host computer, the virtual uniqueness with the recording capacity of the recording medium as a predetermined dummy value A unique information output step for outputting information;
A program output step of outputting a predetermined dummy program when a second command for reading a sector storing the program is received from the host computer;
A program supply method comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008316654A JP5117366B2 (en) | 2008-12-12 | 2008-12-12 | Program supply device, program supply method, and optical drive including the program supply device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008316654A JP5117366B2 (en) | 2008-12-12 | 2008-12-12 | Program supply device, program supply method, and optical drive including the program supply device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010140299A JP2010140299A (en) | 2010-06-24 |
| JP5117366B2 true JP5117366B2 (en) | 2013-01-16 |
Family
ID=42350385
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008316654A Expired - Fee Related JP5117366B2 (en) | 2008-12-12 | 2008-12-12 | Program supply device, program supply method, and optical drive including the program supply device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5117366B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3681880B2 (en) * | 1998-01-28 | 2005-08-10 | 富士通株式会社 | Removable media processing device |
| JP2002222087A (en) * | 2000-11-24 | 2002-08-09 | Mitsubishi Chemicals Corp | Rewritable information recording medium, information recording medium, and bootstrap method |
| JP2006236193A (en) * | 2005-02-28 | 2006-09-07 | Fujitsu Ltd | Start program execution method, device, storage medium, and program |
| JP2007207089A (en) * | 2006-02-03 | 2007-08-16 | Seiko Epson Corp | External storage controller and program |
-
2008
- 2008-12-12 JP JP2008316654A patent/JP5117366B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2010140299A (en) | 2010-06-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101089260B1 (en) | Method and system for automatic installation of a functional unit driver on a host | |
| JP2004310775A (en) | Portable operating system and method for loading the same | |
| TW201117008A (en) | Electronic equipment and boot method, storage medium thereof | |
| US20100268863A1 (en) | Information processing apparatus | |
| CN101606136A (en) | Computer peripheral equipment realized as optical storage device or/and removable disk by software simulation and realization method thereof | |
| JP2006309782A (en) | Method for starting computer system, computer system and hard disk drive | |
| JP5772162B2 (en) | Information processing apparatus, information processing method, and program | |
| JP5117366B2 (en) | Program supply device, program supply method, and optical drive including the program supply device | |
| JP6264879B2 (en) | Information processing apparatus, monitoring program, and monitoring method | |
| JP2012194675A (en) | Information apparatus and emergency access method for information apparatus | |
| TW201734800A (en) | Method for setting redundant array of independent disks | |
| WO2005078595A1 (en) | Removable external storage device and automatic activation program | |
| KR100343191B1 (en) | Method for booting a computer | |
| CN102063311A (en) | Electronic equipment and starting method thereof | |
| US20060224880A1 (en) | Information processing apparatus and boot processing control method for information processing apparatus | |
| US20100037090A1 (en) | Storage system, control method for storage system, and storage device | |
| TW200538935A (en) | Method and related apparatus for downloading operational firmware from an external host to an optical disc drive | |
| RU2347263C2 (en) | Method and system for self-acting installation of driver of functional block on main computing mechanism | |
| JP2007048222A (en) | Portable device and automatic backup method thereof | |
| TWI281628B (en) | Method for fast executing computer function option with intelligent memory | |
| US20140095788A1 (en) | Method for virtualizing raid of computer system | |
| JP4834196B2 (en) | Auxiliary storage | |
| JP2007207089A (en) | External storage controller and program | |
| JP2010205379A (en) | Optical disk device, and computer system | |
| US20060259668A1 (en) | System for managing sound input/output and method for the same |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110223 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120905 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120918 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121017 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5117366 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151026 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |