JPH05143505A - Method for controlling terminal - Google Patents

Method for controlling terminal

Info

Publication number
JPH05143505A
JPH05143505A JP3332669A JP33266991A JPH05143505A JP H05143505 A JPH05143505 A JP H05143505A JP 3332669 A JP3332669 A JP 3332669A JP 33266991 A JP33266991 A JP 33266991A JP H05143505 A JPH05143505 A JP H05143505A
Authority
JP
Japan
Prior art keywords
terminal
control device
terminal device
terminal control
state
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.)
Pending
Application number
JP3332669A
Other languages
Japanese (ja)
Inventor
Akira Ogiwara
章 荻原
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.)
Oki Electric Industry Co Ltd
Oki Power Tech Co Ltd
Oki Information Systems Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Oki Power Tech Co Ltd
Oki Information Systems Co 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 Oki Electric Industry Co Ltd, Oki Power Tech Co Ltd, Oki Information Systems Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3332669A priority Critical patent/JPH05143505A/en
Publication of JPH05143505A publication Critical patent/JPH05143505A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To prevent system-down state information to data which is transmitted from a terminal to a terminal controller and taking-out and controlling the state information the terminal controller. CONSTITUTION:When the respective terminal 12 exchange communication data with a computer 2 by way of the terminal controller 10, state information is added to communication data 13 which is transmitted to the terminal controller 10 together with information adding a terminal address 14, etc. The state information is adopted as nearly one byte, for example. When the terminal controller 10 receives such data as this from the terminal device 12, communication data 13 is transferred to the computer 2 and state information 15 and the terminal device address 14 are fetched so as to be added in a state control table 20. Thus, state information of the terminal controller is normally updated into new state information even if a passing occurs in state information so that system-down, etc., is prevented.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数の端末装置を接続
した計算機システムにおいて端末装置の状態管理を行う
ための端末制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a terminal control method for managing the status of a terminal device in a computer system in which a plurality of terminal devices are connected.

【0002】[0002]

【従来の技術】計算機とそれを利用するための端末装置
を接続した計算機システムにおいて、計算機と各端末装
置の接続のためのインタフェースは、近年標準化が進ん
でいる。このような汎用インタフェースは、異なる機種
や異なるメーカーの端末同士であっても相互に接続が容
易な特徴を持つ。これには例えば、IEEE-488 Standard4
88-1978等が知られている。一方、端末装置自体のイン
テリジェント化も進み、例えば従来よく知られているプ
リンタ端末装置のように、リスナ機能しか持たないよう
な端末でなく、リスナ/トーカ機能の両機能を持った端
末が要求され増加している。このため、このような端末
装置を制御するためのアプリケーションプログラムも複
雑となり、端末装置のリスナ/トーカ状態をダイナミッ
クに切り換えて使用するものも多くなった。
2. Description of the Related Art In a computer system in which a computer and a terminal device for using the computer are connected, an interface for connecting the computer and each terminal device has been standardized in recent years. Such a general-purpose interface has a feature that terminals of different models and different manufacturers can easily connect to each other. This includes, for example, IEEE-488 Standard4
88-1978 etc. are known. On the other hand, as the terminal device itself has become more intelligent, a terminal having both a listener / talker function is required rather than a terminal having only a listener function, such as a printer terminal device that is well known in the past. It has increased. For this reason, application programs for controlling such terminal devices have become complicated, and many of them dynamically switch the listener / talker state of the terminal device for use.

【0003】図2に従来一般の計算機システムブロック
図を示す。図において、このシステムは、端末制御装置
1を介して、計算機2とバスライン3を接続し、このバ
スラインに複数の端末装置4を接続したものである。端
末制御装置1は、上記IEEE-488インタフェース制御装置
から成り、バスライン3はIEEE-488バスから構成され
る。ここで、上記端末制御装置1は、各端末装置4の状
態を制御するための状態管理テーブル5を備えている。
この状態管理テーブル5には、例えば各端末装置4が現
在トーカとして動作しているか、リスナとして動作して
いるかを示すような状態情報が格納される。計算機2
は、このような端末制御装置1を介して各端末装置4と
各種のデータ交換を行い、必要に応じて各端末装置をト
ーカあるいはリスナに切り替えながら各種の制御を行
う。
FIG. 2 shows a block diagram of a conventional general computer system. In the figure, this system is one in which a computer 2 and a bus line 3 are connected via a terminal control device 1, and a plurality of terminal devices 4 are connected to this bus line. The terminal controller 1 is composed of the IEEE-488 interface controller, and the bus line 3 is composed of an IEEE-488 bus. Here, the terminal control device 1 includes a state management table 5 for controlling the state of each terminal device 4.
The state management table 5 stores, for example, state information indicating whether each terminal device 4 is currently operating as a talker or a listener. Calculator 2
Performs various data exchanges with each terminal device 4 through such a terminal control device 1 and performs various controls while switching each terminal device to a talker or a listener as needed.

【0004】図3に従来の端末制御方法シーケンスチャ
ートを示す。この図を用いて従来の各端末装置の状態情
報制御の手順を説明する。まず、端末制御装置1は、各
端末装置4を管理するための状態管理テーブル5を持
ち、ここで特定の端末装置について、まず、その端末を
リスナにセットする(ステップS1)。同時に端末装置
4に対しリスナ指定を行う(ステップS2)。端末制御
装置1は続いてこの端末装置4に対しデータ送信を行う
(ステップS3)。その後、端末制御装置1は端末装置
4に対しトーカ指定を行う(ステップS4)。端末装置
4はこれを受けて端末制御装置1に対し所定の通信用の
データを送信する(ステップS5)。端末制御装置1は
必要なデータを受信すると、端末装置4のトーカ指定を
解除する(ステップS6)。
FIG. 3 shows a sequence chart of a conventional terminal control method. The procedure of the conventional state information control of each terminal device will be described with reference to this figure. First, the terminal control device 1 has a state management table 5 for managing each terminal device 4, and first, for a specific terminal device, sets the terminal to a listener (step S1). At the same time, the listener is designated for the terminal device 4 (step S2). The terminal control device 1 subsequently transmits data to the terminal device 4 (step S3). After that, the terminal control device 1 designates a talker for the terminal device 4 (step S4). Receiving this, the terminal device 4 transmits predetermined communication data to the terminal control device 1 (step S5). Upon receiving the necessary data, the terminal control device 1 cancels the talker designation of the terminal device 4 (step S6).

【0005】上記のような制御において、端末制御装置
1は状態管理テーブル5を、自己の制御論理に従い、自
己の判断で書き換えて管理する。図4に従来の他の端末
制御方法シーケンスチャートを示す。この方法では、端
末制御装置1の側に状態管理テーブル5を設ける一方、
端末装置4の側にも状態管理テーブル6を設ける。そし
て、端末制御装置1は、状態管理のための状態情報をポ
ーリングにより積極的に端末装置から収集する。即ち、
状態管理テーブル5中の該当する端末をリスナにセット
すると(ステップS1)、端末装置4に対しリスナ指定
を行う(ステップS2)。次に端末制御装置1は状態情
報要求コマンドを端末装置4に対して送信する(ステッ
プS3)。さらに端末装置4に対しトーカ指定を行う
(ステップS4)。端末装置4は上記コマンドを受信す
ると、自己の状態管理テーブル6を参照しその内容を読
み取る(ステップS5)。そして端末制御装置1に対し
状態情報を送信する(ステップS6)。端末制御装置1
はこうして状態情報を受信すると、その内容を状態管理
テーブル5にセットする(ステップS7)。これによっ
て端末装置4の最新の状態を認識できるようになる。こ
のようなポーリングによる状態情報の取り込みは、図に
示すように一定時間Tの周期で繰り返し行われる。従っ
て、上記図3に示した端末制御装置1が、独自に状態管
理テーブル5を作成し管理する場合に比べて、図4に示
した方法は一定時間ごとに最新の状態情報を得るという
違いがある。
In the above control, the terminal control device 1 rewrites the state management table 5 according to its own control logic and manages it by its own judgment. FIG. 4 shows a sequence chart of another conventional terminal control method. In this method, while the state management table 5 is provided on the terminal control device 1 side,
The state management table 6 is also provided on the side of the terminal device 4. Then, the terminal control device 1 positively collects state information for state management from the terminal device by polling. That is,
When the corresponding terminal in the state management table 5 is set as a listener (step S1), the listener is designated for the terminal device 4 (step S2). Next, the terminal control device 1 transmits a status information request command to the terminal device 4 (step S3). Further, a talker is designated for the terminal device 4 (step S4). When the terminal device 4 receives the above command, it refers to its own status management table 6 and reads its contents (step S5). Then, the status information is transmitted to the terminal control device 1 (step S6). Terminal control device 1
When the status information is thus received, the contents are set in the status management table 5 (step S7). As a result, the latest state of the terminal device 4 can be recognized. The acquisition of the state information by such polling is repeatedly performed in a cycle of a constant time T as shown in the figure. Therefore, as compared with the case where the terminal control device 1 shown in FIG. 3 independently creates and manages the state management table 5, the method shown in FIG. 4 has the difference that the latest state information is obtained at regular time intervals. is there.

【0006】[0006]

【発明が解決しようとする課題】ところで、上記のよう
な従来の方法には次のような問題があった。まず、端末
制御装置の側で独自に状態情報を管理する図3に示すよ
うな方式では、例えば端末装置側でハード的な障害が発
生した場合や、ソフトウエアのバグ等により端末制御装
置1で認識している各端末装置4の状態と、現実の各端
末装置の状態とにすれ違いが発生する場合がある。例え
ば複数の端末装置4についてトーカ/リスナ機能のダイ
ナミックな切り替えを行う場合には、その制御プログラ
ムが複雑になりソフトウエアのバグが発生しやすい。従
って、例えば端末制御装置1の側で特定の端末装置4を
トーカに切り換えたつもりがその命令が正常に伝わら
ず、端末装置4がリスナのままになってしまっているよ
うなことも生じる。このような場合、計算機が端末装置
をトーカになったものとして処理を実行すると、その通
信内容やプロトコルによってシステム障害が発生してし
まう場合がある。また、このような障害によるシステム
ダウンが生じても、計算機はどの端末装置の障害が原因
かこれを特定することが困難で、その解決には専門家に
よる多大の時間を要するという難点があった。
However, the above-mentioned conventional methods have the following problems. First, in the system as shown in FIG. 3 in which the terminal control device manages the status information independently, for example, when a hardware failure occurs on the terminal device side or due to a software bug, etc. There may be a difference between the recognized state of each terminal device 4 and the actual state of each terminal device. For example, when the talker / listener function is dynamically switched for a plurality of terminal devices 4, the control program becomes complicated and software bugs are likely to occur. Therefore, for example, although the terminal control device 1 intends to switch the specific terminal device 4 to the talker, the command may not be transmitted normally, and the terminal device 4 may remain as a listener. In such a case, if the computer executes the processing assuming that the terminal device has become a talker, a system failure may occur due to the communication content or protocol. In addition, even if the system goes down due to such a failure, it is difficult for the computer to identify which terminal device is the failure, and it takes a lot of time for a specialist to solve the problem. ..

【0007】一方、図4に示したようなポーリングによ
る状態管理方法では、一定時間ごとに端末装置の状態情
報を新たに認識し直すため、端末装置の障害発生等が容
易な利点がある。しかしながら、この方法では一定時間
ごとに周期的に複数の端末装置の状態情報を読み出すこ
とから、端末装置の接続台数が増加すれば端末制御装置
の負荷が増大する。これによってシステム本来の性能が
低下してしまうという問題がある。さらにアプリケーシ
ョンによってはこのような方式が実現できないような場
合があるという問題もあった。
On the other hand, in the state management method by polling as shown in FIG. 4, since the state information of the terminal device is newly recognized every fixed time, there is an advantage that the occurrence of a failure of the terminal device is easy. However, in this method, since the status information of a plurality of terminal devices is read periodically at regular intervals, the load on the terminal control device increases as the number of connected terminal devices increases. This causes a problem that the original performance of the system is deteriorated. Further, there is a problem that such a system may not be realized depending on the application.

【0008】さらに別の方法としては、不具合が発生し
てから各端末のログデータを収集して解析を行う方法が
ある。しかしながら、この方法では障害発生後にログデ
ータの収集を行うため障害を未然に防ぐためには役立た
ないという問題があった。また、障害内容によっては、
ログデータすら収集できないような状態があり、端末装
置を初期化した後でなければシステムを再起動すること
ができないこともある。これでは正確な情報の収集は不
可能である。本発明は、以上の点に着目してなされたも
ので、端末制御装置の負荷を抑えつつ、各端末装置の正
確な状態管理を行うことができる端末制御方法を提供す
ることを目的とするものである。
As another method, there is a method in which log data of each terminal is collected and analyzed after a failure occurs. However, this method has a problem in that log data is collected after the occurrence of a failure and therefore it is not useful for preventing the failure. Also, depending on the nature of the failure,
In some cases, even log data cannot be collected, and the system may be restarted only after the terminal device is initialized. It is impossible to collect accurate information. The present invention has been made in view of the above points, and an object thereof is to provide a terminal control method capable of performing accurate state management of each terminal device while suppressing the load on the terminal control device. Is.

【0009】[0009]

【課題を解決するための手段】本発明の第1発明は、端
末装置の状態を、通信回線を介して端末制御装置が管理
するものにおいて、前記端末装置は、前記端末制御装置
に対して送信する通信データに、当該端末装置の状態情
報を付加し、前記端末制御装置は、前記端末装置から前
記通信データを受信したとき、前記通信データにより通
信を行うとともに、前記通信データに付加された状態情
報を状態管理のための状態管理テーブルに取り込むこと
を特徴とする端末制御方法に関する。
According to a first aspect of the present invention, in which a state of a terminal device is managed by a terminal control device via a communication line, the terminal device transmits to the terminal control device. State information of the terminal device is added to the communication data, and when the terminal control device receives the communication data from the terminal device, the terminal control device communicates with the communication data and the state added to the communication data. The present invention relates to a terminal control method characterized by incorporating information into a status management table for status management.

【0010】本発明の第2発明は、端末装置の状態を、
通信回線を介して端末制御装置が管理するものにおい
て、端末装置にも端末制御装置にも状態管理のための状
態管理テーブルを設け、各端末装置から送信され、通信
データと共に前記端末制御装置に受信された各端末装置
の状態情報を、既に端末制御装置の状態管理テーブルに
格納された該当する状態情報と比較して、両者が相違す
る場合に、格納済みの状態情報を新たに受信した状態情
報に置き換えることを特徴とする端末制御方法に関す
る。
A second aspect of the present invention is to determine the state of the terminal device,
In a case where the terminal control device manages via a communication line, a state management table for state management is provided in both the terminal device and the terminal control device, transmitted from each terminal device, and received by the terminal control device together with communication data. Compared with the corresponding state information already stored in the state management table of the terminal control device, the state information of each terminal device that has been stored, if the two are different, the state information that has already received the stored state information The present invention relates to a terminal control method characterized in that

【0011】本発明の第3発明は、端末装置の状態を、
通信回線を介して端末制御装置が管理するものにおい
て、前記端末装置は、前記端末制御装置に対して送信す
る通信データに、当該端末装置の状態情報を付加し、端
末制御装置と端末装置との間に一定時間以上通信データ
の交信が無い場合に、前記端末制御装置が端末装置に対
し、状態情報の送信を要求することを特徴とする端末制
御方法に関する。
According to a third aspect of the present invention, the state of the terminal device is
In what is managed by a terminal control device via a communication line, the terminal device adds state information of the terminal device to communication data to be transmitted to the terminal control device, The present invention relates to a terminal control method, wherein the terminal control device requests the terminal device to transmit status information when communication data is not communicated for a predetermined time or more.

【0012】[0012]

【作用】この方法では、端末装置12が通常の通信のた
めの通信データ13に状態情報15を付加して端末制御
装置10に送信する。端末制御装置10はこの状態情報
15を状態管理テーブル20に取り込む。ゆえに、通常
の通信が行われている限り、端末制御装置10は常に端
末装置12に関する最新の情報を収集できる。また、通
信データの交信がない場合のみポーリングによる情報収
集を行う。これにより、端末制御装置の負荷が軽減さ
れ、かつ状態管理のすれ違いが防止される。
In this method, the terminal device 12 adds the status information 15 to the communication data 13 for normal communication and transmits it to the terminal control device 10. The terminal control device 10 takes this state information 15 into the state management table 20. Therefore, as long as normal communication is performed, the terminal control device 10 can always collect the latest information regarding the terminal device 12. Information is collected by polling only when there is no communication of communication data. This reduces the load on the terminal control device and prevents the state management from passing each other.

【0013】[0013]

【実施例】以下、本発明を図の実施例を用いて詳細に説
明する。図1は本発明の方法実施のための計算機システ
ムブロック図である。図のシステムは、端末制御装置1
0を介して計算機2がバスライン11と接続され、この
バスライン11に端末装置12が複数接続された構成と
なっている。この端末制御装置10は、例えば先に図2
において説明したと同様のIEEE-488インタフェース制御
装置から成り、バスライン11はIEEE-488バスから構成
されるものとする。ここで端末制御装置10は、各端末
装置12を制御するための状態管理テーブル20を備え
ている。また、各端末装置12には、それぞれ例えば状
態管理テーブル21が設けられているものとする。上記
状態管理テーブル20には、例えば各端末装置12がそ
れぞれトーカであるかリスナであるかの状態や、その他
各種の装置の制御のための状態が端末装置名と対応付け
て格納されているものとする。各端末装置12に設けら
れた状態管理テーブル21は、それぞれ自己がトーカあ
るいはリスナであるかの状態を始めとする各種の動作状
態を示すパラメータを格納したものとする。
The present invention will be described in detail below with reference to the embodiments shown in the drawings. FIG. 1 is a block diagram of a computer system for implementing the method of the present invention. The system shown in FIG.
The computer 2 is connected to the bus line 11 via 0, and a plurality of terminal devices 12 are connected to the bus line 11. This terminal control device 10 is shown in FIG.
It is assumed that the bus line 11 is composed of the same IEEE-488 interface control device as described in the above, and the bus line 11 is composed of the IEEE-488 bus. Here, the terminal control device 10 includes a state management table 20 for controlling each terminal device 12. Further, each terminal device 12 is provided with a state management table 21, for example. The state management table 20 stores, for example, a state of each terminal device 12 being a talker or a listener, and a state for controlling other various devices in association with a terminal device name. And It is assumed that the state management table 21 provided in each terminal device 12 stores parameters indicating various operating states including the state of whether it is a talker or a listener.

【0014】ここで本発明の方法においては、各端末装
置は端末制御装置10を介して計算機2と通信データの
交信を行う場合において、その端末制御装置10へ向け
て送信する通信データ13に、端末装置アドレス14等
を含む情報とともに、状態情報15を付加する。この状
態情報は、例えば1バイト程度のものとする。端末制御
装置10は、端末装置12からこのようなデータを受信
すると、通信データ13を計算機2に対して転送すると
ともに、状態情報15および端末装置アドレス14を取
り込み状態管理テーブル20に含めるようにする。これ
によって、特別の状態情報収集動作なしに端末装置から
状態情報を得ることができる。
In the method of the present invention, when each terminal device communicates with the computer 2 via the terminal control device 10, the communication data 13 to be transmitted to the terminal control device 10 is The state information 15 is added together with the information including the terminal device address 14 and the like. This status information is, for example, about 1 byte. Upon receiving such data from the terminal device 12, the terminal control device 10 transfers the communication data 13 to the computer 2 and incorporates the state information 15 and the terminal device address 14 into the state management table 20. .. As a result, the status information can be obtained from the terminal device without a special status information collecting operation.

【0015】本発明の方法をさらに具体的に説明する。
図5に本発明の方法によるシーケンスフチャートを示
す。まず、図のように端末制御装置10は、状態管理テ
ーブル20に、例えば端末装置12がリスナであるとい
う状態情報を管理しているものとする。また、端末装置
12は、自己の状態管理テーブル21に、自己が現在リ
スナであるという状態情報を保持しているものとする。
ここで端末装置12が端末制御装置10を介して、図1
に示す計算機2にデータ送信を行いたいと希望する場
合、端末制御装置10に対し送信要求を行う(ステップ
S1)。IEEE-488インタフェースにおいては、このよう
な送信要求があっても直ちにどの端末装置から送信要求
があったかを認識することができない。従って、要求端
末装置を認識する為の処理が実行される(ステップS
2)。これは、具体的にはマルチラインメッセージを全
端末装置に発行し、各端末装置のステータスバイトを端
末制御装置10が読み取るポーリング動作を実行するこ
とによる。即ち、端末制御装置10は、各端末装置に順
番にトーカ指定を行い、ステータスバイトの送信を要求
する。このようにしてステータスバイト中の要求フラグ
がオンになっている端末装置が認識されると、端末制御
装置10はポーリング動作を終了する。
The method of the present invention will be described more specifically.
FIG. 5 shows a sequence chart according to the method of the present invention. First, as shown in the figure, it is assumed that the terminal control device 10 manages, in the state management table 20, state information indicating that the terminal device 12 is a listener, for example. Further, it is assumed that the terminal device 12 holds in its own status management table 21 the status information that it is currently a listener.
Here, the terminal device 12 is connected via the terminal control device 10 to FIG.
When it is desired to perform data transmission to the computer 2 shown in (1), a transmission request is made to the terminal control device 10 (step S1). In the IEEE-488 interface, it is not possible to immediately recognize from which terminal device the transmission request is made even if such a transmission request is made. Therefore, the process for recognizing the request terminal device is executed (step S
2). Specifically, this is because a multi-line message is issued to all the terminal devices, and a polling operation in which the terminal controller 10 reads the status byte of each terminal device is executed. That is, the terminal control device 10 sequentially specifies a talker to each terminal device and requests the transmission of the status byte. In this way, when the terminal device in which the request flag in the status byte is turned on is recognized, the terminal control device 10 ends the polling operation.

【0016】そして、該当する端末装置に対し再びトー
カ指定を行う(ステップS3)。これに対し端末装置1
2は、端末制御装置10に向けて通信データを送信する
が、これに先だって状態管理テーブル20から自己の状
態情報を読み取る(ステップS4)。そして、通信デー
タと状態情報とを端末制御装置10に向け送信する(ス
テップS5)。端末制御装置10は、この状態情報を受
け取ると状態管理テーブル20に対しその内容を転記し
たり、あるいは両者の比較を行ってチェックをする。そ
の後、端末制御装置10は、端末装置12のトーカ状態
を解除する(ステップS7)。これによって、一定の通
信データ交信が行われている端末装置12については、
最新の状態情報収集が可能となる。
Then, the talker is designated again for the corresponding terminal device (step S3). On the other hand, the terminal device 1
2 transmits communication data to the terminal control device 10, but reads its own state information from the state management table 20 prior to this (step S4). Then, the communication data and the state information are transmitted to the terminal control device 10 (step S5). When the terminal control device 10 receives this status information, the terminal control device 10 transcribes the contents in the status management table 20 or compares the two and checks them. After that, the terminal control device 10 releases the talker state of the terminal device 12 (step S7). As a result, regarding the terminal device 12 in which constant communication data communication is performed,
It becomes possible to collect the latest status information.

【0017】一方、一定時間以上トーカにならない端末
装置が存在する場合には、端末制御装置10はその端末
装置を選択し、トーカ指定を行う(ステップS8)。そ
して端末装置12は、その段階で状態管理テーブル21
の内容を読み取り(ステップS9)、通信データと状態
情報を端末制御装置10に向け送信する(ステップS1
0)。こうして端末制御装置10は強制的に状態情報を
収集し、状態管理テーブル20と照合してそのチェック
を行う。ここで何れかの端末装置に障害が発生した場合
の動作を説明する。
On the other hand, if there is a terminal device that does not become a talker for a certain period of time or more, the terminal control device 10 selects the terminal device and designates a talker (step S8). Then, the terminal device 12 has the state management table 21 at that stage.
Is read (step S9), and communication data and status information are sent to the terminal control device 10 (step S1).
0). In this way, the terminal control device 10 forcibly collects the state information, collates it with the state management table 20, and checks it. Here, the operation when a failure occurs in any of the terminal devices will be described.

【0018】図6は本発明の別の方法によるシーケンス
フローチャートを示す。図において、ステップS1から
ステップS7までの動作は、既に図5において説明した
と全く同様である。従って重複する説明は省略する。こ
こで図に示すように、端末装置12において何らかの障
害が発生し、その状態管理テーブル21中で現状態がア
ンリスンであると変化したものとする。この場合、端末
制御装置10が端末装置12に対しトーカ指定を行うと
(ステップS8)、端末装置12は状態管理テーブル2
1の内容を読み取り(ステップS9)、通信データと状
態情報の送信を行う(ステップS10)。端末制御装置
10はこの状態情報を受け取り、ステップS11におい
て状態管理テーブル20との比較チェックを行う。この
場合に比較エラーが生じると、端末制御装置10は、状
態管理テーブルの内容を新たに受信した状態情報に置き
換えてセットするとともに(ステップS12)、その端
末装置の障害を認識し各種の処理を実行する。
FIG. 6 shows a sequence flowchart according to another method of the present invention. In the figure, the operation from step S1 to step S7 is exactly the same as that already described in FIG. Therefore, redundant description will be omitted. Here, as shown in the figure, it is assumed that some failure has occurred in the terminal device 12 and that the current state in the state management table 21 has changed to unlisten. In this case, when the terminal control device 10 designates a talker for the terminal device 12 (step S8), the terminal device 12 causes the state management table 2
The contents of No. 1 are read (step S9), and communication data and status information are transmitted (step S10). The terminal control device 10 receives this status information and checks the comparison with the status management table 20 in step S11. When a comparison error occurs in this case, the terminal control device 10 replaces the contents of the status management table with the newly received status information and sets it (step S12), recognizes a failure of the terminal device, and performs various processes. Run.

【0019】例えば、トーカ/リスナの状態切り替えが
正常に伝わらなかったような場合については、例えば再
度トーカ指定を強制的に発する。これによって端末側は
端末制御装置の管理し得る状態に復帰し、正常なシステ
ムの運用を続行することが可能となる。また、このよう
な状態情報のすれ違いが発生した場合、該当する端末の
詳細な状態情報を調べ、さらに必要なログデータを収集
し解析することによって、システムダウンに至る前に早
期に障害を除去することもできる。本発明は以上の実施
例に限定されない。本発明の実施例においては、状態管
理テーブルを各端末装置ごとに設け、それぞれ、その状
態情報を格納したテーブル状の構成のデータであるもの
として説明したが、各端末装置の状態を認識できるよう
な内容のものであればどのような形式のデータであって
も差し支えない。また、通信データに付加する状態情報
は、その種類や量等システムの構成やその必要に応じて
自由に選定して差し支えない。また、上記バスライン
は、各種のデータ交信のための各種の通信回線により構
成されて差し支えない。
For example, when the talker / listener state switching is not normally transmitted, for example, the talker designation is forcibly issued again. As a result, the terminal side returns to the state that can be managed by the terminal control device, and normal system operation can be continued. In addition, when such status information has passed, detailed status information of the corresponding terminal is checked, and necessary log data is collected and analyzed to eliminate the failure early before the system goes down. You can also The present invention is not limited to the above embodiments. In the embodiment of the present invention, the state management table is provided for each terminal device, and it is described as the data having the table-like configuration in which the state information is stored. However, the state of each terminal device can be recognized. Any format of data can be used as long as it has the following contents. Further, the state information added to the communication data may be freely selected according to the system configuration such as the type and amount and the need thereof. The bus line may be composed of various communication lines for various data communication.

【0020】[0020]

【発明の効果】以上説明した本発明の端末制御方法によ
れば、端末装置から端末制御装置に対して送信するデー
タに状態情報を付加し、端末制御装置がその状態情報を
取り出して管理するようにしたので、端末装置と端末制
御装置の状態情報にすれ違いが発生したとしても、端末
制御装置の状態情報を常に新たな状態情報に更新するこ
とができるため、システムダウン等を未然に防止するこ
とができる。また、端末制御装置は特別に状態情報を収
集するためのポーリングを全端末装置に対し行う必要が
ないため、端末制御装置の負担が軽減され、システムの
性能低下を招くことがない。
According to the terminal control method of the present invention described above, the state information is added to the data transmitted from the terminal device to the terminal control device, and the terminal control device extracts and manages the state information. Therefore, even if the status information of the terminal device and the terminal control device pass each other, the status information of the terminal control device can always be updated to new status information, so system down etc. can be prevented beforehand. You can Further, since the terminal control device does not need to perform polling for collecting the state information specially for all the terminal devices, the load on the terminal control device is reduced and the system performance is not deteriorated.

【0021】また、一定時間以上通信データの交信がな
い端末装置に対しては、強制的に状態情報の収集を行う
処理をするので、全ての端末装置の最新の状態管理を行
うことができる。また、システム運用中に一定間隔で各
端末装置の状態をチェックできるため、端末装置におい
て何らかの障害が発生している場合に、複雑な障害に至
る前にこれを検出できる。従って、障害解析が容易にな
り、システム復旧が迅速になるという効果もある。ま
た、新たなシステムを組み立て、その性能試験を行う際
に、ソフトウエアのバグを早期に発見できるため、シス
テムを本格稼動させるまでの期間を大幅に短縮できる。
また、システムに新たに端末装置を増設したような場
合、その端末装置に対し自動的な状態チェックが行われ
るため、安定動作の確認が容易に確実に行われる。
Further, since the terminal device for which communication data has not been communicated for a certain period of time is forced to collect the state information, the latest state management of all the terminal devices can be performed. In addition, since the state of each terminal device can be checked at regular intervals during system operation, if any failure occurs in the terminal device, this can be detected before a complicated failure occurs. Therefore, there is also an effect that the failure analysis becomes easy and the system restoration becomes quick. In addition, when a new system is assembled and its performance is tested, software bugs can be found early, so the period until the system is put into full-scale operation can be greatly shortened.
In addition, when a terminal device is newly added to the system, an automatic state check is performed on the terminal device, so that stable operation can be easily and surely confirmed.

【0022】さらに、複雑な制御状態やタイミングにお
いてのみ発生するような潜在的なソフトウエアのバグに
対し、本発明の方法では自動的にホスト側の制御情報を
書き換えて復旧することができるので、システムダウン
に至らない信頼性の高いシステムの構築が可能になる。
また、このような状態管理テーブルの自動書き換えによ
る自動復旧を行えば、システムが大規模になり、新たな
端末装置を導入した場合においても、システムの信頼性
が落ちることがなく、システムの拡張を安心して行うこ
とができる。また、システムの運用を継続したまま端末
装置の状態情報を収集することができ、その端末の制御
情報を解析することによって、さらに品質の高い制御ソ
フトウエアを開発することが可能になるという利点もあ
る。
Further, with respect to a potential software bug that occurs only in a complicated control state or timing, the control information of the host side can be automatically rewritten and restored by the method of the present invention. It is possible to build a highly reliable system that does not lead to system down.
In addition, if automatic restoration is performed by automatically rewriting such a state management table, the system becomes large in scale, and even if a new terminal device is introduced, the reliability of the system does not deteriorate and the system can be expanded. You can do it with confidence. In addition, the status information of the terminal device can be collected while continuing the system operation, and by analyzing the control information of the terminal, it is possible to develop higher quality control software. is there.

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

【図1】本発明の方法実施のための計算機システムブロ
ック図である。
FIG. 1 is a computer system block diagram for implementing the method of the present invention.

【図2】従来一般の計算機システムブロック図である。FIG. 2 is a block diagram of a conventional general computer system.

【図3】従来の端末制御方法シーケンスチャートであ
る。
FIG. 3 is a sequence chart of a conventional terminal control method.

【図4】従来の他の端末制御方法シーケンスチャートで
ある。
FIG. 4 is a sequence chart of another conventional terminal control method.

【図5】本発明の方法によるシーケンスチャートであ
る。
FIG. 5 is a sequence chart according to the method of the present invention.

【図6】本発明の別の方法によるシーケンスフローチャ
ートである。
FIG. 6 is a sequence flowchart according to another method of the present invention.

【符号の説明】[Explanation of symbols]

2 計算機 10 端末制御装置 11 バスライン 12 端末装置 13 通信データ 15 状態情報 20、21 状態管理テーブル 2 computer 10 terminal control device 11 bus line 12 terminal device 13 communication data 15 state information 20, 21 state management table

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 端末装置の状態を、通信回線を介して端
末制御装置が管理するものにおいて、 前記端末装置は、 前記端末制御装置に対して送信する通信データに、当該
端末装置の状態情報を付加し、 前記端末制御装置は、 前記端末装置から前記通信データを受信したとき、前記
通信データにより通信を行うとともに、前記通信データ
に付加された状態情報を状態管理のための状態管理テー
ブルに取り込むことを特徴とする端末制御方法。
1. The terminal control device manages the state of the terminal device via a communication line, wherein the terminal device includes state information of the terminal device in communication data transmitted to the terminal control device. In addition, when the terminal control device receives the communication data from the terminal device, the terminal control device communicates with the communication data and loads the state information added to the communication data into a state management table for state management. A terminal control method characterized by the above.
【請求項2】 端末装置の状態を、通信回線を介して端
末制御装置が管理するものにおいて、 端末装置にも端末制御装置にも状態管理のための状態管
理テーブルを設け、 各端末装置から送信され、通信データと共に前記端末制
御装置に受信された各端末装置の状態情報を、 既に端末制御装置の状態管理テーブルに格納された該当
する状態情報と比較して、 両者が相違する場合に、格納済みの状態情報を新たに受
信した状態情報に置き換えることを特徴とする端末制御
方法。
2. A terminal control device manages the state of a terminal device via a communication line, wherein both the terminal device and the terminal control device are provided with a state management table for state management and transmitted from each terminal device. The status information of each terminal device received by the terminal control device together with the communication data is compared with the corresponding status information already stored in the status management table of the terminal control device. A terminal control method characterized by replacing the already-received status information with newly received status information.
【請求項3】 端末装置の状態を、通信回線を介して端
末制御装置が管理するものにおいて、 前記端末装置は、 前記端末制御装置に対して送信する通信データに、当該
端末装置の状態情報を付加し、 端末制御装置と端末装置との間に一定時間以上通信デー
タの交信が無い場合に、 前記端末制御装置が端末装置に対し、状態情報の送信を
要求することを特徴とする端末制御方法。
3. The terminal control device manages the state of the terminal device via a communication line, wherein the terminal device includes state information of the terminal device in communication data transmitted to the terminal control device. In addition, when there is no communication data communication between the terminal control device and the terminal device for a certain period of time or more, the terminal control device requests the terminal device to transmit status information, ..
JP3332669A 1991-11-21 1991-11-21 Method for controlling terminal Pending JPH05143505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3332669A JPH05143505A (en) 1991-11-21 1991-11-21 Method for controlling terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3332669A JPH05143505A (en) 1991-11-21 1991-11-21 Method for controlling terminal

Publications (1)

Publication Number Publication Date
JPH05143505A true JPH05143505A (en) 1993-06-11

Family

ID=18257555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3332669A Pending JPH05143505A (en) 1991-11-21 1991-11-21 Method for controlling terminal

Country Status (1)

Country Link
JP (1) JPH05143505A (en)

Similar Documents

Publication Publication Date Title
EP0230029B1 (en) Method and apparatus for fault recovery in a distributed processing system
US5121486A (en) Network control system for dynamically switching a logical connection between an identified terminal device and an indicated processing unit
CN109361562B (en) Automatic testing method based on associated network equipment access
US4684885A (en) Arrangement for on-line diagnostic testing of an off-line standby processor in a duplicated processor configuration
US4979108A (en) Task synchronization arrangement and method for remote duplex processors
KR20010072379A (en) Fault tolerant computer system
US6651093B1 (en) Dynamic virtual local area network connection process
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN116521411B (en) Method, device and medium for detecting program error and resetting embedded device
CN109885420B (en) PCIe link fault analysis method, BMC and storage medium
JP3730545B2 (en) Service control application execution method and system
US20030154288A1 (en) Server-client system and data transfer method used in the same system
JPH05143505A (en) Method for controlling terminal
JP2908442B1 (en) Trace information collection method
JPH0962626A (en) On-line testing method of decentralized processing system
JPH06510895A (en) Fault Tolerant Communication System Controller
US6760863B1 (en) CPU unit and run alternative control method of programmable controller
CN115086579B (en) Video matrix redundancy backup method and device, terminal equipment and storage medium
CN110908963B (en) DF file loading method of airborne display control library
CN116260673A (en) RT management method for mutual hot backup in 1553B bus network
JPS62135042A (en) Automatic recognition system for equipment address in data communication
CN114048141A (en) Automated testing method, system, electronic device and computer readable storage medium
JPH0697990A (en) Communication line monitoring device
CN113824620A (en) Partition switching method, device, vehicle and storage medium