JP3906838B2 - USB compatible digital MFP - Google Patents

USB compatible digital MFP Download PDF

Info

Publication number
JP3906838B2
JP3906838B2 JP2003413624A JP2003413624A JP3906838B2 JP 3906838 B2 JP3906838 B2 JP 3906838B2 JP 2003413624 A JP2003413624 A JP 2003413624A JP 2003413624 A JP2003413624 A JP 2003413624A JP 3906838 B2 JP3906838 B2 JP 3906838B2
Authority
JP
Japan
Prior art keywords
usb
transfer
printer
data
scanner
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003413624A
Other languages
Japanese (ja)
Other versions
JP2005175936A (en
Inventor
郁二 鈴木
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2003413624A priority Critical patent/JP3906838B2/en
Publication of JP2005175936A publication Critical patent/JP2005175936A/en
Application granted granted Critical
Publication of JP3906838B2 publication Critical patent/JP3906838B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、USBインターフェースを介してホストコンピュータを接続して、プリンタ・スキャナなどとして使用できるUSB対応型デジタル複合機の改良に関するものである。 The present invention relates to an improvement of a USB compatible digital multi-function peripheral that can be used as a printer / scanner by connecting a host computer via a USB interface.

一般にUSB対応デバイスでは、規格によりホストとのデータ転送にエンドポイントEP0〜EP15を持つことができるが、特にUSB対応型の複合機では、その各機能に対応したデバイスインターフェースを互いに重複しないエンドポイントによって構成させるために、多くのエンドポイントリソースを要することになり、多数のエンドポイントを実装したUSBコントローラの採用を余儀なくされていた。
例えば、GDI対応プリンタとTWAIN対応スキャナの機能を有する複合機では、プリンタ部に対応したデバイスインターフェースでは、エンドポイントEP1をデータ送出用に、エンドポイントEP2をデータ受信用に使用するが、スキャナ部に対応したデバイスインターフェースでは、エンドポイントEP3をデータ送出用に、エンドポイントEP4をデータ受信用に使用しており、デバイスのセットアップ時に、コントロール転送用に使用されるエンドポイントEP0と合わせれば、合計5のエンドポイントリソースが使用されていた。
そこで、特許文献1では、このようなエンドポイントに関するリソースについて、エンドポイントに対するバッファを、エンドポイントEP0〜EP2に対して共通に用いられる単一のバッファで構成する点が提案されており、特許文献2では、データ転送装置が1つのエンドポイントを介して転送される情報として第1、第2の情報を含む複数種類の情報が割り当てられている場合に対応して、第1の情報用の第1の記憶領域と第2の情報用の第2の記憶領域とが1つのエンドポイントに対応して用意されるバッファを有する点を教示し、提案している。
しかしながら、上記特許文献のいずれも、2以上の機能を有している複合機のエンドポイントの有効利用については何ら注目されていない。
特開2001−134528号 特開2002−344537号
In general, a USB-compatible device can have endpoints EP0 to EP15 for data transfer with a host according to the standard. In particular, in a USB-compatible multifunction device, device interfaces corresponding to each function are determined by endpoints that do not overlap each other. In order to configure, many end point resources are required, and a USB controller having a large number of end points has to be adopted.
For example, in a multifunction device having the functions of a GDI compatible printer and a TWAIN compatible scanner, the device interface corresponding to the printer unit uses the endpoint EP1 for data transmission and the endpoint EP2 for data reception. In the corresponding device interface, the endpoint EP3 is used for data transmission, and the endpoint EP4 is used for data reception. When the device is set up with the endpoint EP0 used for control transfer, a total of five is used. Endpoint resources were being used.
Therefore, in Patent Document 1, it is proposed that a buffer for an endpoint is configured with a single buffer that is commonly used for the endpoints EP0 to EP2 for such resources related to the endpoint. 2, in response to the case where a plurality of types of information including the first and second information are assigned as the information transferred by the data transfer device via one endpoint, the first information for the first information It teaches and proposes that one storage area and a second storage area for second information have buffers prepared corresponding to one endpoint.
However, none of the above-mentioned patent documents pays attention to the effective use of the end point of a multifunction peripheral having two or more functions.
JP 2001-134528 A JP 2002-344537

本発明は、USB対応型デジタル複合機において、USBコントローラの構成に必要なエンドポイントリソースの数を抑制して、エンドポイントリソースが少ない、低コストで、簡易な構成のUSBコントローラが使用できるようにした、デジタル複合機を提供することを目的としている。   According to the present invention, in a USB compatible digital multi-function peripheral, the number of endpoint resources required for the configuration of the USB controller is suppressed, so that a low-cost, low-cost USB controller with a simple configuration can be used. The purpose is to provide a digital multifunction device.

上記課題を解決するために、本発明請求項1では、複数のエンドポイントを搭載し、複数種類の周辺機器の機能を実行するために、ホストコンピュータとの間で所定の通信プロトコルに従ったデータを送受させるように、エンドポイントを機能毎のデータ転送に割り当てて、デバイスインターフェースを構成するUSBコントローラと、USBコントローラに装備された複数のエンドポイントのうち、デバイスインターフェースの構成時にコントロール転送に使用する双方向のエンドポイントを、デバイスインターフェースが構築された後には、複数種類の周辺機器のうち、少なくとも1つの周辺機器の機能を実行するためのデータ転送に割り当てる制御手段とを備えているIn order to solve the above-mentioned problem, according to claim 1 of the present invention , data according to a predetermined communication protocol with a host computer is installed in order to execute a function of a plurality of types of peripheral devices. The endpoint is assigned to the data transfer for each function so that the device interface is transmitted and received, and used for the control transfer when configuring the device interface among the USB controller configuring the device interface and the multiple endpoints equipped in the USB controller. After the device interface is constructed, the bidirectional endpoint is provided with a control unit that allocates data transfer for executing a function of at least one peripheral device among a plurality of types of peripheral devices .

また、請求項2では、制御手段は、デバイスインターフェースの構成後に、複数種類の周辺機器のうち、2つの周辺機器の機能を実行するために転送されるデータのそれぞれを、双方向のエンドポイントの転送方向に対応させて割り当てるようにしており、請求項3では、更に、請求項2において、制御手段が、双方向のエンドポイントに割り当てている転送データが、コピー、プリンタ、スキャナ、カメラ、ファクシミリ送受信用の画像データ、それらのコマンド、応答信号のうちから、互いに転送方向が反対になる2つのものが特定されている。なお、ここでの複合機能はコピー、プリンタ、スキャナ、カメラ、ファクシミリのみに限定されず、他の機能であっても、その転送データの転送方向が反対になっていれば、本発明の技術思想を適用可能である。 According to a second aspect of the present invention, after the device interface is configured , the control unit transmits each of data transferred to execute the functions of two peripheral devices among the plurality of types of peripheral devices to the bidirectional endpoint. to correspond to the transfer direction has to allocate, in claim 3, further defined in claim 2, control means transfers data assigned to bidirectional endpoints, copy, printer, scanner, camera, facsimile Two pieces of image data for transmission / reception, their commands, and response signals whose transfer directions are opposite to each other are specified. Note that the composite function here is not limited to only the copy, printer, scanner, camera, and facsimile, and even if it is another function, the technical concept of the present invention is applicable as long as the transfer direction of the transfer data is opposite. Is applicable.

請求項1〜3の本発明によれば、デバイスインターフェースの構成時にコントロール転送に使用する双方向のエンドポイントを、デバイスインターフェースが構築された後には、少なくとも1つの周辺機器の機能を実行するためのデータ転送に割り当てる方法を採用したため、USBコントローラ側でのエンドポイントリソースの有効利用が図れ、そのため、デジタル複合機に内蔵すべきUSBコントローラを安価でかつ構成の簡易なものにできる。 According to the first to third aspects of the present invention, the bidirectional endpoint used for the control transfer at the time of configuring the device interface is used to execute the function of at least one peripheral device after the device interface is constructed. Since the method of assigning data transfer is adopted, the endpoint resource can be effectively used on the USB controller side. Therefore, the USB controller to be incorporated in the digital multifunction peripheral can be made inexpensive and simple in configuration.

以下、本発明のUSB対応型のデジタル複合機として、プリンタ・スキャナ複合機を実施例として、図面を参照しながら説明する。   Hereinafter, a printer / scanner multifunction device will be described as an example of a USB-compatible digital multifunction device according to the present invention with reference to the drawings.

図1は、プリンタ・スキャナ複合機PSの基本構成を説明するブロック図である。
このプリンタ・スキャナ複合機PSはUSB1.Xに対応しており、ページ記述に対応するPCL(プリンタ・コントロール・ランゲージ)プリンタ、Windows(登録商標)専用のGDI(グラフィック・デバイス・インタフェース)プリンタ、そしてTWAIN対応スキャナとしての機能を有する。
この複合機PSは、ソフトウェア処理により、プリンタ・スキャナ複合機PSの制御手段を形成しているMPU11と、USBコネクタ12aを備えたUSBコントローラ12と、LCDパネル等を有する表示部13と、シリアルインタフェース14と、プリンタ・スキャナ複合機PSの制御プログラムを記憶しているROM18と、設定データ、変数、画像データなどを書換可能に保持するRAM19とをローカルバスで接続し、シリアルインタフェース14には、操作ボタン等で形成された操作部15と、記録紙に印字を行うプリンタ部16と、原稿の画像データを読み取るスキャナ部17とが各々制御マイコンを備え、シリアルバスにより接続されている。
なお、USBコネクタ12aは、USBバスパワーに対するVbus端子と、平衡型の転送信号に対するD+端子、D−端子と、グランドに対するGND端子を備え、プラグアンドプレイに対応している。
以下では、上記のプリンタ・スキャナ複合機PSとホストのワークステーションPCとのUSB1.X(1.0または1.1)による接続を例にして説明する。
FIG. 1 is a block diagram illustrating a basic configuration of the printer / scanner multifunction device PS.
This printer / scanner multi-function machine PS is a USB 1. It corresponds to X and has functions as a PCL (Printer Control Language) printer corresponding to page description, a Windows (registered trademark) dedicated GDI (Graphic Device Interface) printer, and a TWAIN compatible scanner.
The multi-function device PS includes an MPU 11 that forms control means for the printer / scanner multi-function device PS by software processing, a USB controller 12 having a USB connector 12a, a display unit 13 having an LCD panel, and a serial interface. 14 and a ROM 18 that stores a control program for the printer / scanner multifunction device PS and a RAM 19 that stores setting data, variables, and image data in a rewritable manner through a local bus. An operation unit 15 formed by buttons and the like, a printer unit 16 that prints on recording paper, and a scanner unit 17 that reads image data of a document are each provided with a control microcomputer and are connected by a serial bus.
The USB connector 12a includes a Vbus terminal for USB bus power, a D + terminal and a D- terminal for balanced transfer signals, and a GND terminal for ground, and is compatible with plug and play.
In the following description, the USB 1... Between the printer / scanner multifunction device PS and the host workstation PC will be described. A connection using X (1.0 or 1.1) will be described as an example.

図2は、USBケーブルによって、ホストコンピュータに互いに接続された本発明の複合機を含むシステムを説明する図面である。
図において、ワークステーションPCは、USBケーブルよって、ハブHを介して、キーボードKB、マウスM、スピーカSP、及びプリンタ・スキャナ複合機PSと接続されて、ホストとして機能している。USB1.Xは1フレーム1msのパケット転送により、ホストからのポーリングに対してキーボードKB等が応答して、最大12Mb/sの速度でデータを転送するものである。
FIG. 2 is a diagram for explaining a system including the multifunction peripheral of the present invention connected to a host computer by a USB cable.
In the figure, a workstation PC is connected to a keyboard KB, a mouse M, a speaker SP, and a printer / scanner multifunction device PS via a hub H via a USB cable and functions as a host. USB1. X is a packet transfer of 1 ms per frame, and the keyboard KB responds to polling from the host and transfers data at a maximum speed of 12 Mb / s.

図3は、本発明で使用されるそのパケット転送の形態を概念的に表したものである。
図において、第1、第2フレームの先頭にあるSOFパケットは、ホストが1ms毎に発行するフレーム開始パケットを示している。第1、第2フレームのAudioは、スピーカSPのためのデータ転送、第1フレームのKeyはキーボードKBのためのデータ転送、第1フレームのPrinterは、プリンタ・スキャナ複合機PSのためのデータ転送、第2フレームのMouseは、マウスMのためのデータ転送を示している。
また、転送には、後述のするように、主にセットアップ時に使用され、3ステージで構成されるコントロール転送と、次の3種類のデータ転送が用意されている。その3種類のデータ転送とは、キーボードKBなど、データ量は少ないがリアルタイムでデータ転送する必要がある場合に使用され、トークン、データ、ハンドシェークの3パケットで構成されるインタラプト転送と、プリンタ・スキャナ複合機PSなど、実時間性は低いが大量のデータが必要な場合に使用され、トークン、データ、ハンドシェークの3パケットで構成されるバルク転送、スピーカSPなど、データ量が比較的多く一定の転送レートを確保する必要がある場合に使用され、転送レートや転送時間が保証されているがエラー保証はされていない、トークン、データの2パケットで構成されるアイソクロナス転送とである。
このように、USB1.Xでは、パケット単位でデータを転送するが、複数のパケットがトランザクションを構成し、さらにいくつかのトランザクションが集まって1つの転送を構成する。ついで、そのパケットの構成を説明する。
FIG. 3 conceptually shows the form of packet transfer used in the present invention.
In the figure, the SOF packet at the head of the first and second frames indicates a frame start packet issued by the host every 1 ms. Audio for the first and second frames is data transfer for the speaker SP, Key for the first frame is data transfer for the keyboard KB, and Printer for the first frame is data transfer for the printer / scanner multifunction device PS. In the second frame, Mouse represents data transfer for the mouse M.
As will be described later, the transfer is mainly used at the time of setup, and a control transfer composed of three stages and the following three types of data transfer are prepared. The three types of data transfer are used when there is a small amount of data, such as keyboard KB, but it is necessary to transfer data in real time. Interrupt transfer consisting of three packets of token, data, and handshake, and printer / scanner Used when a large amount of data is required, such as a multi-function device PS, but a large amount of data is required. Bulk transfer consisting of 3 packets of token, data, handshake, speaker SP, etc. This is an isochronous transfer composed of two packets of token and data, which is used when a rate needs to be secured and the transfer rate and transfer time are guaranteed but the error is not guaranteed.
Thus, USB1. In X, data is transferred in units of packets, but a plurality of packets constitute a transaction, and several transactions gather to constitute one transfer. Next, the configuration of the packet will be described.

図4は、図3に対応して、4種類のパケットの構成を示す図面である。
図において、SOFパケットは、上述のようにホストが1ms毎に発行するフレーム開始パケット、トークンパケットはホストがトランザクション開始に発行するパケット、データパケットは転送時に使用するパケット、ハンドシェークパケットは、インタラプト転送やバルク転送などのフロー制御を行うトランザクションで使用されるパケットである。トークンパケットのADDRは、USBケーブルを介してホストに接続されているキーボードKBなどデバイス各々に対し、ホストがユニークに割り当てたアドレスを表しており、ENDPはそれらデバイス個々に対してデバイスインターフェースを形成しているエンドポイントを特定している。また、データパケットにおけるDATAはビット列のデータであり、転送の種類に応じて0〜1023バイトの大きさになる。
各デバイスは、USB1.Xの規格の場合、最大16個のエンドポイントEP0〜EP15を持つことができ、そのエンドポイントは、例えばプリンタ・スキャナ複合機PSであればUSBコントローラ12に実装されている。
ここで現実に実装されるエンドポイントリソースは、そのUSBコントローラの機種に依存しており、多数のエンドポイントを実装する機種は、コストがその分高くなっている。
なお、エンドポイントEP0は、従来のUSBプロトコルではコントロール転送に使われることが決まっており、いずれのUSBコントローラでも実装している。これらエンドポイントEP0〜EP15には、各々FIFOバッファが用意され、ホストとの間でパイプを形成して、独自にホストとデータ転送を行えるようになっている。
ついで、デバイスのセットアップ時のプラグアンドプレイによるデバイス構成を説明する。デバイスはUSB1.xに対するステート(状態)を有し、プラグアンドプレイの処理に応じて、そのステート間を遷移する。
FIG. 4 is a diagram illustrating the structure of four types of packets corresponding to FIG.
In the figure, an SOF packet is a frame start packet issued by the host every 1 ms as described above, a token packet is a packet issued by the host at the start of a transaction, a data packet is a packet used at the time of transfer, a handshake packet is an interrupt transfer or A packet used in a transaction for performing flow control such as bulk transfer. The ADDR of the token packet represents an address uniquely assigned by the host to each device such as a keyboard KB connected to the host via a USB cable, and the ENDP forms a device interface for each of these devices. Identifying the endpoint DATA in the data packet is bit string data and has a size of 0 to 1023 bytes depending on the type of transfer.
Each device has a USB1. In the case of the X standard, it can have a maximum of 16 endpoints EP0 to EP15, and these endpoints are mounted on the USB controller 12 in the case of a printer / scanner multifunction device PS, for example.
Here, the endpoint resource that is actually mounted depends on the model of the USB controller, and the model that mounts a large number of endpoints has a higher cost.
The end point EP0 is determined to be used for control transfer in the conventional USB protocol, and is mounted on any USB controller. Each of these end points EP0 to EP15 is provided with a FIFO buffer, and a pipe is formed with the host so that data can be independently transferred to and from the host.
Next, a device configuration by plug and play at the time of device setup will be described. The device is USB1. It has a state (state) for x, and transitions between the states according to plug and play processing.

図5は、USBデバイス装置の状態遷移を示す図面であり、この図5及び図1、2を参照して、更に本発明の実施例であるプリンタ・スキャナ複合機PSについて、そのデバイス構成を説明する。
ここで、プリンタ・スキャナ複合機PSのプリンタ部16は、操作部15からの設定オプションの操作入力により、GDIプリンタ部として作動させるように、予め設定が済まされているものとする。
まず、プリンタ・スキャナ複合機PSの電源が投入されると、MPU11は、ソフトウェア処理によって、USBコントローラ12を初期化し、その各レジスタに所定の値を設定する。これにより、USBコントローラ12を電源投入ステートにして、ハブHに接続されるまで保留ステート(S101〜S102)で待機させる。
ここで、プリンタ・スキャナ複合機PSが、図2に示すようにハブHへ接続されれば、ハブHがプリンタ・スキャナ複合機PSを検出して、それをホストのUSBプロトコルスタックへ報告する。
これに応じてUSBプロトコルスタックは、ハブHに対する指示を送信させて、ハブHのプリンタ・スキャナ複合機PSが接続されたポートを開かせるが、このとき、プリンタ・スキャナ複合機PSでは、USBコントローラ12のSBコネクタ12aのD+端子におけるプルアップ電圧の検知がMPU11に通知される。
MPU11はそれに応じて、USBコントローラ12をデフォルトステート(S103)に遷移させ、USB1.X規格に従ってデフォルトアドレス0でホストからの受信を待機させる(S104)。USBプロトコルスタックは、USB1.Xの規格により、コントロール転送を開始して、デフォルトアドレス0のデバイスに向けてGET_DESCRIPTOR標準デバイスリクエストを送信させ、そのデバイスを特定するデバイスディスクリプタを要求する。この要求をUSBコントローラ12から受けたMPU11は、USBコントローラ12に所定のデバイスディスクリプタを応答させる。
FIG. 5 is a diagram showing the state transition of the USB device device. With reference to FIGS. 5 and 1, and 2, the device configuration of the printer / scanner multifunction device PS according to the embodiment of the present invention will be described. To do.
Here, it is assumed that the printer unit 16 of the printer / scanner multifunction device PS has been set in advance so as to operate as a GDI printer unit by an operation input of a setting option from the operation unit 15.
First, when the power of the printer / scanner multifunction device PS is turned on, the MPU 11 initializes the USB controller 12 by software processing and sets predetermined values in the respective registers. As a result, the USB controller 12 is set in the power-on state and waits in the hold state (S101 to S102) until it is connected to the hub H.
If the printer / scanner multifunction device PS is connected to the hub H as shown in FIG. 2, the hub H detects the printer / scanner multifunction device PS and reports it to the USB protocol stack of the host.
In response to this, the USB protocol stack sends an instruction to the hub H to open the port to which the printer / scanner multifunction device PS of the hub H is connected. At this time, the printer / scanner multifunction device PS uses the USB controller. The MPU 11 is notified of the detection of the pull-up voltage at the D + terminal of the 12 SB connectors 12a.
In response to this, the MPU 11 changes the USB controller 12 to the default state (S103), and the USB1. In accordance with the X standard, the reception from the host is waited at the default address 0 (S104). The USB protocol stack is USB1. In accordance with the X standard, control transfer is started, a GET_DESCRIPTOR standard device request is transmitted to the device having the default address 0, and a device descriptor specifying the device is requested. Upon receiving this request from the USB controller 12, the MPU 11 causes the USB controller 12 to respond with a predetermined device descriptor.

USBプロトコルスタックは、そのデバイスディスクリプタを取得すれば、プリンタ・スキャナ複合機PSへシステム内でユニークなアドレスを割り当てるために、
SET_ADRESS標準デバイスリクエストをアドレス0へ送信させる一方、その取得したデバイスディスクリプタ中の、プリンタ・スキャナ複合機PSを特定するVIDやPIDに基づいて、それに対する所定のデバイスドライバをロードさせ、ロードされたデバイスドライバに制御を移す。SET_ADRESS標準デバイスリクエストを受けたUSBコントローラ12から、その通知を受けたMPU11は、SET_ADRESS標準デバイスリクエストで指定されたアドレスをUSBコントローラ12に設定させ、USBコントローラ12をアドレスステート(S105)に遷移させる。
USBプロトコルスタックから制御を移されたデバイスドライバは、プリンタ・スキャナ複合機PSからデバイス構成のための各ディスクリプタを取得し、SET_CONFIGURATION標準デバイスリクエストを送信させる。SET_CONFIGURATION標準デバイスリクエストを受信したUSBコントローラ12からその通知を受け、MPU11はUSBコントローラ12に所定のデバイスインターフェースを構成させて、構成ステート(S107)へ遷移させる。
上記のステート各々において、USBコントローラ12は、待機時間経過により、保留ステート(S102、S104、S106、S108)へと自動的に遷移して、転送やMPU11の指令により、元のステートに復帰するようになっている。
When the USB protocol stack acquires the device descriptor, it assigns a unique address in the system to the printer / scanner multifunction device PS.
While sending a SET_ADDRESS standard device request to address 0, a predetermined device driver is loaded based on the VID and PID for specifying the printer / scanner multifunction device PS in the obtained device descriptor, and the loaded device Transfer control to the driver. The MPU 11 that has received the notification from the USB controller 12 that has received the SET_ADDRESS standard device request causes the USB controller 12 to set the address specified in the SET_ADDRESS standard device request, and transitions the USB controller 12 to the address state (S105).
The device driver to which control is transferred from the USB protocol stack acquires each descriptor for device configuration from the printer / scanner multifunction device PS, and transmits a SET_CONFIGURATION standard device request. Upon receiving the notification from the USB controller 12 that has received the SET_CONFIGURATION standard device request, the MPU 11 causes the USB controller 12 to configure a predetermined device interface, and transitions to the configuration state (S107).
In each of the above states, the USB controller 12 automatically transitions to the hold state (S102, S104, S106, S108) as the standby time elapses, and returns to the original state in response to a transfer or a command from the MPU 11. It has become.

このようなプラグアンドプレイによるデバイス構成はコントロール転送によって行われ、標準デバイスリクエストのためには、必ずエンドポイントEP0が使用される。
そのため、エンドポイントEP0は64バイト固定長の双方向転送(ホスト←→デバイス)が可能になっている。なお、エンドポイントEP1〜EP15は、0〜1023バイトの単方向転送(ホスト→デバイスまたはホスト←デバイス)が可能となっているが、デバイス構成では、これらエンドポイントEP1〜EP15を使用することはできない。
Such plug-and-play device configuration is performed by control transfer, and the end point EP0 is always used for a standard device request.
Therefore, the endpoint EP0 is capable of 64-byte fixed length bidirectional transfer (host ← → device). The endpoints EP1 to EP15 can perform unidirectional transfer (host → device or host ← device) of 0 to 1023 bytes. However, the endpoints EP1 to EP15 cannot be used in the device configuration. .

本発明は、上述のようなデバイスインターフェースの構成仕方に特徴があり、デジタル複合機に内蔵した制御手段は、実施例のプリンタ・スキャナ複合機PSでは、従来は、デバイスインターフェースの構成時に、コントロール転送用としてしか使用がされていなかった双方向のエンドポイントEP0を、デバイスインターフェースの構成後は、プリンタ部16とスキャナ部17との両者に対するデータ転送のために使用させるようになっている。
これにより、プリンタ・スキャナ複合機PSでは、エンドポイントリソースの使用が抑制され、そのためUSBコントローラ12は、エンドポイントリソースの少ない機種を採用することが可能となり、コストも抑制される。
次いで、本発明によって構成されるデバイスインターフェースを、図1Aについて説明する。
この図1Aは、プリンタ・スキャナ複合機PSにおけるGDIプリンタ部のデバイスインターフェースと、TWAINスキャナ部のデバイスインターフェースの基本構成を概念的に示している。
図において、エンドポイントEP0には、上記のプラグアンドプレイによるデバイス構成における標準デバイスリクエストの外、更にGDIプリンタ部のコントロール応答と、TWAINスキャナ部のコントロールを割り当てている。また、GDIプリンタ部のデバイスインターフェース0では、EP1にGDIプリンタコントロールと印字データ転送をホストからデバイスへのバルク転送として割り当てている。そして、TWAINスキャナ部のデバイスインターフェース1では、EP2にTWAINスキャナ部のコントロール応答と、読み取りデータの転送をデバイスからホストへのバルク転送として割り当てている。
The present invention is characterized in the configuration of the device interface as described above, and the control means built in the digital multifunction peripheral is the control transfer in the printer / scanner multifunction peripheral PS of the embodiment. The bidirectional endpoint EP0, which has been used only for the purpose, is used for data transfer to both the printer unit 16 and the scanner unit 17 after the device interface is configured.
As a result, in the printer / scanner multifunction device PS, the use of the endpoint resource is suppressed, so that the USB controller 12 can adopt a model with a small number of endpoint resources, and the cost can also be suppressed.
A device interface constructed in accordance with the present invention will now be described with respect to FIG. 1A.
FIG. 1A conceptually shows the basic configuration of the device interface of the GDI printer unit and the device interface of the TWAIN scanner unit in the printer / scanner multifunction device PS.
In the figure, in addition to the standard device request in the above-described plug and play device configuration, the control response of the GDI printer unit and the control of the TWAIN scanner unit are assigned to the end point EP0. In the device interface 0 of the GDI printer unit, GDI printer control and print data transfer are assigned to EP1 as bulk transfer from the host to the device. In the device interface 1 of the TWAIN scanner unit, the control response of the TWAIN scanner unit and transfer of read data are assigned to EP2 as bulk transfer from the device to the host.

このように、本発明の実施例であるプリンタ・スキャナ複合機PSでは、GDIプリンタ部のコントロール応答とTWAINスキャナ部のコントロールにエンドポイントEP0を割り当ててデバイス構成することにより、エンドポイントリソースの使用を抑制して(EP1、EP2のみ使用)、エンドポイントリソースの少ない低コストのUSBコントローラ12を利用可能としている。
なお、本発明の実施例であるプリンタ・スキャナ複合機PSのプリンタ部をPCLプリンタ部として使用することももちろん可能であって、上記と同様のプラグアンドプレイによるデバイス構成が行われる。
また、上記実施例では、USB1.X規格に適合したプリンタ・スキャナ複合機PSについて説明したが、本発明をUSB2の規格に適合させることも可能である。更に、本発明はプリンタ・スキャナ複合機だけに限定されず、同様の技術思想はキーボード・マウス複合機を始めとする外の複合機にも適用できる。
As described above, in the printer / scanner multi-function apparatus PS according to the embodiment of the present invention, the end point EP0 is assigned to the control response of the GDI printer unit and the control of the TWAIN scanner unit to configure the device, thereby using the end point resource. It is possible to use the low-cost USB controller 12 with a small amount of endpoint resources (suppressed (only EP1 and EP2 are used)).
Of course, it is possible to use the printer unit of the printer / scanner multifunction device PS according to the embodiment of the present invention as the PCL printer unit, and the same device configuration by plug and play as described above is performed.
In the above embodiment, the USB 1. Although the printer / scanner multifunction device PS conforming to the X standard has been described, it is also possible to adapt the present invention to the USB 2 standard. Further, the present invention is not limited to a printer / scanner multifunction device, and the same technical idea can be applied to other multifunction devices including a keyboard / mouse multifunction device.

本発明の実施例であるプリンタ・スキャナ複合機の基本構成を説明するブロック図である。1 is a block diagram illustrating a basic configuration of a printer / scanner multifunction machine according to an embodiment of the present invention. FIG. プリンタ・スキャナ複合機のデバイスインターフェースの基本構成を示す概念図である。2 is a conceptual diagram illustrating a basic configuration of a device interface of a printer / scanner multifunction peripheral. FIG. USBケーブルによって互いに接続されたシステムを説明する図面である。2 is a diagram illustrating systems connected to each other by a USB cable. USBのパケット転送を説明する概念図である。It is a conceptual diagram explaining USB packet transfer. USBのパケットの構成を示す図面である。It is drawing which shows the structure of a USB packet. デバイスのセットアップ時の状態遷移を示す図面である。It is drawing which shows the state transition at the time of the setup of a device.

符号の説明Explanation of symbols

11 MPU
12 USBコントローラ
12a USBコネクタ
16 プリンタ部
17 スキャナ部
18 ROM
EP0〜EP2 エンドポイント
11 MPU
12 USB controller 12a USB connector 16 Printer unit 17 Scanner unit 18 ROM
EP0 to EP2 endpoint

Claims (3)

ホストコンピュータとUSBインターフェースを通じて、プリンタ、スキャナなどの複数種類の周辺機器として動作するUSB対応型デジタル複合機において、
複数のエンドポイントを搭載し、上記複数種類の周辺機器の機能を実行するために、ホストコンピュータとの間で所定の通信プロトコルに従ったデータを送受させるように、上記エンドポイントを機能毎のデータ転送に割り当てて、デバイスインターフェースを構成するUSBコントローラと、
上記USBコントローラに装備された複数のエンドポイントのうち、デバイスインターフェースの構成時にコントロール転送に使用する双方向のエンドポイントを、デバイスインターフェースが構築された後には、上記複数種類の周辺機器のうち、少なくとも1つの周辺機器の機能を実行するためのデータ転送に割り当てる制御手段とを備えている、USB対応型デジタル複合機。
In a USB-compatible digital multifunction peripheral that operates as a plurality of types of peripheral devices such as a printer and a scanner through a host computer and a USB interface.
In order to execute the functions of the plurality of types of peripheral devices equipped with a plurality of endpoints, the endpoints are provided with data for each function so as to send and receive data according to a predetermined communication protocol with the host computer. A USB controller that allocates to transfer and configures the device interface;
Among the plurality of endpoints equipped in the USB controller, after the device interface is constructed, the bidirectional endpoint used for control transfer at the time of configuring the device interface is at least one of the plurality of types of peripheral devices. A USB compatible digital multi- function peripheral comprising control means for assigning data transfer for executing the function of one peripheral device .
請求項1において、
上記制御手段は、デバイスインターフェースの構成後に、上記複数種類の周辺機器のうち、2つの周辺機器の機能を実行するために転送されるデータのそれぞれを、上記双方向のエンドポイントの転送方向に対応させて割り当てるようにしているUSB対応型デジタル複合機。
In claim 1,
After the device interface is configured, the control means corresponds to the transfer direction of the bidirectional endpoints for each of the data transferred to execute the functions of two peripheral devices among the plurality of types of peripheral devices. USB compatible digital multi-function peripherals that are assigned.
請求項2において、
上記制御手段が、双方向のエンドポイントに割り当てているデータが、コピー、プリンタ、スキャナ、カメラ、ファクシミリ送受信用の画像データ、それらのコマンド、応答信号のうちから、互いに転送方向が反対になる2つのもので特定されている、USB対応型デジタル複合機。
In claim 2,
The control unit assigns the data to the bidirectional endpoints so that the transfer directions are opposite to each other among copy, printer, scanner, camera, facsimile transmission / reception image data, their commands, and response signals. USB compatible digital multi-function peripherals identified by one.
JP2003413624A 2003-12-11 2003-12-11 USB compatible digital MFP Expired - Fee Related JP3906838B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003413624A JP3906838B2 (en) 2003-12-11 2003-12-11 USB compatible digital MFP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003413624A JP3906838B2 (en) 2003-12-11 2003-12-11 USB compatible digital MFP

Publications (2)

Publication Number Publication Date
JP2005175936A JP2005175936A (en) 2005-06-30
JP3906838B2 true JP3906838B2 (en) 2007-04-18

Family

ID=34733711

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003413624A Expired - Fee Related JP3906838B2 (en) 2003-12-11 2003-12-11 USB compatible digital MFP

Country Status (1)

Country Link
JP (1) JP3906838B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4539864B2 (en) * 2006-01-05 2010-09-08 ブラザー工業株式会社 Storage controller
JP4760460B2 (en) * 2006-03-13 2011-08-31 ブラザー工業株式会社 Scanner control system and scanner driver program
JP4333765B2 (en) 2007-03-28 2009-09-16 ブラザー工業株式会社 Device control system
JP2008245046A (en) 2007-03-28 2008-10-09 Brother Ind Ltd Multifunction peripheral, and device control system
JP4333764B2 (en) 2007-03-28 2009-09-16 ブラザー工業株式会社 Device control system

Also Published As

Publication number Publication date
JP2005175936A (en) 2005-06-30

Similar Documents

Publication Publication Date Title
US7349973B2 (en) Data transfer control device, electronic equipment, and data transfer control method
JP4377603B2 (en) Bus communication system and communication control method thereof
JP3927647B2 (en) Information processing apparatus, information processing method, and information processing system
US20070299650A1 (en) Method to change USB device descriptors from host to emulate a new device
JP2001016382A (en) Digital copying machine and digital copying machine system
JP2008536225A (en) Peripheral device shared USB hub
JP2001222503A (en) Peripheral equipment control system
JP6261156B2 (en) Image forming apparatus
TW386215B (en) Emulation system and information processor
JP3906838B2 (en) USB compatible digital MFP
EP1039368B1 (en) Data communication apparatus
US7856516B2 (en) Interfacing incompatible signaling using generic I/O and interrupt routines
US9525757B2 (en) Information processing apparatus that controls connection of devices, method of controlling the apparatus, and device control system
JP6460905B2 (en) Communication device, control method, program
JPH0511938A (en) High-functional parallel port interface
JP5775367B2 (en) Information processing apparatus and control method thereof, mirroring system and RAID control apparatus
JP2005184360A (en) Usb-compatible composite copy machine, host computer, and usb-compatible copy machine control system
JP2006331088A (en) Storage medium processor
JP2006338232A (en) Communication system
KR100688477B1 (en) Memory management of endpoints in USB device
JP2005100064A (en) Image processor and image processing method and its program
JP2006309444A (en) Data processing system
JP2009059018A (en) Information processing system, information processor and data transfer method for information processing system
JP2658931B2 (en) Printer controller
JP3598924B2 (en) Data transfer control device, information storage medium, and electronic device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060324

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070108

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100126

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110126

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110126

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120126

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130126

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees