JP2006048106A - Peripheral equipment device system - Google Patents
Peripheral equipment device system Download PDFInfo
- Publication number
- JP2006048106A JP2006048106A JP2004223791A JP2004223791A JP2006048106A JP 2006048106 A JP2006048106 A JP 2006048106A JP 2004223791 A JP2004223791 A JP 2004223791A JP 2004223791 A JP2004223791 A JP 2004223791A JP 2006048106 A JP2006048106 A JP 2006048106A
- Authority
- JP
- Japan
- Prior art keywords
- usb
- signal
- usb interface
- monitoring
- communication
- 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.)
- Withdrawn
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、パーソナルコンピュータ等のホスト側コンピュータとUSBケーブルを介して接続されるUSBデバイスに関するものである。更には、上記USBケーブルを介して、所要のデータを通信するUSBデバイスに関するものである。 The present invention relates to a USB device connected to a host computer such as a personal computer via a USB cable. Furthermore, the present invention relates to a USB device that communicates required data via the USB cable.
パーソナルコンピュータ(以降PCと略す)等に周辺機器デバイスを接続するインタフェースとして、ユニバーサルシリアルバス規格(以下、USBと略す)があり、取扱いの簡便さから広く普及し始めている。 There is a universal serial bus standard (hereinafter abbreviated as USB) as an interface for connecting peripheral device devices to personal computers (hereinafter abbreviated as PCs) and the like, and it is becoming widespread due to the ease of handling.
この方法は、PCと複数の周辺機器デバイスの間をシリアル通信で接続するもので、プラグアンドプレイ(周辺機器を新たに接続もしくは削除した場合に自動的に接続を認識する機能)、ホットインサーション(電源を入れたまま接続、取り外しが出来る機能)、および電源供給の機能があり、ユーザーが接続の際にアドレスなどの設定について煩わされることかない様に、考慮されたものである。 This method connects a PC and a plurality of peripheral devices via serial communication. Plug and play (a function that automatically recognizes a connection when a new peripheral device is connected or deleted), hot insertion (A function that can be connected and disconnected while the power is on) and a power supply function are provided so that the user does not have to worry about setting addresses and the like when connecting.
USBの接続には、VBUSと称する5V電源およびGNDと、D+、D−の2本の信号の組み合わせの合計4本の配線を専用コネクタで脱着する規定となっている。この電源の供給できる電流値には限界があり、USBの規格上では100mA〜500mAに制限されている。またUSBでは、ホストの命令により周辺機器がサスペンド状態にならなければいけないことが定義されており、この状態ではVBUSからの電流消費は500μAと小さくしなくてはならない。サスペンド状態からの復帰にはレジューム命令がある。 For USB connection, it is stipulated that a total of four wires of a combination of two signals of 5V power source and GND called VBUS and D + and D− are attached and detached with a dedicated connector. There is a limit to the current value that can be supplied by this power supply, and the current is limited to 100 mA to 500 mA according to the USB standard. In USB, it is defined that a peripheral device must be in a suspended state by a command from a host. In this state, current consumption from VBUS must be reduced to 500 μA. There is a resume command for returning from the suspended state.
また、下記特許文献1にはUSBデバイスの初期化や電源オフ状態にする記載がある。
ところが、何らかの理由でホストからのデータ通信中に通信異常が生じた時、例えばホストPCがサスペンドに失敗した場合などには、従来ではユーザーはどのような状況が生じたかを知るすべがなく、期待したデバイス側の動作終了が著しく遅いなどにより、ユーザーの期待した作業が失敗したことを予想するのみであった。 However, when a communication error occurs during data communication from the host for some reason, for example, when the host PC fails to suspend, the user has conventionally had no way of knowing what situation has occurred. It was only expected that the work expected by the user failed because the operation on the device side was extremely slow.
本発明は、上記の問題点を解決するためになされたもので、本発明は、何らかの理由でホストからのデータ通信中に通信異常が生じた時、速やかにユーザーに通信異常が生じたことを知らせ、異常状態に対する対応を促し、ユーザーの利便性を向上させることを課題とする。 The present invention has been made to solve the above-described problems, and the present invention is intended to promptly inform the user that a communication error has occurred when a communication error occurs during data communication from the host for some reason. It is an object to improve the convenience of the user by informing and prompting a response to the abnormal state.
上記課題を解決するため、本発明に係る第1の発明は、USBインタフェース手段およびUSBインタフェース手段を制御手段を有する周辺機器デバイスにおいて、
VBUSを監視する手段と監視結果をUSB制御ソフトウェアに通知する手段、D+信号を監視する手段と監視結果をUSB制御ソフトウェアに通知する手段、D−信号を監視する手段と監視結果をUSB制御ソフトウェアに通知する手段、とを有し、上記監視期間を知る時間計測手段を有し、
更には、表示手段と表示手段を制御する表示制御手段とを有し、
VBUSの電圧が検出されるにも関わらず、D+信号監視手段およびD−信号監視手段によってUSBインタフェース信号がサスペンド状態、もしくは、バスリセットシーケンスを開始しない状態に陥った場合は、上記時間計測手段経過後に、USB通信不能と判断し、装置に搭載の表示装置にてUSB通信異常状態を通知することを特徴とする。
In order to solve the above problems, a first invention according to the present invention provides a USB interface unit and a peripheral device device having a control unit for the USB interface unit.
Means for monitoring VBUS, means for notifying USB control software of monitoring results, means for monitoring D + signal, means for notifying USB control software of monitoring results, means for monitoring D-signal, and monitoring results to USB control software Means for notifying, and having time measuring means for knowing the monitoring period,
Furthermore, it has a display control means for controlling the display means and the display means,
If the USB interface signal is suspended or does not start the bus reset sequence by the D + signal monitoring means and the D− signal monitoring means even though the voltage of VBUS is detected, the time measuring means has elapsed. Later, it is determined that USB communication is impossible, and a USB communication abnormal state is notified by a display device mounted on the device.
本発明に係る第1の発明によれば、D+信号監視回路およびD+信号状態をUSB制御ソフトウェアに通知する手段と、D−信号監視回路およびD−信号状態をUSB制御ソフトウェアに通知する手段を備えることにより、USBインタフェース120がバスリセットシーケンス開始が異常に長い異常状態に陥った場合でも、速やかにUSBインタフェース信号およびUSB通信の異常状態を速やかにユーザーに通知し、異常状態に対する対応を促すことが可能となり、ユーザーの利便性を向上させることができる。
According to the first aspect of the present invention, the D + signal monitoring circuit and the D + signal state are notified to the USB control software, and the D− signal monitoring circuit and the D− signal state are notified to the USB control software. As a result, even when the
以下、図面を参照して本発明の実施形態を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
以下、図1を参照して、本発明の実施形態を示す周辺機器デバイスの全体を説明する。 Hereinafter, with reference to FIG. 1, the whole peripheral device which shows embodiment of this invention is demonstrated.
図1は、本発明の第1実施形態を示す周辺機器デバイス110と周辺機器デバイスが接続されるホストPC150の概略構成を説明するブロック図である。110および150はおのおのデバイス用のUSBインタフェース120とホスト用USBインタフェースを有し、USBケーブル180により接続されている。
FIG. 1 is a block diagram illustrating a schematic configuration of a
以下、USBのHighSpeedデバイスの動作を例に取り説明する。 The operation of the USB HighSpeed device will be described below as an example.
通常のデータ通信時においては、図2(A)に示すように、ホスト側のUSBインタフェース152より125μSの規定時間間隔でSOFパケットが送信される。デバイス側のUSBインタフェース120は、このSOFパケットを受信するとUSB制御ソフトウェア131に割込み信号を発する。USB制御ソフトウェア131はこの割込み信号により図3に示す、SOFパケット割込み処理ルーチンを開始する。正常な通信状態においては、ホスト側USBインタフェース信号の発するSOFパケットに続いて送受信データのパケットが通信されるので、USB制御ソフトウェアは、送受信処理すべきデータを検出すると、送受信処理ステップ1303を行う。以下同様の処理の繰り返しにより処理が進行する。
During normal data communication, as shown in FIG. 2A, SOF packets are transmitted from the host-
次に、通常のデータ通信が終了した後、ホストPCがサスペンド処理に入る場合の動作を説明する。ホストPC150はUSB制御ソフトウェア151にサスペンド処理を命じるとUSBインタフェース152はSOFパケットの送出を停止し、D+信号をプルアップする。デバイス側のUSBインタフェース120は最後のSOFパケットを検出するとUSB制御ソフトウェア131に割込み信号を送出し、図3の割込み処理ルーチンが開始される。USBインタフェース120は規定時間T3(HighSpeedの場合は3mS〜3.125mS)経過後にD+信号をプルアップする。このようにしてUSBインタフェースはサスペンド状態になる。
Next, an operation when the host PC enters the suspend process after normal data communication is completed will be described. When the host PC 150 instructs the USB control software 151 to suspend, the
次に、通常のデータ通信が終了した後、ホストPCがバスリセットシーケンスに入る場合の動作を説明する。ホストPC150はUSB制御ソフトウェア151にバスリセット処理を命じると、USBインタフェース152はSOFの送出を停止し、D+信号をプルアップする。更に規定時間T3経過後に一旦D−信号を駆動してCHARPと呼ばれるHighSpeedデバイスのバスリセットシーケンスを開始する。このようにしてUSBインタフェースはバスリセットシーケンス状態になる。
Next, the operation when the host PC enters the bus reset sequence after normal data communication is completed will be described. When the host PC 150 instructs the USB control software 151 to perform bus reset processing, the
以上が、USBインタフェースが正常に動作する場合の説明である。 The above is the description when the USB interface operates normally.
次に、何らかの理由によりホスト側がUSBデータ通信中に異常状態に入った場合の本提案の周辺装置デバイス動作を説明する。 Next, the operation of the proposed peripheral device when the host side enters an abnormal state during USB data communication for some reason will be described.
この場合、ホスト側のUSBインタフェース152より本来定期的に発せられるべきSOFパケットが中断した状態となる。原因としては、何らかの障害によるホストPC側のUSB制御ソフトウェア151、USBインタフェース152、などのサスペンド処理やバスリセットシーケンス処理の失敗や、ケーブルの不具合によるサスペンド処理やバスリセットシーケンス処理の失敗が考えられる。
In this case, the SOF packet that should be regularly transmitted from the host-
このような状態に入った場合、デバイス側のUSBインタフェース120は最後のSOFパケットを検出するとUSB制御ソフトウェア131に割込み信号を送出し、図3の割込み処理ルーチンが開始される。USBインタフェース120は送受信処理の有無の確認ステップ1302を行ったのち、サスペンド処理またはバスリセットシーケンスに対応すべD+信号をプルアップする。しかる後に、VBUS監視回路121により、VBUSの電圧を監視しケーブルが外されていないことを確認し、D+信号監視回路122、およびD−信号監視回路123により、USBインタフェース信号がサスペンド状態およびバスリセットシーケンスに入ったかを監視する。いずれの場合にも相当しない場合は、更にT5(ホストHUBを想定して50mS)の間バスリセットシーケンスが開始されないかを監視する。T5時間経過後は、バスリセットシーケンスの開始が異常に長い状態と判断し、USB制御ソフトウェア131は表示制御装置132を介して、異常状態を表示装置140に表示させる。
In such a state, when the device-
この表示により、ユーザーは速やかに異常状態を知り、ホストPCの状態やケーブルの状態を確認し異常状態に対する対処が可能となる。 By this display, the user can quickly know the abnormal state, check the state of the host PC and the cable state, and cope with the abnormal state.
上記第1実施形態では、USBインタフェース信号の異常を検出した後、表示装置に表示したが、周辺装置デバイスがプリンタのように印字装置を有する場合は、通信の異常状態を印字してユーザーに通知する構成としても良い。 In the first embodiment, the abnormality of the USB interface signal is detected and then displayed on the display device. However, if the peripheral device has a printing device such as a printer, the communication abnormal state is printed and notified to the user. It is good also as composition to do.
110 周辺装置デバイス
120 周辺装置デバイスのUSBインタフェース
121 VBUS監視回路
122 D+信号監視回路
123 D−信号監視回路
131 USB制御ソフトウェア
140 表示装置
110
Claims (2)
VBUSを監視する手段と監視結果をUSB制御ソフトウェアに通知する第1通知手段と、
D+信号を監視する手段と監視結果をUSB制御ソフトウェアに通知する第2通知手段と、
D−信号を監視する手段と監視結果をUSB制御ソフトウェアに通知する第3通知手段と、
監視期間を知る時間計測手段と表示手段を有し、
前記周辺機器デバイス装置は、VBUSの電圧が検出されるにも関わらず、
D+信号監視手段およびD−信号監視手段によってUSBインタフェース信号がサスペンド状態、もしくは、バスリセットシーケンスを開始しない状態に陥った場合は、前記時間計測手段による前記監視期間経過後に、USB通信不能と判断し、前記表示手段にUSB通信異常状態を通知する周辺機器デバイス装置。 In a peripheral device device having USB interface means and control means for controlling the USB interface means,
Means for monitoring VBUS and first notification means for notifying the USB control software of the monitoring result;
Means for monitoring the D + signal and second notification means for notifying the USB control software of the monitoring result;
Means for monitoring the D-signal and third notification means for notifying the USB control software of the monitoring result;
It has time measuring means and display means to know the monitoring period,
Although the peripheral device device detects the voltage of VBUS,
When the USB interface signal is suspended or does not start the bus reset sequence by the D + signal monitoring unit and the D− signal monitoring unit, it is determined that USB communication is impossible after the monitoring period by the time measuring unit has elapsed. A peripheral device device that notifies the display means of a USB communication abnormal state.
印字手段を有し、USB通信不能と判断した場合には、前記印字手段にてUSB通信異常状態を印字して通知する周辺機器デバイス装置。 The peripheral device device according to claim 1,
A peripheral device device that has a printing unit and prints and notifies a USB communication abnormal state by the printing unit when it is determined that USB communication is impossible.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004223791A JP2006048106A (en) | 2004-07-30 | 2004-07-30 | Peripheral equipment device system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004223791A JP2006048106A (en) | 2004-07-30 | 2004-07-30 | Peripheral equipment device system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006048106A true JP2006048106A (en) | 2006-02-16 |
Family
ID=36026627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004223791A Withdrawn JP2006048106A (en) | 2004-07-30 | 2004-07-30 | Peripheral equipment device system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006048106A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007334731A (en) * | 2006-06-16 | 2007-12-27 | Hitachi Omron Terminal Solutions Corp | Usb equipment, host device and usb connection system |
JP2009042872A (en) * | 2007-08-07 | 2009-02-26 | Fujitsu Telecom Networks Ltd | Monitoring device |
KR20120035265A (en) * | 2010-10-05 | 2012-04-16 | 현대모비스 주식회사 | The apparatus and method for diagnosing usb memory in avn system |
-
2004
- 2004-07-30 JP JP2004223791A patent/JP2006048106A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007334731A (en) * | 2006-06-16 | 2007-12-27 | Hitachi Omron Terminal Solutions Corp | Usb equipment, host device and usb connection system |
JP4646859B2 (en) * | 2006-06-16 | 2011-03-09 | 日立オムロンターミナルソリューションズ株式会社 | USB device and USB connection system |
JP2009042872A (en) * | 2007-08-07 | 2009-02-26 | Fujitsu Telecom Networks Ltd | Monitoring device |
KR20120035265A (en) * | 2010-10-05 | 2012-04-16 | 현대모비스 주식회사 | The apparatus and method for diagnosing usb memory in avn system |
KR101660543B1 (en) | 2010-10-05 | 2016-09-27 | 현대모비스 주식회사 | The apparatus and method for diagnosing USB memory in AVN system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8296593B2 (en) | Host apparatus and information processing system using the same | |
US8726094B2 (en) | Communication monitoring apparatus, communication monitoring method, and storage medium storing communication monitoring program | |
CN110908841B (en) | I2C communication abnormity recovery method and device | |
US8578182B2 (en) | Power lock-up setting method performed by baseboard management controller and electronic apparatus using the same | |
US7043267B1 (en) | Communication device disconnecting a communication line by detecting an abnormal state of computer equipment | |
US7808668B2 (en) | Image forming system, user interface device and image forming apparatus | |
JP2006343993A (en) | Radio communication device and method for controlling it | |
JP2018085075A (en) | Function extension device, information processing system and control program of function extension device | |
JP4646859B2 (en) | USB device and USB connection system | |
JP2001067156A (en) | Peripheral equimenht of computer, control method therefor, image pickup device, and storage medium | |
US20160352928A1 (en) | Information processing apparatus, method of controlling an information processing apparatus, and storage medium | |
CN110268393B (en) | Communication device, communication method, program, and communication system | |
JP5309932B2 (en) | Relay device for connecting hot-plug device devices | |
JP6014627B2 (en) | Electronic device power mode switching system | |
JP2006048106A (en) | Peripheral equipment device system | |
JP2007047909A (en) | Usb device, and method for evading its standby status | |
JP2006048496A (en) | Usb connection system, usb device, and host | |
US8510593B2 (en) | Control apparatus | |
JP2000353032A (en) | Peripheral equipment with power saving function | |
JP2013045354A (en) | Printer device, communication system, and communication method | |
JP2002373036A (en) | Usb equipment | |
JP2007323103A (en) | Board with on-board power and reset control method of board | |
JP4878740B2 (en) | USB device and USB connection system | |
JP2005332138A (en) | Universal serial bus (usb) command servo amplifier and its control method | |
JP4476010B2 (en) | Serial communication processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20071002 |