JP2006048106A - Peripheral equipment device system - Google Patents

Peripheral equipment device system Download PDF

Info

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
Application number
JP2004223791A
Other languages
Japanese (ja)
Inventor
Yukihiko Ogata
幸彦 尾形
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2004223791A priority Critical patent/JP2006048106A/en
Publication of JP2006048106A publication Critical patent/JP2006048106A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To detect an abnormal state of a USB interface signal and immediately inform a user of occurrence of any communication abnormality when the communication abnormality is caused during data communication from a host. <P>SOLUTION: This peripheral equipment device having a USB interface means and a means for controlling the USB interface means is provided with a means for monitoring VBUS, D+ and D- signals, a means for notifying USB control software of a monitor result, a time measuring means for recognizing a monitor period, a display means and a display control means for controlling the display means. When a USB interface signal is put in a suspend state or in the non-start state of a bus reset sequence by the D+ signal monitor means and D- signal monitor means regardless of the detection of the voltage of a VBUS, it is decided that the USB communication is invalid after the lapse of the time measuring means, and a user is notified of the USB communication abnormal state by a display device mounted on the device. <P>COPYRIGHT: (C)2006,JPO&NCIPI

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デバイスの初期化や電源オフ状態にする記載がある。
特開2001−337752号公報
Patent Document 1 listed below describes a USB device initialization and power-off state.
JP 2001-337752 A

ところが、何らかの理由でホストからのデータ通信中に通信異常が生じた時、例えばホスト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 USB interface 120 is in an abnormal state in which the start of the bus reset sequence is abnormally long, the USB interface signal and the abnormal state of the USB communication are promptly notified to the user, and a response to the abnormal state is promoted. It becomes possible, and the convenience of the user can be improved.

以下、図面を参照して本発明の実施形態を詳細に説明する。   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 peripheral device 110 and a host PC 150 to which the peripheral device is connected according to the first embodiment of this invention. Reference numerals 110 and 150 each have a USB interface 120 for a device and a USB interface for a host, and are connected by a USB cable 180.

以下、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-side USB interface 152 at a specified time interval of 125 μS. When receiving the SOF packet, the USB interface 120 on the device side issues an interrupt signal to the USB control software 131. The USB control software 131 starts the SOF packet interrupt processing routine shown in FIG. 3 by this interrupt signal. In a normal communication state, since a packet of transmission / reception data is communicated following the SOF packet generated by the host-side USB interface signal, the USB control software performs transmission / reception processing step 1303 when detecting data to be transmitted / received. Thereafter, the processing proceeds by repeating the same processing.

次に、通常のデータ通信が終了した後、ホスト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 USB interface 152 stops sending the SOF packet and pulls up the D + signal. When the USB interface 120 on the device side detects the last SOF packet, it sends an interrupt signal to the USB control software 131, and the interrupt processing routine of FIG. 3 is started. The USB interface 120 pulls up the D + signal after a predetermined time T3 (3 mS to 3.125 mS in the case of High Speed) has elapsed. In this way, the USB interface is suspended.

次に、通常のデータ通信が終了した後、ホスト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 interface 152 stops sending SOF and pulls up the D + signal. Further, after the lapse of the specified time T3, the D-signal is once driven to start a bus speed sequence for the HighSpeed device called CHARP. In this way, the USB interface enters the bus reset sequence state.

以上が、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-side USB interface 152 is interrupted. Possible causes include failure of the suspend processing and bus reset sequence processing of the USB control software 151 and USB interface 152 on the host PC side due to some failure, and failure of the suspend processing and bus reset sequence processing due to a cable failure.

このような状態に入った場合、デバイス側の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-side USB interface 120 detects the last SOF packet, it sends an interrupt signal to the USB control software 131, and the interrupt processing routine of FIG. 3 is started. After performing the confirmation step 1302 for the presence / absence of transmission / reception processing, the USB interface 120 pulls up the D + signal corresponding to the suspend processing or the bus reset sequence. Thereafter, the VBUS monitoring circuit 121 monitors the VBUS voltage to confirm that the cable is not disconnected, and the D + signal monitoring circuit 122 and the D− signal monitoring circuit 123 indicate that the USB interface signal is in the suspended state and the bus reset. Monitor whether the sequence has been entered. If it does not correspond to any of the cases, it is further monitored whether the bus reset sequence is started for T5 (50 mS assuming the host HUB). After the time T5 has elapsed, it is determined that the start of the bus reset sequence is abnormally long, and the USB control software 131 causes the display device 140 to display the abnormal state via the display control device 132.

この表示により、ユーザーは速やかに異常状態を知り、ホスト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.

本発明の実施の形態に係る周辺機器デバイスの概略構成を示すブロック図The block diagram which shows schematic structure of the peripheral device which concerns on embodiment of this invention USB HighSpeedデバイスの信号動作を説明するタイミングチャートTiming chart explaining signal operation of USB HighSpeed device 図1におけるUSB制御ソフトウェアの動作を説明するフローチャートThe flowchart explaining the operation of the USB control software in FIG.

符号の説明Explanation of symbols

110 周辺装置デバイス
120 周辺装置デバイスのUSBインタフェース
121 VBUS監視回路
122 D+信号監視回路
123 D−信号監視回路
131 USB制御ソフトウェア
140 表示装置
110 peripheral device 120 USB interface 121 of peripheral device 121 VBUS monitoring circuit 122 D + signal monitoring circuit 123 D− signal monitoring circuit 131 USB control software 140 display device

Claims (2)

USBインタフェース手段および前記USBインタフェース手段を制御する制御手段を有する周辺機器デバイス装置において、
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.
請求項1の周辺機器デバイス装置において、
印字手段を有し、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.
JP2004223791A 2004-07-30 2004-07-30 Peripheral equipment device system Withdrawn JP2006048106A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (5)

* Cited by examiner, † Cited by third party
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