JP2001144772A - Usb device - Google Patents

Usb device

Info

Publication number
JP2001144772A
JP2001144772A JP32226799A JP32226799A JP2001144772A JP 2001144772 A JP2001144772 A JP 2001144772A JP 32226799 A JP32226799 A JP 32226799A JP 32226799 A JP32226799 A JP 32226799A JP 2001144772 A JP2001144772 A JP 2001144772A
Authority
JP
Japan
Prior art keywords
usb
usb device
power supply
cable
line
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.)
Pending
Application number
JP32226799A
Other languages
Japanese (ja)
Inventor
Hidekazu Ohigata
英一 大日方
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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo 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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP32226799A priority Critical patent/JP2001144772A/en
Priority to EP00310046A priority patent/EP1100018A3/en
Publication of JP2001144772A publication Critical patent/JP2001144772A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To detect physical disconnection of a host side computer and a USB device having a self power source when it is disconnected. SOLUTION: The USB device 1 is connected to the host side computer 2 by a USB cable 6 having signal lines 3 and 4, a power source line 5 and a grounded line 20, communicating with the computer 2 with its own power source 7. In the device 1, a voltage detecting part 10 for detecting a power source voltage supplied from the computer 2 is connected to a power source line connecting Vbus terminal 9 which is arranged in a connector 8 at the side of the device 1 to which the USB cable 6 is connected. The connection of the USB cable 6 is detected by the output of the voltage detecting part 10.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ホスト側コンピュ
ータに対してUSBケーブルを用いて接続されるUSB
デバイスに関する。更に詳述すると、本発明は、いわゆ
る自己電源を有するUSBデバイスに関する。
The present invention relates to a USB connected to a host computer by using a USB cable.
About the device. More specifically, the present invention relates to a USB device having a so-called self-power supply.

【0002】[0002]

【従来の技術】パーソナルコンピュータ等のホスト側コ
ンピュータと周辺機器とを接続するインターフェースと
してユニバーサルシリアルバス規格(以下、USBとい
う。)がある。ホスト側コンピュータのUSB端子にU
SBケーブルを介してマウスやキーボード等のUSBデ
バイスが接続された場合、ホスト側コンピュータはUS
Bインターフェースの電気的変化を検出し、USBデバ
イスが接続されたことを認識する。ホスト側コンピュー
タは、接続されたUSBデバイスに対し電気通信(以
下、USB通信という。)を行い、USBデバイスの応
答によりその種類を認識して、対応するUSBデバイス
ドライバを組み込み、USBデバイスを制御可能な状態
にする。これにより、USBデバイスをホスト側コンピ
ュータに対してUSBケーブルを介して接続するだけで
利用可能となるいわゆるプラグアンドプレイ方式を実現
することができる。
2. Description of the Related Art There is a universal serial bus standard (hereinafter referred to as USB) as an interface for connecting a host computer such as a personal computer and peripheral devices. Connect U to the USB terminal of the host computer.
When a USB device such as a mouse or keyboard is connected via the SB cable, the host computer
The electrical change of the B interface is detected to recognize that the USB device is connected. The host-side computer performs electrical communication (hereinafter referred to as USB communication) to the connected USB device, recognizes the type of the USB device in response to the USB device, incorporates a corresponding USB device driver, and can control the USB device. State. This makes it possible to realize a so-called plug-and-play system that can be used only by connecting a USB device to a host computer via a USB cable.

【0003】USB通信は、D+信号ラインと、D−信
号ラインとの2本のラインを利用して行われる。また、
ホスト側コンピュータから電源供給可能にする電源供給
ラインとグランドラインを備えている。すなわち、US
BケーブルおよびUSB端子はこれら4種類のラインを
備えている。
[0003] USB communication is performed using two lines, a D + signal line and a D- signal line. Also,
A power supply line and a ground line are provided to enable power to be supplied from the host computer. That is, US
The B cable and USB terminal have these four types of lines.

【0004】また、USBデバイスには2種類の電源供
給方法がある。1つはホスト側コンピュータのUSB端
子からUSBケーブルの電源ラインを介して電源を供給
するもの(以下、バスパワードという)であり、もう1
つはUSBデバイス自体が電源を有するもの(以下、セ
ルフパワードという)である。このセルフパワードのU
SBデバイス、即ちいわゆる自己電源を有するUSBデ
バイスでは、USBデバイス自体が例えば商用電源を利
用するようにしており、ホスト側コンピュータからの電
源供給を不要としている。
There are two types of power supply methods for USB devices. One is to supply power from a USB terminal of a host-side computer via a power line of a USB cable (hereinafter, referred to as bus-powered).
One is that the USB device itself has a power supply (hereinafter, referred to as self-powered). This self-powered U
In an SB device, that is, a USB device having a so-called self-power supply, the USB device itself uses, for example, a commercial power supply, and does not require power supply from a host computer.

【0005】ところで、いずれの電源供給方法を用いて
いても、USBデバイス側ではUSBケーブルの接続状
態を検知することはできない。しかし、バスパワードの
USBデバイスは、USBケーブルの接続状態が解消さ
れた場合(例えば、USBケーブルが抜かれた場合)に
電源供給が断たれるので、その時点で動作が停止する。
つまり、USBケーブルの接続状態を検知できなくて
も、接続状態が解消されれば動作停止になるので、接続
状態の検知は不要である。
However, no matter which power supply method is used, the USB device cannot detect the connection state of the USB cable. However, the power supply of the bus-powered USB device is cut off when the connection state of the USB cable is canceled (for example, when the USB cable is disconnected), and the operation stops at that point.
In other words, even if the connection state of the USB cable cannot be detected, the operation is stopped if the connection state is resolved, so that it is unnecessary to detect the connection state.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
た自己電源を有するUSBデバイスでは、USBケーブ
ルの接続状態が解消されても電源の供給が続くので、動
作を続行してしまう。USBケーブルの接続状態を検知
できれば動作停止の手段を講じることができるが、US
Bデバイス側でUSBケーブルの接続状態を検知できな
いので、何かの手段を講じることができない。
However, in the above-described USB device having a self-power supply, even if the connection state of the USB cable is canceled, the power supply continues, so that the operation continues. If the connection state of the USB cable can be detected, measures to stop the operation can be taken.
Since the connection state of the USB cable cannot be detected on the B device side, no means can be taken.

【0007】このようにセルフパワードの場合、ホスト
側コンピュータとの接続が断たれても独立して動作す
る。つまり、USBデバイスがホスト側コンピュータの
制御下に無いにも拘わらず動作を続行してしまう。
As described above, in the case of self-powered operation, it operates independently even when the connection with the host computer is cut off. That is, the operation continues even though the USB device is not under the control of the host computer.

【0008】また、このような不都合はUSBケーブル
が外れたとき以外でも、USBコネクタの接触不良やU
SBケーブルの断線のように、ホスト側コンピュータと
USBデバイスの接続が物理的に切断された時に起こり
得る。
[0008] Further, such inconveniences may occur even when the USB cable is not disconnected, such as a poor connection of the USB connector or a U-connection.
Like the disconnection of the SB cable, it may occur when the connection between the host computer and the USB device is physically disconnected.

【0009】そこで、本発明は、ホスト側コンピュータ
と自己電源を有するUSBデバイスとの接続が物理的に
切断されたときにこれを検出できるUSBデバイスを提
供することを目的とする。
Accordingly, an object of the present invention is to provide a USB device capable of detecting when a connection between a host-side computer and a USB device having its own power supply is physically disconnected.

【0010】[0010]

【課題を解決するための手段】かかる目的を達成するた
め、請求項1記載の発明は、ホスト側コンピュータに、
信号ラインと電源ラインとを有するUSBケーブルによ
り接続されてホスト側コンピュータと通信を行うように
構成されると共に、自己電源を有するように構成された
USBデバイスにおいて、USBケーブルが接続されて
いるUSBデバイス側のコネクタ部に設けられている電
源ライン接続用の端子に、ホスト側コンピュータから供
給される電源電圧を検出する電圧検出部を接続し、該電
圧検出部の出力によりUSBケーブルの接続を検知でき
るようにしている。
In order to achieve the above object, according to the first aspect of the present invention, a host computer is provided with:
A USB device configured to communicate with a host-side computer by being connected by a USB cable having a signal line and a power supply line, and having a self-power supply, the USB device being connected to the USB cable A voltage detection unit for detecting a power supply voltage supplied from the host computer is connected to a power line connection terminal provided in the connector unit on the side, and the connection of the USB cable can be detected by the output of the voltage detection unit. Like that.

【0011】したがって、電圧検出部の出力によりUS
Bケーブルの接続を検知することができるので、USB
ケーブルがホスト側コンピュータあるいはUSBデバイ
スのコネクタ部から抜ける等して両者の接続が切断され
たときに、この切断を検出してUSBデバイスを停止さ
せることができる。
Therefore, the output of the voltage detection unit is
USB cable connection can be detected.
When the cable is disconnected from the host computer or the connector of the USB device and the connection between them is disconnected, the disconnection can be detected and the USB device can be stopped.

【0012】また、請求項2記載の発明は、請求項1記
載のUSBデバイスにおいて、USBケーブルは、D+
信号ラインとD−信号ラインとから成る信号ラインと、
電源ラインと、グランドラインとを備えて、USBデバ
イス側のコネクタ部にはそれぞれのラインに対応する接
続端子が設けられて成るようにしている。
According to a second aspect of the present invention, in the USB device according to the first aspect, the USB cable is a D +
A signal line comprising a signal line and a D-signal line;
A power supply line and a ground line are provided, and the connector portion on the USB device side is provided with connection terminals corresponding to each line.

【0013】したがって、D+信号ラインとD−信号ラ
インとの2本の信号ラインを利用してUSB通信を実行
することができる。
Therefore, USB communication can be performed using two signal lines, the D + signal line and the D- signal line.

【0014】さらに、請求項3記載の発明は、請求項1
または2記載のUSBデバイスにおいて、USBデバイ
スは自己電源により動作するようになっており、USB
デバイス内に設けられた電圧検出部は規定電圧の有無を
USBデバイス内の制御部に出力し、USBケーブルの
接続解除を検出したときにはUSBデバイスの動作を停
止するようにしている。
Further, the invention described in claim 3 is the invention according to claim 1.
Or in the USB device described in 2, the USB device operates by its own power supply,
The voltage detection unit provided in the device outputs the presence or absence of the specified voltage to the control unit in the USB device, and stops the operation of the USB device when detecting disconnection of the USB cable.

【0015】したがって、USBケーブルの接続解除が
検出されたときに、USBデバイスの動作を停止するこ
とができる。
Therefore, when the disconnection of the USB cable is detected, the operation of the USB device can be stopped.

【0016】[0016]

【発明の実施の形態】以下、本発明の構成を図面に示す
実施の形態の一例に基づいて詳細に説明する。図1に本
発明のUSBデバイス1の一実施形態を示す。このUS
Bデバイス1は、ホスト側コンピュータ2に信号ライン
3,4と電源ライン5とグランドライン20とを有する
USBケーブル6により接続されて、ホスト側コンピュ
ータ2と通信を行うように構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The configuration of the present invention will be described below in detail based on an example of an embodiment shown in the drawings. FIG. 1 shows an embodiment of the USB device 1 of the present invention. This US
The B device 1 is connected to the host computer 2 via a USB cable 6 having signal lines 3 and 4, a power supply line 5, and a ground line 20, and is configured to communicate with the host computer 2.

【0017】USBケーブル6は、低速デバイス用と高
速デバイス用で若干の構成の違いがあるが(例えば高速
デバイス用はシールド線を必要とするが、低速デバイス
用は不要である)、低速デバイス用も高速デバイス用も
信号ライン3,4と電源ライン5とグランドライン20
とは必ず備えている。そこで、本実施形態では、低速デ
バイス用と高速デバイス用とのいずれも備えている信号
ライン3,4と電源ライン5とグランドライン20とを
図示し、これをUSBケーブル6と呼称する。
The USB cable 6 has a slight difference in configuration between a low-speed device and a high-speed device (for example, a high-speed device requires a shielded wire, but a low-speed device does not require a shield wire). Signal lines 3 and 4, power supply line 5 and ground line 20
Is always prepared. Therefore, in the present embodiment, the signal lines 3 and 4, the power supply line 5, and the ground line 20 provided for both the low-speed device and the high-speed device are illustrated, and are referred to as USB cables 6.

【0018】そして、USBデバイス1は自己電源7を
有している。さらに、このUSBデバイス1では、US
Bケーブル6が接続されているUSBデバイス1のコネ
クタ部8に設けられている電源ライン接続用のVbus端子
9に、ホスト側コンピュータ2から供給される電源電圧
(Vbus)を検出する電圧検出部10を接続している。こ
れにより、電圧検出部10の出力によってUSBケーブ
ル6の接続を検知することができる。
The USB device 1 has its own power supply 7. Furthermore, in this USB device 1, US
A voltage detection unit 10 for detecting a power supply voltage (Vbus) supplied from the host computer 2 to a power supply line connection Vbus terminal 9 provided in the connector unit 8 of the USB device 1 to which the B cable 6 is connected. Are connected. Thus, the connection of the USB cable 6 can be detected by the output of the voltage detection unit 10.

【0019】また、USBデバイス1内に設けられた電
圧検出部10は、規定電圧の有無をUSBデバイス1内
の制御部であるCPU11に出力するようにしている。
ここでの規定電圧の有無は、例えばHかLの信号で出力
される。そして、電圧検出部10が規定電圧の無いこと
をCPU11に出力すると、CPU11ではUSBケー
ブル6の接続が物理的に切断されたものと判断してUS
Bデバイス1の動作を停止するようにしている。このた
め、USBケーブル6がホスト側コンピュータ2または
USBデバイス1から抜けたときにUSBデバイス1が
動作し続けることを防止でき、USBデバイス1がホス
ト側コンピュータ2の制御外で動作を行うことを防止で
きる。
The voltage detector 10 provided in the USB device 1 outputs the presence or absence of a specified voltage to the CPU 11 which is a control unit in the USB device 1.
The presence or absence of the specified voltage here is output, for example, as an H or L signal. When the voltage detector 10 outputs to the CPU 11 that there is no specified voltage, the CPU 11 determines that the connection of the USB cable 6 has been physically disconnected, and
The operation of the B device 1 is stopped. Therefore, it is possible to prevent the USB device 1 from continuing to operate when the USB cable 6 is disconnected from the host computer 2 or the USB device 1, and prevent the USB device 1 from operating outside the control of the host computer 2. it can.

【0020】また、USBケーブル6が抜けたときだけ
でなく、USBケーブル6と各USBコネクタ部8,1
5との接触不良やUSBケーブル6の断線等により、ホ
スト側コンピュータ2とUSBデバイス1のVbusの接続
が物理的に切断されたときに、USBデバイス1がホス
ト側コンピュータ2の制御外で動作し続けることを防止
できる。
Not only when the USB cable 6 is unplugged, but also when the USB cable 6 and each of the USB connector portions 8, 1
The USB device 1 operates outside the control of the host computer 2 when the connection between the host computer 2 and the Vbus of the USB device 1 is physically disconnected due to poor contact with the USB cable 5, disconnection of the USB cable 6, or the like. It can be prevented from continuing.

【0021】電圧検出部10は、電圧検出用のICを利
用している。本実施形態では電圧検出部10として電圧
検出用のICを採用しているが、これには限られずトラ
ンジスタやFET等を用いてディスクリート構成にして
も良く、またはコンパレータを用いて構成しても良い。
あるいは、ADコンバータ(外付けとCPU内蔵のいず
れも可)を用いてCPU11で判断するようにしても良
い。このように、既知あるいは新規の電圧検出手段を利
用することができる。また、自己電源7は、交流100
ボルトの商用電源から供給されるものや、バッテリを利
用するもの等にできる。
The voltage detecting unit 10 utilizes a voltage detecting IC. In the present embodiment, an IC for voltage detection is adopted as the voltage detection unit 10. However, the voltage detection unit 10 is not limited to this, and may have a discrete configuration using transistors or FETs or a configuration using a comparator. .
Alternatively, the determination may be made by the CPU 11 using an AD converter (either external or internal to the CPU is possible). Thus, a known or new voltage detecting means can be used. In addition, the self power source 7 has an AC of 100.
It can be supplied from a volt commercial power supply, or can use a battery.

【0022】このUSBデバイス1のコネクタ部8は、
電源ライン接続用のVbus端子9と、2つの信号ライン用
端子12,13と、グランドライン用端子14とを有し
ている。信号ライン用端子12,13としては、D+信
号ライン用端子12とD−信号ライン用端子13とがあ
る。一方、ホスト側コンピュータ2のUSBコネクタ部
15は、USBデバイス1のコネクタ部8と同様に、Vb
usを出力する電源ライン用端子16と、D+信号ライン
用端子17と、D−信号ライン用端子18と、グランド
ライン用端子19とを有している。また、これらUSB
デバイス1とホスト側コンピュータ2とを接続するUS
Bケーブル6は、電源ライン5と、D+信号ライン3
と、D−信号ライン4と、グランドライン20とを有し
ており、それぞれUSBデバイス1とホスト側コンピュ
ータ2との対応する端子同士を接続している。
The connector section 8 of the USB device 1
It has a Vbus terminal 9 for power supply line connection, two signal line terminals 12 and 13, and a ground line terminal 14. The signal line terminals 12 and 13 include a D + signal line terminal 12 and a D− signal line terminal 13. On the other hand, the USB connector 15 of the host-side computer 2 has the same Vb as the connector 8 of the USB device 1.
It has a power line terminal 16 for outputting us, a D + signal line terminal 17, a D- signal line terminal 18, and a ground line terminal 19. In addition, these USB
US connecting device 1 and host-side computer 2
The B cable 6 has a power line 5 and a D + signal line 3
, A D-signal line 4, and a ground line 20, and connect the corresponding terminals of the USB device 1 and the host computer 2 to each other.

【0023】なお、本実施形態ではUSBデバイス1を
低速用あるいは高速用のいずれかとしている。特に図示
していないが、低速デバイスとした場合は、低速用のU
SBケーブル6を用いると共に、USBデバイス1のD
−信号ライン4にUSBデバイス1の内部で1.5キロ
オーム±5%の抵抗を用いて3.3Vラインへプルアッ
プするようにする。また、高速デバイスとした場合は、
高速用のUSBケーブル6を用いると共に、USBデバ
イス1のD+信号ライン3にUSBデバイス1の内部で
1.5キロオーム±5%の抵抗を用いて3.3Vライン
へプルアップするようにする。そして、いずれの場合も
D+信号ライン3とD−信号ライン4の両方を用いてU
SB通信を行う。
In this embodiment, the USB device 1 is used for either low speed or high speed. Although not particularly shown, when a low-speed device is used, a low-speed U
Using the SB cable 6 and the D of the USB device 1
Pull up to 3.3V line using 1.5 kOhm ± 5% resistor inside USB device 1 for signal line 4 In the case of a high-speed device,
A high-speed USB cable 6 is used, and the D + signal line 3 of the USB device 1 is pulled up to a 3.3 V line by using a resistance of 1.5 kΩ ± 5% inside the USB device 1. In each case, U is determined using both the D + signal line 3 and the D− signal line 4.
Perform SB communication.

【0024】上述したUSBデバイス1の動作を図2に
示すフローチャートに沿って説明する。CPU11を含
めてUSBデバイス1は自己電源7から供給される電力
により動作している。USBデバイス1のCPU11は
必要に応じ(例えば一定時間毎)、USBケーブル6の
接続確認ルーチンを実行する(ステップ1)。CPU1
1は電圧検出部10の出力でホスト側コンピュータ2か
ら供給される電源電圧(Vbus)の有無を判断する(ステ
ップ2)。CPU11がVbus有りと判断すれば(ステッ
プ2;YES)、USBケーブル6が接続されていると
判断し、接続確認ルーチンを終了し、USBデバイス1
の本来の動作を続行する(ステップ3)。
The operation of the USB device 1 will be described with reference to the flowchart shown in FIG. The USB device 1 including the CPU 11 operates by the power supplied from the self-power supply 7. The CPU 11 of the USB device 1 executes a connection confirmation routine of the USB cable 6 as needed (for example, at regular intervals) (step 1). CPU1
1 determines the presence or absence of the power supply voltage (Vbus) supplied from the host computer 2 based on the output of the voltage detection unit 10 (step 2). If the CPU 11 determines that there is a Vbus (step 2; YES), it determines that the USB cable 6 is connected, ends the connection confirmation routine, and
Is continued (step 3).

【0025】CPU11は電圧検出部10の出力でVbus
の有無を判断する(ステップ2)。CPU11がVbus無
しと判断すれば(ステップ2;NO)、USBケーブル
6の接続が何らかの理由により物理的に切断されたもの
としてUSBデバイス1の動作を停止する(ステップ
4)。これにより、USBケーブル6の接続が断たれた
とき、ホスト側コンピュータ2の制御外でUSBデバイ
ス1が動作を続行することを防止できる。
The CPU 11 uses the output of the voltage
Is determined (step 2). If the CPU 11 determines that there is no Vbus (step 2; NO), the operation of the USB device 1 is stopped assuming that the connection of the USB cable 6 has been physically disconnected for some reason (step 4). This prevents the USB device 1 from continuing to operate outside of the control of the host computer 2 when the connection of the USB cable 6 is disconnected.

【0026】また、ステップ4でUSB接続が断たれた
ことを表示器や音や通信で使用者に通知することによ
り、人為的にUSB接続を回復させることや人為的な故
障の発見につながることも考えられ便利である。
Also, by notifying the user that the USB connection has been disconnected in step 4 by means of a display, sound or communication, it is possible to artificially restore the USB connection or to discover an artificial failure. It is considered convenient.

【0027】そして、CPU11は必要に応じて再び電
圧検出部10の出力でVbusの有無を判断する(ステップ
5)。CPU11がVbus無しと判断すれば(ステップ
5;NO)、動作停止状態を保持する。一方、CPU1
1がVbus有りと判断すれば(ステップ5;YES)、U
SBケーブル6が再接続されたと判断してUSBデバイ
ス1の動作を再開、若しくは初期化から開始する(ステ
ップ6)。
Then, the CPU 11 determines again whether or not there is a Vbus based on the output of the voltage detector 10 as necessary (step 5). If the CPU 11 determines that there is no Vbus (step 5; NO), the operation stop state is maintained. On the other hand, CPU1
If 1 judges that Vbus is present (step 5; YES), U
It is determined that the SB cable 6 has been reconnected, and the operation of the USB device 1 is restarted or started from initialization (step 6).

【0028】また、このUSBデバイス1によれば、初
期動作時におけるUSBケーブル6の接続確認を行うこ
とができる。すなわち、USBデバイス1に通電を開始
して(電源をオンして)CPU11の初期化動作が開始
されてUSBデバイス1側のUSB通信の準備が完了し
たときに、USBケーブル6の接続確認を行うようにす
る。ここで、USBケーブル6が接続されていると判断
されれば、プラグアンドプレイのための通信処理に移行
する。一方、USBケーブル6が接続されていないと判
断されれば、USBケーブル6が接続されるまで待機す
る。
According to the USB device 1, the connection of the USB cable 6 can be confirmed at the time of the initial operation. That is, when the USB device 1 is energized (power is turned on), the initialization operation of the CPU 11 is started, and preparation for USB communication on the USB device 1 side is completed, the connection of the USB cable 6 is confirmed. To do. Here, if it is determined that the USB cable 6 is connected, the processing shifts to communication processing for plug and play. On the other hand, if it is determined that the USB cable 6 is not connected, the process waits until the USB cable 6 is connected.

【0029】なお、上述の実施形態は本発明の好適な実
施の一例ではあるがこれに限定されるものではなく本発
明の要旨を逸脱しない範囲において種々変形実施可能で
ある。例えば上述した実施形態では現状のUSB規格に
合致するようにUSBケーブル6は低速デバイス用と高
速デバイス用とのいずれもが備える2本の信号ライン
3,4と電源ライン5とグランドライン20とを有する
ようにしているが、これには限られずUSB規格が変更
されたとき等にUSBケーブル6を構成するラインを変
更するようにしても良い。この場合も電源ライン5の切
断を電圧検出部10の出力により検知することができる
ので、この切断を検出してUSBデバイス1を停止させ
ることができる。
The above embodiment is an example of a preferred embodiment of the present invention, but the present invention is not limited thereto, and various modifications can be made without departing from the gist of the present invention. For example, in the above-described embodiment, the USB cable 6 includes two signal lines 3 and 4, a power supply line 5, and a ground line 20 provided for both a low-speed device and a high-speed device so as to conform to the current USB standard. However, the present invention is not limited to this, and the lines constituting the USB cable 6 may be changed when the USB standard is changed. Also in this case, since the disconnection of the power supply line 5 can be detected by the output of the voltage detection unit 10, the USB device 1 can be stopped by detecting this disconnection.

【0030】[0030]

【発明の効果】以上の説明より明らかなように、請求項
1記載のUSBデバイスによれば、電圧検出部の出力に
よりUSBケーブルの接続を検知することができるの
で、USBケーブルがホスト側コンピュータあるいはU
SBデバイスのコネクタ部から抜ける等して両者の接続
が切断されたときに、この切断を検出してUSBデバイ
スを停止させることができる。
As is clear from the above description, according to the USB device of the first aspect, the connection of the USB cable can be detected by the output of the voltage detection unit, so that the USB cable can be connected to the host computer or the host computer. U
When the connection between the two devices is disconnected due to disconnection from the connector portion of the SB device or the like, the disconnection can be detected and the USB device can be stopped.

【0031】また、請求項2記載のUSBデバイスによ
れば、D+信号ラインとD−信号ラインとの2本の信号
ラインを利用してUSB通信を実行することができる。
According to the USB device of the second aspect, USB communication can be performed using two signal lines of the D + signal line and the D- signal line.

【0032】さらに、請求項3記載のUSBデバイスに
よれば、USBケーブルの接続解除が検出されたとき
に、USBデバイスの動作を停止することができる。
Further, according to the USB device of the third aspect, when the disconnection of the USB cable is detected, the operation of the USB device can be stopped.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のUSBデバイスの一実施形態を示すブ
ロック図である。
FIG. 1 is a block diagram showing one embodiment of a USB device of the present invention.

【図2】USBデバイスのCPUの動作手順を示すフロ
ーチャートである。
FIG. 2 is a flowchart illustrating an operation procedure of a CPU of the USB device.

【符号の説明】[Explanation of symbols]

1 USBデバイス 2 ホスト側コンピュータ 3 D+信号ライン(信号ライン) 4 D−信号ライン(信号ライン) 5 電源ライン 6 USBケーブル 7 自己電源 8 USBデバイス側のコネクタ部 9 Vbus端子 10 電圧検出部 20 グランドライン DESCRIPTION OF SYMBOLS 1 USB device 2 Host side computer 3 D + signal line (signal line) 4 D- signal line (signal line) 5 Power supply line 6 USB cable 7 Self-power supply 8 USB device side connector part 9 Vbus terminal 10 Voltage detection part 20 Ground line

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ホスト側コンピュータに、信号ラインと
電源ラインとを有するUSBケーブルにより接続されて
前記ホスト側コンピュータと通信を行うように構成され
ると共に、自己電源を有するように構成されたUSBデ
バイスにおいて、前記USBケーブルが接続されている
前記USBデバイス側のコネクタ部に設けられている前
記電源ライン接続用の端子に、前記ホスト側コンピュー
タから供給される電源電圧を検出する電圧検出部を接続
し、該電圧検出部の出力により前記USBケーブルの接
続を検知できるようにしたことを特徴とするUSBデバ
イス。
1. A USB device connected to a host-side computer by a USB cable having a signal line and a power supply line to communicate with the host-side computer, and configured to have its own power supply In the above, a voltage detection unit for detecting a power supply voltage supplied from the host-side computer is connected to the power line connection terminal provided in the USB device-side connector unit to which the USB cable is connected. A USB device, wherein the connection of the USB cable can be detected based on an output of the voltage detection unit.
【請求項2】 前記USBケーブルは、D+信号ライン
とD−信号ラインとから成る前記信号ラインと、前記電
源ラインと、グランドラインとを備えて、前記USBデ
バイス側の前記コネクタ部には前記それぞれのラインに
対応する接続端子が設けられて成ることを特徴とする請
求項1記載のUSBデバイス。
2. The USB cable includes: the signal line including a D + signal line and a D− signal line; the power supply line; and a ground line. 2. The USB device according to claim 1, further comprising a connection terminal corresponding to said line.
【請求項3】 前記USBデバイスは前記自己電源によ
り動作するようになっており、前記USBデバイス内に
設けられた前記電圧検出部は規定電圧の有無を前記US
Bデバイス内の制御部に出力し、前記USBケーブルの
接続解除を検出したときには前記USBデバイスの動作
を停止するように成っていることを特徴とする請求項1
または2記載のUSBデバイス。
3. The USB device is operated by the self-power supply, and the voltage detection unit provided in the USB device determines whether or not a specified voltage exists in the USB device.
2. The device according to claim 1, wherein an output is output to a control unit in the B device, and when the disconnection of the USB cable is detected, the operation of the USB device is stopped.
Or the USB device according to 2.
JP32226799A 1999-11-11 1999-11-12 Usb device Pending JP2001144772A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP32226799A JP2001144772A (en) 1999-11-12 1999-11-12 Usb device
EP00310046A EP1100018A3 (en) 1999-11-11 2000-11-10 USB-Interface Equipped Device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32226799A JP2001144772A (en) 1999-11-12 1999-11-12 Usb device

Publications (1)

Publication Number Publication Date
JP2001144772A true JP2001144772A (en) 2001-05-25

Family

ID=18141749

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32226799A Pending JP2001144772A (en) 1999-11-11 1999-11-12 Usb device

Country Status (1)

Country Link
JP (1) JP2001144772A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003009559A1 (en) * 2001-07-16 2003-01-30 Fujitsu Limited Peripheral unit
JP2007123956A (en) * 2005-10-24 2007-05-17 Kenwood Corp Audio system and acoustic reproduction control method
US7506186B2 (en) 2003-08-20 2009-03-17 Panasonic Corporation Optical disc apparatus and disc apparatus
JP2009198662A (en) * 2008-02-20 2009-09-03 Seiko Epson Corp Host apparatus and method for controlling the same

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003009559A1 (en) * 2001-07-16 2003-01-30 Fujitsu Limited Peripheral unit
US7506186B2 (en) 2003-08-20 2009-03-17 Panasonic Corporation Optical disc apparatus and disc apparatus
JP2007123956A (en) * 2005-10-24 2007-05-17 Kenwood Corp Audio system and acoustic reproduction control method
JP4736712B2 (en) * 2005-10-24 2011-07-27 株式会社ケンウッド Audio system, sound reproduction apparatus, and sound reproduction control method
JP2009198662A (en) * 2008-02-20 2009-09-03 Seiko Epson Corp Host apparatus and method for controlling the same
JP4535143B2 (en) * 2008-02-20 2010-09-01 セイコーエプソン株式会社 Information management system and information management method using the same

Similar Documents

Publication Publication Date Title
JP4126178B2 (en) Method and apparatus for detecting the type of interface to which a peripheral device is connected
US7765344B2 (en) Apparatus and method for dynamically providing hub or host operations
CN106104506B (en) For entering the method, apparatus and computer program product of attachment joint mode in USB c-type interface
US6775715B2 (en) Multipurpose data port
US7480758B2 (en) Method and apparatus for automatically switching between USB host and device
US5935224A (en) Method and apparatus for adaptively coupling an external peripheral device to either a universal serial bus port on a computer or hub or a game port on a computer
US7268561B2 (en) USB attach detection for USB 1.1 and USB OTG devices
US8898363B2 (en) Multiple connections to a single serial interface
US7489974B2 (en) Information processing apparatus and method for controlling power supply of the apparatus
JP2000056871A (en) Ems enhancement circuit for usb system
TW514789B (en) Method and apparatus for detecting the type of interface to which a peripheral device is connected
JP2000224450A (en) Electronic equipment provided with common connector
JP2017527921A (en) Method and apparatus for controlling the mode of a device
US20100064066A1 (en) KVM switch system and interface adapter for detecting interface of computer
US20140157012A1 (en) Information processing apparatus and power supplying method
TW201327126A (en) Auto-detection control device and method thereof
JP2001144772A (en) Usb device
JP2002073219A (en) Interface device equipped with part for supplying power to external device and method for supplying power to external device
JP2001306413A (en) Usb communication device
JP2001177543A (en) Device and system for bus connection
JP5492844B2 (en) Interface connection method and computer
JP2000010671A (en) Power supplying device using peripheral equipment connector
JP2009205561A (en) Usb connection device, and method of vbus output control in usb connection device
JP2002190848A (en) Interface adapting device
JP2004070621A (en) Usb device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040407

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040414

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040804