JP2005339524A - Peripheral of computer - Google Patents

Peripheral of computer Download PDF

Info

Publication number
JP2005339524A
JP2005339524A JP2005127924A JP2005127924A JP2005339524A JP 2005339524 A JP2005339524 A JP 2005339524A JP 2005127924 A JP2005127924 A JP 2005127924A JP 2005127924 A JP2005127924 A JP 2005127924A JP 2005339524 A JP2005339524 A JP 2005339524A
Authority
JP
Japan
Prior art keywords
descriptor
function information
function
peripheral device
unit
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.)
Granted
Application number
JP2005127924A
Other languages
Japanese (ja)
Other versions
JP4676241B2 (en
Inventor
Yuichi Watanabe
雄一 渡邉
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data Corp
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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2005127924A priority Critical patent/JP4676241B2/en
Publication of JP2005339524A publication Critical patent/JP2005339524A/en
Application granted granted Critical
Publication of JP4676241B2 publication Critical patent/JP4676241B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a peripheral capable of realizing a multi-function without developing a dedicated driver and installing the dedicated driver to a PC. <P>SOLUTION: The peripheral 10 for notifying a USB-connected upper apparatus 30 of a device descriptor and allowing the upper apparatus to specify a communication partner destination by the function information shown in the device descriptor comprises a peripheral function information holding unit which holds function information showing functions of the peripheral; a dependent peripheral function information holding unit which holds function information showing functions of a USB-connected dependent peripheral 20; and a USB control unit 113 which reads out one of the function information held in those holding units by a selecting instruction and notifies the upper apparatus of the device descriptor in which the read-out function information is shown. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、上位装置にUSB(Universal Serial Bus)インタフェースを介して接続する周辺装置、特に多機能を実現するための周辺装置に関する。   The present invention relates to a peripheral device connected to a host device via a USB (Universal Serial Bus) interface, and more particularly to a peripheral device for realizing multiple functions.

USB接続機能を搭載した上位装置(以後、PCと記述する)は、当該PCが動作している状態(電源ONの状態)のままで、周辺装置との接続および非接続を行うことができ、更に、PCは複数の周辺装置と並列的に接続することがでる。従って、USB接続は、着脱が簡便で比較的自由にシステム構築できるので広く普及している。USB接続で追加される周辺装置は、物理的にPCへ接続された瞬間にPCで認識される。周辺装置を認識したPCは、予め保持しているドライバから、認識した周辺装置のドライバを検索し、検索したドライバにより周辺装置の制御を行うためにデバイス定義を行う。   A host device equipped with a USB connection function (hereinafter referred to as a PC) can be connected to and disconnected from a peripheral device while the PC is operating (powered on). Furthermore, the PC can be connected to a plurality of peripheral devices in parallel. Therefore, USB connection is widely used because it is easy to attach and detach and allows a relatively free system construction. A peripheral device added by USB connection is recognized by the PC at the moment when it is physically connected to the PC. The PC that has recognized the peripheral device searches for the driver of the recognized peripheral device from the drivers held in advance, and performs device definition to control the peripheral device by the searched driver.

ところで、前述した周辺装置の接続制御機能として、周辺機器の活線挿抜機能が「プラグ&プレイ機能」と称されて知られている。このプラグ&プレイ機能は、以下に記述するように実現される。周辺装置がPCにUSB接続された時点で、PCがUSB接続された周辺装置(デバイス)を認識し、自動的に必要なデバイスドライバを探して、対応するドライバを起動し、追加された周辺装置を使用できるようにする。具体的には、PCで周辺装置のUSB接続を検出すると、該PCと周辺装置とがUSB接続するバスにリセットが行われ、バスリセット後にPCと周辺装置とがコントロール転送と称され通信を開始する。   By the way, as a connection control function of the peripheral device described above, a hot-swap function of a peripheral device is known as a “plug and play function”. This plug and play function is implemented as described below. When the peripheral device is USB-connected to the PC, the PC recognizes the peripheral device (device) connected to the USB, automatically searches for a necessary device driver, activates the corresponding driver, and the added peripheral device Can be used. Specifically, when the USB connection of the peripheral device is detected by the PC, the bus connected to the PC and the peripheral device is reset, and after the bus reset, the PC and the peripheral device are referred to as control transfer and start communication. To do.

コントロール転送では、デバイス定義に必要なデバイスディスクリプタと称される情報が周辺装置からPCへ通知される。デバイスディスクリプタには、周辺機器の機能を示す機能情報が示されており、PCは、デバイスディスクリプタに示されている周辺装置の機能を示す機能情報に基づいて、通信相手先としての周辺装置を特定し、特定した周辺装置にエンドポイントと称されるアドレスを付与するデバイス定義を行って、該周辺装置とUSB通信を開始する。   In the control transfer, information called a device descriptor necessary for device definition is notified from the peripheral device to the PC. The device descriptor indicates function information indicating the function of the peripheral device, and the PC specifies the peripheral device as a communication partner based on the function information indicating the function of the peripheral device indicated in the device descriptor. Then, a device definition for giving an address called an endpoint to the identified peripheral device is performed, and USB communication with the peripheral device is started.

ところで、周辺装置として、スキャナ機能、プリンタ機能およびFAX機能など複数の機能を有した多機能周辺装置(Multi−Function Peripherals 以後、MFPと記述する)が普及している。該MFPをPCにUSB接続してUSB通信する場合でも、当該MFPが有する複数の機能が示されたデバイスディスクリプタがコントロール転送でPCに通知される。
通知を受けたPCは、例えば特許文献1に示されているように、デバイスディスクリプタに示された複数の機能から、所望の機能を選択すべく、コンフィグレーションと称される接続構成の切替え命令(ベンダリクエスト)を発行し、デバイス定義を行っていた。
特開2001−222503号公報
By the way, as a peripheral device, a multi-function peripheral device (hereinafter referred to as MFP) having a plurality of functions such as a scanner function, a printer function, and a FAX function is widespread. Even when the MFP is connected to a PC via USB for USB communication, a device descriptor indicating a plurality of functions of the MFP is notified to the PC by control transfer.
The PC that has received the notification, for example, as shown in Patent Document 1, in order to select a desired function from a plurality of functions indicated in the device descriptor, is a connection configuration switching command (configuration). Vendor request) was issued to define the device.
JP 2001-222503 A

しかしながら、従来のシステムでは、前記したように、複数の機能から所望の機能を選択し、接続構成の切替え命令を発行する専用ドライバが必要であり、該専用ドライバの開発や、該専用ドライバをPCにインストールする必要があるため、これらが問題となっていた。
従って、本発明の目的は、専用ドライバを開発し、該専用ドライバをPCにインストールしなくとも、多機能を実現可能の周辺装置を提供することにある。
However, in the conventional system, as described above, a dedicated driver that selects a desired function from a plurality of functions and issues a connection configuration switching command is necessary. These were problems because they need to be installed on.
Accordingly, an object of the present invention is to provide a peripheral device capable of realizing a multi-function without developing a dedicated driver and installing the dedicated driver in a PC.

本発明は、以上の点を解決するために、次の構成を採用する。
〈構成1〉
USB接続する上位装置にデバイスディスクリプタを通知し、該デバイスディスクリプタに示された機能情報に基づいて通信相手先を前記上位装置に特定させる周辺装置において、当該周辺装置の機能を示す機能情報を保持する周辺装置機能情報保持部と、USB接続される従属周辺装置の機能を示す機能情報を保持する従属周辺装置機能情報保持部と、選択指示に基づいて周辺機能情報保持部で保持する機能情報または従属周辺装置機能情報保持部で保持する機能情報の何れか一方を読出し、読出した機能情報が示されたデバイスディスクリプタを上位装置に通知するUSB制御部と、を備えることを特徴とする。
The present invention adopts the following configuration in order to solve the above points.
<Configuration 1>
The peripheral device that notifies the device descriptor to the host device connected via USB and causes the host device to identify the communication partner based on the function information indicated in the device descriptor holds function information indicating the function of the peripheral device. Peripheral device function information holding unit, subordinate peripheral device function information holding unit holding function information indicating the function of a subordinate peripheral device connected via USB, and function information or subordinate held by the peripheral function information holding unit based on a selection instruction A USB control unit that reads out any one of the function information held in the peripheral device function information holding unit and notifies the higher-level device of the device descriptor indicating the read function information.

〈構成2〉
周辺装置が画像読取装置であり、従属周辺装置が画像形成装置であるとき、周辺装置機能情報保持部は画像読取機能を示す機能情報を保持し、従属周辺装置機能情報保持部は画像形成機能を示す機能情報を保持することを特徴とする。
〈構成3〉
周辺装置が画像形成装置であり、従属周辺装置が画像読取装置であるとき、周辺装置機能情報保持部は画像形成機能を示す機能情報を保持し、従属周辺装置機能情報保持部は画像読取機能を示す機能情報を保持することを特徴とする。
<Configuration 2>
When the peripheral device is an image reading device and the subordinate peripheral device is an image forming device, the peripheral device function information holding unit holds function information indicating an image reading function, and the subordinate peripheral device function information holding unit has an image forming function. The function information shown is retained.
<Configuration 3>
When the peripheral device is an image forming device and the subordinate peripheral device is an image reading device, the peripheral device function information holding unit holds function information indicating an image forming function, and the subordinate peripheral device function information holding unit has an image reading function. The function information shown is retained.

〈構成4〉
選択指示をオペレータから受けるためのオペレーションパネルを備えており、USB制御部は、オペレーションパネルで選択指示を受けると、デバイスディスクリプタの通知に先立ち、上位装置とのUSB接続におけるバスリセットを行うことを特徴とする。
〈構成5〉
USB制御部は、選択指示で読出す機能情報が示されるデバイスディスクリプタを生成するマルチデバイスディスクリプタ作成部を備えることを特徴とする。
<Configuration 4>
An operation panel for receiving a selection instruction from an operator is provided, and when the USB control unit receives a selection instruction on the operation panel, it performs a bus reset in USB connection with a host device prior to notification of a device descriptor. And
<Configuration 5>
The USB control unit includes a multi-device descriptor generation unit that generates a device descriptor indicating function information read by a selection instruction.

〈構成6〉
原稿を読取るための原稿読取部を備えており、原稿読取部は、原稿が配置されたことを検出すると、選択指示として原稿検出信号を前記USB制御部に通知し、USB制御部は、原稿検出信号を受けると、画像読取機能を示す機能情報を読み出すことを特徴とする。
〈構成7〉
原稿が配置されて放置されたことを検出すると、選択指示として放置原稿検出信号をUSB制御部に通知するタイマーを備えており、USB制御部は、原稿放置検出信号を受けると、画像形成機能を示す機能情報を読み出すことを特徴とする。
<Configuration 6>
A document reading unit for reading a document is provided. When the document reading unit detects that a document is placed, it notifies the USB control unit of a document detection signal as a selection instruction, and the USB control unit detects the document detection. When the signal is received, the function information indicating the image reading function is read out.
<Configuration 7>
When it is detected that a document is placed and left, a timer for notifying the USB control unit of a left document detection signal as a selection instruction is provided. When the USB control unit receives the document leave detection signal, the USB control unit performs an image forming function. The function information shown is read out.

〈構成8〉
原稿読取部は、配置された原稿の読取を行って、読取るべき原稿が無くなったことを検出すると、選択指示として終了検出信号をUSB制御部に通知し、USB制御部は、終了検出信号を受けると、画像形成機能を示す機能情報を読み出すことを特徴とする。
〈構成9〉
上位装置からの制御命令を解析して特定情報を抽出する特定情報抽出部を備えており、USB制御部は、抽出する特定情報に上位装置とのUSB接続におけるバスリセットを行う指示が示されているとき、該バスリセットを行うことを特徴とする。
<Configuration 8>
When the document reading unit reads the placed document and detects that there is no document to be read, the document reading unit notifies the USB control unit of an end detection signal as a selection instruction, and the USB control unit receives the end detection signal. And functional information indicating an image forming function is read out.
<Configuration 9>
It includes a specific information extraction unit that analyzes the control command from the host device and extracts the specific information. The USB control unit indicates an instruction to perform a bus reset in the USB connection with the host device in the specific information to be extracted. In this case, the bus reset is performed.

〈構成10〉
上位装置からの制御命令を解析して特定情報を抽出する特定情報抽出部を備えており、特定情報抽出部は、特定情報が画像読取装置の制御言語で記述された命令であるとき、該命令を選択指示としてUSB制御部に通知し、USB制御部は、命令を受けると、画像読取機能を示す機能情報を読み出すことを特徴とする。
<Configuration 10>
A specific information extraction unit that analyzes the control command from the host device and extracts specific information is provided, and the specific information extraction unit is configured to execute the command when the specific information is a command described in the control language of the image reading device. Is selected as a selection instruction, and the USB control unit reads function information indicating an image reading function when receiving a command.

〈構成11〉
上位装置からの制御命令を解析して特定情報を抽出する特定情報抽出部を備えており、特定情報抽出部は、特定情報が画像形成装置の制御言語で記述された命令であるとき、該命令を前記選択指示としてUSB制御部に通知し、USB制御部は、命令を受けると、画像形成機能を示す機能情報を読み出すことを特徴とする請求項5記載の周辺装置。
<Configuration 11>
A specific information extraction unit that analyzes the control command from the host device and extracts the specific information is provided, and the specific information extraction unit is configured to execute the command when the specific information is a command described in the control language of the image forming apparatus. 6. The peripheral device according to claim 5, wherein the USB control unit is notified as a selection instruction, and the USB control unit reads function information indicating an image forming function when receiving a command.

〈構成12〉
USB制御部は、命令に基づく処理が終了したことを選択指示として受けると、命令に基づいて読み出されなかった他方の機能情報を読出すことを特徴とする。
〈構成13〉
上位装置とのUSB接続がホットプラグイン接続であるとき、ホットプラグイン接続により当該USB接続におけるバスリセットが行われることを特徴とする。
<Configuration 12>
The USB control unit is characterized in that, when receiving a selection instruction indicating that the process based on the command is completed, the USB control unit reads the other function information that has not been read based on the command.
<Configuration 13>
When the USB connection with the host device is a hot plug-in connection, a bus reset in the USB connection is performed by the hot plug-in connection.

〈構成14〉
USB接続する上位装置にデバイスディスクリプタを通知し、該デバイスディスクリプタに示された機能情報に基づいて通信相手先を前記上位装置に特定させる周辺装置において、当該周辺装置の機能を示す機能情報を保持する周辺装置機能情報保持部と、USB接続される従属周辺装置の機能を示す機能情報を保持する従属周辺装置機能情報保持部と、選択指示に基づいて前記周辺機能情報保持部で保持する機能情報または前記従属周辺装置機能情報保持部で保持する機能情報の何れか一方を読出し、読出した機能情報が示されたデバイスディスクリプタを前記上位装置に通知するUSB制御部とを備え、前記USB制御部は、従属周辺装置機能情報が示されたデバイスディスクリプタを前記上位装置に通知し、該上位装置で前記従属周辺装置が通信相手先として特定されると、前記上位装置および前記従属周辺装置との間でUSB通信するための中継を行うUSBホスト制御部を有することを特徴とする。
<Configuration 14>
The peripheral device that notifies the device descriptor to the host device connected via USB and causes the host device to identify the communication partner based on the function information indicated in the device descriptor holds function information indicating the function of the peripheral device. Peripheral device function information holding unit, subordinate peripheral device function information holding unit holding function information indicating functions of subordinate peripheral devices connected by USB, and function information held by the peripheral function information holding unit based on a selection instruction A USB control unit that reads out any one of the function information held in the subordinate peripheral device function information holding unit and notifies the host device of a device descriptor in which the read function information is indicated; The device descriptor indicating the dependent peripheral device function information is notified to the host device, and the slave device If location is identified as the communication partner, characterized by having a USB host controller for relaying for USB communication with the host device and the slave peripheral device.

〈構成15〉
周辺装置はスキャナ装置であり、従属周辺装置はプリンタ装置であることを特徴とを特徴とする。
<Configuration 15>
The peripheral device is a scanner device, and the subordinate peripheral device is a printer device.

本発明によれば、選択指示に基づいて、周辺装置の機能を示す機能情報または周辺装置にUSB接続される従属周辺装置の機能を示す機能情報の何れか一方の機能情報が示されたデバイスディスクリプタを上位装置に通知することにより、上位装置は、デバイスディスクリプタに一つの機能情報しか示されていないことから、唯一の機能情報に基づいて、通信相手先を特定する。これにより、上位装置で接続構成の切替え命令を発行するための専用ドライバが不要となり、かつ該専用ドライバのPCへのインストールを行う手間も省くことができる。   According to the present invention, based on the selection instruction, a device descriptor in which one of functional information indicating a function of a peripheral device or functional information indicating a function of a subordinate peripheral device connected to the peripheral device by USB is indicated. By notifying the higher-level device, the higher-level device identifies the communication partner on the basis of only one function information because only one function information is indicated in the device descriptor. This eliminates the need for a dedicated driver for issuing a connection configuration switching command in the host device, and eliminates the need to install the dedicated driver on the PC.

本発明の実施形態について、図を用いて詳細に説明する。以下の説明では、各実施の形態に用いる図面について同一の構成要素は同一の符号を付し、かつ重複する説明は可能な限り省略する。   Embodiments of the present invention will be described in detail with reference to the drawings. In the following description, the same constituent elements in the drawings used in each embodiment will be given the same reference numerals, and redundant description will be omitted as much as possible.

本発明の周辺装置としての画像読取装置はスキャナ装置10であり、該スキャナ装置10は、図1に示すように、USBケーブル41を介して上位装置としてのPC30と接続しており、更にUSBケーブル42を介して従属周辺装置としての画像形成装置(プリンタ装置20)に接続している。   The image reading device as a peripheral device of the present invention is a scanner device 10, which is connected to a PC 30 as a host device via a USB cable 41 as shown in FIG. 42 is connected to an image forming apparatus (printer apparatus 20) as a dependent peripheral apparatus.

ここで、本発明の本発明の要旨を説明する。
本発明のスキャナ装置10は、図2に示すように、当該スキャナ装置10の機能を示す機能情報と、当該スキャナ装置にUSB接続されるプリンタ装置20の機能を示す機能情報とを機能情報保持部150で予め保持しており、選択指示に基づいて機能情報保持部150で保持する機能情報を一つだけ読み出し、USB制御部113で、読み出した機能情報が示されたデバイスディスクリプタを生成し、該デバイスディスクリプタをPC30に通知する。これにより、PC30は、デバイスディスクリプタに示される一つの機能情報に基づいて通信相手先を特定することができ、機能を選択して接続構成の切替え命令(ベンダリクエスト)を発行するための専用ドライバが不要である。
Here, the gist of the present invention will be described.
As shown in FIG. 2, the scanner device 10 of the present invention includes a function information holding unit that stores function information indicating the function of the scanner device 10 and function information indicating the function of the printer device 20 connected to the scanner device via USB. 150, the function information holding unit 150 reads out only one function information based on the selection instruction, and the USB control unit 113 generates a device descriptor indicating the read function information. The device descriptor is notified to the PC 30. As a result, the PC 30 can specify a communication partner based on one function information indicated in the device descriptor, and a dedicated driver for selecting a function and issuing a connection configuration switching command (vendor request) is provided. It is unnecessary.

尚、以降の実施例では、各機能情報を予め保持しておき、読み出した機能情報が示されたデバイスディスクリプタを生成してPC30に通知する例で説明を行うが、スキャナ装置10の機能を示すスキャナ機能情報が示されたデバイスディスクリプタおよびプリンタ装置20の機能を示すプリンタ機能情報が示されたデバイスディスクリプタを予め保持しておき、選択指示に基づいて保持するデバイスディスクリプタを選択してPC30に通知するようにしてもよい。   In the following embodiments, each function information is stored in advance, and a device descriptor indicating the read function information is generated and notified to the PC 30. However, the function of the scanner device 10 is described. The device descriptor in which the scanner function information is indicated and the device descriptor in which the printer function information indicating the function of the printer device 20 is indicated are held in advance, and the device descriptor to be held is selected based on the selection instruction and notified to the PC 30. You may do it.

スキャナ装置10は、図2に示されるように、原稿を読取るための読取り部111と、読取った画像に対して画像処理を行うための画処理部112と、PC30に対してはUSBデバイスの1つとして機能し、プリンタ装置20に対してはハブ(HUB)として機能し、USBプロトコルに則ってUSB通信するためのUSB制御部113と、オペレータによるスキャナ装置10の動作設定を行うためなどの複数のキーが設けられているオペレーションパネル114と、原稿を読取って生成したデータを圧縮するための圧縮部115と、原稿読取を行って得たデータに基づいてプリンタ装置20を動作させて原稿の複写を行うコピー制御部116と、PC30からの制御命令に基づいて、スキャナとし動作制御するためのPCスキャナ制御部117と、PC30からの印刷データおよび制御命令を受信し、受信したデータおよび制御命令をプリンタ装置20へ転送して、プリンタ装置20に印刷を実行させるPCプリントとして制御を行うPCプリント制御部118と、原稿を読取って得たデータの保持、画処理および圧縮処理を行うための作業領域として用いる画メモリ119と、初期化時にスキャナ用デバイスディスクリプタあるいはプリンタ用デバイスディスクリプタのいずれか一方のデバイスディスクリプタを作成してPC30へ送信する初期化部121と、オペレーションパネル114のキーが押下されたことをUSB制御部113の後述するDevice制御部1131に通知するためのキーイベント配送部122と、後述するスキャナ機能情報およびプリンタ機能情報を保持する機能情報保持部150とを備える。   As shown in FIG. 2, the scanner device 10 includes a reading unit 111 for reading a document, an image processing unit 112 for performing image processing on the read image, and a USB device 1 for the PC 30. A USB control unit 113 that functions as a hub (HUB) for the printer device 20 and performs USB communication in accordance with the USB protocol, and a plurality of operations such as setting the operation of the scanner device 10 by an operator. The operation panel 114 provided with the key, the compression unit 115 for compressing the data generated by reading the document, and the printer device 20 are operated based on the data obtained by reading the document to copy the document. And a PC scanner control unit for controlling the operation of the scanner based on a control command from the PC 30 17, a PC print control unit 118 that receives print data and control commands from the PC 30, transfers the received data and control commands to the printer device 20, and controls the printer device 20 to execute printing. Image memory 119 used as a work area for holding data obtained by reading a document, image processing and compression processing, and creating either a device descriptor for a scanner or a device descriptor for a printer at initialization The key event delivery unit 122 for notifying a device control unit 1131 (to be described later) of the USB control unit 113, and a scanner function to be described later. Information and printer function information And a function information holding unit 150 for holding.

尚、前記各部は図示しないROMに保持されているプログラムに基づいてCPU120が実質的な制御を行うが、説明を簡便に行うために、前記した各機能ブロックでスキャナ装置10の説明を行う。   The respective units are substantially controlled by the CPU 120 based on a program held in a ROM (not shown), but the scanner device 10 will be described using the functional blocks described above for the sake of simplicity.

ところで、スキャナ装置10にUSBケーブル42で接続するプリンタ装置20は、図3に示されているように、プリンタ言語を解析するエミュレーション部201と、スキャナ装置10とプリンタ装置20との間においてUSB通信で印刷データおよび制御命令の送受信を行うUSB制御部202と、印刷データを記憶する画メモリ203と、印刷処理のため印刷エンジンを制御する印刷部204と、圧縮されて送られてくる印刷データを解凍するための解凍部205とを備える。
尚、前記各部は図示しないROMに保持されているプログラムに基づいて制御するCPU206が実質的な制を行うが、説明を簡便に行うために、前記した各機能ブロックでプリンタ装置20の説明を行う。
By the way, the printer device 20 connected to the scanner device 10 with the USB cable 42 performs USB communication between the emulation unit 201 for analyzing the printer language and the scanner device 10 and the printer device 20 as shown in FIG. The USB control unit 202 that transmits and receives print data and control commands, the image memory 203 that stores the print data, the print unit 204 that controls the print engine for print processing, and the print data that is sent after being compressed. And a decompression unit 205 for decompressing.
Note that the CPU 206 that controls each unit based on a program stored in a ROM (not shown) performs substantial control. However, in order to simplify the description, the printer device 20 is described using the functional blocks described above. .

スキャナ装置10の機能情報保持部150は、スキャナ装置10の機能を示す機能情報を保持するスキャナ機能情報保持部151と、プリンタ装置20の機能を示す機能情報を保持するプリンタ機能情報保持部152とを備えている。スキャナ機能情報保持部151で保持する機能情報またはプリンタ機能情報保持部152で保持する機能情報の何れか一方が、後述するデバイスディスクリプタ作成時に読み出される。   The function information holding unit 150 of the scanner device 10 includes a scanner function information holding unit 151 that holds function information indicating the function of the scanner device 10, and a printer function information holding unit 152 that holds function information indicating the function of the printer device 20. It has. Either the function information held by the scanner function information holding unit 151 or the function information held by the printer function information holding unit 152 is read when a device descriptor described later is created.

スキャナ装置10のUSB制御部113は、図4に示されているように、USBデバイスの1つとして機能するためのDevice制御部1131と、ハブとして機能するためのHost制御部1132から構成されている。   As shown in FIG. 4, the USB control unit 113 of the scanner device 10 includes a device control unit 1131 that functions as one of the USB devices and a host control unit 1132 that functions as a hub. Yes.

Host制御部1132は、プリンタ装置20へデータを送信するためのTxBuff11321とプリンタ装置20からのデータを受信するためのRxBuff11322とを備える。   The host control unit 1132 includes a TxBuff 11321 for transmitting data to the printer device 20 and an RxBuff 11322 for receiving data from the printer device 20.

Device制御部1131は、PC30からのデータを受信するためのRxBuff11311と、PC30へデータを送信するためのTxBuff11312と、後述するデバイスディスクリプタを作成するディスクリプタ作成部(図示せず)を複数有するマルチディスクリプタ作成部11313から構成されており、PC30とプリンタ装置20とがUSB通信を行うとき、RxBuff11311で保持するデータがTxBuff11321へ転送され、またRxBuff11322で保持するデータがTxBuff11312へ転送される。   The device control unit 1131 has a RxBuff 11311 for receiving data from the PC 30, a TxBuff 11312 for transmitting data to the PC 30, and a multi-descriptor creation having a plurality of descriptor creation units (not shown) for creating device descriptors to be described later. When the PC 30 and the printer device 20 perform USB communication, data held in the RxBuff 11311 is transferred to the TxBuff 11321, and data held in the RxBuff 11322 is transferred to the TxBuff 11312.

尚、オペレータがオペレーションパネル114におけるPC30とプリンタ装置20との間のUSB通信を指示するキーを押下することにより、後述するプリンタ機能情報が示されたデバイスディスクリプタが生成されて、該デバイスディスクリプタがPC10に通知された後、前記した転送制御が行われる。   When the operator presses a key for instructing USB communication between the PC 30 and the printer device 20 on the operation panel 114, a device descriptor indicating printer function information described later is generated, and the device descriptor is stored in the PC 10 After the notification, the transfer control described above is performed.

ここで、マルチディスクリプタ作成部11313を説明する。マルチディスクリプタ作成部11313は、図5に示されるように、USB接続におけるバスリセットを行うリセット部11314と、スキャナ用デバイスディスクリプタを作成するスキャナ用ディスクリプタ作成部11315と、プリンタ用デバイスディスクリプタを作成するプリンタ用ディスクリプタ作成部11316とから構成されている。   Here, the multi-descriptor creation unit 11313 will be described. As shown in FIG. 5, the multi-descriptor creation unit 11313 includes a reset unit 11314 that performs bus reset in USB connection, a scanner descriptor creation unit 11315 that creates a device descriptor for scanner, and a printer that creates a device descriptor for printer. And a descriptor descriptor 11316.

スキャナ用ディスクリプタ作成部11315は、当該装置10をスキャナ機能でPC30に制御させるべく、機能情報保持部150のスキャナ機能情報保持部151からスキャナ機能情報を読出し、該スキャナ機能情報が示されたデバイスディスクリプタを生成する。   The scanner descriptor creating unit 11315 reads the scanner function information from the scanner function information holding unit 151 of the function information holding unit 150 so that the PC 10 can control the apparatus 10 with the scanner function, and the device descriptor in which the scanner function information is indicated. Is generated.

一方、プリンタ用ディスクリプタ作成部11316は、当該装置10を介してプリンタ装置20をプリンタ機能でPC30に制御させるべく、機能情報保持部150のプリンタ機能情報保持部152からプリンタ機能情報を読出し、該プリンタ機能情報が示されたデバイスディスクリプタを作成する。このように、ディバイスディスクリプタは、PC10で制御させたい機能に応じて作成される。尚、作成されたデバイスディスクリプタはUSB接続におけるバスリセット後にPCに通知される。通知を受けたPCは、デバイスディスクリプタに示されている機能情報に基づいて通信相手先を特定する(デバイス定義を行う)。   On the other hand, the printer descriptor creating unit 11316 reads printer function information from the printer function information holding unit 152 of the function information holding unit 150 so that the PC 30 can be controlled by the printer function via the device 10 by the printer function. Create a device descriptor with functional information. As described above, the device descriptor is created according to the function to be controlled by the PC 10. The created device descriptor is notified to the PC after a bus reset in USB connection. The PC that has received the notification specifies a communication partner (performs device definition) based on the function information indicated in the device descriptor.

ところで、オペレーションパネル114は、オペレータからの選択指示を受けると、指示に応じた選択信号をUSB制御部113に出力する。選択信号を受けたUSB制御部113のマルチディスクリプタ作成部11313は、選択信号に基づいて、スキャナ用ディスクリプタ作成部11315又はプリンタ用ディスクリプタ作成部11316の何れか一方を起動する。換言すると、オペレータがオペレーションパネル114でスキャナ装置10の利用ボタンを押下すると、スキャナ用ディスクリプタ作成部11315が起動し、プリンタ装置20の利用ボタンを押下すると、プリンタ用ディスクリプタ作成部11316が起動する。   By the way, when the operation panel 114 receives a selection instruction from the operator, the operation panel 114 outputs a selection signal corresponding to the instruction to the USB control unit 113. Upon receiving the selection signal, the multi-descriptor creation unit 11313 of the USB control unit 113 activates either the scanner descriptor creation unit 11315 or the printer descriptor creation unit 11316 based on the selection signal. In other words, when the operator presses the use button of the scanner device 10 on the operation panel 114, the scanner descriptor creating unit 11315 is activated, and when the operator presses the use button of the printer device 20, the printer descriptor creating unit 11316 is activated.

次に、選択信号を出力するオペレーションパネル114を説明する。
スキャナ装置10のオペレーションパネル114は、図6に示されるように、オペレータが操作設定を行うためのLCDディスプレイ141と、複数の押下キー142と、PC−Scanerキー143とを備える。
Next, the operation panel 114 that outputs a selection signal will be described.
As shown in FIG. 6, the operation panel 114 of the scanner device 10 includes an LCD display 141 for an operator to perform operation settings, a plurality of press keys 142, and a PC-Scanner key 143.

オペレーションパネル114は、複数のキー142の押下に対応して、押下されたキーによる選択信号(選択情報)をUSB制御部113へ出力する。USB制御部113のマルチディスクリプタ作成部11313は、受信した選択信号に基づいて、スキャナ用ディスクリプタ作成部11315またはプリンタ用ディスクリプタ作成部11316の何れか一方を選択して起動する。   In response to pressing of the plurality of keys 142, the operation panel 114 outputs a selection signal (selection information) by the pressed keys to the USB control unit 113. The multi-descriptor creation unit 11313 of the USB control unit 113 selects and activates either the scanner descriptor creation unit 11315 or the printer descriptor creation unit 11316 based on the received selection signal.

