JP2009157863A - Device controller and host device - Google Patents
Device controller and host device Download PDFInfo
- Publication number
- JP2009157863A JP2009157863A JP2007338595A JP2007338595A JP2009157863A JP 2009157863 A JP2009157863 A JP 2009157863A JP 2007338595 A JP2007338595 A JP 2007338595A JP 2007338595 A JP2007338595 A JP 2007338595A JP 2009157863 A JP2009157863 A JP 2009157863A
- Authority
- JP
- Japan
- Prior art keywords
- usb
- information
- descriptor
- host
- configuration
- 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.)
- Withdrawn
Links
Images
Abstract
Description
この発明は、ホスト装置に接続可能に構成されるとともに、デバイス接続部に接続されたデバイスを制御するデバイス制御装置と、該デバイス制御装置を接続可能に構成されたホスト装置とに関するものである。 The present invention relates to a device control apparatus configured to be connectable to a host apparatus and controlling a device connected to a device connection unit, and a host apparatus configured to be connectable to the device control apparatus.
従来、プリンタやスキャナなどの外部装置はパーソナルコンピュータなどのホストコンピュータと接続して利用される。この接続に際し、USB(Universal Serial Bus)と呼ばれる規格が普及している。USB規格は、汎用性が高く高速通信が可能であり、また機器を起動させた状態でコネクタの挿抜が可能、一つのホストに対して複数のデバイスを接続できるなどの利点を有している。 Conventionally, external devices such as printers and scanners are used by being connected to a host computer such as a personal computer. For this connection, a standard called USB (Universal Serial Bus) is in widespread use. The USB standard has advantages such as high versatility, high-speed communication, connector insertion / removal with the device activated, and connection of a plurality of devices to one host.
一方、ホストコンピュータに外部装置を接続して利用するにはプリンタドライバなどの専用ドライバをインストールする必要がある。通常、USBではホストとデバイス(外部装置)とを接続した際に、ホストはデバイスの有する機能(プリンタの機能やスキャナの機能等)に関する情報を受信する。そして、専用ドライバが存在しない状態で外部装置を接続すると、その機能に関する情報を受信したにも拘わらず、その機能を動作させるための専用ドライバがホストに存在しないため、ホストは外部装置を「不明なデバイス」として認識する。そこで、従来、「不明なデバイス」として認識されないようにした装置が提案されている(例えば、特許文献1,2参照)。
On the other hand, a dedicated driver such as a printer driver must be installed in order to connect an external device to the host computer. Normally, in USB, when a host and a device (external device) are connected, the host receives information on the functions (printer function, scanner function, etc.) of the device. If an external device is connected in the absence of a dedicated driver, the host identifies the external device as `` unknown '' because the host does not have a dedicated driver for operating that function even though information related to that function has been received. Recognize as a “nice device” Thus, conventionally, an apparatus that is not recognized as an “unknown device” has been proposed (see, for example,
しかしながら、元々、パーソナルコンピュータなどの汎用の装置に接続することが想定されておらず、専用の装置にのみ接続するように設計されたデバイスも存在する。そのようなデバイスでは、上記従来の特許文献1,2に記載の装置のように、複雑な構成を備えてパーソナルコンピュータで使用可能にすることまでは求められていない。すなわち、パーソナルコンピュータに「不明なデバイス」として認識されて、ユーザに煩わしい思いをさせないようにすることのみが望まれる。
However, it is not originally intended to be connected to a general-purpose device such as a personal computer, and there is a device designed to connect only to a dedicated device. Such a device is not required to have a complicated configuration and be usable in a personal computer like the devices described in the above-mentioned
この発明は、上記課題に鑑みなされたものであり、簡易な構成で、パーソナルコンピュータなどの汎用のホスト装置に接続されたときに不明なデバイスとして認識されないようにすることが可能なデバイス制御装置を提供することを目的とする。また、この発明は、上記デバイス制御装置が接続されると好適に通信することができるホスト装置を提供することを目的とする。 The present invention has been made in view of the above problems, and provides a device control apparatus that can be prevented from being recognized as an unknown device when connected to a general-purpose host device such as a personal computer with a simple configuration. The purpose is to provide. It is another object of the present invention to provide a host apparatus that can communicate favorably when the device control apparatus is connected.
この発明にかかるデバイス制御装置は、上記目的を達成するため、USBデバイスとして標準的に設計された汎用デバイスを接続するための汎用デバイス接続部と、汎用デバイス以外の専用デバイスをUSBデバイスとして接続するための専用デバイス接続部と、ホスト装置を接続するためのデバイス側USB端子と、汎用デバイス接続部に接続された汎用デバイスおよび専用デバイス接続部に接続された専用デバイスを制御するとともに、デバイス側USB端子に接続されたホスト装置との通信を制御するデバイスコントローラと、デバイスコントローラに関する情報が記述されたデバイスディスクリプタとコンフィギュレーションに関する情報が記述されたコンフィギュレーションディスクリプタとを記憶するデバイス記憶手段とを備え、デバイスディスクリプタには、複数のコンフィギュレーションディスクリプタを有する旨の情報が記述され、専用デバイスに関する情報は、1番目以外のコンフィギュレーションディスクリプタに記述されており、1番目のコンフィギュレーションディスクリプタには記述されていないことを特徴としている。 In order to achieve the above object, a device control apparatus according to the present invention connects a general-purpose device connection unit for connecting a general-purpose device designed as a standard USB device and a dedicated device other than the general-purpose device as a USB device. A device-side USB terminal for connecting a host device, a device-side USB terminal for connecting a host device, a general-purpose device connected to the general-purpose device connection unit and a dedicated device connected to the dedicated-device connection unit, and a device-side USB A device controller for controlling communication with a host device connected to the terminal; and a device storage unit for storing a device descriptor in which information on the device controller is described and a configuration descriptor in which information on the configuration is described In the device descriptor, information indicating that a plurality of configuration descriptors are included is described. Information regarding the dedicated device is described in a configuration descriptor other than the first, and is not described in the first configuration descriptor. It is characterized by that.
このように構成された発明によれば、専用デバイスに関する情報は、1番目のコンフィギュレーションディスクリプタには記述されていない。したがって、接続されたUSBデバイスを1番目のコンフィギュレーションディスクリプタに基づき制御するような汎用のパーソナルコンピュータに接続された場合には、専用デバイスに関する情報が取得されないため、不明なデバイスとして認識されることはない。その結果、「不明なデバイスが接続されました。ドライバをインストールしてください。」などのメッセージが表示されてユーザに煩わしい思いをさせるような事態を簡易な構成で未然に防止することができる。また、専用デバイスに関する情報は、1番目以外のコンフィギュレーションディスクリプタに記述されているため、専用のホスト装置に接続された場合には、そのコンフィギュレーションディスクリプタに基づき制御することにより、専用デバイスを有効に利用することができる。 According to the invention configured as described above, information on the dedicated device is not described in the first configuration descriptor. Therefore, when connected to a general-purpose personal computer that controls the connected USB device based on the first configuration descriptor, information about the dedicated device is not acquired, and therefore it is not recognized as an unknown device. Absent. As a result, it is possible to prevent a situation in which a message such as “An unknown device has been connected. Install the driver.” And the like is annoying to the user with a simple configuration. In addition, since information related to the dedicated device is described in a configuration descriptor other than the first one, when connected to a dedicated host device, the dedicated device is enabled by controlling based on the configuration descriptor. Can be used.
また、デバイスディスクリプタのベンダーIDには固有の情報が記述され、デバイスディスクリプタの製品IDには専用デバイスに対応して設定された情報が記述され、専用デバイスに関する情報は、製品IDに対応する特定のコンフィギュレーションディスクリプタに記述されているとしてもよい。このように構成された発明によれば、専用のホスト装置に接続され、ベンダーIDおよび製品IDの情報が確認され、特定のコンフィギュレーションディスクリプタに基づき制御されると、ホスト装置により専用デバイスが好適に制御されることとなる。 Further, unique information is described in the vendor ID of the device descriptor, information set in correspondence with the dedicated device is described in the product ID of the device descriptor, and information on the dedicated device is a specific ID corresponding to the product ID. It may be described in the configuration descriptor. According to the invention configured as described above, when the information on the vendor ID and the product ID is confirmed and controlled based on the specific configuration descriptor, the dedicated device is suitably used by the host device. Will be controlled.
また、この発明にかかるホスト装置は、上記目的を達成するため、上記デバイス制御装置をUSBデバイスとして接続するためのホスト側USB端子と、ホスト側USB端子に接続されたUSBデバイスとの通信を制御するホストコントローラと、固有のベンダ情報、特定の製品情報および製品情報に対応する特定のコンフィギュレーションディスクリプタの情報を記憶するホスト記憶手段とを備え、ホストコントローラは、ホスト側USB端子にUSBデバイスが接続されると該USBデバイスと通信を行い、デバイスディスクリプタのベンダーIDの情報がホスト記憶手段に記憶されているベンダ情報と一致し、かつ、デバイスディスクリプタの製品IDの情報がホスト記憶手段に記憶されている製品情報に含まれているときは、その製品情報に対応する特定のコンフィギュレーションディスクリプタに基づき、USBデバイスを制御することを特徴としている。 In order to achieve the above object, the host device according to the present invention controls communication between a host-side USB terminal for connecting the device control device as a USB device and a USB device connected to the host-side USB terminal. And host storage means for storing specific vendor information, specific product information, and specific configuration descriptor information corresponding to the product information. The host controller has a USB device connected to the host-side USB terminal. Then, it communicates with the USB device, the vendor ID information of the device descriptor matches the vendor information stored in the host storage means, and the product ID information of the device descriptor is stored in the host storage means. If it is included in the product information Based on the specific configuration descriptor corresponding to the information, it is characterized by controlling the USB device.
このように構成された発明によれば、ホスト側USB端子にUSBデバイスが接続されると該USBデバイスと通信が行われる。そして、デバイスディスクリプタのベンダーIDの情報が記憶されているベンダ情報と一致し、かつ、製品IDの情報が記憶されている製品情報に含まれているときは、その製品情報に対応する特定のコンフィギュレーションディスクリプタに基づき、USBデバイスが制御される。したがって、USBデバイスとして標準的に設計された汎用デバイス以外の専用デバイスを、好適に利用することが可能になる。 According to the invention thus configured, when a USB device is connected to the host-side USB terminal, communication with the USB device is performed. When the vendor ID information of the device descriptor matches the stored vendor information and the product ID information is included in the stored product information, a specific configuration corresponding to the product information is stored. The USB device is controlled based on the session descriptor. Therefore, it is possible to suitably use a dedicated device other than a general-purpose device designed as a standard USB device.
図1は本発明のホスト装置の一実施形態であるフォトプリンタと本発明のデバイス制御装置の一実施形態であるUSBユニットとを示す斜視図である。また、図2はフォトプリンタの内部構成の概略を示す図、図3はフォトプリンタおよびUSBユニットの電気的構成を示すブロック図である。図1では、フォトプリンタ10にUSBケーブル81を介してUSBユニット80が接続され、USBユニット80にビデオケーブル91を介してテレビ受像機90が接続されている。このフォトプリンタ10では、プリンタ本体12の内部にプリント機構部50が内蔵されており、このプリント機構部50の制御を司る記録制御部70からの動作指令に応じて用紙Pへの印刷を実行する。そして、こうして印刷された用紙Pがプリンタ本体12の前面に排紙される。
FIG. 1 is a perspective view showing a photo printer which is an embodiment of the host apparatus of the present invention and a USB unit which is an embodiment of the device control apparatus of the present invention. 2 is a diagram showing an outline of the internal configuration of the photo printer, and FIG. 3 is a block diagram showing the electrical configuration of the photo printer and the USB unit. In FIG. 1, a
このプリンタ本体12の前面には、図1に示すように、前面扉14が開閉自在に取り付けられている。この前面扉14はプリンタ本体12の前面を開閉するための蓋である。そして、開状態のときには、プリント機構部50から排紙される用紙Pを受けるための排紙トレイとして機能する。また、プリンタ本体12の前面に設けられた各種のメモリカードスロット16をユーザが利用可能な状態となる。つまり、この状態でユーザは印刷対象となる画像ファイルを記憶したメモリカードMをメモリカードスロット16に差し込むことができる。
As shown in FIG. 1, a
また、図1に示すプリンタ本体12の側面部には、USB(Universal Serial Bus)規格に準拠したデジタルカメラなどの外部デバイスを接続するためのUSB外部ソケット(いわゆるAソケット)17が設けられている。また、USBユニット80には、光ディスクドライブ(Optical Disc Drive)13が設けられている。これによって、フォトプリンタ10にUSBユニット80を接続することにより、記録媒体としてメモリカード以外に音楽CD(Compact Disc:コンパクトディスク)や映像DVD(Digital Versatile Disc:デジタル多用途ディスク)などのディスクDCを利用可能となっている。
1 is provided with a USB external socket (so-called A socket) 17 for connecting an external device such as a digital camera compliant with the USB (Universal Serial Bus) standard. . The
また、プリンタ本体12の上面には操作パネル20が設けられる一方、プリンタ本体12の上面の奥の一辺に対してカバー30が開閉自在に取り付けられている。このカバー30は、プリンタ本体12の上面を覆うことのできる大きさに成形された樹脂板であり、開状態では操作パネル20の表面を外部に露出する(図1参照)。一方、カバー30が閉状態に閉じられると、操作パネル20全体を覆う。
An
この操作パネル20には、文字や図形、記号などを表示する例えばLCDにより構成された表示部22と、この表示部22の周囲に配置されたボタン群24とを備えている。ボタン群24は、図2に示すように、電源のオンオフを行うための電源ボタン24a、メインメニュー画面を呼び出すためのメニューボタン24b、操作を途中でキャンセルしたり用紙Pへの印刷を途中で中断したりするためのキャンセルボタン24c、用紙Pへの印刷実行を指示するための印刷ボタン24d、メモリカードスロット16に挿入されたメモリカードMに編集画像等を保存するための保存ボタン24e、表示部22に表示された複数の選択肢の中から所望の選択肢を選択したりカーソルを移動したりするときに操作される上下左右の各矢印ボタン24f〜24i、この上下左右の各矢印ボタン24f〜24iの中央に配置され各矢印ボタン24f〜24iによって選択されている選択肢に決定したことを指示するためのOKボタン24j、表示部22での画面表示を切り替えるための表示切替ボタン24k、表示部22に表示される左ガイドを選択する左ガイド選択ボタン24l、表示部22に表示される右ガイドを選択する右ガイド選択ボタン24m、排紙トレイとしての機能を備えた前面扉14を開く排紙トレイオープンボタン24nなどで構成されている。
The
また、表示部22の表示内容を確認するために、カバー30には表示部22と同じ大きさの窓32が設けられている。つまり、カバー30が閉状態にあるときにはユーザはこの窓32を介して表示部22の表示内容を確認することができる。一方、カバー30は開状態のときには、表示部22を図1に示すように好みの角度に調整することが可能となっている。
Further, in order to confirm the display content of the
このようにカバー30を開状態としたときには、操作パネル20に対して斜め後方に傾斜した状態でカバー30は保持され、用紙Pをプリント機構部50へ供給するためのトレイとして利用可能となっている。また、操作パネル20の奥には、プリント機構部50の給紙口58が設けられるとともに、ガイド幅が用紙の幅に合うように左右方向にスライド操作される一対の用紙ガイド59が設けられている。
Thus, when the
そして、給紙口58を介して用紙Pがプリント機構部50に送り込まれて印刷が実行される。このプリント機構部50には、図2に示すように、キャリッジ53が左右方向にループ状に架け渡されたタイミングベルト51により駆動されガイド52に沿って左右に往復動する。このキャリッジ53には、センサ57が設けられ、用紙Pの左右端や上下端を検出する。つまり、センサ57は、給紙口58にセットされた用紙に対して印刷前にキャリッジ53が左右方向に走査したときにその用紙の左右端を検出して用紙幅の認識を可能にしたり、印刷途中で用紙の後端を検出して用紙長さの認識を可能にしたりする。
Then, the paper P is sent to the
また、このキャリッジ53には、シアン・マゼンタ・イエロー・ブラック等の各色のインクを個別に収容したインクカートリッジ54が搭載されている。これらのインクカートリッジ54はそれぞれ印刷ヘッド55に接続されている。そして、印刷ヘッド55はインクカートリッジ54からのインクに圧力をかけてノズル(図示省略)から用紙Pに向かってインクを吐出する。この実施形態では、印刷ヘッド55は圧電素子に電圧をかけることにより該圧電素子を変形させてインクを加圧する方式を採用しているが、発熱抵抗体(例えばヒータなど)に電圧をかけインクを加熱して発生した気泡によりインクを加圧する方式を採用してもよい。こうして印刷された用紙Pは搬送ローラ56によって開状態の前面扉(排紙トレイ)14へ送り出される。
The
記録制御部70のシステムバス700には、図3に示すように、CPU701、ROM702、RAM703、不揮発性メモリ704、VRAM705、カードインタフェース706、画像処理部707、USBホストコントローラ708などが接続されている。CPU701は、プリント機構部50の動作制御を実行するための演算処理などを行う。また、CPU701は、プリント機構部50に設けられている用紙Pを搬送するモータ(図示省略)やタイミングベルト51を回転させるモータ(図示省略)などを制御するモータ制御信号や印刷ヘッド55の制御信号を駆動回路710に送出する。また、センサ57などの検出データがCPU701に取り込まれる。
As shown in FIG. 3, a CPU 701,
ROM702は、CPU701の制御に必要なプログラム(ファームウェア)などを記憶する。このROM702には、USBユニット80に対応する固有のベンダ情報が記憶されている。また、ROM702には、製品情報に対応付けてUSBデバイスのコンフィギュレーションに関する情報が記憶されている。すなわち、ROM702には、この実施形態では例えば、USBユニット80に対応する製品情報と、この製品情報に対応付けて2番目のコンフィギュレーションを使用する旨の情報とが記憶されている。RAM703には一時的にデータが記憶され、不揮発性メモリ704にはCPU701の制御に必要な各種データやテーブルなどが格納され、VRAM705には表示部22に描画すべき画像データが格納される。カードインタフェース706は、メモリカードスロット16との通信を行い、メモリカードスロット16に挿入されたメモリカードMなどの外部記憶媒体の画像データを読み取る。また、カードインタフェース706は、編集画像などを保存するためにメモリカードMに画像データを書き込む。
The
画像処理部707は、カードインタフェース706により読み取られたメモリカードMなどの外部記憶媒体から与えられる画像データに対し必要な画像処理を行う。また、画像処理部707は、表示部22に表示させるためのメニュー画面などのプリンタ固有の画像に対応する表示データを生成する機能を有する。この表示データと画像処理された画像データとが合成されたデータは、画像処理部707からLCDコントローラ709に与えられ、このLCDコントローラ709によって表示部22の表示が制御される。USBホストコントローラ708は、USB外部ソケット17に接続された外部デバイスとの間でUSB規格に基づきデータ通信を行うもので、フォトプリンタ10をUSBホストとし、USB外部ソケット17に接続された外部デバイスをUSBデバイスとして制御する。
The
USBユニット80の側面適所には、USB外部ソケット(いわゆるBソケット)801が設けられている。また、USBユニット80は、USBデバイスコントローラ802、USB変換回路803、IDE(Integrated Drive Electronics)インタフェース804、SDRAM805、CPU806、ROM807、SDRAMコントローラ808、画像処理部809、ビデオエンコーダ810、DAコンバータ811、ビデオインタフェース812を備えている。これらのうち、USB変換回路803、CPU806、ROM807、SDRAMコントローラ808、画像処理部809は、システムバス800に接続され、互いにデータの送受信が可能になっている。また、これらの機能ブロック802〜812は、この実施形態では、各種の機能が1個のチップ上に搭載されたSOC(System On a Chip)として構成されている。ROM807には、各種の制御プログラムやデータなどが記憶されている。また、USBユニット80は、ODD13およびテレビ受像機90を接続するためのRCAビデオ端子815を備えている。また、ROM807に記憶されているデータとしては、デバイスに関する情報を表すデバイスディスクリプタや、デバイスの動作条件に関する情報を表すコンフィギュレーションディスクリプタなどがあるが、これらについては後述する。
A USB external socket (so-called B socket) 801 is provided at an appropriate position on the side of the
USBデバイスコントローラ802は、ROM807に格納されているプログラム(ファームウェア)を実行することによって、USB外部ソケット801に接続された外部装置との間でUSB規格に基づきデータ通信を行うもので、USBユニット80をUSBデバイスとし、USB外部ソケット801に接続された外部装置をUSBホストとして制御する。USB変換回路803は、USB物理層を形成するマクロを備えており、USBデバイスコントローラ802およびUSB変換回路803によって、USBの物理的な接続や伝送が確立される。IDEインタフェース804にはODD13が接続されており、IDEインタフェース804は、ATA/ATAPIインタフェース回路として機能している。また、USB変換回路803は、USB−ATA/ATAPI変換回路として機能するUSB−IDE変換部を備えており、このUSB−IDE変換部は、USB外部ソケット801の入出力信号とIDEインタフェース804の入出力信号とを相互に変換する。
The
CPU806は、ROM807に格納されているプログラム(ファームウェア)を実行することによって、USBユニット80の各部の動作を制御する。SDRAMコントローラ808は、CPU806がSDRAM805をワークメモリとして利用できるようにする機能を有する。すなわち、USBデバイスコントローラ802を介して記録制御部70から送られてきた画像データは、SDRAM805に一時的に保存される。また、SDRAMコントローラ808は、RCAビデオ端子815に接続されたテレビ受像機90にアナログビデオ信号を出力する際に、SDRAM805をフレームメモリとして利用できるようにする機能を有する。
The
画像処理部809は、USBデバイスコントローラ802を介して記録制御部70から送られてきた画像データに対して、テレビ受像機90に表示するための画像処理を行う。また、画像処理部809は、テレビ受像機90に表示させるためのメニュー画面などのプリンタ固有の画像に対応する表示データを生成する機能を有する。この表示データと画像処理された画像データとが合成されたデータは、画像処理部809からビデオエンコーダ810に出力される。
The image processing unit 809 performs image processing for displaying the image data transmitted from the
ビデオエンコーダ810は、画像処理部809からのデータをこの実施形態では例えばNTSC方式の画像データに変換する。なお、NTSC方式に限られず、他のPAL方式やSECAM方式などに変換するようにしてもよい。また、複数方式に変換可能なビデオエンコーダを備えておき、いずれかの方式を選択できるようにしてもよい。そして、DAコンバータ811でデジタル信号からアナログ信号に変換された画像データは、ビデオインタフェース812を介してRCAビデオ端子815に出力される。このように、フォトプリンタ10にUSBユニット80を介してテレビ受像機90を接続することによって、表示部22より大画面のテレビ受像機90の画面に画像を表示することが可能になる。
In this embodiment, the video encoder 810 converts data from the image processing unit 809 into NTSC image data, for example. It should be noted that the present invention is not limited to the NTSC system, but may be converted to another PAL system, SECAM system, or the like. Also, a video encoder that can be converted into a plurality of systems may be provided so that one of the systems can be selected. Then, the image data converted from the digital signal to the analog signal by the DA converter 811 is output to the
図4はデバイスディスクリプタの一例を示す図、図5、図6はコンフィギュレーションディスクリプタの一例を示す図である。図4に示すように、デバイスディスクリプタには、USBのバージョン、ベンダーID、製品ID、製造者及び製品名を示す文字列のインデックス等のUSBデバイスに関する情報が記述されている。また、デバイスディスクリプタには、そのデバイスがサポートするコンフィギュレーションの数が記述されている。図4に示したデバイスディスクリプタを有するデバイスは2つのコンフィギュレーションをサポートしている。一方、コンフィギュレーションディスクリプタには、各コンフィギュレーションの情報が記憶されている。 FIG. 4 is a diagram illustrating an example of a device descriptor, and FIGS. 5 and 6 are diagrams illustrating an example of a configuration descriptor. As shown in FIG. 4, the device descriptor describes information about the USB device such as a USB version, a vendor ID, a product ID, an index of a character string indicating a manufacturer and a product name. The device descriptor describes the number of configurations supported by the device. The device having the device descriptor shown in FIG. 4 supports two configurations. On the other hand, information on each configuration is stored in the configuration descriptor.
図5に示すコンフィギュレーション#1のコンフィギュレーションディスクリプタには、インタフェースの数は1個と記述されている。すなわち、コンフィギュレーション#1のインタフェースディスクリプタやエンドポイントディスクリプタには、ODD13に関する情報のみが記述されている。また、図6に示すコンフィギュレーション#2のコンフィギュレーションディスクリプタには、インタフェースの数は2個と記述されている。すなわち、コンフィギュレーション#2のインタフェースディスクリプタやエンドポイントディスクリプタには、ODD13に関する情報に加えて、テレビ受像機接続に関する情報が記述されている。なお、図5、図6では、インタフェースディスクリプタおよびエンドポイントディスクリプタの値はバイト数が大きいため、空欄としている。
In the configuration descriptor of
一般に、USBホストは、USB外部ソケット(Aソケット)に接続されるUSBデバイスからデバイスディスクリプタおよびコンフィギュレーションディスクリプタを取得する。そして、USBホストは、取得したこれらのディスクリプタの情報に基づき、USBデバイスを制御する。すなわち、USBホストとして機能するフォトプリンタ10は、USB外部ソケット17に接続されるUSBユニット80からデバイスディスクリプタを取得するとともに、コンフィギュレーションディスクリプタを取得する。そして、フォトプリンタ10は、取得したこれらのディスクリプタの情報に基づき、USBユニット80を制御する。
In general, a USB host acquires a device descriptor and a configuration descriptor from a USB device connected to a USB external socket (A socket). Then, the USB host controls the USB device based on the acquired information on these descriptors. That is, the
一方、USBホストとして機能する汎用のパーソナルコンピュータに対して、USBユニット80がUSBデバイスとして接続されると、パーソナルコンピュータは、同様にデバイスディスクリプタを取得する。しかし、パーソナルコンピュータは、一般に、デバイスディスクリプタの内容に関係なく、1番目のコンフィギュレーションディスクリプタ、すなわちコンフィギュレーション#1を取得する。したがって、USBユニット80が接続されたパーソナルコンピュータは、ODD13に関する情報のみを認識し、テレビ受像機接続に関する情報は認識しない。これによって、USBユニット80がパーソナルコンピュータに接続されても、不明なデバイスと認識されることはない。
On the other hand, when the
このように、この実施形態では、ODD13が本発明の「汎用デバイス接続部」に相当し、光ディスクDCが本発明の「汎用デバイス」に相当し、RCAビデオ端子815が本発明の「専用デバイス接続部」に相当し、テレビ受像機90が本発明の「専用デバイス」に相当する。また、USB外部ソケット801が本発明の「デバイス側USB端子」に相当し、ROM807が本発明の「デバイス記憶手段」に相当する。また、USB外部ソケット17が本発明の「ホスト側USB端子」に相当し、ROM702が本発明の「ホスト記憶手段」に相当する。また、CPU806およびUSBデバイスコントローラ802が本発明の「デバイスコントローラ」を構成し、CPU701およびUSBホストコントローラ708が本発明の「ホストコントローラ」を構成する。
Thus, in this embodiment, the
図7はフォトプリンタの動作手順を示すフローチャートである。USBホストコントローラ708は、まず、新たなデバイスがUSB外部ソケット17に接続されたか否かを判別する(ステップS10)。デバイスの接続は、USB外部ソケット17のD+端子またはD−端子が所定の電位となったことを検出することで判別することができる。デバイスが接続されていないときは(ステップS10でNO)、デバイスが接続されるまで待機する。
FIG. 7 is a flowchart showing the operation procedure of the photo printer. The
デバイスが接続されると(ステップS10でYES)、USBホストコントローラ708は、リセット信号として、D+端子およびD−端子に対して一定時間以上のロー信号を出力する。ロー信号が入力されたデバイス側では内部リセットが行われ、コントロール転送による通信が可能な状態となる。
When the device is connected (YES in step S10), the
次いで、USBホストコントローラ708はコンフィギュレーションを実行する。そのため、まず、USBホストコントローラ708は「Get_Descriptor(Device)」コマンドを出力し、デバイス内に保持されているデバイスディスクリプタの転送を要求する。USBホストコントローラ708は、要求に応じてデバイスから転送されるデバイスディスクリプタを取得する(ステップS12)。取得したデバイスディスクリプタには、製品ID、シリアル番号等のデバイスに関する情報の他、サポートするコンフィギュレーションの数が含まれている。これらの情報はUSBホストコントローラ708を通じてCPU701に通知される。次いで、USBホストコントローラ708は、このデバイスに対して使用していないアドレスを付与するために「Set_Address」コマンドを転送する(ステップS14)。この時点でデバイス側は特定のアドレスを持つこととなり、以降はこのアドレスを用いて通信を行うことができる。
Next, the
CPU701は、ステップS12で取得したデバイスディスクリプタの情報に基づき、ベンダIDがROM702に記憶されているベンダ情報と一致するか否かを判別する(ステップS16)。そして、一致すれば(ステップS16でYES)、ROM702に記憶されている製品情報のなかにステップS12で取得したデバイスディスクリプタの製品IDと一致するものがあるか否かを判別し(ステップS18)、一致するものがあれば(ステップS18でYES)、USBホストコントローラ708に指示して、その製品情報に対応付けて記憶されているコンフィギュレーションディスクリプタ(この実施形態では例えばコンフィギュレーション#2)を取得し(ステップS20)、ステップS24に進む。
The CPU 701 determines whether or not the vendor ID matches the vendor information stored in the
一方、ステップS12で取得したデバイスディスクリプタのベンダIDがROM702に記憶されているベンダ情報と一致しなければ(ステップS16でNO)、またはROM702に記憶されている製品情報のなかにステップS12で取得したデバイスディスクリプタの製品IDと一致するものがなければ(ステップS18でNO)、CPU701は、USBホストコントローラ708に指示して、1番目のコンフィギュレーションディスクリプタを取得し(ステップS22)、ステップS24に進む。
On the other hand, if the vendor ID of the device descriptor acquired in step S12 does not match the vendor information stored in the ROM 702 (NO in step S16), it is acquired in step S12 in the product information stored in the
ステップS20,S22のコンフィギュレーションディスクリプタの取得では、USBホストコントローラ708は「Get_Descriptor(Configuration)」コマンドを出力し、デバイス内に保持されているコンフィギュレーションディスクリプタの転送を要求する。そして、USBホストコントローラ708は、要求に応じてデバイスから転送されるコンフィギュレーションディスクリプタを取得する。また、コンフィギュレーションの指定は、CPU701がUSBホストコントローラ708に「Set_Configuration(Configuration #N)」コマンドを出力させることによって実現する。ここで、#Nはコンフィギュレーションを識別するための識別情報である。
In the acquisition of the configuration descriptor in steps S20 and S22, the
そして、ステップS24では、USBデバイスとの通信処理が実行され、これはUSBデバイスが外されない間(ステップS26でNO)、継続され、USBデバイスが外されると(ステップS26でYES)、このルーチンを終了する。 In step S24, communication processing with the USB device is executed, and this is continued while the USB device is not removed (NO in step S26). When the USB device is removed (YES in step S26), this routine is executed. Exit.
以上の手順により、図1に示すようにフォトプリンタ10にUSBユニット80が接続されると、USBホストコントローラ708は2番目のコンフィギュレーションディスクリプタ#2を取得する。その結果、CPU701は、ODD13とテレビ受像機90を接続可能な構成とを備えたUSBユニット80が接続されたことを認識することとなる。
With the above procedure, when the
以上説明したように、この実施形態によれば、USBユニット80において、テレビ受像機90を接続可能な構成についての情報は、ROM807に記憶されているコンフィギュレーションディスクリプタのうち、1番目のコンフィギュレーションディスクリプタには記述されていない。したがって、USBユニット80が、接続されたUSBデバイスを1番目のコンフィギュレーションディスクリプタに基づき制御するような汎用のパーソナルコンピュータに接続された場合には、テレビ受像機90を接続可能な構成についての情報が取得されない。よって、USBユニット80が不明なデバイスとして認識されることはない。その結果、「不明なデバイスが接続されました。ドライバをインストールしてください。」などのメッセージが表示されてユーザに煩わしい思いをさせるような事態を、簡易な構成で未然に防止することができる。
As described above, according to this embodiment, in the
また、この実施形態によれば、USBユニット80において、テレビ受像機90を接続可能な構成についての情報は、ROM807に記憶されているコンフィギュレーションディスクリプタのうち、2番目のコンフィギュレーションディスクリプタに記述されている。したがって、そのコンフィギュレーションディスクリプタに基づき制御する専用のホスト装置に接続された場合には、テレビ受像機90が有効に利用されることとなる。
Further, according to this embodiment, in the
また、この実施形態によれば、フォトプリンタ10において、USB外部ソケット17にUSBユニット80が接続されると、フォトプリンタ10とUSBユニット80との間で通信が行われる。そして、ROM807のデバイスディスクリプタのベンダーIDの情報が、ROM702に記憶されているベンダ情報と一致し、かつ、製品IDの情報がROM702に記憶されている製品情報に一致する。したがって、2番目のコンフィギュレーションディスクリプタに基づき、USBユニット80が制御される。これによって、テレビ受像機90を有効に利用できる。
According to this embodiment, in the
なお、本発明は上記した実施形態に限定されるものではなく、その趣旨を逸脱しない限りにおいて上述したもの以外に種々の変更を行うことが可能である。例えば、上記実施形態では、1番目のコンフィギュレーションディスクリプタに記述するデバイスとしてODD13を備えているが、これに限られず、USBデバイスとして標準的に設計される汎用デバイス、すなわちパーソナルコンピュータのOSで標準的にサポートされているデバイスであればよい。例えば、USB規格におけるマスストレージクラスに属するバルク転送の記憶装置やマウスなどのヒューマンインターフェースデバイスなどが挙げられる。
The present invention is not limited to the above-described embodiment, and various modifications other than those described above can be made without departing from the spirit of the present invention. For example, in the above-described embodiment, the
また、上記実施形態では、1番目以外のコンフィギュレーションディスクリプタに記述するデバイスとしてテレビ受像機90を接続する構成としているが、これに限られず、汎用デバイス以外の専用デバイス、すなわちパーソナルコンピュータのOSで標準的にサポートされていないデバイスであればよい。例えば、オーディオ、プリンタやカメラなどが挙げられる。
In the above embodiment, the
また、上記実施形態では、1番目のコンフィギュレーションディスクリプタに記述する汎用デバイスとしてODD13、1番目以外のコンフィギュレーションディスクリプタに記述する専用デバイスとしてテレビ受像機90のそれぞれ1個を備えているが、デバイスの個数は1個に限られず、一方または両方が複数であってもよい。例えば、図5に示す1番目のコンフィギュレーションディスクリプタには、インタフェースの数として汎用デバイス接続部の数を記述し、図6に示す2番目のコンフィギュレーションディスクリプタには、インタフェースの数として汎用デバイス接続部および専用デバイス接続部の合計数を記述しておけばよい。
In the above embodiment, the
10…フォトプリンタ(ホスト装置)、13…ODD(汎用デバイス接続部)、17…USB外部ソケット(ホスト側USB端子)、701…CPU(ホストコントローラ)、702…ROM(ホスト記憶手段)、708…USBホストコントローラ(ホストコントローラ)、80…USBユニット(デバイス制御装置)、801…USB外部ソケット(デバイス側USB端子)、802…USBデバイスコントローラ(デバイスコントローラ)、806…CPU(デバイスコントローラ)、807…ROM(デバイス記憶手段)、815…RCAビデオ端子(専用デバイス接続部)、90…テレビ受像機(専用デバイス)、DC…光ディスク(汎用デバイス)
DESCRIPTION OF
Claims (3)
前記汎用デバイス以外の専用デバイスをUSBデバイスとして接続するための専用デバイス接続部と、
ホスト装置を接続するためのデバイス側USB端子と、
前記汎用デバイス接続部に接続された前記汎用デバイスおよび前記専用デバイス接続部に接続された前記専用デバイスを制御するとともに、前記デバイス側USB端子に接続された前記ホスト装置との通信を制御するデバイスコントローラと、
前記デバイスコントローラに関する情報が記述されたデバイスディスクリプタとコンフィギュレーションに関する情報が記述されたコンフィギュレーションディスクリプタとを記憶するデバイス記憶手段と
を備え、
前記デバイスディスクリプタには、複数のコンフィギュレーションディスクリプタを有する旨の情報が記述され、
前記専用デバイスに関する情報は、1番目以外のコンフィギュレーションディスクリプタに記述されており、1番目のコンフィギュレーションディスクリプタには記述されていない
ことを特徴とするデバイス制御装置。 A general-purpose device connection unit for connecting a general-purpose device designed as a standard USB device;
A dedicated device connection unit for connecting a dedicated device other than the general-purpose device as a USB device;
A device-side USB terminal for connecting a host device;
A device controller that controls the general-purpose device connected to the general-purpose device connection unit and the dedicated device connected to the special-purpose device connection unit, and controls communication with the host device connected to the device-side USB terminal When,
Device storage means for storing a device descriptor in which information on the device controller is described and a configuration descriptor in which information on the configuration is described;
The device descriptor describes information indicating that it has a plurality of configuration descriptors,
Information about the dedicated device is described in a configuration descriptor other than the first, and is not described in the first configuration descriptor.
前記デバイスディスクリプタの製品IDには前記専用デバイスに対応して設定された情報が記述され、
前記専用デバイスに関する情報は、前記製品IDの情報に対応する特定のコンフィギュレーションディスクリプタに記述されている
請求項1記載のデバイス制御装置。 Unique information is described in the vendor ID of the device descriptor,
Information set for the dedicated device is described in the product ID of the device descriptor,
The device control apparatus according to claim 1, wherein the information related to the dedicated device is described in a specific configuration descriptor corresponding to the product ID information.
前記ホスト側USB端子に接続されたUSBデバイスとの通信を制御するホストコントローラと、
固有のベンダ情報、特定の製品情報および前記製品情報に対応する前記特定のコンフィギュレーションディスクリプタの情報を記憶するホスト記憶手段と
を備え、
前記ホストコントローラは、前記ホスト側USB端子にUSBデバイスが接続されると該USBデバイスと通信を行い、前記デバイスディスクリプタのベンダーIDの情報が前記ホスト記憶手段に記憶されている前記ベンダ情報と一致し、かつ、前記デバイスディスクリプタの製品IDの情報が前記ホスト記憶手段に記憶されている前記製品情報に含まれているときは、その製品情報に対応する前記特定のコンフィギュレーションディスクリプタに基づき、前記USBデバイスを制御する
ことを特徴とするホスト装置。 A host-side USB terminal for connecting the device control apparatus according to claim 2 as a USB device;
A host controller that controls communication with a USB device connected to the host-side USB terminal;
Host storage means for storing unique vendor information, specific product information, and information of the specific configuration descriptor corresponding to the product information,
The host controller communicates with the USB device when the USB device is connected to the host-side USB terminal, and the vendor ID information of the device descriptor matches the vendor information stored in the host storage unit. And when the product ID information of the device descriptor is included in the product information stored in the host storage means, the USB device is based on the specific configuration descriptor corresponding to the product information. A host device characterized by controlling the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007338595A JP2009157863A (en) | 2007-12-28 | 2007-12-28 | Device controller and host device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007338595A JP2009157863A (en) | 2007-12-28 | 2007-12-28 | Device controller and host device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009157863A true JP2009157863A (en) | 2009-07-16 |
Family
ID=40961768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007338595A Withdrawn JP2009157863A (en) | 2007-12-28 | 2007-12-28 | Device controller and host device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009157863A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011176936A (en) * | 2010-02-24 | 2011-09-08 | Kyocera Corp | Portable electronic equipment and equipment system |
JP2013545630A (en) * | 2010-10-12 | 2013-12-26 | ダイモ・ビーブイビーエイ | Label printer |
-
2007
- 2007-12-28 JP JP2007338595A patent/JP2009157863A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011176936A (en) * | 2010-02-24 | 2011-09-08 | Kyocera Corp | Portable electronic equipment and equipment system |
JP2013545630A (en) * | 2010-10-12 | 2013-12-26 | ダイモ・ビーブイビーエイ | Label printer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100558561C (en) | Printing equipment and printer control method | |
JP4241847B2 (en) | Television connection detection device and image display device | |
US7293187B2 (en) | Image sensing apparatus and power managing method | |
JP2011121207A (en) | Printing apparatus and method of controlling the same | |
US9596370B2 (en) | Image processing apparatus, image processing method, and storage medium | |
JP2009151415A (en) | Printer and usb device recognizing method | |
JP2003244465A (en) | Image processor, image processing method and storage medium | |
JP2009157863A (en) | Device controller and host device | |
CN102198767A (en) | Printing apparatus, printing apparatus control method, and control program and control apparatus for printing apparatus | |
JP2006180324A (en) | Digital multifunctional device and printer device | |
JP2008122772A (en) | Image display device, image display method, and its program | |
JP4551643B2 (en) | USB printer and USB scanner | |
JP4615646B2 (en) | Printer | |
JP4688042B2 (en) | Printer and printer print layout setting method | |
JP2007080090A (en) | Image recording system, setting method and setting program for image recording device, and storage medium | |
JP2003246119A (en) | Image recorder and its controlling method | |
US20060067723A1 (en) | Operator module configured for detachable attachment to an imaging apparatus | |
JP2009163289A (en) | Printer and method for connecting usb device | |
JP2006095889A (en) | Recording device, recording system and recording control method | |
JP4242798B2 (en) | USB storage device and control device thereof | |
JP2007219909A (en) | Network-adapted information processor, setting method, and program thereof | |
JP2003303083A (en) | Information processor and program which it executes | |
JP2006252183A (en) | Printer, printing method, printing program and recording medium | |
JP2010061275A (en) | Image forming system, control method, and program | |
JP2009116724A (en) | Data processor, and control method for electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20110301 |