JPS61127248A - Network system equipped with communication circuit disconnecting location detect function - Google Patents
Network system equipped with communication circuit disconnecting location detect functionInfo
- Publication number
- JPS61127248A JPS61127248A JP59249174A JP24917484A JPS61127248A JP S61127248 A JPS61127248 A JP S61127248A JP 59249174 A JP59249174 A JP 59249174A JP 24917484 A JP24917484 A JP 24917484A JP S61127248 A JPS61127248 A JP S61127248A
- Authority
- JP
- Japan
- Prior art keywords
- terminal computer
- communication line
- computer
- terminal
- line disconnection
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 75
- 238000000034 method Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 5
- 230000003287 optical effect Effects 0.000 description 15
- 230000005540 biological transmission Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 101100439236 Caenorhabditis elegans cfi-1 gene Proteins 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の技術分野]
この発明はホストコンピュータに複数台の端末コンピュ
ータを1本の通信回線を介してループ状に接続し、ホス
トコンピュータで各端末コンピュータを制御する通信回
線断線箇所検出機能付きネットワークシステムに関する
。[Detailed Description of the Invention] [Technical Field of the Invention] This invention relates to a communication line in which a plurality of terminal computers are connected to a host computer in a loop through one communication line, and the host computer controls each terminal computer. Related to a network system with a disconnection point detection function.
[発明の技術的背景とその問題点]
従来、この種のコンピュータシステムにおいてはホスト
コンピュータから出力される情報が各端末コンピュータ
を介してホストコンピュータに入力されるということを
利用してホストコンピュータから出力された情報がその
ホストコンピュータに戻ってこなかったとき通信回線が
断線していると判断するものがあった。しかし、このも
のでは通信回線の断線を検出できてもその箇所までは検
出できない問題があった。[Technical background of the invention and its problems] Conventionally, in this type of computer system, information output from the host computer is inputted to the host computer via each terminal computer. When the information received was not returned to the host computer, it was determined that the communication line was disconnected. However, this method has a problem in that even if it can detect a disconnection in the communication line, it cannot detect the location.
このため、本発明者等は先に、各端末コンピュータに信
号の入力に応動してリセットされカウント動作を開始す
る受信待ち時間カウント用のタイマを設け、各端末コン
ピュータにおいてタイマがタイムアツプすると通信回線
断線信号をアドレス番号とともに出力し、ホストコンピ
ュータがその通信回線断線信号とアドレス番号とを受信
することによって通信回線の断線箇所を検出できるよう
にしたものを考えた。(特願昭58−159251号明
細書及び図面を参照)
ところでこのようなコンピュータシステムにおいて各端
末コンピュータの間に新たに別の端末コンピュータを追
加するような場合、その追加した端末コンピュータより
も後の端末コンピュータに設定されている受信待ち時間
を全て設定し直さなければならない問題が発生する。す
なわち、これは各端末コンピュータが信号入力が受信待
ち時間来なかったときには通信回線断線信号を出力する
ようになっており、しかもその信号を出力するタイミン
グについては端末コンピュータの順番に従って受信待ち
時間を一定時間ずつ増やしているので、間に別の端末コ
ンピュータが追加されるとその追加されたコンピュータ
の受信待ち時間をそのコンピュータより1つ後になる既
存の端末コンピュータの受信待ち時間に設定するととも
に、それにより後の既存の端末コンピュータの受信待ち
時間を一定時間ずつずらせる必要があるからである。For this reason, the present inventors first installed a timer for counting reception waiting time that is reset and starts counting in response to the input of a signal in each terminal computer, and when the timer times up in each terminal computer, the communication line is disconnected. We have considered a system in which a signal is output together with an address number, and the host computer receives the communication line disconnection signal and the address number to detect a disconnection point in the communication line. (Refer to the specification and drawings of Japanese Patent Application No. 58-159251.) By the way, in such a computer system, when a new terminal computer is added between each terminal computer, A problem arises in which all reception waiting times set on the terminal computer must be reset. In other words, each terminal computer outputs a communication line disconnection signal when a signal input does not arrive within the reception waiting time, and the timing at which this signal is output is fixed according to the order of the terminal computers. Since the time is increased in increments, when another terminal computer is added in between, the reception wait time of that added computer is set to the reception wait time of the existing terminal computer that is one after that computer, and This is because it is necessary to shift the reception waiting time of the subsequent existing terminal computers by a fixed amount of time.
[発明の目的]
この発明はこのような問題を解決するために為されたも
ので、端末コンピュータの追加があってもそれによって
受信待ち時間を設定し直すような面倒がなく、しかも通
信回線の断線箇所を確実に検出することができる通信回
線断線箇所検出機能付きネットワークシステムを提供す
ることを目的とする。[Purpose of the Invention] This invention was made to solve these problems. Even if a terminal computer is added, there is no need to reset the reception waiting time, and the communication line It is an object of the present invention to provide a network system with a communication line disconnection point detection function that can reliably detect disconnection points.
[発明の概要]
この発明はホストコンピュータに複数台の端末コンピュ
ータを1本の通信回線を介してループ状に接続するとと
もに端末コンピュータにそれぞれアドレスを設定し、ホ
ストコンピュータからのアドレス情報により端末コンピ
ュータを指定し、その指定された端末コンピュータとホ
ストコンピュータとが情報を入出力するネットワークシ
ステムにおいて、
各端末コンピュータは、
予め設定された優先順位に基づいて増加する受信待ち時
間の設定手段と、
その設定手段にて設定された受信待ち時間内に信号の入
力が無かったときに通信回線断線信号を自己のアドレス
番号とともに出力する手段を設け、ホストコンピュータ
は、
(a)各端末コンピュータから通信回線断線信号とアド
レス番号を受信するとその信号を出力した端末コンピュ
ータの1つ前の端末コンピュータとの優先順位を比較す
る手段と、
(b)比較によりその1つ前の端末コンピュータの優先
順位が上のときにはその1つ前の端末コンピュータと通
信回線断線信号を出力した端末コンピュータとの間の通
信回線が断線されていると判断する手段と、
(C)また比較により1つ前の端末コンピュータの優先
順位が下のときにはその1つ前の端末コンピュータに設
定されている受信待ち時間と通信回線断線信号を出力し
た端末コンピュータに設定されている受信待ち時間との
差の時間内に通信回線断線信号を出力した端末コンピュ
ータよりも前の端末コンピュータから通信回線断線信号
の出力があるか否かをチェックする手段と、
(d)この手段によるチェックにより通信回線断線信号
の出力が無い場合には1つ前の端末コンピュータと通信
回線断線信号を出力した端末コンピュータとの間の通信
回線が断線されていると判断す手段と、
(e)上記手段によるチェックにより通信回線断線信号
の出力があった場合にはその通信回線断線信号を出力し
た端末コンピュータとその1つ前の端末コンピュ−タと
の優先順位を比較する手・段とを設け、
その比較手段による比較処理の後上記(b)〜(lと同
様の処理をくり返すことによって通信回線の断線箇所を
検出するものである。[Summary of the Invention] This invention connects a plurality of terminal computers to a host computer in a loop via one communication line, sets an address for each terminal computer, and connects the terminal computers using address information from the host computer. In a network system in which the designated terminal computer and the host computer input and output information, each terminal computer has: a means for setting a reception waiting time that increases based on a preset priority; and a means for setting the reception waiting time. (a) The host computer is equipped with means for outputting a communication line disconnection signal together with its own address number when no signal is input within the reception waiting time set in . means for comparing the priority order of the terminal computer that outputs the signal with that of the terminal computer immediately preceding the terminal computer that has received the address number; (C) means for determining that the communication line between the previous terminal computer and the terminal computer that outputs the communication line disconnection signal is disconnected; In some cases, the terminal computer that outputs the communication line disconnection signal within the time difference between the reception wait time set for the previous terminal computer and the reception wait time set for the terminal computer that outputted the communication line disconnection signal. (d) means for checking whether or not a communication line disconnection signal is output from the previous terminal computer; means for determining that the communication line between the terminal computer and the terminal computer that outputs the communication line disconnection signal is disconnected; and (e) if the communication line disconnection signal is output as a result of the check by the above means, the communication line disconnection; A means/means for comparing the priorities of the terminal computer that outputs the signal and the terminal computer immediately before it is provided, and after the comparison process by the comparing means, the same processes as in (b) to (l) above are performed. By repeating this process, the location of a disconnection in the communication line is detected.
[発明の実施例] 以下、この発明の実施例を図面を参照して説明する。[Embodiments of the invention] Embodiments of the present invention will be described below with reference to the drawings.
第1図に示すようにホストコンピュータ1にループ状の
1本の通信回線2を介して例えば15台の端末コンピュ
ータ31.32.33・・・313.3工4.3t s
がシリアルに接続されている。前記ホストコンピュータ
1にはCPLJ (中央処理装置)11、インターフェ
ース12、光伝送リンク光送信モジュール13、光伝送
リンク光受信モジュール14が設けられている。また前
記各端末コンピュータ31〜3rsにはそれぞれCPU
31、インターフェース32、光伝送リンク光送信モジ
ュール33、光伝送リンク光受信モジュール34及びタ
イムカウンタ35が設けられている。As shown in FIG. 1, a host computer 1 is connected to, for example, 15 terminal computers 31, 32, 33, .
is connected serially. The host computer 1 is provided with a central processing unit (CPLJ) 11, an interface 12, an optical transmission link optical transmission module 13, and an optical transmission link optical reception module 14. In addition, each of the terminal computers 31 to 3rs has a CPU.
31, an interface 32, an optical transmission link optical transmission module 33, an optical transmission link optical reception module 34, and a time counter 35 are provided.
前記ホストコンピュータ1はCPtJllから出力され
るパラレルな情報をインターフェース12でシリアルな
情報に変換し、前記光送信モジュール13を介して通信
回線2へ出力し、前記端末コンピュータ31の光受信モ
ジュール34に供給するとともに、端末コンピュータ3
15の光送信モジュール33から通信回線2に出力され
たシリアルな情報を、光受信モジュール14を介してイ
ンターフェース12でパラレルな情報に変換し、CPU
11に取込んでいる。The host computer 1 converts the parallel information output from the CPtJll into serial information using the interface 12, outputs it to the communication line 2 via the optical transmission module 13, and supplies it to the optical reception module 34 of the terminal computer 31. At the same time, the terminal computer 3
The serial information output from the optical transmitting module 33 of 15 to the communication line 2 is converted into parallel information by the interface 12 via the optical receiving module 14, and then sent to the CPU.
11.
前記端末コンピュータ31では、通信回線2を流れてき
た情報をそのまま次段の端末コンピュータ32へ流す場
合と、該当するアドレス情報とともにデータ送、信命令
を実行した時にホストコンピュータ1に端末コンピュー
タ31の情報を送信する場合との両方に対応するため、
次段の端末コンピュータ32へ流れてきた信号をハード
的にそのまま転送する信号と、該当するアドレス情報と
ともにデータ送信命令の実行によりホストコンピュータ
1へ送信する信号との論理和を取る構成となっており、
この論理和信号を光送信モジュール33を介して次段の
端末コンピュータ32の光受信モジュール34に供給し
ている。以下、各端末コンピュータ32〜315同様に
ホストコンピュータ1からの情報を処理している。前記
各端末コンピュータj1〜315はそれぞれCIH,C
2H1C3H・・・CFI−1という16進のアドレス
番号が設定され、そのアドレス番号が前記ホストコンピ
ュータ1に通信回線の断線信号を送出する優先順位を示
す(1)〜(15)の番号とともに設定されている。す
なわち、端末コンピュータ31は優先順位が(1)番で
アドレス番号がCIH1端末コンピュータ32は優先順
位が(2)番でアドレス番号が02H,以下同様にして
優先順位とアドレス番号が設定され、最後の端末コンピ
ュータ315は優先順位が(15)番でアドレス番号が
CF)−1に設定されている。また、前記各端末コンピ
ュータ31〜315にはそれぞれ21単位時間から35
単位時間までの受信待ち時間が例えば1単位時間ずつず
らせて設定されている。すなわち、端末コンピュータ3
1が21単位時間、端末コンピュータ32が22単位時
間、端末コンピュータ33が23単位時間、以下同様に
1単位時間ずつ増加し最後の端末コンピュータ1sが3
5単位時間に設定されている。尚、1単位時間はコンピ
ュータの処理能力によって決り、数ミリ秒から数十ミリ
秒のオーダである。The terminal computer 31 transmits information on the terminal computer 31 to the host computer 1 when transmitting the information flowing through the communication line 2 to the next stage terminal computer 32 as it is, and when executing a data transmission command with the corresponding address information. To accommodate both,
It is configured to logically OR the signal that directly transfers the signal flowing to the next stage terminal computer 32 in terms of hardware, and the signal that is sent to the host computer 1 by executing the data transmission command together with the corresponding address information. ,
This OR signal is supplied via the optical transmitting module 33 to the optical receiving module 34 of the terminal computer 32 at the next stage. Thereafter, information from the host computer 1 is processed in the same way as each terminal computer 32 to 315. The terminal computers j1 to j315 are CIH and C, respectively.
A hexadecimal address number 2H1C3H...CFI-1 is set, and this address number is set together with numbers (1) to (15) indicating the priority order for sending a communication line disconnection signal to the host computer 1. ing. That is, the terminal computer 31 has a priority of (1) and the address number is CIH, the terminal computer 32 has a priority of (2) and the address number is 02H, and the following priority and address numbers are set in the same way, and the last The terminal computer 315 has priority number (15) and address number CF)-1. In addition, each of the terminal computers 31 to 315 is provided with 21 to 35 units of time, respectively.
For example, the reception waiting time up to a unit time is set to be shifted by one unit time. That is, the terminal computer 3
1 is 21 unit time, terminal computer 32 is 22 unit time, terminal computer 33 is 23 unit time, and so on, increasing by 1 unit time, and the last terminal computer 1s is 3 unit time.
It is set to 5 units of time. Note that one unit time is determined by the processing power of the computer, and is on the order of several milliseconds to several tens of milliseconds.
前記各端末コンピュータ31〜315のCPU31は第
2図に示すように信号入力のない時間をタイムカウンタ
35でカウントし、そのカウント時間がそれぞれに設定
されている受信待ち時間に達すると通信回線断線信号で
ある03H信号とアドレス番号とを出力するようにして
いる。尚、カウント時間が受信待ち時間になる前に信号
の入力があるとタイムカウンタ35をリセットして再ス
タートする。As shown in FIG. 2, the CPU 31 of each of the terminal computers 31 to 315 counts the time with no signal input using a time counter 35, and when the counted time reaches the reception waiting time set for each, a communication line disconnection signal is issued. The 03H signal and address number are output. Note that if a signal is input before the count time reaches the reception waiting time, the time counter 35 is reset and restarted.
前記ホストコンピュータ1のCPU11は各端末コンピ
ュータ31〜315に対してアドレス情報CIH−CF
Hを例えば2単位時間間隔で順次出力している。そして
前記CPL111のもつ各種機能によって第3図に示す
処理を行なっている。The CPU 11 of the host computer 1 sends address information CIH-CF to each terminal computer 31 to 315.
H is output sequentially at, for example, two unit time intervals. The various functions of the CPL 111 perform the processing shown in FIG.
すなわち、端末コンピュータに指定アドレスを送信し、
かつその送信したアドレスの受信処理を行なう。その結
果受信アドレスと送信アドレスが一致しているか否かを
チェックする。一致していれば次に送信するアドレスを
指定して再び端末コンピュータへ送信する。また、不一
致であれば通信回線断線信号である03H信号の受信が
あるか否かをチェックする。そしてこの通信回線断線信
号の受信があればその通信回線断線信号を送信した端末
コンピュータの優先順位を内部メモリに格納されている
テーブルより探し出す。次に該当する端末コンピュータ
の優先順位と1つ前の端末コンピュータの優先順位を比
較し、1つ前の端末コンピュータの優先順位が上である
ときには該当する端末コンピュータと1つ前の端末コン
ピュータとの間の通信回線が断線していると判断する。That is, send the specified address to the terminal computer,
And performs reception processing of the transmitted address. As a result, it is checked whether the receiving address and the sending address match. If they match, specify the next address to send to and send again to the terminal computer. Further, if there is a mismatch, it is checked whether or not a 03H signal, which is a communication line disconnection signal, is received. If this communication line disconnection signal is received, the priority order of the terminal computer that sent the communication line disconnection signal is searched from a table stored in the internal memory. Next, compare the priority of the corresponding terminal computer with the priority of the previous terminal computer, and if the priority of the previous terminal computer is higher, the priority of the corresponding terminal computer and the previous terminal computer are compared. It is determined that the communication line between the two is disconnected.
また、1つ前の端末フンピユータの優先順位が下である
ときには通信回線断線信号を送信した該当端末コンピュ
ータの受信待ち時間と1つ前の端末コンピュータの受信
待ち時間との差を求め、その差をタイマーとしてメモリ
にセットする。そしてそのタイマーがカウントアツプす
る前に1つ前の端末コンピュータから通信回線断線信号
の受・信があると、再度前述した通信回線断線信号を送
信した端末コンピュータの優先順位を内部メモリに格納
されているテーブルより探し出す処理を行ない、続いて
該当する端末コンピュータの優先順位と1つ前の端末コ
ンピュータの優先順位を比較する処理を行なう。そして
このときも、1つ前の端末コンピュータの優先順位が上
であるときには該当する端末コンピュータと1つ前の端
末コンピュータとの間の通信回線が断線して(゛すると
判断し、また、1つ前の端末コンピュータの優先順位が
下であるときには通信回線断線信号を送信した該当端末
コンピュータの受信待ち時間と1つ前の端末コンピュー
タの受信待ち時間との差を求め、その差をタイマーとし
てメモリにセットする処理を行なう。すなわち、1つ前
の端末コンピュータの優先順位が下であるときにはその
端末コンピュータからの通信回線断線信号の発生をセッ
トされるタイマ一時間内でチェックし、1つ前の端末コ
ンピュータの優先順位が上になるまでくり返し行なうこ
とになる。In addition, when the priority of the previous terminal computer is lower, the difference between the reception waiting time of the corresponding terminal computer that sent the communication line disconnection signal and the reception waiting time of the previous terminal computer is calculated, and the difference is calculated. Set in memory as a timer. If a communication line disconnection signal is received from the previous terminal computer before the timer counts up, the priority order of the terminal computer that sent the communication line disconnection signal is stored in the internal memory again. Then, processing is performed to compare the priority order of the corresponding terminal computer with the priority order of the previous terminal computer. At this time as well, if the priority of the previous terminal computer is higher, it is determined that the communication line between the corresponding terminal computer and the previous terminal computer is disconnected. When the priority of the previous terminal computer is lower, the difference between the reception waiting time of the corresponding terminal computer that sent the communication line disconnection signal and the reception waiting time of the previous terminal computer is calculated, and the difference is stored in memory as a timer. In other words, when the priority of the previous terminal computer is lower, the generation of a communication line disconnection signal from that terminal computer is checked within one hour of the set timer, and the priority of the previous terminal computer is set. This process will be repeated until the computer has the highest priority.
また、1つ前の端末コンピュータの優先順位が下である
ときにその端末コンピュータからの通信回線断線信号が
セットされたタイマ一時間内に発生しない合いには該当
する端末コンピュータと1つ前の端末コンピュータとの
間の通信回線が断線していると判断する。In addition, if the priority of the previous terminal computer is lower and the communication line disconnection signal from that terminal computer does not occur within one hour of the set timer, the corresponding terminal computer and the previous terminal It is determined that the communication line with the computer is disconnected.
従って、例えばホストコンピュータ1がらアドレス情報
C1Hを出力すると端末コンピュータ31がそれを受信
してACKコードと所定の情報を出力する。そして前の
アドレス情報C1Hを出力してから2単位時間後にホス
トコンピュータ1はアドレス情報C2Hを出力する。し
かして端末コンピュータ32は第4図の(a)に示すよ
うなデータを光受信モジュール34に入力する。そして
端末コンピュータ32は第4図の(b)に示すようにA
CKコードと情報とを出力する。こうして以下、ホスト
コンピュータ1は2単位時間置きにアドレス情報C3H
−CFHを出力し、各端末コンピュータ33〜3rsは
該当するアドレス情報を受信してACKコードと所定の
情報を出力することになる。Therefore, for example, when the host computer 1 outputs address information C1H, the terminal computer 31 receives it and outputs an ACK code and predetermined information. Then, two units of time after outputting the previous address information C1H, the host computer 1 outputs address information C2H. Thus, the terminal computer 32 inputs data as shown in FIG. 4(a) to the optical receiving module 34. Then, the terminal computer 32 is connected to A as shown in FIG. 4(b).
Output the CK code and information. In this way, from now on, the host computer 1 updates the address information C3H every two units of time.
-CFH is output, and each terminal computer 33 to 3rs receives the corresponding address information and outputs an ACK code and predetermined information.
従って、ホストコンピュータ1はACKコードの入力の
有無を検出することによって各端末コンピュータ31〜
315が正常に動作しているか否かを検出することがで
きる。一方、各端末コンピュータ31〜31sではアド
レス情報、ACKコード、所定の情報等の各種信号が入
力される毎にタイムカウンタ35がリセットされて再度
タイムカウント動作を開始するようになる。従って、通
信回線が正常に働いているときには各端末コンピュータ
のタイムカウンタ35が設定されている受信待ち時間を
カウントすることはない。しかし、例えば端末コンピュ
ータ31と端末コンピュータ32との間の通信回線2が
断線事故を起した場合、端末コンピュータ32を含めて
それ以降の各端末コンピュータ32〜315には全く信
号が入力されなくなる。しかして、前の信号入力、例え
ば第5図の(a)に示すように端末コンピュータ31を
指定するアドレス情報C1Hの入力があってから22単
位時間が経過すると先ず端末コンピュータ32のタイム
カウンタ35がその受信待ち時間である22単位時間を
カウントして第5図の(b)に示すように通信回線断線
信号03Hとアドレス番号C2Hを出力する。1単位時
間経過後には今度は端末コンピュータ33から通信回線
断線信号03Hとアドレス番号C3H出力されることに
なる。しかして、ホストコンピュータ1は最初に通信回
線断線信号03Hを出力した端末コンピュータ32の優
先順位とその1つ前の端末コンピュータ31の優先順位
とを比較する。この比較の結果1つ前の端末コンピュー
タ31の優先順位が上で受信待ち時間が短いので、結局
端末コンピュータ31と32との旧の通信回線が断線し
ていると判断することができる。このようにして15台
の端末コンピュータ31〜31s接続されている状態で
通信回線に断線事故が発生したときにはその事故の発生
は勿論、断線箇所も検出することができる。Therefore, the host computer 1 detects the presence or absence of input of the ACK code to enable each terminal computer 31 to
It is possible to detect whether or not 315 is operating normally. On the other hand, in each of the terminal computers 31 to 31s, the time counter 35 is reset and restarts the time counting operation every time various signals such as address information, ACK code, predetermined information, etc. are input. Therefore, when the communication line is working normally, the time counter 35 of each terminal computer does not count the set reception waiting time. However, for example, if a disconnection accident occurs in the communication line 2 between the terminal computer 31 and the terminal computer 32, no signals will be input to the subsequent terminal computers 32 to 315 including the terminal computer 32. Therefore, when 22 units of time have elapsed since the previous signal input, for example, the address information C1H specifying the terminal computer 31 as shown in FIG. 5(a), the time counter 35 of the terminal computer 32 is It counts 22 units of time, which is the reception waiting time, and outputs a communication line disconnection signal 03H and an address number C2H as shown in FIG. 5(b). After one unit of time has elapsed, the terminal computer 33 outputs a communication line disconnection signal 03H and an address number C3H. The host computer 1 then compares the priority of the terminal computer 32 that first outputted the communication line disconnection signal 03H with the priority of the terminal computer 31 immediately before it. As a result of this comparison, since the previous terminal computer 31 has a higher priority and a shorter reception waiting time, it can be determined that the old communication line between the terminal computers 31 and 32 has been disconnected. In this manner, when a disconnection accident occurs in the communication line while the 15 terminal computers 31 to 31s are connected, it is possible to detect not only the occurrence of the accident but also the location of the disconnection.
このような、コンピュータシステムに対して第6図に示
すように新たに2台の端末コンピュータ31s 、3t
yを追加した場合、この2台の端末コンピュータ3s
s 、3t 7のアドレス番号をDOH,D1H1優
先順位を(1B) (17) 、受信待ち時間を36
単位時間、37単位時間にそれぞれ設定する。そしてホ
ストコンピュータ1にはこの2台の端末コンピュータ3
16.317が端末コンピュータ32と端末コンピュー
タ33との間に設置されたことを記憶させる。For such a computer system, two new terminal computers 31s and 3t are added as shown in FIG.
If y is added, these two terminal computers 3s
s, 3t 7 address number DOH, D1H1 priority (1B) (17), reception waiting time 36
Set to unit time and 37 unit time, respectively. And the host computer 1 has these two terminal computers 3
16.317 is installed between the terminal computer 32 and the terminal computer 33.
このようにすれば、例えば端末コンピュータ32と端末
コンピュータ316との間の通信回線2が断線した場合
には、その断線があってから23単位時間後に先ず端末
コンピュータ33から通信回線断線信号03Hとアドレ
ス番号C3Hが出力される。これは断線のあった箇所よ
り後方のうちで一番受信待ち時間が短いからである。し
かして、ホストコンピュータ1は1つ前の端末コンピュ
ータ317との優先順位を比較する。この結果、1つ前
の端末コンピュータ317の優先順位の方が下であると
分るので、ホストコンピュータ1は次に1つ前の端末コ
ンピュータ317に設定されている受信待ち時間37単
位時間から端末コンピュータ33の受信待ち時間23単
位時間を引く処理を行ない、その結果の14単位時間内
に端末;ンビュータ33よりも前方の端末コンピュータ
、すなわち、317.31ts 、32.3tのいずれ
かから通信回線断線信号の出力があるか否かを調べる。In this way, for example, if the communication line 2 between the terminal computer 32 and the terminal computer 316 is disconnected, the terminal computer 33 will first send the communication line disconnection signal 03H and the address 23 units of time after the disconnection. Number C3H is output. This is because the reception waiting time is the shortest among those behind the location where the disconnection occurred. Therefore, the host computer 1 compares the priority order with the previous terminal computer 317. As a result, it is found that the priority of the previous terminal computer 317 is lower, so the host computer 1 next uses the reception waiting time 37 unit time set for the previous terminal computer 317 to The reception waiting time of the computer 33 is processed by subtracting 23 units of time, and within the resulting 14 units of time, the communication line is disconnected from the terminal computer in front of the computer 33, that is, either 317.31ts or 32.3t. Check whether there is a signal output.
しかして、約13単位時間後に端末コンピュータ316
から通信回線断線信号03Hとアドレス番号DOHが出
力される。これにより、ホストコンピュータ1は端末コ
ンピュータ316よりも前で断線事故が発生していると
判断し、その端末コンピュータ316と1つ前の端末コ
ンピュータ32との優先順位を比較する。この結果1つ
前の端末コンピュータ32の方が優先順位が上であるの
で、ホストコンピュータ1は端末コンピュータ32と3
16との間の通信回線2が断線されていると判断する。Then, after about 13 units of time, terminal computer 316
A communication line disconnection signal 03H and an address number DOH are output from. As a result, the host computer 1 determines that a disconnection accident has occurred before the terminal computer 316, and compares the priorities of the terminal computer 316 and the previous terminal computer 32. As a result, the previous terminal computer 32 has a higher priority, so the host computer 1
16 is determined to be disconnected.
このように途中で新たな端末コンピュータの追加があっ
ても通信回線2の断線は勿論、その断線箇所を確実に検
出することができる。また、端末コンピュータの追加が
あってもの追加した端末コンピュータの設置位置よりも
後になる、すなわち端末コンピュータ33〜31sの受
信待ち時間を設定し直すような面倒な作業は不要である
。そして単にホストコンピュータ1に追加した端末コン
ピュータの設置位置を記憶させておけばよいものである
。このように既存の端末コンピュータ31〜315に設
定されている情報を全く変更することなく新たな端末コ
ンピュータを追加することができ、しかも通信回線2の
断線箇所を確実に検出することができる。In this way, even if a new terminal computer is added on the way, not only the disconnection of the communication line 2 but also the location of the disconnection can be reliably detected. Further, even if a terminal computer is added, there is no need for troublesome work such as setting the reception waiting time of the terminal computers 33 to 31s later than the installed position of the added terminal computer. Then, it is sufficient to simply store the installation position of the added terminal computer in the host computer 1. In this way, a new terminal computer can be added without changing the information set in the existing terminal computers 31 to 315, and a disconnection point in the communication line 2 can be reliably detected.
なお、前記実施例では追加した端末コンピュータを2台
としたがその台数はこれに限定されないのは勿論である
。In the above embodiment, two terminal computers were added, but the number of terminal computers is of course not limited to this.
[発明の効果〕
以上詳述したようにこの発明によれば、端末コンピュー
タの追加があってもそれによって受信待ち時間を設定し
直すような面倒がなく、しかも通信回線の断線箇所を確
実に検出することができる通信回線断線箇所検出機能付
きネットワークシステムを提供できるものである。[Effects of the Invention] As detailed above, according to the present invention, even if a terminal computer is added, there is no need to reset the reception waiting time, and the disconnection point of the communication line can be reliably detected. Accordingly, it is possible to provide a network system with a communication line disconnection point detection function.
図はこの発明の実施例を示すもので、第1図は新たな端
末コンピュータを追加する前のブロック図、第2図は端
末コンピュータのCPIJの要部処理を示す流れ図、第
3図はホストコンピュータのCPUの要部処理を示す流
れ図、第4図は端末コンピュータへの入力信号と出力信
号との関係を示す波形図、第5図は端末コンピュータの
通信回線の断線検出動作を示す波形図、第6図は新たな
端末コンピュータを追加したときのブロック図である。
1・・・ホストコンピュータ、2・・・通信回線、31
〜31s・・・既存の端末コンピュータ、31B、31
7・・・追加した端末コンピュータ、11.31・・・
CPU (中央処理装置)、35・・・タイムカウンタ
。
出願人代理人 弁理士 鈴江武彦
第2図The figures show an embodiment of the present invention. Fig. 1 is a block diagram before adding a new terminal computer, Fig. 2 is a flowchart showing the main processing of CPIJ of the terminal computer, and Fig. 3 is a host computer. FIG. 4 is a waveform diagram showing the relationship between input signals and output signals to the terminal computer, FIG. 5 is a waveform diagram showing the disconnection detection operation of the communication line of the terminal computer, and FIG. FIG. 6 is a block diagram when a new terminal computer is added. 1... host computer, 2... communication line, 31
~31s...Existing terminal computer, 31B, 31
7...Added terminal computer, 11.31...
CPU (central processing unit), 35... time counter. Applicant's agent Patent attorney Takehiko Suzue Figure 2
Claims (1)
の通信回線を介してループ状に接続するとともに前記端
末コンピュータにそれぞれアドレスを設定し、前記ホス
トコンピュータからのアドレス情報により端末コンピュ
ータを指定し、その指定された端末コンピュータと前記
ホストコンピュータとが情報を入出力するネットワーク
システムにおいて、 前記各端末コンピュータは、 予め設定された優先順位に基づいて増加する受信待ち時
間の設定手段と、 その設定手段にて設定された受信待ち時間内に信号の入
力が無かったときに通信回線断線信号を自己のアドレス
番号とともに出力する手段を設け、前記ホストコンピュ
ータは、 (a)前記各端末コンピュータから通信回線断線信号と
アドレス番号を受信するとその信号を出力した端末コン
ピュータの1つ前の端末コンピュータとの優先順位を比
較する手段と、 (b)比較によりその1つ前の端末コンピュータの優先
順位が上のときにはその1つ前の端末コンピュータと通
信回線断線信号を出力した端末コンピュータとの間の通
信回線が断線されていると判断する手段と、 (c)また比較により1つ前の端末コンピュータの優先
順位が下のときにはその1つ前の端末コンピュータに設
定されている受信待ち時間と通信回線断線信号を出力し
た端末コンピュータに設定されている受信待ち時間との
差の時間内に前記通信回線断線信号を出力した端末コン
ピュータよりも前の端末コンピュータから通信回線断線
信号の出力があるか否かをチェックする手段と、 (d)この手段によるチェックにより通信回線断線信号
の出力が無い場合には1つ前の端末コンピュータと通信
回線断線信号を出力した端末コンピュータとの間の通信
回線が断線されていると判断す手段と、 (e)上記手段によるチェックにより通信回線断線信号
の出力があった場合にはその通信回線断線信号を出力し
た端末コンピュータとその1つ前の端末コンピュータと
の優先順位を比較する手段とを設け、 その比較手段による比較処理の後上記(b)〜(e)と
同様の処理をくり返すことによって通信回線の断線箇所
を検出することを特徴とする通信回線断線箇所検出機能
付きネットワークシステム。[Scope of Claims] A plurality of terminal computers are connected to a host computer in a loop via one communication line, and an address is set for each of the terminal computers, and the terminal computers are controlled by address information from the host computer. In a network system in which the designated terminal computer and the host computer input and output information, each terminal computer includes: a means for setting a reception waiting time that increases based on a preset priority; Means is provided for outputting a communication line disconnection signal together with its own address number when no signal is input within the reception waiting time set by the setting means, and the host computer is configured to: (a) communicate from each terminal computer; means for comparing the priority order of the terminal computer that outputs the signal with the previous terminal computer when receiving the line disconnection signal and address number; means for determining that the communication line between the previous terminal computer and the terminal computer that outputs the communication line disconnection signal is disconnected when When the ranking is lower, the communication line disconnection signal is sent within the time difference between the reception waiting time set for the terminal computer immediately before it and the reception waiting time set for the terminal computer that outputs the communication line disconnection signal. means for checking whether or not a communication line disconnection signal is output from a terminal computer preceding the terminal computer that outputs the terminal computer, and (d) if a communication line disconnection signal is not output after checking by this means means for determining that the communication line between the previous terminal computer and the terminal computer that outputs the communication line disconnection signal is disconnected; and (e) if a communication line disconnection signal is output as a result of the check by the above means; is provided with a means for comparing the priorities of the terminal computer that outputs the communication line disconnection signal and the previous terminal computer, and after the comparison process by the comparison means, the same steps as in (b) to (e) above are performed. A network system with a communication line disconnection detection function, which detects a communication line disconnection by repeating processing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59249174A JPS61127248A (en) | 1984-11-26 | 1984-11-26 | Network system equipped with communication circuit disconnecting location detect function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP59249174A JPS61127248A (en) | 1984-11-26 | 1984-11-26 | Network system equipped with communication circuit disconnecting location detect function |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS61127248A true JPS61127248A (en) | 1986-06-14 |
Family
ID=17189005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP59249174A Pending JPS61127248A (en) | 1984-11-26 | 1984-11-26 | Network system equipped with communication circuit disconnecting location detect function |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS61127248A (en) |
-
1984
- 1984-11-26 JP JP59249174A patent/JPS61127248A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0281307B1 (en) | Asynchronous interface and method for coupling data between a data module and a serial asynchronous peripheral | |
EP0103460B1 (en) | Improvements in or relating to data interconnecting networks | |
CA1336291C (en) | Initialization and synchronization method for a two-way communication link | |
JPH05276171A (en) | Communication control equipment | |
EP0893019B1 (en) | Multiplex communication interface circuit and method | |
JPH09238175A (en) | Device for detecting constitution parameter of asynchronous data link | |
US4590924A (en) | Endoscope system | |
JPS61127248A (en) | Network system equipped with communication circuit disconnecting location detect function | |
US6356584B1 (en) | Method for the clocked serial data transmission of data blocks of identical block length | |
US5095481A (en) | Technique for active synchronization of the content induced transaction overlap (CITO) communication channel | |
US5208840A (en) | Method and arrangement for detecting framing bit sequence in digital data communications system | |
JPS58225738A (en) | distributed transmission system | |
JP2978108B2 (en) | Highway data receiving apparatus and method duplexed by all-electronics exchange | |
JP2581181B2 (en) | Time information transmission method | |
JPS63228855A (en) | Communication controller | |
KR100267344B1 (en) | Apparatus and method for collision protecting of transmitting data in hdlc bus structured switching system | |
KR20240125476A (en) | Method for data exchange | |
JPS6345820B2 (en) | ||
KR940005212B1 (en) | Telex line control apparatus and controlling method thereof | |
JPS6022374B2 (en) | Fault detection/avoidance circuit | |
KR950009583B1 (en) | Method and device to acknowledge collision of data in msx computer network | |
JPS6051964A (en) | Computer system | |
SU832780A1 (en) | Device for discriminating address call signals | |
JP2581166B2 (en) | Time information transmission method | |
JP2945123B2 (en) | Communications system |