ところで、PC−Scanerキー143が押下されると、オペレーションパネル114は、USB制御部113へPCスキャン選択を示す信号を出力する。USB制御部113はPCスキャン機能の選択信号を受けると、マルチディスクリプタ作成部11313でスキャナ用ディスクリプタ作成部11315を選択し、該スキャナ用ディスクリプタ作成部11315を起動する。   By the way, when the PC-Scanner key 143 is pressed, the operation panel 114 outputs a signal indicating PC scan selection to the USB control unit 113. When the USB control unit 113 receives the PC scan function selection signal, the multi-descriptor creation unit 11313 selects the scanner descriptor creation unit 11315 and activates the scanner descriptor creation unit 11315.

ところで、オペレーションパネル114の各種キー1142による選択指示又はPC―Scanerキー1143が押下されたときには、キー押下を示す情報(選択信号およびリセット信号)がオペレーションパネル114からキーイベント配送部122へ送信される。該情報を受信したキーイベント配送部122はUSB制御部113のDevice制御部1131へ情報を転送する。情報を受信したDevice制御部1131は、リセット部11314でUSB接続におけるバスリセットを実行すると共に、マルチディスクリプタ作成部11313でデバイスディスクリプタを作成する。バスリセットが実行されると、コントロール転送によりPC30とスキャナ装置10との通信が開始され、作成したデバイスディスクリプタがPC30へ通知される。   By the way, when the selection instruction by the various keys 1142 on the operation panel 114 or the PC-Scanner key 1143 is pressed, information indicating the key press (selection signal and reset signal) is transmitted from the operation panel 114 to the key event delivery unit 122. . The key event delivery unit 122 that has received the information transfers the information to the device control unit 1131 of the USB control unit 113. Upon receiving the information, the device control unit 1131 executes a bus reset in USB connection with the reset unit 11314 and creates a device descriptor with the multi-descriptor creation unit 11313. When the bus reset is executed, communication between the PC 30 and the scanner device 10 is started by control transfer, and the created device descriptor is notified to the PC 30.

コントロール転送では、PC30からスキャナ装置10へデバイスディスクリプタの取得命令が行われると、スキャナ装置10で生成したデバイスディスクリプタがスキャナ装置10からPC30へ送られる。PC30は、取得するデバイスディスクリプタに基づいてスキャナ装置10にアクセスを行うためのアドレスをスキャナに付与して、デバイス定義を行う。尚、これ以降、PC30は、セットされたアドレスを用いてスキャナ装置10と通信を行う。   In the control transfer, when a device descriptor acquisition command is issued from the PC 30 to the scanner device 10, the device descriptor generated by the scanner device 10 is sent from the scanner device 10 to the PC 30. The PC 30 assigns an address for accessing the scanner device 10 to the scanner based on the acquired device descriptor, and performs device definition. Thereafter, the PC 30 communicates with the scanner device 10 using the set address.

ところで、デバイスディスクリプタは、複数に分割されてスキャナ装置10からPC30へ送信されており、初めにデバイスディスクリプタの主要な情報をスキャナ装置10からPC30へ送信した後、PC30はデバイスディスクリプタの詳細情報の取得要求をスキャナ装置10に対し行い、要求を受けたスキャナ装置10は、必要な詳細情報をPC30へ出力する。この中には、スキャナ装置10のリソースに関する情報、例えば、パイプの使い方やID(識別)コードなどの情報が含まれている。例えば、PC30は、IDコードを参照してデバイスドライバを探し、対応するドライバを起動する。この様にして、スキャナ装置10のセットアップが完了すると、スキャナ装置10は、デバイスディスクリプタに記述された機能を提供することができる。   By the way, the device descriptor is divided into a plurality of parts and transmitted from the scanner apparatus 10 to the PC 30. First, the main information of the device descriptor is transmitted from the scanner apparatus 10 to the PC 30, and then the PC 30 acquires the detailed information of the device descriptor. The scanner device 10 makes a request to the scanner device 10 and receives the request, and outputs necessary detailed information to the PC 30. This includes information related to the resources of the scanner device 10, for example, information such as how to use a pipe and an ID (identification) code. For example, the PC 30 searches for a device driver with reference to the ID code and activates the corresponding driver. In this way, when the setup of the scanner device 10 is completed, the scanner device 10 can provide the function described in the device descriptor.

ところで、PC30にスキャナ装置10がホットプラグイン接続されると、PC30はスキャナ装置10の接続を検出した後、バスリセットを実行する。尚、バスリセット以降の動作は前述した内容と同様であることから、その説明を割愛する。   By the way, when the scanner device 10 is hot plug-in connected to the PC 30, the PC 30 detects the connection of the scanner device 10 and then executes a bus reset. Since the operation after the bus reset is the same as that described above, the description thereof is omitted.

スキャナ装置10の初期化部121は、初期化時にPC30へ通知するデバイスディスクリプタを任意に通知するための機能であり、具体的には、図7に示すように、テーブル番号にデバイスディスクリプタの作成部(スキャナ用ディスクリプタ作成部11315又はプリンタ用ディスクリプタ作成部11316)がテーブル形式で対応付けられたデフォルトデバイスディスクリプタテーブル1211と、該テーブルを初期化時に参照するためのテーブル番号を格納するデフォルトデバイスディスクリプタテーブル値格納エリア1212とを備える。   The initialization unit 121 of the scanner device 10 is a function for arbitrarily reporting a device descriptor to be notified to the PC 30 at the time of initialization. Specifically, as shown in FIG. A default device descriptor table 1211 associated with the scanner descriptor creation unit 11315 or the printer descriptor creation unit 11316 in a table format, and a default device descriptor table value for storing a table number for referring to the table at initialization. And a storage area 1212.

デフォルトデバイスディスクリプタテーブル1211には、テーブル番号「1」にスキャナ用ディスクリプタ作成部11315が対応付けられた対応テーブル1213と、テーブル番号「2」にプリンタ用ディスクリプタ作成部11316が対応付けられた対応テーブル1214とが示されている。
尚、デフォルトデバイスディスクリプタテーブル値格納エリア1212には、任意のテーブル番号が設定されており、当該デフォルトデバイスディスクリプタテーブル値格納エリア1212に示されているテーブル番号に応じて初期化時にPC30に通知するデバイスディスクリプタの作成部が選択される。
The default device descriptor table 1211 includes a correspondence table 1213 in which the scanner descriptor creation unit 11315 is associated with the table number “1”, and a correspondence table 1214 in which the printer descriptor creation unit 11316 is associated with the table number “2”. Is shown.
An arbitrary table number is set in the default device descriptor table value storage area 1212, and a device is notified to the PC 30 at initialization according to the table number indicated in the default device descriptor table value storage area 1212. The creation part of the descriptor is selected.

ここで、スキャナ装置10の初期化動作を図8のフローチャートを用いて説明する。
まず、初期化部121によりスキャナ装置の初期化処理が開始されると(S0801)、デフォルトデバイスディスクリプタテーブル値格納エリア1212の値がチェックされ(S0802)、「1」の場合、デフォルトデバイスディスクリプタテーブル1211よりスキャナ用ディスクリプタ作成部11315の起動が選択される。これにより、スキャナ用ディスクリプタ作成部11315でスキャナ機能情報が示されたデバイスディスクリプタが生成される。その後、USB制御部113のDevice制御部1131によりPC30へスキャナ用ディスクリプタが送信される(S0805)。
Here, the initialization operation of the scanner device 10 will be described with reference to the flowchart of FIG.
First, when the initialization process of the scanner device is started by the initialization unit 121 (S0801), the value of the default device descriptor table value storage area 1212 is checked (S0802). If “1”, the default device descriptor table 1211 is checked. Accordingly, activation of the scanner descriptor creation unit 11315 is selected. As a result, a device descriptor indicating the scanner function information is generated by the scanner descriptor creating unit 11315. Thereafter, the device descriptor of the USB controller 113 transmits the scanner descriptor to the PC 30 (S0805).

また、デフォルトデバイスディスクリプタテーブル値格納エリア1212の値が「2」の場合(S0803)、デフォルトデバイスディスクリプタテーブル1211よりプリンタ用ディスクリプタ作成部11316の起動が選択され、プリンタ用ディスクリプタ作成部11316でプリンタ機能情報が示されたデバイスディスクリプタが生成される。その後、USB制御部113のDevice制御部1131によりPC30へプリンタ用ディスクリプタが送信される(S0804)。   If the value of the default device descriptor table value storage area 1212 is “2” (S0803), the activation of the printer descriptor creation unit 11316 is selected from the default device descriptor table 1211, and the printer descriptor creation unit 11316 selects the printer function information. Is generated. Thereafter, the printer descriptor is transmitted to the PC 30 by the device control unit 1131 of the USB control unit 113 (S0804).

尚、デフォルトデバイスディスクリプタテーブル値格納エリア1212の値が「2」でない場合、デフォルトデバイスディスクリプタテーブル値格納エリア1212の値を不正とみなして、メモリ格納データが壊れた旨の表示をオペレーションパネル114のLCDディスプレイに行う(S0806)。   If the value in the default device descriptor table value storage area 1212 is not “2”, the value in the default device descriptor table value storage area 1212 is regarded as invalid, and an indication that the memory storage data has been corrupted is displayed on the LCD of the operation panel 114. This is performed on the display (S0806).

次に、プリンタ装置20が接続しているスキャナ装置10が、PC30へホットプラグインで接続された時の動作を図9のフローチャートを用いて説明する。
PC30へホットプラグインで接続されると(S0901)、PC30は新しいデバイスが接続されたことを認識してUSBのバスリセットを行う。スキャナ装置10は、PC30からのリセットを検出すると(S0902)、プリンタ用ディスクリプタ作成部11316を起動し、該プリンタ用ディスクリプタ作成部11316でプリンタ用ディスクリプタを作成する。
Next, the operation when the scanner device 10 to which the printer device 20 is connected is connected to the PC 30 by hot plug-in will be described with reference to the flowchart of FIG.
When connected to the PC 30 by hot plug-in (S0901), the PC 30 recognizes that a new device is connected and performs USB bus reset. Upon detecting a reset from the PC 30 (S0902), the scanner device 10 activates the printer descriptor creating unit 11316, and the printer descriptor creating unit 11316 creates a printer descriptor.

作成されたプリンタ用ディスクリプタはスキャナ装置10からPC30へ送信される(S0903)。プリンタ用ディスクリプタを取得したPC30は、USBプロトコルに則って、アドレス指定やコンフィグレーションディスクリプタやインタフェースディスクリプタなどの設定を行い(S0904)、Bulk転送あるいはアイソクロナス転送用のパイプが確立されて、該パイプにより、スキャナ装置10は、スキャナデバイスとしてPC30とUSB通信を開始する(S0905)。   The created printer descriptor is transmitted from the scanner device 10 to the PC 30 (S0903). The PC 30 that has acquired the printer descriptor sets the address designation, configuration descriptor, interface descriptor, and the like according to the USB protocol (S0904), and a pipe for Bulk transfer or isochronous transfer is established. The scanner device 10 starts USB communication with the PC 30 as a scanner device (S0905).

次に、PC30で作成したデータに基づいてプリンタ装置20で印刷する動作を図10のフローチャートを用いて説明する。尚、オペレータがPC30でプリンタ装置20を制御するための指示をオペレーションパネル114で行い、プリンタ機能情報が示されたデバイスディスクリプタが生成されて、該デバイスディスクリプタがPC10に通知され、PC10でデバイス定義が行われていることを前提に説明を行う。   Next, an operation of printing with the printer device 20 based on data created by the PC 30 will be described with reference to the flowchart of FIG. The operator gives an instruction to control the printer device 20 with the PC 30 on the operation panel 114, a device descriptor indicating the printer function information is generated, the device descriptor is notified to the PC 10, and the device definition is defined on the PC 10. The explanation is based on what is being done.

PC30にインストールされているプリンタドライバにより、作成したデータに対して画処理を施して圧縮処理を行い、プリンタ言語変換を行って印刷データを生成する。該印刷データは、USBケーブル41を介してPC30からスキャナ装置10へ送信されると、スキャナ装置10のUSB制御部113は印刷データを受信すると(S1001)、該印刷データをDevice制御部1131のRxBuff11311に格納する(S1002)。   The printer driver installed in the PC 30 performs image processing on the created data to perform compression processing, performs printer language conversion, and generates print data. When the print data is transmitted from the PC 30 to the scanner device 10 via the USB cable 41, when the USB control unit 113 of the scanner device 10 receives the print data (S1001), the print data is transferred to the RxBuff 11311 of the device control unit 1131. (S1002).

Device制御部1131のRxBuff11311に格納されたデータをHost制御部1132のTxBuff11321へCPU転送あるいはハードウエア転送する(S1003)。次に、USB制御部113のHost制御部1132のTxBuff11321に格納されている印刷データをPC30のHostコントローラの制御でプリンタ装置20へ送信する(S1004)。プリンタ装置20は受信した印刷データに基づいて印刷処理を行う(S1005)。   Data stored in the RxBuff 11311 of the device controller 1131 is transferred to the TxBuff 11321 of the host controller 1132 by CPU or hardware (S1003). Next, the print data stored in the TxBuff 11321 of the host control unit 1132 of the USB control unit 113 is transmitted to the printer device 20 under the control of the host controller of the PC 30 (S1004). The printer device 20 performs a printing process based on the received print data (S1005).

次に、スキャナ装置10をPCスキャナ機能で使用する動作を図11のフローチャートを用いて説明する。オペレータがオペレーションパネル114のPC−Scanerキー143を押すと(S1101)、キーイベント配送部122により、PC−Scanerキー143が押下されたことを示す情報がUSB制御部113へ配送されると、該USB制御部113でスキャナ用ディスクリプタ作成部11315が選択される。選択されたスキャナ用ディスクリプタ作成部11315はスキャナ用ディスクリプタを作成する。   Next, the operation of using the scanner device 10 with the PC scanner function will be described with reference to the flowchart of FIG. When the operator presses the PC-Scanner key 143 on the operation panel 114 (S1101), the key event delivery unit 122 delivers information indicating that the PC-Scanner key 143 is pressed to the USB control unit 113. The USB control unit 113 selects the scanner descriptor creation unit 11315. The selected scanner descriptor creating unit 11315 creates a scanner descriptor.

その後、USB制御部113のリセット部11314でバスリセットが実行されると(S1102)、スキャナ装置10は、コントロール転送によりPC30と通信を開始する。すなわちUSB制御部113はスキャナ用ディスクリプタをPC30へ送信する(S1103)。PC30は、スキャナ用ディスクリプタに基づいて、アドレス指定やコンフィグレーションディスクリプタおよびインタフェースディスクリプタと称される情報を取得して各種設定を行い(S1104)、この設定によりBulk転送あるいはアイソクロナス転送のためのパイプと称される伝送路を定め、スキャナ装置10とUSB通信を開始する(S1105)。   Thereafter, when a bus reset is executed by the reset unit 11314 of the USB control unit 113 (S1102), the scanner device 10 starts communication with the PC 30 by control transfer. That is, the USB control unit 113 transmits the scanner descriptor to the PC 30 (S1103). The PC 30 acquires information referred to as address designation, configuration descriptor, and interface descriptor based on the scanner descriptor and performs various settings (S1104). This setting is referred to as a pipe for Bulk transfer or isochronous transfer. The transmission path is determined, and USB communication with the scanner device 10 is started (S1105).

実施例1のスキャナ装置10によれば、オペレーションパネル114でオペレータが選択指示した機能でUSB通信を行うべく、選択指示された機能情報を一つだけ読出し、該機能情報だけが示されたデバイスディスクリプタを作成すると、該デバイスディスクリプタをバスリセット後にPC30に通知する。これにより、PC30は、通知されたデバイスディスクリプタに唯一示された機能情報に基づいて通信相手先を特定することができ、特定した通信相手先のデバイス定義を行ってUSB通信を行うことができる。   According to the scanner device 10 of the first embodiment, in order to perform USB communication with the function selected by the operator on the operation panel 114, only one selected function information is read, and only the function information is indicated. Is created, the device descriptor is notified to the PC 30 after the bus is reset. As a result, the PC 30 can identify the communication partner based on the function information uniquely indicated in the notified device descriptor, and can perform USB communication by defining the device of the identified communication partner.

従って、実施例1のスキャナ装置10によれば、一つの機能情報しか示されていないデバイスディスクリプタをPC30に通知することにより、デバイスディスクリプタに示される唯一の機能情報に基づいて通信相手先を特定することができ、機能を選択して接続構成の切替え命令(ベンダリクエスト)を発行するための専用ドライバを必要としない。これにより、専用ドライバの開発を行う必要が無く、当然専用ドライバをPC30にインストールする手間を省くことができる。   Therefore, according to the scanner device 10 of the first embodiment, by notifying the PC 30 of a device descriptor in which only one piece of function information is shown, the communication partner is specified based on the unique function information shown in the device descriptor. This does not require a dedicated driver for selecting a function and issuing a connection configuration switching instruction (vendor request). As a result, it is not necessary to develop a dedicated driver, and the trouble of installing the dedicated driver in the PC 30 can be saved.

また、実施例1のスキャナ装置10によれば、スキャナ装置10およびプリンタ装置20のそれぞれに、エンドポイントを設定するための特別なICチップを設ける必要がなく、スキャナ装置10およびプリンタ装置20の製造コストの増大を抑制することができる。   Further, according to the scanner device 10 of the first embodiment, it is not necessary to provide a special IC chip for setting an endpoint in each of the scanner device 10 and the printer device 20, and manufacture of the scanner device 10 and the printer device 20. An increase in cost can be suppressed.

更に、初期化時に、常にプリンタ用(あるいはスキャナ用)のデバイスディスクリプタを選択するように固定し、PC30へプリンタ用(あるいはスキャナ用)のデバイスディスクリプタを送信するように設定する初期化部121により、電源投入時にスキャナ装置10をPCプリント機能(あるいはPCスキャナ機能)に固定し使用することができ、利用者がスキャナ装置10の使用設定を意識することなく、デフォルトに設定された機能を利用することができる。   Further, the initialization unit 121 is set so that the device descriptor for printer (or scanner) is always selected at the time of initialization, and the device descriptor for printer (or scanner) is set to be transmitted to the PC 30. The scanner device 10 can be fixed to the PC print function (or PC scanner function) when the power is turned on, and the default function can be used without the user being aware of the use setting of the scanner device 10. Can do.

PC30へホットプラグインでスキャナ装置10を接続した時、常にプリンタ用(あるいはスキャナ用)ディスクリプタを作成するように固定し、PC30へプリンタ用(あるいはスキャナ用)のデバイスディスクリプタを送信するようにすることにより、ホットプラグイン時にスキャナ装置をPCプリント機能(あるいはPCスキャナ機能)に固定し使用することができるので、オペレータが混乱することなくスキャナ装置10を使用することができる。   When the scanner device 10 is connected to the PC 30 by hot plug-in, the printer (or scanner) descriptor is always fixed and the printer (or scanner) device descriptor is transmitted to the PC 30. Thus, since the scanner device can be fixed to the PC print function (or PC scanner function) during hot plug-in, the scanner device 10 can be used without being confused by the operator.

初期化時、電源投入時またはホットプラグイン接続時に、スキャナ装置をPCプリント機能で動作するように設定していても、オペレーションパネル114のPC−Scanerキー1143を押下することにより、PCプリント機能からPCスキャナ機能へ切替えて使用することができ、オペレータの使い勝手を向上させることができる。   Even if the scanner device is set to operate with the PC print function at the time of initialization, power-on or hot plug-in connection, the PC print function can be started by pressing the PC-Scanner key 1143 of the operation panel 114. It can be used by switching to the PC scanner function, and the usability of the operator can be improved.

実施例2のシステム構成は、図1に示す実施例1と同様であることから、その説明を割愛する。
実施例2のスキャナ装置11は、図12に示されるように、実施例1のスキャナ装置10の構成の機能変更が行われ、新規な機能が追加されている。具体的に実施例2のスキャナ装置11は、原稿を読取るための読取り部111´と、USB制御部113Aと、原稿が読取り部に配置かれたことを検出すると、該検出を示す情報をUSB制御部113AのDevice制御部1131へ送信する原稿検出イベント配送部123と、原稿が読取り部に置かれた状態が所定時間以上継続したことを検出する放置原稿検出タイマー124と、該放置原稿検出タイマー124よりタイムアウト信号を受けると、放置原稿の検出を示す情報をUSB制御部113AのDevice制御部1131へ送信するタイムアウトイベント配送部125とが実施例1の構成と異なる。
The system configuration of the second embodiment is the same as that of the first embodiment shown in FIG.
As shown in FIG. 12, the scanner device 11 according to the second embodiment has a function change of the configuration of the scanner device 10 according to the first embodiment, and a new function is added. Specifically, when the scanner device 11 according to the second embodiment detects that the document is placed in the reading unit 111 ′, the USB control unit 113A, and the reading unit 111A for reading the document, information indicating the detection is USB controlled. A document detection event delivery unit 123 that transmits to the device control unit 1131 of the unit 113A, a left document detection timer 124 that detects that the document has been placed on the reading unit for a predetermined time or more, and the left document detection timer 124 When receiving a time-out signal, the time-out event delivery unit 125 that transmits information indicating the detection of an undocumented document to the device control unit 1131 of the USB control unit 113A is different from the configuration of the first embodiment.

読取り部111´は、原稿が配置されたことを検出する原稿検出部1111を備えており、該原稿検出部1111は、原稿が配置されたことを示す原稿検出信号を原稿検出イベント配送部123および放置原稿検出タイマー124へ送信する。   The reading unit 111 ′ includes a document detection unit 1111 that detects that a document is placed. The document detection unit 1111 sends a document detection signal indicating that a document is placed to the document detection event delivery unit 123 and the document detection event delivery unit 123. The document is sent to the abandoned document detection timer 124.

原稿検出信号を受けた原稿検出イベント配送部123は、原稿を検出したことを示す情報をUSB制御部113Aへ送信する。USB制御部113Aは、原稿を検出したことを示す情報を受けると、スキャナ用ディスクリプタ作成部11315を選択し、該スキャナ用ディスクリプタ作成部11315で作成されたスキャナ用ディスクリプタをPC30へ送信する。     Upon receiving the document detection signal, the document detection event delivery unit 123 transmits information indicating that the document has been detected to the USB control unit 113A. Upon receiving information indicating that a document has been detected, the USB control unit 113A selects the scanner descriptor creation unit 11315, and transmits the scanner descriptor created by the scanner descriptor creation unit 11315 to the PC 30.

放置原稿検出タイマーは、原稿検出信号を受けると計時を開始し、原稿が読取り部に配置された状態が所定時間以上継続したことを検出すると、タイムアウト信号をタイムアウトイベント配送部125へ送信する。タイムアウト信号を受けたタイムアウトイベント配送部125は、放置原稿の検出を示す情報をUSB制御部113AのDevice制御部1131へ送信する。USB制御部113AのDevice制御部1131は、放置原稿の検出を示す情報を受けると、プリンタ用ディスクリプタ作成部11316を選択し、該プリンタ用ディスクリプタ作成部11316で作成されたプリンタ用ディスクリプタをPC30へ送信する。   The abandoned document detection timer starts timing when it receives a document detection signal, and transmits a timeout signal to the timeout event delivery unit 125 when it detects that the document has been placed in the reading unit for a predetermined time or longer. Upon receiving the time-out signal, the time-out event delivery unit 125 transmits information indicating the detection of the left document to the device control unit 1131 of the USB control unit 113A. When the device control unit 1131 of the USB control unit 113A receives the information indicating the detection of the left document, the device control unit 1131 selects the printer descriptor creation unit 11316 and transmits the printer descriptor created by the printer descriptor creation unit 11316 to the PC 30. To do.

次に、実施例2のスキャナ装置11の動作を図13のフローチャートを用いて説明する。
オペレータが、スキャナ機能を使用するために、スキャナ装置11の読取り部111´に原稿が配置されると、原稿検出部1111が原稿の配置を検出し(S1302)、原稿検出信号を原稿検出イベント配送部123および放置原稿検出タイマー124へ出力する。原稿検出信号を受けた放置原稿検出タイマー124は計時を開始する(S1303)。
Next, the operation of the scanner device 11 according to the second embodiment will be described with reference to the flowchart of FIG.
When an operator places a document on the reading unit 111 ′ of the scanner device 11 in order to use the scanner function, the document detection unit 1111 detects the placement of the document (S1302), and a document detection signal is delivered to the document detection event. Output to the unit 123 and the unattended document detection timer 124. The unattended document detection timer 124 that has received the document detection signal starts measuring time (S1303).

原稿検出信号を受けた原稿検出イベント配送部123は、原稿を検出したことを示す情報をUSB制御部113AのDevice制御部1131へ送信する(S1304)。
原稿を検出したことを示す情報を受けたDevice制御部1131は、スキャナ用ディスクリプタ作成部11315を選択し、該スキャナ用ディスクリプタ作成部11315で作成されたスキャナ用ディスクリプタをPC30へ送信すべく、バスリセットを実行する。バスリセット後のコントロール転送により、スキャナ装置11からPC30へスキャナ用ディスクリプタが送られる(ステップS1305)。
Upon receiving the document detection signal, the document detection event delivery unit 123 transmits information indicating that the document has been detected to the device control unit 1131 of the USB control unit 113A (S1304).
Upon receiving information indicating that the document has been detected, the device control unit 1131 selects the scanner descriptor creation unit 11315 and resets the bus so that the scanner descriptor created by the scanner descriptor creation unit 11315 is transmitted to the PC 30. Execute. By the control transfer after the bus reset, the scanner descriptor is sent from the scanner device 11 to the PC 30 (step S1305).

PC30は、取得するスキャナ用ディスクリプタに基づいてデバイス定義を行う。これにより、PC30はスキャナ装置11がスキャナ機能で動作することを認識することができる(S1306)。   The PC 30 performs device definition based on the acquired scanner descriptor. Accordingly, the PC 30 can recognize that the scanner device 11 operates with the scanner function (S1306).

ところで、読取り部111´に原稿が配置されたにも拘わらず、オペレータの指示でPCスキャナが行われなかったとき、原稿の放置検出時間に例えば5分が設定されている場合、放置原稿検出タイマー124は、5分経過でタイムアウトし、タイムアウト信号をタイムアウトイベント配送部125へ出力する(S1307)。   By the way, when the PC scanner is not performed in response to the operator's instruction even though the document is placed on the reading unit 111 ′, when the document detection detection time is set to 5 minutes, for example, the document detection timer is left. 124 times out after 5 minutes, and outputs a timeout signal to the timeout event delivery unit 125 (S1307).

タイムアウト信号を受けたタイムアウトイベント配送部125は、放置原稿を検出したことを示す情報を、USB制御部113Aへ出力する(S1308)。放置原稿を検出したことを示す情報を受けたUSB制御部113AのDevice制御部1131は、マルチディスクリプタ作成部11313でプリンタ用ディスクリプタ作成部11316を選択し、該プリンタ用ディスクリプタ作成部11316で作成したプリンタ用ディスクリプタを、バスリセット後にコントロール転送でPC30へ送信する(S1309)。
PC30は、取得するプリンタ用ディスクリプタに基づいてデバイス定義を行う。これにより、PC30はスキャナ装置11を介してプリンタ20を動作させることができる。
Upon receiving the time-out signal, the time-out event delivery unit 125 outputs information indicating that a left document has been detected to the USB control unit 113A (S1308). The device controller 1131 of the USB controller 113A that has received information indicating that an undocumented document has been detected selects the printer descriptor generator 11316 by the multi-descriptor generator 11313, and the printer created by the printer descriptor creator 11316. The descriptor is transmitted to the PC 30 by control transfer after the bus reset (S1309).
The PC 30 performs device definition based on the acquired printer descriptor. Thus, the PC 30 can operate the printer 20 via the scanner device 11.

実施例2のスキャナ装置11によれば、読取り部111´に原稿検出部1111を設け、原稿が放置されたことを検出すると、USB制御部113Aがスキャナ用ディスクリプタ作成部11315を選択して、該スキャナ用ディスクリプタ作成部11315で作成されるスキャナ用ディスクリプタをPC30へスキャナ用ディスクリプタを送信することにより、PC30はスキャナ用ディスクリプタに基づいてデバイス定義を行うことができる。これにより、スキャナ装置11に原稿を載せるだけでPCスキャナ機能を使うことが可能となり、オペレータの使い勝手を向上することができる。   According to the scanner device 11 of the second embodiment, when the document detection unit 1111 is provided in the reading unit 111 ′ and it is detected that the document is left unattended, the USB control unit 113A selects the scanner descriptor creation unit 11315, and By transmitting the scanner descriptor created by the scanner descriptor creating unit 11315 to the PC 30, the PC 30 can perform device definition based on the scanner descriptor. As a result, the PC scanner function can be used simply by placing a document on the scanner device 11, and the convenience of the operator can be improved.

また、放置原稿検出タイマー124で放置原稿を検出すると、スキャナ装置11の機能をPCプリント機能へ切替えることから、オペレータが読取り部111´で原稿を読取らせずに置き忘れたとき、スキャナ装置11をPCプリント機能として利用することができる。   Further, when a left document is detected by the left document detection timer 124, the function of the scanner device 11 is switched to the PC print function. Therefore, when the operator leaves the document without reading it with the reading unit 111 ′, the scanner device 11 is moved. It can be used as a PC print function.

実施例3のシステム構成は、図1に示す実施例1と同様であることから、その説明を割愛する。
実施例3のスキャナ装置12は、図14に示されるように、実施例2のスキャナ装置11の構成において、USB制御部113Aに代わるUSB制御部113Bと、PCプリントのための制御を行うPCプリント制御部118´と、デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令を検出した旨の情報をUSB制御部113Bへ送信するプリンタ簡易エミュレーションイベント配送部126とが追加されている。
Since the system configuration of the third embodiment is the same as that of the first embodiment shown in FIG. 1, the description thereof is omitted.
As shown in FIG. 14, the scanner device 12 according to the third embodiment includes a USB control unit 113 </ b> B that replaces the USB control unit 113 </ b> A in the configuration of the scanner device 11 according to the second embodiment, and PC printing that performs control for PC printing. A control unit 118 ′ and a printer simple emulation event delivery unit 126 that transmits information indicating that an instruction to switch the device descriptor from the printer to the scanner is detected are added.

PCプリント制御部118´は、PC30から送られてきたプリンタ言語を解析して「デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令」(特定情報)を検出するプリンタ簡易エミュレーション部(特定情報抽出部)1181を備えている。尚、プリンタ簡易エミュレーション部(特定情報抽出部)1181で「デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令」を検出できないとき、通常のPCプリントの機能が実行される。   The PC print control unit 118 ′ analyzes the printer language sent from the PC 30 and detects a “command for switching the device descriptor from the printer to the scanner” (specific information). 1181 is provided. When the printer simple emulation unit (specific information extraction unit) 1181 cannot detect the “command to switch the device descriptor from the printer to the scanner”, the normal PC printing function is executed.

プリンタ簡易エミュレーションイベント配送部126は、プリンタ簡易エミュレーション部1181から「デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令」を検出したことを示す検出信号を受けると、「デバイスディスクリプタを切替える命令」を示す情報をUSB制御部113Bへ送信する。   When the printer simple emulation event delivery unit 126 receives the detection signal indicating that the “command for switching the device descriptor from the printer to the scanner” is detected from the printer simple emulation unit 1181, the information indicating the “command for switching the device descriptor” is displayed. Is transmitted to the USB control unit 113B.

次に、実施例3のスキャナ装置12の動作を図15のフローチャートを用いて説明する。
PC30のオペレータが、スキャナ機能を使用すべく、PC30からPCプリント機能を停止する指示を出すと、プリンタドライバは、デバイスディスクリプタをプリンタ用からスキャナ用へ切替えるための命令をスキャナ装置12へ送信する(S1501)。命令を受けたスキャナ装置は、PCプリント制御部118´のプリンタ簡易エミュレーション部1181で、「デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令」を検出すると(S1502)、該検出がプリンタ簡易エミュレーションイベント配送部126に通知される。
Next, the operation of the scanner device 12 according to the third embodiment will be described with reference to the flowchart of FIG.
When the operator of the PC 30 issues an instruction to stop the PC print function from the PC 30 in order to use the scanner function, the printer driver transmits a command for switching the device descriptor from the printer to the scanner to the scanner device 12 ( S1501). Upon receiving the command, when the printer simple emulation unit 1181 of the PC print control unit 118 ′ detects a “command to switch the device descriptor from the printer to the scanner” (S1502), the scanner device delivers the printer simple emulation event delivery. The unit 126 is notified.

通知を受けたプリンタ簡易エミュレーションイベント配送部126は、「デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令」を検出したことを示す情報をUSB制御部113Bへ出力する(S1503)。情報を受けたUSB制御部113BのDevice制御部1131は、マルチディスクリプタ作成部11313でスキャナ用ディスクリプタ作成部11315を選択し、該スキャナ用ディスクリプタ作成部11315で作成したスキャナ用ディスクリプタを、バスリセット後にコントロール転送でPC30へ送信する(S1504)。PC30は、取得するスキャナ用ディスクリプタに基づいてデバイス定義を行う。これにより、PC30はスキャナ装置12をスキャナ機能として認識して、PCスキャナ機能が有効となる。   Upon receiving the notification, the simple printer emulation event delivery unit 126 outputs information indicating that the “command for switching the device descriptor from the printer to the scanner” has been detected to the USB control unit 113B (S1503). Upon receiving the information, the device control unit 1131 of the USB control unit 113B selects the scanner descriptor creation unit 11315 by the multi-descriptor creation unit 11313, and controls the scanner descriptor created by the scanner descriptor creation unit 11315 after the bus reset. The data is transmitted to the PC 30 (S1504). The PC 30 performs device definition based on the acquired scanner descriptor. As a result, the PC 30 recognizes the scanner device 12 as a scanner function, and the PC scanner function becomes effective.

実施例3のスキャナ装置12によれば、プリンタ簡易エミュレーション部1181でプリンタ言語を解析して「デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令」を検出すると、プリンタ用ディスクリプタに切替えてスキャナ用ディスクリプタをPC30に通知することにより、PC30はスキャナ用ディスクリプタに基づいてデバイス定義を行って、接続構成切替えを行う。これにより、PC30からの操作によりPCプリンタ機能からPCスキャナ機能に切替えて使用することが可能となり、オペレータの利便性を向上することができる。   According to the scanner device 12 of the third embodiment, when the printer language is analyzed by the printer simple emulation unit 1181 and a “command to switch the device descriptor from the printer to the scanner” is detected, the printer descriptor is switched to the printer descriptor. By notifying the PC 30, the PC 30 performs device definition based on the scanner descriptor and performs connection configuration switching. Accordingly, it is possible to switch from the PC printer function to the PC scanner function by an operation from the PC 30, and the convenience for the operator can be improved.

実施例4のシステム構成は、図1に示す実施例1と同様であることから、その説明を割愛する。
実施例3のスキャナ装置12では、「デバイスディスクリプタをプリンタ用からスキャナ用へ切替える命令」を検出したが、実施例4のスキャナ装置では、「デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令」を検出することが異なる。
実施例4のスキャナ装置13は、図16に示されるように、実施例3のスキャナ装置11の構成において、USB制御部113Bに代わるUSB制御部113Cと、PCプリンタのための制御を行うPCスキャナ制御部117´と、デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令を検出したことを示す情報をUSB制御部113Cへ送信するスキャナ簡易エミュレーションイベント配送部127とが追加されている。
Since the system configuration of the fourth embodiment is the same as that of the first embodiment shown in FIG. 1, the description thereof is omitted.
In the scanner device 12 of the third embodiment, the “command to switch the device descriptor from the printer to the scanner” is detected, but in the scanner device of the fourth embodiment, the “command to switch the device descriptor from the scanner to the printer” is detected. Different to do.
As shown in FIG. 16, the scanner device 13 according to the fourth embodiment includes a USB control unit 113 </ b> C instead of the USB control unit 113 </ b> B and a PC scanner that performs control for a PC printer in the configuration of the scanner device 11 according to the third embodiment. A control unit 117 ′ and a simple scanner emulation event delivery unit 127 that transmits information indicating that a command for switching the device descriptor from the scanner to the printer is detected are added to the USB control unit 113C.

PCスキャナ制御部117´は、PC30から送られてきたスキャナ言語を解析して「デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令」(特定情報)を検出するスキャナ簡易エミュレーション部(特定情報抽出部)1171を備えている。尚、スキャナ簡易エミュレーション部(特定情報抽出部)1171で「デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令」を検出できないとき、通常のPCスキャナの機能が実行される。   The PC scanner control unit 117 ′ analyzes the scanner language sent from the PC 30 and detects a “command for switching the device descriptor from the scanner to the printer” (specific information) and a simple scanner emulation unit (specific information extraction unit). 1171. When the scanner simple emulation unit (specific information extraction unit) 1171 cannot detect the “command to switch the device descriptor from the scanner to the printer”, the normal PC scanner function is executed.

スキャナ簡易エミュレーションイベント配送部126は、プリンタ簡易エミュレーション部1181から「デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令」を検出したことを示す検出信号を受けると、「デバイスディスクリプタを切替える命令」を示す情報をUSB制御部113Cへ送信する。   When the scanner simple emulation event delivery unit 126 receives a detection signal indicating that the “command for switching the device descriptor from the scanner to the printer” is detected from the printer simple emulation unit 1181, the information indicating the “command for switching the device descriptor” is displayed. Is transmitted to the USB control unit 113C.

次に、実施例4のスキャナ装置13の動作を図17のフローチャートを用いて説明する。
オペレータが、スキャナ機能を使用すべく、PC30からPCスキャン機能を停止する指示を出すと、スキャナドライバは、デバイスディスクリプタをスキャナ用からプリンタ用へ切替えるための命令をスキャナ装置13へ送信する(S1701)。スキャナ装置13のPCプリント制御部117´のスキャナ簡易エミュレーション部1171で、「デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令」を検出すると(S1702)、該検出がスキャナ簡易エミュレーションイベント配送部127に通知される。
Next, the operation of the scanner device 13 according to the fourth embodiment will be described with reference to the flowchart of FIG.
When the operator issues an instruction to stop the PC scan function from the PC 30 to use the scanner function, the scanner driver transmits an instruction for switching the device descriptor from the scanner to the printer to the scanner device 13 (S1701). . When the scanner simple emulation unit 1171 of the PC print control unit 117 ′ of the scanner device 13 detects a “command to switch the device descriptor from scanner to printer” (S1702), the detection is notified to the scanner simple emulation event delivery unit 127. Is done.

通知を受けたスキャナ簡易エミュレーションイベント配送部127は、「デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令」を検出したことを示す情報をUSB制御部113Cへ出力する(S1703)。情報を受けたUSB制御部113CのDevice制御部1131は、マルチディスクリプタ作成部11313でプリンタ用ディスクリプタ作成部11316を選択し、該プリンタ用ディスクリプタ作成部11316で作成したプリンタ用ディスクリプタを、バスリセット後にコントロール転送でPC30へ送信する(S1704)。PC30は、取得するプリンタ用ディスクリプタに基づいてデバイス定義を行う。これにより、PC30はスキャナ装置12を介してプリンタ装置20とUSB通信を行うことができる。   Upon receiving the notification, the scanner simple emulation event delivery unit 127 outputs information indicating that the “command to switch the device descriptor from the scanner to the printer” is detected to the USB control unit 113C (S1703). Upon receiving the information, the device control unit 1131 of the USB control unit 113C selects the printer descriptor creation unit 11316 by the multi-descriptor creation unit 11313, and controls the printer descriptor created by the printer descriptor creation unit 11316 after the bus reset. The data is transmitted to the PC 30 (S1704). The PC 30 performs device definition based on the acquired printer descriptor. Thus, the PC 30 can perform USB communication with the printer device 20 via the scanner device 12.

実施例4のスキャナ装置13によれば、スキャナ簡易エミュレーション部1171でスキャナ言語を解析して「デバイスディスクリプタをスキャナ用からプリンタ用へ切替える命令」を検出すると、スキャナ用ディスクリプタに切替えてプリンタ用ディスクリプタをPC30に通知することにより、PC30はプリンタ用ディスクリプタに基づいてデバイス定義を行って、接続構成切替えを行う。これにより、PC30からの操作によりPCスキャナ機能からPCプリンタ機能に切替えて使用することが可能となり、オペレータの利便性を向上することができる。   According to the scanner device 13 of the fourth embodiment, when the scanner simple emulation unit 1171 analyzes the scanner language and detects “an instruction to switch the device descriptor from the scanner to the printer”, the scanner descriptor is switched to the scanner descriptor. By notifying the PC 30, the PC 30 performs device definition based on the printer descriptor and performs connection configuration switching. As a result, it is possible to switch from the PC scanner function to the PC printer function by an operation from the PC 30, and the convenience of the operator can be improved.

実施例5のシステム構成は、図1に示す実施例1と同様であることから、その説明を割愛する。
実施例5のスキャナ装置14は、前記した実施例4の構成において、USB制御部113Cに代わるUSB制御部113Dと、PCスキャナ機能の終了情報をUSB制御部113Dへ送信するPCスキャン動作終了イベント配送部128と、PCプリント機能の終了情報をUSB制御部113Dへ送信するPCプリント動作終了イベント配送部129とが追加されている。
Since the system configuration of the fifth embodiment is the same as that of the first embodiment shown in FIG. 1, the description thereof is omitted.
In the scanner device 14 of the fifth embodiment, in the configuration of the fourth embodiment described above, the PC control operation end event delivery that transmits the USB control unit 113D instead of the USB control unit 113C and the PC scanner function end information to the USB control unit 113D. And a PC print operation end event delivery unit 129 for transmitting PC print function end information to the USB control unit 113D.

PCスキャン動作終了イベント配送部128は、読取り部111´でPCスキャン動作が終了したことを検出すると、PCスキャン終了情報をUSB制御部113DのDevice制御部1131に送信する。
PCプリント動作終了イベント配送部129は、スキャナ装置14のHost制御部1132のTxBuff11321に格納されている印刷データの全てがプリンタ装置20へ送信されたことを検出すると、PCプリント終了情報をUSB制御部113DのDevice制御部1131に送信する。
When the PC scan operation end event delivery unit 128 detects that the PC scan operation is completed by the reading unit 111 ′, the PC scan operation end event delivery unit 128 transmits PC scan end information to the device control unit 1131 of the USB control unit 113D.
When the PC print operation end event delivery unit 129 detects that all of the print data stored in the TxBuff 11321 of the host control unit 1132 of the scanner device 14 has been transmitted to the printer device 20, the PC print end information delivery unit 129 sends the PC print end information to the USB control unit The data is transmitted to the device control unit 1131 of 113D.

USB制御部113DのDevice制御部1131は、PCスキャン終了情報を受けると、マルチディスクリプタ作成部11313でプリンタ用ディスクリプタ作成部11316を選択し、該プリンタ用ディスクリプタ作成部11316で作成されたプリンタ用ディスクリプタをPC30へ送信する。一方、PCプリント終了情報を受けたDevice制御部1131は、マルチディスクリプタ作成部11313でスキャナ用ディスクリプタ作成部11315を選択し、該スキャン用ディスクリプタ作成部11315で作成されたスキャン用ディスクリプタをPC30へ送信する。   Upon receiving the PC scan end information, the device control unit 1131 of the USB control unit 113D selects the printer descriptor creation unit 11316 by the multi-descriptor creation unit 11313, and the printer descriptor created by the printer descriptor creation unit 11316 is selected. Send to PC30. On the other hand, upon receiving the PC print end information, the device control unit 1131 selects the scanner descriptor creation unit 11315 by the multi-descriptor creation unit 11313 and transmits the scan descriptor created by the scan descriptor creation unit 11315 to the PC 30. .

次に、スキャナ装置14の動作を説明する。
尚、PCスキャナ機能が選択されているときの動作を、図19のフローチャートを用いて説明する。
Next, the operation of the scanner device 14 will be described.
The operation when the PC scanner function is selected will be described with reference to the flowchart of FIG.

読取り部111´でPCスキャン動作の終了監視が行われており(S1902)、読取り部111´でPCスキャナ動作の終了を検出すると、PCスキャン終了情報がPCスキャン動作終了イベント配送部128へ通知される。PCスキャン動作終了イベント配送部128は、PCスキャナ動作の終了を示す情報をUSB制御部113Dへ送信する(S1903)。   The end of the PC scan operation is monitored by the reading unit 111 ′ (S1902), and when the end of the PC scanner operation is detected by the reading unit 111 ′, the PC scan end information is notified to the PC scan operation end event delivery unit 128. The The PC scan operation end event delivery unit 128 transmits information indicating the end of the PC scanner operation to the USB control unit 113D (S1903).

PCスキャナ動作終了情報を受けたUSB制御部113DのDevice制御部1131は、マルチディスクリプタ作成部11313で2つのディスクリプタ作成部の中からプリンタ用ディスクリプタ作成部11316を選択し、選択したプリンタ用ディスクリプタ作成部11316で生成されるプリンタ用ディスクリプタを、バスリセットを実行した後、コントロール転送でPC30へ通知する(S1904)。これ以降の動作は、前記実施例で説明した内容と同様であることから、説明を割愛するが、同様の処理過程を経た後、PCプリント機能が有効となる。   Upon receiving the PC scanner operation end information, the device control unit 1131 of the USB control unit 113D selects the printer descriptor creation unit 11316 from the two descriptor creation units by the multi-descriptor creation unit 11313, and selects the selected printer descriptor creation unit. After executing the bus reset, the printer descriptor generated in 11316 is notified to the PC 30 by control transfer (S1904). Since the subsequent operations are the same as those described in the above embodiment, a description thereof will be omitted. However, after the same processing steps are performed, the PC print function becomes effective.

次に、PCプリンタ機能が選択されているときの動作を、図20のフローチャートを用いて説明する。   Next, the operation when the PC printer function is selected will be described using the flowchart of FIG.

PCプリンタ動作の終了監視が行われており(S2002)、PCプリンタ動作の終了を検出したPCプリント動作終了イベント配送部129は、PCプリント動作の終了を示す情報をUSB制御部113Dへ送信する(S2003)。   PC printer operation end monitoring is performed (S2002), and the PC print operation end event delivery unit 129 that detects the end of the PC printer operation transmits information indicating the end of the PC print operation to the USB control unit 113D ( S2003).

PCプリント動作終了情報を受けたUSB制御部113DのDevice制御部1131は、マルチディスクリプタ作成部11313で2つのディスクリプタ作成部の中からスキャナ用ディスクリプタ作成部11315を選択し、選択したスキャナ用ディスクリプタ作成部11315で生成されるスキャナ用ディスクリプタを、バスリセットを実行した後、コントロール転送でPC30へ通知する(S2004)。これ以降の動作は、前記実施例で説明した内容と同様であることから、説明を割愛するが、同様の処理過程を経た後、PCスキャナ機能が有効となる。   Upon receiving the PC print operation end information, the device control unit 1131 of the USB control unit 113D selects the scanner descriptor creation unit 11315 from the two descriptor creation units by the multi-descriptor creation unit 11313, and selects the selected scanner descriptor creation unit. The scanner descriptor generated in 11315 is notified to the PC 30 by control transfer after executing the bus reset (S2004). Since the subsequent operations are the same as those described in the above embodiment, the description will be omitted. However, after the same processing steps are performed, the PC scanner function becomes effective.

実施例5のスキャナ装置14によれば、PCスキャン動作終了を検出すると、PCスキャン動作終了イベント配送部128からの情報に基づいてUSB制御部113DのDevice制御部1131がPCプリント動作として機能させるためのデバイスディスクリプタを作成してPC30に通知し、PCプリント動作終了を検出すると、PCプリント動作終了イベント配送部129からの情報に基づいてUSB制御部113DのDevice制御部1131がPCスキャナ動作として機能させるためのデバイスディスクリプタを作成してPC30に通知する。この機能を用いて、例えばオペレータが主に使用する機能を機能修了後に動作させる機能として予め設定することにより、所望の機能が終了すると、オペレータが主に使用する機能に自動的に切替えることができ、オペレータの利便性の向上を図ることができる。   According to the scanner device 14 of the fifth embodiment, when the end of the PC scan operation is detected, the device control unit 1131 of the USB control unit 113D functions as a PC print operation based on information from the PC scan operation end event delivery unit 128. When the end of the PC print operation is detected, the device control unit 1131 of the USB control unit 113D functions as a PC scanner operation based on the information from the PC print operation end event delivery unit 129. A device descriptor is created and notified to the PC 30. By using this function, for example, by setting the function mainly used by the operator as a function to be operated after completion of the function in advance, when the desired function is completed, the function can be automatically switched to the function mainly used by the operator. The convenience of the operator can be improved.

前記した実施例では、周辺装置としてスキャナ装置を、従属周辺装置としてプリンタ装置がUSB接続されたシステムを例に説明したが、実施例6では、図21に示すように、PC80にUSBケーブル91を介して接続するプリンタ装置60を周辺装置として、該プリンタ60にUSBケーブル91を介して接続するスキャナ装置70を従属周辺装置として構築されたシステムを説明する。   In the above-described embodiment, a system in which a scanner device is used as a peripheral device and a printer device is connected as a peripheral device by USB is described as an example. However, in Embodiment 6, a USB cable 91 is connected to a PC 80 as shown in FIG. A system constructed using the printer device 60 connected via the USB cable 91 as a peripheral device and the scanner device 70 connected via the USB cable 91 as a slave peripheral device will be described.

プリンタ装置60は、図22に示されるように、用紙に印刷する印刷部601と、圧縮された印刷データを解凍する解凍部602と、PC80に対してはUSBデバイスの1つとして機能し、スキャナ装置70に対してはハブ(HUB)として機能し、USBプロトコルに則ってUSB通信するためのUSB制御部603と、オペレータによるプリンタ装置60の動作設定を行うためなどの複数のキーが設けられているオペレーションパネル604と、プリンタコントロール言語を解読するためのエミュレーション部605と、プリンタ装置60でPCスキャナ用の制御命令を一旦受信し、受信した制御命令をスキャナ装置70へ転送してPCスキャナとして機能するように制御するためのPCスキャナ制御部606と、当該装置をPCプリンタとして機能させるように制御するためのPCプリント制御部607と、印刷画データの保持、画処理および圧縮処理を行うための作業領域として用いる画メモリ609と、初期化時にスキャナ用デバイスディスクリプタあるいはプリンタ用デバイスディスクリプタのいずれか一方のデバイスディスクリプタを作成してPC80へ送信する初期化部610と、オペレーションパネル114のキーが押下されたことをUSB制御部603の後述するDevice制御部6031に通知するためのキーイベント配送部608と、プリンタ機能情報およびスキャナ機能情報を保持する機能情報保持部650とを備える。   As shown in FIG. 22, the printer device 60 functions as one of USB devices for a printing unit 601 that prints on paper, a decompressing unit 602 that decompresses compressed print data, and a PC 80. The device 70 functions as a hub (HUB), and is provided with a plurality of keys such as a USB control unit 603 for USB communication in accordance with the USB protocol and an operation setting of the printer device 60 by an operator. The operation panel 604, the emulation unit 605 for decoding the printer control language, and the printer device 60 once receives a control command for the PC scanner, and transfers the received control command to the scanner device 70 to function as a PC scanner. PC scanner control unit 606 for controlling A PC print control unit 607 for controlling to function as a printer, an image memory 609 used as a work area for holding print image data, image processing, and compression processing, and a scanner device descriptor or printer at initialization An initialization unit 610 that creates one of the device descriptors for transmission and transmits it to the PC 80, and a device control unit 6031 (to be described later) of the USB control unit 603 that notifies that the key of the operation panel 114 has been pressed. Key event delivery unit 608 and a function information holding unit 650 that holds printer function information and scanner function information.

尚、前記各部は図示しないROMに保持されているプログラムに基づいてCPU611が実質的な制御を行うが、説明を簡便に行うために、前記した各機能ブロックでプリンタ装置60の説明を行う。   Note that the CPU 611 performs substantial control of the respective units based on a program held in a ROM (not shown), but the printer device 60 will be described using the functional blocks described above for the sake of simplicity.

ところで、プリンタ装置60の機能情報保持部650は、スキャナ装置70の機能を示す機能情報を保持するスキャナ機能情報保持部651と、当該プリンタ装置60の機能を示す機能情報を保持するプリンタ機能情報保持部652とを備えている。スキャナ機能情報保持部651で保持する機能情報またはプリンタ機能情報保持部652で保持する機能情報の何れか一方が、後述するデバイスディスクリプタ作成時に読み出される。   Incidentally, the function information holding unit 650 of the printer device 60 has a scanner function information holding unit 651 that holds function information indicating the function of the scanner device 70 and a printer function information holding that holds function information indicating the function of the printer device 60. Part 652. One of the function information held by the scanner function information holding unit 651 and the function information held by the printer function information holding unit 652 is read when a device descriptor described later is created.

プリンタ装置60のUSB制御部603は、図23に示されているように、USBデバイスの1つとして機能するためのDevice制御部6031と、ハブとして機能するためのHost制御部6032から構成されている。   As shown in FIG. 23, the USB control unit 603 of the printer device 60 includes a device control unit 6031 that functions as one of the USB devices, and a host control unit 6032 that functions as a hub. Yes.

Host制御部6032は、スキャナ装置70へデータを送信するためのTxBuff60321と、スキャナ装置70からのデータを受信するためのRxBuff60322とを備える。   The host control unit 6032 includes a TxBuff 60321 for transmitting data to the scanner device 70 and an RxBuff 60322 for receiving data from the scanner device 70.

Device制御部6031は、PC80からのデータを受信するためのRxBuff60311と、PC80へデータを送信するためのTxBuff60312と、後述するデバイスディスクリプタを作成するディスクリプタ作成部(図示せず)を複数有するマルチディスクリプタ作成部60313から構成されており、PC80とスキャナ装置70とがUSB通信を行うとき、RxBuff60311で保持するデータがTxBuff60321へ転送され、またRxBuff60322で保持するデータがTxBuff60312へ転送される。   The device control unit 6031 has a RxBuff 60311 for receiving data from the PC 80, a TxBuff 60312 for transmitting data to the PC 80, and a multi-descriptor creation having a plurality of descriptor creation units (not shown) for creating device descriptors to be described later. When the PC 80 and the scanner device 70 perform USB communication, the data held in the RxBuff 603111 is transferred to the TxBuff 60321, and the data held in the RxBuff 60322 is transferred to the TxBuff 60312.

尚、オペレータがオペレーションパネル604におけるPC80とスキャナ装置70との間のUSB通信を指示するキーを押下することにより、後述するスキャナ機能情報が示されたデバイスディスクリプタが生成されて、該デバイスディスクリプタがPC10に通知された後、前記した転送制御が行われる。   When an operator presses a key for instructing USB communication between the PC 80 and the scanner device 70 on the operation panel 604, a device descriptor indicating scanner function information to be described later is generated. After the notification, the transfer control described above is performed.

ここで、マルチディスクリプタ作成部60313を説明する。マルチディスクリプタ作成部60313は、図24に示されるように、USB接続におけるバスリセットを行うリセット部60314と、スキャナ用デバイスディスクリプタを作成するスキャナ用ディスクリプタ作成部60315と、プリンタ用デバイスディスクリプタを作成するプリンタ用ディスクリプタ作成部60316とから構成されている。   Here, the multi-descriptor creation unit 60313 will be described. As shown in FIG. 24, the multi-descriptor creation unit 60313 includes a reset unit 60314 that performs bus reset in USB connection, a scanner descriptor creation unit 60315 that creates a device descriptor for scanner, and a printer that creates a device descriptor for printer. And a descriptor creation unit 60316.

当該装置60を介してスキャナ装置70をスキャナ機能でPC80に制御させるべく、スキャナ用ディスクリプタ作成部60315は、機能情報保持部650のスキャナ機能情報保持部651からスキャナ機能情報を読出し、該スキャナ機能情報が示されたデバイスディスクリプタを生成する。   The scanner descriptor creating unit 60315 reads the scanner function information from the scanner function information holding unit 651 of the function information holding unit 650 so that the PC 80 can control the scanner device 70 with the scanner function via the device 60. A device descriptor indicated by is generated.

一方、プリンタ用ディスクリプタ作成部60316は、当該装置60をプリンタ機能でPC80に制御させるべく、機能情報保持部650のプリンタ機能情報保持部652からプリンタ機能情報を読出し、該プリンタ機能情報が示されたデバイスディスクリプタを作成する。このように、ディバイスディスクリプタは、PC80で制御させたい機能に応じて作成される。尚、作成されたデバイスディスクリプタはUSB接続におけるバスリセット後にPCに通知される。通知を受けたPCは、デバイスディスクリプタに示されている機能情報に基づいて通信相手先を特定する(デバイス定義を行う)。   On the other hand, the printer descriptor creating unit 60316 reads the printer function information from the printer function information holding unit 652 of the function information holding unit 650 so that the PC 80 can control the apparatus 60 with the printer function, and the printer function information is indicated. Create a device descriptor. In this way, the device descriptor is created according to the function that the PC 80 wants to control. The created device descriptor is notified to the PC after a bus reset in USB connection. The PC that has received the notification specifies a communication partner (performs device definition) based on the function information indicated in the device descriptor.

プリンタ装置60のオペレーションパネル604は、図25に示されるように、オペレータが操作設定を行うためのLCDディスプレイ6041と、複数の押下キー6042と、PC−Scanerキー6043とを備える。   As shown in FIG. 25, the operation panel 604 of the printer device 60 includes an LCD display 6041 for an operator to perform operation settings, a plurality of push keys 6042, and a PC-Scanner key 6043.

オペレーションパネル604は、複数のキー6042の押下に対応して、押下されたキーによる選択信号(選択情報)をUSB制御部603へ出力する。USB制御部603のマルチディスクリプタ作成部60313は、受信した選択信号に基づいて、スキャナ用ディスクリプタ作成部60315又はプリンタ用ディスクリプタ作成部60316の何れか一方を起動する。換言すると、オペレータがオペレーションパネル604でスキャナ装置70の利用ボタンを押下すると、スキャナ用ディスクリプタ作成部60315が起動し、プリンタ装置60の利用ボタンを押下すると、プリンタ用ディスクリプタ作成部60316が起動する。   In response to pressing of a plurality of keys 6042, the operation panel 604 outputs a selection signal (selection information) by the pressed keys to the USB control unit 603. The multi-descriptor creation unit 60313 of the USB control unit 603 activates either the scanner descriptor creation unit 60315 or the printer descriptor creation unit 60316 based on the received selection signal. In other words, when the operator presses the use button of the scanner device 70 on the operation panel 604, the scanner descriptor creation unit 60315 is activated, and when the operator presses the use button of the printer device 60, the printer descriptor creation unit 60316 is activated.

ところで、PC−Scanerキー3043が押下されると、オペレーションパネル604は、USB制御部603へPCSキャン選択を示す信号を出力する。PCスキャン機能の選択を示す選択信号を受けたUSB制御部603は、マルチディスクリプタ作成部60313でスキャナ用ディスクリプタ作成部60315を選択し、該スキャナ用ディスクリプタ作成部60315を起動してデバイスディスクリプタを生成する。生成したデバイスディスクリプタは、リセット部60314でUSB接続におけるバスリセットが実行された後、コントロール転送でPC80へ通知される。尚、バスリセット以降の動作は前述した実施例と同様であることから、その説明を割愛する。   When the PC-Scanner key 3043 is pressed, the operation panel 604 outputs a signal indicating PCS cancel selection to the USB control unit 603. Upon receiving the selection signal indicating selection of the PC scan function, the USB control unit 603 selects the scanner descriptor creation unit 60315 by the multi-descriptor creation unit 60313, and activates the scanner descriptor creation unit 60315 to generate a device descriptor. . The generated device descriptor is notified to the PC 80 by control transfer after the bus reset in the USB connection is executed by the reset unit 60314. Since the operation after the bus reset is the same as that in the above-described embodiment, the description thereof is omitted.

プリンタ装置60の初期化部610は、初期化時にPC80へ通知するデバイスディスクリプタを任意に通知するための機能であり、図26に示すように、テーブル番号にデバイスディスクリプタの作成部(スキャナ用ディスクリプタ作成部60315又はプリンタ用ディスクリプタ作成部60316)がテーブル形式で対応付けられたデフォルトデバイスディスクリプタテーブル6101と、該テーブルを初期化時に参照するためのテーブル番号を格納するデフォルトデバイスディスクリプタテーブル値格納エリア6102とを備える。   The initialization unit 610 of the printer device 60 is a function for arbitrarily reporting a device descriptor to be notified to the PC 80 at the time of initialization. As shown in FIG. 26, a device descriptor creation unit (scanner descriptor creation) is added to the table number. A default device descriptor table 6101 associated with the table 60315 or the printer descriptor creating unit 60316) in a table format, and a default device descriptor table value storage area 6102 for storing a table number for referring to the table at initialization. Prepare.

デフォルトデバイスディスクリプタテーブル1211には、テーブル番号「1」にスキャナ用ディスクリプタ作成部60315が対応付けられた対応テーブル6103と、テーブル番号「2」にプリンタ用ディスクリプタ作成部60316が対応付けられた対応テーブル6104とが示されている。
尚、デフォルトデバイスディスクリプタテーブル値格納エリア6102には、任意のテーブル番号が設定されており、当該デフォルトデバイスディスクリプタテーブル値格納エリア6102に示されているテーブル番号に応じて初期化時にPC80に通知するデバイスディスクリプタの作成部が選択される。
The default device descriptor table 1211 includes a correspondence table 6103 in which the scanner descriptor creation unit 60315 is associated with the table number “1”, and a correspondence table 6104 in which the printer descriptor creation unit 60316 is associated with the table number “2”. Is shown.
An arbitrary table number is set in the default device descriptor table value storage area 6102, and a device is notified to the PC 80 at initialization according to the table number indicated in the default device descriptor table value storage area 6102. The creation part of the descriptor is selected.

ここで、実施例6のプリンタ装置60の初期化部610の初期化動作を図27のフローチャートを用いて説明する。
まず、初期化部610によりスキャナ装置の初期化処理が開始されると(S2701)、デフォルトデバイスディスクリプタテーブル値格納エリア6102の値がチェックされ(S2702)、「1」の場合、デフォルトデバイスディスクリプタテーブル6101よりスキャナ用ディスクリプタ作成部60315の起動が選択される。これにより、スキャナ用ディスクリプタ作成部60315でスキャナ機能情報が示されたデバイスディスクリプタが生成される。その後、USB制御部603のDevice制御部6031によりPC80へスキャナ用ディスクリプタが送信される(S2705)。
Here, the initialization operation of the initialization unit 610 of the printer device 60 according to the sixth embodiment will be described with reference to the flowchart of FIG.
First, when initialization processing of the scanner device is started by the initialization unit 610 (S2701), the value of the default device descriptor table value storage area 6102 is checked (S2702). If “1”, the default device descriptor table 6101 is checked. Accordingly, activation of the scanner descriptor creation unit 60315 is selected. As a result, a device descriptor indicating the scanner function information is generated by the scanner descriptor creating unit 60315. Thereafter, the scanner descriptor is transmitted to the PC 80 by the device control unit 6031 of the USB control unit 603 (S2705).

また、デフォルトデバイスディスクリプタテーブル値格納エリア6102の値が「2」の場合(S2703)、デフォルトデバイスディスクリプタテーブル6101よりプリンタ用ディスクリプタ作成部60316の起動が選択され、プリンタ用ディスクリプタ作成部60316でプリンタ機能情報が示されたデバイスディスクリプタが生成される。その後、USB制御部603のDevice制御部6031によりPC80へプリンタ用ディスクリプタが送信される(S2704)。   If the value in the default device descriptor table value storage area 6102 is “2” (S2703), the printer descriptor creation unit 60316 selects the printer descriptor creation unit 60316 from the default device descriptor table 6101 and the printer function information is transmitted to the printer function information. Is generated. Thereafter, the device descriptor 6031 of the USB controller 603 transmits a printer descriptor to the PC 80 (S2704).

尚、デフォルトデバイスディスクリプタテーブル値格納エリア6102の値が「2」でない場合、デフォルトデバイスディスクリプタテーブル値格納エリア6102の値を不正とみなして、メモリ格納データが壊れた旨の表示をオペレーションパネル604のLCDディスプレイ6041に行う(S2706)。   If the value in the default device descriptor table value storage area 6102 is not “2”, the value in the default device descriptor table value storage area 6102 is regarded as invalid, and an indication that the memory storage data is corrupted is displayed on the LCD of the operation panel 604. This is performed on the display 6041 (S2706).

次に、スキャナ装置70が接続しているプリンタ装置60が、PC80へホットプラグインで接続された時の動作を図28のフローチャートを用いて説明する。
PC80へホットプラグインで接続されると(S2801)、PC80は新しいデバイスが接続されたことを認識してUSBのバスリセットをリセット部60314で行う。プリンタ装置60は、PC80からのリセットを検出すると(S2802)、プリンタ用ディスクリプタ作成部60316を起動し、該プリンタ用ディスクリプタ作成部60316でプリンタ用ディスクリプタを作成する。
Next, the operation when the printer device 60 connected to the scanner device 70 is connected to the PC 80 by hot plug-in will be described with reference to the flowchart of FIG.
When connected to the PC 80 by hot plug-in (S2801), the PC 80 recognizes that a new device is connected and performs a USB bus reset by the reset unit 60314. When the printer 60 detects a reset from the PC 80 (S2802), the printer descriptor creation unit 60316 is activated, and the printer descriptor creation unit 60316 creates a printer descriptor.

作成されたプリンタ用ディスクリプタは、コントロール転送でプリンタ装置60からPC80へ送信される(S2803)。プリンタ用ディスクリプタを取得したPC80は、USBプロトコルに則って、アドレス指定やコンフィグレーションディスクリプタやインタフェースディスクリプタなどの設定を行い(S2804)、Bulk転送あるいはアイソクロナス転送用のパイプが確立されて、該パイプにより、プリンタ装置60は、プリンタデバイスとしてPC80とUSB通信を開始する(S2805)。   The created printer descriptor is transmitted from the printer 60 to the PC 80 by control transfer (S2803). The PC 80 that has acquired the printer descriptor performs address designation, configuration descriptor, interface descriptor, and the like in accordance with the USB protocol (S2804), and a pipe for bulk transfer or isochronous transfer is established. The printer device 60 starts USB communication with the PC 80 as a printer device (S2805).

次に、オペレータがプリンタ装置60をスキャナ機能で使用するときの動作を図29のフローチャートを用いて説明する。
オペレータにより、オペレーションパネル604のPC−Scanerキー6043が押下されると(S2901)、キーイベント配送部608により、PC−Scanerキー6043が押下されたことを示す情報がUSB制御部603へ通知される。情報を受けたUSB制御部603は、スキャナ用ディスクリプタ作成部60315を選択する。選択されたスキャナ用ディスクリプタ作成部60315は、スキャナ用ディスクリプタを作成する。
Next, the operation when the operator uses the printer device 60 with the scanner function will be described with reference to the flowchart of FIG.
When the operator presses the PC-Scanner key 6043 on the operation panel 604 (S2901), the key event delivery unit 608 notifies the USB control unit 603 of information indicating that the PC-Scanner key 6043 has been pressed. . Upon receiving the information, the USB control unit 603 selects the scanner descriptor creation unit 60315. The selected scanner descriptor creating unit 60315 creates a scanner descriptor.

その後、USB制御部603のリセット部60314でバスリセットが実行されると(S2902)、プリンタ装置60は、コントロール転送によりPC80と通信を開始する。すなわち、プリンタ装置60のUSB制御部603は、スキャナ用ディスクリプタをPC80へ送信する(S2903)。PC80は、スキャナ用ディスクリプタに基づいて、アドレス指定やコンフィグレーションディスクリプタおよびインタフェースディスクリプタと称される情報を取得して各種設定を行い(S2904)、この設定によりBulk転送あるいはアイソクロナス転送のためのパイプと称される伝送路を定め、該パイプにより、プリンタ60は、プリンタデバイスとしてPC80とUSB通信を開始する(S2905)。   Thereafter, when a bus reset is executed by the reset unit 60314 of the USB control unit 603 (S2902), the printer device 60 starts communication with the PC 80 by control transfer. That is, the USB control unit 603 of the printer device 60 transmits the scanner descriptor to the PC 80 (S2903). Based on the scanner descriptor, the PC 80 acquires information referred to as address designation, configuration descriptor, and interface descriptor and performs various settings (S2904), and this setting is referred to as a pipe for Bulk transfer or isochronous transfer. The transmission line is determined, and the printer 60 starts USB communication with the PC 80 as a printer device by the pipe (S2905).

実施例6のプリンタ装置60によれば、オペレーションパネル604でオペレータが選択指示した機能でUSB通信を行うべく、選択指示された機能情報を一つだけ読出し、該機能情報だけが示されたデバイスディスクリプタを作成すると、該デバイスディスクリプタをバスリセット後にPC80に通知する。これにより、PC80は、通知されたデバイスディスクリプタに唯一示された機能情報に基づいて通信相手先を特定することができ、特定した通信相手先のデバイス定義を行ってUSB通信を行うことができる。   According to the printer device 60 of the sixth embodiment, in order to perform USB communication with the function selected by the operator on the operation panel 604, only one selected function information is read, and only the function information is indicated. Is created, the device descriptor is notified to the PC 80 after the bus is reset. As a result, the PC 80 can identify the communication partner based on the function information uniquely indicated in the notified device descriptor, and can perform USB communication by defining the device of the identified communication partner.

従って、実施例6のプリンタ装置60によれば、一つの機能情報しか示されていないデバイスディスクリプタをPC80に通知することにより、デバイスディスクリプタに示される唯一の機能情報に基づいて通信相手先を特定することができ、機能を選択して接続構成の切替え命令(ベンダリクエスト)を発行するための専用ドライバを必要としない。これにより、専用ドライバの開発を行う必要が無く、当然専用ドライバをPC80にインストールする手間を省くことができる。   Therefore, according to the printer device 60 of the sixth embodiment, the communication partner is specified based on the unique function information indicated in the device descriptor by notifying the PC 80 of the device descriptor in which only one function information is indicated. This does not require a dedicated driver for selecting a function and issuing a connection configuration switching instruction (vendor request). As a result, it is not necessary to develop a dedicated driver, and the trouble of installing the dedicated driver in the PC 80 can be saved.

以上の実施例では、周辺装置としてプリンタ装置およびスキャナ装置に限定して説明したが、本発明はこれに限定されるものでない。
周辺装置として、例えばモニタ装置、キーボード、マウス、FAX装置、記憶装置、イメージサーバ装置などに本発明を適用することが可能である。
In the above embodiment, the description has been made by limiting the peripheral device to the printer device and the scanner device, but the present invention is not limited to this.
As the peripheral device, for example, the present invention can be applied to a monitor device, a keyboard, a mouse, a FAX device, a storage device, an image server device, and the like.

以上の実施例では、周辺装置の機能情報保持部150で保持する機能情報の更新について説明を行わなかったが、例えば周辺装置に従属周辺装置を接続する際、該従属周辺装置から機能情報を取得して機能情報保持部150で保持する機能情報を更新したり、上位装置との通信で機能情報を取得して機能情報保持部150で保持する機能情報を更新するようにしてもよいし、周辺装置のROM交換により、機能情報保持部150で保持する機能情報を更新するようにしてもよい。   In the above embodiment, the update of the function information held in the function information holding unit 150 of the peripheral device has not been described. However, for example, when a subordinate peripheral device is connected to the peripheral device, the function information is acquired from the subordinate peripheral device. Then, the function information held in the function information holding unit 150 may be updated, or the function information acquired by communication with the higher-level device and updated in the function information holding unit 150 may be updated. The function information held in the function information holding unit 150 may be updated by exchanging the ROM of the apparatus.

また、前記した実施例では、周辺装置の機能情報保持部150で周辺装置の機能情報および従属周辺装置の機能情報を予め保持し、必要に応じて何れか一方の機能情報を読出してデバイスディスクリプタを生成し、該デバイスディスクリプタを上位装置に通知する例で説明したが、これに限る必要はなく、例えば予め周辺装置用のデバイスディスクリプタおよび従属周辺装置用のデバイスディスクリプタを保持しておき、選択指示に応じて保持する何れか一方のデバイスクリプタを上位装置に通知するようにしてもよい。   Further, in the above-described embodiment, the peripheral device function information holding unit 150 holds the peripheral device function information and the subordinate peripheral device function information in advance, and reads out one of the function information as necessary to obtain the device descriptor. However, the present invention is not limited to this. For example, a device descriptor for a peripheral device and a device descriptor for a subordinate peripheral device are held in advance, and a selection instruction is issued. In response, any one of the device crypters held may be notified to the host device.

前記した実施例では、テーブル番号に基づいてデバイスディスクリプタの作成部を選択する例で初期化部を説明したが、これに限る必要はなく、例えばテーブル番号に予めデバイスディスクリプタを対応付けるようにしてもよい。これにより、デバイスディスクリプタを作成しなくても、テーブル番号に対応付けられたデバイスディスクリプタを直接上位装置に通知することができる。   In the above-described embodiment, the initialization unit has been described as an example in which a device descriptor creation unit is selected based on a table number. However, the present invention is not limited to this. For example, a device descriptor may be associated with a table number in advance. . As a result, the device descriptor associated with the table number can be directly notified to the host device without creating a device descriptor.

本発明のシステム1の構成図である。It is a block diagram of the system 1 of this invention. 実施例1のスキャナ装置の構成図である。1 is a configuration diagram of a scanner device of Example 1. FIG. システム1で使用されるプリンタ装置の構成図である。1 is a configuration diagram of a printer device used in a system 1. FIG. 実施例1におけるスキャナ装置のUSB制御部の構成図である。3 is a configuration diagram of a USB control unit of the scanner device in Embodiment 1. FIG. USB制御部のマルチディスクリプタ作成部の構成図である。It is a block diagram of the multi-descriptor creation part of a USB control part. オペレーションパネル表面の配置例である。It is the example of arrangement | positioning on the surface of an operation panel. 初期化部の構成図である。It is a block diagram of an initialization part. 実施例1における初期化動作を示すフローチャートである。3 is a flowchart illustrating an initialization operation according to the first embodiment. 実施例1におけるホットプラグイン接続時の動作を示すフローチャートである。3 is a flowchart illustrating an operation at the time of hot plug-in connection according to the first exemplary embodiment. 実施例1におけるPCプリント時の動作を示すフローチャートである。3 is a flowchart illustrating an operation during PC printing in the first embodiment. 実施例1におけるPCスキャン時の動作を示すフローチャートである。3 is a flowchart illustrating an operation during PC scanning in the first exemplary embodiment. 実施例2のスキャナ装置の構成図である。FIG. 6 is a configuration diagram of a scanner device according to a second embodiment. 実施例2における原稿検出時の動作を示すフローチャートである。10 is a flowchart illustrating an operation when detecting a document in Embodiment 2. 実施例3のスキャナ装置の構成図である。FIG. 10 is a configuration diagram of a scanner device according to a third embodiment. 実施例3の動作の流れを示すフローチャートである。12 is a flowchart illustrating the operation flow of the third embodiment. 実施例4のスキャナ装置の構成図である。FIG. 10 is a configuration diagram of a scanner device according to a fourth embodiment. 実施例4の動作の流れを示すフローチャートである。10 is a flowchart illustrating an operation flow of the fourth embodiment. 実施例5のスキャナ装置の構成図である。FIG. 10 is a configuration diagram of a scanner device according to a fifth embodiment. 実施例5におけるPCスキャン終了時の動作を示すフローチャートである。10 is a flowchart illustrating an operation at the end of PC scanning in the fifth embodiment. 実施例5におけるPCプリント終了時の動作を示すフローチャートである。10 is a flowchart illustrating an operation at the end of PC printing in the fifth embodiment. 本発明のシステム2の構成図である。It is a block diagram of the system 2 of this invention. 実施例6で使用されるプリンタ装置の構成図である。FIG. 10 is a configuration diagram of a printer device used in Embodiment 6. 実施例6におけるプリンタ装置のUSB制御部の構成図である。FIG. 10 is a configuration diagram of a USB control unit of a printer apparatus according to a sixth embodiment. 実施例6におけるUSB制御部のマルチディスクリプタ作成部の構成図である。FIG. 10 is a configuration diagram of a multi-descriptor creation unit of a USB control unit in Embodiment 6. 実施例6におけるプリンタ装置のオペレーションパネル表面の配置例である。14 is an example of an arrangement on the surface of an operation panel of a printer device according to a sixth embodiment. 実施例6におけるプリンタ装置の初期化部の構成図である。FIG. 10 is a configuration diagram of an initialization unit of a printer device in Embodiment 6. 実施例6の初期化動作を示すフローチャートである。18 is a flowchart illustrating an initialization operation according to the sixth embodiment. 実施例6のPCプリント動作を示すフローチャートである。10 is a flowchart illustrating a PC print operation according to the sixth exemplary embodiment. 実施例6のPCスキャナ動作を示すフローチャートである。10 is a flowchart illustrating an operation of a PC scanner according to a sixth embodiment.

符号の説明Explanation of symbols

10、11、12、13、14、70 スキャナ装置
111、111´ 読取り部
1111 原稿検出器
112 画処理部
113、113A、113B USB制御部
113C、113D USB制御部
150 機能情報保持部
151 スキャン機能情報保持部
152 プリンタ機能情報保持部
1131 Device制御部
11311、11322 RxBuff
11312、11321 TxBuff
11313 マルチディスクリプタ作成部
11314 リセット部
11315 スキャナ用ディスクリプタ作成部
11316 プリンタ用ディスクリプタ作成部
1132 Host制御部
114 オペレーションパネル
1141 LCDディスプレイ
1142 各種キー
1143 PC−Scanerキー
115 圧縮部
116 コピー制御部
117、117´ PCスキャナ制御部
1171 スキャナ簡易エミュレータ部
118、118´ PCプリント制御部
1181 プリンタ簡易エミュレータ部
119 画メモリ
120 CPU
121 初期化部
1211 デフォルトデバイスディスクリプタテーブル
1212 デフォルトデバイスディスクリプタテーブル値
格納エリア
1213 スキャナ用ディスクリプタ作成部
1214 プリンタ用ディスクリプタ作成部
122 キーイベント配送部
123 原稿検出イベント配送部
124 放置原稿検出タイマー
125 タイムアウトイベント配送部
126 プリンタ簡易エミュレーションイベント配送部
127 スキャナ簡易エミュレーションイベント配送部
128 PCスキャン動作終了イベント配送部
129 PCプリント動作終了イベント配送部
20、60 プリンタ装置
30、80 PC
41、42、91、92 USBケーブル
601 印刷部
602 解凍部
603 USB制御部
650 機能情報保持部
651 スキャン機能情報保持部
652 プリンタ機能情報保持部
6031 Device制御部
60311、60322 RxBuff
60312、60321 TxBuff
60313 マルチディスクリプタ作成部
60314 リセット部
60315 スキャナ用ディスクリプタ作成部
60316 プリンタ用ディスクリプタ作成部
6032 Host制御部
604 オペレーションパネル
6041 LCDディスプレイ
6042 各種キー
6043 PC−Scanerキー
605 エミュレーション部
606 PCスキャナ部
607 PCプリント部
608 キーイベント配送部
609 画メモリ
610 初期化部
6101 デフォルトデバイスディスクリプタテーブル
6102 デフォルトデバイスディスクリプタテーブル値格納エリア
6103 スキャナ用ディスクリプタ
6104 プリンタ用ディスクリプタ
611 CPU
10, 11, 12, 13, 14, 70 Scanner device 111, 111 ′ Reading unit 1111 Document detector 112 Image processing unit 113, 113A, 113B USB control unit 113C, 113D USB control unit 150 Function information holding unit 151 Scan function information Holding unit 152 Printer function information holding unit 1131 Device control unit 11311, 11322 RxBuff
11312, 11321 TxBuff
11313 Multi-descriptor creation unit 11314 Reset unit 11315 Scanner descriptor creation unit 11316 Printer descriptor creation unit 1132 Host control unit 114 Operation panel 1141 LCD display 1142 Various keys 1143 PC-Scaner key 115 Compression unit 116 Copy control unit 117, 117 ′ PC Scanner control unit 1171 Scanner simple emulator unit 118, 118 'PC print control unit 1181 Printer simple emulator unit 119 Image memory 120 CPU
121 Initialization unit 1211 Default device descriptor table 1212 Default device descriptor table value
Storage area 1213 Scanner descriptor creation unit 1214 Printer descriptor creation unit 122 Key event delivery unit 123 Document detection event delivery unit 124 Undocumented document detection timer 125 Timeout event delivery unit 126 Printer simple emulation event delivery unit 127 Scanner simple emulation event delivery unit 128 PC scan operation end event delivery unit 129 PC print operation end event delivery unit 20, 60 Printer device 30, 80 PC
41, 42, 91, 92 USB cable 601 Printing unit 602 Decompression unit 603 USB control unit 650 Function information holding unit 651 Scan function information holding unit 652 Printer function information holding unit 6031 Device control unit 60311, 60322 RxBuff
60312, 60321 TxBuff
60313 Multi-descriptor creation unit 60314 Reset unit 60315 Scanner descriptor creation unit 60316 Printer descriptor creation unit 6032 Host control unit 604 Operation panel 6041 LCD display 6042 Various keys 6043 PC-Scanner key 605 Emulation unit 606 PC scanner unit 607 PC print unit 608 Key event delivery unit 609 Image memory 610 Initialization unit 6101 Default device descriptor table 6102 Default device descriptor table value storage area 6103 Scanner descriptor 6104 Printer descriptor 611 CPU

Claims (15)

USB接続する上位装置にデバイスディスクリプタを通知し、該デバイスディスクリプタに示された機能情報に基づいて通信相手先を前記上位装置に特定させる周辺装置において、
当該周辺装置の機能を示す機能情報を保持する周辺装置機能情報保持部と、
USB接続される従属周辺装置の機能を示す機能情報を保持する従属周辺装置機能情報保持部と、
選択指示に基づいて前記周辺機能情報保持部で保持する機能情報または前記従属周辺装置機能情報保持部で保持する機能情報の何れか一方を読出し、読出した機能情報が示されたデバイスディスクリプタを前記上位装置に通知するUSB制御部と、を備えることを特徴とする周辺装置。
In a peripheral device that notifies a device descriptor to a host device connected via USB and causes the host device to identify a communication partner based on the function information indicated in the device descriptor.
A peripheral device function information holding unit for holding function information indicating the function of the peripheral device;
A subordinate peripheral device function information holding unit for holding function information indicating a function of a subordinate peripheral device connected via USB;
Based on the selection instruction, either the function information held in the peripheral function information holding unit or the function information held in the subordinate peripheral device function information holding unit is read, and the device descriptor in which the read function information is indicated A peripheral device comprising: a USB control unit that notifies the device.
前記周辺装置が画像読取装置であり、前記従属周辺装置が画像形成装置であるとき、
前記周辺装置機能情報保持部は画像読取機能を示す機能情報を保持し、
前記従属周辺装置機能情報保持部は画像形成機能を示す機能情報を保持することを特徴とする請求項1記載の周辺装置。
When the peripheral device is an image reading device and the subordinate peripheral device is an image forming device,
The peripheral device function information holding unit holds function information indicating an image reading function,
The peripheral device according to claim 1, wherein the subordinate peripheral device function information holding unit holds function information indicating an image forming function.
前記周辺装置が画像形成装置であり、前記従属周辺装置が画像読取装置であるとき、
前記周辺装置機能情報保持部は画像形成機能を示す機能情報を保持し、
前記従属周辺装置機能情報保持部は画像読取機能を示す機能情報を保持することを特徴とする請求項1記載の周辺装置。
When the peripheral device is an image forming device and the dependent peripheral device is an image reading device,
The peripheral device function information holding unit holds function information indicating an image forming function,
The peripheral device according to claim 1, wherein the subordinate peripheral device function information holding unit holds function information indicating an image reading function.
前記選択指示をオペレータから受けるためのオペレーションパネルを備えており、
前記USB制御部は、前記オペレーションパネルで前記選択指示を受けると、前記デバイスディスクリプタの通知に先立ち、前記上位装置とのUSB接続におけるバスリセットを行うことを特徴とする請求項1記載の周辺装置。
An operation panel for receiving the selection instruction from an operator;
2. The peripheral device according to claim 1, wherein the USB control unit, when receiving the selection instruction on the operation panel, performs a bus reset in USB connection with the host device prior to notification of the device descriptor.
前記USB制御部は、前記選択指示で読出す機能情報が示されるデバイスディスクリプタを生成するマルチデバイスディスクリプタ作成部を備えることを特徴とする少なくとも請求項2および請求項3の何れか1項に記載の周辺装置。   The said USB control part is provided with the multi-device descriptor preparation part which produces | generates the device descriptor in which the function information read by the said selection instruction | indication is shown, At least any one of Claim 2 and Claim 3 characterized by the above-mentioned. Peripheral device. 原稿を読取るための原稿読取部を備えており、
前記原稿読取部は、原稿が配置されたことを検出すると、前記選択指示として原稿検出信号を前記USB制御部に通知し、
前記USB制御部は、前記原稿検出信号を受けると、画像読取機能を示す機能情報を読み出すことを特徴とする請求項5記載の周辺装置。
A document reading unit for reading a document;
When the document reading unit detects that a document is placed, it notifies the USB control unit of a document detection signal as the selection instruction.
The peripheral device according to claim 5, wherein the USB control unit reads function information indicating an image reading function when receiving the document detection signal.
前記原稿が配置されて放置されたことを検出すると、前記選択指示として放置原稿検出信号を前記USB制御部に通知するタイマーを備えており、
前記USB制御部は、前記原稿放置検出信号を受けると、画像形成機能を示す機能情報を読み出すことを特徴とする請求項6記載の周辺装置。
A timer for notifying the USB control unit of a neglected document detection signal as the selection instruction when it is detected that the document is placed and left;
The peripheral device according to claim 6, wherein the USB control unit reads function information indicating an image forming function when receiving the document leaving detection signal.
前記原稿読取部は、配置された原稿の読取を行って、読取るべき原稿が無くなったことを検出すると、前記選択指示として終了検出信号を前記USB制御部に通知し、
前記USB制御部は、前記終了検出信号を受けると、前記画像形成機能を示す機能情報を読み出すことを特徴とする請求項6記載の周辺装置。
When the original reading unit reads the placed original and detects that there are no more originals to be read, the original reading unit notifies the USB control unit of an end detection signal as the selection instruction.
The peripheral device according to claim 6, wherein the USB control unit reads function information indicating the image forming function when receiving the end detection signal.
前記上位装置からの制御命令を解析して特定情報を抽出する特定情報抽出部を備えており、
前記USB制御部は、抽出する前記特定情報に前記上位装置とのUSB接続におけるバスリセットを行う指示が示されているとき、該バスリセットを行うことを特徴とする請求項1記載の周辺装置。
A specific information extraction unit that analyzes the control command from the host device and extracts specific information;
The peripheral device according to claim 1, wherein the USB control unit performs the bus reset when an instruction to perform a bus reset in a USB connection with the host device is indicated in the specific information to be extracted.
前記上位装置からの制御命令を解析して特定情報を抽出する特定情報抽出部を備えており、
前記特定情報抽出部は、前記特定情報が画像読取装置の制御言語で記述された命令であるとき、該命令を前記選択指示として前記USB制御部に通知し、
前記USB制御部は、前記命令を受けると、前記画像読取機能を示す機能情報を読み出すことを特徴とする請求項5記載の周辺装置。
A specific information extraction unit that analyzes the control command from the host device and extracts specific information;
When the specific information is a command described in the control language of the image reading device, the specific information extraction unit notifies the USB control unit of the command as the selection instruction.
The peripheral device according to claim 5, wherein the USB control unit reads function information indicating the image reading function when receiving the command.
前記上位装置からの制御命令を解析して特定情報を抽出する特定情報抽出部を備えており、
前記特定情報抽出部は、前記特定情報が画像形成装置の制御言語で記述された命令であるとき、該命令を前記選択指示として前記USB制御部に通知し、
前記USB制御部は、前記命令を受けると、前記画像形成機能を示す機能情報を読み出すことを特徴とする請求項5記載の周辺装置。
A specific information extraction unit that analyzes the control command from the host device and extracts specific information;
When the specific information is a command described in the control language of the image forming apparatus, the specific information extraction unit notifies the USB control unit of the command as the selection instruction.
The peripheral device according to claim 5, wherein the USB control unit reads out function information indicating the image forming function when receiving the command.
前記USB制御部は、前記命令に基づく処理が終了したことを前記選択指示として受けると、前記命令に基づいて読み出されなかった他方の機能情報を読出すことを特徴とする請求項10および請求項11に記載の周辺装置。   The said USB control part will read the other function information which was not read based on the said command, if the completion | finish of the process based on the said command is received as the said selection instruction | indication. Item 12. The peripheral device according to Item 11. 前記上位装置とのUSB接続がホットプラグイン接続であるとき、ホットプラグイン接続により当該USB接続におけるバスリセットが行われることを特徴とする請求項1に記載の周辺装置。   The peripheral device according to claim 1, wherein when the USB connection with the host device is a hot plug-in connection, a bus reset in the USB connection is performed by the hot plug-in connection. USB接続する上位装置にデバイスディスクリプタを通知し、該デバイスディスクリプタに示された機能情報に基づいて通信相手先を前記上位装置に特定させる周辺装置において、
当該周辺装置の機能を示す機能情報を保持する周辺装置機能情報保持部と、
USB接続される従属周辺装置の機能を示す機能情報を保持する従属周辺装置機能情報保持部と、
選択指示に基づいて前記周辺機能情報保持部で保持する機能情報または前記従属周辺装置機能情報保持部で保持する機能情報の何れか一方を読出し、読出した機能情報が示されたデバイスディスクリプタを前記上位装置に通知するUSB制御部とを備え、
前記USB制御部は、前記上位装置で前記従属周辺装置が通信相手先として特定されると、前記上位装置および前記従属周辺装置との間でUSB通信するための中継を行うUSBホスト制御部を有することを特徴とする周辺装置。
In a peripheral device that notifies a device descriptor to a host device connected via USB and causes the host device to identify a communication partner based on the function information indicated in the device descriptor.
A peripheral device function information holding unit for holding function information indicating the function of the peripheral device;
A subordinate peripheral device function information holding unit for holding function information indicating a function of a subordinate peripheral device connected via USB;
Based on the selection instruction, either the function information held in the peripheral function information holding unit or the function information held in the subordinate peripheral device function information holding unit is read, and the device descriptor in which the read function information is indicated A USB control unit for notifying the device,
The USB control unit includes a USB host control unit that performs relay for USB communication between the host device and the slave peripheral device when the slave peripheral device is specified as a communication partner in the host device. A peripheral device characterized by that.
前記周辺装置はスキャナ装置であり、前記従属周辺装置はプリンタ装置であることを特徴とする請求項14記載の周辺装置。
15. The peripheral device according to claim 14, wherein the peripheral device is a scanner device, and the subordinate peripheral device is a printer device.
JP2005127924A 2004-04-27 2005-04-26 Computer peripherals Expired - Fee Related JP4676241B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005127924A JP4676241B2 (en) 2004-04-27 2005-04-26 Computer peripherals

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004132008 2004-04-27
JP2005127924A JP4676241B2 (en) 2004-04-27 2005-04-26 Computer peripherals

Publications (2)

Publication Number Publication Date
JP2005339524A true JP2005339524A (en) 2005-12-08
JP4676241B2 JP4676241B2 (en) 2011-04-27

Family

ID=35492975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005127924A Expired - Fee Related JP4676241B2 (en) 2004-04-27 2005-04-26 Computer peripherals

Country Status (1)

Country Link
JP (1) JP4676241B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299525A (en) * 2007-05-30 2008-12-11 Kyocera Mita Corp Image forming system and image forming apparatus
JP2009220291A (en) * 2008-03-13 2009-10-01 Seiko Epson Corp Electronic device system and method for controlling in electronic device system
KR101025420B1 (en) * 2010-10-14 2011-03-28 송지호 Computing apparatus and method for cognizing external apparatus of the computing apparatus
JP7484235B2 (en) 2020-03-06 2024-05-16 セイコーエプソン株式会社 Printing device and method for controlling printing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001222503A (en) * 2000-02-08 2001-08-17 Ricoh Co Ltd Peripheral equipment control system
JP2004102716A (en) * 2002-09-10 2004-04-02 Seiko Epson Corp Electronic equipment having serial interface
JP2004112078A (en) * 2002-09-13 2004-04-08 Seiko Epson Corp Image input output system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001222503A (en) * 2000-02-08 2001-08-17 Ricoh Co Ltd Peripheral equipment control system
JP2004102716A (en) * 2002-09-10 2004-04-02 Seiko Epson Corp Electronic equipment having serial interface
JP2004112078A (en) * 2002-09-13 2004-04-08 Seiko Epson Corp Image input output system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008299525A (en) * 2007-05-30 2008-12-11 Kyocera Mita Corp Image forming system and image forming apparatus
JP2009220291A (en) * 2008-03-13 2009-10-01 Seiko Epson Corp Electronic device system and method for controlling in electronic device system
KR101025420B1 (en) * 2010-10-14 2011-03-28 송지호 Computing apparatus and method for cognizing external apparatus of the computing apparatus
JP7484235B2 (en) 2020-03-06 2024-05-16 セイコーエプソン株式会社 Printing device and method for controlling printing device

Also Published As

Publication number Publication date
JP4676241B2 (en) 2011-04-27

Similar Documents

Publication Publication Date Title
EP1592221B1 (en) Peripherals of computer
JP4182116B2 (en) PRINT CONTROL DEVICE, ITS CONTROL METHOD, AND COMPUTER PROGRAM
KR101337160B1 (en) Information processing apparatus, information processing method and storage medium
JP2011103572A (en) User interface of image processor
JP2010039684A (en) Image forming apparatus, information processing apparatus, data processing method, and program
JP4676241B2 (en) Computer peripherals
JP6141007B2 (en) PRINT CONTROL DEVICE, ITS CONTROL METHOD, AND PROGRAM
JP2007068154A (en) Image forming apparatus, information processing method, information processing program, and recording medium
JP4876837B2 (en) Scanner driver and scanner driver cooperation device
JP4512565B2 (en) Image forming apparatus and application installation method
JP2004259153A (en) Information processor, method of controlling the same, and control program
JP2006293638A (en) Information processor and peripheral equipment
KR100282938B1 (en) Host data transmission method and MFP data reception method
JP7242296B2 (en) PRINTING SYSTEM, INFORMATION PROCESSING DEVICE, CONTROL METHOD, AND PROGRAM
JP6635157B2 (en) Image forming apparatus, its processing method, and program
JP2012080519A (en) Image processing device
JP4859241B2 (en) Composite apparatus, information processing method, and program
JP2010271824A (en) Print control system, image forming apparatus, print management server, print control method, processing method of image forming apparatus, processing method of print management server, and program
JP4536439B2 (en) Image processing device
JP2004062828A (en) Image forming device and customization program testing method
JP2023048280A (en) Image control device receiving shutdown instruction, and method for controlling the same
JP4944227B2 (en) Image processing device
JP2017154319A (en) Control system, method for processing the same and program
JP2004318818A (en) Image output system, image output apparatus, image supply apparatus and control program
JP6175925B2 (en) Image forming apparatus, processing method thereof, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101008

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101019

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101217

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: 20110125

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: 20110127

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140204

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4676241

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees