JP2005352942A - Usb equipment, host device, and usb connection system - Google Patents

Usb equipment, host device, and usb connection system Download PDF

Info

Publication number
JP2005352942A
JP2005352942A JP2004175167A JP2004175167A JP2005352942A JP 2005352942 A JP2005352942 A JP 2005352942A JP 2004175167 A JP2004175167 A JP 2004175167A JP 2004175167 A JP2004175167 A JP 2004175167A JP 2005352942 A JP2005352942 A JP 2005352942A
Authority
JP
Japan
Prior art keywords
reset
usb
state
usb device
host
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.)
Granted
Application number
JP2004175167A
Other languages
Japanese (ja)
Other versions
JP4878740B2 (en
Inventor
Sadaji Yamauchi
貞治 山内
Hidesato Hata
秀聡 秦
Riyouta Kawaguchi
陵太 川口
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.)
Hitachi Omron Terminal Solutions Corp
Original Assignee
Hitachi Omron Terminal Solutions 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 Hitachi Omron Terminal Solutions Corp filed Critical Hitachi Omron Terminal Solutions Corp
Priority to JP2004175167A priority Critical patent/JP4878740B2/en
Publication of JP2005352942A publication Critical patent/JP2005352942A/en
Application granted granted Critical
Publication of JP4878740B2 publication Critical patent/JP4878740B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To improve the usability by providing USB equipment capable of executing a reset operation based on a reset from a host, a host device connected thereto, and a USB connection system to enable the reset operation such as restoration of internal communication fault. <P>SOLUTION: The USB equipment comprises a reset forcing means acquiring reset information by execution of software reset processing from a USB communication means, and making a reset object means forcingly execute the reset operation based on the reset information. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は、例えばホスト装置とUSB機器とをUSBケーブルで接続し、通信障害や暴走時にUSB機器にリセットをかけて復旧するようなUSB機器、ホスト装置、及びUSB接続システムに関する。   The present invention relates to a USB device, a host device, and a USB connection system in which, for example, a host device and a USB device are connected with a USB cable, and the USB device is reset and restored when a communication failure or runaway occurs.

従来、回線異常やM/C(接続モジュール)のハングアップ等によるATMの内部通信障害は、フィールドにおいて一定の発生頻度があり、削減することができてない。   Conventionally, ATM internal communication failures due to line abnormalities, M / C (connection module) hang-ups, etc. have a certain frequency in the field and cannot be reduced.

このため既存のATMでは、専用のAC電源のOFF/ON機能を使用した復旧手段を備えている。この復旧手段は、復旧用の専用回線を用いているため、必然的にコスト増となっている。   For this reason, the existing ATM is provided with a recovery means using a dedicated AC power supply OFF / ON function. Since this recovery means uses a dedicated line for recovery, the cost is inevitably increased.

また、一部モジュールは電源をDC供給で行っているため、このような復旧手段で復旧させることが出来ない問題もある。   Further, since some modules are powered by DC supply, there is a problem that they cannot be restored by such restoration means.

さらに、既存のコンビニエンスストア向けのATMや海外向けのATM等では、RS−232C(COM)の信号を使用したハードリセット機能による復旧手段を備えている。   Furthermore, existing ATMs for convenience stores, overseas ATMs, and the like are provided with a recovery means using a hard reset function using an RS-232C (COM) signal.

一方、市場からの要求として、ATMについて省エネ機能(スリープ機能)を実現することが求められている。   On the other hand, as a demand from the market, it is required to realize an energy saving function (sleep function) for ATM.

省エネ機能を実現しようとすると、省エネモード中はCPUが応答できないため、省エネモードから復旧するためには復旧専用の信号・回路が必要となり、さらに通信ラインに省エネモード検出専用回路を備えることが必要となる。   When trying to realize the energy-saving function, the CPU cannot respond during the energy-saving mode, so to recover from the energy-saving mode, a dedicated signal / circuit for recovery is required, and the communication line must also have a circuit dedicated to energy-saving mode detection. It becomes.

このような状況下において、近年では、メインコントローラ(パーソナルコンピュータ)に標準搭載されているUSB(Universal Serial Bus)を、ATMの内部通信として採用することが提案されている。   Under such circumstances, in recent years, it has been proposed to adopt USB (Universal Serial Bus), which is standardly installed in the main controller (personal computer), as ATM internal communication.

そして、通信障害や暴走時にUSB機器にリセットをかけて復旧する方法としては、USB回線の他に専用回線を付加して、この専用回線を介してUSBデバイスにリセットを実行するデバイス制御システムが提案されている(特許文献1参照)。   And, as a method to recover by resetting the USB device in case of communication failure or runaway, a device control system that adds a dedicated line in addition to the USB line and resets the USB device via this dedicated line is proposed (See Patent Document 1).

また、通信異常の状態を発見した時に、USBライン上のリセットを検出し、自動的にUSB機器のリセットを実行するUSB機器も提案されている(特許文献2参照)。   There has also been proposed a USB device that detects a reset on the USB line and automatically resets the USB device when a communication abnormality is found (see Patent Document 2).

特開2003−131956号公報JP 2003-131956 A 特開2002−373036号公報JP 2002-373036 A

しかし、専用回線を介してリセットする方法では、別途専用回線を設けることによる大幅なコスト増が伴うと共に、汎用USB機器を改造しなければならないという問題がある。   However, the method of resetting via a dedicated line has a problem in that a general-purpose USB device must be modified along with a significant increase in cost due to the provision of a separate dedicated line.

また、USBライン上のリセットを検出し自動的にUSB機器のリセットを実行する方法では、USB回線上にリセットが入れば必ずUSB機器がリセットを実行するため、USBの通信品質を損なうことになる。   Further, in the method of detecting reset on the USB line and automatically resetting the USB device, the USB device always resets when the reset is entered on the USB line, which impairs the USB communication quality. .

またこの場合、USBライン上のリセットにより強制的にリセットが入ってしまうため、付帯的に状態を監視してリセット又は省エネ等を切替えることができない問題がある。   Further, in this case, since reset is forcibly entered by reset on the USB line, there is a problem that it is not possible to monitor the state and switch reset or energy saving.

この発明は、上述した問題に鑑み、ホストからのリセットに基づいて強制動作を実行できるUSB機器、これに接続するホスト装置、及びUSB接続システムを提供し、内部通信障害の復旧や省エネモードからの復旧等の強制動作を可能とすることで可用性を向上することを目的とする。   In view of the above-described problems, the present invention provides a USB device that can execute a forced operation based on a reset from a host, a host device connected to the USB device, and a USB connection system. The purpose is to improve availability by enabling forcible operations such as recovery.

この発明は、USBケーブルを介してホストとデータ通信する通信処理、及び前記ホストから受信するリセット信号に基づいて通信機能をリセットするソフトリセット処理を実行するUSB通信手段を備えたUSB機器であって、前記ソフトリセット処理の実行によるリセット情報を前記USB通信手段から取得し、該リセット情報に基づいてリセット対象手段にリセット動作を強制実行させるリセット強制手段を設けたUSB機器であることを特徴とする。   The present invention is a USB device provided with USB communication means for executing communication processing for data communication with a host via a USB cable and soft reset processing for resetting a communication function based on a reset signal received from the host. The USB device is provided with reset forcing means for obtaining reset information by execution of the soft reset processing from the USB communication means and forcing the reset target means to perform a reset operation based on the reset information. .

前記USB通信手段は、USBデバイスコントローラ等、USB規格を使用して通信する手段で構成することを含む。
前記リセット対象手段は、USB機器を制御するCPU等の制御装置、又はその他の装置、若しくはこれら複数の装置で構成することを含む。
The USB communication means includes means for communicating using a USB standard, such as a USB device controller.
The reset target means includes a control device such as a CPU for controlling a USB device, another device, or a plurality of these devices.

前記リセット強制手段は、リセット回路で構成する、あるいは状態監視回路及びリセット回路で構成する等、リセット情報に基づいてリセット対象手段にリセット動作を実行させる手段で構成することを含む。   The reset forcing means includes a means for causing the reset target means to perform a reset operation based on reset information, such as a reset circuit or a state monitoring circuit and a reset circuit.

前記構成により、USB機器はリセット情報に基づいてリセット動作を実行することができる。従って、例えばUSB機器全体のハードリセット等を行うことができ、可用性を高めることができる。   With the above configuration, the USB device can execute the reset operation based on the reset information. Therefore, for example, a hard reset of the entire USB device can be performed and the availability can be increased.

この発明の態様として、前記リセット強制手段で実行する処理に、前記リセット対象手段の状態を判定する判定処理と、該判定処理にて判定した状態に基づいて前記リセット動作を実行するか否か決定する動作決定処理とを設定することができる。
これにより、リセット対象手段の状態に対応した強制動作を実行させることができる。
As an aspect of the present invention, in the process executed by the reset forcing unit, a determination process for determining the state of the reset target unit, and whether or not to perform the reset operation based on the state determined in the determination process It is possible to set operation determination processing to be performed.
Thereby, the forced operation corresponding to the state of the reset target means can be executed.

またこの発明の態様として、前記判定処理で判定する状態に、リセット対象手段の省エネ状態と通常状態とを設定し、前記動作決定処理に、判定した状態が省エネ状態であった場合に実行する動作として、前記リセット動作ではなく、省エネ状態から通常状態に状態遷移させる状態遷移動作を決定する処理を設定することができる。   Further, as an aspect of the present invention, the energy saving state and the normal state of the reset target means are set in the state determined in the determination process, and the operation to be executed when the determined state is the energy saving state in the operation determination process As described above, it is possible to set a process for determining a state transition operation for causing a state transition from the energy saving state to the normal state instead of the reset operation.

これにより、通常状態での強制動作と省エネ状態での強制動作を分けることができ、省エネ状態の際にハードリセット等のリセット動作を行うことを防止することができる。   Thereby, the forced operation in the normal state and the forced operation in the energy saving state can be separated, and a reset operation such as a hard reset can be prevented in the energy saving state.

またこの発明は、USBケーブルを介してUSB機器とデータ通信するUSB通信手段と、各種制御処理を実行する制御手段とを備え、前記制御手段に、通信エラー発生の際にUSB機器に対してリセット信号を送信するリセット信号送信処理と、所定時間が経過しても通信エラーが解消しなかった場合に再度リセット信号を送信するリトライ処理とを設定したホスト装置とすることができる。
これにより、ホスト装置がUSB機器の障害を確実に復旧することができる。
The present invention further includes a USB communication unit that performs data communication with a USB device via a USB cable, and a control unit that executes various control processes. The control unit resets the USB device when a communication error occurs. It is possible to provide a host device in which a reset signal transmission process for transmitting a signal and a retry process for transmitting a reset signal again when a communication error is not resolved even after a predetermined time has elapsed.
Thereby, the host device can reliably recover from the failure of the USB device.

またこの発明は、前記USB機器と、前記ホスト装置とをUSBケーブルで接続したUSB接続システムとすることができる。
これにより、例えばホストとATM間(USB機器)の通信、パーソナルコンピュータ(ホスト)とスキャナやプリンタ等(USB機器)との通信等、USBを利用した接続でUSB機器に強制動作を実行させることができ、確実なリセット処理や状態遷移処理等を行うことができる。
In addition, the present invention can be a USB connection system in which the USB device and the host device are connected by a USB cable.
As a result, for example, the USB device can be forced to execute a connection operation using a USB connection such as communication between the host and the ATM (USB device), communication between the personal computer (host) and the scanner, printer, or the like (USB device). Reliable reset processing and state transition processing can be performed.

この発明により、ホストからのリセットに基づいてUSB機器にリセット動作を強制実行させることができ、内部通信障害の復旧等によって可用性を向上することができる。   According to the present invention, the USB device can be forcibly executed based on a reset from the host, and availability can be improved by recovery from an internal communication failure or the like.

この発明の一実施形態を以下図面と共に説明する。
まず、図1に示す全体構成のブロック図と共に、ホスト10とUSB機器30を接続して構成するUSB接続システム1について説明する。
An embodiment of the present invention will be described below with reference to the drawings.
First, the USB connection system 1 configured by connecting the host 10 and the USB device 30 will be described with a block diagram of the overall configuration shown in FIG.

この実施形態では、USB機器30としてATM(現金払預機)を用い、ホスト10として上記ATMの上位装置となるホストマシンを用いた現金払預システムにUSB接続システム1を導入している。   In this embodiment, an ATM (cash deposit machine) is used as the USB device 30 and the USB connection system 1 is introduced into a cash deposit system using a host machine that is a host device of the ATM as the host 10.

USB接続システム1は、パーソナルコンピュータ(PC)で構成するホスト10と、USB機器30とをUSBケーブル25で接続して構成している。   The USB connection system 1 is configured by connecting a host 10 composed of a personal computer (PC) and a USB device 30 with a USB cable 25.

ホスト10とUSB機器30とを接続するUSBケーブル25の間には、USBハブ20を介在させ、複数のUSB機器30をUSBハブ20に接続できるようにしている。これにより、1つのホスト10で複数のUSB機器30を制御できるようにしている。   A USB hub 20 is interposed between the USB cable 25 connecting the host 10 and the USB device 30 so that a plurality of USB devices 30 can be connected to the USB hub 20. As a result, a plurality of USB devices 30 can be controlled by a single host 10.

ホスト10は、USBケーブル25を介してUSB機器30に信号の送受信を行うUSBホストコントローラ11を備えている。なお、ホスト10はパーソナルコンピュータであるから、この他にも構成要素として図示省略する制御装置(CPU)、記憶装置(ハードディスク)、入力装置(マウス、キーボード)、及び表示装置(液晶ディスプレイ又はCRTディスプレイ)を備えていることは周知のとおりである。   The host 10 includes a USB host controller 11 that transmits and receives signals to and from the USB device 30 via the USB cable 25. Since the host 10 is a personal computer, other components such as a control device (CPU), a storage device (hard disk), an input device (mouse, keyboard), and a display device (liquid crystal display or CRT display) not shown in the figure are also included. It is well-known that it is provided.

USBケーブル25は、USB規格によるデータ電送を行うケーブルであり、図示省略するVBUS、D+、D−、GNDの4つのラインで構成している。なお、VBUSが電源供給を行い、D+及びD−が信号送受信を行うことは周知のとおりである。   The USB cable 25 is a cable for performing data transmission according to the USB standard, and is configured by four lines of VBUS, D +, D−, and GND (not shown). As is well known, VBUS supplies power and D + and D- transmit and receive signals.

USB機器30は、通信部31aと検出部31bからなるUSBデバイスコントローラ31、CPU32、リセット回路33、及び状態監視回路34を備えている。   The USB device 30 includes a USB device controller 31, which includes a communication unit 31a and a detection unit 31b, a CPU 32, a reset circuit 33, and a state monitoring circuit 34.

USBデバイスコントローラ31は、USBケーブル25を介してホスト10との通信を司る通信部31aと、ホスト10から送信されるソフトリセット信号(SE0)を検知して出力する検出部31bとで構成する。   The USB device controller 31 includes a communication unit 31a that manages communication with the host 10 via the USB cable 25, and a detection unit 31b that detects and outputs a soft reset signal (SE0) transmitted from the host 10.

なお、前記通信部31aと検出部31bは、分割して別個に設け、該通信部31aと検出部31bとを接続する構成としても良い。
また、ソフトリセット信号(SE0)は、ホスト10がUSBケーブル25内の信号線であるD+,D−の両方に0Vを一定時間以上出力する状態を指す。
The communication unit 31a and the detection unit 31b may be divided and provided separately to connect the communication unit 31a and the detection unit 31b.
The soft reset signal (SE0) indicates a state in which the host 10 outputs 0 V to both D + and D− which are signal lines in the USB cable 25 for a predetermined time or more.

CPU32は、USB機器30の主制御部であり、USB機器30全体の各種制御動作を実行する。省エネモードでは動作を停止する。   The CPU 32 is a main control unit of the USB device 30 and executes various control operations of the entire USB device 30. The operation stops in the energy saving mode.

リセット回路33は、状態監視回路34からハードリセット信号を受信すると、CPU32を含めてUSB機器30全体にハードリセットをかける。   When the reset circuit 33 receives the hard reset signal from the state monitoring circuit 34, the reset circuit 33 applies a hard reset to the entire USB device 30 including the CPU 32.

状態監視回路34は、CPU32から省エネ状態信号及び省エネクリア信号を受信してCPU32の状態を監視する。USBデバイスコントローラ31の検出部31bからソフトリセット検出信号を受信すると、CPU32の状態によって、リセット回路33にハードリセット信号を送信するか、CPU32に省エネ解除信号を送信するかいずれか一方の処理を行う。   The state monitoring circuit 34 receives the energy saving state signal and the energy saving clear signal from the CPU 32 and monitors the state of the CPU 32. When a soft reset detection signal is received from the detection unit 31 b of the USB device controller 31, either a hard reset signal is transmitted to the reset circuit 33 or an energy saving release signal is transmitted to the CPU 32 depending on the state of the CPU 32. .

なお、USB機器30はATMであるから、制御装置(CPU32)に加えて、図示省略する記憶装置(ハードディスク)、入力装置(タッチパネル)、表示装置(液晶ディスプレイ又はCRTディスプレイ)、及び現金処理装置(貨幣の真偽判別及び金種判別を実行)を備えていることは周知のとおりである。   Since the USB device 30 is an ATM, in addition to the control device (CPU 32), a storage device (hard disk), an input device (touch panel), a display device (liquid crystal display or CRT display) and a cash processing device (not shown) are also shown. It is well known that it is equipped with (determination of authenticity and denomination of money).

以上の構成により、USB機器30は、ホスト10から受信するソフトリセット信号という一種類の信号に対し、CPU32の状態に応じてハードリセット処理又は省エネ解除処理という複数の処理から1つの処理を選択して実行することができる。   With the above configuration, the USB device 30 selects one process from a plurality of processes such as a hard reset process or an energy saving cancellation process, depending on the state of the CPU 32, for one type of signal called a soft reset signal received from the host 10. Can be executed.

次に、図2に示すタイミングチャート図、及び図3、図4に示す処理フロー図と共に、USB機器30の動作について説明する。   Next, the operation of the USB device 30 will be described with reference to the timing chart shown in FIG. 2 and the processing flowcharts shown in FIGS.

まず、ホスト10がソフトリセット信号(SE0)を出力し、タイミングAに示すようにUSBデバイスコントローラ31が該ソフトリセット信号を受信すると、タイミングBに示すように検出部31bがソフトリセット検出信号を出力する。   First, when the host 10 outputs a soft reset signal (SE0) and the USB device controller 31 receives the soft reset signal as shown at timing A, the detection unit 31b outputs the soft reset detection signal as shown at timing B. To do.

状態監視回路34は、図3に示すように上記ソフトリセット信号を受信するまで待機しており、ソフトリセット信号を検出すると(ステップn1)、省エネ指示(図2)の状態を確認してCPUステータス(図2)が通常モードか確認する(ステップn2)。   As shown in FIG. 3, the state monitoring circuit 34 stands by until the soft reset signal is received. When the soft reset signal is detected (step n1), the state of the energy saving instruction (FIG. 2) is confirmed to check the CPU status. It is confirmed whether (FIG. 2) is a normal mode (step n2).

通常モードであれば(ステップn2:YES)、ハードリセット処理として、タイミングC(図2)にてハードリセット信号をリセット回路33に出力し、リセット回路33から一定時間全体リセットを出力してハードリセットを行い(ステップn3)、処理を終了する。   In the normal mode (step n2: YES), as a hard reset process, a hard reset signal is output to the reset circuit 33 at the timing C (FIG. 2), and an entire reset is output from the reset circuit 33 for a certain period of time. (Step n3), and the process ends.

ハードリセット実行から一定時間が経過すると、タイミングD(図2)に示すように通常モードに復旧する。   When a certain period of time has elapsed since the execution of the hard reset, the normal mode is restored as shown in timing D (FIG. 2).

省エネモードへの遷移は、タイミングE(図2)に示すようにホスト10から省エネコマンドを受信して行う。   The transition to the energy saving mode is performed by receiving an energy saving command from the host 10 as shown in the timing E (FIG. 2).

すなわち、図4の処理フロー図に示すように、省エネ状態への遷移指示のコマンドを受信すると(ステップs1:YES)、タイミングFでCPU32が状態監視回路34に省エネ状態信号を送信する(ステップs2)。   That is, as shown in the process flow diagram of FIG. 4, when a command for instructing transition to an energy saving state is received (step s1: YES), the CPU 32 transmits an energy saving state signal to the state monitoring circuit 34 at timing F (step s2). ).

タイミングGでウォッチドックタイマをEnableからDisenableに切替え、これと共にシステムCLKを停止する。
このようにして省エネモードに遷移し(ステップs3)、処理を終了する。
At timing G, the watchdog timer is switched from Enable to Disable, and the system CLK is stopped at the same time.
In this way, the mode is changed to the energy saving mode (step s3), and the process is terminated.

省エネモード中に、タイミングHに示すようにホスト10からソフトリセットを受信した場合、すなわち図3のステップn2でCPUステータスが通常モードでなかった場合は(ステップn2:NO)、通常モードに遷移する遷移処理を実行する。   When a soft reset is received from the host 10 as shown at timing H during the energy saving mode, that is, when the CPU status is not the normal mode at step n2 in FIG. 3 (step n2: NO), the mode is changed to the normal mode. Execute transition processing.

該遷移処理では、まずタイミングJ(図2)に示すようにウォッチドッグタイマをEnablueにしてシステムCLKを起動する。   In this transition process, first, the system CLK is started with the watchdog timer set to Enable as shown in timing J (FIG. 2).

タイミングK(図2)に示すように省エネ解除信号を出力し(ステップn4)、タイミングL(図2)に示すように省エネ指示をクリアして通常モードに遷移する(ステップn5)。   As shown in timing K (FIG. 2), an energy saving cancellation signal is output (step n4), and as shown in timing L (FIG. 2), the energy saving instruction is cleared and a transition is made to the normal mode (step n5).

以上の動作により、ホスト10は、USB機器30から正常な応答が得られなかった場合、ソフトリセット信号(SE0)を送信するだけで、USB機器30を応答可能に復旧させることができる。   With the above operation, when the host 10 cannot obtain a normal response from the USB device 30, the host 10 can recover the USB device 30 so that it can respond only by transmitting the soft reset signal (SE0).

すなわち、検出部31bが出力するソフトリセット検出信号により、状態監視回路34は、CPU32が通常モードであればUSB機器30全体のハードリセットを実行し、CPU32が省エネモードであれば通常モードに遷移する。   That is, according to the soft reset detection signal output from the detection unit 31b, the state monitoring circuit 34 performs a hard reset of the entire USB device 30 if the CPU 32 is in the normal mode, and transitions to the normal mode if the CPU 32 is in the energy saving mode. .

これにより、CPU32が省エネモードであるためにホスト10に応答しなかった場合でも、ハードリセットがかかってしまうことを防止し、最適な動作でUSB機器30がホスト10に応答できる状態へ復旧することができる。   As a result, even when the CPU 32 does not respond to the host 10 because it is in the energy saving mode, it is possible to prevent a hard reset from being applied, and to restore the USB device 30 to a state where it can respond to the host 10 with an optimal operation. Can do.

また、検出部31bからのソフトリセット検出信号によって復旧を行うため、図5の表に示すように、殆どの障害状態から復旧することが可能となる。   Further, since the recovery is performed by the soft reset detection signal from the detection unit 31b, it is possible to recover from almost any failure state as shown in the table of FIG.

具体的には、USBホストコントローラ11が正常であれば、CPU32が正常か暴走かに関わらず、復旧を行うことができる。
また、USBホストコントローラ11が暴走又はハングアップしていても、ソフトリセット検出信号(例えばINI1)が出力可能な状態であれば、CPU32が正常か暴走かに関わらず、復旧を行うことができる。
Specifically, if the USB host controller 11 is normal, recovery can be performed regardless of whether the CPU 32 is normal or runaway.
Even if the USB host controller 11 runs away or hangs up, recovery can be performed regardless of whether the CPU 32 is normal or runaway as long as a soft reset detection signal (for example, INI1) can be output.

また、USBホストコントローラ11は正常であるが電送異常や回線接続断が生じている場合は、CPU32が正常であれば復旧を行うことができる。
このような多様なケースに対応することで大抵の場合は復旧でき、可用性を十分高めることができる。
Further, when the USB host controller 11 is normal but a power transmission abnormality or a line connection disconnection has occurred, the recovery can be performed if the CPU 32 is normal.
By dealing with such various cases, it is possible to recover in most cases and sufficiently increase availability.

なお、上記実施例では、省エネモードからの復旧に対応するタイプについて説明したが、省エネモードに対応しない構成とすることもできる。   In addition, although the said Example demonstrated the type corresponding to the recovery from an energy saving mode, it can also be set as the structure which does not respond | correspond to an energy saving mode.

この場合は、図1に示したブロック図で、状態監視回路34を割込み検知回路に替え、省エネ状態信号、省エネクリア信号、及び省エネ解除信号の送信を削除し、割込み検知回路からリセット回路33を介したUSB機器30全体のリセットのみを行う構成とすれば良い。   In this case, in the block diagram shown in FIG. 1, the state monitoring circuit 34 is replaced with an interrupt detection circuit, the transmission of the energy saving state signal, the energy saving clear signal, and the energy saving release signal is deleted, and the reset circuit 33 is changed from the interrupt detection circuit. It is only necessary that the entire USB device 30 be reset.

またこの場合、図2に示したタイミングチャートは、最初からタイミングDに示す通常モードへの復旧までと同一にすれば良い。   In this case, the timing chart shown in FIG. 2 may be the same from the beginning to the recovery to the normal mode shown at timing D.

この構成により、省エネモードか否かの監視を排除しが簡単な構成で、ホスト10からの指示に従いハードリセットを実行できるUSB機器30を提供することができる。   With this configuration, it is possible to provide a USB device 30 that can execute a hard reset in accordance with an instruction from the host 10 with a simple configuration that can eliminate the monitoring of whether or not it is in the energy saving mode.

また、ホスト10の制御装置には、USB機器30へのソフトリセット信号の後、一定時間が経過してもUSB機器30と正常通信が出来なかった場合、再度ソフトリセット信号を送信するリトライ処理を設定すると良い。
このリトライ処理は、2回又は3回等、所定の回数に設定しておくと良い。
これにより、USB機器30のCPU32の暴走によってたまたまUSB機器30のハードリセット等が出来なかった場合に対応することができる。
In addition, the control device of the host 10 performs a retry process of transmitting a soft reset signal again if normal communication with the USB device 30 is not possible after a certain time has elapsed after the soft reset signal to the USB device 30. It is good to set.
This retry process may be set to a predetermined number of times, such as twice or three times.
As a result, it is possible to cope with a case where the hardware reset or the like of the USB device 30 cannot be performed due to the runaway of the CPU 32 of the USB device 30.

すなわち、暴走したCPU32が、検出部31bがソフトリセット検出信号を出力した直後に割込みをクリアしてしまった場合、状態監視回路34(若しくは割込み検知回路)はソフトリセット検出信号を受信することができない。
しかし、これはタイミングに関わる偶然によって発生するため、リトライにより再実行すれば、次は正常にUSB機器30のハードリセット等を行うことができる可能性が高く、確実にUSB機器30の復旧を行うことができる。
このように、同一動作をリトライして繰り返すことにより、確実にUSB機器30を復旧させることができる。
That is, if the runaway CPU 32 clears the interrupt immediately after the detection unit 31b outputs the soft reset detection signal, the state monitoring circuit 34 (or the interrupt detection circuit) cannot receive the soft reset detection signal. .
However, since this occurs due to an accident related to timing, if it is re-executed by retry, there is a high possibility that the USB device 30 can be normally reset hard, and the USB device 30 is reliably restored. be able to.
In this way, the USB device 30 can be reliably restored by retrying and repeating the same operation.

また、状態監視回路34は、検出部31bからソフトリセット検出信号を受信する構成としたが、検出部31bにソフトリセットの有無を取得しに行く構成としても良い。   Further, although the state monitoring circuit 34 is configured to receive the soft reset detection signal from the detection unit 31b, the state monitoring circuit 34 may be configured to acquire the presence or absence of a soft reset from the detection unit 31b.

また、USB機器30は、乗車券の販売等を行う券売機、又は、駅の入退場規制を行う駅改札機等、ホストに接続して使用する他の機器としても良い。   In addition, the USB device 30 may be another device used by connecting to a host, such as a ticket vending machine that sells a ticket or a station ticket gate that controls entrance / exit of a station.

この発明の構成と、上述の実施形態との対応において、
この発明の制御手段は、実施形態のホスト10の制御装置に対応し、
以下同様に、
ホストのUSB通信手段は、USBホストコントローラ11に対応し、
USB機器のUSB通信手段は、USBデバイスコントローラ31に対応し、
リセット対象手段は、USBデバイスコントローラ31及びCPU32に対応し、
リセット強制手段は、USBデバイスコントローラ31及びリセット回路33に対応し、
判定処理及び動作決定処理は、ステップn2に対応し、
リセット動作は、リセット処理(ステップn3)に対応し、
状態遷移動作は、遷移処理(ステップn4〜n5)に対応するも、
この発明は、上述の実施形態の構成のみに限定されるものではなく、多くの実施の形態を得ることができる。
In correspondence between the configuration of the present invention and the above-described embodiment,
The control means of the present invention corresponds to the control device of the host 10 of the embodiment,
Similarly,
The USB communication means of the host corresponds to the USB host controller 11,
The USB communication means of the USB device corresponds to the USB device controller 31,
The reset target means corresponds to the USB device controller 31 and the CPU 32,
The reset forcing means corresponds to the USB device controller 31 and the reset circuit 33,
The determination process and the operation determination process correspond to step n2,
The reset operation corresponds to the reset process (step n3).
The state transition operation corresponds to the transition process (steps n4 to n5).
The present invention is not limited only to the configuration of the above-described embodiment, and many embodiments can be obtained.

USB接続システムの全体構成を示すブロック図。The block diagram which shows the whole structure of a USB connection system. 動作のタイミングを示すタイミングチャート図。The timing chart figure which shows the timing of operation | movement. USB機器の状態監視回路の動作を示す処理フロー図。The processing flowchart which shows operation | movement of the state monitoring circuit of USB apparatus. USB機器の状態監視回路の動作を示す処理フロー図。The processing flowchart which shows operation | movement of the state monitoring circuit of USB apparatus. USB機器の状態による復旧可否を表で示す図。The figure which shows the recovery possibility by a state of USB apparatus with a table | surface.

符号の説明Explanation of symbols

1…USB接続システム
10…ホスト
11…USBホストコントローラ
25…USBケーブル
30…USB機器
31…USBデバイスコントローラ
32…CPU
33…リセット回路
DESCRIPTION OF SYMBOLS 1 ... USB connection system 10 ... Host 11 ... USB host controller 25 ... USB cable 30 ... USB apparatus 31 ... USB device controller 32 ... CPU
33 ... Reset circuit

Claims (5)

USBケーブルを介してホストとデータ通信する通信処理、及び前記ホストから受信するリセット信号に基づいて通信機能をリセットするソフトリセット処理を実行するUSB通信手段を備えたUSB機器であって、
前記ソフトリセット処理の実行によるリセット情報を前記USB通信手段から取得し、該リセット情報に基づいてリセット対象手段にリセット動作を強制実行させるリセット強制手段を設けた
USB機器。
A USB device comprising USB communication means for executing communication processing for data communication with a host via a USB cable, and soft reset processing for resetting a communication function based on a reset signal received from the host,
A USB device provided with reset forcing means for acquiring reset information from execution of the soft reset process from the USB communication means and forcing the reset target means to perform a reset operation based on the reset information.
前記リセット強制手段で実行する処理に、
前記リセット対象手段の状態を判定する判定処理と、
該判定処理にて判定した状態に基づいて前記リセット動作を実行するか否か決定する動作決定処理とを設定した
請求項1記載のUSB機器。
In the processing executed by the reset forcing means,
A determination process for determining the state of the reset target means;
The USB device according to claim 1, further comprising: an operation determination process that determines whether or not to execute the reset operation based on the state determined in the determination process.
前記判定処理で判定する状態に、リセット対象手段の省エネ状態と通常状態とを設定し、
前記動作決定処理に、判定した状態が省エネ状態であった場合に実行する動作として、前記リセット動作ではなく、省エネ状態から通常状態に状態遷移させる状態遷移動作を決定する処理を設定した
請求項2記載のUSB機器。
Set the energy saving state and normal state of the reset target means in the state determined in the determination process
The operation determining process is configured to set a process for determining a state transition operation for performing a state transition from an energy saving state to a normal state, instead of the reset operation, as an operation to be executed when the determined state is an energy saving state. The USB device described.
USBケーブルを介してUSB機器とデータ通信するUSB通信手段と、
各種制御処理を実行する制御手段とを備え、
前記制御手段に、
通信エラー発生の際にUSB機器に対してリセット信号を送信するリセット信号送信処理と、
所定時間が経過しても通信エラーが解消しなかった場合に再度リセット信号を送信するリトライ処理とを設定した
ホスト装置。
USB communication means for data communication with a USB device via a USB cable;
Control means for executing various control processes,
In the control means,
A reset signal transmission process for transmitting a reset signal to a USB device when a communication error occurs;
A host device that is set with retry processing for transmitting a reset signal again when a communication error is not resolved even after a predetermined time has elapsed.
請求項1、2又は3記載のUSB機器と、
請求項4記載のホスト装置とをUSBケーブルで接続した
USB接続システム。
The USB device according to claim 1, 2, or 3,
A USB connection system in which the host device according to claim 4 is connected by a USB cable.
JP2004175167A 2004-06-14 2004-06-14 USB device and USB connection system Expired - Fee Related JP4878740B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004175167A JP4878740B2 (en) 2004-06-14 2004-06-14 USB device and USB connection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004175167A JP4878740B2 (en) 2004-06-14 2004-06-14 USB device and USB connection system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2010187146A Division JP2011008819A (en) 2010-08-24 2010-08-24 Usb device and usb connection system

Publications (2)

Publication Number Publication Date
JP2005352942A true JP2005352942A (en) 2005-12-22
JP4878740B2 JP4878740B2 (en) 2012-02-15

Family

ID=35587354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004175167A Expired - Fee Related JP4878740B2 (en) 2004-06-14 2004-06-14 USB device and USB connection system

Country Status (1)

Country Link
JP (1) JP4878740B2 (en)

Cited By (4)

* 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
US7469350B2 (en) * 2005-12-22 2008-12-23 Ncr Corporation Power control interface for a self-service apparatus
JP2009151415A (en) * 2007-12-19 2009-07-09 Seiko Epson Corp Printer and usb device recognizing method
JP2009199141A (en) * 2008-02-19 2009-09-03 Pioneer Electronic Corp Data transfer method, data transfer program and recording medium storing data transfer program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002318646A (en) * 2001-04-24 2002-10-31 Sony Corp Information processor and information processing method
JP2002373036A (en) * 2001-06-15 2002-12-26 Nec Computertechno Ltd Usb equipment
JP2003131956A (en) * 2001-10-25 2003-05-09 Fuji Xerox Co Ltd Device control system
JP2004126753A (en) * 2002-09-30 2004-04-22 Y E Data Inc Reset processing method for usb compatible device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002318646A (en) * 2001-04-24 2002-10-31 Sony Corp Information processor and information processing method
JP2002373036A (en) * 2001-06-15 2002-12-26 Nec Computertechno Ltd Usb equipment
JP2003131956A (en) * 2001-10-25 2003-05-09 Fuji Xerox Co Ltd Device control system
JP2004126753A (en) * 2002-09-30 2004-04-22 Y E Data Inc Reset processing method for usb compatible device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7469350B2 (en) * 2005-12-22 2008-12-23 Ncr Corporation Power control interface for a self-service apparatus
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
JP2009151415A (en) * 2007-12-19 2009-07-09 Seiko Epson Corp Printer and usb device recognizing method
JP2009199141A (en) * 2008-02-19 2009-09-03 Pioneer Electronic Corp Data transfer method, data transfer program and recording medium storing data transfer program

Also Published As

Publication number Publication date
JP4878740B2 (en) 2012-02-15

Similar Documents

Publication Publication Date Title
JP4624171B2 (en) Information processing apparatus, information processing system, and program
US20110314316A1 (en) Computer system and control method thereof
US8108700B2 (en) Power supply identification using a modified power good signal
JP2018116648A (en) Information processor, control method thereof and program
JP4291384B2 (en) Detection method of disconnection and power supply disconnection of IO unit connected to numerical controller
JP4630766B2 (en) A system having a primary system and a secondary system
JP4646859B2 (en) USB device and USB connection system
CN104349001B (en) Information processor and its control method
JP4450692B2 (en) USB connection system, USB device, and host
JP4878740B2 (en) USB device and USB connection system
US8510593B2 (en) Control apparatus
CN105045544A (en) Information processing apparatus and method for controlling the same
JP2011008819A (en) Usb device and usb connection system
JP5214641B2 (en) Universal serial bus host device and program
JP3958669B2 (en) Main body system for bus connection with docking system and bus connection control method
JP5682007B2 (en) Electronic equipment
US20070050666A1 (en) Computer Network System and Related Method for Monitoring a Server
JP2010214932A (en) Printer controller and printer provided with the same
JP5939878B2 (en) Display control apparatus and display control method
JP6958110B2 (en) Information processing equipment and programs
JP3212966B2 (en) Computer device and keyboard or pointing device failure recovery method
JP2006048106A (en) Peripheral equipment device system
JP2706027B2 (en) Programmable controller
JPS58225738A (en) Dispersion type transmission system
KR101386509B1 (en) Image Forming Apparatus And Control Method Thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070123

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091201

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100129

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100525

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100824

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20100906

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20101119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111107

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111129

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141209

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees