JP2007047909A - Usb device, and method for evading its standby status - Google Patents
Usb device, and method for evading its standby status Download PDFInfo
- Publication number
- JP2007047909A JP2007047909A JP2005229398A JP2005229398A JP2007047909A JP 2007047909 A JP2007047909 A JP 2007047909A JP 2005229398 A JP2005229398 A JP 2005229398A JP 2005229398 A JP2005229398 A JP 2005229398A JP 2007047909 A JP2007047909 A JP 2007047909A
- Authority
- JP
- Japan
- Prior art keywords
- usb
- bus line
- pull
- standby
- usb device
- 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
Links
Images
Landscapes
- Information Transfer Systems (AREA)
Abstract
Description
本発明は、親機となるホストに一台又は複数台の子機を接続し、親機からポーリング(問い合わせ)によって子機側を通信するUSBにおけるUSBデバイス及びそのスタンバイ状態回避方法に関する。 The present invention relates to a USB device in USB that connects one or a plurality of slave units to a host host and communicates with the slave unit by polling (inquiry) from the master unit, and a standby state avoidance method thereof.
流通業界におけるPOSターミナルでは、現在、殆どがパソコンベースのUSB接続によるアーキテクチャーで構成されている。そして、POSターミナルにおいては、スキャナ、表示器、プリンタ、カードリーダ等の周辺機器を数多く接続しなければならない。USBにおいては、ルートハブ(HUB)の使用により多数の周辺機器の接続が可能なものであるが、ルートハブの従属接続は、全体で5段までと制限されている。また、ホストの内部ではハブとデバイス全てにアドレスが付与されて管理されているものであるが、このアドレスが最大127個なので、USBに接続可能なデバイスは、最大127個ということになる。このように多数のデバイスを接続可能なUSB I/Fは、急速に普及している。このようなUSBの接続状態及び接続時のサスペンド等の問題点を開示したものとしては、特許文献1に示されたようなものがある。 Most POS terminals in the distribution industry currently have a personal computer based USB connection architecture. In the POS terminal, many peripheral devices such as a scanner, a display device, a printer, and a card reader must be connected. In USB, a number of peripheral devices can be connected by using a root hub (HUB), but the number of subordinate connections of the root hub is limited to 5 stages as a whole. In the host, all hubs and devices are assigned addresses and managed. Since this address is 127 at the maximum, the number of devices that can be connected to the USB is 127. USB I / F capable of connecting a large number of devices in this manner is rapidly spreading. Patent Document 1 discloses such a USB connection state and problems such as suspend during connection.
しかしながら、USBデバイスは、特許文献1にも記載されているように、ESD(静電放電)等の外来ノイズによりスタンバイモード(サスペンドモード)に陥ることがあり、この状態ではデバイスとしての動作が行われないため、POSターミナル等のFA機器においては致命的な現象であった。これを回避するために、デバイスドライバの処理として通信エラー発生時、USBデバイスに対しバスリセットを発行し、スタンバイ状態から回避する処理が行われていた。 However, as described in Patent Document 1, a USB device may fall into a standby mode (suspend mode) due to external noise such as ESD (electrostatic discharge). In this state, the device operates as a device. This is a fatal phenomenon in FA devices such as POS terminals. In order to avoid this, when a communication error occurs as a process of the device driver, a bus reset is issued to the USB device to avoid the standby state.
しかしながら、USBにおいては、すべての通信の制御を親機が制御し、子機側から勝手に通信を開始することができないように構成されていることが特徴であり、スタンバイ状態から回避する処理も上位アプリケーションがUSBデバイスと通信しようとした際にしかエラーを検出できないため、レスポンスの悪化を招く場合があった。 However, the feature of USB is that the master unit controls all communications and the slave unit cannot start communications on its own, and the process of avoiding the standby state is also included. Since an error can be detected only when a higher-level application tries to communicate with a USB device, the response may be deteriorated.
請求項1記載の発明は、ESD又は何らかのノイズ等によりUSBの通信ラインが意図しないサスペンド状態となったことを検出するスタンバイ検出手段と、このスタンバイ検出手段からの信号によりUSBバスラインを切断し所定時間後にホストとの接続を再開するプルアップ手段とよりなるスタンバイ状態回避システムを備えたUSBデバイスである。 According to the first aspect of the present invention, standby detection means for detecting that the USB communication line has entered an unintended suspend state due to ESD or some noise, and the USB bus line is disconnected by a signal from the standby detection means. The USB device includes a standby state avoidance system including pull-up means for resuming connection with the host after a time.
また、請求項2記載の発明は、ESD又は何らかのノイズ等によりUSBバスラインのSOFが一定期間なくなったときに前記USBバスラインのプルアップを停止し、所定時間経過後に前記USBバスラインのプルアップを再開してホストとの接続の確立を行うようにしたUSBデバイスのスタンバイ状態回避方法である。 The invention according to claim 2 stops the pull-up of the USB bus line when the SOF of the USB bus line disappears for a certain period due to ESD or some noise, and pulls up the USB bus line after a predetermined time elapses. This is a method for avoiding the standby state of the USB device by resuming the connection and establishing the connection with the host.
USBデバイス側でタイムラグなくスタンバイ状態の回避が行えることでレスポンスの悪化を防ぐことが可能となる。 By avoiding the standby state without a time lag on the USB device side, it becomes possible to prevent the response from deteriorating.
本発明の実施の態様を図面に基づいて説明する。まず、USBホスト側1(ホスト)とUSBデバイス側2(デバイス)とは、D+及びD−と表示したUSBバスライン3で接続されている。このUSBバスライン3は、プルダウン抵抗4、5により所定の信号電圧が維持される。また、このUSBバスライン3は、前記USBデバイス側2に設けられたUSBコントローラ6に接続されている。さらに、前記USBデバイス側2には、前記USBコントローラ6に接続されたCPU7が設けられ、このCPU7と前記USBバスライン3のD+側との間には、スタンバイ検出手段としてのスタンバイ検出回路8が接続されている。また、前記CPU7と前記USBバスライン3のD+側との間には、プルアップバッファ9がプルアップ抵抗10を介して接続されている。前記プルアップバッファ9は、USBバスライン3を切断し後述するように所定時間後にUSBホスト側1との接続を再開するプルアップ手段として機能するものであり、このプルアップ手段と前記スタンバイ検出手段としてのスタンバイ検出回路8とによりスタンバイ状態回復システム11が構成されている。
Embodiments of the present invention will be described with reference to the drawings. First, the USB host side 1 (host) and the USB device side 2 (device) are connected by a
このような構成において、通常、USBバスライン3は、データの送受信をしない場合でも図2に示すように1ms間隔のSOF(Start of Frame)バケットでUSBホスト側1より駆動されている。スタンバイ検出回路8は、このSOFバケットを検出している。正常なUSB接続がなされている場合において、ESD又は何らかのノイズ等によりUSBの通信ラインが意図しないサスペンド状態となった場合、すなわち、SOFバケットが検出されない状態が一定期間継続した場合(一定期間振幅無し)、スタンバイ検出回路8は、CPU7にその状態を通知する。CPU7は、USBホスト側1よりリモートウエィクアップが許可されていない場合(スタンバイに入ることが通知されていない場合)、プルアップバッファ9をオフし、プルアップを停止する。USBバスライン3は、USBホスト側1でプルダウン抵抗4でプルダウンされているため、D+のUSBバスライン3はLレベルとなり、USBバスライン3が切断されたのと同じ状態となる。このため、USBホスト側1においては、本デバイスのドライバを一旦アンロードする。そして、一定期間経過後に、CPU7は、プルアップバッファ9をオンし、プルアップを開始する。プルアップが開始されることにより、USBバスライン3は接続状態となり、USBホスト側1はUSBデバイス側2のデバイスを認識し、ドライバのロードが行われ、そのデバイスは動作可能となる。
In such a configuration, the
この状態を図3に基いて別の観点から説明する。すなわち、USB通信準備が完了している状態においては、USBバスライン3のD+のプルアップが開始される。そして、スタンバイ検出回路8により、SOFの状態が常に検出されており、D+ラインにおけるSOFが一定期間振幅無しの状態になっているか否かの検出がなされている。予め定めた一定期間、振幅無しの状態になると、USBホスト側1でのリモートウエィクアップが許可されている状態かどうか、すなわち、正常なスタンバイ状態か否かのチェックがなされ、リモートウエィクアップが許可されている状態であれば、スタンバイ状態へ遷移する。また、リモートウエィクアップが許可されている状態でなければ、USBバスライン3のD+ラインのプルアップが停止され、所定時間後に再開され、かつ、USBバスライン3のD+ラインのSOFの振幅の有無を検出される状態となり、SOFが送出されていれば、USBデバイスの接続が再開される。
This state will be described from another viewpoint based on FIG. That is, in the state where the USB communication preparation is completed, the D + pull-up of the
このような動作において、SOFの振幅の有無とリモートウエィクアップの許可がされているか否か(正常なスタンバイ状態か否か)の二条件の組み合わせは4通りあるが、SOFの振幅が無くリモートウエィクアップの許可がない(正常なスタンバイ状態ではない)場合に限って異常状態となり、一旦、プルアップが停止した後、所定時間後にプルアップを開始し、USBデバイスの接続を再開する。 In such an operation, there are four combinations of two conditions: the presence / absence of the SOF amplitude and whether or not the remote wake-up is permitted (whether or not it is in a normal standby state). Only when there is no permission for backup (not in the normal standby state), an abnormal state occurs. Once the pull-up is stopped, the pull-up is started after a predetermined time, and the USB device connection is resumed.
このように、USBデバイス側でタイムラグなくスタンバイ状態の回避が行えることでレスポンスの悪化を防ぐことが可能となる。したがって、ESD又は何らかのノイズ等によりUSBの通信ラインが意図しないサスペンド状態になってしまうことが多々あるが、従来のように、USBホスト側1からドライバを操作して回避するような面倒な手段をとることなく、USBデバイス側2から回避することができるものである。 As described above, the standby state can be avoided without time lag on the USB device side, so that it is possible to prevent the response from deteriorating. Therefore, the USB communication line often enters an unintended suspend state due to ESD or some noise. However, as in the past, troublesome means such as operating the driver from the USB host side 1 is avoided. It can be avoided from the USB device side 2 without taking it.
1 USBホスト1
2 USBデバイス2
3 USBバスライン
8 スタンバイ検出手段
9 プルアップ手段
11 スタンバイ状態回避シス
1 USB host 1
2 USB device 2
3
Claims (2)
When the SOF of the USB bus line is lost for a certain period due to ESD or noise, the USB bus line pull-up is stopped, and after a predetermined time elapses, the USB bus line pull-up is resumed to establish a connection with the host. A method for avoiding a standby state of a USB device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005229398A JP2007047909A (en) | 2005-08-08 | 2005-08-08 | Usb device, and method for evading its standby status |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005229398A JP2007047909A (en) | 2005-08-08 | 2005-08-08 | Usb device, and method for evading its standby status |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007047909A true JP2007047909A (en) | 2007-02-22 |
Family
ID=37850699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005229398A Pending JP2007047909A (en) | 2005-08-08 | 2005-08-08 | Usb device, and method for evading its standby status |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007047909A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010009347A (en) * | 2008-06-27 | 2010-01-14 | I-O Data Device Inc | Peripheral device and information processing system |
US8020049B2 (en) | 2008-12-18 | 2011-09-13 | Avago Technologies Ecbu Ip (Singapore) Pte. Ltd. | Detection of and recovery from an electrical fast transient/burst (EFT/B) on a universal serial bus (USB) device |
JP2016004515A (en) * | 2014-06-19 | 2016-01-12 | セイコーエプソン株式会社 | Electronic device |
CN114860520A (en) * | 2022-04-22 | 2022-08-05 | 珠海海奇半导体有限公司 | USB slave equipment extraction detection circuit |
EP4075237A3 (en) * | 2021-03-16 | 2023-05-24 | INTEL Corporation | Apparatus and method to reduce standby power for systems in battery mode with a connected bus powered device |
-
2005
- 2005-08-08 JP JP2005229398A patent/JP2007047909A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010009347A (en) * | 2008-06-27 | 2010-01-14 | I-O Data Device Inc | Peripheral device and information processing system |
US8020049B2 (en) | 2008-12-18 | 2011-09-13 | Avago Technologies Ecbu Ip (Singapore) Pte. Ltd. | Detection of and recovery from an electrical fast transient/burst (EFT/B) on a universal serial bus (USB) device |
JP2016004515A (en) * | 2014-06-19 | 2016-01-12 | セイコーエプソン株式会社 | Electronic device |
EP4075237A3 (en) * | 2021-03-16 | 2023-05-24 | INTEL Corporation | Apparatus and method to reduce standby power for systems in battery mode with a connected bus powered device |
CN114860520A (en) * | 2022-04-22 | 2022-08-05 | 珠海海奇半导体有限公司 | USB slave equipment extraction detection circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8726094B2 (en) | Communication monitoring apparatus, communication monitoring method, and storage medium storing communication monitoring program | |
US6460143B1 (en) | Apparatus and method for awakening bus circuitry from a low power state | |
US8635479B2 (en) | Apparatus, system, and method of power saving control, and power saving control program | |
JP4960899B2 (en) | Image processing apparatus, serial bus control method, serial bus control program, and recording medium | |
US9811145B2 (en) | Reduction of idle power in a communication port | |
US9497298B2 (en) | Information processing apparatus, network interface device, control method therefor, and storage medium | |
JP5397739B2 (en) | Image processing apparatus, image processing method, and image processing program | |
EP2472355B1 (en) | Graceful out-of-band power control of remotely-managed computer systems | |
US9791914B2 (en) | Returning back to normal power mode only after completing a transition to a power saving mode by an image forming apparatus | |
JP2012533106A (en) | USB attachment detection | |
CN100378617C (en) | Network wakening device and method | |
US20120216061A1 (en) | Data processing apparatus and power saving control method of the same | |
JP2007047909A (en) | Usb device, and method for evading its standby status | |
US20060045037A1 (en) | Communication apparatus and control method for the communication apparatus | |
US20160187955A1 (en) | Information processing apparatus, information processing method and computer program product | |
JP5309932B2 (en) | Relay device for connecting hot-plug device devices | |
CN108885484B (en) | Remote terminal device, control method thereof, computer system, and recording medium | |
JP4450692B2 (en) | USB connection system, USB device, and host | |
JP2007334731A (en) | Usb equipment, host device and usb connection system | |
JP2002244775A (en) | Usb device | |
US20100031087A1 (en) | Method of control in a system having a media reader | |
JP2000353032A (en) | Peripheral equipment with power saving function | |
US10168764B2 (en) | Electronic device that ensures reduced power consumption and high speed switching of power modes and recording medium | |
JP4032221B2 (en) | OUTPUT TERMINAL DEVICE, ITS CONTROL DEVICE, PROGRAM FOR CONTROLLING COMPUTER AND RECORDING MEDIUM | |
WO2011088753A1 (en) | Method for managing power supply of display and display |