JP4686211B2 - Command output device and input / output execution time monitoring method - Google Patents
Command output device and input / output execution time monitoring method Download PDFInfo
- Publication number
- JP4686211B2 JP4686211B2 JP2005048609A JP2005048609A JP4686211B2 JP 4686211 B2 JP4686211 B2 JP 4686211B2 JP 2005048609 A JP2005048609 A JP 2005048609A JP 2005048609 A JP2005048609 A JP 2005048609A JP 4686211 B2 JP4686211 B2 JP 4686211B2
- Authority
- JP
- Japan
- Prior art keywords
- peripheral device
- command
- output
- response
- access command
- 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.)
- Expired - Fee Related
Links
Images
Description
本発明は、ホストシステムと周辺機器との入出力に要する時間を監視する方法に関する
。
The present invention relates to a method for monitoring time required for input / output between a host system and peripheral devices.
ホストシステムと、ディスク記憶装置やカードタイプの半導体メモリに代表される着脱
可能な周辺機器との入出力には、例えばSCSI(Small Computer Sy
stem Interface)バスが利用されている。
For example, SCSI (Small Computer Sy) is used for input / output between a host system and a detachable peripheral device represented by a disk storage device or a card type semiconductor memory.
a stem interface) bus is used.
このようなSCSIバスシステムでは、ホストアダプタのセレクション・タイムアウト
・ディレイ監視時間が最低250ミリ秒で設定され、周辺機器を制御している。ホストシ
ステムからアクセスコマンドが送出され、セレクション・タイムアウト・ディレイ監視時
間を経過しても周辺機器より応答がない場合には、タイムアウト処理を実施してバスを開
放している。
In such a SCSI bus system, the selection / timeout / delay monitoring time of the host adapter is set at a minimum of 250 milliseconds to control peripheral devices. If an access command is sent from the host system and there is no response from the peripheral device even after the selection, timeout, and delay monitoring time has elapsed, timeout processing is performed to release the bus.
ところが、入出力コマンドの中には特殊な動作を行うコマンドが含まれ或いは周辺機器
の状態によりセレクション・タイムアウト・ディレイ監視時間内にコマンドが実行されな
いことがあり、ハードウエア的には正常な動作を行っているにもかかわらず、タイムアウ
トを検出し周辺機器に障害が発生したと判断してしまうという問題がある。
However, I / O commands include commands that perform special operations, or the commands may not be executed within the selection, timeout, and delay monitoring time depending on the status of peripheral devices. Despite this, there is a problem that a timeout is detected and it is determined that a peripheral device has failed.
このような問題に対処するために、例えば特開2002−358170号公報には、タ
イムアウト発生時にホストシステムからのリトライに対して、同一コマンドを識別してホ
ストシステムに記憶装置側からエラーコードを通知して、ホストシステムにタイムアウト
時間を長く設定するように要求する方法が記載されている。
In order to deal with such a problem, for example, Japanese Patent Laid-Open No. 2002-358170 discloses an error code from the storage device side to the host system by identifying the same command in response to a retry from the host system when a timeout occurs. A method for requesting the host system to set a long timeout time is described.
しかしながら、このような方法では、周辺機器からホストシステム側にコマンドに応じ
てタイムアウト時間を長く設定させるという複雑な処理システムを構築していなければな
らず、例えばカードタイプの半導体メモリなどでは使用できなかった。
このように従来の方法では、周辺機器からアクセスコマンドによってタイムアウト時間
を延長させるための通知を行わせるシステムが必要であった。
As described above, in the conventional method, a system for performing a notification for extending the timeout time by an access command from a peripheral device is required.
本発明は、周辺機器側になんら特別のシステムを構築することなく、周辺機器がコマンド処理に必要なタイムアウト時間を延長すべきか、ハード的に障害が発生したかどうかを認識できるコマンド出力装置及び入出力実行時間監視方法を提供することを目的とする。 The present invention is not to build any special system to the peripheral device side, peripherals should be extended the time-out time necessary for command processing, the command output device and hard-failure Ru to recognize whether generated and to provide an input and output execution time monitoring process.
上記目的を達成するために、本発明は、周辺機器に対してアクセスコマンドを出力するコマンド出力装置であって、前記周辺機器に第1のアクセスコマンドを出力する第1出力手段と、前記第1のアクセスコマンドが出力されてから第1の期間内に前記周辺機器からの応答を受けない場合、前記周辺機器に第2のアクセスコマンドを出力する第2出力手段と、前記第1の期間内に前記周辺機器からの応答を受けない場合、前記周辺機器が前記コマンド出力装置に接続されているか否かを検出する検出手段と、前記周辺機器が前記コマンド出力装置に接続されていると検出された場合であって、前記第2のアクセスコマンドが出力されてから前記第1の期間よりも長い第2の期間内に前記周辺機器からの応答を受けない場合に第1の通知を行う通知手段とを具備するコマンド出力装置を提供する。 To achieve the above object, the present invention provides a command output device that outputs an access command to a peripheral device, the first output means for outputting a first access command to the peripheral device, and the first A second output means for outputting a second access command to the peripheral device when a response from the peripheral device is not received within a first period after the access command is output, and within the first period When no response is received from the peripheral device, it is detected that the peripheral device is connected to the command output device, and detecting means that detects whether the peripheral device is connected to the command output device. If a response from the peripheral device is not received within a second period longer than the first period after the second access command is output, the first notification is performed. Providing a command output device that includes a knowledge unit.
また、本発明は、周辺機器に対してアクセスコマンドを出力するコマンド出力装置における入出力実行時間監視方法であって、前記周辺機器に第1のアクセスコマンドを出力することと、第1のアクセスコマンドが出力されてから第1の期間内に前記周辺機器からの応答を受けなかった場合、前記周辺機器に第2のアクセスコマンドを出力することと、前記第1の期間内に前記周辺機器からの応答を受けなかった場合、前記周辺機器が前記コマンド出力装置に接続されているか否かを検出することと、前記第2のアクセスコマンドが出力されたのち、前記第1の期間よりも長い第2の期間内に前記周辺機器からの応答を受けなかった場合に通知することとを具備する入出力実行時間監視方法を提供する。 Further, the present invention provides a output execution time monitoring method in the command output device that outputs the access commands to the peripheral device, and outputting a first access command to the peripheral device, a first access command If but that did not receive a response from the peripheral device in between the first period from the output, and outputting a second access command to said peripheral device from said peripheral device within the first period If the response is not received, it is detected whether or not the peripheral device is connected to the command output device, and after the second access command is output, the first period longer than the first period is output. you and a notifying if the did not receive a response from the peripheral device within the second time period to provide an input and output execution time monitoring process.
本発明では、周辺機器からの通知がなくても自動的に初回のタイムアウト時間は短く、
リトライ処理を行う際にはタイムアウト時間を長くすることで、周辺機器側になんら特別
のシステムを構築することなく、周辺機器がコマンド処理に必要なタイムアウト時間を延
長すべきか、ハード的に障害が発生したかどうかを認識できる。
In the present invention, the first time-out time is automatically short even without notification from the peripheral device,
When retry processing is performed, the timeout time is lengthened, so that a hardware failure occurs whether the peripheral device should extend the timeout time required for command processing without building any special system on the peripheral device side. Can recognize whether or not
以下、本発明の最良の実施形態について説明する。本発明はこれら実施形態に限定され
ることなく、種々工夫して用いることができる。
Hereinafter, the best embodiment of the present invention will be described. The present invention is not limited to these embodiments and can be used in various ways.
図1は、本発明の入出力実行時間監視システムを有するホストシステムと周辺機器を有
する情報装置のブロック図である。
FIG. 1 is a block diagram of an information apparatus having a host system and peripheral devices having the input / output execution time monitoring system of the present invention.
図1に示すように、この入出力実行時間監視システムは、OS10と、OS10と信号
のやり取りを行うSCIディスクドライバ20と、これに接続されたUSBホストドライ
バ30と、これに接続されたUSBホストコントローラ40と、これに接続されたメディ
アカードリーダー50とを有している。メディアカードリーダー50には、周辺機器であ
るメディアカード60が着脱可能となっている。
As shown in FIG. 1, the input / output execution time monitoring system includes an
このように構成された入出力実行時間監視システムにおいて、OS10は、使用者から
メディアカード60へアクセス要求を受け、SCSIディスクドライバ20にその要求を
送る。SCSIディスクドライバ20は、SCSIのコマンドを処理し、USBホストド
ライバ30にUSBのコマンドとして要求を送る。USBホストドライバ30に送られた
USBコマンドはUSBホストコントローラに送られて解釈され、メディアカードリーダ
ー50に送られる。
In the input / output execution time monitoring system configured as described above, the
メディアカードリーダー50は、この要求に従いメディアカード69からデータを読み
出し、USBホストコントローラ40に応答を返す。
The media card reader 50 reads data from the media card 69 according to this request and returns a response to the
USBホストコントローラ40は、この応答を受け取ると、割り込みを発生させUSB
ホストドライバ30を動作させ、メディアカードリーダー50からの応答を読み出して、
SCSIディスクドライバ20に渡す。SCSIディスクドライバ20は、この応答をO
S10に渡し、使用者はOS10を通じてメディアカード60のデータを読み出すことが
できる。
Upon receiving this response, the
Operate the
It is passed to the
In S10, the user can read the data on the
図2は、このように構成された情報装置において、入出力実行時間を監視する方法につ
いて説明したフローチャートである。
FIG. 2 is a flowchart illustrating a method for monitoring the input / output execution time in the information apparatus configured as described above.
図2に示すように、先ず、OS10からアクセスコマンドを受けたSCSIディスクド
ライバ20は、タイムアウト時間1を設定する(100)。このときのタイムアウト時間
1は、例えば3から5秒程度とする。次に、SCSIディスクドライバ20は、USBホ
ストドライバ30、USBホストコントローラ40及びメディアカードリーダー50を介
して周辺機器であるメディアカード60にアクセスコマンドを送る(110)。このとき
メディアカード60はメディアカードリーダー50に挿入されアクセス可能状態になって
いる。
As shown in FIG. 2, first, the
次に、SCSIディスクドライバ20は、メディアカードリーダー50、USBホスト
コントローラ40及びUSBホストドライバ30を介してメディアカード60からの応答
が得られたかどうか判断する(120)。メディアカード60からの応答があった場合(
Yes)、この応答をOS10に通知する(210)。メディアカード60からの応答が
なかった場合(No)、タイムアウト時間1が過ぎたかどうか判断し(130)、タイム
アウト時間1がまだ過ぎていなければ、再び機器からの応答が得られたかどうかの判断を
行う。タイムアウト時間1が過ぎた場合(Yes)、タイムアウト時間1よりも長いタイ
ムアウト時間2を設定する(140)。このときのタイムアウト時間2は、例えば30か
ら60秒程度とする。
Next, the
Yes), this response is notified to the OS 10 (210). If there is no response from the media card 60 (No), it is determined whether the timeout time 1 has passed (130). If the timeout time 1 has not yet passed, it is determined whether a response from the device has been obtained again. Do. When the timeout time 1 has passed (Yes), a timeout time 2 longer than the timeout time 1 is set (140). The timeout time 2 at this time is, for example, about 30 to 60 seconds.
次に、SCSIディスクドライバ20は、メディアカード60が接続されているかどう
か知らせるコマンドをUSBホストドライバ30、USBホストコントローラ40を介し
てメディアカードリーダー50に送信し、メディアカード60が接続されているかどうか
判断する(150)。メディアカード60が抜き取られたと判断した場合(No)、OS
10にメディアカード60が抜き取られたコマンドを通知する(200)。メディアカー
ド60が抜かれていないと判断した場合(Yes)、USBホストドライバ30、USB
ホストコントローラ40及びメディアカードリーダー50を介してメディアカード60に
アクセスコマンドを送る(160)。
Next, the
10 is notified of the command that the
An access command is sent to the
次に、SCSIディスクドライバ20は、USBホストドライバ30、USBホストコ
ントローラ40及びメディアカードリーダー50を介してメディアカード60からの応答
が得られたかどうか判断する(170)。メディアカード60からの応答があった場合(
Yes)、この応答をOS10に通知する(210)。メディアカード60からの応答が
なかった場合(No)、タイムアウト時間2が過ぎたかどうか判断し(180)、タイム
アウト時間2がまだ過ぎていなければ、再び機器からの応答が得られたかどうかの判断を
行う。タイムアウト時間2が過ぎた場合(Yes)、機器に異常が発生し使用不可とした
コマンドを、OS10に通知する(190)。
Next, the
Yes), this response is notified to the OS 10 (210). When there is no response from the media card 60 (No), it is determined whether or not the timeout time 2 has passed (180), and if the timeout time 2 has not yet passed, it is determined whether or not a response from the device has been obtained again. Do. When the time-out time 2 has passed (Yes), the OS 10 is notified of a command that has become unavailable due to an abnormality in the device (190).
このように本発明では、周辺機器が突然取り去られた場合など周辺機器からの通知がな
い場合でも自動的に初回のタイムアウト時間は短く、リトライ処理を行う際にはタイムア
ウト時間を長くすることで、周辺機器側になんら特別のシステムを構築することなく、周
辺機器がコマンド処理に必要なタイムアウト時間を延長すべきか、ハード的に障害が発生
したかどうかを認識できる。
As described above, in the present invention, even when there is no notification from the peripheral device such as when the peripheral device is suddenly removed, the first time-out time is automatically shortened, and when performing the retry process, the time-out time is increased. It is possible to recognize whether the peripheral device should extend the timeout time required for command processing or whether a hardware failure has occurred without constructing any special system on the peripheral device side.
10…OS
20…SCSIディスクドライバ
30…USBホストドライバ
40…USBホストコントローラ
50…メディアカードリーダー
60…メディアカード
10 ... OS
20 ...
Claims (4)
前記周辺機器に第1のアクセスコマンドを出力する第1出力手段と、First output means for outputting a first access command to the peripheral device;
前記第1のアクセスコマンドが出力されてから第1の期間内に前記周辺機器からの応答を受けない場合、前記周辺機器に第2のアクセスコマンドを出力する第2出力手段と、Second output means for outputting a second access command to the peripheral device when a response from the peripheral device is not received within a first period after the first access command is output;
前記第1の期間内に前記周辺機器からの応答を受けない場合、前記周辺機器が前記コマンド出力装置に接続されているか否かを検出する検出手段と、Detecting means for detecting whether or not the peripheral device is connected to the command output device when not receiving a response from the peripheral device within the first period;
前記周辺機器が前記コマンド出力装置に接続されていると検出された場合であって、前記第2のアクセスコマンドが出力されてから前記第1の期間よりも長い第2の期間内に前記周辺機器からの応答を受けない場合に第1の通知を行う通知手段とIn the case where it is detected that the peripheral device is connected to the command output device, the peripheral device is within a second period longer than the first period after the second access command is output. A notification means for performing a first notification when no response is received from
を具備するコマンド出力装置。A command output device comprising:
前記周辺機器に第1のアクセスコマンドを出力することと、
第1のアクセスコマンドが出力されてから第1の期間内に前記周辺機器からの応答を受けなかった場合、前記周辺機器に第2のアクセスコマンドを出力することと、
前記第1の期間内に前記周辺機器からの応答を受けなかった場合、前記周辺機器が前記コマンド出力装置に接続されているか否かを検出することと、
前記第2のアクセスコマンドが出力されたのち、前記第1の期間よりも長い第2の期間内に前記周辺機器からの応答を受けなかった場合に通知することと
を具備する入出力実行時間監視方法。 An input / output execution time monitoring method in a command output device that outputs an access command to a peripheral device,
And outputting a first access command to the peripheral device,
If the first access command is not received a response from the peripheral device in between the first period from the output, and outputting a second access command to said peripheral device,
If no response is received from the peripheral device within the first period, detecting whether the peripheral device is connected to the command output device;
After the second access command is output, it includes a <br/> and be notified if not receiving a response from the peripheral device to a long in the second period than the first time period input and output execution time monitoring method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005048609A JP4686211B2 (en) | 2005-02-24 | 2005-02-24 | Command output device and input / output execution time monitoring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005048609A JP4686211B2 (en) | 2005-02-24 | 2005-02-24 | Command output device and input / output execution time monitoring method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006235909A JP2006235909A (en) | 2006-09-07 |
JP4686211B2 true JP4686211B2 (en) | 2011-05-25 |
Family
ID=37043498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005048609A Expired - Fee Related JP4686211B2 (en) | 2005-02-24 | 2005-02-24 | Command output device and input / output execution time monitoring method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4686211B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE112009002119T5 (en) | 2008-10-15 | 2011-07-07 | Mitsubishi Electric Corp. | Information storage means |
RU2011119498A (en) * | 2008-10-16 | 2012-11-27 | Мэйнтек Ко., Лтд. | COMPOSITION OF FASTENING PRODUCTS AND METHOD FOR PRODUCING FASTENED PAPER |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07334462A (en) * | 1994-06-06 | 1995-12-22 | Hitachi Ltd | Client/server system having quick monitoring function for action state of server |
JPH09186688A (en) * | 1995-11-28 | 1997-07-15 | Ncr Internatl Inc | Improved node discovery and network control system with monitoring |
JPH1031630A (en) * | 1996-04-09 | 1998-02-03 | Internatl Business Mach Corp <Ibm> | Operation method and system for missing interruption handler |
JP2001147866A (en) * | 1999-11-19 | 2001-05-29 | Nec Corp | System and method for monitoring input/output executing time |
WO2002008914A1 (en) * | 2000-07-21 | 2002-01-31 | Fujitsu Limited | Interface adaptor, time-out processing method, and recording medium |
JP2002281106A (en) * | 2001-03-22 | 2002-09-27 | J-Phone East Co Ltd | Method for communicating data and its system |
JP2004252580A (en) * | 2003-02-18 | 2004-09-09 | Nec Corp | Connecting status detecting system equipped with absent device notifying means |
-
2005
- 2005-02-24 JP JP2005048609A patent/JP4686211B2/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07334462A (en) * | 1994-06-06 | 1995-12-22 | Hitachi Ltd | Client/server system having quick monitoring function for action state of server |
JPH09186688A (en) * | 1995-11-28 | 1997-07-15 | Ncr Internatl Inc | Improved node discovery and network control system with monitoring |
JPH1031630A (en) * | 1996-04-09 | 1998-02-03 | Internatl Business Mach Corp <Ibm> | Operation method and system for missing interruption handler |
JP2001147866A (en) * | 1999-11-19 | 2001-05-29 | Nec Corp | System and method for monitoring input/output executing time |
WO2002008914A1 (en) * | 2000-07-21 | 2002-01-31 | Fujitsu Limited | Interface adaptor, time-out processing method, and recording medium |
JP2002281106A (en) * | 2001-03-22 | 2002-09-27 | J-Phone East Co Ltd | Method for communicating data and its system |
JP2004252580A (en) * | 2003-02-18 | 2004-09-09 | Nec Corp | Connecting status detecting system equipped with absent device notifying means |
Also Published As
Publication number | Publication date |
---|---|
JP2006235909A (en) | 2006-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180210783A1 (en) | Information processing apparatus, control method of the same, and storage medium | |
US5923897A (en) | System for adapter with status and command registers to provide status information to operating system and processor operative to write eject command to command register | |
US8711403B2 (en) | Printer driver, printer control method, and recording medium | |
US7552362B2 (en) | Bridge, error notification method therefor and system | |
JP4686211B2 (en) | Command output device and input / output execution time monitoring method | |
US7124235B2 (en) | USB apparatus with switchable host/hub functions and control method thereof | |
US9432545B2 (en) | Information processing apparatus, method of controlling the same, and storage medium for controlling transition to a sleep mode and setting of an interrupt setting in accordance with reception of data | |
JP6264879B2 (en) | Information processing apparatus, monitoring program, and monitoring method | |
US10423477B2 (en) | Control apparatus and control method for processor initialization | |
JP5286814B2 (en) | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program | |
JP3958669B2 (en) | Main body system for bus connection with docking system and bus connection control method | |
US7103692B2 (en) | Method and apparatus for an I/O controller to alert an external system management controller | |
JP3856341B2 (en) | Interface control method | |
JP5258219B2 (en) | Memory card having a plurality of interfaces, reset control method thereof, and reset control system | |
US20210064255A1 (en) | Information processing apparatus and control method for information processing apparatus | |
JP2012068808A (en) | Portable storage device | |
US20160231938A1 (en) | Storage control device and control method in storage control device | |
US10425545B2 (en) | Printing apparatus and method for controlling the same | |
JP2010003268A (en) | Slave device | |
JP2007004364A (en) | Debug system, debug method, and program | |
JP4499909B2 (en) | Multiplexed storage controller | |
US20130166802A1 (en) | Transponder, method and recording medium containing instructions for controlling the same | |
JP2912294B2 (en) | Printer device | |
JP5804042B2 (en) | Robot control system and robot control method | |
JP2005309511A (en) | Information processor, status acquisition method and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080121 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20080121 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100924 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101005 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101203 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20101203 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110118 |
|
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: 20110214 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140218 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140218 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |