JPS6238632A - Optical fiber communication method - Google Patents

Optical fiber communication method

Info

Publication number
JPS6238632A
JPS6238632A JP60179032A JP17903285A JPS6238632A JP S6238632 A JPS6238632 A JP S6238632A JP 60179032 A JP60179032 A JP 60179032A JP 17903285 A JP17903285 A JP 17903285A JP S6238632 A JPS6238632 A JP S6238632A
Authority
JP
Japan
Prior art keywords
data
reception
receiver
mode
optical transmitter
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
JP60179032A
Other languages
Japanese (ja)
Inventor
Katsuhiko Oimura
老邑 克彦
Yuji Ogawa
小川 裕士
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP60179032A priority Critical patent/JPS6238632A/en
Publication of JPS6238632A publication Critical patent/JPS6238632A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bidirectional Digital Transmission (AREA)
  • Optical Communication System (AREA)

Abstract

PURPOSE:To attain optical fiber communication by one kind of optical transmitter/receiver independently of master/slave equipments by changing over the mode into the reception mode so as to allow the system to be in standby with the data reception from an opposite equipment after the data is sent with the transmission mode. CONSTITUTION:An optical transmitter/receiver 1 consists of an optical transmitter/receiver 2 executing transmission/reception of a data to an optical fiber and a controller 3 composing of a CPU controlling the transmission/ reception of the optical transmitter/receiver 2. When a power at the station A is applied at a point of time tA, after an optical transmitter/receiver of a station A sends a data (a) with the transmission mode at first and is in standby with the data reception from an opposite station B while the mode is switched to the reception mode. The optical transmitter/receiver of the station A receives a data (b), is brought into the transmission mode and sends next a data C, is switched to the reception mode to be in standby with the data reception from the opposite station B. Thus, one kind of the optical transmitter/receiver is to be manufactured, the mass-production cost is made cheaper and the handling and management are facilitated.

Description

【発明の詳細な説明】 〈発明の技術分野〉 この発明は、1本の光ファイバを用いて双方向通信を行
うための光ファイバ通信方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to an optical fiber communication method for performing bidirectional communication using a single optical fiber.

〈発明の概要〉 この発明は、光送受信装置の電源オン時は、まず送信モ
ードでデータ送信を行った後、受信モードに切り換えて
相手装置からのデータ受信に待機させると共に、以下受
信モード中にデータ受信があると、送信モードに切り換
えてデータ送信させ、送信完了後は受信モードに切り換
えて相手装置からのデータ受信に待機させるようにして
あり、これにより親機、子機の区別なしに、1機種の光
送受信装置をもって光ファイバ通信を可能としている。
<Summary of the Invention> When an optical transmitting/receiving device is powered on, it first transmits data in a transmitting mode, then switches to a receiving mode and waits to receive data from the other party's device. When data is received, it switches to transmit mode and sends the data, and after transmission is completed, it switches to receive mode and waits to receive data from the other device. Optical fiber communication is possible with one type of optical transmitter/receiver.

〈発明の背景〉 先般この発明の出願人は、1本の光ファイバを用いて双
方向通信が行えるよう構成した光送受信装置を提案した
(実願昭58−198063号)。
<Background of the Invention> The applicant of the present invention recently proposed an optical transmitter/receiver device configured to perform bidirectional communication using a single optical fiber (Utility Application No. 198063/1983).

この種装置においては、送信と受信との切換えが必要と
なるが、この場合にもし自局と相手局とが同じタイミン
グで送受信の切換えを行うと、全く通信ができなくなる
。このような事態を避けるため、一方の光送受信装置は
親機、他方の光送受信装置は子機とし、親機の指示に基
づき親機および子機の送受信をそれぞれ切り換える方式
が提案された(「電子科学J1980年5月号、第55
〜59頁)。ところがこの方式を実施するには、光送受
信装置として親機および子機の2機種を製作する必要が
あり、量産コストが高価となるばかりでなく、その取扱
いや管理が煩雑となり、殊に設置時は親機と子機との組
合わせに留意する必要がある等の問題があった。
This type of device requires switching between transmission and reception, but in this case, if the local station and the other station switch between transmission and reception at the same timing, no communication will be possible. In order to avoid such a situation, a method was proposed in which one optical transmitter/receiver is a base unit and the other optical transmitter/receiver is a slave unit, and the transmission and reception of the base unit and slave unit are switched based on instructions from the base unit (“ Electronic Science J May 1980 issue, No. 55
~pages 59). However, in order to implement this method, it is necessary to manufacture two types of optical transmitter/receiver devices: a base unit and a slave unit, which not only increases mass production costs but also makes handling and management complicated, especially during installation. However, there were problems such as the need to be careful about the combination of the parent device and the slave device.

〈発明の目的〉 この発明は、上記問題を解消するためのものであって、
親機と子機との区別を設けることなく1機種の光送受信
装置をもって双方向通信を行うことのできる新規な光フ
ァイバ通信方法を提供することを目的とする。
<Object of the invention> This invention is intended to solve the above problems,
It is an object of the present invention to provide a novel optical fiber communication method that allows bidirectional communication to be performed using one type of optical transmitting/receiving device without making a distinction between a parent device and a slave device.

〈発明の構成および効果〉 上記目的を達成するため、この発明では、1本の光ファ
イバで結ばれた光送受信装置間で双方向通信を行う通信
システムにおいて、前記光送受信装置は、電源オンまた
はリセット時に、まず送信モードでデータ送信を行った
後、受信モードに切り換えて相手装置からのデータ受信
に待機させると共に、以下受信モード中にデータ受信が
あると、送信モードに切り換えてデータ送信させ、送信
完了後は受信モードに切り換えて相手装置からのデータ
受信に待機させることにした。
<Configuration and Effects of the Invention> In order to achieve the above object, the present invention provides a communication system that performs bidirectional communication between optical transmitting and receiving devices connected by a single optical fiber, in which the optical transmitting and receiving device is powered on or When resetting, the device first transmits data in transmit mode, then switches to receive mode and waits to receive data from the other device.If data is received during receive mode, it switches to transmit mode and transmits data, After the transmission is complete, the device switches to receive mode and waits to receive data from the other device.

この発明によれば、親機と子機との区別を設けることな
く1機種の光送受信装置をもって双方向通信を行うこと
ができるから、光送受信装置として1機種製作すればよ
く、量産コストが安価となるばかりでなく、その取扱い
や管理が容易となり、また設置時には親機と子機との組
合せに留意する必要がない等、発明目的を達成した顕著
な効果を奏する。
According to this invention, two-way communication can be performed using one type of optical transmitter/receiver without making a distinction between a master unit and a slave unit, so it is only necessary to manufacture one type of optical transmitter/receiver, and the mass production cost is low. Not only does it become easier to handle and manage, it also eliminates the need to pay attention to the combination of the parent unit and slave unit during installation, achieving the remarkable effects of achieving the purpose of the invention.

〈実施例の説明〉 第1図はこの発明の光ファイバ通信方法の原理を説明す
るための図であって、同図には、1本の光ファイバで結
ばれたA、B各局における送受信動作を互いに関連付け
て示しである。
<Description of Embodiments> Fig. 1 is a diagram for explaining the principle of the optical fiber communication method of the present invention, and the figure shows transmission and reception operations at each station A and B connected by one optical fiber. are shown in relation to each other.

第1図において、時間tAO時点でA局側の電源が投入
されると、A局の光送受信装置は、まず送信モードでデ
ータaを送信した後、受信モードに切り換えて相手局B
からのデータ受信に待機する。この時点ではB局側は、
未だ電源が投入されておらず、従って先程送信されたデ
ータaは無効となる。
In FIG. 1, when the power of station A is turned on at time tAO, the optical transmitter/receiver of station A first transmits data a in transmission mode, then switches to reception mode and
Wait to receive data from. At this point, station B side is
The power has not been turned on yet, so the data a sent earlier is invalid.

つぎに時間t、の時点でB局側の電源が投入された場合
、B局の光送受信装置では、まず送信モードでデータb
を送出し、しかる後受信モードに切り換わって相手局A
からのデータ受信に待機する。このデータbは、A局側
が受信モードで待機中であるから、A局の光送受信装置
によって受信される。そしてA局の光送受信装置は、デ
ータ受信後、送信モードに切り換わってつぎにデータC
を送出し、しかる後受信モードに切り換わって相手局B
からのデータ受信に待機する。
Next, when the power of station B is turned on at time t, the optical transmitter/receiver of station B first transmits data b in transmission mode.
After that, it switches to reception mode and the other station A
Wait to receive data from. This data b is received by the optical transmitter/receiver of the A station since the A station is in standby in reception mode. After receiving the data, the optical transmitter/receiver of station A switches to transmission mode and then transmits data C.
After that, it switches to reception mode and the other station B
Wait to receive data from.

つぎのデータdについても同様の1順でB局から送信さ
れ、またA局にて受信されるもので、その結果B局側の
光送受信装置は受信モードに切り換わって相手局Aから
のデータ受信に待機する。
The next data d is also transmitted from station B in the same order and received at station A. As a result, the optical transmitter/receiver at station B switches to receive mode and receives the data from station A. Wait for reception.

第2図は、この発明の光ファイバ通信方法の実施に用い
られる光送受信装置1の構成例を示す。
FIG. 2 shows an example of the configuration of an optical transmitter/receiver 1 used to implement the optical fiber communication method of the present invention.

図示例の装置1は、光ファイバに対するデータの送受信
を実行する光送受信機2と、光送受信機2の送受信動作
をコントロールするCPU(Central  Pro
cessing  Unit)より成る制御装置3 (
以下、単にrcPUJという)とから構成されている。
The illustrated device 1 includes an optical transceiver 2 that transmits and receives data to and from an optical fiber, and a CPU (Central Pro) that controls the transmission and reception operations of the optical transceiver 2.
A control device 3 consisting of a cessing unit (
(hereinafter simply referred to as rcPUJ).

光送受信機2は、受信データをCPU3へ送り出すため
のOUT端子、送信データをCPU3から取り込むため
のIN端子の他、送受信モードを設定するためのT/R
端子を備えており、このT/R端子は、そのレベルが“
Lo−”のときは送信モードに、また“旧gh”のとき
は受信モードに、それぞれ設定される。
The optical transceiver 2 has an OUT terminal for sending received data to the CPU 3, an IN terminal for taking in transmitted data from the CPU 3, and a T/R for setting the transmitting/receiving mode.
This T/R terminal has a level “
When it is set to "Lo-", the transmission mode is set, and when it is set to "old gh", it is set to the reception mode.

前記CPU3は、算術演算部4(以下、単にrALUJ
という)と、それぞれ8ビット構成の第1〜第3の入出
カポ−)5,6.7と、通信コントローラ8とから成り
、これら各構成がバス9により結ばれている。図示例の
場合、前記入出力ボートのうち、第1ポート5を入力用
、第2ボート6を出力用として用い、また第3ボート7
の第8ビツト目を前記T/R端子の制御用として用いて
いる。
The CPU 3 includes an arithmetic operation unit 4 (hereinafter simply rALUJ).
, first to third input/output capacitors) 5, 6.7 each having an 8-bit configuration, and a communication controller 8, and these components are connected by a bus 9. In the illustrated example, among the input/output boats, the first port 5 is used for input, the second port 6 is used for output, and the third port 7 is used for input.
The eighth bit is used for controlling the T/R terminal.

通信コントローラ8は、コントコールレジスタ10 (
以下、r 5CON Jという)、シリアル入カバソフ
ァ11 (以下、rIBUFJという)、シリアル出カ
バソファ12 (以下、r 0BUF Jという)を含
むもので、IBUFIIは光送受信機2で受信されたシ
リアルデータをパラレルデータに変換してバス9へ出力
し、また0BUF12はバス9から取り込んだパラレル
データをシリアルデータに変換して光送受信機2へ送出
する。
The communication controller 8 has a control register 10 (
IBUFII converts the serial data received by the optical transceiver 2 into parallel The 0BUF 12 converts the parallel data taken in from the bus 9 into serial data and sends it to the optical transceiver 2.

前記5CONIOには、通信制御用の3種類のフラグ、
すなわち受信イネーブルフラグ(以下、rRENフラグ
」という)、受信完了フラグ(以下、rRIフラグ」と
いう)、送信完了フラグ(以下、rTITIフラグいう
)がセントされる。RENフラグは、それが“0″のと
き受信が禁止され、これに対し“1″がセットされると
、受信可能状態となる。さらにR1フラグは受信が完了
したときに“1”に、またTIフラグは送信が完了した
ときに“1″に、それぞれセットされると共に、これら
フラグは第3図に示すプログラムによってクリアされる
(第3図のステップ3,10参照)。
The 5CONIO has three types of flags for communication control,
That is, a reception enable flag (hereinafter referred to as "rREN flag"), a reception completion flag (hereinafter referred to as "rRI flag"), and a transmission completion flag (hereinafter referred to as rTITI flag) are sent. When the REN flag is "0", reception is prohibited, and when it is set to "1", reception is enabled. Furthermore, the R1 flag is set to "1" when reception is completed, and the TI flag is set to "1" when transmission is completed, and these flags are cleared by the program shown in Figure 3. (See steps 3 and 10 in Figure 3).

第3図は上記CPU3における送受信制御動作の流れを
示す。
FIG. 3 shows the flow of transmission/reception control operations in the CPU 3.

今スタート時点で光送受信装置2の電源がオンまたはリ
セットされた場合を想定すると、前記5CONIOのそ
れぞれフラグは、RENフラグが“0″、R■フラグが
“1″、TIフラグが“0”に初期設定される。つぎに
ステップ1(図中、rsTIJで示す)では、第3ボー
ト7に16進表示で“00′(図中、Hは16進を意味
する)が書き込まれ、これにより第3ボート7の第8ビ
ツト目は“Low″のレベルとなって、光送受信装置1
は送信モードとなる。
Assuming that the power of the optical transmitter/receiver 2 is turned on or reset at the current start, the respective flags of the 5 CONIO are as follows: the REN flag is "0", the R■ flag is "1", and the TI flag is "0". Initialized. Next, in step 1 (indicated by rsTIJ in the figure), "00'" (H in the figure means hexadecimal) is written in the third boat 7 in hexadecimal notation. The 8th bit becomes “Low” level, and the optical transmitter/receiver 1
is in transmit mode.

つぎのステップ2では、第1ポート5より送信データが
読み込まで、0BUF12に書き込まれる。
In the next step 2, transmission data is read from the first port 5 and written to 0BUF12.

そしてつぎのステップ3では、5CONIOのRIフラ
グを“0”にクリアした後、0BUF12はパラレル−
シリアル変換したデータを光送受信機2へ出力して、こ
れが相手局へ送信される。この送信が完了すると、TI
フラグが“1”となってステップ4の判定がYES”と
なり、つぎのステップ5で第3ボート7に16進表示で
“80”が書き込まれる。これにより第3ボート7は、
第8ビー/ ト目が°旧gh”のレベルとなり、光送受
信装置2は受信モードとなる。そして続くステップ6で
、5CONIOのRENフラグを“1”にセットして、
装置1は受信可能状態に設定され、相手局からのデータ
受信が完了するまで待機状態となる。この場合もし相手
局の電源がオフ状態にあるときは、光送受信装置2は受
信モードのままでデータ受信に待機することになる。
In the next step 3, after clearing the RI flag of 5CONIO to "0", 0BUF12 is set to parallel
The serially converted data is output to the optical transceiver 2 and transmitted to the other party. Once this transmission is complete, the TI
The flag becomes "1" and the determination in step 4 becomes YES, and in the next step 5 "80" is written in hexadecimal notation to the third boat 7. As a result, the third boat 7
The 8th beat reaches the level of "Old gh", and the optical transmitting/receiving device 2 enters the receiving mode.Then, in the following step 6, the REN flag of 5CONIO is set to "1",
The device 1 is set to a receivable state and remains in a standby state until data reception from the partner station is completed. In this case, if the power of the partner station is off, the optical transmitter/receiver 2 remains in the reception mode and stands by to receive data.

かくして相手局からのデータ受信があって、その受信が
完了となると、ステップ7のrRT=1?」の判定が“
YES”となり、つぎのステップ8において、IBUF
IIに書き込まれた受信データはシリアル−パラレル変
換された上で、バス9を経て第2ボート6へ送られる。
In this way, data is received from the partner station, and when the reception is completed, rRT=1? in step 7? ” is judged as “
YES”, and in the next step 8, IBUF
The received data written in II is serial-parallel converted and then sent to second port 6 via bus 9.

つぎにステ7ブ9では、5CONIOのRENフラグを
“0”にクリアして受信禁止状態に設定し、つぎのステ
ップ10で、つぎのデータ送信に備えて5CONIOの
TIフラグをO′にクリアしてステップ1へ戻る。
Next, in step 79, the REN flag of 5CONIO is cleared to "0" and reception is prohibited, and in the next step 10, the TI flag of 5CONIO is cleared to O' in preparation for the next data transmission. and return to step 1.

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

第1図はこの発明の光ファイバ通信方法の原理を説明す
るための図、第2図はこの発明の実施に用いられる光送
受信装置の構成例を示す図、第3図は光送受信装置の送
受信制御動作を示すフローチャートである。 1・・・・光送受信装置  2・・・・光送受信機3・
・・・CPU
FIG. 1 is a diagram for explaining the principle of the optical fiber communication method of the present invention, FIG. 2 is a diagram showing an example of the configuration of an optical transmitter/receiver used in implementing the invention, and FIG. 3 is a diagram for explaining the transmitter/receiver of the optical transmitter/receiver. It is a flow chart showing control operation. 1... Optical transceiver device 2... Optical transceiver 3.
...CPU

Claims (1)

【特許請求の範囲】[Claims] 1本の光ファイバで結ばれた光送受信装置間で双方向通
信を行う通信システムにおいて、前記光送受信装置は、
電源オンまたはリセット時に、まず送信モードでデータ
送信を行った後、受信モードに切り換えて相手装置から
のデータ受信に待機させると共に、以下受信モード中に
データ受信があると、送信モードに切り換えてデータ送
信させ、送信完了後は受信モードに切り換えて相手装置
からのデータ受信に待機させることを特徴とする光ファ
イバ通信方法。
In a communication system that performs bidirectional communication between optical transmitting and receiving devices connected by a single optical fiber, the optical transmitting and receiving device includes:
When the power is turned on or reset, data is first transmitted in transmit mode, then switched to receive mode to wait for data reception from the other device. An optical fiber communication method characterized by transmitting data, and after completion of transmission, switching to a receiving mode and waiting for data reception from a partner device.
JP60179032A 1985-08-13 1985-08-13 Optical fiber communication method Pending JPS6238632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60179032A JPS6238632A (en) 1985-08-13 1985-08-13 Optical fiber communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60179032A JPS6238632A (en) 1985-08-13 1985-08-13 Optical fiber communication method

Publications (1)

Publication Number Publication Date
JPS6238632A true JPS6238632A (en) 1987-02-19

Family

ID=16058917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60179032A Pending JPS6238632A (en) 1985-08-13 1985-08-13 Optical fiber communication method

Country Status (1)

Country Link
JP (1) JPS6238632A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01122239A (en) * 1987-11-06 1989-05-15 Hitachi Ltd Communication controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01122239A (en) * 1987-11-06 1989-05-15 Hitachi Ltd Communication controller

Similar Documents

Publication Publication Date Title
JPH04239950A (en) Connection holding control system
JPS6238632A (en) Optical fiber communication method
JPH0435246A (en) Data communication system
JP3807064B2 (en) Portable information terminal
JP3213030B2 (en) Communication control method
JP2575514B2 (en) Data communication device
JPH10290269A (en) Interface conversion circuit
JPH07118692B2 (en) Data repeater
JPH0530198Y2 (en)
JPH0323726Y2 (en)
JPH03265250A (en) Communication controller
JPS59208632A (en) Method for transferring information between processors
JPS62247644A (en) Data transmission system
JPS6055756A (en) Communication controller
JPS6128290A (en) Setting system of telephone set number of key telephone set
JPH06232815A (en) Optical transmission module
JPS63240661A (en) Data communication equipment
JPH11177654A (en) Data transmission reception method
JPS5935223B2 (en) Polarity reversal control method for communication control equipment
JPS6284330A (en) Disk controller
JPH06252979A (en) Asynchronous serial data transmission method
JPS63141136A (en) Bus connection disconnecting device
JPS6033759A (en) Direct coupling system between communication controllers
JPH0630505B2 (en) Serial communication system
JPS6051046A (en) Digital signal transmitting system