JP4458884B2 - Device configuration information acquisition method and information processing apparatus - Google Patents
Device configuration information acquisition method and information processing apparatus Download PDFInfo
- Publication number
- JP4458884B2 JP4458884B2 JP2004068155A JP2004068155A JP4458884B2 JP 4458884 B2 JP4458884 B2 JP 4458884B2 JP 2004068155 A JP2004068155 A JP 2004068155A JP 2004068155 A JP2004068155 A JP 2004068155A JP 4458884 B2 JP4458884 B2 JP 4458884B2
- Authority
- JP
- Japan
- Prior art keywords
- information
- configuration
- printer
- driver
- acquisition
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
Description
本発明は、コンピュータによって管理対象のデバイスから情報を取得するための技術に関し、特に、デバイス管理ユーティリティソフトウェアやプリンタドライバ等のデバイスドライバソフトウエアに好適なものである。 The present invention relates to a technique for acquiring information from a device to be managed by a computer, and is particularly suitable for device management software such as device management utility software and printer driver.
現在では、パーソナルコンピュータ(PC)から利用可能なデバイスとして、プリンタ、ファクシミリ(FAX)、スキャナ、マルチファンクションペリフェラル装置(MFP)等が普及している。そして、PCには、これらデバイスを利用する為のドライバやポートモニタ、デバイスを管理する為のデバイス管理ユーティリティソフトなどのソフトウェアがインストールされる。これらのソフトウェアは、管理対象のデバイスと通信を行い、デバイスの構成情報、オプション情報、ジョブ情報、ユーザ情報、状態情報などを取得する機能を備えていることが多い。 Currently, printers, facsimiles (FAX), scanners, multifunction peripheral devices (MFPs), and the like are widely used as devices that can be used from a personal computer (PC). The PC is installed with software such as a driver for using these devices, a port monitor, and device management utility software for managing the devices. Such software often has a function of communicating with a device to be managed and acquiring device configuration information, option information, job information, user information, status information, and the like.
例えばプリンタドライバにおいては、プリンタデバイスのオプション構成をシステムのネットワークデバイス管理システムを介して取得し、ドライバユーザインターフェース(ドライバUI)に反映させるようなプリンタドライバが存在する(例えば、特許文献1)。 For example, in a printer driver, there is a printer driver that acquires an optional configuration of a printer device via a network device management system of the system and reflects it in a driver user interface (driver UI) (for example, Patent Document 1).
しかし、このようなプリンタドライバは、プリンタメーカーが提供する専用のプリンタドライバ、いわゆるモノリシックドライバ(monolithic driver)で実現している。よって従来、米国マイクロソフト社のWindows(登録商標)OSに搭載されるユニバーサルドライバでは、プリンタデバイスのオプション構成を取得し、ドライバUIに反映させる機能が存在しなかった。
そして、MS社は、Longhornと呼ばれるコードネームの次期Windowsのバージョンにおいて、ドライバUIとデバイス間の通信により、OSに搭載されるユニバーサルドライバ(共通デバイスドライバとも呼ばれる)がプリンタデバイスを自動構成する機能を実現することを、『2004 Japan Print Driver セミナー』で公表している。この自動構成機能は、従来のGPD(Generic Printer Description:汎用プリンタ記述の構文定義のこと)と呼ばれるデバイス依存情報ファイルに拡張性を持たせた新たなデバイス依存情報ファイルでクエリ(問合せ)/応答用スキーマ(概要)を定義することにより実現するようである。 And in the next Windows version of the code name called Longhorn, MS has a function that automatically configures a printer device by a universal driver (also called a common device driver) installed in the OS through communication between the driver UI and the device. This will be announced at the 2004 Japan Print Driver Seminar. This automatic configuration function uses a new device-dependent information file that expands the device-dependent information file called GPD (Generic Printer Description: Generic printer description syntax definition). It seems to be realized by defining a schema (summary).
また、Microsoft社(以下、MS社)のWindows(登録商標)のXP以降のバージョンから、Bidiインタフェース(Bi-directional interfaceの略称)をサポートしている。Bidiインタフェースは、Windowsスプーラにおけるインタフェースで、ポートモニタから取得される情報を上位のモジュールであるOS(オペレーションシステム)や共通デバイスドライバに対して情報を双方向に受け渡すためのインタフェースである。
これらの仕様を用いることで、ユニバーサルドライバ(共通デバイスドライバ)は、ネットワークデバイス管理システムから公開されているインタフェース(Bidiインタフェース)を用いて、プリンタデバイス本体からデバイスオプションの装着状態を取得し、取得した結果に応じて、ユニバーサルドライバのデバイス構成情報を更新することが可能であると予想される。
Further, a Bidi interface (abbreviation of Bi-directional interface) is supported from a version of Microsoft (hereinafter referred to as MS) Windows (registered trademark) XP or later. The Bidi interface is an interface in the Windows spooler, and is an interface for bidirectionally passing information acquired from the port monitor to an OS (operation system) or a common device driver that is a higher-level module.
By using these specifications, the universal driver (common device driver) uses the interface (Bidi interface) published by the network device management system to acquire the device option installation status from the printer device itself, and acquire it. It is expected that the device configuration information of the universal driver can be updated according to the result.
ここで、PCがデバイスから情報を取得する為のプロトコルとしてはSNMP(Simple Network Management Protocol)が一般的であるが、デバイスのベンダが独自に定義したプロトコルを用いる場合もある。SNMPで情報を取得する場合には、プリンタに実装しているMIB(Management Information Base)の情報を取得することができる。 Here, SNMP (Simple Network Management Protocol) is generally used as a protocol for the PC to acquire information from the device, but a protocol uniquely defined by the device vendor may be used. When information is acquired by SNMP, MIB (Management Information Base) information mounted on the printer can be acquired.
上記の自動構成機能においては、ドライバUIとデバイスとの間の通信によりデバイスの機能情報を取得してデバイスの構成情報を生成し、ドライバUI上に表現される機能へデバイスから取得された機能情報をマッピングすることによりドライバUIを構築する。PCとデバイスの通信にSNMPを用いて上記の機能を実現する場合、一つのMIB情報とプリンタドライバのUIの一つの機能とが関連付けられていれば、プリンタドライバがデバイス依存情報内のクエリ/応答用スキーマを参照することで、容易にプリンタの構成情報をUIに反映することができる。つまり、各デバイスで自動構成機能に対応する場合には、このデバイス依存情報内に、クエリ/応答用スキーマを記述しておけば良いということになる。 In the above automatic configuration function, the function information acquired from the device to the function expressed on the driver UI by generating the device configuration information by acquiring the function information of the device by communication between the driver UI and the device A driver UI is constructed by mapping. When the above function is realized using SNMP for communication between the PC and the device, if one MIB information and one function of the UI of the printer driver are associated with each other, the printer driver can query / response in the device dependent information. The printer configuration information can be easily reflected in the UI by referring to the business schema. That is, when each device supports the automatic configuration function, a query / response schema should be described in the device-dependent information.
一般に、プリンタメーカは幅広い顧客層に対応するため、多種類のプリンタを揃える。機種が異なれば異なるプリンタドライバが必要となり、それだけ管理工数が増加することになる。そこで、プリンタドライバにおいては、機種に依存しないドライバ共通部を設け、機種依存の機能については機種依存情報を参照するようにして管理工数を低減することが行われている。特にドライバUIにおいては、非機種依存によるインターフェースをベースとして、機種依存のインターフェースを機種依存情報を参照して構築するようにすれば、開発コストを低減できる。この場合、機種依存情報とMIBによりプリンタの構成状態を取得し、取得された内容に基づいてドライバUIを構築することになる。 In general, printer manufacturers have a wide variety of printers to meet a wide range of customers. Different models require different printer drivers, which increases management man-hours. Therefore, in the printer driver, a driver common unit that does not depend on the model is provided, and the model-dependent function is referred to the model-dependent information to reduce the management man-hours. In particular, in the driver UI, if a model-dependent interface is constructed with reference to model-dependent information based on a non-model-dependent interface, the development cost can be reduced. In this case, the configuration state of the printer is acquired from the model-dependent information and the MIB, and the driver UI is constructed based on the acquired content.
しかしながら、MIBのデータの定義によっては、例えば図7に示すように、1回の問い合わせで複数の値をリストとして取得する構成を持つものがある。プリンタドライバの機種依存情報とMIBで取得されるリストの情報をドライバUIの機能にマッピングするには、リストの情報の一部(必要な項目)を抽出する必要がある。また、このリストに含まれる値の数は、同じ定義のMIBのデータでもオプションの装着状態によって変化する場合がある。例えば、図7のリストにおいて、FaxBoardが装着されていない場合、FinisherA2以降のindex番号は一つずつ繰り上がることになる。このため、リストの配列のどの位置にマッピングしたい値が含まれているのかは判断できない。さらに、抽出したデータを複数の選択肢を持つドライバの機能の一つの選択肢にマッピングする場合は、問い合わせを行ったプリンタドライバにデバイスからどの選択肢に対応した値が取得できたかを伝えなければならない。 However, depending on the definition of the MIB data, for example, as shown in FIG. 7, there is a configuration in which a plurality of values are acquired as a list by one inquiry. In order to map the model-dependent information of the printer driver and the list information acquired by the MIB to the function of the driver UI, it is necessary to extract a part of the list information (necessary items). In addition, the number of values included in this list may vary depending on the option mounting state even with MIB data having the same definition. For example, in the list of FIG. 7, when FaxBoard is not installed, the index numbers after Finisher A2 are incremented one by one. Therefore, it cannot be determined at which position in the list array the value to be mapped is included. Further, when mapping the extracted data to one option of a driver function having a plurality of options, it is necessary to inform the inquired printer driver which value corresponds to which option from the device.
これらのケースを解決するため、上述の機種依存情報とは別に、SNMP等の通信プロトコルを用いた各ベンダー独自の処理によってデバイスの構成情報を取得することで対応することが可能ではあるが、機種依存の実装が増えるため、管理工数が増加してしまうという問題がある。 In order to solve these cases, in addition to the above-mentioned model-dependent information, it is possible to cope by acquiring device configuration information by processing unique to each vendor using a communication protocol such as SNMP. There is a problem that management man-hours increase because the number of dependent implementations increases.
本発明は、上記のような課題を鑑みてなされたもので、リストとして値が定義されている情報から、機種に依存した情報に記述された情報に基づいて自動的に構成情報を取得可能とすることを目的とする。 The present invention has been made in view of the above problems, and can automatically acquire configuration information based on information described in model-dependent information from information whose values are defined as a list. The purpose is to do.
また、本発明は、リストとして値を定義された情報を複数の選択肢を持つ機能を有するプリンタドライバの機能にマッピングする場合においても、機種に依存した情報に記述された情報を元に自動的に構成情報を取得可能とすることを目的とする。 In addition, the present invention automatically maps information whose value is defined as a list to the function of a printer driver having a function having a plurality of options, based on information described in the model-dependent information. The object is to enable acquisition of configuration information.
上記の目的を達成するための本発明によるデバイス構成情報の取得方法は、
通信可能に接続されたデバイスを制御するデバイスドライバが組み込まれた情報処理装置によるデバイス構成情報の取得方法であって、
特定手段が、前記デバイスに装着可能な構成に関する記述が格納された記述ファイルを参照して、前記装着可能な構成の装着状態を示す状態情報を取得するためのキーワードを特定する特定工程と、
取得手段が、前記特定工程によって特定されたキーワードに基づいて前記デバイスへのアクセス情報を取得し、該アクセス情報を用いて該デバイスにアクセスして、前記デバイスに装着されている構成を示す状態情報を取得する取得工程と、
抽出手段が、前記取得工程で取得した状態情報が複数の構成に関する情報を含み、さらに前記記述が前記キーワードに関連して複数の選択肢を含む場合に、前記取得工程で取得した状態情報が含む複数の構成の中から、前記複数の選択肢のそれぞれに対応する構成を抽出する抽出工程と、
更新手段が、前記抽出工程で抽出した構成に基づいて、前記デバイスのデバイス構成情報を更新する更新工程とを備える。
In order to achieve the above object, a method for acquiring device configuration information according to the present invention includes:
A method for acquiring device configuration information by an information processing apparatus incorporating a device driver that controls devices that are communicably connected,
A specifying step of specifying a keyword for acquiring state information indicating a mounting state of the mountable configuration with reference to a description file storing a description related to the configuration that can be mounted on the device;
Status information indicating a configuration in which the acquisition unit acquires access information to the device based on the keyword specified in the specifying step, accesses the device using the access information, and is attached to the device An acquisition process for acquiring
When the state information acquired in the acquisition step includes information on a plurality of configurations, and the description includes a plurality of options related to the keyword, the plurality of state information acquired in the acquisition step includes An extraction step of extracting a configuration corresponding to each of the plurality of options from the configuration of
And an update unit that updates device configuration information of the device based on the configuration extracted in the extraction step.
また、本発明の他の態様による情報処理装置は以下の構成を備える。即ち、
通信可能に接続されたデバイスを制御するデバイスドライバが組み込まれた情報処理装置であって、
前記デバイスに装着可能な構成に関する記述が格納された記述ファイルを参照して、前記装着可能な構成の装着状態を示す状態情報を取得するためのキーワードを特定する特定手段と、
前記特定手段によって特定されたキーワードに基づいて前記デバイスへのアクセス情報を取得し、該アクセス情報を用いて該デバイスにアクセスして、前記デバイスに装着されている構成を示す状態情報を取得する取得手段と、
前記取得手段で取得した状態情報が複数の構成に関する情報を含み、さらに前記記述が前記キーワードに関連して複数の選択肢を含む場合、前記取得手段で取得した状態情報が含む複数の構成の中から、前記複数の選択肢のそれぞれに対応する構成の情報を抽出する抽出手段と、
前記抽出手段で抽出した構成の情報に基づいて、前記デバイスのデバイス構成情報を更新する更新手段とを備える。
An information processing apparatus according to another aspect of the present invention has the following configuration. That is,
An information processing apparatus incorporating a device driver that controls devices connected to be communicable,
A specifying means for specifying a keyword for acquiring state information indicating a mounting state of the mountable configuration with reference to a description file storing a description of the configuration mountable on the device;
Obtaining access information to the device based on the keyword specified by the specifying means, accessing the device using the access information, and acquiring status information indicating a configuration attached to the device Means,
When the status information acquired by the acquisition unit includes information on a plurality of configurations, and the description includes a plurality of options related to the keyword, from among a plurality of configurations included in the status information acquired by the acquisition unit an extraction means for extracting information of a configuration corresponding to each of the plurality of options,
Updating means for updating device configuration information of the device based on the configuration information extracted by the extraction means.
本発明によれば、リストとして値が定義されている情報(例えばMIB情報)から、機種に依存した情報(装着可能な構成に関する記述)に記述された情報に基づいて自動的に構成情報を取得することが可能となる。 According to the present invention, configuration information is automatically acquired from information (for example, MIB information) whose values are defined as a list, based on information described in model-dependent information (description about a mountable configuration). It becomes possible to do.
また、本発明によれば、リストとして値を定義された情報を複数の選択肢を持つ機能を有するプリンタドライバの機能にマッピングする場合においても、機種に依存した情報に記述された情報を元に自動的に構成情報を取得することが可能となる。 In addition, according to the present invention, even when information whose value is defined as a list is mapped to a function of a printer driver having a function having a plurality of choices, it is automatically performed based on information described in model-dependent information. Therefore, it is possible to acquire configuration information.
以下、添付の図面を参照して本発明の好適な実施形態について説明する。 Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
図1は、本実施形態におけるネットワークの構成図である。図1において、クライアントPC101,102,103およびプリンタ104は、ネットワーク105を介して相互に通信可能に接続されている。なお、本実施形態では、ネットワーク105としてLAN(Local Area Network)を想定している。
FIG. 1 is a configuration diagram of a network in the present embodiment. In FIG. 1,
図2は、クライアントPC101の概略構成を表すブロック図である。なお、クライアントPC102、103の構成も同様である。クライアントPC101は、CPU201、ROM202、外部メモリ203、キーボード204、通信部205、RAM206、ハードディスク(HD)207、ディスプレイ208、システムバス209を備えている。
FIG. 2 is a block diagram illustrating a schematic configuration of the client PC 101. The configuration of the
CPU201はシステムバス209に接続された各デバイスを統括的に制御する中央処理装置である。CPU201は、HD207に格納されているアプリケーションプログラム、プリンタ管理ユーティリティソフト、プリンタドライバ、ポートモニタ、OS、ネットワークプリンタ制御プログラム、通信プログラムなどを実行し、RAM206にプログラムの実行に必要な情報、ファイル等を一時的に格納する制御を行う。ROM202には、基本I/Oプログラム等のプログラムを記憶する。外部メモリ203には、フレキシブルディスク(FD)、CD−ROM、CD−R、CD−RW、DVD、HD、フラッシュメモリ、不揮発性のメモリカード、磁気テープなどがあり、各種記憶媒体からプログラムやデータを本コンピュータシステムにロードすることができる。
The
キーボード204は、ユーザからクライアントPCに対する入力を指示し、ディスプレイ208は、キーボード204からの入力やアプリケーションプログラムのグラフィックユーザインターフェース(GUI)の表示などを行う。プリンタドライバは印刷条件等の設定のためのGUIを有している。これにより、例えば、ユーザはプリンタ104を使用して印刷する際、印刷設定に関するウインドウを開き、プリンタの設定や印刷モードの選択を含むプリンタドライバに対する印刷処理方法の設定を行うことができるようになっている。通信部205はNICなどを備え、ネットワーク105を介して他のクライアントPC102,103やプリンタ104と通信を行う。
The
プリンタ104は、ネットワーク管理プロトコルSNMPとデータベースMIBを実装している。クライアントPC101は、プリンタ104とSNMPにて通信することにより、プリンタ104のMIBへアクセスして各種情報を取得できる。図3に示すように、クライアントPC101には、プリンタ104から情報を取得するためのプリンタ情報取得サービス(常駐プログラム)304と、プリンタ104を制御するためのプリンタドライバ300がインストールされている。プリンタドライバ300は、プリンタ情報取得サービス304を用いてプリンタ104のMIB306をアクセスし、プリンタ104の構成に関する情報を取得する。
The
図3はプリンタドライバによるプリンタの構成情報取得のための機能構成を説明するブロック図である。プリンタドライバ300は、プリンタの機種に依存しないドライバ共通部301、プリンタの機種依存の情報を格納している機種依存情報ファイル303、ドライバ共通部301によって制御され、プリンタの機種依存の処理を実現するための機種依存モジュール302を含む。
FIG. 3 is a block diagram illustrating a functional configuration for acquiring printer configuration information by the printer driver. The
ドライバ共通部301は、例えば、図4Aに示されるようなユーザインターフェース(UI)400をディスプレイ208上に表示する。UI400を表示する際に、ドライバ共通部301は機種依存情報ファイル303の内容を解析し、データをRAM206に読み込む。UI400において、「デバイス設定1」タブを選択すると、デバイス設定用画面401が表示される。ここで、デバイス名402やプリンタの外観図403は機種依存情報ファイル303の解析により取得されたものである。
For example, the driver
さて、図4Aに示したようなUI400において、構成情報取得ボタン405をクリックすると、図4Bに示すUI420が表示される。即ち、ドライバ共通部301は、RAM206に読み込まれた機種依存情報を参照して、図4Bに示すようなUIをクライアントPC101上のディスプレイモニタ208に表示する。なお、図4Bに示されるUI420は、図6(a)に示すような構成情報を含む機種依存情報ファイルをドライバ共通部301が読み込んだ場合の表示例である。
When the configuration
ここで、図6(a)に示す構成情報について説明する。図6(a)の*Featureは当該機能のUIコントロールを示しており、図6(a)の601の例では“OutputOptions”コントロールであり、図4BのUI420におけるコントロール421に対応している。また、603は“PaperDeck”コントロールであり、図4BのUI420におけるコントロール422に対応している。*Feature内に記述された各*Optionは当該*Featureの選択肢を定義したものであり、*Featureに関連付けられたUIコントロールの要素を構成している。この*Optionは互いに排他であり、*Featureは常に何れかの一つの*Optionを設定として持っている。また、*NameはUIに表示される文字列を示している。機種依存情報ファイル303には、図6(b)に示すようなプリンタの構成情報を記述することが可能であり、構成情報を記述するとUI上にはプリンタの構成情報に対応したコントロールが表示されることになる。図6に示される他の記述については後述する。
Here, the configuration information shown in FIG. * Feature in FIG. 6A indicates the UI control of the function. In the example 601 in FIG. 6A, the “OutputOptions” control corresponds to the
ドライバ共通部301は、図3に示すプリンタ情報取得サービス304から公開されているプリンタ情報取得インタフェース304aを取得することで、プリンタドライバ300に関連付けられているプリンタから構成情報を取得することができる。なお、プリンタ情報取得サービス304はオペレーティングシステム(OS)に持たせておくものとする。プリンタ情報取得インタフェース304aを用いてプリンタの構成情報を取得する際は、OSの特定のフォルダに格納されたXML形式の変換情報ファイル305に記述されている、プリンタMIBに関連付けられたキーワードを指定する。なお、この変換情報ファイルは、ベンダーによらず共通の変換情報と、ベンダーに依存する非共通の変換情報を含み、共通の変換情報はOSから提供され、非共通部分はベンダーから提供されるようにする。
The driver
ドライバ共通部301は上述の機種依存情報ファイル303の構成情報(図6(a))に記載されたQueryKeywordを用いて、プリンタ情報取得サービス304にプリンタの構成情報の問い合わせを行う。プリンタ情報取得サービス304は、インタフェース304aを介してプリンタドライバ300(ドライバ共通部301)から構成情報取得の問い合わせがくると、QueryKeywordによって指定された変換情報ファイル305を参照し、関連付けられたプリンタMIBの状態をプリンタ306に対して問い合わせ、取得した結果をプリンタドライバ300に返す。結果を取得したプリンタドライバ300は、結果に応じて構成情報を変更しUIに反映させる。
The driver
次に、プリンタドライバ300の自動構成情報取得処理について図5のフローチャートを用いて説明する。ここでは、図6(a)に示す構成情報を含む機種依存ファイル303を持つプリンタドライバ300がプリンタ104の構成情報を取得する場合を例にとって説明する。図4Bに示した通り、このフローチャートの最初の状態では、Output Optionsには、“Not Installed”が設定されているものとする。
Next, automatic configuration information acquisition processing of the
プリンタ104におけるオプションの着脱等によりプリンタ104の構成に変化が起こった場合に、プリンタ情報取得サービス304からプリンタドライバ300に対してイベントが通知される。プリンタ104における構成の変化の検出方法としては、プリンタ104からプリンタ情報取得サービス304に対して構成の変化の発生を通知するようにしてもよいし、プリンタ情報取得サービス304が所定の時間間隔でプリンタ104に対して構成を問い合わせ、構成の変化を検出するようにしてもよい。なお、図5では上記イベント通知をトリガとして構成情報取得処理を起動するが、構成情報取得処理の起動タイミングはイベント通知に限られるものではなく、プリンタドライバ300のインストール時、起動時、構成情報取得ボタン405がクリックされたときに構成情報取得処理を実行するようにする。
When a change occurs in the configuration of the
ステップS501において、ドライバ共通部301は、プリンタ情報取得サービス304からのイベント通知を受信すると、ステップS502へ進み、プリンタ情報取得サービス304からプリンタ情報取得インタフェース304aを取得する。次に、ステップS503において、ドライバ共通部301は機種依存情報ファイル303を参照して機種依存情報を取得する。ここで取得する機種依存情報には、図6(a)に示すような各機能の構成情報取得のための情報が記述されている。
In step S501, when the driver
図6(a)において、機能毎に定義された*Featureエントリ内の*ConfigQueryエントリには、ドライバ共通部301がプリンタ情報取得インタフェース304a(プリンタ構成情報取得サービス304)を用いてプリンタ104の構成情報を取得するための情報が記述されている。*ConfigQueryエントリ内の*QueryKeywordは、取得したい構成情報に対応したキーワードを指定するエントリである。例えば、プリンタドライバ300からプリンタ情報取得インタフェース304aを用いてOutputOptionsに関する構成の問い合わせをする際には、このキーワード(Finishing.OutputOptions)を指定する。プリンタ情報取得サービス304が保持しているXML形式の変換情報ファイル305には上記キーワードとプリンタMIBの対応が記述されている。従って、プリンタドライバから上記キーワードによる問い合わせが来ると、プリンタ情報取得サービス304は指定されたキーワードにマッピングされたプリンタMIBの状態を取得することができる。なお、*PickupOptionは、装着の有無を問い合わせたいOption名をLIST内に記述しておくためのエントリである。また、*Optionエントリ内の*Valueエントリは、各Optionの装着を問い合わせる際にプリンタ情報取得サービス304から返ってくる値を評価するために用いる。
In FIG. 6A, in the * ConfigQuery entry in the * Feature entry defined for each function, the driver
図5のフローチャートに戻ると、ドライバ共通部301は上記で説明したような機種依存情報を取得した後、ステップS504に進み、ステップS502で取得したプリンタ構成情報取得インタフェース304aに対して*QueryKeywordに記述されたキーワードを指定して構成情報の問い合わせを実行する。
Returning to the flowchart of FIG. 5, the driver
以下、図8の変換情報ファイルの例と、図10のフローチャートを参照して、ドライバ共通部301から構成情報の問い合わせを受けたプリンタ情報取得サービス304が実行する構成情報取得処理について説明する。
The configuration information acquisition process executed by the printer
ステップS504による問い合わせを受けたプリンタ情報取得サービス304は、指定されたキーワードにマッピングされたプリンタMIBのオブジェクトID(oid)を取得し、取得したoidを用いてSNMPプロトコルを用いてプリンタ104より構成情報を取得する。即ち、変換情報ファイル305から、QueryKeywordに記述されたキーワードに対応した記述個所を検索する(ステップS601)。そして検索された記述個所に指定されているoidでもってプリンタ104からMIB情報を取得する(ステップS602)。
Upon receiving the inquiry in step S504, the printer
図8は、プリンタ情報取得サービス304が参照するXML形式の変換情報ファイル305の例を示したものである。ステップS504で指定されたキーワード“Finishing.OutputOptions”により、図8に示す変換情報の個所が特定され、“Finishing.OutputOptions”に対してプリンタMIBのoid(=1.3.6.1…)が関連付けられている。ここで、“Finishing.OutputOptions”に対応したMIBデータとして、プリンタ104には図7のようなオプションユニット管理テーブルが実装されているとする。オプションユニット管理テーブルには、“Finishing.OutputOptions”に関連する項目のほかに、FaxBoardやPaperFoldingUnitといったような複数の項目を含むリストとなっている。このオプションユニット管理テーブルの複数の項目の中から、特定の名前を抜き出して、フィニッシャ名を取得する場合は、図8に記述してあるとおり、pickup属性に“true”を指定し、〈OutputOptions〉タグ内に、ピックアップする文字列をPickupValueとして記述しておく。
FIG. 8 shows an example of the
プリンタ情報取得サービス304は、このような指定が変換情報ファイルに存在すると、oidで特定されるMIB情報(本例では図7に示すテーブル)をプリンタから取得し、取得したテーブルの各項目とPickupValueとして記述された文字列とを比較する(ステップS603、S604)。比較した結果、図7のオプションユニット管理テーブル内に合致したものがあれば、その文字列を問い合わせ元のドライバ共通部301に返す(ステップS605、S608)。この例では、図8に示したPickupValueの“Finisher-A2”と、図7のオプションユニット管理テーブル内のIndex2における“Finisher-A2”とが合致する。よって、この合致した文字列“Finisher-A2”をドライバ共通部301に返すことになる。また、合致する文字列がない場合には、“FALSE”をドライバ共通部301に返す(ステップS605、S606)。
If such a designation exists in the conversion information file, the printer
なお、pickup属性に“true”が指定されていない場合は、ステップS603からステップS607へ進み、ステップS602で取得されたMIB情報は、要求された機能のみに関する情報であるとして、そのままドライバ共通部301へ返す。また、図7に示すリストの他の項目の情報は、それぞれに対応した機能の情報に従って検索がなされた場合に取得される。例えば、図6(a)の602を参照して情報取得が実行された場合は、図7のStapleUnitが抽出され、ドライバ共通部301へ通知されることになる。
If “true” is not specified in the pickup attribute, the process advances from step S603 to step S607, and the MIB information acquired in step S602 is assumed to be information related to only the requested function, and the driver
図5に戻り、以上のようにして、ステップS505にてドライバ共通部301はプリンタ情報取得サービス304から結果を取得すると、ステップS506において、取得した値を機種依存情報内の*PickupOptionに列挙されているOptionに関連付けられた*Valueの中身と対比、評価する。そして、合致したオプションがあれば、ドライバ管理部は、構成情報を更新する(ステップS507)。ここでは、プリンタ情報取得サービス304から“Finisher-A2”が返るので、図6の(b)に示すように、構成情報における*Feature:OutputOptionの状態を、Finisher-A2に設定する。一方、プリンタ情報取得サービス304から、“FALSE”が返ってきた場合や、機種依存情報内に合致した文字列がない場合には、*Valueに、FALSEが指定されているものを設定する。図6(a)の例では、NotInstalledオプションが設定されることになる。さらに、*ValueにFALSEが指定されているオプションが存在しない場合には、*DefaultOptionに記述されているデフォルトのオプションが設定される。
Returning to FIG. 5, as described above, when the driver
次に、ステップS508において、機種依存情報内のすべての構成情報について上記処理を終えたか否かを判断し、すべての構成情報について処理を終えたならば本処理を終了する。一方、ステップS508で未処理の構成情報が存在すると判定された場合は、ステップS503に戻り、上記処理を繰り返す。 Next, in step S508, it is determined whether or not the above processing has been completed for all the configuration information in the model-dependent information. If the processing has been completed for all the configuration information, this processing is terminated. On the other hand, if it is determined in step S508 that there is unprocessed configuration information, the process returns to step S503 and the above process is repeated.
この一連の自動構成情報取得処理の結果、プリンタドライバのUIは図4Bの状態から図9に示すような状態に変化し、現在のプリンタの構成情報がプリンタドライバUIに反映されることになる(図4Bの421が図9ではFinisher-A2になっている)。 As a result of this series of automatic configuration information acquisition processing, the UI of the printer driver changes from the state of FIG. 4B to the state shown in FIG. 9, and the current printer configuration information is reflected in the printer driver UI ( In FIG. 9, 421 in FIG. 4B is Finisher-A2.
以上のように、本実施形態によれば、リストからピックアップすべきオプションの情報を機種依存情報ファイル303内に記述しておくだけで、ドライバ共通部301はリストとして取得されたデバイスの構成情報から任意の情報を特定し、取得することができる。即ち、構成情報がリストで取得されるような場合でも、ドライバの共通性を維持しながら、プリンタドライバの構成情報の自動更新を実現することができる。なお、図8に示す変換情報においてPickupValueの数は構成の選択肢の数に対応する。例えば、選択肢が一つしかない場合はPickupValue1つだけ記述されることになる。また、MIBへアクセスした結果、取得対象の構成に関する情報のみが得られる項目については、図8に示す変換情報におけるpickupの値は“false”に設定されたものとなる。
As described above, according to the present embodiment, the driver
<その他の実施形態>
なお、上記実施形態では、デバイスとしてプリンタを想定しているが、他のデバイスとしてFAX、複写機、複合機、ルータなどあらゆる機器において同様であり、これに限るものではない。
<Other embodiments>
In the above embodiment, a printer is assumed as a device. However, the other devices are the same in all devices such as a FAX, a copier, a multifunction peripheral, and a router, and are not limited thereto.
また、上記実施形態のデバイス管理システムは、1つのサービス(常駐プロセス)と複数のクライアント(プリンタドライバ、プリンタ管理アプリケーション)を想定しているが、デバイス管理システムは、複数のプロセスで実現されていても、単一のプロセスで実現されていても良い。同様にデバイス管理システムは、複数の端末(PC)からなる構成であっても、単一の端末からなる構成であっても良い。本実施形態では、プリンタから情報を取得するためのプロトコルとしてSNMPを想定しているが、あらゆる接続形態、通信プロトコルにおいて同様であり、これに限るものではない。 The device management system of the above embodiment assumes one service (resident process) and a plurality of clients (printer driver, printer management application), but the device management system is realized by a plurality of processes. Alternatively, it may be realized by a single process. Similarly, the device management system may be composed of a plurality of terminals (PC) or may be composed of a single terminal. In this embodiment, SNMP is assumed as a protocol for acquiring information from a printer, but the same applies to all connection forms and communication protocols, and the present invention is not limited to this.
さらに、上記実施形態では、情報取得サービス304がプリンタのMIB情報を取得し、取得したMIB情報が複数の構成情報を含むリストの場合にはQueryKeywordに対応した構成情報をリストから抽出し、抽出した構成情報をドライバ共通部301へ通知している。しかしながら、ドライバ共通部301が情報取得サービス304よりリストの形態のまま構成情報を受け取り、図6の(a)に示した*Valueとリスト内の情報(文字列)を比較することで必要な構成情報を抽出するようにしてもよい。
Furthermore, in the above-described embodiment, the
なお、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、達成されることは言うまでもない。 An object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiments to a system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium. Needless to say, this can also be achieved by reading and executing the program code stored in the.
この場合、記憶媒体から読出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。 In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.
プログラムコードを供給するための記憶媒体としては、例えば、フレキシブルディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROMなどを用いることができる。 As a storage medium for supplying the program code, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
また、コンピュータが読出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
さらに、記憶媒体から読出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。 Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.
Claims (10)
特定手段が、前記デバイスに装着可能な構成に関する記述が格納された記述ファイルを参照して、前記装着可能な構成の装着状態を示す状態情報を取得するためのキーワードを特定する特定工程と、
取得手段が、前記特定工程によって特定されたキーワードに基づいて前記デバイスへのアクセス情報を取得し、該アクセス情報を用いて該デバイスにアクセスして、前記デバイスに装着されている構成を示す状態情報を取得する取得工程と、
抽出手段が、前記取得工程で取得した状態情報が複数の構成に関する情報を含み、さらに前記記述が前記キーワードに関連して複数の選択肢を含む場合に、前記取得工程で取得した状態情報が含む複数の構成の中から、前記複数の選択肢のそれぞれに対応する構成を抽出する抽出工程と、
更新手段が、前記抽出工程で抽出した構成に基づいて、前記デバイスのデバイス構成情報を更新する更新工程とを備えることを特徴とするデバイス構成情報の取得方法。 A method for acquiring device configuration information by an information processing apparatus incorporating a device driver that controls devices that are communicably connected,
A specifying step of specifying a keyword for acquiring state information indicating a mounting state of the mountable configuration with reference to a description file storing a description related to the configuration that can be mounted on the device;
Status information indicating a configuration in which the acquisition unit acquires access information to the device based on the keyword specified in the specifying step, accesses the device using the access information, and is attached to the device An acquisition process for acquiring
When the state information acquired in the acquisition step includes information on a plurality of configurations, and the description includes a plurality of options related to the keyword, the plurality of state information acquired in the acquisition step includes An extraction step of extracting a configuration corresponding to each of the plurality of options from the configuration of
An update means comprising: an update step of updating device configuration information of the device based on the configuration extracted in the extraction step.
前記特定工程では、前記共通処理部が前記機種依存情報を参照することにより実行されることを特徴とする請求項1に記載のデバイス構成情報の取得方法。 The device driver includes a common processing unit common to a plurality of types of devices, and model-dependent information that provides model-dependent information for the common processing unit to implement processing according to the model. Includes a description associating a configuration that can be mounted on the device with a function of the device driver,
2. The device configuration information acquisition method according to claim 1, wherein in the specifying step, the common processing unit is executed by referring to the model-dependent information.
前記特定工程は、前記検出工程による構成の変化の発生の検出に応じて起動されることを特徴とする請求項1に記載のデバイス構成情報の取得方法。 A detection step of detecting the occurrence of a configuration change in the device;
2. The device configuration information acquisition method according to claim 1, wherein the specifying step is started in response to detection of occurrence of a change in configuration in the detection step.
前記デバイスに装着可能な構成に関する記述が格納された記述ファイルを参照して、前記装着可能な構成の装着状態を示す状態情報を取得するためのキーワードを特定する特定手段と、
前記特定手段によって特定されたキーワードに基づいて前記デバイスへのアクセス情報を取得し、該アクセス情報を用いて該デバイスにアクセスして、前記デバイスに装着されている構成を示す状態情報を取得する取得手段と、
前記取得手段で取得した状態情報が複数の構成に関する情報を含み、さらに前記記述が前記キーワードに関連して複数の選択肢を含む場合、前記取得手段で取得した状態情報が含む複数の構成の中から、前記複数の選択肢のそれぞれに対応する構成の情報を抽出する抽出手段と、
前記抽出手段で抽出した構成の情報に基づいて、前記デバイスのデバイス構成情報を更新する更新手段とを備えることを特徴とする情報処理装置。 An information processing apparatus incorporating a device driver that controls devices connected to be communicable,
A specifying means for specifying a keyword for acquiring state information indicating a mounting state of the mountable configuration with reference to a description file storing a description of the configuration mountable on the device;
Obtaining access information to the device based on the keyword specified by the specifying means, accessing the device using the access information, and acquiring status information indicating a configuration attached to the device Means,
When the status information acquired by the acquisition unit includes information on a plurality of configurations, and the description includes a plurality of options related to the keyword, from among a plurality of configurations included in the status information acquired by the acquisition unit an extraction means for extracting information of a configuration corresponding to each of the plurality of options,
An information processing apparatus comprising: update means for updating device configuration information of the device based on configuration information extracted by the extraction means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004068155A JP4458884B2 (en) | 2004-03-10 | 2004-03-10 | Device configuration information acquisition method and information processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004068155A JP4458884B2 (en) | 2004-03-10 | 2004-03-10 | Device configuration information acquisition method and information processing apparatus |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2005258721A JP2005258721A (en) | 2005-09-22 |
JP2005258721A5 JP2005258721A5 (en) | 2007-01-25 |
JP4458884B2 true JP4458884B2 (en) | 2010-04-28 |
Family
ID=35084383
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004068155A Expired - Fee Related JP4458884B2 (en) | 2004-03-10 | 2004-03-10 | Device configuration information acquisition method and information processing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4458884B2 (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007241877A (en) * | 2006-03-10 | 2007-09-20 | Ricoh Co Ltd | Print controller, print control method, print control program, and storage medium |
JP4783225B2 (en) * | 2006-07-04 | 2011-09-28 | 株式会社リコー | Print control program and information processing apparatus |
JP4870621B2 (en) | 2006-09-15 | 2012-02-08 | 株式会社リコー | Information processing apparatus, method, system, program, and recording medium thereof |
JP5353993B2 (en) * | 2006-09-15 | 2013-11-27 | 株式会社リコー | Information processing apparatus, method, system, program, and recording medium thereof |
JP5173354B2 (en) * | 2007-10-22 | 2013-04-03 | 京セラドキュメントソリューションズ株式会社 | Printing system and printing program |
JP2009169646A (en) * | 2008-01-16 | 2009-07-30 | Kyocera Mita Corp | Device setting system and device setting program |
JP2010072804A (en) | 2008-09-17 | 2010-04-02 | Ricoh Co Ltd | Drive control device and program |
JP5617386B2 (en) | 2010-07-05 | 2014-11-05 | ブラザー工業株式会社 | Control device, image processing system, and program |
JP6085982B2 (en) * | 2013-02-05 | 2017-03-01 | 株式会社リコー | Program, information processing apparatus and system |
US10547495B2 (en) * | 2017-12-22 | 2020-01-28 | Kyocera Document Solutions Inc. | Information processing apparatus, recording medium, and information processing method |
JP7278772B2 (en) * | 2018-12-28 | 2023-05-22 | キヤノン株式会社 | Information processing device, control method and application program |
JP7255209B2 (en) * | 2019-01-31 | 2023-04-11 | ブラザー工業株式会社 | Support program, information processing device, and printing method |
CN113709196B (en) * | 2020-05-20 | 2023-11-14 | 奇安信科技集团股份有限公司 | Data extraction method, apparatus, computer device, medium, and program product |
-
2004
- 2004-03-10 JP JP2004068155A patent/JP4458884B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2005258721A (en) | 2005-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220374182A1 (en) | Information processing apparatus, method, system, and medium, with setup page that shows information indicating functions | |
US7316022B2 (en) | Information processing apparatus, information processing method, alternate response apparatus, response method, control program, and network system | |
US9602678B2 (en) | Peripheral device control system and method | |
US7908609B2 (en) | Information processing apparatus with device driver installation control | |
US8405852B2 (en) | Image forming system using a management apparatus to manage software components | |
JP4459754B2 (en) | System and method for driving a policy to query a device | |
US8640148B2 (en) | Information processing apparatus, information processing method and storage medium | |
US8578062B2 (en) | Method and apparatus for enabling enhanced USB interaction | |
US8773691B2 (en) | Printing control apparatus, printing control method, and storage medium | |
JP6816781B2 (en) | Print control program, information processing device and information processing system | |
JP4458884B2 (en) | Device configuration information acquisition method and information processing apparatus | |
US20110261396A1 (en) | Control device for managing drivers | |
US20120059916A1 (en) | Network device management system, network device management apparatus, client apparatus, and network device management method | |
US8422040B2 (en) | Image forming system and method, management apparatus, and recording medium | |
JP5166300B2 (en) | Image forming apparatus and image forming system | |
EP1898306A1 (en) | Method and apparatus for variably enabling USB interaction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061204 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061204 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091116 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100115 |
|
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: 20100205 |
|
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: 20100209 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4458884 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: 20130219 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140219 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |