JP2004094852A - Resume control device for universal serial bus (usb) - Google Patents

Resume control device for universal serial bus (usb) Download PDF

Info

Publication number
JP2004094852A
JP2004094852A JP2002258569A JP2002258569A JP2004094852A JP 2004094852 A JP2004094852 A JP 2004094852A JP 2002258569 A JP2002258569 A JP 2002258569A JP 2002258569 A JP2002258569 A JP 2002258569A JP 2004094852 A JP2004094852 A JP 2004094852A
Authority
JP
Japan
Prior art keywords
signal line
usb
pull
peripheral device
resume
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2002258569A
Other languages
Japanese (ja)
Other versions
JP4076408B2 (en
Inventor
Yuji Mizoguchi
溝口 裕二
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.)
Kawasaki Microelectronics Inc
Original Assignee
Kawasaki Microelectronics Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawasaki Microelectronics Inc filed Critical Kawasaki Microelectronics Inc
Priority to JP2002258569A priority Critical patent/JP4076408B2/en
Publication of JP2004094852A publication Critical patent/JP2004094852A/en
Application granted granted Critical
Publication of JP4076408B2 publication Critical patent/JP4076408B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a resume control device for a USB capable of recovering from a suspend state to a normal operation state without re-inserting a cable or connector of the USB even in a peripheral device requiring a long time for resuming. <P>SOLUTION: The peripheral device electrically connects a first pull-up means to a signal line and electrically detaches a second pull-up means from the signal line when in a suspend state. When receiving a signal instructing from a host device to resume, it is controlled that the second pull-up means is electrically connected to the signal line in a state that the first pull-up means is electrically connected to the signal line, and that the second pull-up means is electrically detached from the signal line after the resuming is completed. The host device detects a voltage of the signal line and changes a maximum waiting time until the peripheral device resumes based on the detected voltage of the signal line. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、USB(Universal Serial Bus)を介してホストデバイスに接続された周辺デバイスが、サスペンド状態(休止状態)から通常動作状態へレジューム(復帰)する際の動作を制御するUSB用レジュームコントロール装置に関するものである。
【0002】
【従来の技術】
USBは、例えばパーソナルコンピュータ等のホストデバイスと、マウスやキーボード等の周辺デバイスとをシリアルに接続する規格の1つである。現在では、USB1.1の規格をより高速化したUSB2.0の規格に準拠したものが製品化されている。ホストデバイスと周辺デバイスは、正側および負側の信号ライン(D+、D−)、電源ライン(VBUS)およびグランドライン(GND)の4本の信号線(ケーブル経由もしくは直結)で接続される。
【0003】
USBを介してホストデバイスに接続された周辺デバイスが所定の一定時間使用されていない場合、消費電力を削減するために、ホストデバイスから周辺デバイスに対し、信号ライン(D+、D−)を介してサスペンド状態(休止状態)に移行するように指示する信号が送信される。この信号に従って、周辺デバイスはサスペンド状態に移行する。
【0004】
一方、ホストデバイスがサスペンド状態の周辺デバイスを使用する場合には、ホストデバイスからサスペンド状態の周辺デバイスに対し、信号ライン(D+、D−)を介して通常動作状態に復帰するように指示する信号が送信される。この信号に従って、周辺デバイスは、サスペンド状態から通常動作状態へレジューム(復帰)する。
【0005】
USBの規格では、ホストデバイスに接続された周辺デバイスがサスペンド状態から通常動作状態へレジュームするまでの最大待ち時間が規定されている。これにより、例えばホストデバイスに接続された周辺デバイスがサスペンド状態となった後、何らかの理由によって動作不能の状態に陥っている場合等に、周辺デバイスが通常動作状態にレジュームするのを、ホストデバイスが待ち続けるのを防止している。
【0006】
ところが、周辺デバイスの種類やそのサスペンドの状態によっては、通常動作状態にレジュームするまでに、USBの規格におけるレジュームの最大待ち時間よりも長時間を要するものもある。例えば、発振回路を搭載する周辺デバイスでは、発振回路の発振周波数が安定するまでに所定の時間を必要とする。また、例えばハードディスク等の周辺デバイスでは、ディスクの回転が安定するまでに所定の時間を必要とする。
【0007】
ホストデバイスは、レジュームの最大待ち時間内に、周辺デバイスから通常動作状態へレジュームしたことを通知する信号が送信されてこないと、周辺デバイスが動作不能であると判断する。このため、レジュームの最大待ち時間を超えてもレジュームが完了しない周辺デバイスは、通常動作状態へレジュームすることができなかった。
【0008】
このような周辺デバイスの場合、従来は、ホストデバイスからUSBのケーブルやコネクタを抜いて周辺デバイスを取り外した後、再度挿し直して周辺デバイスをホストデバイスに再接続させる必要があり、大変面倒であるという問題があった。
【0009】
【発明が解決しようとする課題】
本発明の目的は、前記従来技術に基づく問題点を解消し、レジュームに長時間を要する周辺デバイスであっても、USBのケーブルやコネクタを挿し直すことなく、サスペンド状態から通常動作状態へ復帰させることができるUSB用レジュームコントロール装置を提供することにある。
【0010】
【課題を解決するための手段】
上記目的を達成するために、本発明は、USBを介して接続されたホストデバイスと周辺デバイスにおいて、当該周辺デバイスがサスペンド状態から通常動作状態へレジュームする際の動作を制御するUSB用レジュームコントロール装置であって、
前記ホストデバイスは、前記USBの信号ラインに接続され、当該信号ラインの電圧を検出する電圧検出手段と、この電圧検出手段により検出された前記信号ラインの電圧に基づいて、前記周辺デバイスがレジュームするまでの最大待ち時間を変更する待ち時間変更手段とを備えることを特徴とするUSB用レジュームコントロール装置を提供するものである。
【0011】
また、本発明は、USBを介して接続されたホストデバイスと周辺デバイスにおいて、当該周辺デバイスがサスペンド状態から通常動作状態へレジュームする際の動作を制御するUSB用レジュームコントロール装置であって、
前記周辺デバイスは、前記USBの信号ラインに物理的に並列に接続された第1および第2のプルアップ手段と、サスペンド状態の時に、前記第1のプルアップ手段を前記信号ラインに電気的に接続し、かつ前記第2のプルアップ手段を前記信号ラインから電気的に切り離し、前記ホストデバイスからレジュームを指示する信号を受信した時に、前記第1のプルアップ手段を前記信号ラインに電気的に接続したままの状態で前記第2のプルアップ手段を前記信号ラインに電気的に接続し、レジュームが完了した後で前記第2のプルアップ手段を前記信号ラインから電気的に切り離すように制御する制御手段とを備えることを特徴とするUSB用レジュームコントロール装置を提供する。
【0012】
【発明の実施の形態】
以下に、添付の図面に示す好適実施形態に基づいて、本発明のUSB用レジュームコントロール装置を詳細に説明する。
【0013】
図1は、本発明のUSB用レジュームコントロール装置の一実施形態の構成概略図である。本実施形態のUSB用レジュームコントロール装置10は、パーソナルコンピュータ等のホストデバイス12と、マウスやキーボード等のように、USB(ケーブル経由もしくは直結)を介してホストデバイス12に接続される周辺デバイス14とを備えている。ホストデバイス12と周辺デバイス14との間は、図中点線で分離して示されている。
【0014】
USB用レジュームコントロール装置10において、ホストデバイス12は、コンパレータ16と、待ち時間変更回路18とを備えている。
【0015】
ホストデバイス12において、コンパレータ16は、USBの正側の信号ライン(D+)に接続されており、基準電圧と比較することにより正側の信号ライン(D+)の電圧を検出して、その検出結果となる信号S1,S2を出力する。
【0016】
また、待ち時間変更回路18は、コンパレータ16に接続されており、コンパレータ16の検出結果S1,S2すなわち正側の信号ライン(D+)の電圧に基づいて、周辺デバイス14がレジュームするまでの最大待ち時間を変更する。より具体的には、待ち時間変更回路18は、検出結果S1,S2に基づいて、USBの規格に準拠したレジュームの最大待ち時間と、本発明に従って延長されたレジュームの最大待ち時間とを切り替える。
【0017】
一方、USB用レジュームコントロール装置10において、周辺デバイス14は、2つのプルアップ抵抗(R1,R2)20,22と、クロックカウンタ24とを備えている。
【0018】
周辺デバイス14において、プルアップ抵抗20は、信号ライン(D+)と周辺デバイスの内部回路(図示省略)との間に接続され、また、プルアップ抵抗22は、信号ライン(D+)とクロックカウンタ24との間に接続されている。これらのプルアップ抵抗20,22は、プルアップコントロールライン1,2の状態に応じて、正側の信号ライン(D+)に対する電気的な接続/非接続が制御される。
【0019】
すなわち、プルアップ抵抗20,22は、それぞれプルアップコントロールライン1,2が、例えば電源の電圧になると正側の信号ライン(D+)に電気的に接続され、フローティング状態になると電気的に切り離される。
【0020】
また、クロックカウンタ24は、周辺デバイス14の内部回路(図示省略)に接続されている。クロックカウンタ24は、レジューム中において、プルアップコントロールライン2を電源の電圧とし、レジュームした後、周辺デバイス14の内部で発生されるクロック信号をカウントし、そのカウント数が所定の一定値になると、プルアップコントロールライン2をフローティング状態にするよう制御する。
【0021】
なお、図1に示すUSB用レジュームコントロール装置10では、ホストデバイス12および周辺デバイス14の両方において、本発明の特徴的な構成要素だけを示している。ホストデバイス12および周辺デバイス14は、それぞれ図1に示す以外の各種の構成要素を含むのは当然のことである。また、図示した構成要素以外の構成要素は何ら限定されず、必要に応じて、どのような構成要素を含んでいてもよい。
【0022】
コンパレータ16の具体的な回路構成は何ら限定されない。また、正側の信号ライン(D+)の電圧を検出する手段はコンパレータ16に限定されるわけではなく、正側の信号ライン(D+)の電圧を検出可能なものであれば、従来公知のどのような回路でも利用可能である。また、待ち時間変更回路18もその具体的な回路構成は何ら限定されず、同等の機能を果すどのような回路を使用してもよい。
【0023】
プルアップ抵抗20は、従来公知のUSBにおいても使用されているものである。これに対し、プルアップ抵抗22は、本願発明に特有の構成要素であり、1つないしは複数の抵抗を使用してもよい。プルアップ抵抗22を複数の抵抗で構成することにより、コンパレータ16により検出される、正側の信号ライン(D+)の電圧の種類をさらに多くすることができ、最大待ち時間の切り替えをより多くの種類の中から選択することも可能になる。
【0024】
また、クロックカウンタ24の具体的な回路構成も何ら限定されず、従来公知のカウンタ回路を用いることができる。また、クロックカウンタ24を使用することにも限定されず、同等の機能を果すどのような回路を使用してもよい。
【0025】
次に、本発明のUSB用電源コントロール装置10の動作を説明する。
【0026】
USBの規格では、転送速度の違いに応じて、ロースピード(LS)、フルスピード(FS)、ハイスピード(HS)の3種類の動作モードがある。FSモードでは、周辺デバイス14のプルアップ抵抗20は、正側の信号ライン(D+)に常に電気的に接続されたままの状態にされる。一方、HSモードでは、周辺デバイス14がサスペンド状態である場合を除いて、プルアップ抵抗20は正側の信号ライン(D+)から電気的に切り離される。
【0027】
本実施形態の場合、図2の表に示すように、プルアップ抵抗20がオフ(すなわち、電気的に正側の信号ライン(D+)から切り離されている場合)、かつプルアップ抵抗22もオフの場合の、正側の信号ライン(D+)の電圧をV0とする。この場合、コンパレータ16の検出結果S1,S2はL,Lとなり、周辺デバイス14がホストデバイス12に接続されていない状態、または通常動作状態(HSモード)であることを意味するものとする。
【0028】
また、プルアップ抵抗20がオン(すなわち、電気的に正側の信号ライン(D+)に接続されている場合)、プルアップ抵抗22がオフの場合の、正側の信号ライン(D+)の電圧をV1とする。この場合、コンパレータ16の検出結果S1,S2はH,Lとなり、周辺デバイス14は、通常動作状態(FSモード)、またはサスペンド状態であることを意味するものとする。
【0029】
また、プルアップ抵抗20,22が共にオンの場合の、正側の信号ライン(D+)の電圧をV2とする。この場合のコンパレータ16の検出結果S1,S2はH,Hとなり、周辺デバイス14がレジューム中であることを意味するものとする。なお、図2の表に示す関係に限定されず、周辺デバイス14の状態(すなわち、正側の信号ライン(D+)の電圧)に対応するコンパレータ16の検出結果S1,S2の状態の割り当ては自由に変更してもよい。
【0030】
周辺デバイス14が、USBを介してホストデバイス12に物理的に接続されると、プルアップコントロールライン1の状態が制御され、プルアップ抵抗20が正側の信号ライン(D+)に電気的に接続される。これにより、正側の信号ライン(D+)の電圧はV0からV1へ変化する。ホストデバイス12は、コンパレータ16により、正側の信号ライン(D+)の電圧V1を検出し、周辺デバイス14が接続されたことを認識する。
【0031】
プルアップ抵抗20は、上記の通り、FSモードの場合には、ホストデバイス12と周辺デバイス14との間の接続が確立された後も、正側の信号ライン(D+)に電気的に接続されたままの状態にされる。これに対し、HSモードの場合、プルアップ抵抗20は、ホストデバイス12と周辺デバイス14との間の接続が確立された後、正側の信号ライン(D+)から電気的に切り離される。
【0032】
周辺デバイス14が使用されないまま所定の一定時間が経過すると、ホストデバイス12は、サスペンド状態へ移行するよう指示する信号を信号ライン(D+、D−)を介して周辺デバイス14へ送信する。この信号を受けて、周辺デバイス14はサスペンド状態へ移行する。サスペンド状態では、通常動作状態でのUSBの動作モードに関係なく、FSモードでの接続が維持される。すなわち、プルアップ抵抗20は、正側の信号ライン(D+)に電気的に接続される。
【0033】
その後、必要に応じて、ホストデバイス12から周辺デバイス14に対して、サスペンド状態から通常動作状態へレジュームするよう指示する信号が送信される。この時、周辺デバイス14では、クロックカウンタ24によりプルアップコントロールライン2の状態が制御され、プルアップ抵抗22が正側の信号ライン(D+)に電気的に接続される。これにより、正側の信号ライン(D+)の電圧はV2に変化する。
【0034】
ホストデバイス12は、コンパレータ16により、正側の信号ライン(D+)の電圧V2を検出し、周辺デバイス14が動作不能の状態ではなく、レジューム中であり、しかもレジュームに長時間が必要であることを認識する。そして、待ち時間変更回路18により、検出結果S1,S2=H,Hに基づいて、USBの規格に準拠したレジュームの最大待ち時間から、本発明に従って延長されたレジュームの最大待ち時間へ切り替える。
【0035】
これにより、周辺デバイス14は、所定の一定時間の後、タイムアウトになることなく、レジューム状態から通常動作状態へ移行する。すなわち、クロックカウンタ24は、あらかじめ設定されている所定のカウント数クロック信号をカウントした後、プルアップコントロールライン2の状態を制御し、プルアップ抵抗22は正側の信号ライン(D+)から電気的に切り離される。これにより、正側の信号ライン(D+)の電圧はV1に変化する。
【0036】
ホストデバイス12は、コンパレータ16により、正側の信号ライン(D+)の電圧V1を検出し、その電圧の変化から周辺デバイス14が通常動作状態に移行したことを認識する。その後、ホストデバイス12から周辺デバイスに対して、USBの動作モードを変更する信号が送信される。この信号に従って、周辺デバイス14は、ハイスピードモードの場合にはプルアップ抵抗20をオフし、それ以外の場合には現状を維持する。
【0037】
ホストデバイス12や周辺デバイス14は、通常、それぞれ独立した製品として販売される。従って、本発明を適用するホストデバイス12だけ、あるいは本発明を適用する周辺デバイス14だけでも、本発明の範疇に含まれることは言うまでもないことである。
【0038】
本発明を適用した周辺デバイスを、既存のUSB1.1および2.0の規格に準拠したホストデバイスに接続した場合、また、既存のUSB1.1および2.0の規格に準拠した周辺デバイスを、本発明を適用したホストデバイスに接続した場合、本発明を適用したホストデバイスおよび周辺デバイスは、既存のUSB1.1および2.0の規格に準拠したホストデバイスおよび周辺デバイスと全く同様に動作することが可能である。
【0039】
すなわち、本発明を適用したホストデバイスおよび周辺デバイスは、既存のUSB1.1および2.0の規格に準拠したホストデバイスおよび周辺デバイスと共存可能である。これに加え、本発明を適用したホストデバイス12に対して本発明を適用した周辺デバイス14を接続した場合には、レジュームの最大待ち時間を変更し、タイムアウトになることなく、周辺デバイスをレジュームさせることが可能になる。
【0040】
本発明は、基本的に以上のようなものである。
以上、本発明のUSB用レジュームコントロール装置について詳細に説明したが、本発明は上記実施形態に限定されず、本発明の主旨を逸脱しない範囲において、種々の改良や変更をしてもよいのはもちろんである。
【0041】
【発明の効果】
以上詳細に説明した様に、本発明のUSB用レジュームコントロール装置において、周辺デバイスは、サスペンド状態の時に、第1のプルアップ手段を信号ラインに電気的に接続し、かつ第2のプルアップ手段を信号ラインから電気的に切り離し、ホストデバイスからレジュームを指示する信号を受信した時に、第1のプルアップ手段を信号ラインに電気的に接続したままの状態で第2のプルアップ手段を信号ラインに電気的に接続し、レジュームが完了した後で第2のプルアップ手段を信号ラインから電気的に切り離すように制御する。また、ホストデバイスは、信号ラインの電圧を検出し、検出された信号ラインの電圧に基づいて、周辺デバイスがレジュームするまでの最大待ち時間を変更する。
これにより、本発明のUSB用レジュームコントロール装置によれば、ホストデバイスは、周辺デバイスが、単にレジュームに時間がかかっているだけなのか、動作不能に陥っているのかを判断することができるので、ホストデバイスは、周辺デバイスがレジュームに長時間を要するものであっても、USBのケーブルやコネクタを挿し直すことなく、サスペンド状態から通常動作状態へ復帰させることができる。
【図面の簡単な説明】
【図1】本発明のUSB用レジュームコントロール装置の一実施形態の構成概略図である。
【図2】図1に示すUSB用レジュームコントロール装置において、コンパレータの出力結果S1,S2と周辺デバイスの状態との関係を表す表である。
【符号の説明】
10 USB用レジュームコントロール装置
12 ホストデバイス
14 周辺デバイス
16 コンパレータ
18 待ち時間変更回路
20,22 プルアップ抵抗
24 クロックカウンタ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a USB resume control device that controls an operation when a peripheral device connected to a host device via a USB (Universal Serial Bus) resumes (returns) from a suspended state (hibernation state) to a normal operation state. It is about.
[0002]
[Prior art]
USB is one of the standards for serially connecting a host device such as a personal computer and peripheral devices such as a mouse and a keyboard. At present, a product conforming to the USB 2.0 standard, which is a faster version of the USB 1.1 standard, has been commercialized. The host device and the peripheral device are connected by four signal lines (via a cable or directly connected) of a positive side signal line and a negative side signal line (D +, D−), a power supply line (VBUS), and a ground line (GND).
[0003]
When the peripheral device connected to the host device via the USB has not been used for a predetermined period of time, in order to reduce power consumption, the host device sends the peripheral device via the signal lines (D +, D-) to the peripheral device. A signal for instructing a transition to a suspend state (pause state) is transmitted. According to this signal, the peripheral device shifts to the suspend state.
[0004]
On the other hand, when the host device uses the peripheral device in the suspended state, the host device instructs the peripheral device in the suspended state to return to the normal operation state via the signal lines (D +, D-). Is sent. According to this signal, the peripheral device resumes (returns) from the suspend state to the normal operation state.
[0005]
The USB standard defines a maximum waiting time for a peripheral device connected to a host device to resume from a suspended state to a normal operation state. This allows the host device to resume the normal operation state when the peripheral device connected to the host device is in an inoperable state for some reason after the peripheral device is suspended, for example. Prevents waiting.
[0006]
However, depending on the type of the peripheral device and its suspend state, it may take longer than the maximum wait time of the resume in the USB standard before resuming to the normal operation state. For example, a peripheral device having an oscillation circuit requires a predetermined time until the oscillation frequency of the oscillation circuit is stabilized. Further, for example, a peripheral device such as a hard disk requires a predetermined time until the rotation of the disk is stabilized.
[0007]
The host device determines that the peripheral device is not operable unless a signal notifying that the device has resumed the normal operation state is not transmitted from the peripheral device within the maximum wait time for the resume. For this reason, a peripheral device that does not complete the resume even after exceeding the maximum wait time for the resume cannot resume to the normal operation state.
[0008]
Conventionally, in the case of such a peripheral device, it is necessary to disconnect the USB cable or connector from the host device, remove the peripheral device, and then reconnect the peripheral device to reconnect the peripheral device to the host device, which is very troublesome. There was a problem.
[0009]
[Problems to be solved by the invention]
SUMMARY OF THE INVENTION An object of the present invention is to solve the problems based on the prior art, and to return from a suspended state to a normal operation state without re-plugging a USB cable or connector, even for a peripheral device requiring a long time to resume. It is an object of the present invention to provide a USB resume control device.
[0010]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides a USB resume control device for controlling the operation of a host device and a peripheral device connected via USB when the peripheral device resumes from a suspended state to a normal operation state. And
The host device is connected to the USB signal line, and detects voltage of the signal line. The peripheral device resumes based on the voltage of the signal line detected by the voltage detection unit. And a wait time changing means for changing a maximum wait time until the USB resume control device.
[0011]
The present invention is also a USB resume control device that controls an operation when the peripheral device resumes from a suspended state to a normal operation state in a host device and a peripheral device connected via USB.
The peripheral device includes first and second pull-up units physically connected in parallel to the USB signal line, and electrically connects the first pull-up unit to the signal line when in a suspend state. Connected, and electrically disconnects the second pull-up means from the signal line, and electrically connects the first pull-up means to the signal line when receiving a signal indicating resume from the host device. The second pull-up means is electrically connected to the signal line while being connected, and the control is performed such that the second pull-up means is electrically disconnected from the signal line after the resume is completed. A USB resume control device comprising a control unit.
[0012]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a USB resume control device of the present invention will be described in detail based on a preferred embodiment shown in the accompanying drawings.
[0013]
FIG. 1 is a schematic configuration diagram of one embodiment of a USB resume control device of the present invention. The USB resume control device 10 according to the present embodiment includes a host device 12 such as a personal computer and a peripheral device 14 such as a mouse or keyboard connected to the host device 12 via a USB (via a cable or directly connected). It has. The space between the host device 12 and the peripheral device 14 is shown separated by a dotted line in the figure.
[0014]
In the USB resume control device 10, the host device 12 includes a comparator 16 and a waiting time changing circuit 18.
[0015]
In the host device 12, the comparator 16 is connected to the USB positive signal line (D +), detects the voltage of the positive signal line (D +) by comparing with a reference voltage, and detects the detection result. And outputs signals S1 and S2.
[0016]
Further, the waiting time changing circuit 18 is connected to the comparator 16, and based on the detection results S1 and S2 of the comparator 16, ie, the voltage of the positive signal line (D +), the maximum waiting time until the peripheral device 14 resumes. Change the time. More specifically, the waiting time changing circuit 18 switches between the maximum waiting time of the resume conforming to the USB standard and the maximum waiting time of the resume extended according to the present invention, based on the detection results S1 and S2.
[0017]
On the other hand, in the USB resume control device 10, the peripheral device 14 includes two pull-up resistors (R1, R2) 20, 22 and a clock counter 24.
[0018]
In the peripheral device 14, the pull-up resistor 20 is connected between the signal line (D +) and an internal circuit (not shown) of the peripheral device, and the pull-up resistor 22 is connected to the signal line (D +) and the clock counter 24. Connected between. The electrical connection / disconnection of these pull-up resistors 20 and 22 to the positive signal line (D +) is controlled according to the state of the pull-up control lines 1 and 2.
[0019]
That is, the pull-up resistors 20 and 22 are electrically connected to the positive signal line (D +) when the pull-up control lines 1 and 2 reach, for example, a power supply voltage, and are electrically disconnected when the pull-up resistors 20 and 22 enter a floating state. .
[0020]
The clock counter 24 is connected to an internal circuit (not shown) of the peripheral device 14. The clock counter 24 uses the pull-up control line 2 as the power supply voltage during the resume, counts the clock signal generated inside the peripheral device 14 after the resume, and when the counted number reaches a predetermined constant value, The pull-up control line 2 is controlled to be in a floating state.
[0021]
In the USB resume control device 10 shown in FIG. 1, only the characteristic components of the present invention are shown in both the host device 12 and the peripheral device 14. It goes without saying that the host device 12 and the peripheral device 14 each include various components other than those shown in FIG. The components other than the illustrated components are not limited at all, and may include any components as necessary.
[0022]
The specific circuit configuration of the comparator 16 is not limited at all. Further, the means for detecting the voltage of the positive signal line (D +) is not limited to the comparator 16, and any conventionally known means that can detect the voltage of the positive signal line (D +) can be used. Such a circuit can also be used. Further, the specific circuit configuration of the waiting time changing circuit 18 is not limited at all, and any circuit having the same function may be used.
[0023]
The pull-up resistor 20 is used in a conventionally known USB. On the other hand, the pull-up resistor 22 is a component unique to the present invention, and one or a plurality of resistors may be used. By configuring the pull-up resistor 22 with a plurality of resistors, the number of types of voltages on the positive signal line (D +) detected by the comparator 16 can be further increased, and the switching of the maximum waiting time can be increased. It is also possible to select from the types.
[0024]
The specific circuit configuration of the clock counter 24 is not limited at all, and a conventionally known counter circuit can be used. Further, the present invention is not limited to the use of the clock counter 24, and any circuit having an equivalent function may be used.
[0025]
Next, the operation of the USB power supply control device 10 of the present invention will be described.
[0026]
According to the USB standard, there are three types of operation modes, low speed (LS), full speed (FS), and high speed (HS), according to the difference in transfer speed. In the FS mode, the pull-up resistor 20 of the peripheral device 14 is always electrically connected to the positive signal line (D +). On the other hand, in the HS mode, the pull-up resistor 20 is electrically disconnected from the positive signal line (D +) except when the peripheral device 14 is in the suspended state.
[0027]
In the case of the present embodiment, as shown in the table of FIG. 2, the pull-up resistor 20 is off (that is, when it is electrically disconnected from the positive signal line (D +)), and the pull-up resistor 22 is also off. In this case, the voltage of the positive signal line (D +) is V0. In this case, the detection results S1 and S2 of the comparator 16 are L and L, which means that the peripheral device 14 is not connected to the host device 12 or is in a normal operation state (HS mode).
[0028]
Further, when the pull-up resistor 20 is turned on (that is, when electrically connected to the positive signal line (D +)) and the pull-up resistor 22 is turned off, the voltage of the positive signal line (D +) is turned off. Is V1. In this case, the detection results S1 and S2 of the comparator 16 become H and L, which means that the peripheral device 14 is in the normal operation state (FS mode) or the suspended state.
[0029]
Further, the voltage of the signal line (D +) on the positive side when both the pull-up resistors 20 and 22 are on is V2. In this case, the detection results S1 and S2 of the comparator 16 become H and H, which means that the peripheral device 14 is in the process of resuming. It should be noted that the relationship is not limited to the relationship shown in the table of FIG. May be changed to
[0030]
When the peripheral device 14 is physically connected to the host device 12 via USB, the state of the pull-up control line 1 is controlled, and the pull-up resistor 20 is electrically connected to the positive signal line (D +). Is done. Thereby, the voltage of the signal line (D +) on the positive side changes from V0 to V1. The host device 12 detects the voltage V1 of the positive signal line (D +) by the comparator 16 and recognizes that the peripheral device 14 is connected.
[0031]
As described above, the pull-up resistor 20 is electrically connected to the positive signal line (D +) even after the connection between the host device 12 and the peripheral device 14 is established in the FS mode. It is left as it is. On the other hand, in the case of the HS mode, the pull-up resistor 20 is electrically disconnected from the positive signal line (D +) after the connection between the host device 12 and the peripheral device 14 is established.
[0032]
When a predetermined period of time elapses without using the peripheral device 14, the host device 12 transmits a signal instructing to shift to the suspend state to the peripheral device 14 via the signal lines (D +, D-). Upon receiving this signal, the peripheral device 14 shifts to the suspend state. In the suspend state, the connection in the FS mode is maintained regardless of the USB operation mode in the normal operation state. That is, the pull-up resistor 20 is electrically connected to the positive signal line (D +).
[0033]
Thereafter, if necessary, a signal instructing the peripheral device 14 to resume from the suspend state to the normal operation state is transmitted from the host device 12 to the peripheral device 14. At this time, in the peripheral device 14, the state of the pull-up control line 2 is controlled by the clock counter 24, and the pull-up resistor 22 is electrically connected to the positive signal line (D +). As a result, the voltage of the signal line (D +) on the positive side changes to V2.
[0034]
The host device 12 detects the voltage V2 of the signal line (D +) on the positive side by the comparator 16, and the peripheral device 14 is not in an inoperable state but is being resumed, and the resume requires a long time. Recognize. Then, based on the detection results S1, S2 = H, H, the waiting time changing circuit 18 switches from the maximum waiting time of the resume conforming to the USB standard to the maximum waiting time of the resume extended according to the present invention.
[0035]
Accordingly, the peripheral device 14 shifts from the resume state to the normal operation state after a predetermined period of time without timeout. That is, the clock counter 24 controls the state of the pull-up control line 2 after counting a predetermined count number of clock signals set in advance, and the pull-up resistor 22 is electrically connected to the positive side signal line (D +). Be cut off. As a result, the voltage of the positive signal line (D +) changes to V1.
[0036]
The host device 12 detects the voltage V1 of the positive signal line (D +) using the comparator 16, and recognizes that the peripheral device 14 has shifted to the normal operation state from the change in the voltage. Thereafter, a signal for changing the USB operation mode is transmitted from the host device 12 to the peripheral device. According to this signal, the peripheral device 14 turns off the pull-up resistor 20 in the high-speed mode, and otherwise maintains the current state.
[0037]
The host device 12 and the peripheral device 14 are usually sold as independent products. Therefore, it goes without saying that only the host device 12 to which the present invention is applied or only the peripheral device 14 to which the present invention is applied is included in the scope of the present invention.
[0038]
When a peripheral device to which the present invention is applied is connected to a host device that conforms to the existing USB 1.1 and 2.0 standards, and a peripheral device that conforms to the existing USB 1.1 and 2.0 standards, When connected to the host device to which the present invention is applied, the host device and the peripheral device to which the present invention is applied operate exactly the same as the host device and the peripheral device conforming to the existing USB 1.1 and 2.0 standards. Is possible.
[0039]
That is, the host device and the peripheral device to which the present invention is applied can coexist with the host device and the peripheral device conforming to the existing USB 1.1 and 2.0 standards. In addition, when the peripheral device 14 to which the present invention is applied is connected to the host device 12 to which the present invention is applied, the maximum wait time of the resume is changed, and the peripheral device is resumed without timeout. It becomes possible.
[0040]
The present invention is basically as described above.
As described above, the USB resume control device of the present invention has been described in detail. However, the present invention is not limited to the above embodiment, and various improvements and modifications may be made without departing from the gist of the present invention. Of course.
[0041]
【The invention's effect】
As described in detail above, in the USB resume control device of the present invention, the peripheral device electrically connects the first pull-up means to the signal line and sets the second pull-up means in the suspend state. Is electrically disconnected from the signal line, and when a signal indicating a resume is received from the host device, the second pull-up means is electrically connected to the signal line while the first pull-up means is still electrically connected to the signal line. And electrically disconnects the second pull-up means from the signal line after the resume is completed. Further, the host device detects the voltage of the signal line, and changes the maximum waiting time until the peripheral device resumes based on the detected voltage of the signal line.
Thus, according to the USB resume control device of the present invention, the host device can determine whether the peripheral device is simply taking a long time to resume or has become inoperable. The host device can return from the suspended state to the normal operation state without re-plugging the USB cable or connector even if the peripheral device requires a long time to resume.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram of one embodiment of a USB resume control device of the present invention.
FIG. 2 is a table showing a relationship between output results S1 and S2 of comparators and states of peripheral devices in the USB resume control device shown in FIG. 1;
[Explanation of symbols]
Reference Signs List 10 Resume control device for USB 12 Host device 14 Peripheral device 16 Comparator 18 Waiting time change circuit 20, 22, Pull-up resistor 24 Clock counter

Claims (2)

USBを介して接続されたホストデバイスと周辺デバイスにおいて、当該周辺デバイスがサスペンド状態から通常動作状態へレジュームする際の動作を制御するUSB用レジュームコントロール装置であって、
前記ホストデバイスは、前記USBの信号ラインに接続され、当該信号ラインの電圧を検出する電圧検出手段と、この電圧検出手段により検出された前記信号ラインの電圧に基づいて、前記周辺デバイスがレジュームするまでの最大待ち時間を変更する待ち時間変更手段とを備えることを特徴とするUSB用レジュームコントロール装置。
A USB resume control device for controlling an operation when the peripheral device resumes from a suspended state to a normal operation state in a host device and a peripheral device connected via a USB,
The host device is connected to the USB signal line, and detects voltage of the signal line. The peripheral device resumes based on the voltage of the signal line detected by the voltage detection unit. And a waiting time changing means for changing a maximum waiting time until the resume control device for USB.
USBを介して接続されたホストデバイスと周辺デバイスにおいて、当該周辺デバイスがサスペンド状態から通常動作状態へレジュームする際の動作を制御するUSB用レジュームコントロール装置であって、
前記周辺デバイスは、前記USBの信号ラインに物理的に並列に接続された第1および第2のプルアップ手段と、サスペンド状態の時に、前記第1のプルアップ手段を前記信号ラインに電気的に接続し、かつ前記第2のプルアップ手段を前記信号ラインから電気的に切り離し、前記ホストデバイスからレジュームを指示する信号を受信した時に、前記第1のプルアップ手段を前記信号ラインに電気的に接続したままの状態で前記第2のプルアップ手段を前記信号ラインに電気的に接続し、レジュームが完了した後で前記第2のプルアップ手段を前記信号ラインから電気的に切り離すように制御する制御手段とを備えることを特徴とするUSB用レジュームコントロール装置。
A USB resume control device for controlling an operation when the peripheral device resumes from a suspended state to a normal operation state in a host device and a peripheral device connected via a USB,
The peripheral device includes first and second pull-up units physically connected in parallel to the USB signal line, and electrically connects the first pull-up unit to the signal line when in a suspend state. Connected, and electrically disconnects the second pull-up means from the signal line, and electrically connects the first pull-up means to the signal line when receiving a signal indicating resume from the host device. The second pull-up means is electrically connected to the signal line while being connected, and the control is performed such that the second pull-up means is electrically disconnected from the signal line after the resume is completed. A resume control device for USB, comprising: a control unit.
JP2002258569A 2002-09-04 2002-09-04 Resume control device for USB Expired - Fee Related JP4076408B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002258569A JP4076408B2 (en) 2002-09-04 2002-09-04 Resume control device for USB

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002258569A JP4076408B2 (en) 2002-09-04 2002-09-04 Resume control device for USB

Publications (2)

Publication Number Publication Date
JP2004094852A true JP2004094852A (en) 2004-03-25
JP4076408B2 JP4076408B2 (en) 2008-04-16

Family

ID=32063152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002258569A Expired - Fee Related JP4076408B2 (en) 2002-09-04 2002-09-04 Resume control device for USB

Country Status (1)

Country Link
JP (1) JP4076408B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011108235A (en) * 2009-11-12 2011-06-02 Fujitsu Technology Solutions Intellectual Property Gmbh Peripheral device, power-saving circuit for switching device, and operation method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011108235A (en) * 2009-11-12 2011-06-02 Fujitsu Technology Solutions Intellectual Property Gmbh Peripheral device, power-saving circuit for switching device, and operation method
US8527798B2 (en) 2009-11-12 2013-09-03 Fujitsu Technology Solutions Intellectual Property Gmbh Energy-saving circuit for a peripheral device, peripheral device, switching device and method of operation

Also Published As

Publication number Publication date
JP4076408B2 (en) 2008-04-16

Similar Documents

Publication Publication Date Title
US20130166928A1 (en) Universal serial bus host and power management method thereof
US7193442B2 (en) USB 1.1 for USB OTG implementation
US8286017B2 (en) Low power mode for a network interface
US8205018B2 (en) Method and apparatus for implementing a limited functionality embedded universal serial bus (USB) host controller on a fully functional downstream USB port
KR100748554B1 (en) Universal serial bus host, universal serial bus system and method of driving the same
US8621247B2 (en) Bus interface with power management features
KR100347980B1 (en) Electronic equipment provided with common connector
JP6936543B2 (en) USB interface circuits and methods for low power operation
TW200849022A (en) Detecting connection to a USB host or hub without using an extra status input
JP2002318647A (en) Detecting device and its detecting method
US20120290761A1 (en) USB Converter and Related Method
JP2004157604A (en) Usb peripheral control method and device
JP2000105638A (en) Usb device and usb connection system
US20120001862A1 (en) Capacitive touch switch display control system and method
JP2000181585A (en) Power source starting device of computer
JP2003046596A (en) Network interface
US20150253842A1 (en) Semiconductor device, and power control method for usbotg
US7197578B1 (en) Power management system for bridge circuit
EP1685496B1 (en) An interface for serial data communication
TW202118232A (en) Interface control circuit and control method thereof
JP5986026B2 (en) Host device, host device control method, and semiconductor device
US7219246B2 (en) Digital system having selectable clock speed based upon available supply voltage and PLL configuration register settings
US7912989B2 (en) Network interface for decreasing power consumption
JP4076408B2 (en) Resume control device for USB
JP2003122458A (en) Computer device, controller, and method of controlling computer device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050427

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080111

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080129

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110208

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120208

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130208

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130208

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140208

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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