JP2016099666A - Information processing device, information processing method, and program - Google Patents

Information processing device, information processing method, and program Download PDF

Info

Publication number
JP2016099666A
JP2016099666A JP2014233795A JP2014233795A JP2016099666A JP 2016099666 A JP2016099666 A JP 2016099666A JP 2014233795 A JP2014233795 A JP 2014233795A JP 2014233795 A JP2014233795 A JP 2014233795A JP 2016099666 A JP2016099666 A JP 2016099666A
Authority
JP
Japan
Prior art keywords
device driver
name
driver
information processing
registry
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
Application number
JP2014233795A
Other languages
Japanese (ja)
Inventor
佑弥 田中
Yuya Tanaka
佑弥 田中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2014233795A priority Critical patent/JP2016099666A/en
Publication of JP2016099666A publication Critical patent/JP2016099666A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To display a name by which a user can easily identify a device.SOLUTION: An information processing device starts a device driver for controlling a device with an administrator authority and thereby causes the started device driver to store name information obtained from the device controlled by the device driver, in a registry; and then, displays a name corresponding to the device driver in a display device on the basis of the name information stored in the registry.SELECTED DRAWING: Figure 8

Description

本発明は、情報端末装置と画像形成装置で構成された情報処理方法に関する。   The present invention relates to an information processing method including an information terminal device and an image forming apparatus.

画像読取装置等のデバイスが情報処理端末に接続されたときに、情報処理端末のOS(オペレーティングシステム)がPlugAndPlay(以下PnPとも称する)のイベントを検知する技術がある。そのイベントが検知された際に、OSはデバイス毎に搭載される機種固有のデバイスID情報を基にデバイスドライバをインストールする。よってデバイスドライバが機種毎に用意されている場合、デバイスが情報処理端末に接続されることで、OSはデバイスの機種に個別に対応するデバイスドライバをインストールすることができる。   There is a technique in which an OS (operating system) of an information processing terminal detects an event of PlugAndPlay (hereinafter also referred to as PnP) when a device such as an image reading apparatus is connected to the information processing terminal. When the event is detected, the OS installs a device driver based on the device ID information unique to the model installed for each device. Therefore, when a device driver is prepared for each model, the OS can install a device driver corresponding to each device model by connecting the device to the information processing terminal.

また特許文献1には、複数機種を制御可能なデバイスドライバ(以下クラスドライバとも称する)が記載されている。OSは複数機種に共通の共通ID情報をデバイスから取得することで、上記のクラスドライバをインストールすることができる。この構成によれば、機種の異なるデバイスに同一の共通ID情報を搭載させることで、複数機種のいずれかが情報処理端末に接続された場合に、当該複数機種に共通のクラスドライバをインストールすることができる。この構成によれば、機種毎にデバイスドライバを用意する必要はなく、また例えば将来販売されるデバイスにも共通ID情報を搭載させることで、既に情報処理端末が保持しているクラスドライバで当該デバイスを制御可能にすることもできる。   Patent Document 1 describes a device driver (hereinafter also referred to as a class driver) that can control a plurality of models. The OS can install the above class driver by acquiring common ID information common to a plurality of models from the device. According to this configuration, by installing the same common ID information on devices of different models, when any of the multiple models is connected to the information processing terminal, the class driver common to the multiple models can be installed Can do. According to this configuration, it is not necessary to prepare a device driver for each model. For example, by installing common ID information in a device to be sold in the future, the device can be used with a class driver already held by the information processing terminal. Can also be made controllable.

特開2014−56353号公報JP 2014-56353 A

デバイスの名称はデバイスドライバに対応するセットアップファイルに記載されており、デバイスドライバのインストール時にデバイス管理レジストリにその名称情報が登録される。そしてデバイスの名称は、デバイス管理レジストリに登録された名称でOSが提供するUI上に表示される。そのためユーザは表示画面に表示されたデバイスの名称を基に、所望のデバイスを選択することができる。   The name of the device is described in a setup file corresponding to the device driver, and the name information is registered in the device management registry when the device driver is installed. The device name is displayed on the UI provided by the OS under the name registered in the device management registry. Therefore, the user can select a desired device based on the name of the device displayed on the display screen.

しかしながら、特許文献1のように複数のデバイスが同一のクラスドライバで制御される場合、デバイスの名称はデバイスドライバに対応付けられているため、当該複数のデバイスに同様の名称が割り振られてしまう。するとユーザが複数のデバイスから所望のデバイスを選択する際に同様の名称が複数表示されてしまい、ユーザが所望のデバイスを容易に判別することができない場合があった。   However, when a plurality of devices are controlled by the same class driver as in Patent Document 1, since the device names are associated with the device drivers, the same names are assigned to the plurality of devices. Then, when the user selects a desired device from a plurality of devices, a plurality of similar names are displayed, and the user may not be able to easily determine the desired device.

そこで本発明は、ユーザがデバイスを容易に判別することができる名称を表示させることができる情報処理装置、情報処理方法、およびプログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an information processing apparatus, an information processing method, and a program capable of displaying a name by which a user can easily identify a device.

上述の課題を解決するための本発明の情報処理装置は、デバイスを制御するためのデバイスドライバを管理者権限で起動させることにより、当該起動されたデバイスドライバに、当該デバイスドライバにより制御されるデバイスから取得された名称情報をレジストリに格納させる格納制御手段と、前記格納制御手段により前記レジストリに格納された名称情報に基づき、前記デバイスドライバに対応する名称を表示装置に表示させる表示制御手段と、を有することを特徴とする。   An information processing apparatus according to the present invention for solving the above-described problem is a device controlled by a device driver controlled by the device driver by starting the device driver for controlling the device with administrator authority. Storage control means for storing the name information acquired from the registry, display control means for displaying the name corresponding to the device driver on the display device based on the name information stored in the registry by the storage control means, It is characterized by having.

本発明によれば、デバイスドライバにより制御されるデバイスから取得された名称情報に基づく名称が表示される。よってユーザがデバイスを容易に判別することができる名称を表示させることができる。   According to the present invention, the name based on the name information acquired from the device controlled by the device driver is displayed. Therefore, a name that allows the user to easily identify the device can be displayed.

画像読取装置100の構成を示す図である。1 is a diagram illustrating a configuration of an image reading apparatus 100. FIG. 情報処理端末200の構成を示す図である。2 is a diagram illustrating a configuration of an information processing terminal 200. FIG. 情報処理端末200のソフトウェア構成を示す図である。2 is a diagram illustrating a software configuration of an information processing terminal 200. FIG. OS302の機能を説明するための図である。It is a figure for demonstrating the function of OS302. デバイス選択画面501を示す図である。It is a figure which shows the device selection screen. OS302がデバイスドライバ303を起動する処理を示したフローチャートである。5 is a flowchart showing processing for starting a device driver 303 by an OS 302. デバイスドライバ303による起動時の処理を示したフローチャートである。5 is a flowchart showing processing at the time of activation by a device driver 303. デバイスドライバ303のインストールが行われた後の処理の流れを説明する図である。FIG. 10 is a diagram for explaining a flow of processing after device driver 303 is installed. デバイス管理レジストリ404に登録されたデバイスドライバ名称の例を示す図である。6 is a diagram illustrating an example of device driver names registered in a device management registry 404. FIG. OS302がデバイスドライバ303を起動する処理を示したフローチャートである。5 is a flowchart showing processing for starting a device driver 303 by an OS 302. デバイスドライバ303が起動された時の処理を示したフローチャートである。5 is a flowchart showing processing when a device driver 303 is activated. OS302がデバイス選択画面501表示する際の処理を示すフローチャートである。10 is a flowchart illustrating processing when the OS 302 displays a device selection screen 501. OS302がデバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称を更新する際のシーケンスを示す図である。5 is a diagram illustrating a sequence when the OS 302 updates a device driver name registered in device information of a device management registry 404. FIG.

以下、添付図面を参照して本発明の実施の形態を説明する。尚、以下の実施の形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施の形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。   Embodiments of the present invention will be described below with reference to the accompanying drawings. The following embodiments do not limit the present invention according to the claims, and all combinations of features described in the present embodiments are essential to the solution means of the present invention. Not exclusively.

<実施形態1>
図1は本実施形態における画像読取装置100の構成を示す図である。画像読取装置100は、プリンタ機能、スキャナ機能を備えており、ネットワークを経由してそれぞれの機能サービスを提供することができる。画像読取装置100においてプリンタ機能はプリンタ部101で、スキャナ機能はスキャナ部102で実現される。プリンタ部101は、中央演算装置105がネットワーク接続部111を介して外部から受信したプリントデータを、インクジェット方式や電子写真方式などによって印刷用紙にプリントする。スキャナ部102は、原稿台にセットされた原稿を光学式に読み取って電子データに変換する。中央演算装置105は、この電子データを指定されたファイル形式に変換してネットワーク接続部111を介して外部装置に送信することができる。
<Embodiment 1>
FIG. 1 is a diagram illustrating a configuration of an image reading apparatus 100 according to the present embodiment. The image reading apparatus 100 has a printer function and a scanner function, and can provide each function service via a network. In the image reading apparatus 100, the printer function is realized by the printer unit 101, and the scanner function is realized by the scanner unit 102. The printer unit 101 prints print data received from the outside by the central processing unit 105 via the network connection unit 111 on printing paper by an inkjet method, an electrophotographic method, or the like. The scanner unit 102 optically reads a document set on a document table and converts it into electronic data. The central processing unit 105 can convert the electronic data into a designated file format and transmit it to an external device via the network connection unit 111.

画像読取装置100は各機能部を制御するための中央演算装置105、中央演算装置105が読み出すプログラムコードなどを格納するROMなどのプログラムメモリ106を備える。また、各サービス実行時に画像データなどを一時格納したり、バッファリングしたりするためのRAMなどのワークメモリ107を備える。即ち、中央演算装置105がプログラムメモリ106に格納されているプログラムをワークメモリ107上で実行することにより、画像読取装置100の各部を制御することができる。   The image reading apparatus 100 includes a central processing unit 105 for controlling each functional unit, and a program memory 106 such as a ROM that stores program codes read by the central processing unit 105. In addition, a work memory 107 such as a RAM for temporarily storing or buffering image data or the like when executing each service is provided. That is, when the central processing unit 105 executes the program stored in the program memory 106 on the work memory 107, each unit of the image reading apparatus 100 can be controlled.

また画像読取装置100は、各スイッチやタッチパネル等の操作デバイスを含む操作部109を備える。また操作部109は、画像やアイコン等の各種の情報を表示するための表示デバイスを含み、中央演算装置105による制御により表示を行うことができる。なお、操作部109がタッチパネルを含む場合、操作デバイスとしてタッチパッドと、表示デバイスとが一体となって構成される。   The image reading apparatus 100 includes an operation unit 109 including operation devices such as switches and a touch panel. The operation unit 109 includes a display device for displaying various information such as images and icons, and can perform display under the control of the central processing unit 105. When the operation unit 109 includes a touch panel, a touch pad and a display device are integrally configured as an operation device.

また画像読取装置100は、画像読取装置100をネットワークに接続して各種通信を行うためのネットワーク通信部110と、ネットワーク通信部110をネットワーク媒体に接続するためのネットワーク接続部111を備える。ネットワーク通信部110は、中央演算装置105による制御に従って、ネットワーク接続部111を介して各種のデータを送受信することができる。ネットワーク通信部110は有線LANと無線LANの内、少なくともいずれかに対応する。有線LAN対応の場合、ネットワーク接続部111は有線LANのケーブルを画像読取装置100に接続するためのコネクタであり、無線LAN対応の場合、ネットワーク接続部111はアンテナである。またさらに画像読取装置100は不揮発性フラッシュメモリなどのメモリ112を備える。メモリ112には、例えばネットワーク通信部110が受信したパケットの送信元情報が格納される。以上説明した各機能部は信号線113により接続される。   The image reading apparatus 100 also includes a network communication unit 110 for connecting the image reading apparatus 100 to a network to perform various communications, and a network connection unit 111 for connecting the network communication unit 110 to a network medium. The network communication unit 110 can transmit and receive various types of data via the network connection unit 111 according to control by the central processing unit 105. The network communication unit 110 corresponds to at least one of a wired LAN and a wireless LAN. In the case of wired LAN compatibility, the network connection unit 111 is a connector for connecting a wired LAN cable to the image reading apparatus 100, and in the case of wireless LAN compatibility, the network connection unit 111 is an antenna. The image reading apparatus 100 further includes a memory 112 such as a nonvolatile flash memory. In the memory 112, for example, transmission source information of a packet received by the network communication unit 110 is stored. Each functional unit described above is connected by a signal line 113.

図2は、本実施形態における情報処理端末200の構成を示す図である。図2において、201は情報処理端末200の各部を制御するためのCPUである。202はCPU201が読み出すアプリケーションプログラムやOS(Operation System)などを格納し、また各種ファイルなどを格納するディスク装置である。203はCD−ROMなどの外部記憶媒体の内容を読み出すための外部ディスク読み取り装置であり、204はCPU201が必要に応じてデータの一時的格納、バッファリング等を行うためのメモリである。CPU201はディスク装置202に格納されている各種のプログラムをメモリ204において実行することにより、情報処理端末200の各部を制御することができる。   FIG. 2 is a diagram illustrating a configuration of the information processing terminal 200 in the present embodiment. In FIG. 2, 201 is a CPU for controlling each part of the information processing terminal 200. Reference numeral 202 denotes a disk device that stores an application program read by the CPU 201, an OS (Operation System), and the like, and stores various files. Reference numeral 203 denotes an external disk reading device for reading the contents of an external storage medium such as a CD-ROM. Reference numeral 204 denotes a memory for the CPU 201 to temporarily store data, buffer data, and the like as necessary. The CPU 201 can control each unit of the information processing terminal 200 by executing various programs stored in the disk device 202 in the memory 204.

205はLCDなどを含む表示部、206はキーボードやマウスなどによる操作部である。なお表示部205、操作部206はタッチパネルとして構成されてもよい。また表示部205、操作部206は情報処理端末200が備えてもよいし、または情報処理端末200にUSB等のインタフェースを介して接続される外部の表示デバイス、操作デバイスであってもよい。   Reference numeral 205 denotes a display unit including an LCD, and 206 denotes an operation unit using a keyboard or a mouse. The display unit 205 and the operation unit 206 may be configured as a touch panel. The display unit 205 and the operation unit 206 may be provided in the information processing terminal 200, or may be an external display device or operation device connected to the information processing terminal 200 via an interface such as a USB.

207は情報処理端末200をネットワークに接続して各種通信を行うためのネットワーク通信部、208はネットワーク通信部207をネットワーク媒体に接続するためのネットワーク接続部である。画像読取装置100と同様に、ネットワーク通信部207とネットワーク接続部208は、有線LANと無線LANの内、少なくともいずれかに対応する。また画像読取装置100に内蔵のネットワーク通信部110及びネットワーク接続部111と同様に、対応LANに応じて必要な機能及び形態をとる。209は各部を接続するための信号線である。210は各種周辺装置とUSBインタフェースを介して通信するためのUSB通信部、211はUSBコネクタなどのUSB接続部である。   Reference numeral 207 denotes a network communication unit for connecting the information processing terminal 200 to a network to perform various communications, and 208 denotes a network connection unit for connecting the network communication unit 207 to a network medium. Similar to the image reading apparatus 100, the network communication unit 207 and the network connection unit 208 correspond to at least one of a wired LAN and a wireless LAN. In addition, similar to the network communication unit 110 and the network connection unit 111 built in the image reading apparatus 100, the necessary functions and modes are taken according to the corresponding LAN. Reference numeral 209 denotes a signal line for connecting each part. A USB communication unit 210 communicates with various peripheral devices via a USB interface, and a USB connection unit 211 such as a USB connector.

図3は情報処理端末200のソフトウェア構成を示す図である。なお図3に示す各部はプログラムモジュールとしてディスク装置202に格納されており、CPU201が各プログラムモジュールをメモリ204上で実行することで、図3に示す各部の機能が実現される。   FIG. 3 is a diagram illustrating a software configuration of the information processing terminal 200. Each unit shown in FIG. 3 is stored in the disk device 202 as a program module, and the function of each unit shown in FIG. 3 is realized when the CPU 201 executes each program module on the memory 204.

アプリケーションソフトウェア301は、APIを利用して、OS302に画像取得を指示することができる。APIには、例えばWindows(登録商標)等の情報処理端末200のオペレーティングシステム(OS)302で実装されたWIA(Windows(登録商標) Imaging Acquisition)400である。またはベンダー独自の規格に基づいたAPIでもよい。またOS302は、デバイスドライバ303が実装したAPIを呼び出すことで、デバイスドライバ303と通信することができる。デバイスドライバ303は、画像読取装置100に搭載されたファームウェアを制御するための制御コマンドを画像読取装置に送り、アプリケーションから指示された画像の取得を行う。ファームウェアが搭載されていない画像読取装置の場合、画像読取装置100の各モジュールの制御レジスタにアクセスし、シェーディングの制御、モータスピードの設定、画像読み取りのためのフロー制御を行う。バスドライバ304はパラレル、USB、IEEE1394、SCSI、LAN、Wireless LAN等のインタフェースに応じて画像読取装置100との通信制御を行う。   The application software 301 can instruct the OS 302 to acquire an image using an API. The API is, for example, WIA (Windows (registered trademark) Imaging Acquisition) 400 implemented by the operating system (OS) 302 of the information processing terminal 200 such as Windows (registered trademark). Alternatively, an API based on a vendor-specific standard may be used. Further, the OS 302 can communicate with the device driver 303 by calling an API implemented by the device driver 303. The device driver 303 sends a control command for controlling firmware installed in the image reading apparatus 100 to the image reading apparatus, and acquires an image instructed by the application. In the case of an image reading apparatus not equipped with firmware, the control register of each module of the image reading apparatus 100 is accessed to perform shading control, motor speed setting, and flow control for image reading. The bus driver 304 performs communication control with the image reading apparatus 100 according to an interface such as parallel, USB, IEEE1394, SCSI, LAN, and wireless LAN.

なお情報処理端末200は、複数のアプリケーションソフトウェア301、複数のデバイスドライバ303を格納することが可能である。   The information processing terminal 200 can store a plurality of application software 301 and a plurality of device drivers 303.

図4は、OS302の機能を説明するための図である。ドライバストアー401は、デバイスドライバ303を一時的にインストールする領域である。OS出荷時にドライバストアー401にデバイスドライバ303をインストールしておくことができる。これにより、情報処理端末200に画像読取装置100が接続された時に、画像読取装置100から取得した情報を基に、OS302がドライバストアー401の中からデバイスドライバ303を探してインストールすることが可能となる。よって画像読取装置100のデバイスドライバを例えばWeb上からダウンロードしなくても、当該デバイスドライバをインストールすることができる。またOS出荷時だけでなく、例えばWebやCD−ROM等の外部のメモリからデバイスドライバがインストールされるときにも、ドライバストアー401に当該デバイスドライバ303が格納される。   FIG. 4 is a diagram for explaining the functions of the OS 302. The driver store 401 is an area where the device driver 303 is temporarily installed. The device driver 303 can be installed in the driver store 401 when the OS is shipped. Accordingly, when the image reading apparatus 100 is connected to the information processing terminal 200, the OS 302 can search for and install the device driver 303 from the driver store 401 based on information acquired from the image reading apparatus 100. Become. Therefore, the device driver can be installed without downloading the device driver of the image reading apparatus 100 from the Web, for example. The device driver 303 is stored in the driver store 401 not only when the OS is shipped, but also when the device driver is installed from an external memory such as the Web or CD-ROM.

さらにドライバストアー401には、デバイスドライバ303に対応するセットアップファイルが、デバイスドライバ303と対応付けられて格納される。OS出荷時にはセットアップファイルがデバイスドライバとともに格納される。Webや外部メモリからデバイスドライバがインストールされる場合、セットアップファイルがデバイスドライバとともに取得され、両者が対応付けられてドライバストアー401に格納される。   Further, a setup file corresponding to the device driver 303 is stored in the driver store 401 in association with the device driver 303. When the OS is shipped, the setup file is stored together with the device driver. When a device driver is installed from the Web or an external memory, a setup file is acquired together with the device driver, and both are associated with each other and stored in the driver store 401.

セットアップファイルには、当該セットアップファイルに対応するデバイスドライバ名称が含まれる。そして後述する処理によりデバイスドライバがインストールされるときに、セットアップファイルに含まれるデバイスドライバ名称がデバイス管理レジストリ404に格納され、そのデバイスドライバ名称が表示部205に表示される。   The setup file includes a device driver name corresponding to the setup file. When a device driver is installed by a process described later, the device driver name included in the setup file is stored in the device management registry 404 and the device driver name is displayed on the display unit 205.

PnP検知プログラム登録領域402は、画像読取装置100が情報処理端末200に接続されたときにPlugAndPlay(以下PnPとも称する)が発生した時に実行されるPnP検知プログラムが登録されている領域である。このPnP検知プログラムによれば、接続時に画像読取装置100から取得された情報に対応するデバイスドライバが自動的にインストールされる。具体的には、PnP検知プログラム登録領域402にOS302が所持するドライバインストーラーが格納されており、PnP発生時にOS302が所持するドライバインストーラーが起動されることで、デバイスドライバが自動的にインストールされる。なおドライバインストーラーは、PnPで発生した画像読取装置100のデバイスIDまたは共通ID情報に基づき、ドライバストアー401において当該デバイスIDまたは共通ID情報に対応するデバイスドライバ303を探索してインストールする。また本実施形態ではUSBなどのPnPを一例として取り上げるが、画像読取装置100の接続をOS302が検知する方法であれば他の方式であっても良い。例えばネットワーク接続で発生するUniversal Plug And Play(UPnP)や、近距離無線通信(NFC、Near Field Communication)を利用したペアリング操作による方式であってもよい。WIA403は、OS標準の画像入力APIであるWIAが格納されている領域である。WIAを利用することで、アプリケーションと画像読取装置100との相互通信が可能となる。   The PnP detection program registration area 402 is an area in which a PnP detection program that is executed when a Plug And Play (hereinafter also referred to as PnP) occurs when the image reading apparatus 100 is connected to the information processing terminal 200 is registered. According to the PnP detection program, a device driver corresponding to information acquired from the image reading apparatus 100 at the time of connection is automatically installed. Specifically, the driver installer possessed by the OS 302 is stored in the PnP detection program registration area 402, and the device driver is automatically installed when the driver installer possessed by the OS 302 is activated when PnP occurs. The driver installer searches and installs the device driver 303 corresponding to the device ID or common ID information in the driver store 401 based on the device ID or common ID information of the image reading apparatus 100 generated by PnP. In this embodiment, PnP such as USB is taken as an example, but other methods may be used as long as the OS 302 detects the connection of the image reading apparatus 100. For example, Universal Plug And Play (UPnP) generated by network connection, or a pairing operation method using near field communication (NFC, Near Field Communication) may be used. The WIA 403 is an area in which WIA, which is an OS standard image input API, is stored. By using WIA, mutual communication between the application and the image reading apparatus 100 becomes possible.

デバイス管理レジストリ404は、オペレーティングシステムが参照可能なメモリ領域であり、インストールされた画像読取装置100を管理する情報が格納されている領域である。デバイスドライバ303がインストールされると、デバイス管理レジストリ404に、デバイスドライバ303が動作するのに必要な情報やアプリケーションからデバイスドライバ303を使用するときに必要な情報が格納される。例えばドライバストアー401に格納されている、当該デバイスドライバ303に対応するセットアップファイルが、デバイスドライバ303のインストール時にデバイス管理レジストリ404に格納される。セットアップファイルにはデバイスドライバ名称が含まれるため、デバイスドライバ303のインストール時に、当該デバイスドライバ303に対応するデバイスドライバ名称がデバイス管理レジストリ404に格納される。   The device management registry 404 is a memory area that can be referred to by the operating system, and is an area in which information for managing the installed image reading apparatus 100 is stored. When the device driver 303 is installed, the device management registry 404 stores information necessary for the device driver 303 to operate and information necessary for using the device driver 303 from an application. For example, a setup file corresponding to the device driver 303 stored in the driver store 401 is stored in the device management registry 404 when the device driver 303 is installed. Since the device driver name is included in the setup file, the device driver name corresponding to the device driver 303 is stored in the device management registry 404 when the device driver 303 is installed.

このようにデバイス管理レジストリ404に格納されたデバイスドライバ名称が、デバイス選択画面においてユーザにより選択可能に表示される。   Thus, the device driver name stored in the device management registry 404 is displayed on the device selection screen so as to be selectable by the user.

図5は、デバイス選択画面501を示す図である。デバイス選択画面501はOS302が提供する画面である。例えばアプリケーションソフトウェア301に対するユーザの指示(例えばプリンタへの印刷指示、スキャナへの読取指示)があると、アプリケーションがその指示をOS302に伝える。OS302は現在起動しているデバイスドライバに対応する名称を使用して、図5に示す画面を表示させる表示制御を行う。   FIG. 5 is a diagram showing a device selection screen 501. A device selection screen 501 is a screen provided by the OS 302. For example, when there is a user instruction to the application software 301 (for example, a printing instruction to a printer or a reading instruction to a scanner), the application transmits the instruction to the OS 302. The OS 302 performs display control for displaying the screen shown in FIG. 5 using a name corresponding to the currently activated device driver.

ドライバ表示領域502に、使用可能な複数の画像読取装置100のデバイスドライバ303のアイコン画像と名称503、504、505が表示される。ユーザは使用したい画像読取装置100をアイコン画像から選択することが可能である。なおドライバ表示領域502に表示されるデバイスドライバ303の名称は、デバイスドライバ303起動時にデバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称の値に基づいて表示される。   In the driver display area 502, icon images and names 503, 504, and 505 of the device driver 303 of the plurality of usable image reading apparatuses 100 are displayed. The user can select an image reading apparatus 100 to be used from icon images. Note that the name of the device driver 303 displayed in the driver display area 502 is displayed based on the value of the device driver name registered in the device information of the device management registry 404 when the device driver 303 is activated.

ドライバ情報表示領域506には、ドライバ表示領域502でユーザが選択したアイコン画像が示すデバイスドライバ303の各種情報が表示される。これらの情報は、例えば上記のセットアップファイルに含まれる。なおアイコン画像はセットアップファイルに含まれてもよいし、別の画像ファイルとしてセットアップファイルとともにデバイス管理レジストリ404に格納されてもよい。   In the driver information display area 506, various information of the device driver 303 indicated by the icon image selected by the user in the driver display area 502 is displayed. These pieces of information are included in the above setup file, for example. The icon image may be included in the setup file, or may be stored in the device management registry 404 together with the setup file as another image file.

ユーザによりOKボタン507が選択されることで、ユーザが選択したデバイスドライバ303が表示される。ユーザがキャンセルボタン508を選択した場合、OS302はデバイス選択画面501の表示を終了する。   When the user selects an OK button 507, the device driver 303 selected by the user is displayed. When the user selects the cancel button 508, the OS 302 ends the display of the device selection screen 501.

例えば情報処理端末200に複数の画像読取装置がネットワーク等を介して接続される場合、デバイス選択画面501には、当該複数の画像読取装置に対応する複数の名称が表示される。ただし、複数の画像読取装置が共通のクラスドライバにより制御される場合、当該クラスドライバに対応するセットアップファイルに含まれているデバイスドライバ名称が表示される。クラスドライバは複数の画像読取装置に共通であるため、複数の画像読取装置に対応するデバイスドライバ名称も共通となる。そのため図5の名称503、504のように、クラスドライバにより制御される2つの画像読取装置に対し、同様の名称が表示されてしまう。この場合、ユーザが画像読取装置を選択しようにも、2つの名称が同様のものであるため、所望の画像読取装置を選択することができないことがある。   For example, when a plurality of image reading apparatuses are connected to the information processing terminal 200 via a network or the like, the device selection screen 501 displays a plurality of names corresponding to the plurality of image reading apparatuses. However, when a plurality of image reading devices are controlled by a common class driver, the device driver name included in the setup file corresponding to the class driver is displayed. Since class drivers are common to a plurality of image reading apparatuses, device driver names corresponding to the plurality of image reading apparatuses are also common. Therefore, similar names are displayed for the two image reading devices controlled by the class driver, such as the names 503 and 504 in FIG. In this case, even if the user selects the image reading apparatus, the two names are the same, and thus the desired image reading apparatus may not be selected.

そこで本実施形態では、OS302がクラスドライバをインストールするときに、当該クラスドライバに対応するデバイスドライバ名称を更新できるようにクラスドライバの起動処理を行う。具体的には、デバイスドライバがデバイス管理レジストリ404の内容を更新するためには管理者権限でデバイスドライバを起動する必要があるため、クラスドライバのインストール時には当該クラスドライバを一時的に管理者権限で起動する。図6を用いてデバイスドライバ303のインストール時の処理の詳細について説明する。   Therefore, in this embodiment, when the OS 302 installs a class driver, the class driver is activated so that the device driver name corresponding to the class driver can be updated. Specifically, in order for a device driver to update the contents of the device management registry 404, it is necessary to start the device driver with administrator privileges. Therefore, when installing a class driver, temporarily install the class driver with administrator privileges. to start. Details of the processing at the time of installing the device driver 303 will be described with reference to FIG.

図6は、OS302がデバイスドライバ303を起動する処理を示したフローチャートである。なお、図6のフローチャートはCPU201がディスク装置202に格納されているOS302を実行することで実現される。ここではOS302が処理を行うものとして説明する。   FIG. 6 is a flowchart illustrating processing in which the OS 302 activates the device driver 303. Note that the flowchart of FIG. 6 is realized by the CPU 201 executing the OS 302 stored in the disk device 202. Here, a description will be given assuming that the OS 302 performs processing.

S601でOS302は、画像読取装置100が情報処理端末200に接続されたときに発生するPnPを、PnP検知プログラムにより検知する。S602でOS302は、S601で検知されたPnPイベントに含まれているデバイスID、または共通ID情報に対応する画像読取装置100のデバイスドライバ303がインストールされているかを判定する。デバイスドライバ303がインストールされていない場合は、S603に進む。S603でOS302は、デバイスIDまたは共通ID情報に対応するデバイスドライバ303をドライバストアー401から検索し、デバイスドライバ303が見つかったらインストールする。   In step S <b> 601, the OS 302 detects PnP generated when the image reading apparatus 100 is connected to the information processing terminal 200 using the PnP detection program. In step S602, the OS 302 determines whether the device driver 303 of the image reading apparatus 100 corresponding to the device ID or common ID information included in the PnP event detected in step S601 is installed. If the device driver 303 is not installed, the process proceeds to S603. In step S <b> 603, the OS 302 searches the driver store 401 for a device driver 303 corresponding to the device ID or common ID information, and installs the device driver 303 when it is found.

なおOS302は、S603におけるデバイスドライバ303のインストール時に、デバイス管理レジストリ404にセットアップファイル(デバイスドライバ名称を含む)等のデバイス情報を登録する。   The OS 302 registers device information such as a setup file (including the device driver name) in the device management registry 404 when the device driver 303 is installed in S603.

図9は、デバイス管理レジストリ404に登録されたデバイスドライバ名称の例を示す図である。図9(A)の例では、クラスドライバで制御されるデバイスのデバイスドライバ名称「Scanner Type1」が登録される例を示している。ここではクラスドライバに対応する名称であるため、当該クラスドライバで制御される複数機種のいずれであっても、「Scanner Type1」が登録される。後述する処理により、図9(B)のように機種固有の名称に更新される。   FIG. 9 is a diagram illustrating an example of device driver names registered in the device management registry 404. The example of FIG. 9A shows an example in which the device driver name “Scanner Type 1” of the device controlled by the class driver is registered. Since the name corresponds to the class driver here, “Scanner Type 1” is registered for any of a plurality of models controlled by the class driver. By the process described later, the model-specific name is updated as shown in FIG.

またデバイス管理レジストリ404はツリー構造になっており、“0000”以下に、デバイス情報が登録された状態を示したものである。デバイス情報には、デバイスドライバ303の名称が登録されるFriendlyNameの領域が作成される。図9の(A)では説明のため“0000”を用いたが、情報処理端末200にインストールされた画像読取装置100に対して連続で割り当てられる値であり、別の値であっても良い。   The device management registry 404 has a tree structure, and indicates a state in which device information is registered under “0000”. In the device information, a friendly name area in which the name of the device driver 303 is registered is created. In FIG. 9A, “0000” is used for explanation, but it is a value that is continuously assigned to the image reading apparatus 100 installed in the information processing terminal 200, and may be a different value.

S604で、OS302はデバイスドライバ303の起動処理を開始する。S605でOS302は、S603においてデバイス管理レジストリ404のデバイス情報に登録されたデバイスドライバ名称の値を取得する。   In step S <b> 604, the OS 302 starts activation processing of the device driver 303. In step S605, the OS 302 acquires the value of the device driver name registered in the device information of the device management registry 404 in step S603.

S606で、OS302はS605で取得した値をデバイスドライバ303の名称としてOS302自身に設定する。なお、OS302は、S606において設定された名称、もしくはデバイス管理レジストリ404に含まれている名称の値に従って、図5に示すようにデバイスドライバ名称を表示させる。   In step S606, the OS 302 sets the value acquired in step S605 in the OS 302 itself as the name of the device driver 303. The OS 302 displays the device driver name as shown in FIG. 5 according to the name set in S606 or the name value included in the device management registry 404.

S607で、OS302は、S605において取得された値に対応するデバイスドライバ(起動されるデバイスドライバ)がクラスドライバ(共通ID情報を基にインストールされたドライバ)であるかを判定する。S607において、起動されるデバイスドライバ303がクラスドライバと判定された場合、S608に処理を進める。S608でOS302は、PnP検知後にデバイスドライバ303のインストールが行われた後のデバイスドライバ303の初回起動であるかどうかを判定する。初回起動である場合、S609に進み、それ以外であれば、S610に進む。   In step S607, the OS 302 determines whether the device driver (device driver to be activated) corresponding to the value acquired in step S605 is a class driver (driver installed based on the common ID information). If it is determined in S607 that the device driver 303 to be activated is a class driver, the process proceeds to S608. In step S <b> 608, the OS 302 determines whether it is the first activation of the device driver 303 after the device driver 303 is installed after PnP detection. If it is the first activation, the process proceeds to S609. Otherwise, the process proceeds to S610.

S609で、OS302はデバイスドライバ303を管理者権限で起動する。デバイスドライバ303を管理者権限で起動することで、デバイスドライバ303は、図9の(A)で示すデバイス管理レジストリ404のデバイス情報に登録されているFriendlyNameの値を変更することが可能となる。一方S610では、OS302はデバイスドライバ303を標準権限で起動する。即ち、デバイスドライバ303のインストール後の初回起動では管理者権限でデバイスドライバ303が起動され、それ以降の起動であれば標準権限で起動される。   In step S609, the OS 302 activates the device driver 303 with administrator authority. By activating the device driver 303 with administrator authority, the device driver 303 can change the value of FriendlyName registered in the device information of the device management registry 404 shown in FIG. On the other hand, in S610, the OS 302 activates the device driver 303 with standard authority. That is, the device driver 303 is activated with the administrator authority at the first activation after the installation of the device driver 303, and is activated with the standard authority at the subsequent activation.

S611でOS302は、起動したデバイスドライバ303から再起動要求を受信した場合、S612に進む。S612では、OS302はデバイスドライバ303を再起動させる。デバイスドライバ303による再起動要求については、図7を用いて説明する。   If the OS 302 receives a restart request from the activated device driver 303 in step S611, the processing proceeds to step S612. In step S612, the OS 302 restarts the device driver 303. The restart request by the device driver 303 will be described with reference to FIG.

図7は、デバイスドライバ303による起動時の処理を示したフローチャートである。図7に示す処理は、CPU201がディスク装置202に格納されているデバイスドライバ303を実行することにより実現される。   FIG. 7 is a flowchart showing processing at the time of activation by the device driver 303. The processing shown in FIG. 7 is realized by the CPU 201 executing the device driver 303 stored in the disk device 202.

デバイスドライバ303が起動されると、S701でデバイスドライバ303は、自身が管理者権限で起動しているかを判定する。例えば、Microsoft(登録商標)社のOSであるWindows(登録商標) XP以降で利用可能なAPIであるCheckTokenMembershipを使用することで確認することができる。   When the device driver 303 is activated, in step S701, the device driver 303 determines whether it is activated with administrator authority. For example, it can be confirmed by using CheckTokenMembership, an API that can be used in Windows (registered trademark) XP or later, which is an OS of Microsoft (registered trademark).

管理者権限で起動されている場合は、S702に処理が進む。例えば上述のS609においてOS302がデバイスドライバ303を管理者権限で起動した場合、S702における処理が実行される。S702でデバイスドライバ303は、デバイス(例えばプリンタやスキャナ)と通信してデバイス名称情報を取得する。なおS702で取得される情報は、デバイスを特定することができる情報であればどのような情報であってもよく、例えばデバイス機種や型番を示す情報や、ユーザがデバイス毎に任意の名称を登録できるフレンドリーネームであっても良い。   If activated with administrator authority, the process proceeds to S702. For example, when the OS 302 activates the device driver 303 with administrator authority in S609 described above, the processing in S702 is executed. In step S702, the device driver 303 communicates with a device (for example, a printer or a scanner) to acquire device name information. Note that the information acquired in step S702 may be any information as long as it can identify a device. For example, information indicating a device model or model number, or a user registers an arbitrary name for each device. It can be a friendly name.

S703でデバイスドライバ303は、S702で取得したデバイス名称の値をデバイス管理レジストリ404に格納することで、デバイス管理レジストリ404のデバイス情報に既に登録されているドライバドライバ名称を更新する。上記のようにデバイスドライバ303が管理者権限で起動されているときには、デバイス管理レジストリ404の情報を更新することができる。即ち、OS302は、デバイスドライバ303を管理者権限で起動させることで、デバイスドライバ303にデバイス管理レジストリ404へ名称情報を格納させる格納制御処理を行うことができる。   In step S <b> 703, the device driver 303 updates the driver driver name already registered in the device information of the device management registry 404 by storing the device name value acquired in step S <b> 702 in the device management registry 404. As described above, when the device driver 303 is activated with administrator authority, the information in the device management registry 404 can be updated. That is, the OS 302 can perform a storage control process for causing the device driver 303 to store name information in the device management registry 404 by activating the device driver 303 with administrator authority.

図9の(B)は、デバイスから取得されたデバイス名称の値に更新された場合のデバイス管理レジストリ404を示す図である。図9(A)ではクラスドライバに対応するデバイスドライバ名称「Scanner Type1」であったが、これが図9(B)ではデバイスから取得したデバイス名称「ABC 1000」に変更されていることがわかる。デバイスドライバ名称「Scanner Type1」であると、図5に示したように他の機種のデバイスと同一の名称が表示されてしまう。そこで上記のデバイス名称の更新により、情報処理端末200に接続されたデバイスを特定するためのデバイス名称が表示されることになる。   FIG. 9B is a diagram illustrating the device management registry 404 when updated to the value of the device name acquired from the device. In FIG. 9A, the device driver name “Scanner Type 1” corresponding to the class driver is shown. In FIG. 9B, this is changed to the device name “ABC 1000” acquired from the device. If the device driver name is “Scanner Type 1”, the same name as the device of another model is displayed as shown in FIG. Therefore, by updating the device name, the device name for specifying the device connected to the information processing terminal 200 is displayed.

次にS704でデバイスドライバ303は、OS302に対して再起動要求を送信する。この再起動要求により、上記のS611においてOS302が「デバイスドライバ303からの再起動要求あり」と判断し、S612におけるデバイスドライバ303の再起動が行われる。   In step S <b> 704, the device driver 303 transmits a restart request to the OS 302. In response to this restart request, the OS 302 determines that “there is a restart request from the device driver 303” in S611, and the device driver 303 is restarted in S612.

このように再起動が実行されると、OS302はS605、S606における処理により更新後のデバイスドライバ名称「ABC 1000」を設定する。そしてOS302は、ユーザによるアプリケーションソフトウェア301に対する指示に従って、図5に示した画面を更新後の名称を用いて表示させることができる。   When the restart is executed in this way, the OS 302 sets the updated device driver name “ABC 1000” by the processing in S605 and S606. Then, the OS 302 can display the screen illustrated in FIG. 5 using the updated name in accordance with an instruction from the user to the application software 301.

またデバイスドライバ303が再起動された場合、インストール後の初回起動でないため、S608において「No」と判定され、S610において標準権限で起動される。従ってデバイスドライバ303が再起動された場合、管理者権限でなく標準権限で起動される。しかも図6における処理によれば、デバイスドライバ303が管理者権限で起動した後にユーザの指示が入力されなくても、OS302が自動的にデバイスドライバ303を標準権限で再起動する。そのため再起動後のセキュリティを確保することができる。   When the device driver 303 is restarted, since it is not the first start after installation, it is determined “No” in S608, and is started with standard authority in S610. Therefore, when the device driver 303 is restarted, it is started with the standard authority instead of the administrator authority. In addition, according to the processing in FIG. 6, the OS 302 automatically restarts the device driver 303 with the standard authority even if the user's instruction is not input after the device driver 303 is activated with the administrator authority. Therefore, security after restart can be ensured.

ただし、例えば管理者権限で起動されたときのデバイスドライバ303の処理が制限されている場合などには、S608の処理を行わず、2回目以降の起動も管理者権限で起動されてもよい。   However, for example, when the process of the device driver 303 when it is activated with administrator authority is restricted, the process of S608 may not be performed, and the second and subsequent activations may be activated with administrator authority.

次に図8のシーケンスチャートを用いてデバイスドライバ303のインストールが行われた後の処理の流れを説明する。   Next, the flow of processing after the device driver 303 is installed will be described using the sequence chart of FIG.

S801でOS302は、デバイスドライバ303のインストール時に、デバイス管理レジストリ404にデバイス情報を登録する。S802でOS302は、デバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称の値を参照する。S803でOS302は、S802で取得したデバイスドライバ名称でデバイスドライバ303を管理者権限で起動する。S804デバイスドライバ303は画像読取装置100に対して名称情報を要求し、S805でその要求に応じて名称情報が取得される。S806でデバイスドライバ303は、画像読取装置100から取得した名称情報で、デバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称の値を更新する。このときデバイスドライバ303は管理者権限で起動されているため、上記のようにデバイスドライバ名称の更新が可能となる。   In step S <b> 801, the OS 302 registers device information in the device management registry 404 when the device driver 303 is installed. In step S <b> 802, the OS 302 refers to the value of the device driver name registered in the device information of the device management registry 404. In step S803, the OS 302 activates the device driver 303 with the administrator authority with the device driver name acquired in step S802. The S804 device driver 303 requests name information from the image reading apparatus 100, and the name information is acquired in response to the request in S805. In step S <b> 806, the device driver 303 updates the value of the device driver name registered in the device information of the device management registry 404 with the name information acquired from the image reading apparatus 100. At this time, since the device driver 303 is activated with administrator authority, the device driver name can be updated as described above.

S807で、デバイスドライバ303はOS302に再起動要求を送信する。S808で、OS302はデバイスドライバ303からの再起動要求を受信したことに応じて、デバイスドライバ303を終了させる。S809で、OS302はデバイス管理レジストリ404のデバイス情報のドライバ名称の値を再度参照する。S810で、OS302は、更新後のデバイスドライバ名称でデバイスドライバ303を標準権限で再起動する。   In step S <b> 807, the device driver 303 transmits a restart request to the OS 302. In step S <b> 808, the OS 302 ends the device driver 303 in response to receiving the restart request from the device driver 303. In step S809, the OS 302 refers again to the value of the driver name in the device information of the device management registry 404. In step S810, the OS 302 restarts the device driver 303 with the updated device driver name with standard authority.

以上の処理によって、デバイス管理レジストリのデバイス情報に登録されているデバイスドライバ名称をデバイスドライバインストール後に、画像読取装置から取得した名称情報に更新することが可能となる。これにより、クラスドライバを利用する複数の画像読取装置が情報処理端末200に接続される場合においても、画像読取装置毎にデバイスドライバの名称を設定することができる。そのためデバイスに対応する名称が表示された画面において、ユーザは使用したい画像読取装置を容易に選択することが可能となる。   Through the above processing, the device driver name registered in the device information of the device management registry can be updated to the name information acquired from the image reading apparatus after the device driver is installed. Thereby, even when a plurality of image reading devices using class drivers are connected to the information processing terminal 200, the name of the device driver can be set for each image reading device. Therefore, the user can easily select an image reading apparatus to be used on the screen on which the name corresponding to the device is displayed.

また本実施形態では、デバイスドライバがデバイスから名称情報を取得する。そのためデバイス毎に固有な名称情報を登録しておけば、それをドライバが取得することでデバイスドライバの名称をデバイス毎に固有な名称とすることが可能となる。これにより、ユーザはより厳密に画像読取装置の判別をすることが可能である。   In the present embodiment, the device driver acquires name information from the device. For this reason, if name information unique to each device is registered, the driver acquires the name information so that the name of the device driver can be made unique to each device. As a result, the user can more accurately determine the image reading apparatus.

また本実施形態では、OSがPnP検知後にインストールが行われた後のドライバ起動時のみ管理者権限で起動し、再起動時には標準権限で起動する。これによりセキュリティリスクを低減させている。しかしこれに限らず、デバイスドライバの累計起動回数を基に、管理者権限と標準権限の起動を切り替えることで、再起動時に管理者権限で起動されてもよい。   In this embodiment, the OS is started with the administrator authority only when the driver is started after installation is performed after PnP is detected, and is started with the standard authority when the OS is restarted. This reduces security risks. However, the present invention is not limited to this, and it may be started with administrator authority at the time of restarting by switching between administrator authority and standard authority activation based on the cumulative number of activations of the device driver.

なお、本実施形態ではデバイスドライバとしてスキャナドライバ、また制御されるデバイスとしてスキャナなどの画像読取装置を例に説明した。しかしこれに限らず、プリンタやデジタルカメラやカメラ付携帯電話などの装置でも本実施形態と同様の処理を実現することができる。   In this embodiment, a scanner driver is used as a device driver, and an image reading apparatus such as a scanner is used as an example of a controlled device. However, the present invention is not limited to this, and the same processing as that of the present embodiment can be realized by a device such as a printer, a digital camera, or a camera-equipped mobile phone.

<実施形態2>
実施形態1ではデバイスドライバを再起動したが、実施形態2ではデバイスドライバを再起動せずに、デバイス選択画面に表示するドライバ名称を更新する処理について説明する。
<Embodiment 2>
In the first embodiment, the device driver is restarted. In the second embodiment, a process for updating the driver name displayed on the device selection screen without restarting the device driver will be described.

図10は、OS302がデバイスドライバ303を起動する処理を示したフローチャートである。図10では図6とは異なり、デバイスドライバ303の再起動は行わない。S1001からS1010にかかる処理は、実施形態1で説明した図6のS601から610と同等であるため、説明を省略する。   FIG. 10 is a flowchart illustrating processing in which the OS 302 activates the device driver 303. In FIG. 10, unlike FIG. 6, the device driver 303 is not restarted. The processing from S1001 to S1010 is the same as S601 to 610 of FIG.

図11は、デバイスドライバ303が起動された時の処理を示したフローチャートである。図11では、実施形態1で説明した図7とは異なり、デバイスドライバ303は再起動要求を行わない。S1101からS1103にかかる処理は、図7のS701から703と同様であるため、説明を省略する。   FIG. 11 is a flowchart showing processing when the device driver 303 is activated. In FIG. 11, unlike FIG. 7 described in the first embodiment, the device driver 303 does not make a restart request. The processing from S1101 to S1103 is the same as S701 to 703 in FIG.

図12は、OS302がデバイス選択画面501表示する際の処理を示すフローチャートである。S1201からS1206にかかる処理は、実施形態1で説明した図8のS801から806と同様である。   FIG. 12 is a flowchart illustrating processing when the OS 302 displays the device selection screen 501. The processing from S1201 to S1206 is the same as S801 to 806 in FIG. 8 described in the first embodiment.

S1207でOS302は、デバイス選択画面501の表示処理を行う。次にS1208においてOS302はデバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称の値を参照する。S1209においてOS302は、S1208で取得したデバイスドライバ名称をデバイス選択画面501に表示するデバイスドライバ名称に設定する。S1210で、デバイス選択画面501においてデバイスドライバがユーザにより選択されると、ユーザが選択したデバイスドライバ303がOS302に通知される。これによりOS302は通知されたデバイスドライバ303のUI画面を表示する。   In step S1207, the OS 302 performs display processing of the device selection screen 501. In step S <b> 1208, the OS 302 refers to the value of the device driver name registered in the device information of the device management registry 404. In step S1209, the OS 302 sets the device driver name acquired in step S1208 as the device driver name displayed on the device selection screen 501. In step S1210, when a user selects a device driver on the device selection screen 501, the OS 302 is notified of the device driver 303 selected by the user. As a result, the OS 302 displays the UI screen of the notified device driver 303.

以上の処理によれば、OS302がデバイスドライバ303を再起動する必要が無いため、デバイスドライバ名称の更新を行った上で、ユーザにデバイスドライバを迅速に使用させることができる。   According to the above processing, since the OS 302 does not need to restart the device driver 303, the user can quickly use the device driver after updating the device driver name.

<実施形態3>
実施形態1、2では、デバイスドライバがデバイス管理レジストリのデバイス情報に登録されているデバイスドライバ名称を更新したが、実施形態3では、OS302がデバイスドライバ名称を更新する処理について説明する。
<Embodiment 3>
In the first and second embodiments, the device driver updates the device driver name registered in the device information of the device management registry. In the third embodiment, a process in which the OS 302 updates the device driver name will be described.

図13は、OS302がデバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称を更新する際のシーケンスを示す図である。   FIG. 13 is a diagram illustrating a sequence when the OS 302 updates the device driver name registered in the device information of the device management registry 404.

S1301でOS302は、デバイスドライバ303のインストール時に、デバイス管理レジストリ404にデバイス情報を登録する。S1302でOS302は、デバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称の値を参照する。S1303でOS302は、S1302において取得したデバイスドライバ名称でデバイスドライバ303を起動する。なお、S1303においてOS302はデバイスドライバ303を管理者権限で起動させてもよいが、図13ではデバイスドライバ303がデバイス管理レジストリ404の更新を行う必要が無いため、デバイスドライバ303を標準権限で起動してもよい。S1304でOS302は、S1303において起動したデバイスドライバ303にデバイスドライバ名の取得を要求する。   In step S <b> 1301, the OS 302 registers device information in the device management registry 404 when the device driver 303 is installed. In step S1302, the OS 302 refers to the value of the device driver name registered in the device information of the device management registry 404. In step S1303, the OS 302 activates the device driver 303 with the device driver name acquired in step S1302. In S1303, the OS 302 may activate the device driver 303 with administrator authority. However, in FIG. 13, since the device driver 303 does not need to update the device management registry 404, the device driver 303 is activated with standard authority. May be. In step S1304, the OS 302 requests the device driver 303 activated in step S1303 to acquire a device driver name.

S1305で、デバイスドライバ303は、画像読取装置100に対して名称情報の取得を要求し、S1306においてその要求に応じて名称情報を取得する。S1307でデバイスドライバ303は、S1304のデバイスドライバ名取得の要求に対する応答として、1306で取得した名称情報をOS302に通知する。即ちOS302は、デバイスドライバ303を起動することで、デバイスドライバ303に、画像読取装置100から名称情報を取得させる取得制御処理を行う。   In step S1305, the device driver 303 requests the image reading apparatus 100 to acquire name information. In step S1306, the device driver 303 acquires name information in response to the request. In step S1307, the device driver 303 notifies the OS 302 of the name information acquired in 1306 as a response to the device driver name acquisition request in step S1304. That is, the OS 302 activates the device driver 303 to perform acquisition control processing that causes the device driver 303 to acquire name information from the image reading apparatus 100.

S1308で、OS302は、デバイス管理レジストリ404のデバイス情報に登録されているデバイスドライバ名称をS1307でデバイスドライバから取得したデバイスドライバ名に更新する。   In step S1308, the OS 302 updates the device driver name registered in the device information of the device management registry 404 with the device driver name acquired from the device driver in step S1307.

なお、デバイス選択画面に表示されるドライバ名称を更新するタイミングは、デバイスドライバ303の起動時、もしくは、デバイス選択画面501表示の時であっても良い。   Note that the driver name displayed on the device selection screen may be updated when the device driver 303 is activated or when the device selection screen 501 is displayed.

以上の処理によれば、デバイスドライバ303ではなくOS302がデバイスドライバ名称の更新を行う。そのため、デバイスドライバ303を権利者権限で起動しなくても、デバイスドライバ名の更新を行うことができる。   According to the above processing, the OS 302 updates the device driver name instead of the device driver 303. Therefore, the device driver name can be updated without starting the device driver 303 with right holder authority.

以上の実施形態1〜3によれば、デバイスに対応する名称がデバイスドライバ303によりデバイスから取得される。そのため、例えばデバイスドライバ303がクラスドライバであり、複数機種のデバイスに共通の共通ID情報では同様の名称が割り振られてしまう場合でも、デバイスに個別に対応する名称を表示させることができる。よって例えばユーザが例えばクラスドライバにより制御される複数のデバイスを所有しており、複数のデバイスそれぞれに対応するデバイスドライバがインストールされる場合でも、デバイス固有の名称が表示される。したがってユーザは所望のデバイスを容易に選択することができる。   According to the above first to third embodiments, the name corresponding to the device is acquired from the device by the device driver 303. Therefore, for example, even when the device driver 303 is a class driver and the same name is assigned in the common ID information common to a plurality of types of devices, it is possible to display a name corresponding to each device individually. Therefore, for example, even when the user owns a plurality of devices controlled by, for example, the class driver, and device drivers corresponding to the plurality of devices are installed, device-specific names are displayed. Therefore, the user can easily select a desired device.

また以上の実施形態では、デバイスドライバ303がデバイスから名称情報を取得する例を示したが、これに限らず、OS302などの他のプログラムにより名称情報が取得されてもよい。   In the above embodiment, the example in which the device driver 303 acquires the name information from the device has been described. However, the present invention is not limited to this, and the name information may be acquired by another program such as the OS 302.

なお、以上の実施形態における情報処理端末200は、例えばPC(パーソナルコンピュータ)であってもよいし、携帯電話やスマートフォン、タブレット等のモバイル機器であってもよい。またデバイスドライバにより制御されるデバイスは、原稿を読み取る画像読取装置であってもよいし、プリンタやデジタルカメラ、ストレージ等の種々のデバイスであってもよい。   Note that the information processing terminal 200 in the above embodiment may be a PC (personal computer), for example, or may be a mobile device such as a mobile phone, a smartphone, or a tablet. The device controlled by the device driver may be an image reading apparatus that reads a document, or various devices such as a printer, a digital camera, and a storage.

<実施形態4>
以上の実施形態の機能は以下の構成によっても実現することができる。つまり、本実施形態の処理を行うためのプログラムコードをシステムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)がプログラムコードを実行することによっても達成される。この場合、記憶媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することとなり、またそのプログラムコードを記憶した記憶媒体も本実施形態の機能を実現することになる。
<Embodiment 4>
The functions of the above embodiments can also be realized by the following configuration. That is, it is also achieved by supplying a program code for performing the processing of the present embodiment to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus executing the program code. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code also realizes the function of the present embodiment.

また、本実施形態の機能を実現するためのプログラムコードを、1つのコンピュータ(CPU、MPU)で実行する場合であってもよいし、複数のコンピュータが協働することによって実行する場合であってもよい。さらに、プログラムコードをコンピュータが実行する場合であってもよいし、プログラムコードの機能を実現するための回路等のハードウェアを設けてもよい。またはプログラムコードの一部をハードウェアで実現し、残りの部分をコンピュータが実行する場合であってもよい。   Further, the program code for realizing the function of the present embodiment may be executed by one computer (CPU, MPU), or may be executed by a plurality of computers cooperating. Also good. Further, the program code may be executed by a computer, or hardware such as a circuit for realizing the function of the program code may be provided. Alternatively, a part of the program code may be realized by hardware and the remaining part may be executed by a computer.

100 画像読取装置
200 情報処理端末
302 OS
303 デバイスドライバ
404 デバイス管理レジストリ
DESCRIPTION OF SYMBOLS 100 Image reading apparatus 200 Information processing terminal 302 OS
303 Device driver 404 Device management registry

Claims (19)

デバイスを制御するためのデバイスドライバを管理者権限で起動させることにより、当該起動されたデバイスドライバに、当該デバイスドライバにより制御されるデバイスから取得された名称情報をレジストリに格納させる格納制御手段と、
前記格納制御手段により前記レジストリに格納された名称情報に基づく名称を表示装置に表示させる表示制御手段と、
を有することを特徴とする情報処理装置。
Storage control means for causing the activated device driver to store name information acquired from the device controlled by the device driver in the registry by activating the device driver for controlling the device with administrator authority;
Display control means for displaying on the display device a name based on the name information stored in the registry by the storage control means;
An information processing apparatus comprising:
前記格納制御手段により起動され、前記名称情報をレジストリに格納した前記デバイスドライバを、標準権限で再起動する再起動手段を有することを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, further comprising a restarting unit that restarts the device driver started by the storage control unit and storing the name information in a registry with a standard authority. 前記再起動手段は、前記格納制御手段による前記デバイスドライバの起動の後にユーザの指示が入力されなくても、当該デバイスドライバを再起動することを特徴とする請求項2に記載の情報処理装置。   The information processing apparatus according to claim 2, wherein the restarting unit restarts the device driver even if a user instruction is not input after the device driver is started by the storage control unit. 前記格納制御手段は、前記デバイスドライバに、当該デバイスドライバにより制御されるデバイスから前記名称情報を取得させることを特徴とする請求項1乃至3のいずれか1項に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the storage control unit causes the device driver to acquire the name information from a device controlled by the device driver. 前記格納制御手段は、前記レジストリに格納されている名称情報に基づいて前記デバイスドライバを起動し、当該起動されたデバイスドライバに、当該レジストリに格納されている当該名称情報を更新させることを特徴とする請求項1乃至4のいずれか1項に記載の情報処理装置。   The storage control unit activates the device driver based on name information stored in the registry, and causes the activated device driver to update the name information stored in the registry. The information processing apparatus according to any one of claims 1 to 4. 前記格納制御手段は、前記情報処理装置にデバイスが接続されたことに応じて、当該デバイスに対応するデバイスドライバを起動することを特徴とする請求項1乃至5のいずれか1項に記載の情報処理装置。   The information according to any one of claims 1 to 5, wherein the storage control unit activates a device driver corresponding to the device in response to the device being connected to the information processing apparatus. Processing equipment. 前記デバイスドライバは、複数のデバイスの制御に共通に用いられるデバイスドライバであることを特徴とする請求項1乃至6のいずれか1項に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the device driver is a device driver that is commonly used for controlling a plurality of devices. デバイスを制御するためのデバイスドライバを起動させることにより、当該起動されたデバイスドライバに、当該デバイスドライバにより制御されるデバイスから名称情報を取得させる取得制御手段と、
前記格納手段により格納された名称情報に基づく名称を表示装置に表示させる表示制御手段と、
を有することを特徴とする情報処理装置。
Acquisition control means for causing the activated device driver to acquire name information from the device controlled by the device driver by activating a device driver for controlling the device;
Display control means for displaying on the display device a name based on the name information stored by the storage means;
An information processing apparatus comprising:
前記表示制御手段は、前記取得制御手段により取得され前記デバイスドライバによりレジストリに格納された名称情報に基づく名称を表示させることを特徴とする請求項8に記載の情報処理装置。   The information processing apparatus according to claim 8, wherein the display control unit displays a name based on name information acquired by the acquisition control unit and stored in a registry by the device driver. 前記取得制御手段により取得された名称情報をレジストリに格納する格納手段を有し、
前記表示制御手段は、前記格納手段により前記レジストリに格納された名称情報に基づく名称を表示させることを特徴とする請求項8に記載の情報処理装置。
Storage means for storing the name information acquired by the acquisition control means in a registry;
The information processing apparatus according to claim 8, wherein the display control unit displays a name based on name information stored in the registry by the storage unit.
前記デバイスは原稿を読み取る読取装置であり、前記デバイスドライバは、当該読取装置を制御するためのデバイスドライバであることを特徴とする請求項1乃至10のいずれか1項に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the device is a reading device that reads a document, and the device driver is a device driver for controlling the reading device. デバイスを制御するためのデバイスドライバを管理者権限で起動させることにより、当該起動されたデバイスドライバに、当該デバイスドライバに対応する名称情報をレジストリに格納させる格納制御工程と、
前記格納制御工程において前記レジストリに格納された名称情報に基づき、前記デバイスドライバに対応する名称を表示装置に表示させる表示制御工程と、
を有することを特徴とする情報処理方法。
A storage control step of causing the activated device driver to store name information corresponding to the device driver in the registry by activating the device driver for controlling the device with administrator authority;
Based on the name information stored in the registry in the storage control step, a display control step for causing the display device to display a name corresponding to the device driver;
An information processing method characterized by comprising:
デバイスを制御するためのデバイスドライバを起動させることにより、当該起動されたデバイスドライバに、当該デバイスドライバに対応する名称情報を当該デバイスドライバにより制御されるデバイスから取得させる取得制御工程と、
前記取得制御工程において取得された名称情報に基づく名称を表示装置に表示させる表示制御工程と、
を有することを特徴とする情報処理方法。
An acquisition control step of causing the activated device driver to acquire name information corresponding to the device driver from the device controlled by the device driver by activating a device driver for controlling the device;
A display control step of causing a display device to display a name based on the name information acquired in the acquisition control step;
An information processing method characterized by comprising:
請求項1乃至11のいずれか1項に記載の情報処理装置の各手段としてコンピュータを機能させるための、または請求項12または13に記載の情報処理方法をコンピュータに実行させるためのプログラム。   The program for functioning a computer as each means of the information processing apparatus of any one of Claims 1 thru | or 11, or making a computer perform the information processing method of Claim 12 or 13. オペレーティングシステムに対応するプログラムであることを特徴とする請求項14に記載のプログラム。   The program according to claim 14, wherein the program corresponds to an operating system. デバイスを制御するためのデバイスドライバに対応するプログラムであって、
オペレーティングシステムにより起動されたことに応じて、前記デバイスから名称情報を取得する取得工程を有し、
前記取得工程において取得された名称情報に基づく名称がオペレーティングシステムにより表示装置に表示されることを特徴とするプログラム。
A program corresponding to a device driver for controlling a device,
Having an acquisition step of acquiring name information from the device in response to being activated by the operating system;
A program characterized in that a name based on the name information acquired in the acquiring step is displayed on a display device by an operating system.
前記取得工程により取得された名称情報をレジストリに格納する格納工程を有し、
前記格納工程において前記レジストリに格納された名称情報に基づく名称が前記オペレーティングシステムにより表示されることを特徴とする請求項16に記載のプログラム。
A storage step of storing the name information acquired in the acquisition step in a registry;
The program according to claim 16, wherein a name based on name information stored in the registry in the storing step is displayed by the operating system.
前記オペレーティングシステムにより管理者権限で起動されたことに基づいて、前記格納工程において前記レジストリに前記名称情報を格納することを特徴とする請求項17に記載のプログラム。   18. The program according to claim 17, wherein the name information is stored in the registry in the storing step based on being started with an administrator authority by the operating system. 前記格納工程における格納に応じて、前記オペレーティングシステムに再起動を要求する要求工程を有することを特徴とする請求項18に記載のプログラム。   19. The program according to claim 18, further comprising a requesting step for requesting the operating system to restart in accordance with the storage in the storing step.
JP2014233795A 2014-11-18 2014-11-18 Information processing device, information processing method, and program Pending JP2016099666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014233795A JP2016099666A (en) 2014-11-18 2014-11-18 Information processing device, information processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014233795A JP2016099666A (en) 2014-11-18 2014-11-18 Information processing device, information processing method, and program

Publications (1)

Publication Number Publication Date
JP2016099666A true JP2016099666A (en) 2016-05-30

Family

ID=56077852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014233795A Pending JP2016099666A (en) 2014-11-18 2014-11-18 Information processing device, information processing method, and program

Country Status (1)

Country Link
JP (1) JP2016099666A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020119603A (en) * 2018-09-11 2020-08-06 キヤノン株式会社 Information processing device, control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020119603A (en) * 2018-09-11 2020-08-06 キヤノン株式会社 Information processing device, control method, and program

Similar Documents

Publication Publication Date Title
US9645777B2 (en) Information processing apparatus for searching printer, method for controlling information processing apparatus, and storage medium
US9389817B2 (en) Information processing device, control method, and storage medium for determining wireless connection method to a device
KR101536957B1 (en) Information processing apparatus, information processing method, and computer-readable medium
JP5321929B2 (en) Universal device driver, device control program, information processing apparatus, server apparatus, and method
JP6257238B2 (en) Information processing apparatus, application presentation method, control program, and network system
KR20110010574A (en) Information processing apparatus, information processing method and storage medium
US11647102B2 (en) Information processing apparatus, control method, and recording medium
US20130301069A1 (en) Information processing device, computer program product, and image forming apparatus
US20110258349A1 (en) Information processing apparatus, peripheral device control method, and storage medium
US11489929B2 (en) System and method for determining client program based on login method
US9606761B2 (en) Information processing apparatus for controlling an output process and method for the same
JP6763209B2 (en) Programs and mobile terminals
US10554853B2 (en) Information processing device, information processing method, information processing system, and non-transitory recording medium
JP5607355B2 (en) Information processing apparatus and information processing apparatus control method
JP2011180681A (en) Installer and method for installing printer driver
US9706067B2 (en) Information processing terminal and non-transitory readable recording medium for file transfer and file processing
JP2017204139A (en) Update application and update method
JP6366428B2 (en) Information processing apparatus, information processing method, and program
US9081593B2 (en) Information processing apparatus, method for controlling same, installation method, and storage medium
JP2016099666A (en) Information processing device, information processing method, and program
JP6380596B2 (en) Cooperation processing system and cooperation processing method
JP6520403B2 (en) Mobile terminal and output program
JP6520405B2 (en) Mobile terminal, content designation program, and output program
JP2016019100A (en) Image formation apparatus, control method of image formation apparatus, and program
JP7490463B2 (en) Information processing device, control method thereof, and program