JP2001306413A - Usb communication device - Google Patents

Usb communication device

Info

Publication number
JP2001306413A
JP2001306413A JP2000124454A JP2000124454A JP2001306413A JP 2001306413 A JP2001306413 A JP 2001306413A JP 2000124454 A JP2000124454 A JP 2000124454A JP 2000124454 A JP2000124454 A JP 2000124454A JP 2001306413 A JP2001306413 A JP 2001306413A
Authority
JP
Japan
Prior art keywords
usb communication
line
host
communication
switch
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
JP2000124454A
Other languages
Japanese (ja)
Inventor
Toshiyuki Mizuno
敏之 水野
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2000124454A priority Critical patent/JP2001306413A/en
Publication of JP2001306413A publication Critical patent/JP2001306413A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to restart communication without inserting/ drawing out a connector when a communication error due to electrostatic noise is generated in a device corresponding to the USB communication standards. SOLUTION: An electronic switch 11 is inserted between the power supply VCC of a device 8' and pull-up resistor R5 and the control terminal of the switch 11 is controlled by a microcomputer 12 to turn on/off between the power supply VCC and the resistor R5. When a communication error is generated due to electrostatic noise or the like, the host 7 stops communicating operation because there is no response from the device 8'. In the device 8', the microcomputer 12 detects the communication error, turns on the switch 11 after turning off the switch 11 once and impresses voltage to USB communication lines D+, D- to allow the host 7 to recognize the connection of the device 8' and start communication again. Consequently the communication can be automatically restarted without requiring user's operation.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、USB通信規格に
対応した通信を行うUSB通信デバイスに関し、特に静
電ノイズ等による通信異常に対応する方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a USB communication device for performing communication conforming to the USB communication standard, and more particularly to a method for coping with a communication abnormality due to electrostatic noise or the like.

【0002】[0002]

【従来の技術】図3は、通信機器をUSB通信規格に対
応した通信ライン(USB通信ライン)で接続したシス
テムの構成例を示すブロック図であり、図3(A)はホ
ストに高速デバイスを接続した場合を示し、図3(B)
はホストに低速デバイスを接続した場合を示す。図3
(A)において、ホスト7のトランシーバ1は、USB
通信規格に対応したトランシーバ(ドライバ、レシー
バ)であり、USB規格に準拠した差動信号の送受信を
行うことができる。一方、高速デバイス8及び低速デバ
イス9のトランシーバ2も、トランシーバ1と同様のも
のである。また、D+、D−は、USB通信規格に対応
した差動通信ラインのライン名称である。
2. Description of the Related Art FIG. 3 is a block diagram showing a configuration example of a system in which communication devices are connected by a communication line (USB communication line) corresponding to the USB communication standard. FIG. FIG. 3 (B) shows the case of connection.
Indicates that a low-speed device is connected to the host. FIG.
In (A), the transceiver 1 of the host 7 has a USB
It is a transceiver (driver, receiver) compliant with the communication standard, and can transmit and receive differential signals compliant with the USB standard. On the other hand, the transceivers 2 of the high-speed device 8 and the low-speed device 9 are similar to the transceiver 1. D + and D- are line names of differential communication lines corresponding to the USB communication standard.

【0003】また、抵抗R3は、ホスト7内にあるD−
ラインとグランド(以下GNDという)との間に接続さ
れた15kΩの抵抗である。また、抵抗R4は、ホスト
7内にあるD+ラインとGNDの間に接続された15k
Ωの抵抗である。また、抵抗R5は、高速デバイス8内
にあるD+ラインと電源(以下VCCという)の間に接
続された1.5kΩの抵抗である。また、抵抗R6は、
低速デバイス9内にあるD−ラインとVCCの間に接続
された1.5kΩの抵抗である。
A resistor R3 is connected to a D-
It is a 15 kΩ resistor connected between the line and ground (hereinafter referred to as GND). The resistor R4 is connected to a 15k connected between the D + line in the host 7 and GND.
Ω resistance. The resistor R5 is a 1.5 kΩ resistor connected between the D + line in the high-speed device 8 and a power supply (hereinafter, referred to as VCC). The resistance R6 is
This is a 1.5 kΩ resistor connected between the D- line in the low-speed device 9 and VCC.

【0004】ホスト7は、USB通信規格に対応したパ
ソコンやUSBハブなどの機器であり、デバイス8、9
側から見ると通信のマスタとなる機器を指す。なお、図
3では示していないが、デバイス8、9を制御するため
のコントローラや電力供給可能な電源部などを具えてい
る。高速デバイス8は、USB通信規格に対応してお
り、ホスト7から見るとスレーブとなる機器であり、1
2Mbpsの高速な通信速度に対応している必要があ
る。パソコンの周辺機器やデジタルカメラ等の様々な製
品が製造されている。低速デバイス9は、USB通信規
格に対応しており、ホスト7から見るとスレーブとなる
機器であり、1.5Mbpsの通信速度に対応している
必要がある。キーボードやマウス等の様々な製品が製造
されている。
The host 7 is a device such as a personal computer or a USB hub compatible with the USB communication standard.
When viewed from the side, it refers to the device that becomes the master of communication. Although not shown in FIG. 3, a controller for controlling the devices 8 and 9 and a power supply unit capable of supplying power are provided. The high-speed device 8 is compatible with the USB communication standard, and is a slave device when viewed from the host 7.
It is necessary to support a high communication speed of 2 Mbps. Various products such as personal computer peripherals and digital cameras are manufactured. The low-speed device 9 is compatible with the USB communication standard, is a slave device when viewed from the host 7, and needs to support a communication speed of 1.5 Mbps. Various products such as keyboards and mice are manufactured.

【0005】次に、図3を用いてUSB通信規格につい
て説明を行う。USB通信規格とは、パソコン、ハブな
どのホスト機器とデバイス機器とを接続するインターフ
ェースの規格である。通信速度は1.5Mbpsと12
Mbpsの2種類を具えており、前者に対応したデバイ
スを低速デバイス、後者に対応したデバイスを高速デバ
イスと呼ぶ。ホストは、低速、高速の両方に必ず対応し
ており、デバイス側は何れかに対応している。このUS
B通信規格では、ホストの電源を入れたままでコネクタ
抜き差しができ、デバイスをつなげると、すぐに認識す
るプラグ・アンド・プレイ機能に対応している。
Next, the USB communication standard will be described with reference to FIG. The USB communication standard is an interface standard for connecting a host device such as a personal computer and a hub to a device device. Communication speed is 1.5Mbps and 12
Mbps, and a device corresponding to the former is referred to as a low-speed device, and a device corresponding to the latter is referred to as a high-speed device. The host always supports both low speed and high speed, and the device side supports either. This US
The B communication standard supports a plug-and-play function that allows a connector to be connected and disconnected while the power of the host is turned on, and recognizes immediately when a device is connected.

【0006】このプラグ・アンド・プレイ機能を実現す
るために、ホストがデバイスの接続状態を検出する方法
について説明する。USBは、+と−の2本の信号ライ
ン(D+、D−)で信号を伝送する差動伝送方式で通信
信号を伝送しており、伝送するときは両ラインの電位差
で、信号の“Hレベル”と“Lレベル”を判別する。こ
の2本の信号ライン(D+、D−)は、ホスト側では抵
抗R3、R4を介してGNDに接続されており、デバイ
スが接続されていない状態では両信号ライン共にLレベ
ルになっている。この両信号ラインがLレベルでの状態
ではデバイスは接続されていないとホストは認識する。
A method of detecting the connection state of a device by a host to realize the plug and play function will be described. The USB transmits a communication signal by a differential transmission method in which a signal is transmitted by two signal lines (D + and D-) of + and-. When transmitting, a signal "H" is generated by a potential difference between the two lines. Level "and" L level ". These two signal lines (D +, D-) are connected to GND via the resistors R3, R4 on the host side, and both signal lines are at L level when no device is connected. When both signal lines are at the L level, the host recognizes that no device is connected.

【0007】次に図3(A)を用いて高速デバイスが接
続された状態について説明する。高速デバイス8の内部
では、D+信号ラインが抵抗R5を介してVCC(3.
3V)ラインに接続されているので、高速デバイス8が
ホスト7に接続されると、D+信号ラインは3.3Vと
GNDとの間を1.5kΩと15kΩの抵抗で分圧して
いることになり、この結果、D+ラインは3Vになる。
この状態をホスト7はD+がHレベルに上がったと検出
し、高速デバイス8が接続されたと認識する。
Next, a state in which a high-speed device is connected will be described with reference to FIG. Inside the high-speed device 8, the D + signal line is connected to VCC (3.
3V), when the high-speed device 8 is connected to the host 7, the D + signal line divides the voltage between 3.3V and GND with the resistors of 1.5 kΩ and 15 kΩ. As a result, the D + line becomes 3V.
In this state, the host 7 detects that D + has risen to the H level, and recognizes that the high-speed device 8 has been connected.

【0008】次に図3(B)を用いて低速デバイスが接
続された状態について説明する。低速デバイス9の内部
では、D−信号ラインが抵抗R6を介してVCC(3.
3V)ラインに接続されているので、低速デバイス9が
ホスト7に接続されると、D−信号ラインは3.3Vと
GNDとの間を1.5kΩと15kΩの抵抗で分圧して
いることになり、この結果、D−ラインは3Vになる。
この状態をホスト7はD−がHレベルに上がったと検出
し、低速デバイス9が接続されたと認識する。
Next, a state in which a low-speed device is connected will be described with reference to FIG. Inside the low-speed device 9, the D- signal line is connected to VCC (3.
3V) line, so that when the low-speed device 9 is connected to the host 7, the D-signal line divides the voltage between 3.3V and GND with 1.5kΩ and 15kΩ resistors. As a result, the D- line becomes 3V.
In this state, the host 7 detects that D- has risen to the H level, and recognizes that the low-speed device 9 has been connected.

【0009】このようにホスト7は、信号ラインD+、
D−のレベルを監視することで、デバイスが接続された
かどうか、また、高速、低速のいずれかのデバイスが接
続されたかを検出することができる。当然、デバイス
8、9とホスト7が繋がれているケーブルを外すと、抵
抗R3、R4により、信号ラインD+、D−が共にLレ
ベルになり、ホスト7は未接続と認識する。図4に示す
表は、以上のような信号ラインD+、D−のレベルの組
み合わせとホストにおける判定結果の関係を示してい
る。
As described above, the host 7 supplies the signal lines D +,
By monitoring the level of D-, it is possible to detect whether a device is connected and whether any of a high-speed and a low-speed device is connected. Naturally, when the cable connecting the devices 8, 9 and the host 7 is disconnected, the signal lines D +, D- are both set to L level by the resistors R3, R4, and the host 7 recognizes that it is not connected. The table shown in FIG. 4 shows the relationship between the combination of the levels of the signal lines D + and D- and the determination result in the host.

【0010】[0010]

【発明が解決しようとする課題】ところで、以上のよう
なUSB規格は、ホストがマスタでデバイスはスレー
ブ、つまりデバイスはホストからの通信を受信して初め
てそれに対して返答するという規格であり、ホストから
の通信がない状態では、デバイスから通信を行うことは
できない。一方、ホストからは例えば1ミリ秒毎に通信
が行われ、ある一定時間、デバイスからの応答がない
と、ホストはデバイスが動作していないと認識し、1ミ
リ秒毎の通信を止めるように動作する。
The USB standard described above is a standard in which the host is the master and the device is the slave, that is, the device responds to it only after receiving communication from the host. If there is no communication from the device, communication cannot be performed from the device. On the other hand, communication is performed from the host, for example, every 1 millisecond. If there is no response from the device for a certain period of time, the host recognizes that the device is not operating and stops communication every 1 millisecond. Operate.

【0011】このため、ホストから1ミリ秒毎に通信を
行っている場合に、信号ラインに静電ノイズが乗るなど
して、ある一定時間、デバイスからの返信がなくなる
と、物理的にデバイスがつながっているにもかかわら
ず、ホストはデバイスが接続されていないと認識してし
まう。その結果、ホストからのデバイスへの通信が行わ
れなくなり、当然デバイスはホストと通信を行えなくな
る。そして、従来のシステムでは、一度このような状態
になると、コネクタの抜き差しを行い、改めてデバイス
の認識をホストにさせない限り、通信はできなくなると
いう問題があった。
For this reason, when communication is performed from the host every millisecond, if there is no reply from the device for a certain period of time due to electrostatic noise on the signal line or the like, the device physically becomes Despite the connection, the host perceives that the device is not connected. As a result, communication from the host to the device is not performed, and naturally the device cannot communicate with the host. The conventional system has a problem that once such a state occurs, communication cannot be performed unless a connector is disconnected and reconnected and the host is made to recognize the device again.

【0012】そこで本発明の目的は、USB通信規格に
対応した通信をホストとの間で行うUSB通信デバイス
において、通信ラインへの静電気などのノイズの混入に
よる通信エラーが発生した場合でも、コネクタの抜き差
し操作を行うことなく通信を再開でき、作業の煩雑さを
解消できるUSB通信デバイスを提供することにある。
Accordingly, an object of the present invention is to provide a USB communication device for performing communication conforming to the USB communication standard with a host even if a communication error occurs due to noise such as static electricity entering a communication line. An object of the present invention is to provide a USB communication device capable of restarting communication without performing a plugging / unplugging operation and reducing complexity of work.

【0013】[0013]

【課題を解決するための手段】本発明は前記目的を達成
するため、USB通信規格に対応した通信をホストとの
間で行うUSB通信デバイスにおいて、USB通信ライ
ンのD+ラインと電源ラインとの間、または、D−ライ
ンと電源ラインとの間に挿入されたプルアップ抵抗と、
前記プルアップ抵抗に対して直列に挿入された電子スイ
ッチと、前記電子スイッチを必要に応じて制御し、電子
スイッチの再起動動作を行う制御回路とを有することを
特徴とする。
In order to achieve the above object, the present invention provides a USB communication device for performing communication conforming to the USB communication standard with a host. Or a pull-up resistor inserted between the D- line and the power line,
The electronic switch includes an electronic switch inserted in series with the pull-up resistor, and a control circuit that controls the electronic switch as necessary and performs a restart operation of the electronic switch.

【0014】本発明のUSB通信デバイスにおいて、デ
バイスがUSB通信ラインを介してホストとの間で通信
を行っている場合に、例えばUSB通信ライン上の静電
ノイズによって通信異常が発生し、ホスト側でデバイス
の停止と認識し、通信動作(周期的な信号送信)を停止
した場合に、この異常を制御回路で検知し、電子スイッ
チの再起動動作を行う。これにより、USB通信ライン
に所定の電圧レベルが印加されることになり、ホスト側
でデバイスの接続を検出できる。この結果、ホストから
の通信動作が再開され、ホストとデバイスとの通信が再
開できる。したがって、通信異常が生じた場合に、コネ
クタの抜き差しを行うことなく通信を再開させることが
でき、作業の煩雑さを解消できる。
In the USB communication device of the present invention, when the device is communicating with the host via the USB communication line, a communication error occurs due to, for example, electrostatic noise on the USB communication line, and When the communication is stopped (periodic signal transmission), the abnormality is detected by the control circuit, and the electronic switch is restarted. As a result, a predetermined voltage level is applied to the USB communication line, and the host can detect the connection of the device. As a result, the communication operation from the host is restarted, and the communication between the host and the device can be restarted. Therefore, when a communication error occurs, communication can be restarted without connecting / disconnecting the connector, and the complexity of the operation can be eliminated.

【0015】[0015]

【発明の実施の形態】以下、本発明によるUSB通信デ
バイスの実施の形態について説明する。図1は、本発明
の実施の形態によるUSB通信デバイスをUSB通信規
格に対応した高速デバイスに適用した例を示すブロック
図であり、図1(A)は電子スイッチのオン時の状態を
示し、図1(B)は電子スイッチのオフ時の状態を示
す。なお、図1において、図3(A)で示す従来例と共
通する構成については、同一符号を付して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a USB communication device according to the present invention will be described below. FIG. 1 is a block diagram showing an example in which a USB communication device according to an embodiment of the present invention is applied to a high-speed device corresponding to the USB communication standard. FIG. 1A shows a state when an electronic switch is turned on. FIG. 1B shows a state where the electronic switch is off. Note that, in FIG. 1, components common to those in the conventional example shown in FIG.

【0016】図1において、ホスト7のトランシーバ1
及び高速デバイス8’のトランシーバ2は、それぞれU
SB通信規格に対応したトランシーバ(ドライバ、レシ
ーバ)であり、USB規格に準拠した差動信号の送受信
を行うことができる。また、D+、D−は、USB通信
規格に対応した差動通信ラインのライン名称である。ま
た、抵抗R3は、ホスト7内にあるD−ラインとGND
との間に接続された15kΩの抵抗であり、抵抗R4
は、ホスト7内にあるD+ラインとGNDの間に接続さ
れた15kΩの抵抗である。また、抵抗(プルアップ抵
抗)R5は、高速デバイス8’内にあるD+ラインとV
CCの間に接続された1.5kΩの抵抗である。なお、
以上は図3(A)に示す従来例と共通する構成であるた
め詳細は省略する。
In FIG. 1, the transceiver 1 of the host 7
And the transceiver 2 of the high-speed device 8 '
It is a transceiver (driver, receiver) compliant with the SB communication standard, and can transmit and receive differential signals compliant with the USB standard. D + and D- are line names of differential communication lines corresponding to the USB communication standard. The resistor R3 is connected between the D- line in the host 7 and GND.
And a resistance of 15 kΩ connected between
Is a 15 kΩ resistor connected between the D + line in the host 7 and GND. Further, the resistor (pull-up resistor) R5 is connected to the D + line and the V
1.5 kΩ resistor connected between CC. In addition,
The above is the same configuration as the conventional example shown in FIG.

【0017】スイッチ11は電子スイッチであり、電源
ラインVCCに接続された第1スイッチ端子(1ピン)
と、プルアップ抵抗R5に接続された第2スイッチ端子
(2ピン)と、制御端子(cont端子)を有し、co
nt端子のレベルによって内部のスイッチのON/OF
Fを行うものである。すなわち、cont端子への入力
がLレベルの時はスイッチをOFF、つまり1ピンと2
ピンの間を絶縁状態にし、cont端子がHレベルの時
はスイッチをON、つまり1ピンと2ピンの間を導通状
態にするものとする。また、電源が供給されていない状
態ではOFF状態になるものとする。図2に示す表は、
このようなcont端子入力と1ピン及び2ピンの動作
との関係を示している。
The switch 11 is an electronic switch, and is a first switch terminal (pin 1) connected to the power supply line VCC.
And a second switch terminal (pin 2) connected to the pull-up resistor R5, and a control terminal (cont terminal).
ON / OF of internal switch depending on the level of nt terminal
F is performed. That is, when the input to the cont terminal is at the L level, the switch is turned off, that is, when the pin 1 and the pin 2
It is assumed that the pins are insulated, and when the cont terminal is at the H level, the switch is turned on, that is, the pins 1 and 2 are made conductive. Further, it is assumed that the power supply is turned off when the power is not supplied. The table shown in FIG.
The relationship between the input of the cont terminal and the operation of the first and second pins is shown.

【0018】マイコン(制御回路)12は高速デバイス
8’のシステムコントローラであり、トランシーバ2の
制御を行う。また、スイッチ11と接続されている制御
出力端子(cont−out端子)の出力により、スイ
ッチ11の制御も行う。抵抗R10は、スイッチ11の
cont端子とGNDとの間に接続されている数+kΩ
の抵抗であり、マイコン12がcont−out端子を
制御していない時は、cont端子をLレベルにし、ス
イッチ11をOFF状態にするためのものである。換言
すれば、マイコン12が正常に動作していない時は、こ
の抵抗R10によってスイッチ11がONしないように
保持される。
A microcomputer (control circuit) 12 is a system controller of the high-speed device 8 ′ and controls the transceiver 2. The control of the switch 11 is also performed by the output of a control output terminal (cont-out terminal) connected to the switch 11. The resistance R10 is the number + kΩ connected between the cont terminal of the switch 11 and GND.
When the microcomputer 12 is not controlling the cont-out terminal, the resistance of the cont terminal is set to L level and the switch 11 is turned off. In other words, when the microcomputer 12 is not operating normally, the switch R11 is held so as not to be turned on by the resistor R10.

【0019】次に、以上のような構成のUSB通信デバ
イス8’において、静電ノイズによる誤作動からの自動
復帰動作について説明する。抵抗R5と直列に接続され
ているスイッチ11は、ON/OFFすることによっ
て、D+ラインのレベルをHレベル/Lレベルに切り替
えるものである。具体的には、図1(A)に示すよう
に、スイッチ11がONの時は抵抗R5はVCCに接続
されるため、D+ラインはHレベルとなり、ホスト7に
高速デバイス8’が接続していると認識される。また、
図1(B)に示すように、スイッチ11がOFFの時は
抵抗R5とVCCとは切断されるため、D+ラインは抵
抗R4によりLレベルになり、ホスト7にはデバイスは
接続されていないと認識させる。
Next, an operation of automatically recovering from malfunction due to electrostatic noise in the USB communication device 8 'configured as described above will be described. The switch 11 connected in series with the resistor R5 switches the level of the D + line between H level and L level by turning on / off. Specifically, as shown in FIG. 1A, when the switch 11 is ON, the resistor R5 is connected to VCC, so that the D + line becomes H level, and the high-speed device 8 'is connected to the host 7. Is recognized. Also,
As shown in FIG. 1B, when the switch 11 is OFF, the resistor R5 is disconnected from the VCC, so that the D + line becomes L level by the resistor R4 and no device is connected to the host 7. Make them recognize.

【0020】このスイッチ11の制御は、マイコン12
が行うので、結局マイコン12の制御によって、ホスト
7は高速デバイス8’が接続された、もしくは接続され
ていないと判断することになる。このスイッチ11の制
御を利用することで、静電ノイズなどで通信不可にな
り、ホスト7からの周期データ(例えば1ミリ秒毎のデ
ータ)が送られなくなった場合、マイコン12がスイッ
チ11を一旦OFFにし、ホスト7にとってはデバイス
が接続されていないのと同じ状態にした後、スイッチ1
1をONすることで改めてホスト7にデバイスの認識を
行わせることが可能となり、自動復帰できることにな
る。
The switch 11 is controlled by the microcomputer 12
After all, under the control of the microcomputer 12, the host 7 determines that the high-speed device 8 'is connected or not connected. By using the control of the switch 11, communication becomes impossible due to electrostatic noise or the like, and when periodic data (for example, data every 1 millisecond) cannot be transmitted from the host 7, the microcomputer 12 once switches the switch 11. After turning OFF, the host 7 is in the same state that no device is connected, and then the switch 1
By turning on 1, it is possible to cause the host 7 to recognize the device again, and it is possible to automatically return.

【0021】以下、具体的な動作手順を高速デバイス
8’を接続した場合を例に順を追って説明する。 (1)高速デバイス8’をホスト7に接続する。ホスト
7から電力供給を受けるデバイスとすると、接続と同時
に高速デバイス8’に電力も供給される。 (2)高速デバイス8’に電力が供給されると、まず高
速デバイス8’内のマイコン12がスイッチ11をON
する。結局、デバイス側でD+ラインとVCCの間は
1.5kΩの抵抗R5で接続されたことになる。 (3)D+ラインがHレベルになり、ホスト7は高速デ
バイス8’が接続されたと認識する。 (4)ホスト7から高速デバイス8’に、例えば1ミリ
秒毎の周期的な通信が行われる。
Hereinafter, a specific operation procedure will be described step by step with reference to an example in which the high-speed device 8 'is connected. (1) Connect the high-speed device 8 'to the host 7. Assuming that the device receives power supply from the host 7, power is also supplied to the high-speed device 8 'simultaneously with the connection. (2) When power is supplied to the high-speed device 8 ', the microcomputer 12 in the high-speed device 8' first turns on the switch 11.
I do. As a result, on the device side, the D + line and the VCC are connected by the resistor R5 of 1.5 kΩ. (3) The D + line goes high, and the host 7 recognizes that the high-speed device 8 'has been connected. (4) Periodic communication is performed from the host 7 to the high-speed device 8 ', for example, every 1 millisecond.

【0022】(5)静電ノイズなどが通信ラインに乗
り、通信障害が発生。 (6)ホスト7は高速デバイス8’からの応答がないと
認識し、D+ラインはHレベルにもかかわらずデバイス
が接続されていないと認識する。 (7)ホスト7からの1ミリ秒毎の通信が行われないこ
とを高速デバイス8’が検知する。 (8)D+ラインの1.5kΩの抵抗R5とVCCライ
ンとの間に配置されたスイッチ11をOFFにすること
で、ホスト7にはデバイスが接続されていないと認識さ
せる。 (9)スイッチ11をONにすることで、改めてホスト
7にデバイスの認識を行わせ、その結果、正常に動作す
るようになる。これにより、手順(4)の状態に自動復
帰できる。なお、(8)と(9)の動作を再起動動作と
いうものとする。
(5) Communication noise occurs on the communication line due to electrostatic noise or the like. (6) The host 7 recognizes that there is no response from the high-speed device 8 ', and recognizes that the D + line is not connected despite the H level. (7) The high-speed device 8 'detects that communication from the host 7 is not performed every 1 millisecond. (8) By turning off the switch 11 arranged between the 1.5 kΩ resistor R5 of the D + line and the VCC line, the host 7 is made to recognize that no device is connected. (9) By turning on the switch 11, the host 7 is made to recognize the device again, and as a result, it operates normally. Thereby, it is possible to automatically return to the state of the procedure (4). Note that the operations (8) and (9) are referred to as a restart operation.

【0023】なお、以上は高速デバイスの場合について
説明したが、低速デバイスの場合にも、D+ラインとD
−ラインが逆になるだけで同じ構成及び動作によって対
応できる。すなわち、低速デバイスの場合には、図3
(B)に示す構成において、VCCとプルアップ抵抗R
6とのスイッチ11を挿入し、このスイッチ11のco
nt端子をマイコン12によって制御する。また、スイ
ッチ11のcont端子を抵抗R10を介してGNDに
接続する。
Although the description has been given of the case of the high-speed device, the D + line and the D-line
-Can be accommodated by the same configuration and operation, only the lines are reversed. That is, in the case of a low-speed device, FIG.
In the configuration shown in (B), VCC and pull-up resistor R
6 and the switch 11 is inserted.
The nt terminal is controlled by the microcomputer 12. Further, the cont terminal of the switch 11 is connected to GND via a resistor R10.

【0024】また、通信ラインにノイズが乗った場合だ
けでなく、何らかの理由で電源ラインにノイズが乗り、
マイコン12のリセットがかかった場合にも、スイッチ
11のcont端子は抵抗R10によりLレベルになり
OFFとなるため、ホスト7はデバイスが接続されてい
ないと認識することになる。この後、マイコン12が正
常に再起動すれば、スイッチ11はONとなるため、や
はり自動復帰することができる。
In addition, not only when noise is on the communication line, but also on the power supply line for some reason,
Even when the microcomputer 12 is reset, the cont terminal of the switch 11 becomes L level and is turned off by the resistor R10, so that the host 7 recognizes that no device is connected. Thereafter, when the microcomputer 12 is restarted normally, the switch 11 is turned on, so that the switch 11 can be automatically restored.

【0025】以上のように、本実施の形態では、抵抗R
5と直列に挿入したスイッチ11を制御することでノイ
ズによる動作不良が起こっても自動復帰できることにな
る。したがって、USB接続の各種デバイス(電子機
器)において、通信ラインに静電気などのノイズが混入
し、通信エラーが発生した場合にも、コネクタの抜き差
しをする必要がなく自動復帰するので、ユーザはなにも
操作する必要がなく、機器の使用を継続できる。つま
り、ノイズによる誤作動に対応する煩雑さを低減でき
る。
As described above, in the present embodiment, the resistance R
By controlling the switch 11 inserted in series with 5, automatic recovery can be performed even if an operation failure due to noise occurs. Therefore, in various USB-connected devices (electronic devices), even when noise such as static electricity is mixed in a communication line and a communication error occurs, there is no need to disconnect and connect the connector, and the device automatically recovers. Operation is not required, and the use of the device can be continued. That is, it is possible to reduce the complexity of responding to malfunction due to noise.

【0026】[0026]

【発明の効果】以上説明したように本発明のUSB通信
デバイスでは、USB通信ラインのD+ラインと電源ラ
インとの間、または、D−ラインと電源ラインとの間に
挿入されたプルアップ抵抗と、前記プルアップ抵抗に対
して直列に挿入された電子スイッチと、前記電子スイッ
チを必要に応じて制御し、電子スイッチの再起動動作を
行う制御回路とを有することを特徴とする。このため、
デバイスがUSB通信ラインを介してホストとの間で通
信を行っている場合に、例えば静電ノイズによって通信
異常が発生し、ホスト側でデバイスの停止と認識し、通
信動作(周期的な信号送信)を停止した場合に、この異
常を制御回路で検知し、電子スイッチの再起動動作を行
うことにより、USB通信ラインに所定の電圧レベルを
印加し、ホスト側にデバイスの接続を認識させ、通信動
作を再開させることができる。したがって、通信異常が
生じた場合に、ユーザがコネクタの抜き差しを行うこと
なく、自動的に通信を再開させることができ、静電ノイ
ズ等による誤動作に対応する煩雑さを解消することが可
能となる。
As described above, in the USB communication device of the present invention, the pull-up resistor inserted between the D + line of the USB communication line and the power supply line or between the D- line and the power supply line is connected. And an electronic switch inserted in series with the pull-up resistor, and a control circuit that controls the electronic switch as necessary and performs a restart operation of the electronic switch. For this reason,
When a device is communicating with a host via a USB communication line, a communication error occurs due to, for example, electrostatic noise, the host recognizes that the device has stopped, and performs a communication operation (periodic signal transmission). ) Is stopped, the abnormality is detected by the control circuit, and the electronic switch is restarted, thereby applying a predetermined voltage level to the USB communication line, causing the host to recognize the connection of the device, and perform communication. Operation can be resumed. Therefore, when a communication error occurs, the communication can be automatically restarted without the user having to insert and remove the connector, and the trouble associated with a malfunction due to electrostatic noise or the like can be eliminated. .

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

【図1】本発明の実施の形態によるUSB通信デバイス
をUSB通信規格に対応した高速デバイスに適用した例
を示すブロック図であり、図1(A)は電子スイッチの
オン時の状態を示し、図1(B)は電子スイッチのオフ
時の状態を示す。
FIG. 1 is a block diagram showing an example in which a USB communication device according to an embodiment of the present invention is applied to a high-speed device conforming to the USB communication standard; FIG. 1A shows a state when an electronic switch is turned on; FIG. 1B shows a state where the electronic switch is off.

【図2】図1に示す電子スイッチの各端子の動作関係を
示す表である。
FIG. 2 is a table showing an operation relationship of each terminal of the electronic switch shown in FIG.

【図3】従来のUSB通信デバイスをUSB通信規格に
対応した高速デバイスに適用した例を示すブロック図で
あり、図3(A)はホストに高速デバイスを接続した場
合を示し、図3(B)はホストに低速デバイスを接続し
た場合を示す。
FIG. 3 is a block diagram showing an example in which a conventional USB communication device is applied to a high-speed device corresponding to the USB communication standard. FIG. 3A shows a case where a high-speed device is connected to a host, and FIG. ) Shows a case where a low-speed device is connected to the host.

【図4】図3に示す信号ラインD+、D−のレベルの組
み合わせとホストにおける判定結果の関係を示す表であ
る。
4 is a table showing a relationship between a combination of levels of signal lines D + and D- shown in FIG. 3 and a determination result in a host.

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

1、2……トランシーバ、7……ホスト、8’……高速
デバイス、11……スイッチ、12……マイコン、D
+、D−……差動通信ライン、R3、R4、R5、R1
0……抵抗。
1, 2, ... transceiver, 7 ... host, 8 '... high-speed device, 11 ... switch, 12 ... microcomputer, D
+, D-... Differential communication line, R3, R4, R5, R1
0 ... resistance.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 USB通信規格に対応した通信をホスト
との間で行うUSB通信デバイスにおいて、 USB通信ラインのD+ラインと電源ラインとの間、ま
たは、D−ラインと電源ラインとの間に挿入されたプル
アップ抵抗と、 前記プルアップ抵抗に対して直列に挿入された電子スイ
ッチと、 前記電子スイッチを必要に応じて制御し、電子スイッチ
の再起動動作を行う制御回路と、 を有することを特徴とするUSB通信デバイス。
1. A USB communication device for performing communication conforming to the USB communication standard with a host, wherein the USB communication device is inserted between a D + line of the USB communication line and a power supply line or between a D- line and a power supply line. A pull-up resistor, an electronic switch inserted in series with the pull-up resistor, and a control circuit that controls the electronic switch as needed to perform a restart operation of the electronic switch. Characteristic USB communication device.
【請求項2】 前記電子スイッチは、電源ラインに接続
された第1スイッチ端子と、プルアップ抵抗に接続され
た第2スイッチ端子と、前記制御回路によって制御され
る制御端子とを有することを特徴とする請求項1記載の
USB通信デバイス。
2. The electronic switch according to claim 1, wherein the electronic switch has a first switch terminal connected to a power supply line, a second switch terminal connected to a pull-up resistor, and a control terminal controlled by the control circuit. The USB communication device according to claim 1, wherein
【請求項3】 前記制御回路は、通信異常の発生を検知
して前記電子スイッチの再起動動作を行うことを特徴と
する請求項1記載のUSB通信デバイス。
3. The USB communication device according to claim 1, wherein the control circuit detects the occurrence of a communication error and performs a restart operation of the electronic switch.
【請求項4】 前記電子スイッチの再起動動作は、前記
電子スイッチを一旦オフした後に再度オンすることによ
り、前記電源ラインをプルアップ抵抗を介してUSB通
信ラインのD+ライン、または、D−ラインに接続する
動作であることを特徴とする請求項3記載のUSB通信
デバイス。
4. The restart operation of the electronic switch is performed by turning off the electronic switch once and then turning it on again, thereby connecting the power supply line to a D + line or a D- line of a USB communication line via a pull-up resistor. 4. The USB communication device according to claim 3, wherein the operation is a connection to the USB communication device.
【請求項5】 前記デバイスがUSB通信ラインを介し
てUSB通信規格に対応したホストに接続される高速デ
バイスであることを特徴とする請求項1記載のUSB通
信デバイス。
5. The USB communication device according to claim 1, wherein the device is a high-speed device connected to a host supporting the USB communication standard via a USB communication line.
【請求項6】 前記デバイスがUSB通信ラインを介し
てUSB通信規格に対応したホストに接続される低速デ
バイスであることを特徴とする請求項1記載のUSB通
信デバイス。
6. The USB communication device according to claim 1, wherein the device is a low-speed device connected to a host supporting a USB communication standard via a USB communication line.
【請求項7】 前記デバイスがUSB通信ラインを介し
てUSB通信規格に対応したホストからの所定間隔の信
号を受信して通信を行うことを特徴とする請求項1記載
のUSB通信デバイス。
7. The USB communication device according to claim 1, wherein the device performs communication by receiving a signal at a predetermined interval from a host compliant with the USB communication standard via a USB communication line.
【請求項8】 前記制御回路は、前記所定間隔の信号が
途絶えた場合に前記電子スイッチの再起動動作を行うこ
とを特徴とする請求項7記載のUSB通信デバイス。
8. The USB communication device according to claim 7, wherein the control circuit performs a restart operation of the electronic switch when the signal at the predetermined interval is interrupted.
JP2000124454A 2000-04-25 2000-04-25 Usb communication device Pending JP2001306413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000124454A JP2001306413A (en) 2000-04-25 2000-04-25 Usb communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000124454A JP2001306413A (en) 2000-04-25 2000-04-25 Usb communication device

Publications (1)

Publication Number Publication Date
JP2001306413A true JP2001306413A (en) 2001-11-02

Family

ID=18634586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000124454A Pending JP2001306413A (en) 2000-04-25 2000-04-25 Usb communication device

Country Status (1)

Country Link
JP (1) JP2001306413A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100748554B1 (en) 2005-07-26 2007-08-10 삼성전자주식회사 Universal serial bus host, universal serial bus system and method of driving the same
JP2008059409A (en) * 2006-09-01 2008-03-13 Nidec Sankyo Corp Usb communication system, usb device, and method for detecting abnormality of usb communication system
JP2008152533A (en) * 2006-12-18 2008-07-03 Hitachi Omron Terminal Solutions Corp Usb device, usb connection system, removal recognition fiction method of usb equipment, and recognition method of usb equipment
WO2008142904A1 (en) * 2007-05-23 2008-11-27 Sharp Kabushiki Kaisha Information processor, its startup method, and data transfer method
JP2011154549A (en) * 2010-01-27 2011-08-11 Toshiba Tec Corp Universal serial bus host device and program
JP2012064194A (en) * 2010-08-17 2012-03-29 Denso Wave Inc Portable terminal
KR101856930B1 (en) 2016-08-29 2018-05-11 현대자동차주식회사 Usb communication control method of usb accessory
US10241935B2 (en) 2014-07-02 2019-03-26 Lenovo (Singapore) Pte. Ltd. Portable device, cable assembly, and USB system
CN111918469A (en) * 2020-07-31 2020-11-10 道真自治县金泰电器元件有限公司 Static elimination system and method for electronic component processing

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100748554B1 (en) 2005-07-26 2007-08-10 삼성전자주식회사 Universal serial bus host, universal serial bus system and method of driving the same
JP2008059409A (en) * 2006-09-01 2008-03-13 Nidec Sankyo Corp Usb communication system, usb device, and method for detecting abnormality of usb communication system
JP2008152533A (en) * 2006-12-18 2008-07-03 Hitachi Omron Terminal Solutions Corp Usb device, usb connection system, removal recognition fiction method of usb equipment, and recognition method of usb equipment
WO2008142904A1 (en) * 2007-05-23 2008-11-27 Sharp Kabushiki Kaisha Information processor, its startup method, and data transfer method
JP2011154549A (en) * 2010-01-27 2011-08-11 Toshiba Tec Corp Universal serial bus host device and program
JP2012064194A (en) * 2010-08-17 2012-03-29 Denso Wave Inc Portable terminal
US10241935B2 (en) 2014-07-02 2019-03-26 Lenovo (Singapore) Pte. Ltd. Portable device, cable assembly, and USB system
KR101856930B1 (en) 2016-08-29 2018-05-11 현대자동차주식회사 Usb communication control method of usb accessory
US10089252B2 (en) 2016-08-29 2018-10-02 Hyundai Motor Company USB communication control method for USB accessory
CN111918469A (en) * 2020-07-31 2020-11-10 道真自治县金泰电器元件有限公司 Static elimination system and method for electronic component processing

Similar Documents

Publication Publication Date Title
US6415342B1 (en) Universal serial bus controlled connect and disconnect
US7268561B2 (en) USB attach detection for USB 1.1 and USB OTG devices
US5586271A (en) In-line SCSI bus circuit for providing isolation and bi-directional communication between two portions of a SCSI bus
JP3610424B2 (en) Electronic equipment and interface circuit
US7085876B2 (en) USB controlling apparatus for data transfer between computers and method for the same
US20030212841A1 (en) Method and apparatus of controlling an operational mode of a USB device
EP1550045B1 (en) Device operable as both a host and a non-host (i.e. dual-mode device)
US6363085B1 (en) Universal serial bus repeater
EP2375340B1 (en) Apparatus interoperable with backward compatible optical USB device
US8156349B2 (en) Electronic device and interface system
US20020169915A1 (en) USB connection-detection circuitry and operation methods of the same
US20070028127A1 (en) Universal serial bus system, and method of driving the same
JP2001075713A (en) Connection device for peripheral equipment
JP2000056871A (en) Ems enhancement circuit for usb system
KR100385205B1 (en) Apparatus and method for controlling device connection
EP1092194B1 (en) Device for use as stand-alone device and as slave device in a data bus system
US10579569B2 (en) Universal serial bus type-C interface circuit and pin bypass method thereof
EP1887475B1 (en) Interface for serial data communication
US7984201B2 (en) Communication apparatus and control method for the communication apparatus
KR20060114270A (en) Master device, control method thereof and electronic apparatus having master device
US7073008B2 (en) Method of function activation on a bridge system
JP2001306413A (en) Usb communication device
JP2003186584A (en) Interface device
US10289590B2 (en) Electronic device and method of auto switching linking path giving priority to a priority port
JP2001177543A (en) Device and system for bus connection