JP4432191B2 - USB system, sub-host management device, hub device, and USB host selector - Google Patents

USB system, sub-host management device, hub device, and USB host selector Download PDF

Info

Publication number
JP4432191B2
JP4432191B2 JP2000068445A JP2000068445A JP4432191B2 JP 4432191 B2 JP4432191 B2 JP 4432191B2 JP 2000068445 A JP2000068445 A JP 2000068445A JP 2000068445 A JP2000068445 A JP 2000068445A JP 4432191 B2 JP4432191 B2 JP 4432191B2
Authority
JP
Japan
Prior art keywords
host
sub
main
usb
data
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
JP2000068445A
Other languages
Japanese (ja)
Other versions
JP2001256172A (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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2000068445A priority Critical patent/JP4432191B2/en
Publication of JP2001256172A publication Critical patent/JP2001256172A/en
Application granted granted Critical
Publication of JP4432191B2 publication Critical patent/JP4432191B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、例えばパーソナルコンピュータとその周辺機器とを接続するために使用されるインターフェイスであるUSB(Universal Serial Bus)を用いて構成されるUSBシステムに関する。
【0002】
【従来の技術】
USBは、例えばパーソナルコンピュータをホストとし、その周辺機器であるキーボードやマウス,プリンタなどをデバイスとして、ホストとデバイスとの間をハブを介して接続して使用するために標準化されたシリアル通信のインターフェイスである。このようにUSBを用いて構成される1つのシステムにおいては、ホストは1つだけ存在し、そのホストが複数のデバイスとの間の通信を全て管理するようになっている。
【0003】
例えば、図9に示すように、システム(A)においては、パーソナルコンピュータ(パソコン)(A)1がホストであり、ハブ(A)2のアップストリームポートに接続されている。そのハブ(A)2のダウンストリームポートには、デバイスたる携帯電話装置(A)3,プリンタ4及びイメージスキャナ5が接続されている。
【0004】
また、システム(B)においては、ホストたるパソコン(B)6がハブ(B)7のアップストリームポートに接続されており、ハブ(B)7のダウンストリームポートには、携帯電話装置(B)8が接続されている。また、システム(C)においては、ホストたるパソコン(C)9がハブ(C)10のアップストリームポートに接続されており、ハブ(C)10のダウンストリームポートには、携帯電話装置(C)11とCCDカメラ12が接続されている。
【0005】
【発明が解決しようとする課題】
以上のような構成では、システム(A)におけるプリンタ4及びイメージスキャナ5を使用できるのは、当然にシステム(A)のホストであるパソコン(A)1だけであり、パソコン(B)6やパソコン(C)9はそれらを使用することができない。パソコン(B)6や(C)9がそれらのデバイスを使用する必要がある場合には、プリンタ4及びイメージスキャナ5をハブ(B)7やハブ(C)10のダウンストリームポートに接続するように切り換えなければならない。
【0006】
また、システム(C)におけるCCDカメラ12を使用できるのは同様にパソコン(C)9だけであって、パソコン(A)1や(B)6は、CCDカメラ12の接続をハブ(A)2や(B)7に切り換えなければ使用することができない。
【0007】
本発明は上記事情に鑑みてなされたものであり、その目的は、各ホストが夫々使用しているデバイスを、接続を切り換えること無く、必要に応じて他のホストも使用することができるUSBシステム、及びそのUSBシステムに使用されるサブホスト管理デバイス,ハブ装置並びにUSBホストセレクタを提供することにある。
【0008】
【課題を解決するための手段】
請求項1記載のUSBシステムによれば、1つ以上のデバイスの何れかを選択的に使用する複数のホストの内、何れか1つが実質的なシステムのホストであるメインホストとなり、その他のホストはサブホストとして位置付けられる。そして、メインホストは、各サブホストによりデバイスに対して送信されるデータまたは信号を一旦受付けてから、それらを対応するデバイスに対して転送する。また、メインホストは、デバイスから対応するサブホストに対して送信されるデータまたは信号を一旦受付けると対応するサブホストに対して転送することで、各サブホストによるデバイスの使用が排他的に行われるように制御する。
【0009】
即ち、見掛け上は1つのシステムにおいて複数のホストが存在することになるが、それらのホストの内1つがメインホストとなって他のサブホストによるデバイスの使用が排他的に行われるように制御することで、サブホストは、メインホストから見るとデバイスの1つとして認識される。従って、複数のホストが、1つのデバイスを時分割的に使用することが可能となり、従来のように各ホストが夫々属しているシステムのハブにデバイスを繋ぎ替える必要が無く、利便性を向上させることができる。
また、サブホスト管理用デバイスは、各サブホストによりデバイスに対して送信されるデータや信号を受信すると、それらを、メインホストによって定められる送信タイミングに基づき当該メインホストに送信する。また、デバイスよりメインホストを介して各サブホストに送信される信号やデータを中継する。更に、下位側ポートの1つにそのサブホスト管理用デバイスが接続されると共に、上位側ポートに前記メインホストが接続されるハブを備える。
【0010】
請求項2記載のUSBシステムによれば、メインホストは、自身もデバイスを必要に応じて使用するので、デバイスの使用形態をより多様に設定することができる。
【0012】
請求項3記載のUSBシステムによれば、サブホスト管理用デバイスに、メインホストに対しデバイスとして通信を行うためのメイン側インターフェイス部と、各サブホストの夫々に対しデバイスとして通信を行うための複数のサブ側インターフェイス部と、両者間で転送されるデータまたは信号を中継する中継用制御部とを備えて構成する。
【0013】
即ち、メインホスト及びサブホストは、夫々が識別処理(エニュメレーション)を行うことで、メイン側インターフェイス部とサブ側インターフェイス部とにデバイスアドレスやエンドポイントアドレスを夫々独自に設定する。従って、各サブホストは、サブ側インターフェイス部に対しては(主観的に)ホストとしてアクセスすることになる。また、メインホストも各サブホストに対するデータの転送等を自身がメイン側インターフェイス部に設定したアドレスによって管理することができる。
【0014】
そして、中継用制御部は、各サブホストとデバイスとの間で通信されるデータ等をメインホストにより管理されるタイミングで中継転送する。従って、メインホストは、各サブホストのデバイスの使用権の調停や両者間のデータ転送などを容易に行うことができる。
【0015】
請求項記載のUSBシステムによれば、サブホスト管理用デバイスの中継用制御部は、各サブホストより送信されるデータをバッファに蓄積し、蓄積されたデータに識別用のヘッダを付しメインホストに一括して送信する。一方、メインホストは、サブホスト管理用デバイスより送信されたデータに付されているヘッダに基づき対応するデバイスに夫々データを送信し、また、デバイスより送信されたデータを対応するサブホストに送信する。従って、データに付するヘッダを適宜設定することによって、複数のサブホストに関するデータ転送等の管理を高い自由度で行うことができる。
【0016】
請求項記載のUSBシステムによれば、サブホスト管理用デバイスの中継用制御部は、メインホストによって各サブ側インターフェイス部にも夫々アドレスが設定されるように制御し、サブホストとメインホストとによって各サブ側インターフェイス部に夫々設定されるアドレスにより両者間の中継を制御する。
【0017】
即ち、メインホストから見た場合、サブホスト管理用デバイスの各サブ側インターフェイス部は夫々独立したロジカルデバイスとして認識され、夫々に異なるアドレスが設定される。即ち、各サブ側インターフェイス部には、メインホスト及びサブホストによって夫々設定されたアドレスが同時に存在することになる。そして、中継用制御部が、夫々設定されたアドレスによりメイン−サブホスト間の中継を制御することで、複数のサブホストに関するデータ転送等を管理することができる。
【0018】
請求項記載のUSBシステムによれば、信号検出手段は、各デバイスよりメインホストに対して送信されるウエイクアップ信号を検出し、信号送信手段は、検出されたウエイクアップ信号を出力したデバイスを使用しているホストがサブホストである場合は、当該サブホストに対してウエイクアップ信号を別途送信する。
【0019】
即ち、USBシステムのホストやデバイスは、所定時間の間バス上においてデータや信号の転送が行われなかった場合には、消費電力を低減するためにサスペンドモード(所謂スリープモード)に移行する。そして、例えば何れかのデバイスに対して外部より何らかの操作や信号の受信があると、当該デバイスはサスペンドモードを抜けて起動される。それから、ホストに対してもサスペンドモードを抜けてアクティブとなるようにウエイクアップ(リモートウエイクアップ)信号を送信する。
【0020】
従って、上記した請求項1乃至の何れかに記載したように見掛け上のホストが複数存在するUSBシステムでは、何れかのデバイスがウエイクアップ信号を送信すると、そのウエイクアップ信号は先ずメインホストに送信され、起動したメインホストが、サブホストに対してウエイクアップ信号を送信する、という手順を経る必要がある。このため、デバイスが起動したいホストが実際に起動されるまでにより長い時間を要することになる。
【0021】
これに対して、請求項記載のUSBシステムでは、ウエイクアップ信号を出力したデバイスを使用しているホストがサブホストである場合は、そのサブホストに対してウエイクアップ信号を別途直接送信するので、サブホストの起動をより速く行うことができる。従って、システム全体としての応答時間を短縮することができる。
【0022】
請求項記載のハブ装置によれば、請求項記載のサブホスト管理用デバイスと、請求項1乃至6の何れかに記載のUSBシステムにおいて使用されるハブとを同一の筐体内に配置して構成されるので、ハブのその他の下位側ポートにデバイスを接続し、サブホスト管理用デバイスの上位側ポートにサブホストを接続することで、請求項乃至の何れかに記載のUSBシステムを容易に構成することができる。
【0023】
請求項記載のハブ装置によれば、メインホストをも同一の筐体内に配置して構成されるので、ユーザは、メインホストを自ら用意してハブ装置に接続する必要が無く、ハブ装置には、その下位側ポートに接続されているデバイスを共有して使用する必要がある(サブ)ホストだけを接続してシステムを構成すれば良い。従って、汎用性を向上させることができる。
【0024】
請求項1記載のUSBホストセレクタによれば、メインホスト選択手段は、現在のメインホストが使用不能の状態となったことを検出すると、サブホストの内の何れか1つが新たなメインホストとなるようにデータまたは信号の流れを切り換える。
【0025】
即ち、USBシステムでは、1つのホストが全ての通信を管理するようになっているため、そのホストが例えば故障するなどして機能が停止するとシステム全体の機能が停止する。従って、上述した本発明のような構成では、メインホストの機能が停止すると、それ以外のサブホストもデバイスが全く使用できなくなってしまう。
【0026】
そこで、請求項1記載のUSBホストセレクタは、現在のメインホストが使用不能の状態になると他のサブホストの内の何れか1つが新たなメインホストとなるように選択するので、他のサブホストは、引き続きデバイスを使用することが可能となる。従って、システムの信頼性を向上させることができる。
【0027】
請求項1記載のUSBホストセレクタによれば、サブホスト管理用デバイスは、各ホストに対応して配置される複数のホスト側ハブの一方の下位側ポートと、下位側ポートに全てのデバイスが接続されるデバイス側ハブの上位側ポートとの間に配置される。そして、メインホスト選択手段は、複数のホスト側ハブ夫々の他方の下位側ポートとデバイス側ハブの上位側ポートとの間に配置され、複数の前記下位側ポートの何れか1つを所定の条件に従って前記上位側ポートに選択的に接続する。
【0028】
即ち、デバイス側ハブの上位側(アップストリーム)ポートに接続されたホスト側ハブに対応するホストは、前記デバイス側ハブの下位側(ダウンストリーム)ポートに接続されている全てのデバイスと直接通信することが可能となるので、メインホストとして機能することができる。また、その他のホストは、夫々対応するホスト側ハブを介してサブホスト管理用デバイスに接続されるので、当該管理用デバイスを介しシステムのデバイスとして位置付けられる。従って、新たなメインホストの選択を簡単な構成によって行うことができる。
【0029】
【発明の実施の形態】
(第1実施例)
以下、本発明の第1実施例について図1及び図2を参照して説明する。電気的構成の機能ブロックを示す図1において、USBシステム21には、一般的なシステムでは夫々がUSBホストとなる4つのパソコン(A)22〜(D)25が存在している。また、USBデバイスとしては、イメージスキャナ26,プリンタ27,携帯電話装置(A)28及び(B)29並びにCCDカメラ30などがある。そして、これらのホスト及びデバイスは、コミュニケータ(ハブ装置)31を介して接続され、USBインターフェイスによって通信するようになっている。
【0030】
但し、後述するように、パソコン(A)22〜(D)25の内、パソコン(A)22がUSBシステム21の実質的なホストとして機能するメインホストとなり、他のパソコン(B)23〜(D)25はサブホストとして位置付けられ、メインホストのパソコン(A)22から見ると夫々がデバイスの1つとして取り扱われることになる。
【0031】
例えば、パソコン(A)22は、ハードウエアとしてディスプレイやキーボードからなる表示・入力部22a,CPUやROM,RAMなどからなる制御部22b,USBホストとして通信を行うためのUSBインターフェイス用LSIであるホスト22cなどを備えている。
【0032】
また、ソフトウエアとしては、パーソナルコンピュータ本来の機能を制御するための制御ソフト22d,USBデバイスを使用するためのUSBアプリケーション(アプリ)22e,ホスト22cを制御するためのホストドライバ22f及び他のサブホストによるデバイスの使用を管理するためのサブホストコントロール22gなどが用意されている。尚、他のパソコン(B)23〜(D)25も基本的には同様の構成であるが、サブホストコントロール22gに相当するソフトウエアは備えていない。
【0033】
一方、デバイスであるイメージスキャナ26は、ハードウエアとして画像データをスキャンして入力するためのデータ入力部26a,そのデータ入力部26aを制御するCPUなどから構成される制御部26b,USBデバイスとして通信を行うためのUSBインターフェイス用LSIであるファンクション26cなどを備えている。また、ソフトウエアとして、本体制御用の制御ソフト26dと、ファンクション26cを制御するためのファンクションドライバ26eとを備えている。
【0034】
プリンタ27は、ハードウエアとして印字部27a,その印字部27aを制御するための制御部27b,USBデバイスとして通信を行うためのファンクション27cなどを備えている。また、ソフトウエアとして、本体制御用の制御ソフト27dと、ファンクション27cを制御するためのファンクションドライバ27eとを備えている。
【0035】
携帯電話装置(A)28は、ハードウエアとして無線通信を行うためのRF (高周波)部28a,LCDや操作キーなどからなる表示・入力部28b,RF部28a及び表示・入力部28bを制御するための制御部28c,USBデバイスとして通信を行うためのファンクション28dなどを備えている。また、ソフトウエアとして、本体制御用の制御ソフト28eと、ファンクション28dを制御するためのファンクションドライバ28fとを備えている。また、携帯電話装置(B)29も同様の構成である。
【0036】
CCDカメラ30は、ハードウエアとして複数のCCDからなるCCD部30a,そのCCD部30aを制御するための制御部30b,USBデバイスとして通信を行うためのファンクション30cなどを備えている。また、ソフトウエアとして、本体制御用の制御ソフト30dと、ファンクション30cを制御するためのファンクションドライバ30eとを備えている。
【0037】
コミュニケータ31は、ハブ(HUB)32と、マルチファンクション部(サブホスト管理用デバイス)33とで構成されている。マルチファンクション部33は、ハードウエアとして上位側(メインホスト側)のファンクション(メイン側USBインターフェイス部)33aと、下位側(サブホスト側)の3つのファンクション(サブ側USBインターフェイス部)33b〜33dと、これらのファンクション33a〜33dを制御するための制御部(中継用制御部)33eなどを備えている。また、ソフトウエアとして、本体制御用の制御ソフト33fと、各ファンクション33a〜33dを制御するためのファンクションドライバ33gとを備えている。
【0038】
そして、ハブ32の6つの下位側ポート(ダウンストリームポート)には、イメージスキャナ26,プリンタ27,携帯電話装置(A)28及び(B)29並びにCCDカメラ30夫々のファンクション26c,27c,28d,29d,30cが接続されていると共に、マルチファンクション部33の上位側ファンクション33aが接続されている。また、ハブ32の上位側ポート(アップストリームポート)には、メインホストであるパソコン(A)22のホスト22cが接続されている。
【0039】
一方、マルチファンクション部33の下位側ファンクション33b〜33dには、サブホストであるパソコン(B)23〜(C)25のホスト23c〜25cが夫々接続されている。即ち、マルチファンクション部33の上位側ファンクション33aは、ハブ32を介してパソコン(A)22に対してデバイスとして機能するようになっている。
【0040】
また、下位側ファンクション33b〜33dは、パソコン(B)23〜(C)25の夫々に対してデバイスとして機能するようになっており、上位側ファンクション33aと、下位側ファンクション33b〜33dとのインターフェイスを制御部33eが行うようになっている。
【0041】
制御部33eは、内部に各ファンクション33b〜33dに対応するバッファ(FIFO:First In First Out) を備えており、パソコン(B)23〜(D)25がファンクション33b〜33dに対して送信したデータは、制御部33eに転送されて夫々のバッファに蓄積されるようになっている。
【0042】
次に、本実施例の作用について図2をも参照して説明する。図2は、USBデバイスのステート・ダイアグラムである。
▲1▼アタッチド(Attached)
USBデバイスがUSBシステムのハブに接続(プラグ・イン)された直後の初期状態である。ホスト側には、ハブを介して新たに接続されたデバイスがあることが通知される。
▲2▼パワード(Powered)
USBデバイスが、接続されたハブを介して電源の供給を受けるステートである。ホストが、このステートにおいてデバイスにリセット信号を与えることで、ステートは次の“デフォルト”に移行する。
▲3▼デフォルト(Default)
デバイスは、リセットが解除されると“デフォルト”となり、デバイスが有している全てのレジスタはリセットされた状態にある。そして、デバイスは、エンドポイント0によってデフォルト・アドレスや、バスのアクセス頻度,バス幅や最大パケットサイズなどのコンフィギュレーション情報をホストに転送する。
【0043】
▲4▼アドレス(Address)
続いて、各デバイスには、ホストによってユニークなアドレスが夫々割り付けられる。
▲5▼コンフィギュアド(Configured)
ホストは、各デバイスより得たコンフィギュレーション情報に基づいて各デバイスがどのように使用されるのかを認識すると、各デバイスに対してコンフィギュレーション値を設定する。すると、各デバイスはホストによって使用可能な状態となる。
【0044】
以上の▲1▼〜▲5▼は、ホスト側から見るとエニュメレーション(識別)というプロセスとなり、USBシステムに対して新たなデバイスが接続された場合、または、システムを構成しているデバイスが取り除かれる毎に実行される。そして、ホストは、各デバイスに行った設定に基づいてデータの転送タイミング等を管理するようになっている。
【0045】
また、以上の▲2▼〜▲5▼のステートの何れか、或いは、エニュメレーションの終了後における通常の使用状態においては、デバイスは次の▲6▼のステートに移行する場合がある。
▲6▼サスペンデッド(Suspended)
所定期間の間、バス上においてデータや信号の転送が全く無い場合、デバイスはサスペンド・モードとなり、アドレスやコンフィギュレーション情報などの内部情報を保持した上で、消費電力を低減する状態となる。また、バス上において何らかのデータや信号の転送が発生すると、デバイスはサスペンド・モードを抜けて起動しアクティブとなる。
【0046】
次に、図1に示すUSBシステム21の場合について、具体的に説明する。メインホストであるパソコン(A)22は、コミュニケータ31のハブ32を介して、デバイスであるメージスキャナ26,プリンタ27,携帯電話装置(A)28及び(B)29,CCDカメラ30,マルチファンクション部33についてエニュメレーションを行う。
【0047】
この時、マルチファンクション部33については、パソコン(A)22からは上位側ファンクション33aのみがロジカルデバイスとして認識される。また、パソコン(B)23〜(D)25は、マルチファンクション部33の下位側ファンクション33b〜33dを夫々のデバイスとしてエニュメレーションを行う。そして、制御部33eは、パソコン(A)22によるエニュメレーションの際に、ファンクション33b〜33dに関するデータ識別用のヘッダ情報を渡すようになっている。
【0048】
即ち、制御部33eは、パソコン(A)22によってファンクション33aに対するデータ送信要求があった場合に、その時点で内部の各バッファに蓄積されているデータを1つにまとめると共に、識別用のヘッダを付してファンクション33aに渡すようになっている。従って、このヘッダ情報によって、パソコン (A)22は、マルチファンクション部33にファンクション33b〜33dが存在すること、及びファンクション33aより転送される一連のデータのどの部分がファンクション33b〜33dの夫々のデータであるのかを判別することが可能となる。
【0049】
例えば、パソコン(A)22は、コンフィギュレーションにおいて、マルチファンクション部33のデバイスアドレスを“6”に設定し、ファンクション33aのエンドポイントアドレスを“1”に設定したとする。一方、各パソコン(B)23〜(D)25は、ファンクション33b〜33dを夫々唯一のデバイスとして、何れもデバイスアドレスを“1”,エンドポイントアドレスを“1”に設定したとする。このような場合でも、パソコン(A)22は、上述のようにファンクション33aだけをロジカルデバイスとして認識するので、マルチファンクション部33を1つのデバイスとして扱うことになる。
【0050】
また、パソコン(A)22からは、ファンクション33a,33b〜33dを介して各パソコン(B)23〜(D)25に対し、イメージスキャナ26,プリンタ27,携帯電話装置(A)28及び(B)29,CCDカメラ30に関するコンフィギュレーション情報を与える。すると、各パソコン(B)23〜(D)25は、USBシステム21にどのようなデバイスが接続されているのかを知ることができる。
【0051】
ここで、例えば、パソコン(B)23が携帯電話装置(A)28を使用する場合の例について説明する。パソコン(B)23は、コンフィギュレーション情報に基づき、ファンクション33bに対して携帯電話装置(A)28を使用するための要求を出力する。すると、その使用要求は、ファンクション33bを介して制御部33eに転送されてバッファに蓄積される。
【0052】
そして、パソコン(A)22によって、マルチファンクション部33のファンクション33aに対するデータ送信要求があると、ファンクション33aは、制御部33eのバッファに蓄積されているデータにヘッダを付して送信する。すると、そのデータはハブ32を介してパソコン(A)22に転送される。
【0053】
そして、パソコン(A)22は、データに付されているヘッダによってファンクション33b(パソコン(B)23)による要求であり、その要求の内容が、携帯電話装置(A)28(例えばアドレス“3−1”)に対する使用要求であると判別すると、その時点で携帯電話装置(A)28を使用しているサブホストがなければ、携帯電話装置(A)28の使用権をパソコン(B)23に設定する。
【0054】
以降、パソコン(B)23が携帯電話装置(A)28によって送信しようとするデータは、同様にして一旦パソコン(A)22に送られ、そこから携帯電話装置(A)28に送信される。そして、データは、携帯電話装置(A)28のRF部28aにより電波信号として図示しない基地局に送信される。
【0055】
また、この状態で、携帯電話装置(A)28に通話先からの受信データが発生した場合、携帯電話装置(A)28は受信したデータをパソコン(A)22に転送する。すると、パソコン(A)22は、転送されたデータを携帯電話装置(A)28の使用権が設定されているパソコン(B)23(ファンクション33b)に転送する。即ち、サブホストであるパソコン(B)23〜(D)25と各デバイスとの間におけるデータや信号の転送は、全てメインホストであるパソコン (A)22を介して行われる。
【0056】
そして、他のサブホスト:パソコン(C)24,(D)25が、例えばプリンタ27やCCDカメラ30などを使用する時も、上記と同様にパソコン(A)22によって使用権の管理が行われ、パソコン(A)22を介してデータや信号の転送が行われる。尚、パソコン(A)22は、他のパソコン(B)23〜(D)25によるデバイスの使用を管理するだけでなく、自身もUSBアプリ22 を有しているので、必要に応じて何れかのデバイスを使用することが可能であることはいうまでもない。
【0057】
以上のように本実施例によれば、パソコン(A)22は、他のパソコン(B)23〜(D)25により複数のUSBデバイスに対して夫々送信されるデータまたは信号を一旦受付けてから、それらを対応するデバイスに対して転送する。また、各デバイスから対応するパソコン(B)23〜(D)25に対して送信されるデータまたは信号を一旦受付けるとそれらに対して転送することで、各パソコン(B)23〜(D)25による各デバイスの使用を排他的に行うようにした。
【0058】
即ち、見掛け上は1つのUSBシステム21において複数のホストが存在する場合でも、それらの内1つがメインホストとなって他のサブホストによるデバイスの使用を管理することで、サブホストは、メインホストから見るとデバイスの1つとして認識される。従って、複数のホストが、1つのデバイスを時分割的に使用することが可能となり、従来のように各ホストが夫々属しているシステムのハブにデバイスを繋ぎ替える必要が無く、利便性を向上させることができる。また、パソコン(A)22は、自身も複数のデバイスの内の何れかを選択的に使用するので、デバイスの使用形態をより多様に設定することができる。
【0059】
そして、本実施例によれば、パソコン(A)22は、マルチファンクション部33のファンクション33aにホストとしてアクセスを行い、また、パソコン (B)23〜(D)25は、ファンクション33b〜33dに夫々自身がホストとしてアクセスを行うように構成し、制御部33eが、ファンクション33aと33b〜33dとの間のデータ等の転送を中継するようにした。
【0060】
即ち、マルチファンクション部33は、何れのパソコン(A)22〜(D)25に対してもデバイスとして機能し、パソコン(B)23〜(D)25と複数のデバイスとの間で通信されるデータ等をパソコン(A)22により管理されるタイミングで中継転送する。従って、パソコン(A)22は、各パソコン(B)23〜(D)25によるデバイスの使用権の調停を容易に行うことができる。
【0061】
また、本実施例によれば、マルチファンクション部33の制御部33eは、各パソコン(B)23〜(D)25より送信されるデータをバッファに蓄積し、蓄積されたデータに識別用のヘッダを付してパソコン(A)22に一括して送信し、パソコン(A)22は、マルチファンクション部33より送信されたデータに付されているヘッダに基づき対応するデバイスに夫々データを送信し、各デバイスより送信されたデータを対応するサブホストに送信するようにしたので、データに付するヘッダの設定によって自由度の高い管理を行うことができる。
【0062】
(第2実施例)
図3は本発明の第2実施例を示すものであり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。第2実施例では、コミュニケータ31に代わるコミュニケータ(ハブ装置)34が配置されている。コミュニケータ34には、BLUETOOTH インターフェイス(I/F)部35,IrDAインターフェイス部36及びSIMカードインターフェイス部37の3つのI/F部が設けられている。これらのI/F部35〜37は、夫々USBインターフェイス部(ファンクションに相当するもの,図示せず)をも内蔵しており、夫々のUSBインターフェイス部を介してマルチファンクション部(サブホスト管理用デバイス)33Aの制御部33Aeに接続されている。
【0063】
即ち、BLUETOOTH インターフェイス部35は、外部のホストまたはデバイスとは電波信号によって通信し、内部においてUSBとの信号変換を行って制御部33Aeとの間でデータ等の転送を行うようになっている。また、IrDAインターフェイス部36は、外部のホストまたはデバイスとは赤外線信号によって通信し、内部で同様の信号変換を行って制御部33Aeとの間でデータ等を転送する。また、SIMカードインターフェイス部37は、SIMカードが接続されるコネクタを備えており、SIMカードに対して読み書きするデータについて内部で同様の信号変換を行い制御部33Aeとの間でデータ等を転送する。
【0064】
そして、マルチファンクション部33Aの制御部33Aeは、各I/F部35〜37についてもヘッダに情報を設定するようになっており、これらのI/F部35〜37は、第1実施例におけるファンクション33b〜33dと同様に取扱われる。以上がUSBシステム38を構成している。
【0065】
次に、第2実施例の作用について説明する。例えば、サブホストたるパソコン(C)24が、IrDAインターフェイス部39aを備えているノートパソコン39との間でデータ通信を行う場合を考える。I/F部36のエンドポイントアドレスが例えば“6”であれば、パソコン(C)24は、コンフィギュレーション情報に基づき、I/F部36を使用するための要求をファンクション33cに対して出力する。すると、その使用要求は、更にハブ32を介してパソコン(A)22に転送される。
【0066】
そして、パソコン(A)22は、その要求の内容がI/F部36に対する使用要求であると判別すると、その時点で使用しているサブホストがなければ使用権をパソコン(C)24に設定する。パソコン(C)24は、使用権が設定されると、送信データをファンクション33cに出力する。すると、その送信データはパソコン(A)22に送られてからI/F部36に転送される。
【0067】
I/F部36では、送信データをIrDAの信号フォーマットに変換し、赤外線信号をノートパソコン39に送信する。そして、ノートパソコン39のIrDAインターフェイス部39aがその赤外線信号を受信すると、パソコン(C)24が送信したデータはノートパソコン39に転送される。
【0068】
以上のように構成された第2実施例によれば、コミュニケータ34に、BLUETOOTH インターフェイス部35,IrDAインターフェイス部36及びSIMカードインターフェイス部37を設け、これらのI/F部35〜37を介して通信されるデータをUSBでも取扱えるように変換してマルチファンクション部33Aとの間で転送するようにしたので、USBシステム38に多様な使用形態を設定することができる。
【0069】
(第3実施例)
図4は本発明の第3実施例を示すものであり、第1または第2実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。第2実施例では、コミュニケータ31に代わるコミュニケータ(ハブ装置)40が配置されている。
【0070】
コミュニケータ40には、マルチファンクション部33と共に、インターフェイスI/O部41が内蔵されている。インターフェイスI/O部41は、ファンクション41aを介してハブ32Aの下位側ポートに接続されており、制御部41bには、ファンクション41a及び第2実施例と同様の3つのI/F部35〜37が接続されている。また、インターフェイスI/O部41は、ソフトウエアとして、本体制御用の制御ソフト41cと、ファンクション41aを制御するためのファンクションドライバ41dとを備えている。その他の構成は第1実施例と同様であり、USBシステム42を構成している。
【0071】
次に、第3実施例の作用について説明する。インターフェイスI/O部41は、メインホストたるパソコン(A)22から見ると独立したデバイスの1つである。従って、エニュメレーションにおいて、インターフェイスI/O部41にはマルチファンクション部33とは異なるデバイスアドレスが設定される。
【0072】
例えば、第2実施例と同様に、パソコン(C)24がノートパソコン39との間でデータ通信を行う場合を考えると、パソコン(C)24は、コンフィギュレーション情報に基づきI/F部36を使用するための要求をファンクション33cに対して出力すれば、パソコン(A)22は、第2実施例と同様にしてI/F部36の使用権をパソコン(C)24に設定する。以上のように構成された第3実施例によれば、第2実施例と同様の効果が得られる。
【0073】
(第4実施例)
図5は本発明の第4実施例を示すものであり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。第4実施例では、コミュニケータ31に代わるコミュニケータ(ハブ装置)43が配置されている。そして、第4実施例では、メインホストとしてのパソコン(A)22はコミュニケータ42の外部に存在せず、その代わりに、コミュニケータ43の内部(筐体内)にメインホストとして機能するホスト機能部44が配置され、ハブ32の上位側ポートに接続されている。
【0074】
ホスト機能部44の構成要素は、基本的にはパソコン(A)22の内部構成に対応するものと同様の要素が存在するが、ホスト機能部44はパーソナルコンピュータとして機能するものではなく、メインホストとして機能するために必要な要素44a〜44gのみで構成されており、パソコン(A)22の表示・入力部22aに相当する要素は存在しない。以上がUSBシステム45を構成しているが、本発明の要旨に係る部分の作用は第1実施例と同様である。
【0075】
以上のように構成された第4実施例によれば、コミュニケータ43の内部にメインホストとして機能するホスト機能部44を配置するので、ユーザは、メインホストを自ら用意してハブ装置に接続する必要が無く、コミュニケータ43には、その下位側ポートに接続されているデバイスを共有して使用する必要があるパソコン(B)23〜(D)25だけを接続してシステムを構成すれば良い。従って、汎用性を向上させることができる。
【0076】
(第5実施例)
図6は本発明の第5実施例を示すものであり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。第5実施例は、自動車電話装置を中心とするシステムに適用した場合を示す。ハブ32の下位側ポートには、プリンタ27に代えて、自動車電話装置の無線機46がUSBデバイスとして接続されている。また、携帯電話装置(B)29及びCCDカメラ30は削除されている。
【0077】
無線機46は、ハードウエアとして電波信号により通話やデータ通信を行うための高周波(RF)部46a,CPUやROM,RAMなどからなる制御部46b,USBデバイスとして通信を行うためのUSBインターフェイス用LSIであるファンクション46cなどを備えている。また、ソフトウエアとしては、無線機46の機能を制御するための制御ソフト46d,ファンクション46cを制御するためのファンクションドライバ46eなどが用意されている。
【0078】
一方、マルチファンクション部33のファンクション33cには、サブホストとしてパソコン(C)24に代わるナビゲーション装置47が接続されており、パソコン(D)25は削除されている。ナビゲーション装置47は、ハードウエアとしてディスプレイやテンキーなどからなる表示・入力部47a,CPUやROM,RAMなどからなる制御部47b,CD−ROMより地図データを読み込むためのCD−ROMドライバ47c,USBホストとして通信を行うためのUSBインターフェイス用LSIであるホスト47dなどを備えている。
【0079】
また、ソフトウエアとしては、ナビゲーション装置の機能を制御するための制御ソフト47e,USBデバイスを使用するためのUSBアプリ47f,ホスト47dを制御するためのホストドライバ47gなどが用意されている。
【0080】
そして、ハブ32の上位側ポートには、パソコン(A)22に代わるメインホストとして自動車電話装置のハンドセット48が接続されている。ハンドセット48はハードウエアとしてディスプレイやテンキーなどからなる表示・入力部48a,CPUやROM,RAMなどからなる制御部48b,USBホストとして通信を行うためのUSBインターフェイス用LSIであるホスト48cなどを備えている。
【0081】
また、ソフトウエアとしては、自動車電話装置の機能を制御するための制御ソフト48d,USBデバイスを使用するためのUSBアプリ48e,ホスト48cを制御するためのホストドライバ48f,他のサブホストによるデバイスの使用を管理するためのサブホストコントロール48gなどがなどが用意されている。以上がUSBシステム49を構成している。
【0082】
次に、第5実施例の作用について説明する。ハンドセット48は、メインホストとして、各デバイスのエニュメレーションを行う。そして、例えば、自動車の乗員が自動車電話装置により通話を行う場合には、ハンドセット48の表示・入力部48aにおけるテンキー等を操作することで、オフフックして通話相手の電話番号を入力する。すると、制御部48bはホスト48c,ハブ32を介してデバイスである無線機46に電話番号データを送信する。
【0083】
無線機46の制御部46bは、ファンクション46cを介して電話番号データを受信すると、RF部46aから無線信号として基地局に電話番号データを送信する。そして、通話回線が接続されて乗員の音声が図示しないマイクに入力されると、その音声信号はA/D変換され、上記と同様の手順でハンドセット48の制御部48bから無線機46に送信され、RF部46aから基地局に送話データが送信される。
【0084】
また、通話相手からの受話データが基地局を介して無線機46に到達すると、無線機46のファンクション46cは、ハンドセット48がメインホストとして管理する送信タイミングに基づいて、受話データをハンドセット48に送信する。ハンドセット48は受話データを受け取ると、そのデータをD/A変換して図示しないスピーカより音声信号として出力する。
【0085】
一方、サブホストであるナビゲーション装置47が自動車電話装置を利用して外部より交通情報などを得る場合には、コンフィギュレーション情報に基づき、ファンクション33cに対して自動車電話装置を使用するための要求を出力するが、この場合はハンドセット48に対する使用要求となる。すると、その使用要求は、マルチファンクション部33及びハブ32を経由してハンドセット48に転送される。
【0086】
すると、ハンドセット48は、第1実施例のパソコン(A)22と同様にして、ナビゲーション装置47に使用権を設定し、ナビゲーション装置47より送信されるデータを無線機46に転送することで通話回線を接続する。また、通話先よりダウンロードされるデータを、無線機46→ハンドセット48→マルチファンクション部33→ナビゲーション装置47の経路で転送するようにする。また、パソコン(B)23が携帯電話装置(A)28を使用してデータ通信を行う場合も、ハンドセット48は第1実施例のパソコン(A)22と同様に作用する。
【0087】
以上のように第5実施例によれば、USBシステム49を自動車電話装置を中心とする構成に適用し、ハンドセット48にメインホストとしての機能を持たせるようにしたので、独立して機能するメインホストが不要となり、USBシステム48を小形且つ低コストで構成することができる。
【0088】
(第6実施例)
図7は本発明の第6実施例を示すものであり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。第6実施例では、コミュニケータ(ハブ装置)50の内部に、ウエイクアップ検出部(信号検出手段)51が配置されている。ウエイクアップ検出部51の入力端子は、ハブ32の下位側ポートに夫々接続されており、各デバイスよりメインホストに対して出力されるリモートウエイクアップ信号(以下、単にウエイクアップ信号と称す)を検出するようになっている。
【0089】
但し、マルチファンクション部33Bの末端に接続されているのはパソコン (B)23〜(D)25のサブホストであるため、マルチファンクション部33Bはウエイクアップ信号を出力しない。従って、ウエイクアップ検出部51の入力端子は、マルチファンクション部33Bが接続されているバスには接続されていない。
【0090】
ところで、USBホストは、通常動作状態では1msの周期でSOFパケットをバス上に出力するようになっており、各USBデバイスは、このSOFパケットによってフレームの始まりを認識するようになっている。そして、USBホストは、所定の期間SOFパケットを送信し続けてもバス上にデータの転送等が発生しない場合には、SOFパケットの出力を停止することでシステム全体をスリープ状態(サスペンド・モード)にすることができる。即ち、前述したように、USBデバイスは、所定期間(3ms)の間、バス上においてデータや信号の転送が全く無い場合はサスペンド・モードに移行することが規定されているからである。
【0091】
このようにしてシステム全体がサスペンド・モードにある状態で、例えば、デバイスに外部からのデータ入力があるとシステムを起動する必要が生じる。この場合、デバイスは、何れか一方がプルアップされ且つ他方がグランドレベルを示すアイドル・ステートにある2つのバスライン(D+,D−)を、何れも10ms以上グランドレベルにドライブすることによって、ホストに対してウエイクアップ信号を送信することができる。
【0092】
そして、例えば第1実施例のようなUSBシステム21の構成では、サブホストが使用しているデバイスに対して外部からのデータ入力があった場合には、そのサブホストに対しリモート・ウエイクアップ信号を出力する必要があるが、サブホストに対するウエイクアップ信号は、システムの構成上、一旦メインホストに出力し、そこからマルチファンクション部33Bを経由して対応するサブホストに伝達する必要がある。
【0093】
そこで、第6実施例では、ウエイクアップ検出部51によってウエイクアップ信号を検出し、上記の場合はそのウエイクアップ信号を対応するサブホストに直接伝達するように構成する。
【0094】
即ち、ウエイクアップ検出部51の出力端子は、マルチファンクション部33Bの制御部33Beに接続されている。そして、ウエイクアップ検出部51は、ウエイクアップ信号が検出されたハブ32の下位側ポートの位置DP0〜DP4に応じて、検出信号WS0〜WS4を制御部33Beに出力する。その出力形態は、例えば、独自のシリアルインターフェイスによって検出信号WS0〜WS4に対応するデータを制御部33Beに送信するようになっている。尚、制御部33Be及びウエイクアップ検出部51は信号出力手段を構成している。
【0095】
そして、制御部33Beは、パソコン(A)22によって管理されている各デバイスの使用状態も得ることができるようになっており、ウエイクアップ検出部51より検出信号WS0〜WS4が出力されると、対応するデバイスについてその時点で使用権が設定されているサブホストが接続されているファンクション33Bb〜33BdにUSB規格のウエイクアップ信号を出力するようになっている。各ファンクション33Bb〜33Bdは、制御部33Beより出力されたウエイクアップ信号を受信すると、各パソコン(B)23〜(D)25に対してウエイクアップ信号を夫々送信する。以上がUSBシステム52を構成している。
【0096】
次に、第6実施例の作用について説明する。例えば、イメージスキャナ26の使用権がパソコン(D)25に設定されている状態で、USBシステム51全体がサスペンド・モードになっているものとする。その状態から、ユーザがイメージスキャナ26の使用を開始しデータ入力部26aにより画像データの入力が行われると、制御部26bは、その画像データをホストに送信するためファンクション26cにウエイクアップ信号WSを出力させる。
【0097】
すると、そのウエイクアップ信号WSは、ハブ32の下位側ポートDP0に出力され、ハブ32を経由してメインホストのパソコン(A)22に送信される。パソコン(A)22は、ウエイクアップ信号を受信するとサスペンドモードを抜けて起動してアクティブ状態となり、再度SOFパケットの出力を開始する。そして、設定した転送タイミングに基づいてイメージスキャナ26にデータの転送を要求する。
【0098】
一方、それと同時に、ウエイクアップ検出部51は、下位側ポートDP0にウエイクアップ信号が出力されたことを検出し、マルチファンクション部33Bの制御部33Beに検出信号WS0を送信する。
【0099】
制御部33Beは、検出信号WS0を受信すると、下位側ポートDP0に接続されているデバイス(イメージスキャナ26)の使用権がどのホストに設定されているのかをパソコン(A)22より得た情報に基づいて判定する。この場合、当該使用権はパソコン(D)25に設定されているので、制御部33Beは、ファンクション33Bdに対してウエイクアップ信号WSを出力する。それを受けて、ファンクション33Bdはパソコン(D)25にウエイクアップ信号WSを出力する。
【0100】
パソコン(D)25は、ウエイクアップ信号WSを受信するとサスペンドモードを抜けて起動する。イメージスキャナ26のファンクション26cは、メインホストにより規定された転送タイミングに基づいて、バス上にデータを出力する。その後の転送のプロセスは第1実施例などと同様であり、データは一旦メインホストのパソコン(A)22に転送され、そこからマルチファンクション部33を経由してパソコン(D)25へ渡される。
【0101】
以上のように第6実施例によれば、ウエイクアップ検出部51は、各デバイスよりメインホストに対して送信されるウエイクアップ信号WSを検出し、検出されたウエイクアップ信号WSを出力したデバイスを使用しているホストがサブホストである場合は、当該サブホストに対してウエイクアップ信号を別途送信するようにした。
【0102】
即ち、上記第1乃至第5実施例のように、見掛け上のホストが複数存在するUSBシステムでは、何れかのデバイスがウエイクアップ信号を送信すると、そのウエイクアップ信号は先ずメインホストに送信され、起動したメインホストが、サブホストに対してウエイクアップ信号を送信する、という手順を経る必要がある。このため、デバイスが起動したいホストが実際に起動されるまでにより長い時間を要することになる。
【0103】
これに対して、第6実施例のUSBシステム52では、ウエイクアップ信号を出力したデバイスを使用しているホストがサブホストである場合は、そのサブホストに対してウエイクアップ信号を別途直接送信するので、サブホストの起動をより速く行うことができる。
【0104】
(第7実施例)
図8は本発明の第7実施例を示すものであり、第1実施例と同一部分には同一符号を付して説明を省略し、以下異なる部分についてのみ説明する。第8実施例では、コミュニケータ(ハブ装置)53の外部においてUSBデバイスとして接続されているのはプリンタ27と携帯電話装置(A)28だけである。また、コミュニケータ53には、USBホストとしてパソコン(B)23′〜25(D)′の3台が接続されている。
【0105】
これらのパソコン(B)23′〜25(D)′は、第1実施例ではパソコン (A)22のみが備えていたソフトウエアであるサブホストコントロール23g〜25gを何れも備えている。即ち、パソコン(B)23′〜25(D)′は、何れもメインホストとなり得るように構成されている。
【0106】
そして、コミュニケータ53の内部において、ハブ(デバイス側ハブ)32の上位側ポートと、パソコン(B)23′〜(D)25′との間には、ホストセレクタ54が介挿されている。ホストセレクタ54は、セレクタ(メインホスト選択手段)54aと、3台のパソコン(B)23′〜(D)25′に対応する3つのハブ(ホスト側ハブ)54b〜54dとで構成されている。
【0107】
ハブ54b〜54dの上位側ポートは、パソコン(B)23′〜(D)25の′ホスト23c〜25cに夫々接続されている。また、ハブ54b〜54dの下位側ポートの1つはセレクタ54aの3つのホスト側端子に夫々接続され、他の1つはマルチファンクション部33のファンクション33b〜33dに夫々接続されている。セレクタ54aのデバイス側端子は、ハブ32の上位側ポートに接続されている。
【0108】
ホストセレクタ54のセレクタ54aは、各パソコン(B)23′〜(D)25′がハブ54b〜54dを介して出力するSOFパケットをモニタすることで、各パソコン(B)23′〜(D)′25の状態(アクティブ/サスペンド)を判定し、それらの状態に応じて、ハブ54b〜54dの下位側ポートの1つをハブ32の上位側ポートに選択的に接続するように構成されている。
【0109】
ここで、システムが少なくとも部分的にアクティブであれば、パソコン(B)23′〜(D)25′の内の1つ以上からSOFパケットの出力が検出される。例えば、セレクタ54aは、デフォルトで、ハブ54bの下位側ポートをハブ32の上位側ポートに接続して、パソコン(B)23′をメインホストに選択するように構成されているとする。この場合、少なくとも、メインホストのパソコン(B)23′はSOFパケットを出力しており、また、他のサブホストであるパソコン(C)24′,パソコン(D)25′がデバイスを使用している場合は、それらもSOFパケットを出力する。また、システム全体がサスペンド・モードとなっている場合、SOFパケットの出力は全く検出されない。
【0110】
そして、セレクタ54aは、例えば、以下の場合にメインホストの切替えを行うようになっている。
▲1▼ホストセレクタ53がアクティブの状態で、パソコン(B)23′よりSOFパケットが出力されなくなった場合。
▲2▼パソコン(B)23′がハブ54bより切断されたことを、バスのレベルがアイドルステートから変化したことによってハブ54bが検出し、その旨の通知がセレクタ54aに対して行われた場合。
以上が、USBシステム55を構成している。
【0111】
次に、第7実施例の作用について説明する。メインホストのパソコン(B)23′は、ホストセレクタ54のハブ54b,セレクタ54a及びハブ32を介して、第1実施例と同様に、デバイスであるプリンタ27,携帯電話装置(A)28及びマルチファンクション部33についてエニュメレーションを行うと共に、ハブ54bのもう一方の下位側ポートを介して、マルチファンクション部33のファンクション33bについてもエニュメレーションを行う。
【0112】
例えば、ハブ32を経由し、マルチファンクション部33のデバイスアドレスは“3”に設定され、ファンクション33aのエンドポイントアドレスは“1”に設定されたとする。また、ハブ54bを経由し、ファンクション33bは、単独のデバイスとしてデバイスアドレス“4”,エンドポイントアドレス“1”に設定されるたものとする。また、パソコン(C)24′,(D)25′は、夫々ハブ54c,54dを経由してマルチファンクション部33のファンクション33c,33dを夫々のデバイスとしてエニュメレーションを行う。
【0113】
例えば、携帯電話装置(A)28がW−CDMA方式である場合、その携帯電話装置(A)28の1台について3回線を同時に接続して通信すること(マルチコール)が可能である。そして、メインホストであるパソコン(B)23′が携帯電話装置(A)28を使用する場合は、マルチファンクション部33のファンクション33b(アドレス“4−1”)に対して携帯電話装置(A)28(例えば、アドレス“2−1”)の使用要求を出力する。その使用要求は、制御部33eのバッファに蓄積され、パソコン(B)23′によるファンクション33a (アドレス“1−3”)に対するデータ送信要求があった場合に、ファンクション33aによってパソコン(B)23′に送信される。
【0114】
パソコン(B)23′は、ヘッダ及びデータを解析して、ファンクション33bによる携帯電話装置(A)28の使用要求であると判別すると、携帯電話装置(A)28の使用権を自身のパソコン(B)23′に設定する。
【0115】
そして、携帯電話装置(A)28に通話先からの受信データが発生した場合、携帯電話装置(A)28は受信したデータをパソコン(B)23′に転送する。すると、パソコン(B)23′は、転送されたデータをファンクション33bに転送する。ファンクション33bに転送されたデータは、ハブ54bを経由して最終的にパソコン(B)23′に渡される。即ち、メインホストであるパソコン(B)23′も、デバイスを使用する場合にはハブ32を介して直接通信を行うことなく、他のサブホストと同様にファンクション33aを介して通信を行う。また、サブホストであるパソコン(C)24′,(D)25′も、第1実施例等と同様に、パソコン(B)23′を介して携帯電話装置(A)28を同時に使用し、異なる通信相手先と通信を行うことが可能となっている。
【0116】
ここで、上述のように、ホストセレクタ54のセレクタ54aが、パソコン (B)23′の機能の停止を検出したことを想定する。すると、セレクタ54aは、ハブ32の上位側ポートがハブ54cの下位側ポートに接続されるように内部の接続を切り替える。すると、ハブ54cの上位側ポートに接続されているパソコン(C)24′は、新たにエニュメレーションを実行することで、ハブ32を介してUSBシステム54の全てのデバイスが直接認識できるようになり、パソコン(B)23′に代わってUSBシステム54の新たなメインホストとして機能するようになる。
【0117】
以上のように第7実施例によれば、セレクタ54aは、現在のメインホストが使用不能の状態となったことを検出すると、サブホストの内の何れか1つが新たなメインホストとなるようにデータまたは信号の流れを切り換える。即ち、USBシステムでは、1つのホストが全ての通信を管理するようになっているため、そのホストが例えば故障するなどして機能が停止するとシステム全体の機能が停止する。従って、第1乃至第6実施例のような構成では、メインホストの機能が停止するとそれ以外のサブホストもデバイスが全く使用できなくなってしまう。
【0118】
そこで、ホストセレクタ54が、現在のメインホストが使用不能の状態になると他のサブホストの内の何れか1つが新たなメインホストとなるように選択することで、他のサブホストは、引き続きデバイスを使用することが可能となり、システムの信頼性を向上させることができる。
【0119】
また、ホストセレクタ54を、各パソコン(B)23′〜(D)25′に対応して配置されるハブ54b〜54dの一方の下位側ポートと、下位側ポートに全てのデバイスが接続されるハブ32の下位側ポートとの間に配置し、セレクタ54aを、ハブ54b〜54d夫々の他方の下位側ポートとハブ32の上位側ポートとの間に配置して、ハブ54b〜54dの下位側ポートの何れか1つを所定の条件に従ってハブ32の上位側ポートに選択的に接続するようにした。
【0120】
即ち、ハブ32の上位側ポートに接続されたハブに対応するパソコン(B)23′〜(D)25′の何れかは、ハブ32の下位側ポートに接続されている全てのデバイスと直接通信することが可能となるので、メインホストとして機能することができる。また、その他のホストは、夫々対応するハブを介してマルチファンクション部33に接続されるので、そのマルチファンクション部33を介しUSBシステム55のデバイスとして位置付けられる。従って、新たなメインホストの選択を簡単な構成によって行うことができる。
【0121】
本発明は上記し且つ図面に記載した実施例にのみ限定されるものではなく、次のような変形または拡張が可能である。
メインホスト以外のサブホストの数は3つに限らず、1つまたは2つでも、或いは4つ以上でも良い。
例えば、第1実施例におけるマルチファンクション部33の内部を以下のように構成しても良い。制御部33eは、エニュメレーションにおいて下位側のファンクション33b〜33dについてもメインホストのパソコン(A)22によって夫々エンドポイントアドレスが設定されるようにコンフィギュレーション情報を出力する。すると、パソコン(A)22からは、マルチファンクション部33の内部に(エンドポイント0を除いて)3つのロジカルデバイスが存在するように見える。
一方、パソコン(A)22は、3つのロジカルデバイス夫々にアドレスを割り付けるようにコンフィギュレーションを行う。一方、サブホストの各パソコン (B)23〜(D)25も、第1実施例と同様に夫々対応するロジカルデバイスについて独自にアドレス割付け等を行う。そして、制御部33eが、夫々設定されたアドレスによりメイン−サブホスト間の中継を制御することで、複数のサブホストに関するデータ転送等を管理する。斯様に構成した場合も、第1実施例と同様の効果が得られる。
【0122】
また、第1実施例において、パソコン(A)22は、自身はデバイスを使用することなく他のパソコン(B)23〜(D)25による各デバイスの使用を管理する機能だけを行うようにしても良い。
第5実施例において、メインホストをハンドセット47と分離して設け、ハンドセット47をUSBデバイスとして構成しても良い。
第6実施例において、ウエイクアップ検出部51が制御部33Beに検出信号WS0〜WS4を出力する形態は、その他、各検出信号をパラレルの信号ラインで夫々直接制御部33Beに出力するようにしても良い。
第6または第7実施例において、第2実施例のようにコミュニケータ31Bの内部にI/F部35〜37を配置したり、或いは、第3実施例のようにコミュニケータ31Bの内部にインターフェイスI/O部41を配置しても良い。斯様に構成すれば、外部よりBLUETOOTH やIrDAのインターフェイスを介してデータが受信された場合は、SIMカードが挿入された場合にもサブホストをより早く起動することが可能となる。
第7実施例において、メインホストよりセレクタ54aに対してメインホストの地位を放棄する旨のコマンドを出力することで、新たなメインホストを選択させるようにしても良い。
また、第7実施例の構成に、第6実施例のウエイクアップ検出部51を追加しても良い。
また、第7実施例において、プリンタ27を削除して、デバイスを携帯電話装置(A)28のみとしても良い。
【図面の簡単な説明】
【図1】本発明の第1実施例であり、USBシステムの構成を示す機能ブロック図
【図2】USBデバイスのステートダイヤグラム
【図3】本発明の第2実施例を示す図1相当図
【図4】本発明の第3実施例を示す図1相当図
【図5】本発明の第4実施例を示す図1相当図
【図6】本発明の第5実施例を示す図1相当図
【図7】本発明の第6実施例を示す図1相当図
【図8】本発明の第7実施例を示す図1相当図
【図9】従来技術を示す図1相当図
【符号の説明】
21はUSBシステム、22〜25及び22′〜25′はパソコン(ホスト)、26はイメージスキャナ(デバイス)、27はプリンタ(デバイス)、28及び29は携帯電話装置(デバイス)、30はCCDカメラ(デバイス)、31はコミュニケータ(ハブ装置)、32はハブ(デバイス側ハブ)、33はマルチファンクション部(サブホスト管理用デバイス)、33aはファンクション(メイン側USBインターフェイス部)、33b〜33dはファンクション(サブ側USBインターフェイス部)、33eは制御部(中継用制御部)、33A,33Bはマルチファンクション部(サブホスト管理用デバイス)、33Aeは制御部 (中継用制御部)、33Beは制御部(中継用制御部,信号出力手段)、34はコミュニケータ(ハブ装置)、38はUSBシステム、40はコミュニケータ (ハブ装置)、42はUSBシステム、43はコミュニケータ(ハブ装置)、44はホスト機能部(ホスト)、45はUSBシステム、46は無線機(デバイス)、47はナビゲーション装置(ホスト)、48はハンドセット(ホスト)、49はUSBシステム、50はコミュニケータ(ハブ装置)、51はウエイクアップ検出部(信号検出手段,信号出力手段)、52はUSBシステム、53はコミュニケータ(ハブ装置)、54はホストセレクタ、54aはセレクタ(メインホスト選択手段),54b〜54dはハブ(ホスト側ハブ)、55はUSBシステムを示す。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a USB system configured using, for example, a USB (Universal Serial Bus) which is an interface used to connect a personal computer and its peripheral devices.
[0002]
[Prior art]
USB is a serial communication interface standardized for use with a personal computer as a host and peripheral devices such as a keyboard, mouse, and printer as devices connected via a hub. It is. Thus, in one system configured using USB, there is only one host, and the host manages all communication with a plurality of devices.
[0003]
For example, as shown in FIG. 9, in the system (A), a personal computer (personal computer) (A) 1 is a host and is connected to an upstream port of the hub (A) 2. A mobile phone device (A) 3, a printer 4, and an image scanner 5 as devices are connected to the downstream port of the hub (A) 2.
[0004]
In the system (B), the personal computer (B) 6 as a host is connected to the upstream port of the hub (B) 7, and the mobile phone device (B) is connected to the downstream port of the hub (B) 7. 8 is connected. In the system (C), a personal computer (C) 9 as a host is connected to the upstream port of the hub (C) 10, and the mobile phone device (C) is connected to the downstream port of the hub (C) 10. 11 and the CCD camera 12 are connected.
[0005]
[Problems to be solved by the invention]
In the configuration as described above, the printer 4 and the image scanner 5 in the system (A) can naturally be used only by the personal computer (A) 1 which is the host of the system (A), and the personal computer (B) 6 or personal computer. (C) 9 cannot use them. When the personal computers (B) 6 and (C) 9 need to use these devices, the printer 4 and the image scanner 5 are connected to the downstream ports of the hub (B) 7 and the hub (C) 10. Must switch to
[0006]
Similarly, only the personal computer (C) 9 can use the CCD camera 12 in the system (C), and the personal computers (A) 1 and (B) 6 connect the CCD camera 12 to the hub (A) 2. Or (B) Cannot be used unless switched to 7.
[0007]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a USB system that can be used by other hosts as needed without switching the connection of each device used by each host. And a sub-host management device, a hub device, and a USB host selector used in the USB system.
[0008]
[Means for Solving the Problems]
According to the USB system of claim 1, any one of a plurality of hosts that selectively use one or more devices is a main host that is a substantial system host, and the other hosts. Is positioned as a subhost. Then, the main host once receives data or signals transmitted from each sub-host to the device and then transfers them to the corresponding device. In addition, once the main host receives data or signals transmitted from the device to the corresponding sub-host, it transfers the data or signal to the corresponding sub-host so that each sub-host can use the device exclusively. To do.
[0009]
  In other words, it appears that there are multiple hosts in one system, but control is performed so that one of these hosts becomes the main host and devices are used exclusively by other sub-hosts. Thus, the sub-host is recognized as one of the devices when viewed from the main host. Therefore, it becomes possible for a plurality of hosts to use one device in a time-sharing manner, and it is not necessary to change the device to the hub of the system to which each host belongs as in the prior art, improving convenience. be able to.
  Further, when the sub-host management device receives data and signals transmitted from each sub-host to the device, the sub-host management device transmits them to the main host based on the transmission timing determined by the main host. Also, signals and data transmitted from the device to each sub-host via the main host are relayed. Furthermore, a sub-host management device is connected to one of the lower ports, and a hub is connected to the main host in the upper port.
[0010]
According to the USB system of the second aspect, since the main host itself uses the device as necessary, the usage mode of the device can be set in various ways.
[0012]
  According to the USB system of claim 3The sub-host management device is transferred between the main-side interface unit for communicating with the main host as a device and a plurality of sub-side interface units for communicating with each of the sub-hosts as a device. And a relay control unit that relays data or signals to be transmitted.
[0013]
That is, the main host and the sub-host individually set device addresses and endpoint addresses in the main-side interface unit and the sub-side interface unit by performing identification processing (enumeration), respectively. Therefore, each sub-host accesses (subjectively) the sub-side interface unit as a host. Also, the main host can manage the transfer of data to each sub-host by the address set in the main-side interface unit.
[0014]
Then, the relay control unit relays and transfers data and the like communicated between each sub-host and the device at a timing managed by the main host. Therefore, the main host can easily perform arbitration of the right to use the device of each sub-host and data transfer between them.
[0015]
  Claim4According to the described USB system, the relay control unit of the sub-host management device accumulates data transmitted from each sub-host in a buffer, attaches an identification header to the accumulated data, and batches it to the main host. Send. On the other hand, the main host transmits data to the corresponding device based on the header attached to the data transmitted from the sub-host management device, and transmits the data transmitted from the device to the corresponding sub-host. Therefore, by appropriately setting the header attached to the data, it is possible to manage data transfer related to a plurality of sub-hosts with a high degree of freedom.
[0016]
  Claim5According to the described USB system, the relay control unit of the sub-host management device controls the main host so that each sub-side interface unit also sets an address, and each sub-side interface is controlled by the sub-host and the main host. The relay between the two is controlled by the address set in each section.
[0017]
That is, when viewed from the main host, each sub-side interface unit of the sub-host management device is recognized as an independent logical device, and a different address is set for each. That is, the addresses set by the main host and the sub-host simultaneously exist in each sub-side interface unit. Then, the relay control unit controls the relay between the main and sub-hosts by using the set addresses, thereby managing data transfer related to a plurality of sub-hosts.
[0018]
  Claim6According to the described USB system, the signal detection means detects a wakeup signal transmitted from each device to the main host, and the signal transmission means uses the device that has output the detected wakeup signal. If the host is a sub-host, a wake-up signal is separately transmitted to the sub-host.
[0019]
That is, the host or device of the USB system shifts to a suspend mode (so-called sleep mode) in order to reduce power consumption when data or signals are not transferred on the bus for a predetermined time. For example, if any operation or signal is received from any device, the device exits the suspend mode and is activated. Then, a wakeup (remote wakeup) signal is transmitted to the host so as to be active after exiting the suspend mode.
[0020]
  Therefore, the above claims 1 to5In the USB system in which a plurality of apparent hosts exist as described in any of the above, when any device transmits a wakeup signal, the wakeup signal is first transmitted to the main host, and the activated main host is It is necessary to go through a procedure of transmitting a wakeup signal to the sub-host. For this reason, it takes a longer time until the host where the device is to be activated is actually activated.
[0021]
  In contrast, the claims6In the described USB system, when the host using the device that outputs the wakeup signal is a subhost, the wakeup signal is directly transmitted to the subhost, so that the subhost can be started up more quickly. it can. Therefore, the response time of the entire system can be shortened.
[0022]
  Claim8According to the described hub device, the claims7The described sub-host management device,Used in the USB system according to any one of claims 1 to 6.Since the hub is arranged in the same casing, the device is connected to the other lower port of the hub, and the subhost is connected to the upper port of the subhost management device.1Thru6The USB system described in any of the above can be easily configured.
[0023]
  Claim9According to the described hub device, since the main host is also arranged in the same casing, the user does not need to prepare the main host himself and connect to the hub device. It is only necessary to configure the system by connecting only (sub) hosts that need to share and use devices connected to the lower port. Therefore, versatility can be improved.
[0024]
  Claim 10According to the described USB host selector, when the main host selection means detects that the current main host is in an unusable state, the data or data so that any one of the sub-hosts becomes a new main host. Switch the signal flow.
[0025]
That is, in the USB system, since one host manages all communications, the function of the entire system stops when the function stops due to, for example, a failure of the host. Therefore, in the configuration of the present invention described above, if the function of the main host stops, the other sub-hosts cannot use the device at all.
[0026]
  Therefore, claim 10The described USB host selector selects any one of the other sub-hosts as a new main host when the current main host becomes unusable, so that the other sub-hosts continue to use the device. It becomes possible. Therefore, the reliability of the system can be improved.
[0027]
  Claim 11According to the described USB host selector, the sub-host management device is a device side where all devices are connected to one lower port of a plurality of host side hubs arranged corresponding to each host and the lower port. It is arranged between the upper port of the hub. The main host selection means is arranged between the other lower side port of each of the plurality of host side hubs and the upper side port of the device side hub, and sets one of the plurality of lower side ports as a predetermined condition. To selectively connect to the upper port.
[0028]
That is, the host corresponding to the host-side hub connected to the higher-order (upstream) port of the device-side hub directly communicates with all the devices connected to the lower-order (downstream) port of the device-side hub. Can function as a main host. In addition, the other hosts are connected to the sub-host management device via the corresponding host-side hubs, and thus are positioned as system devices via the management device. Therefore, a new main host can be selected with a simple configuration.
[0029]
DETAILED DESCRIPTION OF THE INVENTION
(First embodiment)
A first embodiment of the present invention will be described below with reference to FIGS. In FIG. 1 showing functional blocks of the electrical configuration, the USB system 21 includes four personal computers (A) 22 to (D) 25 each of which is a USB host in a general system. Examples of USB devices include an image scanner 26, a printer 27, mobile phone devices (A) 28 and (B) 29, and a CCD camera 30. These hosts and devices are connected via a communicator (hub device) 31 and communicate via a USB interface.
[0030]
However, as will be described later, of the personal computers (A) 22 to (D) 25, the personal computer (A) 22 becomes a main host that functions as a substantial host of the USB system 21, and the other personal computers (B) 23 to ( D) 25 is positioned as a sub-host, and each is treated as one of the devices when viewed from the personal computer (A) 22 of the main host.
[0031]
For example, the personal computer (A) 22 is a host, which is a USB interface LSI for communicating as a USB host, a display / input unit 22a composed of a display and a keyboard as hardware, a control unit 22b composed of a CPU, ROM, RAM, and the like. 22c and the like.
[0032]
The software includes control software 22d for controlling the original functions of the personal computer, USB application (application) 22e for using the USB device, host driver 22f for controlling the host 22c, and other sub-hosts. A sub-host control 22g for managing device usage is prepared. The other personal computers (B) 23 to (D) 25 have basically the same configuration, but do not include software corresponding to the sub-host control 22g.
[0033]
On the other hand, the image scanner 26, which is a device, communicates as a USB device, a control unit 26b including a data input unit 26a for scanning and inputting image data as hardware, a CPU for controlling the data input unit 26a, and the like. For example, a function 26c, which is a USB interface LSI, is provided. As software, a control software 26d for controlling the main body and a function driver 26e for controlling the function 26c are provided.
[0034]
The printer 27 includes a printing unit 27a as hardware, a control unit 27b for controlling the printing unit 27a, a function 27c for performing communication as a USB device, and the like. As software, control software 27d for controlling the main body and a function driver 27e for controlling the function 27c are provided.
[0035]
The cellular phone device (A) 28 controls an RF (high frequency) unit 28a for performing wireless communication as hardware, a display / input unit 28b, an RF unit 28a, and a display / input unit 28b including an LCD and operation keys. For example, a control unit 28c for performing communication as a USB device. As software, a control software 28e for controlling the main body and a function driver 28f for controlling the function 28d are provided. The cellular phone device (B) 29 has the same configuration.
[0036]
The CCD camera 30 includes a CCD unit 30a including a plurality of CCDs as hardware, a control unit 30b for controlling the CCD unit 30a, a function 30c for performing communication as a USB device, and the like. As software, control software 30d for main body control and a function driver 30e for controlling the function 30c are provided.
[0037]
The communicator 31 includes a hub (HUB) 32 and a multi-function unit (sub-host management device) 33. The multi-function unit 33 includes, as hardware, a function on the upper side (main host side) (main side USB interface unit) 33a, and three functions (sub side USB interface units) 33b to 33d on the lower side (sub host side), A control unit (relay control unit) 33e for controlling these functions 33a to 33d is provided. As software, a control software 33f for controlling the main body and a function driver 33g for controlling the functions 33a to 33d are provided.
[0038]
The six lower ports (downstream ports) of the hub 32 include image scanner 26, printer 27, mobile phone devices (A) 28 and (B) 29, and functions 26c, 27c, 28d, and CCD camera 30, respectively. 29d and 30c are connected, and the higher-order function 33a of the multi-function unit 33 is connected. A host 22c of a personal computer (A) 22 as a main host is connected to the upper port (upstream port) of the hub 32.
[0039]
On the other hand, hosts 23c to 25c of personal computers (B) 23 to (C) 25, which are sub-hosts, are connected to the lower functions 33b to 33d of the multi-function unit 33, respectively. That is, the higher-order function 33 a of the multi-function unit 33 functions as a device for the personal computer (A) 22 via the hub 32.
[0040]
The lower functions 33b to 33d function as devices for each of the personal computers (B) 23 to (C) 25, and interface between the upper functions 33a and the lower functions 33b to 33d. Is performed by the control unit 33e.
[0041]
The control unit 33e includes a buffer (FIFO: First In First Out) corresponding to each of the functions 33b to 33d, and data transmitted from the personal computers (B) 23 to (D) 25 to the functions 33b to 33d. Are transferred to the control unit 33e and stored in the respective buffers.
[0042]
Next, the operation of this embodiment will be described with reference to FIG. FIG. 2 is a state diagram of a USB device.
▲ 1 ▼ Attached
This is an initial state immediately after the USB device is connected (plugged in) to the hub of the USB system. The host side is notified that there is a device newly connected via the hub.
▲ 2 ▼ Powered
This is a state in which the USB device is supplied with power via the connected hub. When the host gives a reset signal to the device in this state, the state shifts to the next “default”.
(3) Default
The device becomes “default” when the reset is released, and all the registers of the device are in a reset state. Then, the device transfers configuration information such as a default address, bus access frequency, bus width, and maximum packet size to the host by the endpoint 0.
[0043]
(4) Address
Subsequently, each device is assigned a unique address by the host.
▲ 5 ▼ Configured
When the host recognizes how each device is used based on the configuration information obtained from each device, the host sets a configuration value for each device. Then, each device can be used by the host.
[0044]
The above (1) to (5) are processes called enumeration (identification) when viewed from the host side. When a new device is connected to the USB system, or the devices constituting the system are Runs every time it is removed. The host manages data transfer timing and the like based on the settings made for each device.
[0045]
Further, in any of the above states (2) to (5) or in a normal use state after the end of enumeration, the device may shift to the next state (6).
▲ 6 ▼ Suspended
If there is no data or signal transfer on the bus for a predetermined period, the device enters a suspend mode, and maintains power consumption while retaining internal information such as address and configuration information. When any data or signal transfer occurs on the bus, the device exits the suspend mode and is activated and becomes active.
[0046]
  Next, the case of the USB system 21 shown in FIG. 1 will be specifically described. The personal computer (A) 22 which is the main host is a device via the hub 32 of the communicator 31.IThe enumeration is performed for the image scanner 26, the printer 27, the mobile phone devices (A) 28 and (B) 29, the CCD camera 30, and the multi-function unit 33.
[0047]
At this time, with respect to the multi-function unit 33, only the upper function 33a is recognized as a logical device from the personal computer (A) 22. The personal computers (B) 23 to (D) 25 perform enumeration using the lower-order functions 33 b to 33 d of the multi-function unit 33 as respective devices. The control unit 33e passes header information for data identification regarding the functions 33b to 33d at the time of enumeration by the personal computer (A) 22.
[0048]
That is, when there is a data transmission request to the function 33a by the personal computer (A) 22, the control unit 33e combines the data accumulated in the respective internal buffers at that time, and sets an identification header. It is attached to the function 33a. Accordingly, the personal computer (A) 22 uses the header information to indicate that the functions 33b to 33d exist in the multi-function unit 33 and which part of the series of data transferred from the function 33a is the respective data of the functions 33b to 33d. It is possible to determine whether it is.
[0049]
For example, it is assumed that the personal computer (A) 22 sets the device address of the multi-function unit 33 to “6” and the endpoint address of the function 33 a to “1” in the configuration. On the other hand, it is assumed that each of the personal computers (B) 23 to (D) 25 sets the function addresses 33b to 33d as the only devices and sets the device address to “1” and the endpoint address to “1”. Even in such a case, since the personal computer (A) 22 recognizes only the function 33a as a logical device as described above, the multifunction unit 33 is handled as one device.
[0050]
Further, from the personal computer (A) 22 to the personal computers (B) 23 to (D) 25 via the functions 33a, 33b to 33d, an image scanner 26, a printer 27, a mobile phone device (A) 28, and (B 29) Provides configuration information regarding the CCD camera 30. Then, each personal computer (B) 23 to (D) 25 can know what device is connected to the USB system 21.
[0051]
Here, for example, a case where the personal computer (B) 23 uses the mobile phone device (A) 28 will be described. The personal computer (B) 23 outputs a request for using the cellular phone device (A) 28 to the function 33b based on the configuration information. Then, the use request is transferred to the control unit 33e via the function 33b and stored in the buffer.
[0052]
When the personal computer (A) 22 makes a data transmission request to the function 33a of the multi-function unit 33, the function 33a transmits the data stored in the buffer of the control unit 33e with a header. Then, the data is transferred to the personal computer (A) 22 via the hub 32.
[0053]
The personal computer (A) 22 is a request by the function 33b (personal computer (B) 23) by the header attached to the data, and the content of the request is the mobile phone device (A) 28 (for example, the address “3- If there is no sub-host using the mobile phone device (A) 28 at that time, the right to use the mobile phone device (A) 28 is set in the personal computer (B) 23. To do.
[0054]
Thereafter, data that the personal computer (B) 23 intends to transmit by the mobile phone device (A) 28 is once sent to the personal computer (A) 22 in the same manner, and then transmitted to the mobile phone device (A) 28. Then, the data is transmitted as a radio signal to a base station (not shown) by the RF unit 28a of the cellular phone device (A) 28.
[0055]
In this state, when reception data from the call destination is generated in the mobile phone device (A) 28, the mobile phone device (A) 28 transfers the received data to the personal computer (A) 22. Then, the personal computer (A) 22 transfers the transferred data to the personal computer (B) 23 (function 33b) in which the right to use the cellular phone device (A) 28 is set. That is, data and signals are transferred between the personal computers (B) 23 to (D) 25 serving as the sub-hosts and the respective devices via the personal computer (A) 22 serving as the main host.
[0056]
When other sub-hosts: personal computers (C) 24 and (D) 25 use, for example, the printer 27 and the CCD camera 30, the right of use is managed by the personal computer (A) 22 in the same manner as described above. Data and signals are transferred via the personal computer (A) 22. The personal computer (A) 22 not only manages the use of the devices by the other personal computers (B) 23 to (D) 25 but also has the USB application 22 itself. Needless to say, it is possible to use the device.
[0057]
As described above, according to the present embodiment, the personal computer (A) 22 once receives data or signals transmitted from the other personal computers (B) 23 to (D) 25 to the plurality of USB devices. , Transfer them to the corresponding device. In addition, once data or signals transmitted from each device to the corresponding personal computers (B) 23 to (D) 25 are received, they are transferred to the personal computers (B) 23 to (D) 25. Each device is used exclusively by.
[0058]
That is, even if there are a plurality of hosts in one USB system 21, it appears that one of them becomes the main host and manages the use of devices by other sub-hosts, so that the sub-host can be viewed from the main host. Is recognized as one of the devices. Therefore, it becomes possible for a plurality of hosts to use one device in a time-sharing manner, and it is not necessary to change the device to the hub of the system to which each host belongs as in the prior art, improving convenience. be able to. Further, since the personal computer (A) 22 itself selectively uses any one of the plurality of devices, it is possible to set various usage modes of the devices.
[0059]
According to the present embodiment, the personal computer (A) 22 accesses the function 33a of the multi-function unit 33 as a host, and the personal computers (B) 23 to (D) 25 respectively access the functions 33b to 33d. The controller 33e is configured to access itself as a host, and the control unit 33e relays the transfer of data and the like between the functions 33a and 33b to 33d.
[0060]
That is, the multi-function unit 33 functions as a device for any of the personal computers (A) 22 to (D) 25 and communicates between the personal computers (B) 23 to (D) 25 and a plurality of devices. Data and the like are relayed and transferred at a timing managed by the personal computer (A) 22. Therefore, the personal computer (A) 22 can easily arbitrate the right to use the device by the personal computers (B) 23 to (D) 25.
[0061]
Further, according to the present embodiment, the control unit 33e of the multi-function unit 33 accumulates the data transmitted from each of the personal computers (B) 23 to (D) 25 in the buffer, and adds the identification header to the accumulated data. Is transmitted to the personal computer (A) 22 in a lump, and the personal computer (A) 22 transmits the data to the corresponding devices based on the header attached to the data transmitted from the multi-function unit 33, respectively. Since the data transmitted from each device is transmitted to the corresponding sub-host, management with a high degree of freedom can be performed by setting a header attached to the data.
[0062]
(Second embodiment)
FIG. 3 shows a second embodiment of the present invention. The same parts as those of the first embodiment are denoted by the same reference numerals and the description thereof is omitted. Only different parts will be described below. In the second embodiment, a communicator (hub device) 34 instead of the communicator 31 is arranged. The communicator 34 is provided with three I / F units, a BLUETOOTH interface (I / F) unit 35, an IrDA interface unit 36, and a SIM card interface unit 37. Each of these I / F units 35 to 37 also incorporates a USB interface unit (corresponding to a function, not shown), and a multi-function unit (subhost management device) via each USB interface unit. It is connected to the control unit 33Ae of 33A.
[0063]
That is, the BLUETOOTH interface unit 35 communicates with an external host or device by a radio wave signal, performs signal conversion with the USB inside, and transfers data and the like to and from the control unit 33Ae. The IrDA interface unit 36 communicates with an external host or device by an infrared signal, performs the same signal conversion internally, and transfers data and the like to the control unit 33Ae. The SIM card interface unit 37 includes a connector to which the SIM card is connected, and internally performs similar signal conversion on data to be read from and written to the SIM card, and transfers data and the like to and from the control unit 33Ae. .
[0064]
The control unit 33Ae of the multi-function unit 33A sets information in the header for each of the I / F units 35 to 37, and these I / F units 35 to 37 are used in the first embodiment. It is handled in the same manner as the functions 33b to 33d. The above constitutes the USB system 38.
[0065]
Next, the operation of the second embodiment will be described. For example, consider a case where a personal computer (C) 24 as a sub-host performs data communication with a notebook personal computer 39 provided with an IrDA interface unit 39a. If the endpoint address of the I / F unit 36 is “6”, for example, the personal computer (C) 24 outputs a request for using the I / F unit 36 to the function 33c based on the configuration information. . Then, the use request is further transferred to the personal computer (A) 22 via the hub 32.
[0066]
If the personal computer (A) 22 determines that the content of the request is a usage request for the I / F unit 36, the personal computer (C) 24 sets the usage right to the personal computer (C) 24 if there is no sub-host used at that time. . When the usage right is set, the personal computer (C) 24 outputs the transmission data to the function 33c. Then, the transmission data is sent to the personal computer (A) 22 and then transferred to the I / F unit 36.
[0067]
The I / F unit 36 converts the transmission data into an IrDA signal format and transmits an infrared signal to the notebook computer 39. When the IrDA interface unit 39a of the notebook computer 39 receives the infrared signal, the data transmitted by the computer (C) 24 is transferred to the notebook computer 39.
[0068]
According to the second embodiment configured as described above, the BLUETOOTH interface unit 35, the IrDA interface unit 36, and the SIM card interface unit 37 are provided in the communicator 34, and these I / F units 35 to 37 are used. Since the data to be communicated is converted so that it can be handled by USB and transferred to and from the multi-function unit 33A, various usage forms can be set in the USB system 38.
[0069]
(Third embodiment)
FIG. 4 shows a third embodiment of the present invention. The same parts as those in the first or second embodiment are denoted by the same reference numerals and the description thereof is omitted. Only different parts will be described below. In the second embodiment, a communicator (hub device) 40 instead of the communicator 31 is arranged.
[0070]
The communicator 40 includes an interface I / O unit 41 in addition to the multi-function unit 33. The interface I / O unit 41 is connected to the lower port of the hub 32A via the function 41a, and the control unit 41b has the same three I / F units 35 to 37 as in the function 41a and the second embodiment. Is connected. The interface I / O unit 41 includes, as software, control software 41c for main body control and a function driver 41d for controlling the function 41a. Other configurations are the same as those of the first embodiment, and the USB system 42 is configured.
[0071]
Next, the operation of the third embodiment will be described. The interface I / O unit 41 is one of independent devices when viewed from the personal computer (A) 22 as a main host. Therefore, in the enumeration, a device address different from that of the multifunction unit 33 is set in the interface I / O unit 41.
[0072]
For example, as in the second embodiment, when the personal computer (C) 24 performs data communication with the notebook personal computer 39, the personal computer (C) 24 sets the I / F unit 36 based on the configuration information. If a request for use is output to the function 33c, the personal computer (A) 22 sets the right to use the I / F unit 36 to the personal computer (C) 24 as in the second embodiment. According to the third embodiment configured as described above, the same effects as in the second embodiment can be obtained.
[0073]
(Fourth embodiment)
FIG. 5 shows a fourth embodiment of the present invention. The same parts as those of the first embodiment are denoted by the same reference numerals and the description thereof is omitted. Only different parts will be described below. In the fourth embodiment, a communicator (hub device) 43 instead of the communicator 31 is arranged. In the fourth embodiment, the personal computer (A) 22 as the main host does not exist outside the communicator 42, and instead, a host function unit that functions as the main host inside the communicator 43 (inside the casing). 44 is arranged and connected to the upper port of the hub 32.
[0074]
The components of the host function unit 44 are basically the same as those corresponding to the internal configuration of the personal computer (A) 22. However, the host function unit 44 does not function as a personal computer, and does not function as a main host. Only the elements 44a to 44g necessary for functioning as a personal computer (A) 22 and there is no element corresponding to the display / input unit 22a. Although the above constitutes the USB system 45, the operation of the portion according to the gist of the present invention is the same as that of the first embodiment.
[0075]
According to the fourth embodiment configured as described above, since the host function unit 44 functioning as the main host is arranged inside the communicator 43, the user prepares the main host himself and connects to the hub device. There is no need, and the communicator 43 may be configured by connecting only the personal computers (B) 23 to (D) 25 that need to share and use the device connected to the lower port. . Therefore, versatility can be improved.
[0076]
(5th Example)
FIG. 6 shows a fifth embodiment of the present invention. The same parts as those of the first embodiment are denoted by the same reference numerals and the description thereof is omitted. Only different parts will be described below. The fifth embodiment shows a case where the present invention is applied to a system centered on an automobile telephone device. In place of the printer 27, a wireless device 46 of the automobile telephone device is connected to the lower port of the hub 32 as a USB device. Further, the cellular phone device (B) 29 and the CCD camera 30 are deleted.
[0077]
The wireless device 46 includes a radio frequency (RF) unit 46a for performing telephone calls and data communication using radio wave signals as hardware, a control unit 46b including a CPU, ROM, RAM, and the like, and a USB interface LSI for performing communication as a USB device. A function 46c is provided. As software, control software 46d for controlling the function of the radio 46, a function driver 46e for controlling the function 46c, and the like are prepared.
[0078]
On the other hand, a navigation device 47 instead of the personal computer (C) 24 is connected as a sub-host to the function 33c of the multi-function unit 33, and the personal computer (D) 25 is deleted. The navigation device 47 includes, as hardware, a display / input unit 47a including a display and a numeric keypad, a control unit 47b including a CPU, a ROM, and a RAM, a CD-ROM driver 47c for reading map data from a CD-ROM, and a USB host. A host 47d which is a USB interface LSI for performing communication.
[0079]
As software, control software 47e for controlling functions of the navigation device, USB application 47f for using a USB device, host driver 47g for controlling the host 47d, and the like are prepared.
[0080]
The upper port of the hub 32 is connected with a handset 48 of an automobile telephone device as a main host in place of the personal computer (A) 22. The handset 48 includes a display / input unit 48a including a display and a numeric keypad as hardware, a control unit 48b including a CPU, a ROM, and a RAM, a host 48c that is a USB interface LSI for performing communication as a USB host, and the like. Yes.
[0081]
As software, control software 48d for controlling the functions of the automobile telephone device, USB application 48e for using the USB device, host driver 48f for controlling the host 48c, use of the device by another sub-host For example, a sub-host control 48g for managing the server is prepared. The above constitutes the USB system 49.
[0082]
Next, the operation of the fifth embodiment will be described. The handset 48 performs enumeration of each device as a main host. For example, when a car occupant makes a call using a car phone device, the telephone number of the other party is input by going off-hook by operating a numeric keypad or the like in the display / input unit 48a of the handset 48. Then, the control unit 48b transmits the telephone number data to the wireless device 46 which is a device via the host 48c and the hub 32.
[0083]
When receiving the telephone number data via the function 46c, the control unit 46b of the wireless device 46 transmits the telephone number data to the base station as a radio signal from the RF unit 46a. Then, when the telephone line is connected and the occupant's voice is input to a microphone (not shown), the voice signal is A / D converted and transmitted from the control unit 48b of the handset 48 to the radio 46 in the same procedure as described above. The transmission data is transmitted from the RF unit 46a to the base station.
[0084]
When the reception data from the other party reaches the wireless device 46 via the base station, the function 46c of the wireless device 46 transmits the reception data to the handset 48 based on the transmission timing managed by the handset 48 as the main host. To do. When the handset 48 receives the received data, the handset D / A converts the received data and outputs it as an audio signal from a speaker (not shown).
[0085]
On the other hand, when the navigation device 47 as a sub-host obtains traffic information and the like from the outside using the automobile telephone device, a request for using the automobile telephone device is output to the function 33c based on the configuration information. However, in this case, it becomes a use request for the handset 48. Then, the use request is transferred to the handset 48 via the multi-function unit 33 and the hub 32.
[0086]
Then, in the same way as the personal computer (A) 22 of the first embodiment, the handset 48 sets the right of use for the navigation device 47 and transfers the data transmitted from the navigation device 47 to the radio unit 46, thereby calling the communication line. Connect. Further, the data downloaded from the call destination is transferred via the route of the wireless device 46 → the handset 48 → the multi-function unit 33 → the navigation device 47. Further, when the personal computer (B) 23 performs data communication using the cellular phone device (A) 28, the handset 48 operates in the same manner as the personal computer (A) 22 of the first embodiment.
[0087]
As described above, according to the fifth embodiment, the USB system 49 is applied to a configuration centering on a car telephone device, and the handset 48 is provided with a function as a main host. A host is not required, and the USB system 48 can be configured in a small size and at low cost.
[0088]
(Sixth embodiment)
FIG. 7 shows a sixth embodiment of the present invention. The same parts as those in the first embodiment are denoted by the same reference numerals and the description thereof is omitted. Only the different parts will be described below. In the sixth embodiment, a wakeup detection unit (signal detection means) 51 is disposed inside a communicator (hub device) 50. The input terminal of the wakeup detection unit 51 is connected to each lower port of the hub 32, and detects a remote wakeup signal (hereinafter simply referred to as a wakeup signal) output from each device to the main host. It is supposed to be.
[0089]
However, since the sub-host of the personal computers (B) 23 to (D) 25 is connected to the end of the multi-function unit 33B, the multi-function unit 33B does not output a wake-up signal. Therefore, the input terminal of the wakeup detection unit 51 is not connected to the bus to which the multi-function unit 33B is connected.
[0090]
By the way, the USB host outputs the SOF packet on the bus at a cycle of 1 ms in the normal operation state, and each USB device recognizes the start of the frame by this SOF packet. When the USB host continues to transmit the SOF packet for a predetermined period and data transfer or the like does not occur on the bus, the USB host stops the output of the SOF packet to put the entire system in a sleep state (suspend mode). Can be. That is, as described above, the USB device is defined to enter the suspend mode when there is no data or signal transfer on the bus for a predetermined period (3 ms).
[0091]
In this way, when the entire system is in the suspend mode, for example, when there is data input from the outside to the device, it is necessary to start the system. In this case, the device drives the two bus lines (D +, D−), one of which is pulled up and the other is in the idle state indicating the ground level, by driving them to the ground level for 10 ms or more. A wakeup signal can be transmitted.
[0092]
For example, in the configuration of the USB system 21 as in the first embodiment, when there is external data input to the device used by the subhost, a remote wakeup signal is output to the subhost. However, the wake-up signal for the sub-host needs to be temporarily output to the main host and then transmitted to the corresponding sub-host via the multi-function unit 33B.
[0093]
Therefore, in the sixth embodiment, the wakeup signal is detected by the wakeup detection unit 51, and in the above case, the wakeup signal is directly transmitted to the corresponding sub-host.
[0094]
That is, the output terminal of the wakeup detection unit 51 is connected to the control unit 33Be of the multi-function unit 33B. Then, the wakeup detection unit 51 outputs detection signals WS0 to WS4 to the control unit 33Be according to the positions DP0 to DP4 of the lower port of the hub 32 where the wakeup signal is detected. The output form is such that, for example, data corresponding to the detection signals WS0 to WS4 is transmitted to the control unit 33Be by a unique serial interface. The control unit 33Be and the wakeup detection unit 51 constitute signal output means.
[0095]
The control unit 33Be can also obtain the usage state of each device managed by the personal computer (A) 22, and when the detection signals WS0 to WS4 are output from the wakeup detection unit 51, For the corresponding device, a USB standard wakeup signal is output to the functions 33Bb to 33Bd to which the sub-host whose use right is set at that time is connected. When the functions 33Bb to 33Bd receive the wakeup signal output from the control unit 33Be, the functions 33Bb to 33Bd transmit wakeup signals to the personal computers (B) 23 to (D) 25, respectively. The above constitutes the USB system 52.
[0096]
Next, the operation of the sixth embodiment will be described. For example, it is assumed that the entire USB system 51 is in the suspend mode with the right to use the image scanner 26 set in the personal computer (D) 25. In this state, when the user starts using the image scanner 26 and image data is input by the data input unit 26a, the control unit 26b sends a wakeup signal WS to the function 26c to transmit the image data to the host. Output.
[0097]
Then, the wake-up signal WS is output to the lower port DP0 of the hub 32 and transmitted to the main host personal computer (A) 22 via the hub 32. When the personal computer (A) 22 receives the wake-up signal, the personal computer (A) 22 exits the suspend mode, starts up and becomes active, and starts outputting the SOF packet again. Then, the image scanner 26 is requested to transfer data based on the set transfer timing.
[0098]
Meanwhile, at the same time, the wakeup detection unit 51 detects that a wakeup signal is output to the lower port DP0, and transmits a detection signal WS0 to the control unit 33Be of the multi-function unit 33B.
[0099]
When the control unit 33Be receives the detection signal WS0, the control unit 33Be uses the information obtained from the personal computer (A) 22 as to which host the right to use the device (image scanner 26) connected to the lower port DP0 is set. Judgment based on. In this case, since the right to use is set in the personal computer (D) 25, the control unit 33Be outputs the wakeup signal WS to the function 33Bd. In response thereto, the function 33Bd outputs a wakeup signal WS to the personal computer (D) 25.
[0100]
When receiving the wakeup signal WS, the personal computer (D) 25 exits the suspend mode and starts up. The function 26c of the image scanner 26 outputs data on the bus based on the transfer timing defined by the main host. The subsequent transfer process is the same as in the first embodiment, and the data is once transferred to the personal computer (A) 22 of the main host and then passed to the personal computer (D) 25 via the multi-function unit 33.
[0101]
As described above, according to the sixth embodiment, the wake-up detection unit 51 detects the wake-up signal WS transmitted from each device to the main host, and outputs the detected wake-up signal WS. When the host used is a sub-host, a wake-up signal is separately transmitted to the sub-host.
[0102]
That is, as in the first to fifth embodiments, in a USB system having a plurality of apparent hosts, when any device transmits a wakeup signal, the wakeup signal is first transmitted to the main host, It is necessary to go through a procedure in which the activated main host transmits a wakeup signal to the sub-host. For this reason, it takes a longer time until the host where the device is to be activated is actually activated.
[0103]
On the other hand, in the USB system 52 of the sixth embodiment, if the host using the device that has output the wakeup signal is a subhost, the wakeup signal is separately transmitted directly to the subhost. The subhost can be started up more quickly.
[0104]
(Seventh embodiment)
FIG. 8 shows a seventh embodiment of the present invention. The same parts as those of the first embodiment are denoted by the same reference numerals and the description thereof is omitted. Only the different parts will be described below. In the eighth embodiment, only the printer 27 and the mobile phone device (A) 28 are connected as USB devices outside the communicator (hub device) 53. The communicator 53 is connected with three personal computers (B) 23 'to 25 (D)' as USB hosts.
[0105]
These personal computers (B) 23 'to 25 (D)' are all provided with sub-host controls 23g to 25g which are software provided only for the personal computer (A) 22 in the first embodiment. That is, the personal computers (B) 23 ′ to 25 (D) ′ are all configured to be main hosts.
[0106]
In the communicator 53, a host selector 54 is inserted between the upper port of the hub (device-side hub) 32 and the personal computers (B) 23 'to (D) 25'. The host selector 54 includes a selector (main host selection means) 54a and three hubs (host-side hubs) 54b to 54d corresponding to the three personal computers (B) 23 'to (D) 25'. .
[0107]
The upper ports of the hubs 54b to 54d are connected to the hosts 23c to 25c of the personal computers (B) 23 'to (D) 25, respectively. One of the lower ports of the hubs 54b to 54d is connected to the three host terminals of the selector 54a, and the other is connected to the functions 33b to 33d of the multi-function unit 33. The device side terminal of the selector 54 a is connected to the upper port of the hub 32.
[0108]
The selector 54a of the host selector 54 monitors the SOF packets output from the personal computers (B) 23 'to (D) 25' via the hubs 54b to 54d, thereby allowing the personal computers (B) 23 'to (D). It is configured to determine the state of '25 (active / suspend) and selectively connect one of the lower ports of the hubs 54b to 54d to the upper port of the hub 32 according to those states. .
[0109]
Here, if the system is at least partially active, the output of the SOF packet is detected from one or more of the personal computers (B) 23 'to (D) 25'. For example, it is assumed that the selector 54a is configured by default to connect the lower port of the hub 54b to the upper port of the hub 32 and select the personal computer (B) 23 'as the main host. In this case, at least the main host personal computer (B) 23 'outputs an SOF packet, and the other sub-hosts personal computer (C) 24' and personal computer (D) 25 'use the device. If so, they also output SOF packets. Further, when the entire system is in the suspend mode, no SOF packet output is detected.
[0110]
The selector 54a switches the main host in the following cases, for example.
(1) The SOF packet is not output from the personal computer (B) 23 'while the host selector 53 is active.
(2) When the hub 54b detects that the personal computer (B) 23 'has been disconnected from the hub 54b due to the change in the bus level from the idle state, and a notification to that effect is sent to the selector 54a. .
The above constitutes the USB system 55.
[0111]
Next, the operation of the seventh embodiment will be described. The personal computer (B) 23 'of the main host, via the hub 54b of the host selector 54, the selector 54a, and the hub 32, similarly to the first embodiment, the printer 27, the mobile phone device (A) 28, and the multi-device. The enumeration is performed for the function unit 33, and the function 33b of the multi-function unit 33 is also enumerated through the other lower port of the hub 54b.
[0112]
For example, it is assumed that the device address of the multifunction unit 33 is set to “3” and the endpoint address of the function 33a is set to “1” via the hub 32. Further, it is assumed that the function 33b is set to the device address “4” and the endpoint address “1” as a single device via the hub 54b. The personal computers (C) 24 'and (D) 25' enumerate the functions 33c and 33d of the multi-function unit 33 through the hubs 54c and 54d, respectively.
[0113]
For example, when the mobile phone device (A) 28 is of the W-CDMA system, it is possible to simultaneously connect three lines for one mobile phone device (A) 28 (multi call). When the personal computer (B) 23 ′ as the main host uses the mobile phone device (A) 28, the mobile phone device (A) for the function 33 b (address “4-1”) of the multi-function unit 33 is used. 28 (for example, address “2-1”) is used. The use request is stored in the buffer of the control unit 33e, and when there is a data transmission request to the function 33a (address "1-3") by the personal computer (B) 23 ', the personal computer (B) 23' is requested by the function 33a. Sent to.
[0114]
If the personal computer (B) 23 'analyzes the header and data and determines that the function 33b is a request for using the mobile phone device (A) 28, the personal computer (B) 23' assigns the right to use the mobile phone device (A) 28 to its own personal computer ( B) Set to 23 '.
[0115]
When the mobile phone device (A) 28 receives the data received from the call destination, the mobile phone device (A) 28 transfers the received data to the personal computer (B) 23 '. Then, the personal computer (B) 23 'transfers the transferred data to the function 33b. The data transferred to the function 33b is finally passed to the personal computer (B) 23 'via the hub 54b. That is, the personal computer (B) 23 'as the main host communicates via the function 33a in the same manner as the other sub-hosts instead of directly communicating via the hub 32 when using the device. Also, the personal computers (C) 24 'and (D) 25' as sub-hosts are different from each other by simultaneously using the cellular phone device (A) 28 via the personal computer (B) 23 'as in the first embodiment. It is possible to communicate with a communication partner.
[0116]
Here, as described above, it is assumed that the selector 54a of the host selector 54 detects the stop of the function of the personal computer (B) 23 '. Then, the selector 54a switches the internal connection so that the upper port of the hub 32 is connected to the lower port of the hub 54c. Then, the personal computer (C) 24 ′ connected to the upper port of the hub 54 c performs new enumeration so that all devices of the USB system 54 can be directly recognized via the hub 32. Thus, it functions as a new main host of the USB system 54 in place of the personal computer (B) 23 '.
[0117]
As described above, according to the seventh embodiment, when the selector 54a detects that the current main host is in an unusable state, the data is set so that any one of the sub-hosts becomes a new main host. Or switch the signal flow. That is, in the USB system, since one host manages all communications, the function of the entire system stops when the function stops due to, for example, a failure of the host. Therefore, in the configuration as in the first to sixth embodiments, when the function of the main host is stopped, the other sub-hosts cannot use the device at all.
[0118]
Therefore, the host selector 54 selects any one of the other sub-hosts as a new main host when the current main host becomes unusable, so that the other sub-hosts continue to use the device. And the reliability of the system can be improved.
[0119]
Further, the host selector 54 is connected to all the devices at one lower side port and the lower side port of the hubs 54b to 54d arranged corresponding to the personal computers (B) 23 'to (D) 25'. The selector 54a is disposed between the other lower side port of each of the hubs 54b to 54d and the upper side port of the hub 32, so that the lower side of the hubs 54b to 54d. Any one of the ports is selectively connected to the upper port of the hub 32 according to a predetermined condition.
[0120]
That is, any one of the personal computers (B) 23 ′ to (D) 25 ′ corresponding to the hub connected to the upper port of the hub 32 directly communicates with all devices connected to the lower port of the hub 32. Can function as a main host. Further, the other hosts are connected to the multi-function unit 33 via the corresponding hubs, and thus are positioned as devices of the USB system 55 via the multi-function unit 33. Therefore, a new main host can be selected with a simple configuration.
[0121]
The present invention is not limited to the embodiments described above and illustrated in the drawings, and the following modifications or expansions are possible.
The number of sub-hosts other than the main host is not limited to three, and may be one, two, or four or more.
For example, the inside of the multifunction unit 33 in the first embodiment may be configured as follows. The control unit 33e also outputs configuration information so that the end point address is set by the personal computer (A) 22 of the main host for the lower functions 33b to 33d in the enumeration. Then, it appears from the personal computer (A) 22 that there are three logical devices inside the multi-function unit 33 (except for the end point 0).
On the other hand, the personal computer (A) 22 performs configuration so that an address is assigned to each of the three logical devices. On the other hand, each of the personal computers (B) 23 to (D) 25 of the sub-host performs address assignment or the like independently for each corresponding logical device as in the first embodiment. Then, the control unit 33e controls relay between the main and sub hosts by using the set addresses, thereby managing data transfer and the like regarding a plurality of sub hosts. Even when configured in this manner, the same effects as those of the first embodiment can be obtained.
[0122]
Further, in the first embodiment, the personal computer (A) 22 performs only the function of managing the use of each device by the other personal computers (B) 23 to (D) 25 without using the device itself. Also good.
In the fifth embodiment, the main host may be provided separately from the handset 47, and the handset 47 may be configured as a USB device.
In the sixth embodiment, the form in which the wakeup detection unit 51 outputs the detection signals WS0 to WS4 to the control unit 33Be is also configured to output each detection signal directly to the control unit 33Be via a parallel signal line. good.
In the sixth or seventh embodiment, the I / F units 35 to 37 are arranged in the communicator 31B as in the second embodiment, or the interface is provided in the communicator 31B as in the third embodiment. The I / O unit 41 may be disposed. With such a configuration, when data is received from the outside via the BLUETOOTH or IrDA interface, the sub-host can be activated earlier even when a SIM card is inserted.
In the seventh embodiment, a new main host may be selected by outputting a command for abandoning the status of the main host from the main host to the selector 54a.
Further, the wakeup detection unit 51 of the sixth embodiment may be added to the configuration of the seventh embodiment.
In the seventh embodiment, the printer 27 may be deleted and the device may be only the mobile phone device (A) 28.
[Brief description of the drawings]
FIG. 1 is a functional block diagram showing a configuration of a USB system according to a first embodiment of the present invention.
Fig. 2 USB device state diagram
FIG. 3 is a view corresponding to FIG. 1 showing a second embodiment of the present invention.
FIG. 4 is a view corresponding to FIG. 1 showing a third embodiment of the present invention.
FIG. 5 is a view corresponding to FIG. 1 showing a fourth embodiment of the present invention.
FIG. 6 is a view corresponding to FIG. 1 showing a fifth embodiment of the present invention.
FIG. 7 is a view corresponding to FIG. 1 showing a sixth embodiment of the present invention.
FIG. 8 is a view corresponding to FIG. 1 showing a seventh embodiment of the present invention.
FIG. 9 is a view corresponding to FIG.
[Explanation of symbols]
21 is a USB system, 22 to 25 and 22 'to 25' are personal computers (hosts), 26 is an image scanner (device), 27 is a printer (device), 28 and 29 are mobile phone devices (devices), and 30 is a CCD camera. (Device), 31 is a communicator (hub device), 32 is a hub (device-side hub), 33 is a multi-function unit (sub-host management device), 33a is a function (main-side USB interface unit), and 33b to 33d are functions. (Sub-USB interface unit), 33e is a control unit (relay control unit), 33A and 33B are multi-function units (sub-host management devices), 33Ae is a control unit (relay control unit), and 33Be is a control unit (relay) Control unit, signal output means), 34 is a communicator (hub) ), 38 is a USB system, 40 is a communicator (hub device), 42 is a USB system, 43 is a communicator (hub device), 44 is a host function unit (host), 45 is a USB system, and 46 is a radio ( (Device), 47 is a navigation device (host), 48 is a handset (host), 49 is a USB system, 50 is a communicator (hub device), 51 is a wake-up detection unit (signal detection means, signal output means), 52 is A USB system, 53 is a communicator (hub device), 54 is a host selector, 54a is a selector (main host selection means), 54b to 54d are hubs (host side hub), and 55 is a USB system.

Claims (11)

USBインターフェイスを介してホストに接続される1つ以上のデバイスと、
前記デバイスの何れかを選択的に使用する複数のホストとを備え、
これら複数のホストの内の何れか1つが実質的なホストであるメインホストとなり、その他のホストがサブホストとなるように構成され、
前記サブホストにより前記デバイスに対して送信されるデータまたは信号を受信すると、それらを、前記メインホストによって定められる送信タイミングに基づき当該メインホストに送信すると共に、前記デバイスより、前記メインホストを介してサブホストに送信されるデータまたは信号を中継するサブホスト管理用デバイスと、
下位側ポートの1つに前記サブホスト管理用デバイスが接続されると共に、上位側ポートに前記メインホストが接続されるハブとを備え、
前記メインホストは、前記サブホストにより前記デバイスに対して送信されるデータまたは信号を一旦受付けてから、それらを対応するデバイスに対して転送し、デバイスから対応するサブホストに対して送信されるデータまたは信号を一旦受付けると対応するサブホストに対して転送することで、各サブホストによるデバイスの使用が排他的に行われるように制御するように構成されていることを特徴とするUSBシステム。
One or more devices connected to the host via a USB interface;
A plurality of hosts that selectively use any of the devices,
Any one of the plurality of hosts is configured as a main host that is a substantial host, and the other hosts are configured as sub-hosts.
When data or signals transmitted to the device are received by the sub-host, they are transmitted to the main host based on a transmission timing determined by the main host, and from the device via the main host, the sub-host A sub-host management device that relays data or signals sent to the
The sub-host management device is connected to one of the lower ports and a hub to which the main host is connected to the upper port;
The main host temporarily receives data or signals transmitted to the device by the sub-host, transfers them to the corresponding device, and transmits data or signals transmitted from the device to the corresponding sub-host. The USB system is configured to control the device to be used exclusively by each sub-host by transferring it to the corresponding sub-host once received.
前記メインホストは、自身も前記デバイスを必要に応じて使用するように構成されていることを特徴とする請求項1記載のUSBシステム。  The USB system according to claim 1, wherein the main host is configured to use the device as necessary. 前記サブホスト管理用デバイスは、
前記メインホストに対しデバイスとして通信を行うためのメイン側インターフェイス部と、
各サブホストの夫々に対しデバイスとして通信を行うための複数のサブ側インターフェイス部と、
前記メイン側インターフェイス部と前記サブ側インターフェイス部との間で転送されるデータまたは信号を中継する中継用制御部とを備えてなることを特徴とする請求項1または2記載のUSBシステム。
The sub-host management device is:
A main-side interface unit for communicating as a device with the main host;
A plurality of sub-side interface units for communicating as devices to each of the sub-hosts;
3. The USB system according to claim 1, further comprising a relay control unit that relays data or signals transferred between the main-side interface unit and the sub-side interface unit .
前記サブホスト管理用デバイスの中継用制御部は、各サブホストより送信されるデータを蓄積するためのバッファを備え、前記バッファに蓄積されたデータに識別用のヘッダを付して、前記メインホストに一括して送信し、
前記メインホストは、前記サブホスト管理用デバイスより送信されたデータに付されているヘッダに基づいて、対応するデバイスにデータを送信すると共に、前記デバイスより送信されたデータを対応するサブホストに送信することを特徴とする請求項3記載のUSBシステム。
The relay control unit of the sub-host management device includes a buffer for storing data transmitted from each sub-host, attaches an identification header to the data stored in the buffer, and batches the data to the main host. Then send
The main host transmits data to the corresponding device based on the header attached to the data transmitted from the sub-host management device, and transmits the data transmitted from the device to the corresponding sub-host. The USB system according to claim 3.
前記サブホスト管理用デバイスの中継用制御部は、
前記メインホストによって前記各サブ側インターフェイス部にも夫々アドレスが設定されるように制御すると共に、
サブホストとメインホストとによって各サブ側インターフェイス部に夫々設定される異なるアドレスによって両者間の中継を制御することを特徴とする請求項記載のUSBシステム。
The relay control unit of the sub-host management device is
The main host controls each sub-side interface unit to set an address, and
4. The USB system according to claim 3 , wherein relaying between the sub-host and the main host is controlled by different addresses respectively set in the sub-side interface units .
前記デバイスより前記メインホストに対して送信されるウエイクアップ信号を検出する信号検出手段と、
この信号検出手段によって検出されたウエイクアップ信号を出力したデバイスを使用しているホストがサブホストである場合は、当該サブホストに対して前記ウエイクアップ信号を別途送信する信号送信手段とを備えていることを特徴とする請求項1乃至5の何れかに記載のUSBシステム。
Signal detection means for detecting a wake-up signal transmitted from the device to the main host;
When the host using the device that has output the wakeup signal detected by the signal detection means is a sub-host, it has signal transmission means for separately transmitting the wake-up signal to the sub-host. The USB system according to any one of claims 1 to 5 .
請求項1乃至6の何れかに記載のUSBシステムにおいて使用されることを特徴とするサブホスト管理用デバイス。A sub-host management device used in the USB system according to claim 1. 請求項7記載のサブホスト管理用デバイスと、A sub-host management device according to claim 7,
請求項1乃至6の何れかに記載のUSBシステムにおいて使用されるハブとを同一の筐体内に配置して構成されることを特徴とするハブ装置。A hub device comprising: a hub used in the USB system according to claim 1 arranged in the same housing.
前記メインホストをも同一の筐体内に配置して構成されることを特徴とする請求項8記載のハブ装置。 9. The hub device according to claim 8, wherein the main host is also arranged in the same casing . 請求項1乃至6の何れかに記載のUSBシステムにおいて使用され、Used in the USB system according to any one of claims 1 to 6,
前記メインホストが使用不能の状態となったことを検出すると、前記サブホストの内の何れか1つが新たなメインホストとなるようにデータまたは信号の流れを切り換えるメインホスト選択手段を備えることを特徴とするUSBホストセレクタ。When it is detected that the main host is in an unusable state, it comprises main host selection means for switching the flow of data or signals so that any one of the sub-hosts becomes a new main host. USB host selector.
各ホストに対応して配置される複数のホスト側ハブと、
下位側ポートに全てのデバイスが接続されるデバイス側ハブと、
記複数のホスト側ハブ夫々の一方の下位側ポートと、前記デバイス側ハブの上位側ポートとの間に配置される前記サブホスト管理用デバイスとを備え、
前記メインホスト選択手段は、前記複数のホスト側ハブ夫々の他方の下位側ポートと前記デバイス側ハブの上位側ポートとの間に配置され、前記複数の下位側ポートの何れか1つを所定の条件に従って前記上位側ポートに選択的に接続するように構成されていることを特徴とする請求項10記載のUSBホストセレクタ。
A plurality of host-side hubs arranged corresponding to each host;
A device-side hub where all devices are connected to the lower port, and
Before SL includes a plurality of host-side hub respective one of the lower ports, and the sub-host management device disposed between the upper port of the device-side hub,
The main host selection means is disposed between the other lower side port of each of the plurality of host side hubs and the upper side port of the device side hub, and selects any one of the plurality of lower side ports as a predetermined number. 11. The USB host selector according to claim 10, wherein the USB host selector is configured to selectively connect to the upper port according to a condition .
JP2000068445A 2000-03-13 2000-03-13 USB system, sub-host management device, hub device, and USB host selector Expired - Fee Related JP4432191B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000068445A JP4432191B2 (en) 2000-03-13 2000-03-13 USB system, sub-host management device, hub device, and USB host selector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000068445A JP4432191B2 (en) 2000-03-13 2000-03-13 USB system, sub-host management device, hub device, and USB host selector

Publications (2)

Publication Number Publication Date
JP2001256172A JP2001256172A (en) 2001-09-21
JP4432191B2 true JP4432191B2 (en) 2010-03-17

Family

ID=18587500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000068445A Expired - Fee Related JP4432191B2 (en) 2000-03-13 2000-03-13 USB system, sub-host management device, hub device, and USB host selector

Country Status (1)

Country Link
JP (1) JP4432191B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176226B2 (en) 2001-11-09 2012-05-08 Aten International Co., Ltd. KVMP switch allowing asynchronous and synchronous switching for console devices and peripheral devices among different computers
US6957287B2 (en) 2001-11-09 2005-10-18 Aten International Co., Ltd. Asynchronous/synchronous KVMP switch for console and peripheral devices
TWI270786B (en) * 2002-04-10 2007-01-11 Avision Inc Scanner capable of being a universal serial bus host
WO2005024639A1 (en) * 2003-08-28 2005-03-17 Fujitsu Limited Usb controller, electronic computer, and usb connection control method
JP2005209057A (en) 2004-01-26 2005-08-04 Matsushita Electric Ind Co Ltd Data communication method
EP1638264A1 (en) * 2004-09-15 2006-03-22 Axalto S.A. Wireless USB network adapter with smart card
JP2006202234A (en) * 2005-01-24 2006-08-03 Olympus Imaging Corp Usb communication path switching controller
US7769940B2 (en) 2008-02-13 2010-08-03 Belkin International, Inc. Switching device configured to couple a first computer to a first peripheral device and one or more second peripheral devices and method of manufacturing same
JP2011128741A (en) * 2009-12-16 2011-06-30 Hitachi Consumer Electronics Co Ltd Data transmission device and data transmission method
JP2017123117A (en) * 2016-01-08 2017-07-13 Kddi株式会社 Communication device, communication system, communication method, and program

Also Published As

Publication number Publication date
JP2001256172A (en) 2001-09-21

Similar Documents

Publication Publication Date Title
KR100536544B1 (en) A method and apparatus for peer to peer communication over an inherently master slave interface
TWI384849B (en) Subscriber identity module card control apparatus and control method
US7305511B2 (en) Providing both wireline and wireless connections to a wireline interface
JP4432191B2 (en) USB system, sub-host management device, hub device, and USB host selector
JP5076351B2 (en) Electronic device, data transfer control method thereof, data transfer control program thereof, and data transfer system
US20040133722A1 (en) Communication interface for an electronic device
JP2002288112A (en) Communication control semiconductor device and interface system
JP3789725B2 (en) Communication device
CN101369948B (en) Communication system implementing low-power consumption
JP3937434B2 (en) Electronic equipment with a communication controller that can selectively set the roles of both the host and the device
JP2005086692A (en) Gateway apparatus
US6714990B1 (en) Communication system and data adapter
CN115733549A (en) PCIE network card and switching method of interface modes thereof, electronic equipment and storage medium
JP2002354063A (en) Radio equipment, wireless card, information processor and device driver loading method
JP2004328262A (en) Usb hub device, usb peripheral device, and data transmission and reception method
US20030172171A1 (en) Communication control unit and information terminal unit equipped with the same
US9619005B2 (en) Apparatus and method for saving power of USB device
CN210666764U (en) Communication equipment and communication device based on I3C bus
KR101389077B1 (en) Arraratus and method for controlling to drive from idle status to active status of usb-device supported selective suspend mode in network system
JP2004302778A (en) Interface device
KR100446938B1 (en) Interface structure and interface method between personal information system circuit and wireless communication system circuit in a mobile information appliance.
JP3646325B2 (en) Wireless data transmission device
JP3419385B2 (en) Monitor system for portable wireless telephone device, portable wireless telephone device, monitor device, and method for monitoring portable wireless telephone device
KR100548238B1 (en) Internet protocol phone using address with personal computer and control method thereof
JP3533419B2 (en) Communication device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090714

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090908

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

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

R151 Written notification of patent or utility model registration

Ref document number: 4432191

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20130108

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140108

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees