Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0683226B2 - Information transfer control method - Google Patents
[go: Go Back, main page]

JPH0683226B2 - Information transfer control method - Google Patents

Information transfer control method

Info

Publication number
JPH0683226B2
JPH0683226B2 JP62201347A JP20134787A JPH0683226B2 JP H0683226 B2 JPH0683226 B2 JP H0683226B2 JP 62201347 A JP62201347 A JP 62201347A JP 20134787 A JP20134787 A JP 20134787A JP H0683226 B2 JPH0683226 B2 JP H0683226B2
Authority
JP
Japan
Prior art keywords
command
input
output
polling
time
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
Application number
JP62201347A
Other languages
Japanese (ja)
Other versions
JPS6444560A (en
Inventor
隆司 田畑
彰浩 石角
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62201347A priority Critical patent/JPH0683226B2/en
Publication of JPS6444560A publication Critical patent/JPS6444560A/en
Publication of JPH0683226B2 publication Critical patent/JPH0683226B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野 従来の技術と発明が解決しようとする問題点 問題点を解決するための手段 作用 実施例 発明の効果 〔概要〕 複数個の装置群と、該装置群を制御する為の制御装置と
の間のポーリング方式による情報転送制御方式に関し、 複数個の装置群の中に、電源切断状態の装置があって
も、稼働中の他の装置に対する処理が長時間待たされる
と云った事態を回避することを目的とし、 制御装置からの状態検査指令(ポーリングコマンド)に
対して、各装置からのステータス応答迄の時間を監視す
る手段と、制御装置からの入出力指令に対する応答を監
視する手段と、最後に当該装置に発行した該ポーリング
コマンドがタイムアウトになったことを、装置毎に記憶
する手段とを設け、該記憶手段が、上記応答監視に対す
る超過(タイムアウト)を示している装置に対しては、
上記制御装置は、該装置に対して、上位装置から入出力
要求があったことを検出したとき、該入出力指令の発行
に先立って、上記ポーリングコマンドを発行し、再度タ
イムアウトを検出した場合には、該入出力指令の発行を
抑止するように構成する。
DETAILED DESCRIPTION [Table of Contents] Outline Industrial field of application Conventional techniques and problems to be solved by the invention Means for solving problems Problems Working Example Effect of the invention [Outline] A plurality of devices Group, and an information transfer control method by a polling method between a control device for controlling the device group, even if there is a device in a power-off state among a plurality of device groups For the purpose of avoiding the situation that the processing for the device has been waiting for a long time, means for monitoring the time until the status response from each device in response to the status inspection command (polling command) from the control device, Means for monitoring the response to the input / output command from the control device, and means for storing, for each device, that the polling command issued to the device last timed out are provided. , For devices that show an excess (timeout) to the above response monitoring,
When the control device detects that there is an input / output request from the host device to the device, it issues the polling command before issuing the input / output command, and detects a timeout again. Is configured to suppress the issuance of the input / output command.

〔産業上の利用分野〕[Industrial application field]

本発明は、複数個の装置群と、該装置群を制御する為の
制御装置との間の情報転送方式に係り、特に装置の状態
が制御装置からの状態検査指令(ポーリングコマンド)
に応答すると云う通信形態、即ち、各装置から制御装置
への割込みを機能を有していない通信形態における情報
転送制御方式に関する。
The present invention relates to an information transfer system between a plurality of device groups and a control device for controlling the device groups, and in particular, the device status is a status check command (polling command) from the control device.
The present invention relates to an information transfer control method in a communication mode in which a response from a device is provided, that is, a communication mode having no function of interrupting each device to a control device.

最近の計算機システムによるデータ処理の多様化,処理
量の増大化に伴って、該計算機システムに接続される入
出力装置の数が増大化する動向にあり、全ての入出力装
置の電源が投入されていることが少なくなってきた。
With the recent diversification of data processing by computer systems and the increase in processing volume, the number of input / output devices connected to the computer system is increasing, and all the input / output devices are powered on. I'm getting less and less.

該複数個の入出力装置群と、該入出力装置群を制御する
為の制御装置との間をポーリング方式でデータ転送を行
っている場合、該複数個の入出力装置群の中に電源が投
入されていない入出力装置が混在していると、該電源が
投入されていない入出力装置に対して、例えば、上位の
情報処理装置からの入出力指令が発行された場合、タイ
ムアウトとなる為、制御装置はその間、他の入出力装置
に対する処理を行うことができず、本来故障でない装置
の為に、他の稼働中の入出力装置の応答が悪化すると云
う弊害があり、かかる本来故障でない装置が存在してい
ても、稼働中装置の応答性を悪化させることのない情報
転送制御方式が必要とされるようになってきた。
When data is transferred between the plurality of input / output device groups and a control device for controlling the input / output device groups by the polling method, a power supply is provided in the plurality of input / output device groups. If there are mixed input / output devices that have not been turned on, a timeout will occur if an input / output command is issued to the input / output devices that have not been turned on from the host information processing device, for example. During that time, the control device cannot perform processing for other input / output devices, and there is an adverse effect that the response of other operating input / output devices deteriorates due to the device that is not originally malfunctioning. There is a need for an information transfer control method that does not deteriorate the responsiveness of a device in operation even if the device exists.

〔従来の技術と発明が解決しようとする問題点〕[Problems to be solved by conventional technology and invention]

第4図は、ポーリング方式の情報処理システムの構成例
を示した図である。
FIG. 4 is a diagram showing a configuration example of a polling type information processing system.

図中、1は情報処理装置で、2は制御装置、そして、31
〜3nは入出力装置である。
In the figure, 1 is an information processing device, 2 is a control device, and 31
~ 3n are input / output devices.

この入出力装置としては、例えば、ディスプレイ装置,
或いはプリンタ装置がある。
As the input / output device, for example, a display device,
Alternatively, there is a printer device.

上記制御装置2と、各入出力装置31〜3nは、各々1本宛
の同軸ケーブルで接続されており、該制御装置1と入出
力装置31〜3nとの間の通信は、制御装置1からのコマン
ドに対して入出力装置31〜3nが応答する方法で行われ
る。
The control device 2 and each of the input / output devices 31 to 3n are connected to each other by a coaxial cable, and communication between the control device 1 and the input / output devices 31 to 3n is performed from the control device 1. The input / output devices 31 to 3n respond to the command of.

例えば、ディスプレイ装置で、アテンションキーが押下
された場合、該ディスプレイ装置から制御装置2に対し
ての割込みは発生せず、該事象はディスプレイ装置内に
保留される。
For example, when the attention key is pressed on the display device, no interrupt is generated from the display device to the control device 2, and the event is held in the display device.

そして、ディスプレイ装置は、制御装置2からのポーリ
ングコマンドを受け取った場合に、その応答として通知
するステータス情報中に“アテンションを保持してい
る”旨を報告する。
Then, when the display device receives the polling command from the control device 2, the display device reports "holding attention" in the status information notified as the response.

第5図はポーリング方式の情報処理システムにおける動
作タイムチヤートである。
FIG. 5 is an operation time chart in the polling type information processing system.

本図の(a)は制御装置2から入出力装置(以下、単に
装置と云うこともある)31〜3nに対して、それらの状態
を検査する為にポーリングコマンドを順次発行している
ことを示している図である。ここで、「Idle」は制御装
置2が、該ポーリング処理を行っていない“空き”の時
間を示している。
(A) of the figure shows that the control device 2 sequentially issues a polling command to the input / output devices (hereinafter sometimes simply referred to as devices) 31 to 3n in order to inspect their states. It is the figure which has shown. Here, “Idle” indicates a “vacant” time during which the control device 2 is not performing the polling process.

図中、41は装置31に対するポーリングコマンドの発信か
ら、該コマンドに対する装置31からのステータス応答迄
の時間を示している。
In the figure, 41 indicates the time from the transmission of the polling command to the device 31 to the status response from the device 31 to the command.

この間、制御装置2は装置31に関する処理の為に専有さ
れる。
During this time, the control device 2 is dedicated to the processing relating to the device 31.

同様に、42は装置32へのポーリングの為に、制御装置2
が専有される時間であり、4nは装置3nへのポーリングの
為に、制御装置2が専有される時間である。
Similarly, 42 is a controller 2 for polling device 32.
4n is the time when the control device 2 is used for polling the device 3n.

このように、制御装置2は、第1の装置31へのポーリン
グ,第2の装置32へのポーリング,…と、順次ポーリン
グ動作を行い、第nの装置へのポーリング動作の後は、
再び第1の装置31へのポーリングを行う。
As described above, the control device 2 sequentially performs the polling operation such as the polling of the first device 31, the polling of the second device 32, and so on. After the polling operation of the nth device,
The polling of the first device 31 is performed again.

通常、ポーリングコマンドは、短時間(1〜2ms程度)
で完了するので、上記制御装置2は最大数msの間応答を
待ち合わせる。該待ち合わせ時間を経過した後も、該入
出力装置からの応答が報告されない場合、該制御装置2
ではコマンドタイムアウトと認識して、次の入出力装置
に対するポーリングに移る。
Normally, polling commands are short-time (1 to 2 ms)
Then, the control device 2 waits for a response for a maximum of several ms. If no response is reported from the input / output device even after the waiting time has elapsed, the control device 2
Then, the command timeout is recognized, and the polling for the next I / O device is started.

(b)図は、制御装置2から入出力装置31〜3nに対し
て、ライトコマンドを発行した場合のタイムチヤートを
示している。
FIG. 9B shows a time chart when a write command is issued from the control device 2 to the input / output devices 31 to 3n.

上記のポーリング動作は、制御装置2の内部の図示して
いないタイマ機構によって起動されるのに対して、通
常、ライト動作やリード動作は、第4図に示した情報処
理装置1からの要求に起因して、該制御装置2から下位
の入出力装置31〜3nに発信される。
While the above polling operation is activated by a timer mechanism (not shown) inside the control device 2, normally, the write operation and the read operation are performed in response to a request from the information processing device 1 shown in FIG. As a result, it is transmitted from the control device 2 to the lower input / output devices 31 to 3n.

尚、ディスプレイ装置からプリンタ装置への画面データ
コピーのように、情報処理装置1からの要求なしに、制
御装置2からのライト動作,リード動作を行う場合もあ
る。
In some cases, like the screen data copy from the display device to the printer device, the write operation and the read operation from the control device 2 are performed without a request from the information processing device 1.

(b)図においては、制御装置2がボーリング動作を繰
り返している間に、ライト動作の要因が発生し、装置32
へのライトコマンドを発信する様子を示している。
In the figure (b), while the control device 2 repeats the boring operation, a factor of the write operation occurs and the device 32
It shows how to send a write command to.

図中、52が、装置32へのライトコマンドの発信から、装
置32側でのライトコマンド処理(画面データの表示,装
置内部のバッファへの取り込み処理等)を経て、該装置
32から制御装置2に対するステータス応答迄の時間を示
している。
In the figure, reference numeral 52 designates a device that has transmitted a write command to the device 32, and has undergone a write command process on the device 32 side (display of screen data, fetching process to a buffer inside the device, etc.).
The time from 32 to the status response to the control device 2 is shown.

本図では、装置32へのライトコマンドの送信を、装置3n
に対するポーリング動作4nの後に行っているが、該ポー
リング動作が一周する切れ目でのみ、該ライト動作,リ
ード動作を行う必要はなく、例えば、装置31へのポーリ
ング動作41と、装置32へのポーリング動作42との間に、
上記ライト動作,リード動作を行うことができる。
In this figure, transmission of a write command to the device 32
Although the polling operation is performed after 4n, the write operation and the read operation do not have to be performed only at the break of the polling operation. For example, the polling operation 41 to the device 31 and the polling operation to the device 32 are performed. Between 42 and
The above write operation and read operation can be performed.

該ライトコマンドや、リードコマンドは、ポーリングコ
マンドよりはるかに長時間(数十〜数百ms)を必要とす
る。そして、該ライトコマンド,或いはリードコマンド
の実行中(コマンドの発信から、装置32からのステータ
ス応答が報告される迄)、制御装置2は該装置32の動作
が完了する迄、他の装置へのコマンドを発行することが
できない。
The write command and the read command require much longer time (tens to hundreds of ms) than the polling command. Then, while the write command or the read command is being executed (from the transmission of the command until the status response from the device 32 is reported), the control device 2 waits for other devices until the operation of the device 32 is completed. The command cannot be issued.

ここで、ある入出力装置が電源切断状態にある場合を考
える。この場合、制御装置2からのコマンドに対して、
該入出力装置は応答することができず、該制御装置2か
らの該入出力装置に対するコマンドはタイムアウトとな
る。
Here, consider a case where an input / output device is in a power-off state. In this case, in response to the command from the controller 2,
The I / O device cannot respond and the command from the control device 2 to the I / O device times out.

このように、制御装置2からのコマンドに対して、入出
力装置側が応答しないと云う状況は、該入出力装置自体
の故障に限らず、該装置の電源が投入されていないと云
った、本来異常ではない場合にも起こりうるのである。
As described above, the situation in which the input / output device does not respond to the command from the control device 2 is not limited to the failure of the input / output device itself, and the power of the device is not turned on. It can happen even when it is not abnormal.

電源切断状態の装置に対するコマンドの発信から、該コ
マンドがタイムアウトとなったことを認識する迄の間、
当該制御装置2は、その他の入出力装置に対する処理を
行うことがなきない。
From when the command is sent to the device in the power-off state until it is recognized that the command has timed out,
The control device 2 cannot perform processing for other input / output devices.

この為、電源切断状態の入出力装置が有る場合には、稼
働中の入出力装置の応答性が悪化すると云う弊害があっ
た。
Therefore, when there is an input / output device in a power-off state, there is an adverse effect that the responsiveness of the operating input / output device deteriorates.

情報処理装置1から入出力装置31〜3nに対する出力動作
は、入出力装置31〜3nからの入力動作に起因して起こる
場合と、該情報処理装置1で特定の事象発生により起こ
る場合とがある。
The output operation from the information processing device 1 to the input / output devices 31 to 3n may be caused by the input operation from the input / output devices 31 to 3n or may be caused by the occurrence of a specific event in the information processing device 1. .

後者の場合、電源切断状態の入出力装置に対しても出力
要求が発生する。
In the latter case, an output request is issued to the input / output device in the power-off state.

この場合、従来方式においては、該情報処理装置1から
の出力要求が出た場合、制御装置2は入出力装置31〜3n
に対して、直ちにライトコマンドを発行していた。
In this case, in the conventional method, when an output request is issued from the information processing device 1, the control device 2 controls the input / output devices 31 to 3n.
, Immediately issued a write command.

(c)図は情報処理装置1からの出力要求が、入出力装
置の電源が切断されている状態,及び該入出力装置の電
源が投入されている状態で発行された場合の動作を示す
タイムチヤートである。
FIG. 6C is a time chart showing the operation when the output request from the information processing device 1 is issued in a state in which the input / output device is powered off and a state in which the input / output device is powered on. It is a chart.

図中、60は、入出力装置が電源投入状態、即ち、制御装
置2からのコマンドに応答可能な場合における正常なポ
ーリング動作を示し、61は装置が電源切断状態にある場
合のポーリング動作を示していて、前述の正常なポーリ
ング動作60に対してポーリング周期が長いと云う特徴が
ある。このように、通常、制御装置2においては、発行
したコマンドに対してタイムアウトになった入出力装置
の番号を記憶しておいて、該入出力装置に対するポーリ
ング周期を長くするような制御を行っている。
In the figure, 60 indicates a normal polling operation when the input / output device is in a power-on state, that is, when it can respond to a command from the control device 2, and 61 indicates a polling operation when the device is in a power-off state. However, there is a feature that the polling cycle is longer than the normal polling operation 60 described above. As described above, normally, the control device 2 stores the number of the input / output device that has timed out for the issued command, and performs control such that the polling cycle for the input / output device is lengthened. There is.

又、62は入出力装置が電源投入状態にある場合のライト
動作を示し、63は入出力装置の電源が切断状態にある場
合のライト動作を示している。
Reference numeral 62 indicates a write operation when the power of the input / output device is on, and reference numeral 63 indicates a write operation when the power of the input / output device is off.

入出力装置が電源切断状態にある場合には、該ライトコ
マンドがタイムアウトすることになる。前述のように、
ライトコマンド,リードコマンドは、ポーリングコマン
ドより遥かに長時間、通常、数百ms(本図の62参照)を
必要とする。この為、ライトコマンド,リードコマンド
用のタイムアウト監視時間は、数s(本図の63参照)に
設定している。
If the input / output device is in the power-off state, the write command will time out. As aforementioned,
Write commands and read commands require much longer than polling commands, and usually require several hundred ms (see 62 in this figure). Therefore, the timeout monitoring time for write commands and read commands is set to several seconds (see 63 in this figure).

従って、電源切断状態の装置に対してライトコマンドが
発行された場合には、制御装置2は数秒間、その装置の
為に専有され、他の稼働状態の装置に対する処理が実行
されない為、前述のように、該稼働中の入出力装置に対
する応答性が悪化すると云う問題があった。
Therefore, when the write command is issued to the device in the power-off state, the control device 2 is occupied for that device for several seconds, and the processing for the device in the other operating state is not executed. As described above, there is a problem that the responsiveness to the operating input / output device deteriorates.

本発明は上記従来の欠点に鑑み、複数個の装置と、該装
置を制御する制御装置との間の情報転送制御をポーリン
グ方式を行っている情報処理システムにおいて、電源切
断状態の装置が存在する場合でも、稼働中の他の装置に
対する処理が長時間待たされると云った事態を回避させ
る情報転送制御方式を提供することを目的とするもので
ある。
In view of the above-mentioned conventional drawbacks, the present invention includes an apparatus in a power-off state in an information processing system that uses a polling method to control information transfer between a plurality of apparatuses and a control apparatus that controls the apparatuses. Even in such a case, it is an object of the present invention to provide an information transfer control method that avoids a situation in which a process for another operating device has to wait for a long time.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明の情報転送制御方式の原理を示すタイ
ムチヤートである。
FIG. 1 is a time chart showing the principle of the information transfer control system of the present invention.

本発明においては、 複数個の装置群中の1つを選択して、該装置の状態を検
査する為に、該制御装置から該装置へ送る状態検査指令
(ポーリングコマンド)と、 上記装置群中の1つを選択して、該装置を動作させる入
出力指令を、該制御装置が発行し、 これらの指令に対する応答を、当該装置から該制御装置
へ通知する制御方式であり、 該制御装置は、上記状態検査指令に対して、一定時間内
に、該装置から応答がないことを検査する状態検査時間
超過検出手段と、上記入出力指令に対して、一定時間以
内に該装置から応答を検出する入出力時間超過検査手段
と、 最後に当該装置に発行した指令が、上記監視時間を超過
したことを、各装置毎に記憶する手段を具備する情報転
送制御方式であって、 上記記憶手段が監視時間超過を示している場合61には、
上記制御装置は、該装置に対して入出力要求があったこ
とを検出したとき、上記入出力指令の発行に先立って、
上記状態検査指令を発行し、該状態検査指令に対する
応答が、再度時間超過を示している場合71には、続いて
発行される入出力指令の発行を抑止するように構成す
る。
In the present invention, one of a plurality of device groups is selected, and a state inspection command (polling command) sent from the control device to the device in order to inspect the state of the device; Is selected, the control device issues an input / output command for operating the device, and notifies the control device of a response to these commands from the device. A state inspection time excess detecting means for inspecting that there is no response from the device within a fixed time in response to the state inspection command, and detecting a response from the device within a fixed time in response to the input / output command An information transfer control method comprising: input / output time excess inspection means, and means for storing, for each device, that the command issued to the device lastly exceeds the monitoring time, Indicates that the monitoring time has been exceeded In the case 61,
When the control device detects that there is an input / output request to the device, prior to issuing the input / output command,
When the state inspection command is issued and the response to the state inspection command again indicates that the time is exceeded, the issue of the subsequently issued input / output command is suppressed.

〔作用〕[Action]

即ち、本発明によれば、第1図のタイムチヤートで示す
ように、制御装置は、無応答の状態にある装置、即ち、
以前のコマンドでタイムアウト61を検出した装置を記憶
しているので、該装置に対しての出力要求を認識した場
合には、ライトコマンドの発行に先立って、ポーリング
コマンド71を発行する。
That is, according to the present invention, as shown in the time chart of FIG. 1, the control device is a device in a non-responsive state, that is,
Since the device which has detected the timeout 61 by the previous command is stored, when the output request to the device is recognized, the polling command 71 is issued prior to the issuance of the write command.

この追加されたポーリングコマンドに対して、該装置か
らの応答がタイムアウトとなった場合(図中、71で示
す)、該ライトコマンドの発行を抑止し、情報処理装
置に対して異常終了を通知する。
When the response from the device to the added polling command times out (indicated by 71 in the figure), the issuance of the write command is suppressed and the information processing device is notified of the abnormal end. .

該無応答状態にあった入出力装置が、ライトコマンドの
発行に先立つポーリングコマンドの発行′に対して、
正常応答を返した場合(図中、70で示す)、引き続いて
ライトコマンド62を発行する。
The I / O device in the non-responsive state responds to the polling command issuance 'prior to the issuance of the write command.
When the normal response is returned (indicated by 70 in the figure), the write command 62 is subsequently issued.

このように制御することにより、電源切断状態の装置に
対する出力要求によって、制御装置が専有される時間
は、該ライトコマンドのタイムアウト時間よりもはるか
に短い時間(即ち、ポーリングコマンドのタイムアウト
監視時間)にすることができる。
By controlling in this way, the time when the control device is occupied by the output request to the device in the power-off state is much shorter than the time-out time of the write command (that is, the polling command time-out monitoring time). can do.

従って、本発明においては、無応答状態にあった装置へ
の出力要求に対して、ライトコマンドよりもはるかにタ
イムアウト監視時間が短くて済むポーリングコマンドを
前以て発行することにより、電源切断状態の装置が有る
場合でも、稼働中の装置に対する処理が長時間待たされ
ることを回避できる効果がある。
Therefore, in the present invention, in response to the output request to the device in the non-responsive state, by issuing the polling command which requires a much shorter time-out monitoring time than the write command, the power-off state Even if there is a device, there is an effect that it is possible to avoid waiting for a long time for processing for a device that is in operation.

〔実施例〕〔Example〕

以下本発明の実施例を図面によって詳述する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

前述の第1図が本発明の情報転送制御方式の原理を示す
タイムチヤートであり、第2図は本発明の一実施例をブ
ロック図で示した図であり、第3図は本発明による入出
力処理の流れ図であって、第3図におけるステップ91,9
2,93が本発明を実施するのに必要な手段である。尚全図
を通して同じ符号は同じ対象物を示している。
The above-mentioned FIG. 1 is a time chart showing the principle of the information transfer control system of the present invention, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 9 is a flow chart of output processing, which is steps 91 and 9 in FIG.
2,93 are the means necessary to carry out the present invention. The same reference numerals denote the same objects throughout the drawings.

以下、第1図〜第3図によって、本発明の情報転送制御
方式を説明する。
The information transfer control method of the present invention will be described below with reference to FIGS.

先ず、制御装置2内のタイマ処理部20は、該制御装置2
内の図示していないタイマ機構によって起動され、ポー
リング処理部22を起動する。
First, the timer processing unit 20 in the control device 2
It is activated by a timer mechanism (not shown) inside and activates the polling processing unit 22.

起動されたポーリング処理部22は、次にポーリング動作
を実行すべき装置を決定し、ポーリングコマンドを生成
して、該コマンドをコマンド実行部25に渡した後、待ち
状態に入る。
The activated polling processing unit 22 determines a device to execute the polling operation next, generates a polling command, passes the command to the command executing unit 25, and then enters a waiting state.

該ポーリング処理部22からコマンド実行部25に渡す情報
には、上記発信すべきコマンドの他に、発信先の装置番
号,コマンドのタイムアウト監視時間値がある。
The information passed from the polling processing unit 22 to the command execution unit 25 includes the device number of the transmission destination and the timeout monitoring time value of the command in addition to the command to be transmitted.

該ポーリングコマンドを受付たコマンド実行部25は、指
定された装置31〜3nに対して、該ポーリングコマンドを
発信し、該発信先の装置31〜3nからのステータス応答の
受信を待つ。
The command execution unit 25 that has received the polling command transmits the polling command to the designated devices 31 to 3n and waits for the reception of the status response from the destination devices 31 to 3n.

そして、上記ポーリング処理部22から指示されたタイム
アウト監視時間内に、当該装置からのステータス応答が
あった場合、該コマンド実行部25は当該装置から受け取
ったステータス情報をポーリング処理部22に通知する。
Then, when there is a status response from the device within the timeout monitoring time instructed by the polling processing unit 22, the command executing unit 25 notifies the polling processing unit 22 of the status information received from the device.

該ステータス情報を受けたポーリング処理部22は、該装
置が正常に応答しうる状態にあることを装置状態記憶部
23に記憶し、更に、該受け取ったステータス情報中に、
装置側からの処理要求があるか否かを検査する。
The polling processing unit 22 that has received the status information indicates that the device is in a state in which it can respond normally.
23, further, in the received status information,
Check whether there is a processing request from the device side.

この検査で、該装置側からの要求がある場合、 入出力処理部21を起動する。該装置からの処理要求を受
けた入出力処理部21は、その処理要求の内容に従って、
上位の情報処理装置1へのアテンション通知や、要求元
装置,或いは他の装置に対する入出力処理を行う。
In this inspection, if there is a request from the device side, the input / output processing unit 21 is activated. The input / output processing unit 21 that has received the processing request from the device, according to the content of the processing request,
Attention notification to the higher-level information processing apparatus 1 and input / output processing for the request source apparatus or another apparatus are performed.

ポーリング処理部22からのポーリングコマンドの実行に
対して、タイムアウト監視時間内に、該当装置からの応
答が得られない場合、該コマンド実行部25はコマンドタ
イムアウトとして、依頼元であるポーリング処理部22に
通知する。
In response to the execution of the polling command from the polling processing unit 22, if the response from the device is not obtained within the time-out monitoring time, the command execution unit 25 regards it as a command time-out to the polling processing unit 22 which is the request source. Notice.

該コマンドタイムアウトを通知されたポーリング処理部
22は、該装置が操作員の介入を必要としていることを装
置状態記憶部23に記憶する。
Polling processing unit notified of the command timeout
The unit 22 stores in the unit state storage unit 23 that the unit requires operator intervention.

次に、情報処理装置1,或いは制御装置2内で、ある装置
31〜3nに対する入出力要求が発生した場合の動作につい
て説明する。
Next, in the information processing device 1 or the control device 2, a device
The operation when an input / output request for 31 to 3n is generated will be described.

該入出力要求は、制御装置2の入出力処理部21によって
認識され、プロトコル部24が起動される。
The input / output request is recognized by the input / output processing unit 21 of the control device 2, and the protocol unit 24 is activated.

プロトコル部24は、入出力動作を指示された装置に関し
て、上記装置状態記憶部23中の装置状態を検査する。そ
して、該当装置が正常に応答を返していたと認識された
場合、該プロトコル部24は、該依頼された入出力要求
を、ライトコマンド,或いはリードコマンドに変換し、
コマンド実行部25に、該コマンドを引き渡した後、待ち
の状態に入る。
The protocol unit 24 inspects the device status in the device status storage unit 23 for the device instructed to perform the input / output operation. Then, when it is recognized that the device has normally returned a response, the protocol unit 24 converts the requested input / output request into a write command or a read command,
After handing over the command to the command execution unit 25, it enters a waiting state.

該プロトコル部24からコマンド実行部25に渡す情報に
は、上記発信すべきコマンドの他に、発信先の装置番
号,コマンドのタイムアウト監視時間値がある。
The information passed from the protocol unit 24 to the command execution unit 25 includes the device number of the transmission destination and the timeout monitoring time value of the command in addition to the command to be transmitted.

コマンド実行部25は、指定された装置31〜3nに対してコ
マンドを発信し、該装置31〜3nからのステータス応答,
或いはデータ応答の受信を待つ。
The command execution unit 25 sends a command to the designated devices 31 to 3n, and sends a status response from the devices 31 to 3n.
Alternatively, it waits for the reception of the data response.

そして、タイムアウト監視時間内に、当該装置からの応
答があった場合、コマンド実行部25は、該装置から受け
取ったステータス情報,或いはデータをプロトコル部24
に通知する。
Then, if there is a response from the device within the time-out monitoring time, the command execution unit 25 sends the status information or data received from the device to the protocol unit 24.
To notify.

この場合、該プロトコル部24は、該装置が正常に応答し
うる状態にあることを、前述の装置状態記憶部23に記憶
する。
In this case, the protocol unit 24 stores in the device state storage unit 23 that the device is in a state in which it can respond normally.

入出力処理部21から依頼された処理が完了した場合、プ
ロトコル部24は処理結果を入出力処理部21に通知する。
When the processing requested by the input / output processing unit 21 is completed, the protocol unit 24 notifies the input / output processing unit 21 of the processing result.

プロトコル部24からのコマンド実行要求で指示されたタ
イムアウト監視時間内に、当該装置から応答が得られな
い場合、コマンド実行部25はコマンドタイムアウトとし
て、依頼元であるプロトコル部24に通知する。
When the response is not obtained from the device within the timeout monitoring time instructed by the command execution request from the protocol unit 24, the command execution unit 25 notifies the requesting protocol unit 24 as a command timeout.

該コマンドタイムアウトを通知されたプロトコル部24
は、該装置が操作員の介入を必要としていることを上記
装置状態記憶23に記憶する。
Protocol part 24 notified of the command timeout
Stores in the device state memory 23 that the device requires operator intervention.

次に、装置が電源切断状態にある場合の入出力要求の処
理方法について、第1図を参照しながら説明する。
Next, a method of processing an input / output request when the device is in a power-off state will be described with reference to FIG.

入出力処理部21から起動されたプロトコル部24は、該入
出力動作が指示された装置に関し、装置状態記憶部23中
の装置状態を検査する。
The protocol unit 24 activated by the input / output processing unit 21 checks the device status in the device status storage unit 23 for the device instructed to perform the input / output operation.

そして、該当装置が操作員の介入を必要としていたと認
識された場合、該依頼された入出力要求に基づくライト
コマンド,或いはリードコマンドの発行に先立って、プ
ロトコル部24によってポーリング動作が行われる。即
ち、 プロトコル部24は、ポーリングコマンドを作成し、該コ
マンドをコマンド実行部25に渡した後、待ちの状態に入
る。
Then, when it is recognized that the device requires the intervention of the operator, the protocol unit 24 performs the polling operation prior to the issuance of the write command or the read command based on the requested input / output request. That is, the protocol unit 24 creates a polling command, passes the command to the command execution unit 25, and then enters a waiting state.

このとき、該プロトコル部24からコマンド実行部25に渡
す情報には、上記ポーリングコマンドの他に、発信先の
装置番号,ポーリング動作のタイムアウト監視時間値が
含まれる。
At this time, the information passed from the protocol unit 24 to the command execution unit 25 includes the device number of the transmission destination and the timeout monitoring time value of the polling operation in addition to the polling command.

該ポーリングコマンドを受付たコマンド実行部25は、指
定された装置に対してポーリングコマンドを発信し、該
当装置からのステータスの応答の受信を待つ。そして、
該タイムアウト監視時間内に、装置からのステータス応
答があった場合、該コマンド実行部25は、当該装置から
受け取ったステータス情報をプロトコル部24に通知す
る。
Upon receiving the polling command, the command execution unit 25 sends the polling command to the designated device and waits for a status response from the device. And
When there is a status response from the device within the timeout monitoring time, the command executing unit 25 notifies the protocol unit 24 of the status information received from the device.

該ステータス情報を受け取ったプロトコル部24は、該装
置が正常に応答しうる状態にあることを、上記装置状態
記憶部23に記憶し、入出力処理部21から依頼された入出
力処理に移る。これ以降の処理は、装置状態記憶部23で
正常応答装置と認識された場合と同じである。{第1図
のタイムチヤート61,70,62参照} 尚、該ポーリング動作によって通知されたステータス中
に、当該装置からの処理要求があっても、本発明の場
合、プロトコル部24では、この情報を無視する。そし
て、該処理要求は、次にポーリング処理部22による通常
のポーリング動作が行われた際に処理することができ
る。
The protocol unit 24 that has received the status information stores in the device status storage unit 23 that the device is in a state in which it can respond normally, and shifts to the input / output processing requested by the input / output processing unit 21. The subsequent processing is the same as when the device status storage unit 23 recognizes the device as a normal response device. {Refer to the time charts 61, 70, 62 in FIG. 1} Even if there is a processing request from the device in the status notified by the polling operation, in the case of the present invention, the protocol section 24 uses this information. Ignore. Then, the processing request can be processed when the normal polling operation is performed by the polling processing unit 22 next time.

上記プロトコル部24によって行ったポーリング動作に対
して、該装置が応答しない場合、コマンド処理部25は、
コマンドタイムアウトとして、依頼元であるプロトコル
部24に通知する。
If the device does not respond to the polling operation performed by the protocol unit 24, the command processing unit 25
The protocol unit 24, which is the request source, is notified of the command timeout.

該コマンドタイムアウトを通知されたプロトコル部24
は、該当装置が未だ操作員の介入を必要としていると認
識し、ライトコマンド,或いはリードコマンドを装置に
発信することなく、入出力処理部21に異常報告を行う。
{第1図のタイムチヤート61,71参照) 第3図は入出力処理部21から出力指示があった場合の、
プロトコル部24の処理の流れ図である。
Protocol part 24 notified of the command timeout
Recognizes that the relevant device still requires operator intervention, and reports an abnormality to the input / output processing unit 21 without sending a write command or a read command to the device.
(Refer to the time charts 61 and 71 in FIG. 1) FIG. 3 shows a case where an output instruction is issued from the input / output processing unit 21.
7 is a flowchart of the process of the protocol unit 24.

該プロトコル部24で指定した装置が、無応答、即ち、操
作員の介入を必要としていることが、装置状態記憶部23
で表示されていた場合、ポーリングコマンドを発信す
る。(ステップ91〜93参照)然し、コマンドタイムアウ
トの場合には、前述のように異常終了となる(ステップ
93,97参照)。
The device specified by the protocol unit 24 is not responding, that is, it requires the intervention of the operator.
If is displayed in, send a polling command. (Refer to steps 91 to 93) However, in the case of command timeout, abnormal termination occurs as described above (step
93, 97).

そして、前述のように、正常終了した場合には、ライト
コマンドを発信する。(ステップ94参照) このように、本発明は、各入出力装置の状態が、該入力
装置を制御する制御装置からのポーリングコマンドに応
答すると云う通信形態、即ち、各入出力装置から制御装
置への割込み機能を有しない通信形態における情報転送
制御方式において、制御装置が特定の入出力装置にポー
リングコマンドを発信して、コマンドタイムアウトを検
出した場合には、その状態を装置状態記憶部に記憶して
おいて、上位の情報処理装置等から入出力要求があった
とき、該当装置にポーリングコマンドを発信し、再度コ
マンドタイムアウトを検出した場合には、該入出力要求
に対するライトコマンド,或いはリードコマンドの発信
を抑止するが、該当装置が正常にステータス情報を返送
してきた場合には、該依頼を受けた入出力処理に入るよ
うにした所に特徴がある。
Then, as described above, the write command is transmitted in the case of normal termination. (See step 94) As described above, according to the present invention, the state of each input / output device responds to the polling command from the control device controlling the input device, that is, from each input / output device to the control device. In the information transfer control method in the communication mode that does not have the interrupt function, when the control device issues a polling command to a specific input / output device and detects a command timeout, the state is stored in the device state storage unit. When an input / output request is issued from a higher-level information processing device or the like, a polling command is transmitted to the device and if a command timeout is detected again, a write command or read command for the input / output request is sent. The call is suppressed, but if the relevant device normally returns the status information, the input / output processing that received the request is started. Is characterized in Unishi was place.

〔発明の効果〕〔The invention's effect〕

以上、詳細に説明したように、本発明の情報転送制御方
式は、制御装置からの状態検査指令(ポーリングコマン
ド)に対して、各装置からのステータス応答迄の時間を
監視する手段と、制御装置からの入出力指令に対する応
答を監視する手段と、最後に当該装置に発行した該ポー
リングコマンドがタイムアウトになったことを、装置毎
に記憶する手段とを設け、該記憶手段が、上記応答監視
に対する超過(タイムアウト)を示している装置に対し
ては、入出力指令の発行に先立って、上記ポーリングコ
マンドを発行し、再度タイムアウトを検出した場合に
は、該入出力指令の発行を抑止するようにしたものであ
るので、無応答状態にあった装置への出力要求に対し
て、ライトコマンドよりもはるかにタイムアウト監視時
間が短くて済むポーリングコマンドを前以て発行するこ
とにより、電源切断状態の装置が有る場合でも、稼働中
の装置に対する処理が長時間待たされることを回避でき
る効果がある。
As described above in detail, the information transfer control method of the present invention includes means for monitoring the time until the status response from each device in response to the status check command (polling command) from the control device, and the control device. Means for monitoring the response to the input / output command from the device, and means for storing, for each device, that the polling command issued to the device last timed out, and the storage means responds to the response monitoring. For the device indicating the excess (timeout), the above polling command is issued prior to the issuance of the I / O command, and when the timeout is detected again, the issuance of the I / O command is suppressed. This is a policy that requires a much shorter timeout monitoring time than the write command for output requests to the device that was in the non-responsive state. By pre issuing Gukomando, even when the apparatus power-off state is present, the effect of avoiding the processing for the device in operation is kept waiting for a long time.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の情報転送制御方式の原理を示すタイム
チヤート, 第2図は本発明の一実施例をブロック図で示した図, 第3図は本発明による入出力処理の流れ図, 第4図はポーリング方式の情報処理システムの構成例を
示した図, 第5図はポーリング方式の情報処理システムにおける動
作タイムチヤート, である。 図面において、 1は情報処理装置,2は制御装置, 20はタイマ処理部,21は入出力処理部, 22はポーリング処理部,23は装置状態記憶部, 24はプロトコル部,25はコマンド実行部, 31〜3nは入出力装置,又は装置, 41〜4nは制御装置2がポーリングコマンドによって、装
置31〜3nに専有される時間, 52は制御装置2がライトコマンドによって装置に専有さ
れる時間, 60は装置が電源投入状態にある場合のポーリング動作, 61は装置が電源切断状態にある場合のポーリング動作, 62は装置が電源投入状態にある場合のライト動作, 63は装置が電源切断状態にある場合のライト動作, 70,71は本発明によるポーリング動作, 90〜97は処理ステップ, をそれぞれ示す。
FIG. 1 is a time chart showing the principle of the information transfer control system of the present invention, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a flow chart of input / output processing according to the present invention. FIG. 4 is a diagram showing a configuration example of a polling method information processing system, and FIG. 5 is an operation time chart in the polling method information processing system. In the drawings, 1 is an information processing device, 2 is a control device, 20 is a timer processing unit, 21 is an input / output processing unit, 22 is a polling processing unit, 23 is a device state storage unit, 24 is a protocol unit, and 25 is a command execution unit. , 31 to 3n are input / output devices, or devices, 41 to 4n are times when the control device 2 is occupied by the devices 31 to 3n by the polling command, 52 is time when the control device 2 is occupied by the device by the write command, 60 is the polling operation when the device is in the power-on state, 61 is the polling operation when the device is in the power-off state, 62 is the write operation when the device is in the power-on state, 63 is the device is in the power-off state A write operation in a certain case, 70 and 71 indicate a polling operation according to the present invention, and 90 to 97 indicate processing steps.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数個の装置群(31〜3n)と、 前記装置群(31〜3n)の状態を検査する状態検査指令及
び前記状態検査指令に続いて前記装置群(31〜3n)動作
させる入出力指令を発行する制御装置(2)より構成さ
れ、 前記装置群(31〜3n)が前記状態検査指令に対する応答
を前記制御装置(2)に通知する情報転送制御方式であ
って、 前記制御装置(2)は、前記状態検査指令に対して、一
定時間内に前記装置群(31〜3n)からの応答がないこと
を検出する状態検査時間超過検出手段と、 前記状態検査時間超過手段により検出された装置(31〜
3n)を記憶する記憶手段(23)を具備し、 上位装置からの入出力要求を検出した際に、前記記憶手
段(23)が、前記装置群(31〜3n)が検査時間を超過し
ていることを示している場合には、上記入出力指令の発
行に先立って、上記状態検査指令を発行()し、更
に、前記装置群(31〜3n)が検査時間を超過した場合に
は、続いて発行する入出力指令を抑止()することを
特徴とする情報転送制御方式。
1. A plurality of device groups (31 to 3n), a state inspection command for inspecting the states of the device groups (31 to 3n), and the device group (31 to 3n) operation following the state inspection command. An information transfer control method, comprising: a control device (2) that issues an input / output command to cause the device group (31-3n) to notify the control device (2) of a response to the state inspection command. The control device (2) detects a state inspection time excess detecting unit that detects that there is no response from the device group (31 to 3n) to the state inspection command within a certain time, and the state inspection time excess unit. Detected by the device (31 ~
3n) is stored in the storage means (23), and when the input / output request from the host device is detected, the storage means (23) causes the device group (31 to 3n) to exceed the inspection time. If it indicates that the status check command is issued () before the input / output command is issued, and if the device group (31 to 3n) exceeds the test time, An information transfer control method characterized in that the input / output command issued subsequently is suppressed ().
JP62201347A 1987-08-12 1987-08-12 Information transfer control method Expired - Fee Related JPH0683226B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62201347A JPH0683226B2 (en) 1987-08-12 1987-08-12 Information transfer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62201347A JPH0683226B2 (en) 1987-08-12 1987-08-12 Information transfer control method

Publications (2)

Publication Number Publication Date
JPS6444560A JPS6444560A (en) 1989-02-16
JPH0683226B2 true JPH0683226B2 (en) 1994-10-19

Family

ID=16439529

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62201347A Expired - Fee Related JPH0683226B2 (en) 1987-08-12 1987-08-12 Information transfer control method

Country Status (1)

Country Link
JP (1) JPH0683226B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10949115B2 (en) * 2019-06-24 2021-03-16 Western Digital Technologies, Inc. Flash memory polling

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5621445A (en) * 1979-07-31 1981-02-27 Omron Tateisi Electronics Co Data transmission control system
JPS57141158A (en) * 1981-02-26 1982-09-01 Fujitsu Ltd Communication control system
JPS58222634A (en) * 1982-06-19 1983-12-24 Omron Tateisi Electronics Co Polling transmission system
JPS5933954A (en) * 1982-08-19 1984-02-24 Casio Comput Co Ltd Polling method

Also Published As

Publication number Publication date
JPS6444560A (en) 1989-02-16

Similar Documents

Publication Publication Date Title
KR100456180B1 (en) A peripheral device and control method thereof
JP2002297336A (en) Printer system
JP4487756B2 (en) Computer system and system monitoring program
JPH0683226B2 (en) Information transfer control method
EP2096550B1 (en) Information processing apparatus and control method thereof
JPS6220584B2 (en)
JPH0522313A (en) Terminal monitoring system for local area network system
JP2000148544A (en) Dump output system
JPH071800A (en) Printer error information output method
JPH04305758A (en) Information processor
JP3157794B2 (en) Peripheral control processor
EP0510679A2 (en) Fault information gathering system for peripheral controllers in a computer system
JP3358199B2 (en) I/O device status detection method
JPS597971B2 (en) I/O device control method
JPH10149295A (en) Sequence controller
JPH07271704A (en) Device controller
JP3316739B2 (en) Device interface control method
JP2000267950A (en) System and method for diagnosing test of device and recording medium recording control program for the same
JPH11277847A (en) Spooler monitoring device
JPH06290059A (en) Task management system
JPS5842484B2 (en) Overrun prevention method
JP2004030337A (en) Remote display system in occurrence of os halt error, display method and program
JPH06168174A (en) File sub-system connected with plural host computers
JPH09237235A (en) Terminal equipment having automatic communication function
JPS62105243A (en) Recovery device for system fault

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees