[go: up one dir, main page]

JPH0946280A - Method for judging connecting state of communication line - Google Patents

Method for judging connecting state of communication line

Info

Publication number
JPH0946280A
JPH0946280A JP19216595A JP19216595A JPH0946280A JP H0946280 A JPH0946280 A JP H0946280A JP 19216595 A JP19216595 A JP 19216595A JP 19216595 A JP19216595 A JP 19216595A JP H0946280 A JPH0946280 A JP H0946280A
Authority
JP
Japan
Prior art keywords
computer
communication
master computer
slave
line
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
JP19216595A
Other languages
Japanese (ja)
Inventor
Makoto Osawa
誠 大沢
Yoshiya Isono
吉哉 磯野
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.)
Fujikura Ltd
Original Assignee
Fujikura 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 Fujikura Ltd filed Critical Fujikura Ltd
Priority to JP19216595A priority Critical patent/JPH0946280A/en
Publication of JPH0946280A publication Critical patent/JPH0946280A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bidirectional Digital Transmission (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)
  • Optical Communication System (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a method for judging the connecting state of communication lines by means of a communication system attaining cost down by using a transmitter-receiver capable of alternatively switching a transmission mode or a reception mode. SOLUTION: A check command is transmitted from a master computer 1 to N-number of slave computers 2-1 to 2-N connected with an optical coupler 9 through optical communication equipments 5, 5-1 to 5-N capable of alternatively switching the transmission mode or the reception mode through optical fibers 7. The computers 2-1 to 2-N judges the state of a line to the computer 1, based on the check command and transmits an answer signal. The computer 1, communicates data between with the computers 2-1 to 2-N only for prescribed period. Then the computer 1 repeats polling consisting of the process like this and judges the state of the line to the computers 2-1 to 2-N, based on the polling result of at least one time.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、主に、1心の通
信線を用いて1:N(Nは2以上の整数)の半二重通信
をする通信線の接続状態判定方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention mainly relates to a communication line connection state determining method for performing 1: N (N is an integer of 2 or more) half-duplex communication using a single communication line.

【0002】[0002]

【従来の技術】図3は遠距離間に設置されたコンピュー
タ間で1:1の半二重通信を行う機器の構成例を示すブ
ロック図である。図3において、1はマスタコンピュー
タであり、2はスレーブコンピュータである。マスタコ
ンピュータ1の入出力端は通信機3の一方の入出力端
に、またスレーブコンピュータ2の入出力端は通信機
3’の一方の入出力端に接続されている。そして、通信
機3及び通信機3’の他方の入出力端は1心の光ケーブ
ル又は同軸ケーブルである通信線4の終端にそれぞれ接
続されている。
2. Description of the Related Art FIG. 3 is a block diagram showing an example of the configuration of a device that performs 1: 1 half-duplex communication between computers installed over a long distance. In FIG. 3, 1 is a master computer and 2 is a slave computer. The input / output terminal of the master computer 1 is connected to one input / output terminal of the communication device 3, and the input / output terminal of the slave computer 2 is connected to one input / output terminal of the communication device 3 '. The other input / output terminals of the communication device 3 and the communication device 3'are respectively connected to the ends of the communication line 4, which is a single-core optical cable or coaxial cable.

【0003】通信機3は送信器3a、受信器3b、符号
判定器3c、及びカプラ3dから構成されている。送信
器3aはマスタコンピュータ1が出力する出力信号をC
MI(Coded Mark Inversion)変調し、さらに通信線4
の伝送特性に適した変調をかけて通信線4へ送出するも
のである。また、受信器3bは通信線4を介して伝送さ
れてくる信号を受信し、この受信信号をCMI復調して
マスタコンピュータ1へ出力するものである。符号判定
器3cは受信器3bが受信した信号のCMIエラー及び
CD(Carrier Detect)エラーを検出するものであり、
検出結果はマスタコンピュータ1へ出力される。カプラ
3dは1心の通信線4を介して伝送されてくる信号を分
波して受信器3bへ送る、または、送信器3aの送信信
号を1心の通信線4へ送出するものである。また、通信
機3’は通信機3と同一構成であり、それぞれの構成要
素も通信機3のものと機能が同一である。
The communication device 3 comprises a transmitter 3a, a receiver 3b, a code decision device 3c, and a coupler 3d. The transmitter 3a outputs the output signal from the master computer 1 to C
MI (Coded Mark Inversion) modulation and communication line 4
Is transmitted to the communication line 4 after being subjected to modulation suitable for the transmission characteristics of. Further, the receiver 3b receives a signal transmitted via the communication line 4, CMI demodulates the received signal, and outputs the signal to the master computer 1. The code determiner 3c detects a CMI error and a CD (Carrier Detect) error of the signal received by the receiver 3b,
The detection result is output to the master computer 1. The coupler 3d demultiplexes the signal transmitted via the one-core communication line 4 and sends it to the receiver 3b, or sends the transmission signal of the transmitter 3a to the one-core communication line 4. Further, the communication device 3'has the same configuration as the communication device 3, and each component has the same function as that of the communication device 3.

【0004】上記構成において、マスタコンピュータ1
が通信機3へデータを出力すると、通信機3中の送信器
3aは該データにCMI変調を施して通信線4へ送出す
る。そして、通信機3’は伝送されてきたデータを受信
器3b’で受信し、CMI復調を行いスレーブコンピュ
ータ2へ出力する。また、スレーブコンピュータ2がデ
ータを通信機3’へ出力した場合も同様に、通信機3’
中の送信器3a’がCMI変調を施して通信線4へ送出
し、通信線4から伝送されてきた信号を通信機3が受信
器3bで受信し、CMI復調を行いマスタコンピュータ
1へ出力する。
In the above configuration, the master computer 1
When the data is output to the communication device 3, the transmitter 3a in the communication device 3 performs CMI modulation on the data and sends the data to the communication line 4. Then, the communication device 3 ′ receives the transmitted data by the receiver 3b ′, performs CMI demodulation, and outputs the data to the slave computer 2. Similarly, when the slave computer 2 outputs data to the communication device 3 '
The transmitter 3a 'therein performs CMI modulation and sends it out to the communication line 4, and the communication device 3 receives the signal transmitted from the communication line 4 at the receiver 3b, performs CMI demodulation and outputs it to the master computer 1. .

【0005】マスタコンピュータ1とスレーブコンピュ
ータ2との間で通信が行われている間、受信器3b,3
b’は常時回線の監視をしており、送信器3aがデータ
を送出している場合、通信機3’は送信器3a’のデー
タ送信を禁止する。逆に、送信器3a’がデータを送出
している場合、通信機3は送信器3aのデータ送信を禁
止する。このように、送信器3a,3a’が同時にデー
タを送信するのを防止することで、マスタコンピュータ
1とスレーブコンピュータ2との間において半二重通信
が実現される。また、符号判定器3c,3c’はそれぞ
れ受信器3b,3b’の出力信号を常時監視しており、
CMIエラー又はCDエラーを検出した場合は、それぞ
れ、マスタコンピュータ1及びスレーブコンピュータ2
へCMIエラー信号又はCDエラー信号を出力する。
While communication is being performed between the master computer 1 and the slave computer 2, the receivers 3b, 3
b ′ constantly monitors the line, and when the transmitter 3a is transmitting data, the communication device 3 ′ prohibits the transmitter 3a ′ from transmitting data. Conversely, when the transmitter 3a 'is sending data, the communication device 3 prohibits the transmitter 3a from transmitting data. By thus preventing the transmitters 3a and 3a 'from transmitting data at the same time, half-duplex communication is realized between the master computer 1 and the slave computer 2. The code determiners 3c and 3c ′ constantly monitor the output signals of the receivers 3b and 3b ′,
When a CMI error or a CD error is detected, the master computer 1 and the slave computer 2 respectively
To output a CMI error signal or a CD error signal.

【0006】上述したCMI変調は、簡易な回路構成で
変調及び復調が行われる、CMI変調信号の内容でエラ
ーが検出される、電力のデューティが原理的に50%に
なるのでAGC(自動利得制御)がかけやすい等の利点
を有するものであり、遠距離通信を行う際に用いられる
変調方法である。以下、前述したCMI変調について図
4を参照して説明する。図4はCMI変調及びCMI復
調の原理を示すタイミングチャートである。図4におい
て、時間が左から右へと経過しているものとする。ま
た、図4中の「データ」は図3中のマスタコンピュータ
1及びスレーブコンピュータ2から、それぞれ、図3中
の通信機3,3’へ出力されるものである。
In the CMI modulation described above, modulation and demodulation are performed with a simple circuit configuration, an error is detected in the content of the CMI modulation signal, and the duty of the power is 50% in principle, so AGC (automatic gain control) ) Is a modulation method used when performing long-distance communication. Hereinafter, the CMI modulation described above will be described with reference to FIG. FIG. 4 is a timing chart showing the principle of CMI modulation and CMI demodulation. In FIG. 4, it is assumed that time has passed from left to right. Further, "data" in FIG. 4 is output from the master computer 1 and the slave computer 2 in FIG. 3 to the communication devices 3 and 3'in FIG. 3, respectively.

【0007】図3中の送信器3a,3a’は、送信クロ
ックの立ち上がりから次の立ち上がりまでを基準周期と
し、以下の方法により変調を「データ」に施す。即ち、
データが「0」の場合、前半周期が「1」であり、後半
周期が「0」であるように変調を施し、CMI出力とす
る。また、データが「1」の場合、前回に「1」のデー
タに変調を施したときのCMI出力の論理(「1」又は
「0」)を記憶し、今回のCMI出力の論理がその論理
と相補である論理となるように変調を施す。また、図3
中の送信器3a,3a’は、図3中の通信線4の伝送特
性にあわせてCMI出力を、図4中に記載された「ファ
イバ内変調波形」のように変調する。即ち、送信器2
a,2a’はCMI変調信号が1の論理である場合、1
0.6MHzのパルス信号へ、CMI信号が0の論理で
ある場合、10.8MHzのパスル信号へ変調して出力
する。
The transmitters 3a and 3a 'shown in FIG. 3 perform "modulation" on the "data" by the following method with a reference cycle from the rising edge of the transmission clock to the next rising edge. That is,
When the data is "0", modulation is performed so that the first half cycle is "1" and the second half cycle is "0", and CMI output is performed. If the data is "1", the logic ("1" or "0") of the CMI output when the data of "1" was previously modulated is stored, and the logic of the CMI output this time is that logic. Modulation is performed so that the logic becomes complementary to. Also, FIG.
The transmitters 3a and 3a 'therein modulate the CMI output in accordance with the transmission characteristics of the communication line 4 in FIG. 3 as shown in the "in-fiber modulation waveform" described in FIG. That is, the transmitter 2
a and 2a ′ are 1 when the CMI modulated signal has a logic of 1.
When the CMI signal has a logic of 0 for a pulse signal of 0.6 MHz, it is modulated and output to a pulse signal of 10.8 MHz.

【0008】次に、CMI復調方法を記す。上述したパ
ルス信号が図3中の通信線4から伝送されてくると、図
3中の受信器3b,3b’は、該パルス信号からCMI
入力を得ると共に、受信クロックを抽出する。そして、
受信器3b,3b’は、この受信クロックの立ち下がり
から次の立ち下がりまでを基準周期としてCMI復調を
行う。即ち、受信クロックの立ち下がり時にCMI入力
の立ち下がりを検出し、この立ち下がりが検出された1
周期分の復調信号を「0」とする。それ以外、つまり受
信クロックの立ち下がり時にCMI信号の論理が変化し
ない場合、1周期分の復調信号を「1」とする。このよ
うにしてCMI入力の復調が行われる。
Next, the CMI demodulation method will be described. When the above-mentioned pulse signal is transmitted from the communication line 4 in FIG. 3, the receivers 3b and 3b ′ in FIG.
The input clock is obtained and the reception clock is extracted. And
The receivers 3b and 3b 'perform CMI demodulation with the reference period from the fall of the received clock to the next fall. That is, the fall of the CMI input is detected at the fall of the reception clock, and this fall is detected.
The demodulated signal for a period is set to "0". Otherwise, that is, when the logic of the CMI signal does not change at the fall of the reception clock, the demodulated signal for one cycle is set to "1". In this way, demodulation of the CMI input is performed.

【0009】以下において、前述したCMIエラー、C
Dエラーについて説明する。図3中の符号判定器3c,
3c’は、受信クロックの立ち上がりから次の立ち上が
りまでを基準周期として、それぞれ図3中の受信器3
b,3b’の出力信号を監視している。CMI変調の符
号則に従うと、CMI入力の論理が基準周期内で変化す
る場合、つまり元のデータが「0」である場合、CMI
入力は必ず「1」から「0」へと変化する。また、論理
が基準周期内で変化しない場合、即ち元のデータが
「1」である場合、CMI入力は、前回論理が変化しな
かったときの論理と相補の論理である。上述した二つの
符号則に反する場合、符号判定機3c,3c’はCMI
エラーを検出し、CMIエラー信号をそれぞれ図3中の
マスタコンピュータ1及びスレーブコンピュータ2へ出
力する。また、CMI出力及びCMI入力は、1.5周
期より長い間、同じ論理は続かないという特徴がある。
従って、符号判定器3c,3c’は受信クロックの半周
期ごとにCMI入力の論理を記憶し、連続する四つの論
理を順次比較する。そして、この四つの論理が全て同じ
論理であればCDエラーをそれぞれマスタコンピュータ
1及びスレーブコンピュータ2へ出力する。
In the following, the above-mentioned CMI error, C
The D error will be described. Code determiner 3c in FIG.
3c ′ is the receiver 3 in FIG. 3 with the reference cycle from the rising edge of the reception clock to the next rising edge.
The output signals of b and 3b 'are monitored. According to the coding rule of CMI modulation, when the logic of the CMI input changes within the reference period, that is, when the original data is "0", the CMI
The input always changes from "1" to "0". When the logic does not change within the reference period, that is, when the original data is "1", the CMI input is a logic complementary to the logic when the logic did not change the previous time. When the two coding rules described above are violated, the code decision machines 3c and 3c ′ are not required to use the CMI.
An error is detected and a CMI error signal is output to the master computer 1 and the slave computer 2 in FIG. 3, respectively. In addition, the CMI output and the CMI input are not characterized by the same logic for longer than 1.5 cycles.
Therefore, the code determiners 3c and 3c 'store the logic of the CMI input every half cycle of the reception clock and sequentially compare four consecutive logics. If all four logics are the same, a CD error is output to the master computer 1 and the slave computer 2, respectively.

【0010】以上説明したように、図3に示す構成で
は、送信器3a,3a’、受信器3b,3b’、符号判
定機3c,3c’、及びカプラ3d,3d’を備えた通
信機3,3’を用いて、マスタコンピュータ1とスレー
ブコンピュータ2間で1:1の半二重通信が実現されて
いる。
As described above, in the configuration shown in FIG. 3, the communication device 3 including the transmitters 3a and 3a ', the receivers 3b and 3b', the code decision devices 3c and 3c ', and the couplers 3d and 3d'. , 3'is used to realize 1: 1 half-duplex communication between the master computer 1 and the slave computer 2.

【0011】[0011]

【発明が解決しようとする課題】ところで、1台のマス
タコンピュータとN台のスレーブコンピュータ間で1:
N通信を行う場合、上記した通信機がマスタコンピュー
タ側に1台、スレーブコンピュータ側にN台必要とな
る。しかし、Nが大である場合、通信機をN台配置する
ことはコストが極めて高くなるという欠点がある。本発
明は上記の点に鑑みてなされたもので、送信モードおよ
び受信モードを択一的に切換可能な送受信手段を用いて
通信システムのコストダウンを図り、該通信システムに
おいて、マスタコンピュータとスレーブコンピュータと
の間で1:N半二重通信を実現し、その上で、複数通信
線の接続状態を判定することができるような通信線の接
続状態判定方法を提供することを目的とする。
By the way, between one master computer and N slave computers:
When performing N communication, one communication device described above is required on the master computer side and N communication devices are required on the slave computer side. However, when N is large, arranging N communication devices has a drawback that the cost becomes extremely high. The present invention has been made in view of the above points, and achieves cost reduction of a communication system by using a transmitting / receiving means capable of selectively switching a transmission mode and a reception mode, and in the communication system, a master computer and a slave computer are provided. It is an object of the present invention to provide a method for determining the connection state of a communication line that can realize the 1: N half-duplex communication between the communication line and the communication line and further determine the connection state of a plurality of communication lines.

【0012】[0012]

【課題を解決するための手段】この発明は、マスタとし
て機能する1つのマスタコンピュータと該マスタコンピ
ュータのスレーブとして機能するN(Nは2以上の整
数)個のスレーブコンピュータとを、送信モードおよび
受信モードを択一的に切換可能な送受信手段を介して1
心線を1:N分岐してなる通信網に接続し、前記マスタ
コンピュータと前記スレーブコンピュータとの間でデー
タ通信を行う通信システムにおける通信線の接続状態判
定方法であって、前記マスタコンピュータから前記スレ
ーブコンピュータへ予め設定されたチェックコマンドを
送信する第1の過程と、前記マスタコンピュータが該ス
レーブコンピュータからの返信信号を待つとともに、該
スレーブコンピュータが、前記マスタコンピュータから
伝送されてきた前記チェックコマンドに基づいて前記マ
スタコンピュータへの回線の状態を判断し、この判断結
果に対応する前記返信信号を前記マスタコンピュータへ
送信する第2の過程と、前記マスタコンピュータと前記
スレーブコンピュータとの間で、予め設定された期間だ
けデータ通信を行う第3の過程とを有し、前記第1の過
程〜第3の過程からなるポーリングを繰り返し行うとと
もに、前記スレーブコンピュータに対する少なくとも1
回のポーリング結果に基づいて該スレーブコンピュータ
への回線の状態を判定することを特徴とする通信線の接
続状態判定方法である。
According to the present invention, one master computer that functions as a master and N (N is an integer of 2 or more) slave computers that function as slaves of the master computer are set in a transmission mode and a reception mode. 1 via a transmission / reception means capable of switching modes selectively
A method for determining a connection state of a communication line in a communication system in which data is communicated between the master computer and the slave computer by connecting a core wire to a communication network having a 1: N branch, The first step of transmitting a preset check command to the slave computer, and the master computer waits for a reply signal from the slave computer, and the slave computer transmits the check command transmitted from the master computer. A second step of judging the state of the line to the master computer based on the judgment result and transmitting the reply signal corresponding to the judgment result to the master computer, and presetting between the master computer and the slave computer. Data communication only during the specified period And a third step, repeatedly performs the polling made from the first step to third step, at least with respect to the slave computer 1
A method for determining a connection state of a communication line is characterized in that the state of a line to the slave computer is determined based on the result of polling of the number of times.

【0013】[0013]

【発明の実施の形態】本発明の実施の形態は、以下に述
べる技術的思想に基づいてなされたものである。即ち、
マスタとして機能する1つのマスタコンピュータと該マ
スタコンピュータのスレーブとして機能するN(Nは2
以上の整数)個のスレーブコンピュータとの間で通信を
行う1:Nの通信システムにおいて、送受信素子を有す
る通信機を用いて該通信システムのコストダウンを図
る。そして、この通信システムにおいて1:Nの半二重
通信を実現するということである。上記技術思想に基づ
いた本発明の一実施形態について、図面を参照して説明
する。図2は本発明の通信線の接続状態判定方法が適用
される通信システムの概略構成を示すブロック図であ
り、この図において、図3と共通する部分には同一の符
号を付し、その説明を省略する。尚、以下では複数ある
機器及び該機器の構成要素の符号に補助符号を付してそ
れぞれを特定するものとする。
BEST MODE FOR CARRYING OUT THE INVENTION The embodiments of the present invention are based on the technical ideas described below. That is,
One master computer that functions as a master and N that functions as a slave of the master computer (N is 2
In a 1: N communication system that communicates with (the above integer) slave computers, the cost of the communication system is reduced by using a communication device having a transmission / reception element. And, it means to realize 1: N half-duplex communication in this communication system. An embodiment of the present invention based on the above technical idea will be described with reference to the drawings. FIG. 2 is a block diagram showing a schematic configuration of a communication system to which the method for determining the connection state of the communication line of the present invention is applied. In this figure, the same parts as those in FIG. Is omitted. In the following description, it is assumed that a plurality of devices and the reference numerals of the components of the devices are attached with supplementary reference numerals to identify them.

【0014】図2において、5は光通信機であり、LD
(レーザダイオード)5a、LDドライバ5b、及び増
幅回路5cから構成されている。LD5aは送信モード
及び受信モードを択一的に切換可能な素子である。ま
た、LDドライバ5bはデータにCMI変調を施し、か
つ前述したLD5aを駆動するものであり、マスタコン
ピュータ1によって制御される。また、増幅回路5cは
LD5aが受信した信号を増幅し、CMI復調を行い、
CMIエラー及びCDエラーを検出する回路であり、こ
れらの受信信号及びエラー信号はマスタコンピュータ1
に出力される。なお、光通信機5及び光通信機5−1〜
5−Nは全く同一の構成である。6は1心の光ケーブル
を1:Nに分岐してなる光カプラである。7は光カプラ
6と光通信機5、5−1〜5−Nとを接続する光ファイ
バの通信線である。光カプラ6の一方の終端には通信線
7を介して光通信機5が接続されており、該光通信機5
にはマスタコンピュータ1が接続されている。また、他
方のN本の終端にはそれぞれ、通信線7を介して光通信
機5−1〜5−Nが接続されており、該光通信5−1〜
5−Nにはスレーブコンピュータ2−1〜2−Nが接続
されている。
In FIG. 2, reference numeral 5 is an optical communication device, which is an LD.
(Laser diode) 5a, LD driver 5b, and amplifier circuit 5c. The LD 5a is an element capable of selectively switching between the transmission mode and the reception mode. The LD driver 5b performs CMI modulation on data and drives the LD 5a described above, and is controlled by the master computer 1. The amplifier circuit 5c amplifies the signal received by the LD 5a and performs CMI demodulation,
This is a circuit for detecting a CMI error and a CD error, and these received signals and error signals are transmitted to the master computer 1.
Is output to The optical communication device 5 and the optical communication devices 5-1 to 5-1
5-N has exactly the same configuration. Reference numeral 6 is an optical coupler formed by branching a one-core optical cable into 1: N. An optical fiber communication line 7 connects the optical coupler 6 and the optical communication devices 5 and 5-1 to 5-N. An optical communication device 5 is connected to one end of the optical coupler 6 via a communication line 7.
A master computer 1 is connected to the. Further, optical communication devices 5-1 to 5-N are respectively connected to the other N terminal ends via a communication line 7, and the optical communication devices 5-1 to 5-1 are connected.
Slave computers 2-1 to 2-N are connected to 5-N.

【0015】図1は図2に示される通信システムにおけ
る1:Nの半二重通信を実現する通信方法を示すフロー
チャートである。本図及び図2において、N=10とし
マスタコンピュータ1とスレーブコンピュータ2−1〜
2−10が1:10の通信を行うものとして説明する。
図1において、ステップS1では、スレーブコンピュー
タ2−1〜2−10の接続状態を記憶する1行10列の
配列Fの初期化を行っており、この配列Fの要素は全て
「0」に初期化される。この配列Fはマスタコンピュー
タ1内に確保されており、通信線7の接続状態が正常な
場合は配列の要素が「0」となり、異常の場合は「1」
となる。また、変数nはスレーブコンピュータ2−1〜
2−10いずれか1つを指定する変数であり、その初期
値が1にセットされる。これにより、マスタコンピュー
タ1とスレーブコンピュータ2−1との間で最初に通信
が行われる。
FIG. 1 is a flowchart showing a communication method for realizing 1: N half-duplex communication in the communication system shown in FIG. In this figure and FIG. 2, N = 10 and master computer 1 and slave computers 2-1 to 2-1.
It is assumed that the 2-10 performs 1:10 communication.
In FIG. 1, in step S1, an array F of 1 row and 10 columns that stores the connection states of the slave computers 2-1 to 2-10 is initialized, and all the elements of this array F are initialized to "0". Be converted. This array F is secured in the master computer 1, and the element of the array is "0" when the connection state of the communication line 7 is normal, and "1" when it is abnormal.
Becomes The variable n is the slave computer 2-1 to 2-1.
2-10 is a variable that specifies any one, and its initial value is set to 1. As a result, communication is first performed between the master computer 1 and the slave computer 2-1.

【0016】ステップS2では、マスタコンピュータ1
からスレーブコンピュータ2−1へチェックコマンドが
送出される。次にステップS3では、ステップS2にお
いて送出したチェックコマンドに対するアンサが受信さ
れたか否かが判断される。アンサが受信された場合は、
ステップS4へ進む。ステップ S4では、回線が正常
であるので、その状態をマスタコンピュータ1が記憶す
る。つまり、現在の変数nの値は1であるので、配列F
の第1行第1列の要素が「0」となる。また、上述した
ステップS3において、アンサが受信されなかった場合
は、処理がステップS5へ進み、タイムアウトか否かが
判断される。このタイムアウトの時間には、例えば、1
6msecが設定されている。ステップ5において、タ
イムアウトでないと判断されると、処理はステップS3
へ進み、アンサが受信されたか否かが判断される。つま
り、ステップS3及びステップS5では、アンサが受信
されていない場合は、16msecの間、アンサを待つ
処理が行われる。
In step S2, the master computer 1
Sends a check command to the slave computer 2-1. Next, in step S3, it is determined whether or not the answer to the check command sent in step S2 has been received. If an answer is received,
Proceed to step S4. In step S4, since the line is normal, the master computer 1 stores the state. That is, since the current value of the variable n is 1, the array F
The element in the first row, first column of is 0. Further, in step S3 described above, if the answer is not received, the process proceeds to step S5, and it is determined whether a timeout has occurred. For this time-out period, for example, 1
6 msec is set. If it is determined in step 5 that the timeout has not occurred, the process proceeds to step S3.
Proceed to and it is determined whether an answer has been received. That is, in step S3 and step S5, when the answer is not received, the process of waiting for the answer is performed for 16 msec.

【0017】ステップS5において、タイムアウトであ
ると判断された場合は、処理がS6へ進み、配列Fの第
1行第1列の要素が「1」であるか否かが判断される。
この要素が「1」でない場合は、処理がステップS7ヘ
進む。ステップS7では回線が異常である旨をマスタコ
ンピュータ1が記憶する。つまり配列Fの第1行第1列
の要素が「1」となる。また、上述したステップS6に
おいて、配列Fの第1行第1列の要素が「1」である場
合は、処理が、ステップS8へ進む。ステップS8で
は、マスタコンピュータ1は第1番目のスレーブコンピ
ュータと回線が確立されていないものと判断する。
If it is determined in step S5 that the timeout has occurred, the process proceeds to step S6, and it is determined whether the element in the first row, first column of the array F is "1".
If this element is not "1", the process proceeds to step S7. In step S7, the master computer 1 stores that the line is abnormal. That is, the element in the first row, first column of the array F becomes "1". If the element in the first row, first column of the array F is “1” in step S6 described above, the process proceeds to step S8. In step S8, the master computer 1 determines that the line has not been established with the first slave computer.

【0018】上述したステップS4の次は、処理がステ
ップS9へ進み、マスタコンピュータ1がスレーブコン
ピュータ2−1へ送出するデータがあるか否かを判断す
る。送出するデータがある場合はステップS10へ進
む。ステップS10ではマスタコンピュータ1からスレ
ーブコンピュータ2−1へデータを送出するデータ送信
時間(160msec)が設定されており、マスタコン
ピュータ1及びスレーブコンピュータ2−1間で非同期
半二重通信が行われる。このデータ送信時間が160m
secに定められているのは、実効的なデータ転送速度
を確保する為である。ステップS9において送出するデ
ータが無い場合、ステップS7の次、及びステップS8
の次は、処理がステップS11へ進む。ステップS11
では、上記ステップS10で説明したデータ通信時間と
同じ時間(160msec)が待ち時間として設定され
ており、この間、マスタコンピュータ1及びスレーブコ
ンピュータ2−1は処理を中断し、送受信のタイミング
を計っている。上述したステップS10及びステップS
11の次は、処理がステップS12へ進み、変数nの値
が10であるか否かの比較がされ、変数nが10と等し
くなければステップS13へ進む。ステップS13で
は、変数nの値がインクリメントされステップS2へ戻
る。また、上述したステップS12において、変数nの
値が10である場合には、処理がステップS14へ進
み、変数nに「1」が代入され、マスタコンピュータ1
の通信相手が再びスレーブコンピュータ2−1となる。
そして、処理がステップS2へ戻る。
After step S4 described above, the process proceeds to step S9 to determine whether or not the master computer 1 has data to be sent to the slave computer 2-1. If there is data to be sent, the process proceeds to step S10. In step S10, a data transmission time (160 msec) for transmitting data from the master computer 1 to the slave computer 2-1 is set, and asynchronous half-duplex communication is performed between the master computer 1 and the slave computer 2-1. This data transmission time is 160m
The reason for setting sec is to secure an effective data transfer rate. If there is no data to be sent in step S9, after step S7 and step S8
After, the process proceeds to step S11. Step S11
Then, the same time (160 msec) as the data communication time described in step S10 is set as the waiting time. During this time, the master computer 1 and the slave computer 2-1 interrupt the processing and measure the transmission / reception timing. . Step S10 and step S described above
After step 11, the process proceeds to step S12, and it is compared whether or not the value of the variable n is 10, and if the variable n is not equal to 10, the process proceeds to step S13. In step S13, the value of the variable n is incremented and the process returns to step S2. When the value of the variable n is 10 in step S12 described above, the process proceeds to step S14, "1" is assigned to the variable n, and the master computer 1
Becomes the slave computer 2-1 again.
Then, the process returns to step S2.

【0019】このように、ポーリングは常時繰り返され
ており、マスタコンピュータ1は2回のポーリングの結
果に基づいて回線の接続状態を判定する。つまり、前回
のポーリング結果が「1」であって、今回のポーリング
結果が「0」である場合、処理はステップS3からステ
ップS4へ進み、前回のポーリング結果が異常であると
判断されたにもかかわらず、スレーブコンピュータ2−
1に対する回線があると判断される。また、前回のポー
リング結果が「0」であり、今回のポーリング結果が
「1」である場合も、処理はステップS6からステップ
S7へ進み、スレーブコンピュータ2−1に対する回線
があると判断される。しかし、前回のポーリング結果が
「1」であって、今回のポーリング結果も「1」である
場合、処理はステップS6からステップS8へ進み、ス
レーブコンピュータ2−1に対する回線は無いと判断さ
れる。
As described above, polling is always repeated, and the master computer 1 determines the connection state of the line based on the results of the two polls. That is, when the previous polling result is "1" and the current polling result is "0", the process proceeds from step S3 to step S4, and it is determined that the previous polling result is abnormal. Regardless, slave computer 2-
It is determined that there is a line for 1. Also, when the previous polling result is "0" and the current polling result is "1", the process proceeds from step S6 to step S7, and it is determined that there is a line to the slave computer 2-1. However, if the previous polling result is "1" and the current polling result is also "1", the process proceeds from step S6 to step S8, and it is determined that there is no line to the slave computer 2-1.

【0020】また、上述したポーリングの1周期は、ス
レーブコンピュータ2−1〜2−10全てに対して回線
が正常である場合、160msec×10=1.6秒で
あり、マスタコンピュータ1に対するスレーブコンピュ
ータ2−1〜2−10のいずれかの最長レスポンス時間
は、約、1.6秒×10msec×3=4.8秒であ
る。例えば、マスタコンピュータ1がスレーブコンピュ
ータ2−1と通信している場合を想定し、1回目にスレ
ーブコンピュータ2−1からのアンサがあった後、すぐ
にスレーブコンピュータ2−1と光通信機5−1との間
の接続が切れたとする。この場合、1回目のポーリング
結果では回線は正常であると判断され、2回目のポーリ
ングが終了した段階で回線異常と判断される。しかし、
この2回のポーリング結果のうち1回目の結果が正常で
あるので、マスタコンピュータ1は接続が行われている
と判断し、3回目のポーリングを行う。3回目のポーリ
ングが終了した時点で、前回と今回のポーリング結果が
両方とも回線異常であると判断されるので、マスタコン
ピュータ1はスレーブコンピュータ2−1と接続が行わ
れていないと判断する。レスポンス時間は、最後にデー
タ通信を行って、次の通信を行うまでの時間であるが、
このときの最長レスポンス時間は、最後にデータ通信を
行ってから、回線無しと判断されるまでの時間である。
従って、最長レスポンス時間は、約3回のポーリング時
間である。
Further, one cycle of the above-mentioned polling is 160 msec × 10 = 1.6 seconds when all the slave computers 2-1 to 2-10 have normal lines. The longest response time of any of 2-1 to 2-10 is approximately 1.6 seconds × 10 msec × 3 = 4.8 seconds. For example, assuming that the master computer 1 communicates with the slave computer 2-1, immediately after the answer from the slave computer 2-1 is received, the slave computer 2-1 and the optical communication device 5-are immediately connected. It is assumed that the connection with 1 is broken. In this case, the line is judged to be normal according to the result of the first polling, and the line is judged to be abnormal when the second polling is completed. But,
Since the result of the first polling out of the two polling results is normal, the master computer 1 determines that the connection is established and performs the third polling. At the time when the third polling is completed, it is determined that both the previous polling result and the current polling result are line abnormalities, so the master computer 1 determines that the slave computer 2-1 is not connected. The response time is the time from the last data communication to the next communication.
The longest response time at this time is the time from the last data communication until it is determined that there is no line.
Therefore, the longest response time is about three polling times.

【0021】また、マスタコンピュータ1からスレーブ
コンピュータ2−1〜2−10に伝送されるチェックコ
マンドは、最短で1.6秒の周期、最長で1.76秒の
周期で伝送されてくる。従って、スレーブコンピュータ
2−1〜2−10はチェックコマンドが送出されてきて
から1.5周期、つまり2.4秒の間に次のチェックコ
マンドが送出されなければ回線無しと判断する。なお、
上記の通信方法は光ファイバ建設工事後の回線チェッ
ク、回線の劣化あるいは回線障害の有無の判定に用いる
ことができ、また、該通信方法は、光通信のみに限るも
のではなく、同軸ケーブル等を用いた電気通信にも適用
可能である。
The check command transmitted from the master computer 1 to the slave computers 2-1 to 2-10 is transmitted at a minimum period of 1.6 seconds and at a maximum period of 1.76 seconds. Therefore, the slave computers 2-1 to 2-10 determine that there is no line if the next check command is not sent within 1.5 cycles, that is, 2.4 seconds after the check command is sent. In addition,
The above communication method can be used for checking the line after the optical fiber construction work and for determining the presence or absence of the line deterioration or the line failure. Further, the communication method is not limited to the optical communication, and a coaxial cable or the like can be used. It is also applicable to the used telecommunications.

【0022】[0022]

【発明の効果】以上説明したように、この発明による通
信線の接続状態判定方法においては、送信モードおよび
受信モードを択一的に切換可能な送受信手段を用いて、
予め定められた手順で該送受信手段のモードを切換えて
いるので、コストダウンを図った通信システムにおい
て、1つのマスタコンピュータとN個のスレーブコンピ
ュータとの間で1:N半二重通信が可能となるという効
果がある。また、マスタコンピュータはスレーブコンピ
ュータに対してポーリングを繰り返し行っており、前記
スレーブコンピュータに対する少なくとも1回のポーリ
ング結果に基づいて該スレーブコンピュータへの回線の
状態を判定している。これにより、複数通信線の接続状
態を判定することが可能となるという効果がある。ま
た、スレーブコンピュータは、マスタコンピュータから
伝送されてきたチェックコマンドに基づいて該マスタコ
ンピュータへの回線の状態を判断しているので、スレー
ブコンピュータが通信線の接続状態を判定することが可
能となるという効果がある。
As described above, in the method for determining the connection state of the communication line according to the present invention, the transmitting / receiving means capable of selectively switching the transmission mode and the reception mode is used,
Since the mode of the transmitting / receiving means is switched according to a predetermined procedure, 1: N half-duplex communication is possible between one master computer and N slave computers in a communication system for cost reduction. There is an effect that. Further, the master computer repeatedly polls the slave computer, and determines the state of the line to the slave computer based on the result of polling the slave computer at least once. As a result, it is possible to determine the connection state of the plurality of communication lines. Further, since the slave computer determines the state of the line to the master computer based on the check command transmitted from the master computer, the slave computer can determine the connection state of the communication line. effective.

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

【図1】 この発明の一実施例による1:Nの半二重通
信を実現する方法を示すフローチャートである。
FIG. 1 is a flowchart showing a method for realizing 1: N half-duplex communication according to an embodiment of the present invention.

【図2】 本発明の通信線の接続状態判定方法が適用さ
れる通信システムの概略構成を示すブロック図である。
FIG. 2 is a block diagram showing a schematic configuration of a communication system to which the communication line connection state determination method of the present invention is applied.

【図3】 従来技術による遠距離コンピュータ間で1:
1の半二重通信を行う機器の構成例を示すブロック図で
ある。
FIG. 3 is a diagram illustrating a case where a long-distance computer according to the related art has a 1:
FIG. 3 is a block diagram showing a configuration example of a device that performs half-duplex communication of No. 1.

【図4】 CMI変調及びCMI復調の原理を示すタイ
ミングチャートである。
FIG. 4 is a timing chart showing the principle of CMI modulation and CMI demodulation.

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

1…マスタコンピュータ、2−1,2−2,2−N…ス
レーブコンピュータ、5−1,5−2,5−N…光通信
機、5−1a,5−2a,5−Na…LD(レーザダイ
オード)、6…カプラ
1 ... Master computer, 2-1, 2-2, 2-N ... Slave computer, 5-1, 5-2, 5-N ... Optical communication device, 5-1a, 5-2a, 5-Na ... LD ( Laser diode), 6 ... Coupler

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 マスタとして機能する1つのマスタコン
ピュータと該マスタコンピュータのスレーブとして機能
するN(Nは2以上の整数)個のスレーブコンピュータ
とを、送信モードおよび受信モードを択一的に切換可能
な送受信手段を介して1心線を1:N分岐してなる通信
網に接続し、前記マスタコンピュータと前記スレーブコ
ンピュータとの間でデータ通信を行う通信システムにお
ける通信線の接続状態判定方法であって、 前記マスタコンピュータから前記スレーブコンピュータ
へ予め設定されたチェックコマンドを送信する第1の過
程と、 前記マスタコンピュータが該スレーブコンピュータから
の返信信号を待つとともに、該スレーブコンピュータ
が、前記マスタコンピュータから伝送されてきた前記チ
ェックコマンドに基づいて前記マスタコンピュータへの
回線の状態を判断し、この判断結果に対応する前記返信
信号を前記マスタコンピュータへ送信する第2の過程
と、 前記マスタコンピュータと前記スレーブコンピュータと
の間で、予め設定された期間だけデータ通信を行う第3
の過程とを有し、 前記第1の過程〜第3の過程からなるポーリングを繰り
返し行うとともに、前記スレーブコンピュータに対する
少なくとも1回のポーリング結果に基づいて該スレーブ
コンピュータへの回線の状態を判定することを特徴とす
る通信線の接続状態判定方法。
1. A transmission mode and a reception mode can be selectively switched between one master computer functioning as a master and N (N is an integer of 2 or more) slave computers functioning as slaves of the master computer. A method for determining a connection state of a communication line in a communication system in which data is communicated between the master computer and the slave computer by connecting one core wire to a communication network having a 1: N branch through various transmission / reception means. And a first step of transmitting a preset check command from the master computer to the slave computer, the master computer waiting for a reply signal from the slave computer, and the slave computer transmitting from the master computer. Based on the check command that has been The second step of determining the state of the line to the master computer and transmitting the reply signal corresponding to the determination result to the master computer, and the preset process between the master computer and the slave computer The third that carries out data communication only for a certain period
And repeatedly determining the state of the line to the slave computer based on at least one polling result of the slave computer. And a method for determining a connection state of a communication line.
JP19216595A 1995-07-27 1995-07-27 Method for judging connecting state of communication line Pending JPH0946280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19216595A JPH0946280A (en) 1995-07-27 1995-07-27 Method for judging connecting state of communication line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19216595A JPH0946280A (en) 1995-07-27 1995-07-27 Method for judging connecting state of communication line

Publications (1)

Publication Number Publication Date
JPH0946280A true JPH0946280A (en) 1997-02-14

Family

ID=16286776

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19216595A Pending JPH0946280A (en) 1995-07-27 1995-07-27 Method for judging connecting state of communication line

Country Status (1)

Country Link
JP (1) JPH0946280A (en)

Similar Documents

Publication Publication Date Title
US4850047A (en) Optical bus communication system utilizing frame format signals
US4850042A (en) Dual media local area network interfacing
US5161151A (en) System and method for controlling multiplex communications between master station and slave stations
US4829512A (en) Loop-back control apparatus for a loop network having duplicate optical fiber transmission lines
JPH0638601B2 (en) Optical composite transceiver
JPH11511620A (en) System, method and apparatus for monitoring fiber optic cables
CA1288836C (en) Contention control system
JPH0259664B2 (en)
US4416008A (en) Dual loop type data highway system
JPH0946280A (en) Method for judging connecting state of communication line
US5623515A (en) Data communication system for reducing a risk of transmission errors
JP2766242B2 (en) Bus system for printing press
JPS6276948A (en) Automatic level equalization method in local network
US4872006A (en) Data transmission system
US6819830B2 (en) System and method for communicating data in a network using backchannel signaling
GB2226202A (en) Optical transmission device
JP3154250B2 (en) Transmission line monitoring method for optical transmission system
JP2956391B2 (en) Subscriber line interface of optical subscriber transmission equipment
JP2550878B2 (en) Optical transceiver circuit
JP2690602B2 (en) Cable connector disconnection detection circuit
JPH0817398B2 (en) Abnormality detection method in data transmission system
KR100236791B1 (en) Control method of multi point access communication system by transmitting line detecting circuit
JPH0530334B2 (en)
JPH01253332A (en) Abnormality detecting system for communication system
KR19980066194A (en) Shear processor for distribution automation