JP2005038297A - Installation method of device driver, and system used for it - Google Patents
Installation method of device driver, and system used for it Download PDFInfo
- Publication number
- JP2005038297A JP2005038297A JP2003276304A JP2003276304A JP2005038297A JP 2005038297 A JP2005038297 A JP 2005038297A JP 2003276304 A JP2003276304 A JP 2003276304A JP 2003276304 A JP2003276304 A JP 2003276304A JP 2005038297 A JP2005038297 A JP 2005038297A
- Authority
- JP
- Japan
- Prior art keywords
- host
- driver
- peripheral
- device driver
- host device
- 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.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、ペリフェラル装置を制御するときに使用されるデバイスドライバをホスト装置にインストールする方法、並びに、当該方法で使用されるペリフェラル装置およびホスト装置に関する。 The present invention relates to a method of installing a device driver used when controlling a peripheral device in a host device, and to the peripheral device and the host device used in the method.
パーソナルコンピュータ(以下、PCという)などのホスト装置から、プリンタやデジタルカメラなどのペリフェラル装置を制御するためには、ペリフェラル装置を制御するためのデバイスドライバをホスト装置にインストールする必要がある。デバイスドライバは、一般に、ペリフェラル装置の付属品として、CD−ROMなどの記録媒体に記録された状態でユーザに提供される。ユーザは、提供された記録媒体をホスト装置に装着し、所定のデバイスドライバインストール手順を実行する。これにより、ユーザは、ペリフェラル装置に対応したデバイスドライバをホスト装置にインストールすることができる。 In order to control a peripheral device such as a printer or a digital camera from a host device such as a personal computer (hereinafter referred to as a PC), it is necessary to install a device driver for controlling the peripheral device in the host device. The device driver is generally provided to the user in a state where it is recorded on a recording medium such as a CD-ROM as an accessory of the peripheral device. The user attaches the provided recording medium to the host device and executes a predetermined device driver installation procedure. Thereby, the user can install a device driver corresponding to the peripheral device in the host device.
上記の一般的な方法以外にも、記録媒体を用いずにデバイスドライバをインストールする方法として、ホスト装置とペリフェラル装置との間で通信を行うことにより、デバイスドライバをペリフェラル装置からホスト装置にインストールする方法が知られている(例えば、特許文献1を参照)。 In addition to the above general method, as a method of installing a device driver without using a recording medium, the device driver is installed from the peripheral device to the host device by performing communication between the host device and the peripheral device. A method is known (see, for example, Patent Document 1).
ところで、ホスト装置とペリフェラル装置との間で通信を行う方法の1つとして、ユニバーサル・シリアル・バス(Universal Serial Bus;以下、USBという)が知られている。従来のUSB規格では、PCなどのホスト装置を介さずにペリフェラル装置同士を直接接続することはできなかった。ところが、USB規格の追加仕様として定められたUSB On−The−Go規格(以下、OTG規格という)では、PCなどのホスト装置を介さずにペリフェラル装置同士を直接接続することができる。OTG規格では、接続された2台のペリフェラル装置のうち一方がUSBホスト(電源を供給する装置)として、他方がUSBデバイス(電源を供給される装置)として自動的に機能する。そこで、ホスト装置とペリフェラル装置との間でOTG規格に準拠した通信を行うことにより、デバイスドライバをペリフェラル装置からホスト装置にインストールする方法を考えることができる。
しかしながら、上述したデバイスドライバのインストール方法には、以下のような問題がある。まず、記録媒体を用いてデバイスドライバをインストールする方法には、ホスト装置はデバイスドライバを記録した記録媒体の読み取り装置を備える必要がある、という問題がある。 However, the above-described device driver installation method has the following problems. First, the method of installing a device driver using a recording medium has a problem that the host device needs to include a recording medium reading device that records the device driver.
また、特許文献1に記載された方法では、ペリフェラル装置は、特定の1種類のホスト装置に対応したデバイスドライバしか提供できない。特許文献1に記載された方法を拡張し、ペリフェラル装置から複数の種類のホスト装置に対応したデバイスドライバを提供する方法として、ペリフェラル装置が複数のデバイスドライバを記録した記録媒体の読み取り装置を備える方法と、ペリフェラル装置が複数のデバイスドライバを格納するメモリなどを備える方法とが考えられる。しかし、前者の方法には、ホスト装置が記録媒体の読み取り装置を備える方法と同様の問題があり、後者の方法には、ペリフェラル装置が大量のメモリを備える必要がある、という問題がある。 Further, according to the method described in Patent Document 1, the peripheral device can only provide a device driver corresponding to one specific type of host device. As a method of extending a method described in Patent Document 1 and providing a device driver corresponding to a plurality of types of host devices from a peripheral device, a method in which the peripheral device includes a recording medium reading device on which a plurality of device drivers are recorded And a method in which the peripheral device includes a memory or the like for storing a plurality of device drivers. However, the former method has a problem similar to the method in which the host device includes a recording medium reading device, and the latter method has a problem that the peripheral device needs to include a large amount of memory.
また、OTG規格に準拠した通信を行う方法にも、ホスト装置として機能する装置には、当該装置と接続可能なすべてのペリフェラル装置に対応したデバイスドライバが格納されている必要がある、という問題がある。 Also, the method of performing communication in conformity with the OTG standard has a problem that a device functioning as a host device needs to store device drivers corresponding to all peripheral devices connectable to the device. is there.
それ故に、本発明は、簡単な構成を有するペリフェラル装置を用いて、ペリフェラル装置から複数の種類のホスト装置に対応したデバイスドライバをインストールするデバイスドライバのインストール方法、並びに、当該方法で使用されるペリフェラル装置およびホスト装置を提供することを目的とする。 Therefore, the present invention provides a device driver installation method for installing a device driver corresponding to a plurality of types of host devices from a peripheral device using the peripheral device having a simple configuration, and the peripheral used in the method An object is to provide a device and a host device.
そこで、本発明のペリフェラル装置は、ペリフェラル装置が属するカテゴリと、接続可能なホスト装置のOSの種類とを記憶し、ホスト装置によって使用されるデバイスドライバをOS非依存部分とOS依存部分とに分けて記憶する。また、このペリフェラル装置は、ホスト装置と接続されたときに、記憶したカテゴリを送信し、ホスト装置のOSの種類を受信することにより、ホスト装置と接続可能か否かを判断する。さらに、このペリフェラル装置は、ホスト装置と接続可能と判断したときには、OS非依存部分とOS依存部分とに分けて記憶したデバイスドライバに基づき、ホスト装置に対応したデバイスドライバを作成し、作成したデバイスドライバをホスト装置に送信する。 Therefore, the peripheral device of the present invention stores the category to which the peripheral device belongs and the OS type of the connectable host device, and divides the device driver used by the host device into an OS-independent part and an OS-dependent part. Remember. Further, when the peripheral device is connected to the host device, the peripheral device transmits the stored category and receives the OS type of the host device to determine whether or not the host device can be connected. Further, when it is determined that the peripheral device can be connected to the host device, a device driver corresponding to the host device is created based on the device driver stored separately for the OS-independent portion and the OS-dependent portion, and the created device Send the driver to the host device.
本発明のホスト装置は、ホスト装置のOSの種類と、接続可能なペリフェラル装置のカテゴリとを記憶する。また、このホスト装置は、ペリフェラル装置と接続されたときに、ペリフェラル装置が属するカテゴリを受信し、記憶したOSの種類を送信することにより、ペリフェラル装置と接続可能か否かを判断する。さらに、このホスト装置は、ペリフェラル装置と接続可能と判断したときには、ペリフェラル装置からデバイスドライバを受信し、受信したデバイスドライバを記憶する。 The host device of the present invention stores the OS type of the host device and the category of peripheral devices that can be connected. Further, when the host device is connected to the peripheral device, the host device receives the category to which the peripheral device belongs and transmits the stored OS type to determine whether or not the peripheral device can be connected. Further, when it is determined that the host device can be connected to the peripheral device, the host device receives a device driver from the peripheral device and stores the received device driver.
ホスト装置は、ペリフェラル装置との接続が解消されたときに、記憶したデバイスドライバを消去してもよい。あるいは、ホスト装置は、データを不揮発的に保存するデータ保存部を備え、ペリフェラル装置と接続されたとき、あるいは、ペリフェラル装置との接続が解消されたときに、記憶したデバイスドライバをデータ保存部に複写してもよい。 The host device may erase the stored device driver when the connection with the peripheral device is canceled. Alternatively, the host device includes a data storage unit that stores data in a nonvolatile manner. When the host device is connected to the peripheral device or when the connection with the peripheral device is canceled, the stored device driver is stored in the data storage unit. You may copy it.
本発明のデバイスドライバのインストール方法では、ペリフェラル装置からホスト装置に対して、ペリフェラル装置が属するカテゴリが転送される。ホスト装置において、転送されたカテゴリに基づきペリフェラル装置に接続可能と判断された場合には、ホスト装置からペリフェラル装置に対して、ホスト装置のOSの種類が転送される。ペリフェラル装置において、転送されたOSの種類に基づきホスト装置に接続可能と判断された場合には、ペリフェラル装置にOS非依存部分とOS依存部分とに分けて記憶されているデバイスドライバに基づき、ホスト装置によって使用されるデバイスドライバが作成される。作成されたデバイスドライバは、ペリフェラル装置からホスト装置に対して転送され、ホスト装置に記憶される。 In the device driver installation method of the present invention, the category to which the peripheral device belongs is transferred from the peripheral device to the host device. If the host device determines that the peripheral device can be connected based on the transferred category, the host device OS type is transferred from the host device to the peripheral device. In the peripheral device, if it is determined that the host device can be connected based on the type of the transferred OS, the host is determined based on the device driver stored in the peripheral device separately for the OS-independent portion and the OS-dependent portion. A device driver is created for use by the device. The created device driver is transferred from the peripheral device to the host device and stored in the host device.
本発明のペリフェラル装置とホスト装置とは、例えば、USB規格に準拠した通信を行ってもよい。この場合、ペリフェラル装置とホスト装置とが接続されている間は、ペリフェラル装置はUSBデバイスとして、ホスト装置はUSBホストとして機能する。 The peripheral device and the host device of the present invention may perform communication conforming to the USB standard, for example. In this case, while the peripheral device and the host device are connected, the peripheral device functions as a USB device and the host device functions as a USB host.
本発明のペリフェラル装置およびホスト装置、並びに、デバイスドライバのインストール方法によれば、ホスト装置およびペリフェラル装置のいずれにも特定の記録媒体の読み取り装置を備えることなく、ホスト装置とペリフェラル装置との間で通信を行うことにより、デバイスドライバをペリフェラル装置からホスト装置にインストールすることができる。また、デバイスドライバは、ペリフェラル装置とホスト装置とが接続されたときに自動的にインストールされるので、ユーザは、デバイスドライバをインストールする操作を行う必要がなくなる。また、ペリフェラル装置は、デバイスドライバをOS非依存部分とOS依存部分とに分けて記憶し、ホスト装置と接続されたときにデバイスドライバを作成するので、ペリフェラル装置においてデバイスドライバを記憶するために必要な記憶量を削減することができる。 According to the peripheral device, the host device, and the device driver installation method of the present invention, the host device and the peripheral device are not provided with a specific recording medium reading device, and the host device and the peripheral device are provided with each other. By performing communication, the device driver can be installed from the peripheral device to the host device. Further, since the device driver is automatically installed when the peripheral device and the host device are connected, the user does not need to perform an operation of installing the device driver. In addition, the peripheral device stores the device driver in an OS-independent part and an OS-dependent part, and creates a device driver when connected to the host device. Therefore, it is necessary to store the device driver in the peripheral device. The amount of memory required can be reduced.
特に、ペリフェラル装置との接続が解消されたときに、ホスト装置が記憶したデバイスドライバを消去することとすれば、ホスト装置においてデバイスドライバを記憶するために必要な記憶量を削減することができる。また、ホスト装置がデバイスドライバを不揮発的に保存することとすれば、同じペリフェラル装置と再び接続されたときに、ペリフェラル装置からデバイスドライバを再び転送する必要がなくなる。 In particular, if the device driver stored in the host device is erased when the connection with the peripheral device is canceled, the amount of storage necessary for storing the device driver in the host device can be reduced. Further, if the host device stores the device driver in a non-volatile manner, it is not necessary to transfer the device driver from the peripheral device again when it is connected again with the same peripheral device.
図1は、本発明の実施形態に係るシステムの構成を示すブロック図である。図1に示すシステムでは、2台の装置10および20が、USB On−The−Go規格(OTG規格)に準拠して接続されている。OTG規格によれば、2台の装置が接続されると、一方の装置がUSBホストとして機能し、他方の装置がUSBデバイスとして機能する。本実施形態では、2台の装置10および20がUSBケーブル30を介して接続されたときに、装置10がUSBデバイスとして機能し、装置20がUSBホストとして機能すると仮定する。以下では、装置10をペリフェラル装置10と呼び、装置20をホスト装置20と呼ぶ。
FIG. 1 is a block diagram showing the configuration of a system according to an embodiment of the present invention. In the system shown in FIG. 1, two
図1に示すシステムでは、ペリフェラル装置10とホスト装置20とがUSBケーブル30を介して接続されたときに、ペリフェラル装置10に記憶されたデバイスドライバがホスト装置20に送信される。ホスト装置20は、ペリフェラル装置10から送信されたデバイスドライバを記憶し、これを用いてペリフェラル装置10にアクセスする。
In the system illustrated in FIG. 1, when the
図1に示すように、ペリフェラル装置10は、制御部11、送受信部12、カテゴリ情報記憶部13、対応OS情報記憶部14、デバイスドライバ作成部15、共通プログラム記憶部16、および、第1〜第nの個別プログラム記憶部17a〜17nを備えている。ホスト装置20は、制御部21、送受信部22、OS情報記憶部23、対応デバイス情報記憶部24、デバイスドライバ記憶部25、および、メモリカードインターフェイス部26を備えている。また、ホスト装置20は、メモリカード40を着脱可能に構成される。
As shown in FIG. 1, the
ペリフェラル装置10に含まれる制御部11と送受信部12とは、デバイスドライバ送信手段として機能する。送受信部12は、ホスト装置20との間でUSB規格に準拠した通信を行う。制御部11は、送受信部12を用いて、ホスト装置20によって使用されるデバイスドライバをホスト装置20に送信する。制御部11の動作の詳細は、後述する。
The
カテゴリ情報記憶部13は、ペリフェラル装置10が属するカテゴリを示すカテゴリ情報を記憶する。カテゴリ情報記憶部13に記憶されたカテゴリ情報は、ホスト装置20において、ペリフェラル装置10との接続が可能か否かを判断するときに参照される。対応OS情報記憶部14は、接続可能なホスト装置20のOSの種類を示す対応OS情報を記憶する。対応OS情報記憶部14に記憶された対応OS情報は、ペリフェラル装置10において、ホスト装置20との接続が可能か否かを判断するときに参照される。
The category
ペリフェラル装置10は、複数の種類のホスト装置20に対して、ホスト装置20のOSの種類に対応したデバイスドライバを提供する。このため、ペリフェラル装置10には、複数の種類のデバイスドライバが、以下に示す態様で記憶されている。すなわち、デバイスドライバは、ホスト装置のOSに共通な部分(以下、OS非依存部分という)と、ホスト装置のOSに依存する部分(以下、OS依存部分という)とに分割され、OS非依存部分は、共通プログラム記憶部16に記憶され、OS依存部分は、OSの種類ごとに第1〜第nの個別プログラム記憶部17a〜17nに記憶される。
The
デバイスドライバ作成部15は、制御部11からの制御に従い、共通プログラム記憶部16に記憶されたデバイスドライバのOS非依存部分と、第1〜第nの個別プログラム記憶部17a〜17nに記憶されたデバイスドライバのOS依存部分とに基づき、デバイスドライバを作成する。より詳細には、デバイスドライバ作成部15は、制御部11からOSの種類の指定を受けると、第1〜第nの個別プログラム記憶部17a〜17nから、指定されたOSの種類に対応したデバイスドライバのOS依存部分を読み出し、読み出したOS依存部分と、共通プログラム記憶部16に記憶されたデバイスドライバのOS非依存部分とに基づき、指定されたOSの種類に対応したデバイスドライバを作成する。
The device driver creation unit 15 is stored in the OS-independent portion of the device driver stored in the common
ホスト装置20に含まれる制御部21と送受信部22とは、デバイスドライバ受信手段として機能する。送受信部22は、ペリフェラル装置10との間でUSB規格に準拠した通信を行う。制御部21は、送受信部22を用いて、ホスト装置20によって使用されるデバイスドライバをペリフェラル装置10から受信する。制御部21の動作の詳細は、後述する。
The
OS情報記憶部23は、ホスト装置20のOSの種類を示すOS情報を記憶する。OS情報記憶部23に記憶されたOS情報は、ペリフェラル装置10において、ホスト装置20との接続が可能か否かを判断するときに参照される。対応デバイス情報記憶部24は、接続可能なペリフェラル装置10のカテゴリを示す対応デバイス情報を記憶する。対応デバイス情報記憶部24に記憶された対応デバイス情報は、ホスト装置20において、ペリフェラル装置10との接続が可能か否かを判断するときに参照される。
The OS
デバイスドライバ記憶部25は、ペリフェラル装置10から受信したデバイスドライバを記憶する。デバイスドライバ記憶部25に記憶されるデバイスドライバは、ホスト装置20のOSの種類に対応して、デバイスドライバ作成部15によって作成されたものである。ホスト装置20上で動作するアプリケーションプログラム(図示せず)は、デバイスドライバ記憶部25に記憶されたデバイスドライバを用いて、ペリフェラル装置10を制御する。
The device driver storage unit 25 stores the device driver received from the
ホスト装置20に着脱可能なメモリカード40は、データを不揮発的に保存する。メモリカードインターフェイス部26は、メモリカード40に対するアクセスを制御する。より詳細には、メモリカードインターフェイス部26は、制御部21からの制御に従い、デバイスドライバ記憶部25に記憶されたデバイスドライバをメモリカード40に複写する。
The
図2は、USBケーブル30を接続したときの、ペリフェラル装置10およびホスト装置20の処理を示すフローチャートである。ペリフェラル装置10とホスト装置20とをUSBケーブル30を用いて接続したときに、ペリフェラル装置10からホスト装置20に対して、ホスト装置20がペリフェラル装置10を制御するときに使用するデバイスドライバがインストールされる。その詳細は、以下のとおりである。
FIG. 2 is a flowchart showing processing of the
ペリフェラル装置10とホスト装置20とが接続されると、ペリフェラル装置10に含まれる制御部11は、カテゴリ情報記憶部13に記憶されたカテゴリ情報を読み出す(ステップS101)。次に、制御部11は、読み出したカテゴリ情報を、送受信部12を用いてホスト装置20に送信する(ステップS102)。このとき、ホスト装置20に含まれる制御部21は、ペリフェラル装置10から送信されたカテゴリ情報を、送受信部22を用いて受信する(ステップS201)。
When the
次に、制御部21は、受信したカテゴリ情報に基づき、ペリフェラル装置10に接続可能か否かを判断する(ステップS202)。より詳細には、制御部21は、受信したカテゴリ情報に記載されたカテゴリが対応デバイス情報記憶部24に記憶された対応デバイス情報に含まれている場合には、ペリフェラル装置10に接続可能と判断し、それ以外の場合には、ペリフェラル装置10に接続できないと判断する。制御部21は、ペリフェラル装置10に接続可能と判断した場合には、ステップS203へ進む。
Next, the
この場合、制御部21は、OS情報記憶部23に記憶されたOS情報を読み出す(ステップS203)。次に、制御部21は、読み出したOS情報を、送受信部22を用いてペリフェラル装置10に送信する(ステップS204)。このとき、制御部11は、ホスト装置20から送信されたOS情報を、送受信部12を用いて受信する(ステップS103)。
In this case, the
次に、制御部11は、受信したOS情報に基づき、ホスト装置20に接続可能か否かを判断する(ステップS104)。より詳細には、制御部11は、受信したOS情報に記載されたOSの種類が対応OS情報記憶部14に記憶された対応OS情報に含まれている場合には、ホスト装置20に接続可能と判断し、それ以外の場合には、ホスト装置20に接続できないと判断する。制御部11は、ホスト装置20に接続可能と判断した場合には、ステップS105へ進む。
Next, the
この場合、制御部11は、ホスト装置20のOSの種類に対応したデバイスドライバを、デバイスドライバ作成部15を用いて作成する(ステップS105)。上述したように、共通プログラム記憶部16にはデバイスドライバのOS非依存部分が記憶され、第1〜第nの個別プログラム記憶部17a〜17nにはデバイスドライバのOS依存部分が記憶されている。デバイスドライバ作成部15は、制御部11からOSの種類の指定を受けると、第1〜第nの個別プログラム記憶部17a〜17nから、指定されたOSの種類に対応したデバイスドライバのOS依存部分を読み出し、読み出したOS依存部分と、共通プログラム記憶部16に記憶されたデバイスドライバのOS非依存部分とに基づき、指定されたOSの種類に対応したデバイスドライバを作成する。
In this case, the
次に、制御部11は、作成されたデバイスドライバを、送受信部12を用いてホスト装置20に送信する(ステップS106)。このとき、制御部21は、ペリフェラル装置10から送信されたデバイスドライバを受信する(ステップS205)。次に、制御部21は、受信したデバイスドライバを、デバイスドライバ記憶部25に書き込む。デバイスドライバ記憶部25は、ホスト装置20のOSに対応したデバイスドライバを記憶する(ステップS206)。
Next, the
このように図2に示す処理を実行することにより、ペリフェラル装置10で作成されたデバイスドライバは、USBに準拠した通信により、ペリフェラル装置10からホスト装置20に転送され、ホスト装置20のデバイスドライバ記憶部25に記憶される。図2に示す処理が実行された後、ホスト装置20は、デバイスドライバ記憶部25に記憶されたデバイスドライバを用いて、ペリフェラル装置10を制御する。
By executing the processing shown in FIG. 2 in this way, the device driver created in the
なお、ステップS104においてホスト装置20に接続できないと判断された場合、および、ステップS202においてペリフェラル装置10に接続できないと判断された場合には、ペリフェラル装置10およびホスト装置20は、図示しないエラー処理を実行する。ペリフェラル装置10および/またはホスト装置20は、例えば、ディスプレイにエラーメッセージを表示するなどにより、エラーの発生をユーザに通知する。
If it is determined in step S104 that the
図3は、USBケーブル30を抜いたときのホスト装置20の処理を示すフローチャートである。USBケーブル30が抜かれ、ペリフェラル装置10とホスト装置20との接続が解消されたときに、制御部21は、デバイスドライバ記憶部25に記憶されたデバイスドライバを、メモリカードインターフェイス部26を用いてメモリカード40に複写する(ステップS211)。メモリカード40は、複写されたデバイスドライバを不揮発的に保存する。次に、制御部21は、デバイスドライバ記憶部25に記憶されたデバイスドライバを消去し(ステップS212)、処理を終了する。
FIG. 3 is a flowchart showing processing of the
このように図3に示す処理を実行することにより、ホスト装置20は、デバイスドライバ記憶部25に記憶したデバイスドライバをメモリカード40に複写した上で消去する。これにより、ホスト装置20においてデバイスドライバを記憶するために必要な記憶量を削減するとともに、同じペリフェラル装置10と再び接続されたときに、ペリフェラル装置10からデバイスドライバを再び転送する必要がなくなる。
By executing the processing shown in FIG. 3 in this way, the
なお、図3では、USBケーブル30を抜いたときに、ホスト装置20は、記憶したデバイスドライバをメモリカード40に複写することとしたが、これに代えて、ホスト装置20は、USBケーブル30を接続したときに、記憶したデバイスドライバをメモリカード40に複写してもよい。例えば、ホスト装置20は、図2に示すステップS206の次に、デバイスドライバをメモリカード40に複写する処理を行ってもよい。
In FIG. 3, the
ペリフェラル装置10に対して接続可能なホスト装置を追加または更新するときには、ペリフェラル装置10は、ホスト装置として機能する通信機器(図示せず)に接続される。この通信機器からペリフェラル装置10に対して、対応OS情報記憶部14に記憶される対応OS情報の全部または一部、および、追加または更新されるOSに対応したデバイスドライバのOS依存部分が転送される。ペリフェラル装置10は、通信機器から転送されたデータを用いて、対応OS情報記憶部14に記憶された対応OS情報や、第1〜第nの個別プログラム記憶部17a〜17nに記憶されたデバイスドライバのOS依存部分に追記または一括書き替えを行う。これにより、ペリフェラル装置10は、新たな種類のOSを搭載したホスト装置20にも接続できるようになる。
When a host device that can be connected to the
同様に、ホスト装置20に対して接続可能なペリフェラル装置を追加または更新するときには、ホスト装置20は、ペリフェラル装置として機能する通信機器(図示せず)に接続される。この通信機器からホスト装置20に対して、対応デバイス情報記憶部24に記憶される対応デバイス情報の全部または一部が転送される。ホスト装置20は、通信機器から転送されたデータを用いて、対応デバイス情報記憶部24に記憶された対応デバイス情報に追記または一括書き替えを行う。これにより、ホスト装置20は、新たなカテゴリに属するペリフェラル装置10にも接続できるようになる。
Similarly, when adding or updating a peripheral device that can be connected to the
なお、本実施形態では、装置10および20をUSBケーブル30を用いて接続したときに、装置10がUSBデバイスとして機能し、装置20がUSBホストとして機能することとしたが、装置10および20は、いずれも、USBデバイスおよびUSBホストの両方の機能を有していてもよい。この場合、USBケーブル30の接続状態などに応じて、装置10および20のいずれか一方がUSBデバイスとして機能し、他方がUSBホストとして機能する。
In this embodiment, when the
以上に示すように、本実施形態に係るペリフェラル装置およびホスト装置、並びに、デバイスドライバのインストール方法によれば、ホスト装置およびペリフェラル装置のいずれにも特定の記録媒体の読み取り装置を備えることなく、ホスト装置とペリフェラル装置との間で通信を行うことにより、デバイスドライバをペリフェラル装置からホスト装置にインストールすることができる。また、デバイスドライバは、ペリフェラル装置とホスト装置とが接続されたときに自動的にインストールされるので、ユーザは、デバイスドライバをインストールする操作を行う必要がなくなる。また、ペリフェラル装置は、デバイスドライバをOS非依存部分とOS依存部分とに分けて記憶し、ホスト装置と接続されたときにデバイスドライバを作成するので、ペリフェラル装置においてデバイスドライバを記憶するために必要な記憶量を削減することができる。 As described above, according to the peripheral device and the host device and the device driver installation method according to the present embodiment, the host device and the peripheral device do not include a specific recording medium reading device, and the host The device driver can be installed from the peripheral device to the host device by performing communication between the device and the peripheral device. Further, since the device driver is automatically installed when the peripheral device and the host device are connected, the user does not need to perform an operation of installing the device driver. In addition, the peripheral device stores the device driver in an OS-independent part and an OS-dependent part, and creates a device driver when connected to the host device. Therefore, it is necessary to store the device driver in the peripheral device. The amount of memory required can be reduced.
本発明のペリフェラル装置およびホスト装置、並びに、デバイスドライバのインストール方法は、簡単な構成を有するペリフェラル装置を用いて、ペリフェラル装置から複数の種類のホスト装置に対応したデバイスドライバをインストールできるという効果を奏するので、プリンタやデジタルカメラを始めとする各種のペリフェラル装置、およびPCを始めとする各種のホスト装置に適用することができる。 The peripheral device, the host device, and the device driver installation method of the present invention have an effect that a device driver corresponding to a plurality of types of host devices can be installed from the peripheral device using the peripheral device having a simple configuration. Therefore, the present invention can be applied to various peripheral devices including printers and digital cameras, and various host devices including PCs.
10…ペリフェラル装置
11、21…制御部
12、22…送受信部
13…カテゴリ情報記憶部
14…対応OS情報記憶部
15…デバイスドライバ作成部
16…共通プログラム記憶部
17…個別プログラム記憶部
20…ホスト装置
23…OS情報記憶部
24…対応デバイス情報記憶部
25…デバイスドライバ記憶部
26…メモリカードインターフェイス部
30…USBケーブル
40…メモリカード
DESCRIPTION OF
Claims (8)
ペリフェラル装置が属するカテゴリを記憶するカテゴリ情報記憶手段と、
接続可能なホスト装置のOSの種類を記憶する対応OS情報記憶手段と、
前記ホスト装置によって使用されるデバイスドライバのうち、OS非依存部分を記憶する共通プログラム記憶手段と、
前記デバイスドライバのうち、OS依存部分をOSの種類ごとに記憶する個別プログラム記憶手段と、
前記共通プログラム記憶手段に記憶されたデバイスドライバのOS非依存部分と、前記個別プログラム記憶手段に記憶されたデバイスドライバのOS依存部分とに基づき、指定されたOSに対応したデバイスドライバを作成するデバイスドライバ作成手段と、
前記ホスト装置に対して、前記デバイスドライバ作成手段で作成したデバイスドライバを送信するデバイスドライバ送信手段とを備え、
前記デバイスドライバ送信手段は、前記ホスト装置と接続されたときに、前記カテゴリ情報記憶手段に記憶されたカテゴリを送信し、前記ホスト装置のOSの種類を受信した上で、受信したOSの種類が前記対応OS情報記憶手段に記憶されている場合に、前記デバイスドライバ作成手段で作成したデバイスドライバを送信することを特徴とする、ペリフェラル装置。 A peripheral device controlled by a host device,
Category information storage means for storing the category to which the peripheral device belongs;
Corresponding OS information storage means for storing the OS type of the connectable host device;
Of the device drivers used by the host device, common program storage means for storing an OS-independent portion;
Individual program storage means for storing an OS-dependent portion of each device driver for each type of OS;
A device that creates a device driver corresponding to a specified OS based on the OS-independent portion of the device driver stored in the common program storage means and the OS-dependent portion of the device driver stored in the individual program storage means Driver creation means;
Device driver transmission means for transmitting the device driver created by the device driver creation means to the host device,
When the device driver transmission unit is connected to the host device, the device driver transmission unit transmits the category stored in the category information storage unit, receives the OS type of the host device, and then determines the received OS type. A peripheral device that transmits the device driver created by the device driver creation means when stored in the corresponding OS information storage means.
前記ホスト装置と接続されている間はUSBデバイスとして機能することを特徴とする、請求項1に記載のペリフェラル装置。 The device driver transmission means performs communication conforming to the USB standard with the host device,
The peripheral device according to claim 1, wherein the peripheral device functions as a USB device while being connected to the host device.
ホスト装置のOSの種類を記憶するOS情報記憶手段と、
接続可能なペリフェラル装置のカテゴリを記憶する対応デバイス情報記憶手段と、
前記ペリフェラル装置から、前記ペリフェラル装置を制御するときに使用するデバイスドライバを受信するデバイスドライバ受信手段と、
前記デバイスドライバ受信手段で受信したデバイスドライバを記憶するデバイスドライバ記憶手段とを備え、
前記デバイスドライバ受信手段は、前記ペリフェラル装置と接続されたときに、前記ペリフェラル装置が属するカテゴリを受信し、受信したカテゴリが前記対応デバイス情報記憶手段に記憶されている場合に、前記OS情報記憶手段に記憶されたOSの種類を送信した上で、前記デバイスドライバを受信することを特徴とする、ホスト装置。 A host device that controls a peripheral device,
OS information storage means for storing the OS type of the host device;
Corresponding device information storage means for storing categories of connectable peripheral devices;
A device driver receiving means for receiving a device driver used when controlling the peripheral device from the peripheral device;
Device driver storage means for storing the device driver received by the device driver reception means,
The device driver receiving unit receives a category to which the peripheral device belongs when connected to the peripheral device, and the OS information storage unit when the received category is stored in the corresponding device information storage unit The host device receives the device driver after transmitting the OS type stored in the host device.
前記ペリフェラル装置と接続されている間はUSBホストとして機能することを特徴とする、請求項3に記載のホスト装置。 The device driver receiving means performs communication conforming to the USB standard with the peripheral device,
The host device according to claim 3, wherein the host device functions as a USB host while being connected to the peripheral device.
前記デバイスドライバ受信手段は、前記ペリフェラル装置と接続されたとき、あるいは、前記ペリフェラル装置との接続が解消されたときに、前記デバイスドライバ記憶手段に記憶されているデバイスドライバを前記データ保存手段に複写することを特徴とする、請求項3に記載のホスト装置。 A data storage means for storing data in a nonvolatile manner;
The device driver receiving means copies the device driver stored in the device driver storage means to the data storage means when connected to the peripheral device or when the connection with the peripheral device is canceled. The host device according to claim 3, wherein:
ペリフェラル装置からホスト装置に対して、前記ペリフェラル装置が属するカテゴリを転送するステップと、
前記ホスト装置において、転送されたカテゴリに基づき前記ペリフェラル装置に接続可能と判断された場合に、前記ホスト装置から前記ペリフェラル装置に対して、前記ホスト装置のOSの種類を転送するステップと、
前記ペリフェラル装置において、転送されたOSの種類に基づき前記ホスト装置に接続可能と判断された場合に、前記ペリフェラル装置にOS非依存部分とOS依存部分とに分けて記憶されているデバイスドライバに基づき、前記ホスト装置によって使用されるデバイスドライバを作成するステップと、
前記ペリフェラル装置から前記ホスト装置に対して、作成されたデバイスドライバを転送するステップと、
前記ホスト装置において、転送されたデバイスドライバを記憶するステップとを備えた、デバイスドライバのインストール方法。 A method of installing a device driver used to control a peripheral device on a host device,
Transferring the category to which the peripheral device belongs from the peripheral device to the host device;
Transferring the OS type of the host device from the host device to the peripheral device when the host device is determined to be connectable to the peripheral device based on the transferred category;
In the peripheral device, when it is determined that the host device can be connected based on the type of the transferred OS, the peripheral device is divided into an OS-independent portion and an OS-dependent portion and is stored based on a device driver. Creating a device driver for use by the host device;
Transferring the created device driver from the peripheral device to the host device;
A device driver installation method comprising: storing the transferred device driver in the host device.
前記ペリフェラル装置と前記ホスト装置とが接続されている間は、前記ペリフェラル装置はUSBデバイスとして、前記ホスト装置はUSBホストとして機能することを特徴とする、請求項7に記載のデバイスドライバのインストール方法。
The peripheral device and the host device communicate according to the USB standard,
The device driver installation method according to claim 7, wherein the peripheral device functions as a USB device and the host device functions as a USB host while the peripheral device and the host device are connected. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003276304A JP2005038297A (en) | 2003-07-17 | 2003-07-17 | Installation method of device driver, and system used for it |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003276304A JP2005038297A (en) | 2003-07-17 | 2003-07-17 | Installation method of device driver, and system used for it |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005038297A true JP2005038297A (en) | 2005-02-10 |
Family
ID=34212674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003276304A Pending JP2005038297A (en) | 2003-07-17 | 2003-07-17 | Installation method of device driver, and system used for it |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005038297A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100451961C (en) * | 2005-08-25 | 2009-01-14 | 英业达股份有限公司 | Method and system for driving program automatic installation |
JP2012155515A (en) * | 2011-01-26 | 2012-08-16 | Renesas Electronics Corp | Source device driver and method for creating execution module |
JP2016157337A (en) * | 2015-02-25 | 2016-09-01 | アイコム株式会社 | Multifunctional microphone and firmware updating method of radio communication device using the same |
JP7547595B2 (en) | 2019-07-30 | 2024-09-09 | 株式会社ワコム | Information input device, method, and program |
-
2003
- 2003-07-17 JP JP2003276304A patent/JP2005038297A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100451961C (en) * | 2005-08-25 | 2009-01-14 | 英业达股份有限公司 | Method and system for driving program automatic installation |
JP2012155515A (en) * | 2011-01-26 | 2012-08-16 | Renesas Electronics Corp | Source device driver and method for creating execution module |
JP2016157337A (en) * | 2015-02-25 | 2016-09-01 | アイコム株式会社 | Multifunctional microphone and firmware updating method of radio communication device using the same |
JP7547595B2 (en) | 2019-07-30 | 2024-09-09 | 株式会社ワコム | Information input device, method, and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8250245B2 (en) | Information processing system, with information processing terminal capable of operating in multiple operation modes when connected to a host device | |
KR100589521B1 (en) | Usb storage device and control device | |
JP2008139916A (en) | Information processing apparatus, control method for information processing apparatus, and control program for information processing apparatus | |
US8179554B2 (en) | Printer, control method of a printer and computer-readable recording medium | |
JP2006079634A (en) | Usb storage device and program | |
JP2006079634A5 (en) | ||
JP2005038297A (en) | Installation method of device driver, and system used for it | |
JP2008059239A (en) | Communication system | |
JPH1153289A (en) | Method for reinforcing extension function of information processor | |
US7287104B2 (en) | Interface circuit for card-type memory, ASIC including interface circuit, and image forming apparatus including ASIC | |
JP2004171536A5 (en) | ||
JP2007086905A (en) | Communication system, information-processing device, peripheral device, and communication method | |
JP4134895B2 (en) | Image processing apparatus and image processing method | |
JP4150860B2 (en) | Device equipment | |
JPH08101803A (en) | Information processing system | |
JP2004192442A (en) | Image processor, recording medium reading program and storage medium | |
JP4239392B2 (en) | Printing apparatus, printing system, and printing method | |
US8694743B2 (en) | Information processing apparatus and method of backing up memory in said apparatus | |
JP4449765B2 (en) | Image forming apparatus management apparatus and image forming apparatus management system | |
JP2004094493A (en) | Storage medium processor and its control method | |
JP5125689B2 (en) | Operation method and recording medium for multiple environments | |
WO2005038663A1 (en) | Method for providing extended usb functions using standard ums communication | |
US8675223B2 (en) | Image forming device, image forming system and computer readable medium for installing related software to another device | |
JP2005182254A (en) | Device driver installation system | |
JP2004302870A (en) | Write-protect method for media reader/writer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060418 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090106 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20090609 |