JPH07297790A - Serial communication circuit and communication system for half-duplex communication system - Google Patents
Serial communication circuit and communication system for half-duplex communication systemInfo
- Publication number
- JPH07297790A JPH07297790A JP6114016A JP11401694A JPH07297790A JP H07297790 A JPH07297790 A JP H07297790A JP 6114016 A JP6114016 A JP 6114016A JP 11401694 A JP11401694 A JP 11401694A JP H07297790 A JPH07297790 A JP H07297790A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- transmission
- data
- communication
- reception
- 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
Landscapes
- Computer And Data Communications (AREA)
- Optical Communication System (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数のコンピュータ装
置との間で相互に信号の送受信が可能な半二重通信方式
のシリアル通信回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a half-duplex communication serial communication circuit capable of mutually transmitting and receiving signals to and from a plurality of computer devices.
【0002】[0002]
【従来の技術】従来の半二重通信方式のシリアル通信回
路としては、図5に示すような構成となっている。符号
1は端末側のコンピュータ装置Aに設けられたシリアル
通信回路であり、このシリアル通信回路1は通信制御回
路2と通信変換回路3とから構成されている。また、符
号1’はホスト側のコンピュータ装置Bに設けられたシ
リアル通信回路であり、端末側のシリアル通信回路1と
同様に、通信制御回路2’と通信変換回路3’とから構
成されている。符号5は端末側の通信変換回路3とホス
ト側の通信変換回路3’との間で光信号の送受信を行な
うための空間からなる無線方式の半二重通信方式の通信
回線である。端末側の通信制御回路2とマイクロプロセ
ッサ6との間は、アドレスバス7およびデータバス8で
接続され、またホスト側の通信制御回路2’とマイクロ
プロセッサ6’との間は、アドレスバス7’およびデー
タバス8’で接続されている。なお、コンピュータ装置
A、B間の通信を光を用いて有線方式で行なう場合に
は、両装置を光ケーブルを用いて接続し、この光ケーブ
ルを介して送受信が行なわれることになる。2. Description of the Related Art A conventional half-duplex communication serial communication circuit has a structure as shown in FIG. Reference numeral 1 is a serial communication circuit provided in the computer A on the terminal side, and this serial communication circuit 1 is composed of a communication control circuit 2 and a communication conversion circuit 3. Further, reference numeral 1'denotes a serial communication circuit provided in the computer device B on the host side, and like the serial communication circuit 1 on the terminal side, is composed of a communication control circuit 2'and a communication conversion circuit 3 '. . Reference numeral 5 denotes a wireless half-duplex communication system communication line including a space for transmitting and receiving an optical signal between the communication conversion circuit 3 on the terminal side and the communication conversion circuit 3'on the host side. An address bus 7 and a data bus 8 are connected between the communication control circuit 2 on the terminal side and the microprocessor 6, and an address bus 7'is connected between the communication control circuit 2'on the host side and the microprocessor 6 '. And a data bus 8 '. When the communication between the computer devices A and B is carried out by using a wire system using light, both devices are connected using an optical cable, and transmission / reception is carried out via this optical cable.
【0003】端末側およびホスト側の通信制御回路2、
2’はその内部にパラレルのデータをシリアルのデータ
へ変換するための変換回路およびシリアルのデータをパ
ラレルのデータへ変換するための変換回路を有してい
る。また、通信変換回路3、3’は電気信号を光信号へ
変換して通信回線5へ送信するための送信部3aおよび
通信回路5から入力される光信号を電気信号へ変換する
ための受信部3bを有している。A communication control circuit 2 on the terminal side and the host side,
Reference numeral 2'includes therein a conversion circuit for converting parallel data into serial data and a conversion circuit for converting serial data into parallel data. The communication conversion circuits 3 and 3 ′ are a transmission unit 3 a for converting an electric signal into an optical signal and transmitting it to the communication line 5, and a reception unit for converting an optical signal input from the communication circuit 5 into an electric signal. 3b.
【0004】図6は、端末側のコンピュータ装置Aの通
信変換回路3とホスト側のコンピュータ装置Bの通信変
換回路3’とが、互いに光信号として赤外線を使用して
送受信する場合の具体的な構造の一例を示す概略断面図
である。本実施例では、端末側のコンピュータ装置A本
体下方の凹部21に設けられた通信変換回路3とホスト
側のコンピュータ装置B上方の凹部22に設けられたに
通信変換回路3’とが所定の隙間を設けて互いに対向す
るように配置されている。端末側の通信変換回路3内に
は、電気信号を光信号へ変換して空間へ送信するための
発光ダイオード等からなる送信部3aと、前記空間から
の光信号を受信して電気信号へ変換するためのフォトダ
イオード等からなる受信部3bとが設けられている。FIG. 6 shows a concrete example of the case where the communication conversion circuit 3 of the computer device A on the terminal side and the communication conversion circuit 3'of the computer device B on the host side transmit and receive each other by using infrared rays as optical signals. It is a schematic sectional drawing which shows an example of a structure. In this embodiment, the communication conversion circuit 3 provided in the recess 21 below the main body of the computer A on the terminal side and the communication conversion circuit 3'provided in the recess 22 above the computer B on the host side have a predetermined gap. Are provided so as to face each other. In the communication conversion circuit 3 on the terminal side, a transmitter 3a formed of a light emitting diode or the like for converting an electric signal into an optical signal and transmitting the same to a space, and an optical signal from the space are received and converted into an electric signal. And a receiver 3b including a photodiode or the like for the purpose.
【0005】また、ホスト側の通信変換回路3’内に
は、端末側の通信変換回路3と同様な送信部3a’と、
受信部3b’とが設けられている。なお、符号12は、
ガラス等からなる透明な部材であり、上述した凹部2
1、22内に異物が入らないようにこれら凹部21、2
2を覆うように設けられているものである。以上のよう
に、通信変換回路3、3’の各送信部3a、3a’と各
受信部3b、3b’とは、凹部21、22に形成された
空間23、24と透明部材12、12の厚みと両コンピ
ュータ装置間の間隔Cとによって隔てられた状態で互い
に対向する形となる。Further, in the communication conversion circuit 3'on the host side, a transmitter 3a 'similar to the communication conversion circuit 3 on the terminal side,
The receiver 3b 'is provided. The reference numeral 12 is
It is a transparent member made of glass or the like, and has the above-mentioned recess 2
In order to prevent foreign matter from entering the insides of the recesses 1, 22,
It is provided so as to cover 2. As described above, the transmitters 3a and 3a ′ and the receivers 3b and 3b ′ of the communication conversion circuits 3 and 3 ′ have the spaces 23 and 24 formed in the recesses 21 and 22 and the transparent members 12 and 12, respectively. They are opposed to each other in a state of being separated by the thickness and the distance C between both computer devices.
【0006】次に、図5および図6において、端末側の
コンピュータ装置Aがホスト側のコンピュータ装置Bか
らのデータを受信する場合についての動作を説明する。Next, referring to FIGS. 5 and 6, the operation when the computer A on the terminal side receives data from the computer B on the host side will be described.
【0007】ホスト側のコンピュータ装置Bのマイクロ
プロセッサ6’からのパラレルの送信データ9a’はデ
ータバス8’を介して通信制御回路2’へ入力され、こ
の入力されたパラレルの送信データ9a’は通信制御回
路2’によりシリアルの送信データ9b’へ変換され
る。この変換されたシリアルの送信データ9b’は通信
変換回路3’へ入力され、通信変換回路3’内の送信部
3a’により電気信号から通信するための光信号へ変換
され、この光信号は半二重通信方式の通信回線5の一つ
の手段である空間へ送出される。The parallel transmission data 9a 'from the microprocessor 6'of the computer B on the host side is input to the communication control circuit 2'through the data bus 8', and the input parallel transmission data 9a 'is It is converted into serial transmission data 9b 'by the communication control circuit 2'. The converted serial transmission data 9b 'is input to the communication conversion circuit 3', and converted from an electric signal to an optical signal for communication by the transmission unit 3a 'in the communication conversion circuit 3'. It is sent to the space which is one means of the communication line 5 of the dual communication system.
【0008】このようにして送出された光信号は、通信
回線5を介して端末側のシリアル通信回路1の通信変換
回路3内の受信部3bへ入力される。この入力された光
信号は通信変換回路3により、光信号から電気信号であ
るシリアルの受信データ10bへ変換されて通信制御回
路2に向けて出力される。この変換されたシリアルの受
信データ10bは、通信制御回路2によりパラレルの受
信データ10aへ変換され、このパラレルの受信データ
10aはデータバス8を介して通信制御回路2からマイ
クロプロセッサ6へ出力される。The optical signal thus transmitted is input to the receiving section 3b in the communication conversion circuit 3 of the serial communication circuit 1 on the terminal side via the communication line 5. The input optical signal is converted by the communication conversion circuit 3 from the optical signal into serial reception data 10b which is an electric signal, and is output to the communication control circuit 2. The converted serial reception data 10b is converted into parallel reception data 10a by the communication control circuit 2, and the parallel reception data 10a is output from the communication control circuit 2 to the microprocessor 6 via the data bus 8. .
【0009】次に、端末側のコンピュータ装置Aからホ
スト側のコンピュータ装置Bへデータを送信する場合に
ついての動作を説明する。Next, the operation of transmitting data from the computer A on the terminal side to the computer B on the host side will be described.
【0010】端末側のコンピュータ装置Aのマイクロプ
ロセッサ6からの送信データ9aはデータバス8を介し
て通信制御回路2へ入力され、この入力されたパラレル
の送信データ9aは通信制御回路2によりシリアルの送
信データ9bへ変換される。この変換されたシリアルの
送信データ9bは通信変換回路3へ入力され、通信変換
回路3内の送信部3aにより電気信号から通信するため
の光信号へ変換され、この光信号は通信回線5である空
間へ送出される。Transmission data 9a from the microprocessor 6 of the computer A on the terminal side is input to the communication control circuit 2 via the data bus 8, and the input parallel transmission data 9a is serialized by the communication control circuit 2. It is converted into transmission data 9b. The converted serial transmission data 9b is input to the communication conversion circuit 3 and converted by the transmission unit 3a in the communication conversion circuit 3 from an electric signal to an optical signal for communication. The optical signal is the communication line 5. It is sent to space.
【0011】この光信号は、通信回線5を介してホスト
側のシリアル通信回路1’の通信変換回路3’内の受信
部3b’へ入力される。この入力された光信号は通信変
換回路3b’により、シリアルの受信データ10b’へ
変換される。この変換されたシリアルの受信データ10
b’は、通信制御回路2’によりパラレルの受信データ
10a’へ変換され、このパラレルの受信データ10
a’はデータバス8’を介してマイクロプロセッサ6’
へ入力される。This optical signal is input to the receiving section 3b 'in the communication conversion circuit 3'of the serial communication circuit 1'on the host side via the communication line 5. This input optical signal is converted into serial reception data 10b 'by the communication conversion circuit 3b'. This converted serial reception data 10
b'is converted into parallel reception data 10a 'by the communication control circuit 2', and this parallel reception data 10a 'is converted.
a'is the microprocessor 6'via the data bus 8 '
Is input to.
【0012】[0012]
【発明が解決しようとする課題】しかしながら、このよ
うな従来の半二重通信方式のシリアル通信回路にあって
は、端末側のコンピュータ装置Aとホスト側のコンピュ
ータ装置Bとの間で、互いに赤外線等からなる光信号を
用いて通信を行なう場合には、通常、従来のシリアル通
信回路1では、通信回路自体が常に送信および受信が可
能な状態、すなわち、アイドルモードに設定されている
ので、通信変換回路3の送信部3aから送信された光信
号が端末側の通信変換回路3とホスト側の通信変換回路
3’との間の部材による反射等により、誤って端末側の
通信変換回路3の受信部3bへ受信されると、誤ったデ
ータがコンピュータ装置Aに取り込まれてしまうという
大きな問題があった。However, in such a conventional half-duplex communication serial communication circuit, the terminal-side computer unit A and the host-side computer unit B are mutually infrared rays. In the case of performing communication using an optical signal composed of, etc., usually, in the conventional serial communication circuit 1, the communication circuit itself is always in a state in which transmission and reception are possible, that is, the idle mode is set. The optical signal transmitted from the transmission unit 3a of the conversion circuit 3 is erroneously reflected by a member between the communication conversion circuit 3 on the terminal side and the communication conversion circuit 3'on the host side, or the like. When received by the receiving unit 3b, there is a big problem that erroneous data is taken into the computer apparatus A.
【0013】また、この誤って受信された光信号が通信
変換回路3によりシリアルの受信データ10bへ変換さ
れ、この変換されたシリアルの受信データ10bが通信
制御回路2に入力されると、この受信データ10b自体
が誤入力のデータであるために、データのビットが欠落
したりしており、通信制御回路2がパリティチェックを
行なった際にエラーとなる。そして、このようなことが
頻繁に起きるとコンピュータ装置Aは通信回線5に異常
があったものと判断して通信が終了していないにもかか
わらず送受信動作を停止してしまうという問題もあっ
た。Further, when this erroneously received optical signal is converted into serial reception data 10b by the communication conversion circuit 3 and the converted serial reception data 10b is input to the communication control circuit 2, this reception signal is received. Since the data 10b itself is erroneously input data, data bits are missing, and an error occurs when the communication control circuit 2 performs a parity check. If such a situation frequently occurs, the computer A determines that there is an abnormality in the communication line 5 and stops the transmission / reception operation even though the communication is not completed. .
【0014】更に、端末側のコンピュータ装置Aとホス
ト側のコンピュータ装置Bとが、互いに通信回線5を介
してデータの送受信を行なっている場合には、端末側の
コンピュータ装置Aがホスト側のコンピュータ装置Bか
ら通信回線5を介して受信データ10aを受信している
ときに、ホスト側のコンピュータ装置Bが送信を一時中
断して、再度送信を行なうこと(通信するデータの量が
多い場合に発生し易い)がある。このようなときにホス
ト側のコンピュータ装置Bが送信を一時中断している間
に、端末側の操作者がホスト側からの受信するデータが
完了したものと間違って判断して、端末側のコンピュー
タ装置Aからホスト側のコンピュータ装置Bへの送信を
開始してしまうと、通信回線5でホスト側からの送信さ
れたデータと、端末側からの送信されたデータが混信し
て、両方の送受信動作がエラーになってしまい、このよ
うなエラーが発生した場合には、それぞれのコンピュー
タ装置A、Bがデータの再転送を要求することになるた
めに通信に要する時間が増加し、データの転送効率が悪
くなるというという問題も発生した。Further, when the terminal-side computer device A and the host-side computer device B are transmitting and receiving data via the communication line 5, the terminal-side computer device A is the host-side computer. While receiving the reception data 10a from the device B through the communication line 5, the host computer device B temporarily suspends the transmission and performs the transmission again (occurs when the amount of data to be communicated is large. Easy). In such a case, while the computer apparatus B on the host side temporarily suspends transmission, the operator on the terminal side erroneously determines that the data received from the host side has been completed, and the computer on the terminal side When the transmission from the device A to the computer device B on the host side is started, the data transmitted from the host side and the data transmitted from the terminal side interfere with each other on the communication line 5, and both transmission / reception operations are performed. Results in an error, and when such an error occurs, the computer devices A and B request the retransfer of the data, so that the time required for communication increases and the data transfer efficiency increases. There was also the problem that the value would get worse.
【0015】そこで本発明はこのような問題点に鑑みて
なされたものであり、複数のコンピュータ装置が、互い
に半二重通信方式でデータの送受信を行なう際に、送受
信データが混信することを防止し、送受信動作の信頼性
を向上させるとともに送受信データの転送効率を上げる
ことができる半二重通信方式のシリアル通信回路および
通信システムを提供することを目的としたものである。Therefore, the present invention has been made in view of the above problems, and prevents transmission / reception data from interfering with each other when a plurality of computer devices transmit / receive data to / from each other by a half-duplex communication method. However, it is an object of the present invention to provide a half-duplex communication serial communication circuit and a communication system capable of improving the reliability of transmission / reception operation and improving the transfer efficiency of transmission / reception data.
【0016】[0016]
【課題を解決するための手段】上記問題を解決するため
に、本発明の請求項1に記載の半二重通信方式のシリア
ル通信回路は、パラレルのデータをシリアルのデータへ
変換およびシリアルのデータをパラレルのデータへ変換
するための通信制御回路と、電気信号を通信するための
信号へ変換するための送信部および通信するための信号
を電気信号へ変換するための受信部とを有する通信変換
回路とを有する半二重通信方式のシリアル通信回路にお
いて、前記通信制御回路と前記通信変換回路との間に送
信データと受信データとを分離するための送受信分離回
路を設けたことを特徴とする。In order to solve the above problem, a half-duplex communication serial communication circuit according to claim 1 of the present invention converts parallel data into serial data and serial data. Conversion having a communication control circuit for converting data into parallel data, a transmitting unit for converting an electric signal into a signal for communicating, and a receiving unit for converting a signal for communicating into an electric signal In a half-duplex communication serial communication circuit having a circuit, a transmission / reception separation circuit for separating transmission data and reception data is provided between the communication control circuit and the communication conversion circuit. .
【0017】また、請求項2に記載の半二重通信方式の
シリアル通信回路は、前記送受信分離回路が送信データ
を検知するための送信データ検知回路と、受信データを
検知するための受信データ検知回路と、前記送受信分離
回路のモードを受信モード、送信モードまたはアイドル
モードへ切り換えるための動作モード切換回路と、送受
信データを転送するための時間を設定するためのモード
タイマー回路と、受信データを出力するための受信ゲー
ト回路とを有することを特徴とする。According to a second aspect of the serial communication circuit of the half-duplex communication system, the transmission / reception separation circuit detects a transmission data and a reception data detection circuit detects a reception data. A circuit, an operation mode switching circuit for switching the mode of the transmission / reception separation circuit to a reception mode, a transmission mode or an idle mode, a mode timer circuit for setting a time for transferring transmission / reception data, and output of reception data And a reception gate circuit for
【0018】また、請求項3に記載の半二重通信方式の
シリアル通信回路は、前記送受信分離回路に送信データ
を出力するための送信ゲート回路を設けたことを特徴と
する。A half-duplex communication serial communication circuit according to a third aspect is characterized in that a transmission gate circuit for outputting transmission data is provided to the transmission / reception separation circuit.
【0019】また、請求項4に記載の通信システムは、
前記通信制御回路と前記通信変換回路とを有するシリア
ル通信回路を有する複数のコンピュータ装置が互いに、
信号を送受信するための半二重通信方式の通信回線を介
して送受信を行なう通信システムにおいて、前記通信制
御回路と前記通信変換回路との間に送受信分離回路を設
けたことを特徴とする。The communication system according to claim 4 is
A plurality of computer devices having a serial communication circuit having the communication control circuit and the communication conversion circuit are mutually connected,
In a communication system that transmits and receives signals through a half-duplex communication line for transmitting and receiving signals, a transmission and reception separation circuit is provided between the communication control circuit and the communication conversion circuit.
【0020】また、請求項5に記載の半二重通信方式の
シリアル通信回路は、前記通信変換回路が電気信号を光
信号へ変換する手段と、光信号を電気信号へ変換する手
段とを有していることを特徴とする。A half-duplex communication serial communication circuit according to a fifth aspect of the present invention has means for converting the electrical signal into an optical signal by the communication conversion circuit, and means for converting the optical signal into an electrical signal. It is characterized by doing.
【0021】また、請求項6に記載の半二重通信方式の
シリアル通信回路は、前記光信号として赤外線を使用す
ることを特徴とする。A half-duplex communication serial communication circuit according to claim 6 uses infrared rays as the optical signal.
【0022】[0022]
【作用】請求項1に記載の本発明の半二重通信方式のシ
リアル通信回路によれば、送信データを送信する際に
は、前記送受信分離回路により受信データが通信制御回
路へ入力されることが阻止されることになり、送受信デ
ータが混信することを防止することができる。According to the half-duplex communication serial communication circuit of the present invention, when transmitting the transmission data, the transmission / reception separating circuit inputs the reception data to the communication control circuit. Therefore, the transmission / reception data can be prevented from interfering with each other.
【0022】また、請求項2に記載の半二重通信方式の
シリアル通信回路は、前記送受信分離回路が送信データ
検知回路と、受信データ検知回路と、動作モード切換回
路と、モードタイマー回路と、受信ゲート回路とを有し
ているので、送信データを送信する際に、前記通信制御
回路からの送信データが前記送受信分離回路内の前記送
信データ検知回路へ入力されると、前記送受信分離回路
が前記動作モード切換回路により送信モードとなり、前
記モードタイマー回路で設定された時間の間、前記送信
データが前記送受信分離回路から出力されるとともに前
記受信ゲート回路が閉じられる。前記送信データは前記
通信変換回路の前記送信部により通信するための信号へ
変換され、前記信号が前記送信部から出力される。前記
信号が反射等により、誤って前記通信変換回路の前記受
信部へ受信された際には、前記信号が前記受信部により
受信データへ変換され、前記受信データが前記送受信分
離回路内の前記受信ゲートへ入力されても前記受信ゲー
ト回路が閉じられているので、誤った受信データが前記
通信制御回路へ出力されることは阻止される。In the half-duplex communication serial communication circuit according to the second aspect, the transmission / reception separation circuit includes a transmission data detection circuit, a reception data detection circuit, an operation mode switching circuit, a mode timer circuit, Since it has a reception gate circuit, when the transmission data from the communication control circuit is input to the transmission data detection circuit in the transmission / reception separation circuit when transmitting the transmission data, the transmission / reception separation circuit The transmission mode is set by the operation mode switching circuit, and the transmission data is output from the transmission / reception separation circuit and the reception gate circuit is closed for the time set by the mode timer circuit. The transmission data is converted into a signal for communication by the transmission unit of the communication conversion circuit, and the signal is output from the transmission unit. When the signal is erroneously received by the reception unit of the communication conversion circuit due to reflection or the like, the signal is converted into reception data by the reception unit, and the reception data is received by the reception / transmission separation circuit. Since the reception gate circuit is closed even when input to the gate, erroneous reception data is prevented from being output to the communication control circuit.
【0023】また、請求項3に記載の半二重通信回路の
シリアル通信回路は、前記送受信分離回路に送信ゲート
回路が設けられているので、送信データを送信する際に
は、前記通信制御回路からの送信データが送受信分離回
路内の前記送信モード検知回路へ入力されると、前記送
受信分離回路が前記動作モード切換回路により送信モー
ドとなり、前記モードタイマー回路で設定された時間の
間、前記送信データが前記送受信分離回路から出力さ
れ、前記送信データは前記通信変換回路の前記送信部に
より通信するための信号へ変換され、前記信号が前記送
信部から出力される。このとき、前記通信変換回路内の
受信部に他の信号が入力された場合には、この信号が前
記受信部により受信データへ変換され、この受信データ
が前記送受信分離回路へ入力されることになるが、前記
送受信分離回路が送信モードとなっているため、前記受
信データは前記送受信分離回路内の受信ゲート回路によ
り前記通信制御回路への入力を遮断される。また、受信
データを受信する際には、前記送受信分離回路が受信モ
ードとなり、前記通信制御回路からの送信データが前記
送受信分離回路へ入力されても、前記送受信分離回路が
受信モードとなっているため、前記送信データは前記送
受信分離回路内の送信ゲート回路により遮断されて前記
通信変換回路に向けて出力されることはない。従って、
送受信データが混信することを防止することができる。Further, in the serial communication circuit of the half-duplex communication circuit according to the third aspect, since the transmission / reception separating circuit is provided with the transmission gate circuit, when transmitting the transmission data, the communication control circuit is provided. When the transmission data from is input to the transmission mode detection circuit in the transmission / reception separation circuit, the transmission / reception separation circuit enters the transmission mode by the operation mode switching circuit, and the transmission is performed during the time set by the mode timer circuit. Data is output from the transmission / reception separation circuit, the transmission data is converted into a signal for communication by the transmission unit of the communication conversion circuit, and the signal is output from the transmission unit. At this time, when another signal is input to the receiving section in the communication conversion circuit, this signal is converted into received data by the receiving section, and this received data is input to the transmission / reception separation circuit. However, since the transmission / reception separation circuit is in the transmission mode, the reception data is blocked from being input to the communication control circuit by the reception gate circuit in the transmission / reception separation circuit. Further, when receiving the reception data, the transmission / reception separation circuit is in the reception mode, and even if the transmission data from the communication control circuit is input to the transmission / reception separation circuit, the transmission / reception separation circuit is in the reception mode. Therefore, the transmission data is not cut off by the transmission gate circuit in the transmission / reception separation circuit and output to the communication conversion circuit. Therefore,
It is possible to prevent transmission / reception data from interfering with each other.
【0024】また、請求項4に記載の通信システムは、
通信制御回路と通信変換回路とを有するシリアル通信回
路を有する複数のコンピュータ装置が互いに、信号を送
受信するための半二重通信方式の通信回線を介して送受
信を行なう通信システムにおいて、前記通信制御回路と
前記通信変換回路との間に送受信分離回路を設けたこと
により、一方のコンピュータ装置が他方のコンピュータ
装置に向けて送信データを送信する際には、前記一方の
コンピュータ装置の送受信分離回路により、前記一方の
コンピュータ装置の通信制御回路へ受信データが入力さ
れることが阻止される。また、前記他方のコンピュータ
装置が前記一方のコンピュータ装置に向けて送信データ
を送信する際も同様である。これにより、複数のコンピ
ュータ装置が互いに通信を行なう際に、送信データと受
信データとが混信することにより生じる不都合を防止す
ることができる。The communication system according to claim 4 is
A communication control circuit, wherein a plurality of computer devices having a serial communication circuit having a communication control circuit and a communication conversion circuit transmit and receive signals to and from each other via a communication line of a half-duplex communication system for transmitting and receiving signals. By providing a transmission / reception separation circuit between the communication conversion circuit and the communication conversion circuit, when one computer device transmits transmission data toward the other computer device, the transmission / reception separation circuit of the one computer device, The reception data is prevented from being input to the communication control circuit of the one computer device. The same applies when the other computer device transmits the transmission data to the one computer device. As a result, when a plurality of computer devices communicate with each other, it is possible to prevent inconvenience caused by interference between the transmission data and the reception data.
【0025】また、請求項5に記載の半二重通信回路の
シリアル通信回路は、前記通信変換回路が電気信号を光
信号へ変換する手段と、光信号を電気信号へ変換する手
段とを有しているので、複数のコンピュータ装置が互い
に光信号を用いて高速にデータの送受信を行なうことが
できる。The serial communication circuit of the half-duplex communication circuit according to claim 5 has means for converting the electric signal into an optical signal by the communication conversion circuit, and means for converting the optical signal into an electric signal. Therefore, a plurality of computer devices can mutually perform high-speed data transmission / reception using optical signals.
【0026】また、請求項6に記載の半二重通信回路の
シリアル通信回路は、前記光信号として赤外線が使用さ
れているので、複数のコンピュータ装置が互いに高速か
つ信頼性の高いデータの送受信を行なうことができる。Further, in the serial communication circuit of the half-duplex communication circuit according to the sixth aspect, since infrared light is used as the optical signal, a plurality of computer devices can mutually transmit and receive high-speed and highly reliable data. Can be done.
【0027】[0027]
【実施例】以下、本発明の実施例を図1乃至図3に基づ
いて説明する。Embodiments of the present invention will be described below with reference to FIGS.
【0028】図1および図2は、本発明の一実施例を示
したものである。なお、従来例と同様なところについて
は、同一符号を付して詳細な説明は省略する。図1を参
照すると、本実施例の半二重通信方式のシリアル通信回
路は、シリアル通信回路1の通信制御回路2と通信変換
回路3との間に、通信制御回路2から入力されるシリア
ルの送信データ9bと通信変換回路3から入力されるシ
リアルの受信データ10bとを分離するための送受信分
離回路4を設けた点で従来のものと異なるものである。
また、シリアル通信回路1’についても同様に、通信制
御回路2’と通信変換回路3’との間には、前記送受信
分離回路4と同一構成の送受信分離回路4’が設けられ
ている。なお、これらの送受信分離回路4、4’は、図
2に示すような構成からなっている。1 and 2 show one embodiment of the present invention. The same parts as those in the conventional example are designated by the same reference numerals, and detailed description thereof will be omitted. Referring to FIG. 1, the serial communication circuit of the half-duplex communication system of the present embodiment is a serial communication circuit between the communication control circuit 2 and the communication conversion circuit 3 of the serial communication circuit 1. This is different from the conventional one in that a transmission / reception separation circuit 4 for separating the transmission data 9b and the serial reception data 10b input from the communication conversion circuit 3 is provided.
Similarly, in the serial communication circuit 1 ', a transmission / reception separation circuit 4'having the same structure as the transmission / reception separation circuit 4 is provided between the communication control circuit 2'and the communication conversion circuit 3'. Note that these transmission / reception separation circuits 4 and 4'are configured as shown in FIG.
【0029】図2において、符号4aは通信回線5から
のシリアルの受信データ10b、10b’を検知するた
めの受信データ検知回路、符号4bは送受信分離回路
4、4’のモードを受信モード、送信モードまたはアイ
ドルモードに切り換えるための動作モード切換回路、符
号4cは通信制御回路2、2’からのシリアルの送信デ
ータ9b、9b’を検知するための送信データ検知回
路、符号4dは送受信データを転送する時間を設定する
ためのモードタイマー回路および符号4eは通信変換回
路3、3’からのシリアルの受信データ10b、10
b’を通信制御回路2、2’に向けて出力するための受
信ゲート回路である。なお、本実施例においては、受信
モードは受信データ検知回路4aおよび受信ゲート回路
4eが開いた状態、送信モードは送信データ検知回路4
cおよび受信ゲート回路4eが閉じた状態、アイドルモ
ードは受信ゲート回路4eが閉じた状態でかつ送信デー
タ検知回路4cおよび受信データ検知回路4aが開いた
状態をそれぞれ意味するものである。In FIG. 2, reference numeral 4a is a reception data detection circuit for detecting serial reception data 10b, 10b 'from the communication line 5, and reference numeral 4b is a transmission / reception separation circuit 4, 4'mode of reception mode, transmission. An operation mode switching circuit for switching the mode or the idle mode, reference numeral 4c is a transmission data detection circuit for detecting serial transmission data 9b, 9b 'from the communication control circuits 2, 2', and reference numeral 4d is transmission / reception data transfer. A mode timer circuit for setting the time to be set and reference numeral 4e are serial received data 10b, 10b from the communication conversion circuits 3, 3 '.
It is a reception gate circuit for outputting b'to the communication control circuits 2 and 2 '. In this embodiment, the reception mode is the state in which the reception data detection circuit 4a and the reception gate circuit 4e are open, and the transmission mode is the transmission data detection circuit 4e.
The state in which c and the reception gate circuit 4e are closed and the idle mode mean the state in which the reception gate circuit 4e is closed and the transmission data detection circuit 4c and the reception data detection circuit 4a are open.
【0030】符号4−1は、シリアルの受信データ10
b、10b’が送受信分離回路4、4’内の受信データ
検知回路4aへ入力されたときに、動作モード切換回路
4bを受信モードに切り換えるため、あるいはシリアル
の受信データ10b、10b’が受信データ検知回路4
aへ入力されなくなったときに、動作モード切換回路4
bをアイドルモードに切り換えるための制御信号であ
る。符号4−2は、受信データ検知回路4aからの信号
4−1が動作モード切換回路4bへ入力されて、この動
作モード切換回路4bがモードを受信モードに切り換え
られたときに、送信データ検知回路4cを閉じるために
動作モード切換回路4bから出力される制御信号であ
る。符号4−5は、動作モード切換回路4bがモードを
受信モードに切り換えたときに受信ゲート回路4eを開
くため、あるいは動作モード切換回路4bが送信モード
またはアイドルモードのときに受信ゲート回路4eを閉
じるために動作モード切換回路4bから出力される選択
信号(セレクト信号)である。Reference numeral 4-1 indicates serial received data 10
b, 10b 'are input to the reception data detection circuit 4a in the transmission / reception separation circuits 4, 4', the operation mode switching circuit 4b is switched to the reception mode, or the serial reception data 10b, 10b 'is received data. Detection circuit 4
When the input to a is stopped, the operation mode switching circuit 4
It is a control signal for switching b to the idle mode. Reference numeral 4-2 denotes a transmission data detection circuit when the signal 4-1 from the reception data detection circuit 4a is input to the operation mode switching circuit 4b and the operation mode switching circuit 4b switches the mode to the reception mode. 4c is a control signal output from the operation mode switching circuit 4b to close 4c. Reference numeral 4-5 indicates to open the reception gate circuit 4e when the operation mode switching circuit 4b switches the mode to the reception mode, or to close the reception gate circuit 4e when the operation mode switching circuit 4b is in the transmission mode or the idle mode. Therefore, it is a selection signal (select signal) output from the operation mode switching circuit 4b.
【0031】符号4−6は、シリアルの送信データ9
b、9b’が送受信分離回路4、4’内の送信データ検
知回路4cへ入力されたときにモードを送信モードに切
り換えるために、あるいはシリアルの送信データ9b、
9b’が送信データ検知回路4cへ入力されなくなった
ときにモードをアイドルモードに切り換えるために、動
作モード切換回路4bに向けて出力される制御信号であ
る。符号4−7は、信号4−6が動作モード切換回路4
bへ入力されて、モードが送信モードに切り換えられた
ときに、受信データ検知回路4aを閉じるための制御信
号である。符号4−3は、モードが動作モード切換回路
4bによって受信モードに切り換えられたときに、所定
の時間Tの間、モードタイマー回路4dを起動するため
の制御信号であり、モードタイマー回路4dが起動され
ている間、このモードタイマー回路4dからは受信ゲー
ト回路4eを、所定の時間Tの間だけ、開くための信号
4−4が出力される。Reference numeral 4-6 indicates serial transmission data 9
b and 9b 'are input to the transmission data detection circuit 4c in the transmission / reception separation circuits 4 and 4'to switch the mode to the transmission mode, or the serial transmission data 9b,
9b 'is a control signal output to the operation mode switching circuit 4b for switching the mode to the idle mode when the transmission data detection circuit 4c is no longer input. Reference numeral 4-7 indicates that the signal 4-6 is the operation mode switching circuit 4
This is a control signal for closing the received data detection circuit 4a when the mode is switched to the transmission mode by being input to b. Reference numeral 4-3 is a control signal for activating the mode timer circuit 4d for a predetermined time T when the mode is switched to the reception mode by the operation mode switching circuit 4b, and the mode timer circuit 4d is activated. During this period, the mode timer circuit 4d outputs a signal 4-4 for opening the reception gate circuit 4e for a predetermined time T.
【0032】次に、図1および図2において、端末側の
コンピュータ装置Aがホスト側のコンピュータ装置Bか
らのデータを受信する場合についての動作を説明する。Next, referring to FIGS. 1 and 2, the operation when the computer A on the terminal side receives data from the computer B on the host side will be described.
【0033】ホスト側のコンピュータ装置Bのマイクロ
プロセッサ6’からのパラレルの送信データ9a’がデ
ータバス8’を介して通信制御回路2’へ入力され、こ
の入力されたパラレルの送信データ9a’は通信制御回
路2’により、シリアルの送信データ9b’へ変換され
る。この変換されたシリアルの送信データ9b’が、送
受信分離回路4’内の送信データ検知回路4cへ入力さ
れると、送信データ検知回路4cからの信号4−6が動
作モード切換回路4bへ出力され、この動作モード切換
回路4bは送信モードとなる。The parallel transmission data 9a 'from the microprocessor 6'of the computer B on the host side is input to the communication control circuit 2'through the data bus 8', and the input parallel transmission data 9a 'is The communication control circuit 2'converts the serial transmission data 9b '. When the converted serial transmission data 9b 'is input to the transmission data detection circuit 4c in the transmission / reception separation circuit 4', the signal 4-6 from the transmission data detection circuit 4c is output to the operation mode switching circuit 4b. The operation mode switching circuit 4b is in the transmission mode.
【0034】信号4−6が動作モード切換回路4bへ入
力されたときに、動作モード切換回路4bからモードタ
イマー回路4dへ信号4−3が出力されるとともに動作
モード切換回路4bから受信ゲート回路4eへ信号4−
5が出力される。信号4−3がモードタイマー回路4d
へ入力されることによりモードタイマー回路4dが起動
されて、所定の時間Tの間だけ、モードタイマー回路4
dから受信ゲート回路4eへ信号4−4が出力される
が、このとき動作モード切換回路4bが送信モードにな
っているので、動作モード切換回路4bからの信号4−
5により受信ゲート回路4eが閉じられたままである。
また、動作モード切換回路4bからの信号4−7により
受信データ検知回路4aが閉じられる。ここで、所定の
時間Tは、送受信データを転送するために必要となる時
間であり、1バイト単位あるいはブロック単位等のデー
タを転送するために必要な時間が所定の時間Tとして設
定される。When the signal 4-6 is input to the operation mode switching circuit 4b, the operation mode switching circuit 4b outputs the signal 4-3 to the mode timer circuit 4d and the operation mode switching circuit 4b receives the reception gate circuit 4e. Signal 4-
5 is output. Signal 4-3 is the mode timer circuit 4d
Is input to the mode timer circuit 4d, the mode timer circuit 4d is activated for a predetermined time T.
A signal 4-4 is output from d to the reception gate circuit 4e, but since the operation mode switching circuit 4b is in the transmission mode at this time, the signal 4-4 from the operation mode switching circuit 4b is output.
5, the receiving gate circuit 4e remains closed.
Further, the received data detection circuit 4a is closed by the signal 4-7 from the operation mode switching circuit 4b. Here, the predetermined time T is the time required to transfer the transmission / reception data, and the time required to transfer the data in 1-byte units or block units is set as the predetermined time T.
【0035】すなわち、シリアルの送信データ9b’が
送受信分離回路4’へ入力されると、このシリアルの送
信データ9b’は送受信分離回路4’内を通過して通信
変換回路3’へ向けて出力される。一方、送受信分離回
路4’内の受信データ検知回路4aおよび受信ゲート回
路4eが閉じられて、シリアルの受信データ10b’が
通信制御回路2へ出力されるのを遮断する。That is, when the serial transmission data 9b 'is input to the transmission / reception separation circuit 4', the serial transmission data 9b 'passes through the transmission / reception separation circuit 4'and is output toward the communication conversion circuit 3'. To be done. On the other hand, the reception data detection circuit 4a and the reception gate circuit 4e in the transmission / reception separation circuit 4'are closed to block the serial reception data 10b 'from being output to the communication control circuit 2.
【0036】その後、シリアルの送信データ9b’は通
信変換回路3’へ入力され、通信変換回路3’内の送信
部3a’により電気信号から光信号へ変換され、通信回
線5の一つの手段である空間へ送出される。この送出さ
れた光信号は、通信回線5を介して端末側のシリアル通
信回路1の通信変換回路3内の受信部3bへ入力され
る。この入力された光信号は通信変換回路3により、電
気信号であるシリアルの受信データ10bへ変換され
る。この変換されたシリアルの受信データ10bは、送
受信分離回路4内の受信データ検知回路4aへ向けて出
力される。この受信データ10bが受信データ検知回路
4aへ入力されると、受信データ検知回路4aからの信
号4−1が動作モード切換回路4bへ出力され、この動
作モード切換回路4bは受信モードとなる。After that, the serial transmission data 9b 'is input to the communication conversion circuit 3', converted from an electric signal to an optical signal by the transmission section 3a 'in the communication conversion circuit 3', and is transmitted by one means of the communication line 5. It is sent to a certain space. The transmitted optical signal is input to the receiving unit 3b in the communication conversion circuit 3 of the serial communication circuit 1 on the terminal side via the communication line 5. The input optical signal is converted by the communication conversion circuit 3 into serial reception data 10b which is an electric signal. The converted serial reception data 10b is output to the reception data detection circuit 4a in the transmission / reception separation circuit 4. When the received data 10b is input to the received data detection circuit 4a, the signal 4-1 from the received data detection circuit 4a is output to the operation mode switching circuit 4b, and the operation mode switching circuit 4b enters the reception mode.
【0037】信号4−1が動作モード切換回路4bへ入
力されたときに、動作モード切換回路4bからモードタ
イマー回路4dへ信号4−3が出力されるとともに動作
モード切換回路4bから受信ゲート回路4eへ信号4−
5が出力される。信号4−3がモードタイマー回路4d
へ入力されることによりモードタイマー回路4dが起動
されて、所定の時間Tの間、モードタイマー回路4dか
ら受信ゲート回路4eへ信号4−4が出力される。この
とき、動作モード切換回路4bが受信モードになってい
るので、受信ゲート回路4eは、動作モード切換回路4
bからの信号4−5により選択(セレクト)され、モー
ドタイマー回路4dからの信号4−4により、所定の時
間Tの間だけ、開かれる。When the signal 4-1 is input to the operation mode switching circuit 4b, the operation mode switching circuit 4b outputs the signal 4-3 to the mode timer circuit 4d and the operation mode switching circuit 4b receives the reception gate circuit 4e. Signal 4-
5 is output. Signal 4-3 is the mode timer circuit 4d
Is input to activate the mode timer circuit 4d, and the signal 4-4 is output from the mode timer circuit 4d to the reception gate circuit 4e for a predetermined time T. At this time, since the operation mode switching circuit 4b is in the reception mode, the reception gate circuit 4e operates in the operation mode switching circuit 4b.
It is selected by the signal 4-5 from b, and is opened for a predetermined time T by the signal 4-4 from the mode timer circuit 4d.
【0038】すなわち、シリアルの受信データ10bが
送受信分離回路4へ入力されると、このシリアルの受信
データ10bは送受信分離回路4内を通過して通信制御
回路2へ向けて出力され、また、動作モード切換回路4
bからの信号4−2により送受信分離回路4内の送信デ
ータ検知回路4cが閉じられる。That is, when the serial reception data 10b is input to the transmission / reception separation circuit 4, the serial reception data 10b passes through the transmission / reception separation circuit 4 and is output to the communication control circuit 2 and also operates. Mode switching circuit 4
The transmission data detection circuit 4c in the transmission / reception separation circuit 4 is closed by the signal 4-2 from b.
【0039】その後、シリアルの受信データ10bは通
信制御回路2へ入力され、このシリアルの受信データ1
0bは通信制御回路2によりパラレルの受信データ10
aへ変換され、データバス8を介してマイクロプロセッ
サ6へ出力される。After that, the serial reception data 10b is input to the communication control circuit 2, and the serial reception data 1
0b indicates parallel received data 10 by the communication control circuit 2.
It is converted to a and output to the microprocessor 6 via the data bus 8.
【0040】次に、端末側のコンピュータ装置Aからホ
スト側のコンピュータ装置Bへデータを送信する場合に
ついての動作を説明する。Next, the operation of transmitting data from the computer A on the terminal side to the computer B on the host side will be described.
【0041】端末側のコンピュータ装置Aのマイクロプ
ロセッサ6からのパラレルの送信データ9aがデータバ
ス8を介して通信制御回路2へ入力され、この入力され
たパラレルの送信データ9aは通信制御回路2により、
シリアルの送信データ9bへ変換される。この変換され
たシリアルの送信データ9bが、送受信分離回路4内の
送信データ検知回路4cへ入力されると、送信データ検
知回路4cからの信号4−6が動作モード切換回路4b
へ出力され、この動作モード切換回路4bは送信モード
となる。Parallel transmission data 9a from the microprocessor 6 of the computer A on the terminal side is input to the communication control circuit 2 via the data bus 8, and the input parallel transmission data 9a is input by the communication control circuit 2. ,
It is converted into serial transmission data 9b. When the converted serial transmission data 9b is input to the transmission data detection circuit 4c in the transmission / reception separation circuit 4, a signal 4-6 from the transmission data detection circuit 4c is output to the operation mode switching circuit 4b.
Is output to the operation mode switching circuit 4b in the transmission mode.
【0042】信号4−6が動作モード切換回路4bへ入
力されたときに、動作モード切換回路4bからモードタ
イマー回路4dへ信号4−3が出力されるとともに動作
モード切換回路4bから受信ゲート回路4eへ信号4−
5が出力される。信号4−3がモードタイマー回路4d
へ入力されることによりモードタイマー回路4dが起動
されて、所定の時間Tの間、モードタイマー回路4dか
ら受信ゲート回路4eへ信号4−4が出力されるが、こ
のとき動作モード切換回路4bが送信モードになってい
るので、動作モード切換回路4bからの信号4ー5によ
り受信ゲート回路4eが閉じられたままである。また、
動作モード切換回路4bからの信号4ー7により受信デ
ータ検知回路4aが閉じられる。When the signal 4-6 is input to the operation mode switching circuit 4b, the operation mode switching circuit 4b outputs the signal 4-3 to the mode timer circuit 4d and the operation mode switching circuit 4b receives the reception gate circuit 4e. Signal 4-
5 is output. Signal 4-3 is the mode timer circuit 4d
Is input to the mode timer circuit 4d, and the signal 4-4 is output from the mode timer circuit 4d to the reception gate circuit 4e for a predetermined time T. At this time, the operation mode switching circuit 4b operates. Since it is in the transmission mode, the reception gate circuit 4e remains closed by the signal 4-5 from the operation mode switching circuit 4b. Also,
The received data detection circuit 4a is closed by the signal 4-7 from the operation mode switching circuit 4b.
【0043】すなわち、シリアルの送信データ9bが送
受信分離回路4へ入力されると、このシリアルの送信デ
ータ9bは送受信分離回路4内を通過して通信変換回路
3へ向けて出力される。一方、送受信分離回路4内の受
信データ検知回路4aおよび受信ゲート回路4eが閉じ
られて、シリアルの受信データ10bが通信制御回路2
へ出力されるのを遮断する。That is, when the serial transmission data 9b is input to the transmission / reception separation circuit 4, the serial transmission data 9b passes through the transmission / reception separation circuit 4 and is output to the communication conversion circuit 3. On the other hand, the reception data detection circuit 4a and the reception gate circuit 4e in the transmission / reception separation circuit 4 are closed, and the serial reception data 10b is transferred to the communication control circuit 2.
To be output to.
【0044】その後、シリアルの送信データ9bは通信
変換回路3へ入力され、通信変換回路3内の送信部3a
により電気信号から光信号へ変換され、通信回線5であ
る空間へ送出される。この送出された光信号は、通信回
線5を介してホスト側のシリアル通信回路1’の通信変
換回路3’内の受信部3b’へ入力される。この入力さ
れた光信号は通信変換回路3’により、シリアルの受信
データ10b’へ変換される。この変換されたシリアル
の受信データ10b’は、送受信分離回路4’内の受信
データ検知回路4aへ向けて出力される。この受信デー
タ10b’が受信データ検知回路4aへ入力されると、
受信データ検知回路4aからの信号4−1が動作モード
切換回路4bへ出力され、この動作モード切換回路4b
は受信モードとなる。After that, the serial transmission data 9b is input to the communication conversion circuit 3, and the transmission unit 3a in the communication conversion circuit 3 is inputted.
Is converted from an electric signal to an optical signal and transmitted to the space which is the communication line 5. The transmitted optical signal is input to the receiving unit 3b 'in the communication conversion circuit 3'of the serial communication circuit 1'on the host side via the communication line 5. This input optical signal is converted into serial reception data 10b 'by the communication conversion circuit 3'. The converted serial reception data 10b 'is output to the reception data detection circuit 4a in the transmission / reception separation circuit 4'. When this received data 10b 'is input to the received data detection circuit 4a,
The signal 4-1 from the reception data detection circuit 4a is output to the operation mode switching circuit 4b, and the operation mode switching circuit 4b is output.
Becomes the reception mode.
【0045】信号4−1が動作モード切換回路4bへ入
力されたときに、動作モード切換回路4bからモードタ
イマー回路4dへ信号4−3が出力されるとともに動作
モード切換回路4bから受信ゲート回路4eへ信号4−
5が出力される。信号4−3がモードタイマー回路4d
へ入力されることによりモードタイマー回路4dが起動
されて、所定の時間Tの間、モードタイマー回路4dか
ら受信ゲート回路4eへ信号4−4が出力される。この
とき、動作モード切換回路4bが受信モードになってい
るので、受信ゲート回路4eは、動作モード切換回路4
bからの信号4−5により選択され、モードタイマー回
路4dからの信号4−4により、所定の時間Tの間だ
け、開かれる。When the signal 4-1 is input to the operation mode switching circuit 4b, the operation mode switching circuit 4b outputs the signal 4-3 to the mode timer circuit 4d and the operation mode switching circuit 4b receives the reception gate circuit 4e. Signal 4-
5 is output. Signal 4-3 is the mode timer circuit 4d
Is input to activate the mode timer circuit 4d, and the signal 4-4 is output from the mode timer circuit 4d to the reception gate circuit 4e for a predetermined time T. At this time, since the operation mode switching circuit 4b is in the reception mode, the reception gate circuit 4e operates in the operation mode switching circuit 4b.
It is selected by the signal 4-5 from b and is opened for a predetermined time T by the signal 4-4 from the mode timer circuit 4d.
【0046】すなわち、シリアルの受信データ10b’
が送受信分離回路4’へ入力されると、このシリアルの
受信データ10b’は送受信分離回路4内を通過して通
信制御回路2’へ向けて出力され、送受信分離回路4’
内の送信データ検知回路4cが閉じられる。That is, the serial received data 10b '
Is input to the transmission / reception separation circuit 4 ', the serial received data 10b' passes through the transmission / reception separation circuit 4 and is output to the communication control circuit 2 ', and the transmission / reception separation circuit 4'.
The transmission data detection circuit 4c therein is closed.
【0047】その後、シリアルの受信データ10b’は
通信制御回路2’へ入力され、このシリアルの受信デー
タ10b’は通信制御回路2’によりパラレルの受信デ
ータ10a’へ変換され、データバス8’を介してマイ
クロプロセッサ6’へ出力される。After that, the serial reception data 10b 'is input to the communication control circuit 2', the serial reception data 10b 'is converted into parallel reception data 10a' by the communication control circuit 2 ', and the data bus 8'is converted. It is output to the microprocessor 6'through the.
【0048】上記の構成によれば、端末側のコンピュー
タ装置Aとホスト側のコンピュータ装置Bとの間で、互
いに赤外線等からなる光信号を用いて通信を行なう場合
において、例えば端末側のコンピュータ装置Aからデー
タの送信を行なうときに通信変換回路3の送信部3aか
ら光信号が送出されて、この送出された光信号が端末側
の通信変換回路3とホスト側の通信変換回路3’との間
の部材による反射等により、誤って端末側の通信変換回
路3の受信部3bへ受信されても、送信中は端末側の送
受信分離回路4内の受信データ検知回路4aおよび受信
ゲート回路4eが閉じられて、シリアルの受信データ1
0bが通信制御回路2へ出力されるのを遮断するので、
自らが送信したデータが誤って受信データとして取り込
まれるという不都合が発生することはない。その結果、
送受信されるデータにエラーが発生することがなくな
り、送受信データの信頼性を著しく向上させることがで
きる。According to the above configuration, when communication is performed between the terminal-side computer apparatus A and the host-side computer apparatus B using optical signals such as infrared rays, for example, the terminal-side computer apparatus is used. When data is transmitted from A, an optical signal is transmitted from the transmitter 3a of the communication conversion circuit 3, and the transmitted optical signal is transmitted between the communication conversion circuit 3 on the terminal side and the communication conversion circuit 3'on the host side. Even if it is erroneously received by the receiving unit 3b of the communication conversion circuit 3 on the terminal side due to reflection or the like by a member in between, the reception data detection circuit 4a and the reception gate circuit 4e in the transmission / reception separation circuit 4 on the terminal side are transmitted during transmission. Received serial data 1 closed
Since 0b is blocked from being output to the communication control circuit 2,
The inconvenience that the data transmitted by itself is mistakenly taken in as the received data does not occur. as a result,
An error does not occur in the transmitted / received data, and the reliability of the transmitted / received data can be significantly improved.
【0049】なお、上述した本実施例において、シリア
ルの送信データ9bが送受信分離回路4から通信変換回
路3を介して光信号として赤外線を用いて、図6におけ
る空間23、24へ送出されているとき、送出された赤
外線の光信号が反射して誤って通信変換回路3内の受信
部3bへ受信されるという不都合が防止できることはす
でに述べたが、この反射された赤外線が多重反射等によ
りデータの送信が終了した後、受信されることが全くな
いとは言えない。もし、このようなことが起こった場合
には、シリアルの送信データ9bの転送が終了した時点
で送信データ9bが送信データ検知回路4cへ入力され
なくなるので、動作モード切換回路4bがアイドルモー
ドとなる。この動作モード切換回路4bがアイドルモー
ドになると受信データ検知回路4aが受信可能な状態と
なるので、この受信データ検知回路4aが受信可能な状
態となったところへ、反射して誤って受信された赤外線
が入力されることになる。In the above-described embodiment, the serial transmission data 9b is sent from the transmission / reception separation circuit 4 to the spaces 23 and 24 in FIG. 6 using infrared rays as an optical signal through the communication conversion circuit 3. At this time, it has already been described that it is possible to prevent the inconvenience that the transmitted infrared optical signal is reflected and is erroneously received by the receiving unit 3b in the communication conversion circuit 3. Is not received at all after the end of transmission. If such a situation occurs, the transmission data 9b will not be input to the transmission data detection circuit 4c at the time when the transfer of the serial transmission data 9b is completed, so that the operation mode switching circuit 4b enters the idle mode. . When the operation mode switching circuit 4b is in the idle mode, the received data detection circuit 4a is in the receivable state. Therefore, when the received data detection circuit 4a is in the receivable state, it is reflected and erroneously received. Infrared rays will be input.
【0050】すなわち、この誤って受信された赤外線の
光信号が通信変換回路3により、シリアルの受信データ
10bへ変換され、このシリアルの受信データ10bが
更に送受信分離回路4内の受信データ検知回路4aへ入
力され、前述したような作用により受信ゲート回路4e
が開くことになる。That is, the erroneously received infrared light signal is converted into serial reception data 10b by the communication conversion circuit 3, and the serial reception data 10b is further received in the reception data detection circuit 4a in the transmission / reception separation circuit 4. Is input to the reception gate circuit 4e by the above-described operation.
Will be opened.
【0051】そして、その結果として誤入力されたシリ
アルの受信データ10bは、非常に短い時間の間ではあ
るが送受信分離回路4内を通過して通信制御回路2に入
力されてしまうということが発生する恐れがある。Then, as a result, the erroneously input serial received data 10b may pass through the transmission / reception separation circuit 4 for a very short time and be input to the communication control circuit 2. There is a risk of
【0052】従って、このような問題をも完全に防止す
ることを考えるのであれば、図2に示す上記実施例の送
受信分離回路4、4’の一部を変更し、図3に示すよう
な構成とすればよい。図3に示す送受信分離回路40
は、図2に示した送受信分離回路4および4’内のモー
ドタイマー回路4dからの信号4−4が動作モード切換
回路4bへも入力するようにしたものであり、この信号
4−4が入力されている間、動作モード切換回路4b
は、そのモードを引き続き送信モードのままで維持する
ように制御される。このような構成として、かつモード
タイマー回路4dから出力される信号4−4を、上述し
た時間Tに反射光の影響がなくなるまでの充分な時間t
を加えた期間だけ出力するように設定しておけば、シリ
アルの送信データ9bの出力が終了した後も引き続き時
間tの間だけ送信モードの状態、すなわち受信データ検
知回路4aおよび受信ゲート回路4eが閉じた状態が保
たれることになり、従ってこの間に送信データが反射光
として入射するようなことがあってもこれが誤った信号
として通信制御回路2に入力されることはない。Therefore, if it is considered to completely prevent such a problem, a part of the transmission / reception separation circuits 4 and 4'of the above embodiment shown in FIG. It may be configured. Transmission / reception separation circuit 40 shown in FIG.
The signal 4-4 from the mode timer circuit 4d in the transmission / reception separation circuits 4 and 4'shown in FIG. 2 is also input to the operation mode switching circuit 4b. While operating, the operation mode switching circuit 4b
Is controlled to continue to maintain its mode in transmit mode. With such a configuration, the signal 4-4 output from the mode timer circuit 4d is supplied for a sufficient time t until the influence of the reflected light disappears at the time T described above.
If it is set to output only during the period in which the serial transmission data 9b is added, the transmission mode state, that is, the reception data detection circuit 4a and the reception gate circuit 4e, continues for the time t even after the output of the serial transmission data 9b is completed. The closed state is maintained, so that even if transmission data may enter as reflected light during this period, it will not be input to the communication control circuit 2 as an erroneous signal.
【0053】従って、このようにしておけば、たとえ誤
って反射して受信される赤外線の光信号に時間的な遅延
があったとしても、不都合が発生することがなくなる。
なお、上記した構成および作用により論理的には、送受
信分離回路4、4’は上記した時間tの間だけ、受信不
能となるが、反射して受信される赤外線の光信号の時間
の遅延は、非常に短い時間の間であるために、実使用状
態においては、全く問題とはならない。Therefore, in this way, even if there is a time delay in the infrared light signal that is reflected and received by mistake, inconvenience will not occur.
Logically, due to the above configuration and operation, the transmission / reception separation circuits 4 and 4'cannot receive only during the time t described above, but there is no delay in time of the infrared light signal reflected and received. Since it is a very short time, there is no problem in actual use.
【0054】また、本実施例においては、もし端末側の
コンピュータ装置Aからホスト側のコンピュータ装置B
へデータを送信している間に、ホスト側のコンピュータ
装置Bから端末側のコンピュータ装置Aへ向けてデータ
の送信を行なってしまうようなことがあった場合(通常
はまずありえないが)には、ホスト側の通信変換回路
3’の送信部3a’から送信された光信号が前述したよ
うに反射等により、誤ってホスト側の通信変換回路3’
の受信部3b’に受信されて、誤ったデータがコンピュ
ータ装置Bに取り込まれるという問題が発生する可能性
がある。Further, in this embodiment, if the terminal side computer device A to the host side computer device B is used.
If there is a case where the computer device B on the host side transmits the data to the computer device A on the terminal side while transmitting the data to (in general, this is impossible), The optical signal transmitted from the transmitter 3a 'of the host-side communication conversion circuit 3'is erroneously caused by reflection or the like as described above, so that the host-side communication conversion circuit 3'is erroneously.
There is a possibility that erroneous data may be received by the receiving section 3b ′ of the computer 3 and may be taken into the computer B.
【0055】図4は、本発明の他の実施例を示したもの
であり、上述したような問題の発生をも更に防止しよう
としたものである。本実施例における送受信分離回路
4”は、図2に示した送受信分離回路4および4’に通
信制御回路2からのシリアルの送信データ9bを出力す
るための送信ゲート回路4fを更に設けたものである。
なお、本実施例においては、受信モードは受信ゲート回
路4eが開いた状態でかつ送信ゲート回路4fが閉じた
状態、送信モードは受信ゲート回路4eが閉じた状態で
かつ送信ゲート回路4fが開いた状態、アイドルモード
は受信ゲート回路4eおよび送信ゲート回路4fが閉じ
た状態でかつ受信データ検知回路4aおよび送信データ
検知回路4cが開いた状態をそれぞれ意味するものであ
る。FIG. 4 shows another embodiment of the present invention, which is intended to further prevent the occurrence of the above problems. The transmission / reception separation circuit 4 "in this embodiment further includes a transmission gate circuit 4f for outputting the serial transmission data 9b from the communication control circuit 2 to the transmission / reception separation circuits 4 and 4'shown in FIG. is there.
In the present embodiment, the reception mode is the state in which the reception gate circuit 4e is opened and the transmission gate circuit 4f is closed, and the transmission mode is the state in which the reception gate circuit 4e is closed and the transmission gate circuit 4f is opened. The state and the idle mode respectively mean a state in which the reception gate circuit 4e and the transmission gate circuit 4f are closed and a state in which the reception data detection circuit 4a and the transmission data detection circuit 4c are open.
【0056】符号4−1は、シリアルの受信データ10
b、10b’が送受信分離回路4、4’内の受信データ
検知回路4aへ入力されたときに、動作モード切換回路
4bを受信モードに切り換えるため、あるいはシリアル
の受信データ10b、10b’が受信データ検知回路4
aへ入力されなくなったときに、動作モード切換回路4
bをアイドルモードに切り換えるための制御信号であ
る。符号4−2は、受信データ検知回路4aからの信号
4−1が動作モード切換回路4bへ入力されて、この動
作モード切換回路4bが受信モードに切り換えられたと
きに、送信データ検知回路4cを閉じるために動作モー
ド切換回路4bから出力される制御信号である。符号4
−5は、動作モード切換回路4bがモードを受信モード
に切り換えたときに受信ゲート回路4eを開くため、あ
るいは動作モード切換回路4bが送信モードまたはアイ
ドルモードのときに受信ゲート回路4eを閉じるために
動作モード切換回路4bから出力される選択信号(セレ
クト信号)であり、符号4−8は動作モード切換回路4
bがモードを送信モードに切り換えたときに送信ゲート
回路4fを開くため、あるいは動作モード切換回路4b
が受信モードまたはアイドルモードのときに送信ゲート
回路4fを閉じるために動作モード切換回路4bから出
力される選択信号(セレクト信号)である。Reference numeral 4-1 represents serial received data 10
b, 10b 'are input to the reception data detection circuit 4a in the transmission / reception separation circuits 4, 4', the operation mode switching circuit 4b is switched to the reception mode, or the serial reception data 10b, 10b 'is received data. Detection circuit 4
When the input to a is stopped, the operation mode switching circuit 4
It is a control signal for switching b to the idle mode. Reference numeral 4-2 indicates the transmission data detection circuit 4c when the signal 4-1 from the reception data detection circuit 4a is input to the operation mode switching circuit 4b and the operation mode switching circuit 4b is switched to the reception mode. This is a control signal output from the operation mode switching circuit 4b for closing. Code 4
-5 is for opening the reception gate circuit 4e when the operation mode switching circuit 4b switches the mode to the reception mode, or for closing the reception gate circuit 4e when the operation mode switching circuit 4b is in the transmission mode or the idle mode. Reference numeral 4-8 is a selection signal (selection signal) output from the operation mode switching circuit 4b.
b to open the transmission gate circuit 4f when the mode is switched to the transmission mode, or the operation mode switching circuit 4b
Is a selection signal (select signal) output from the operation mode switching circuit 4b to close the transmission gate circuit 4f in the reception mode or the idle mode.
【0057】符号4−6は、シリアルの送信データ9
b、9b’が送受信分離回路4、4’内の送信データ検
知回路4cへ入力されたときにモードを送信モードに切
り換えるために、あるいはシリアルの送信データ9b、
9b’が送信データ検知回路4cへ入力されなくなった
ときにモードをアイドルモードに切り換えるために、動
作モード切換回路4bに向けて出力される制御信号であ
る。符号4−7は、信号4−6が動作モード切換回路4
bへ入力されて、モードが送信モードに切り換えられた
ときに、受信データ検知回路4aを閉じるための制御信
号である。符号4−3は、モードが動作モード切換回路
4bによって受信モードに切り換えられたとき又は送信
モードに切り換えられたときに、所定の時間Tの間、モ
ードタイマー回路4dを起動するための制御信号であ
り、モードタイマー回路4dが起動されている間、この
モードタイマー回路4dからは受信ゲート回路4eおよ
び送信ゲート回路4fを、所定の時間Tの間だけ、それ
ぞれ開くための信号4−4が出力される。Reference numeral 4-6 indicates serial transmission data 9
b and 9b 'are input to the transmission data detection circuit 4c in the transmission / reception separation circuits 4 and 4'to switch the mode to the transmission mode, or the serial transmission data 9b,
9b 'is a control signal output to the operation mode switching circuit 4b for switching the mode to the idle mode when the transmission data detection circuit 4c is no longer input. Reference numeral 4-7 indicates that the signal 4-6 is the operation mode switching circuit 4
This is a control signal for closing the received data detection circuit 4a when the mode is switched to the transmission mode by being input to b. Reference numeral 4-3 is a control signal for activating the mode timer circuit 4d for a predetermined time T when the mode is switched to the reception mode or the transmission mode by the operation mode switching circuit 4b. Yes, while the mode timer circuit 4d is activated, the mode timer circuit 4d outputs a signal 4-4 for opening the reception gate circuit 4e and the transmission gate circuit 4f for a predetermined time T, respectively. It
【0058】次に、図4において、送受信分離回路4”
がデータを受信する場合の動作について説明する。Next, referring to FIG. 4, the transmission / reception separating circuit 4 "
The operation when the device receives data will be described.
【0059】シリアルの受信データ10bが、送受信分
離回路4”内の受信データ検知回路4aへ入力される
と、受信データ検知回路4aからの信号4−1が動作モ
ード切換回路4bへ出力され、この動作モード切換回路
4bは受信モードとなる。When the serial reception data 10b is input to the reception data detection circuit 4a in the transmission / reception separation circuit 4 ", the signal 4-1 from the reception data detection circuit 4a is output to the operation mode switching circuit 4b. The operation mode switching circuit 4b is in the reception mode.
【0060】この結果、動作モード切換回路4bからモ
ードタイマー回路4dへ信号4−3が出力されるととも
に動作モード切換回路4bから受信ゲート回路4eへ信
号4−5が出力される。信号4−3がモードタイマー回
路4dへ入力されることにより、モードタイマー回路4
dが起動されて、所定の時間Tの間、モードタイマー回
路4dから受信ゲート回路4eへ信号4−4が出力され
る。このとき、動作モード切換回路4bが受信モードに
なっているので、受信ゲート回路4eは、動作モード切
換回路4bから入力される信号4−5により選択され、
モードタイマー回路4dから入力される信号4−4によ
り、所定の時間Tの間だけ、開かれる。As a result, the operation mode switching circuit 4b outputs the signal 4-3 to the mode timer circuit 4d and the operation mode switching circuit 4b outputs the signal 4-5 to the reception gate circuit 4e. By inputting the signal 4-3 to the mode timer circuit 4d, the mode timer circuit 4d
d is activated, and the signal 4-4 is output from the mode timer circuit 4d to the reception gate circuit 4e for a predetermined time T. At this time, since the operation mode switching circuit 4b is in the reception mode, the reception gate circuit 4e is selected by the signal 4-5 input from the operation mode switching circuit 4b,
A signal 4-4 input from the mode timer circuit 4d opens the signal for a predetermined time T.
【0061】一方、送信ゲート回路4fへは、同様にモ
ードタイマー回路4dからの信号4−4が出力されるが
動作モード切換回路4bが受信モードになっているの
で、動作モード切換回路4bからの信号4−8により送
信ゲート回路4fは閉じられたままである。また、信号
4−2により送信データ検知回路4cが閉じられる。On the other hand, the signal 4-4 is similarly output from the mode timer circuit 4d to the transmission gate circuit 4f, but since the operation mode switching circuit 4b is in the reception mode, the operation mode switching circuit 4b outputs the signal 4-4. The signal 4-8 causes the transmission gate circuit 4f to remain closed. Further, the transmission data detection circuit 4c is closed by the signal 4-2.
【0062】すなわち、シリアルの受信データ10bが
送受信分離回路4”へ入力されると、このシリアルの受
信データ10bは送受信分離回路4”内を通過して通信
制御回路2へ向けて出力されるとともに動作モード切換
回路4bからの信号4−2により送受信分離回路4”内
の送信データ検知回路4cが閉じられ、更に動作モード
切換回路4bからの信号4−8により送信ゲート回路4
fが閉じられて、通信制御回路2からのシリアルの送信
データ9bが通信変換回路3へ出力されるのを遮断す
る。That is, when the serial reception data 10b is input to the transmission / reception separation circuit 4 ", the serial reception data 10b passes through the transmission / reception separation circuit 4" and is output to the communication control circuit 2. The transmission data detection circuit 4c in the transmission / reception separation circuit 4 "is closed by the signal 4-2 from the operation mode switching circuit 4b, and the transmission gate circuit 4 is further transmitted by the signal 4-8 from the operation mode switching circuit 4b.
When f is closed, the serial transmission data 9b from the communication control circuit 2 is blocked from being output to the communication conversion circuit 3.
【0063】従って、例えばホスト側のコンピュータ装
置Bから端末側のコンピュータ装置Aに向けてデータの
送信を行なっている途中で、端末側のコンピュータ装置
Aからホスト側のコンピュータ装置Bへデータの送信を
行なってしまった場合には、端末側のコンピュータ装置
Aのマイクロプロセッサ6からの送信データ9aがデー
タバス8を介して通信制御回路2へ入力され、この入力
されたパラレルの送信データ9aは通信制御回路2によ
り、シリアルの送信データ9bへ変換され、この変換さ
れたシリアルの送信データ9bが送受信分離回路4内の
送信ゲート回路4fへ入力されることになるが、この送
信ゲート回路4fは閉じられているので、シリアルの送
信データ9bが通信変換回路3へ出力されることがな
い。よって、通信回線5上でシリアルの受信データ10
bとシリアルの送信データ9bとが混信することがな
い。Therefore, for example, while data is being transmitted from the computer device B on the host side to the computer device A on the terminal side, data transmission from the computer device A on the terminal side to the computer device B on the host side is performed. In the case where the error occurs, the transmission data 9a from the microprocessor 6 of the computer A on the terminal side is input to the communication control circuit 2 via the data bus 8, and the input parallel transmission data 9a is used for communication control. The circuit 2 converts the serial transmission data 9b into serial transmission data 9b. The converted serial transmission data 9b is input to the transmission gate circuit 4f in the transmission / reception separation circuit 4, but the transmission gate circuit 4f is closed. Therefore, the serial transmission data 9b is not output to the communication conversion circuit 3. Therefore, the serial received data 10 on the communication line 5
b does not interfere with the serial transmission data 9b.
【0064】次に、送受信分離回路4”がデータを送信
する場合の動作について説明する。Next, the operation when the transmission / reception separation circuit 4 "transmits data will be described.
【0065】シリアルの送信データ9bが、送受信分離
回路4”内の送信データ検知回路4cへ入力されると、
送信データ検知回路4cからの信号4−6が動作モード
切換回路4bへ出力され、この動作モード切換回路4b
は送信モードとなる。When the serial transmission data 9b is input to the transmission data detection circuit 4c in the transmission / reception separation circuit 4 ",
The signal 4-6 from the transmission data detection circuit 4c is output to the operation mode switching circuit 4b, and this operation mode switching circuit 4b is output.
Becomes the transmission mode.
【0066】この結果、動作モード切換回路4bからモ
ードタイマー回路4dへ信号4−3が出力されるととも
に動作モード切換回路4bから送信ゲート回路4fへ信
号4−8が出力される。信号4−3がモードタイマー回
路4dへ入力されることにより、モードタイマー回路4
dが起動されて、所定の時間Tの間、モードタイマー回
路4dからの信号4−4が送信ゲート回路4fへ出力さ
れる。このとき、動作モード切換回路4dが送信モード
になっているので、送信ゲート回路4fは、動作モード
切換回路4bから出力される信号4−8により選択さ
れ、モードタイマー回路4dから入力される信号4−4
により、所定の時間Tの間だけ、開かれる。As a result, the operation mode switching circuit 4b outputs the signal 4-3 to the mode timer circuit 4d and the operation mode switching circuit 4b outputs the signal 4-8 to the transmission gate circuit 4f. By inputting the signal 4-3 to the mode timer circuit 4d, the mode timer circuit 4d
When d is activated, the signal 4-4 from the mode timer circuit 4d is output to the transmission gate circuit 4f for a predetermined time T. At this time, since the operation mode switching circuit 4d is in the transmission mode, the transmission gate circuit 4f is selected by the signal 4-8 output from the operation mode switching circuit 4b and the signal 4 input from the mode timer circuit 4d. -4
Thus, it is opened only for a predetermined time T.
【0067】一方、受信ゲート回路4eへは、同様にモ
ードタイマー回路4dからの信号4−4が出力されるが
動作モード切換回路4bが送信モードになっているの
で、動作モード切換回路4bからの信号4−5により受
信ゲート回路4eは閉じられたままである。また、信号
4−7により受信データ検知回路4aが閉じられる。On the other hand, the signal 4-4 is similarly output from the mode timer circuit 4d to the reception gate circuit 4e, but the operation mode switching circuit 4b is in the transmission mode, so that the operation mode switching circuit 4b outputs the signal 4-4. The signal 4-5 causes the receiving gate circuit 4e to remain closed. Further, the received data detection circuit 4a is closed by the signal 4-7.
【0068】すなわち、シリアルの送信データ9bが送
受信分離回路4”へ入力されると、このシリアルの送信
データ9bは送受信分離回路4”内を通過して通信変換
回路3へ向けて出力されるとともに動作モード切換回路
4bからの信号4−7により送受信分離回路4”内の受
信データ検知回路4aが閉じられ、更に動作モード切換
回路4bからの信号4−5により受信ゲート回路4eが
閉じられて、通信変換回路3からのシリアルの受信デー
タ10bが通信制御回路2へ出力されるのを遮断する。That is, when the serial transmission data 9b is input to the transmission / reception separation circuit 4 ", the serial transmission data 9b passes through the transmission / reception separation circuit 4" and is output to the communication conversion circuit 3. The signal 4-7 from the operation mode switching circuit 4b closes the reception data detection circuit 4a in the transmission / reception separation circuit 4 ", and the signal 4-5 from the operation mode switching circuit 4b closes the reception gate circuit 4e. The serial reception data 10b from the communication conversion circuit 3 is blocked from being output to the communication control circuit 2.
【0069】従って、例えば端末側のコンピュータ装置
Aからホスト側のコンピュータ装置Bに向けてデータの
送信を行なっている途中で、ホスト側のコンピュータ装
置Bが端末側のコンピュータ装置Aに対してデータの送
信を行なってしまった場合には、ホスト側のコンピュー
タ装置Bのマイクロプロセッサ6’からのパラレルの送
信データ9a’がデータバス8’を介して通信制御回路
2’へ入力され、この入力されたパラレルの送信データ
9a’は通信制御回路2’により、シリアルの送信デー
タ9b’へ変換され、この変換されたシリアルの送信デ
ータ9b’が送受信分離回路4”内の送信ゲート回路4
fへ入力されることになるが、この送信ゲート回路4f
は閉じられているので、シリアルの送信データ9b’が
通信変換回路3’へ出力されることはない。よって、通
信回線5上でシリアルの送信データ9b’とシリアルの
受信データ10b’とが混信することがない。Therefore, for example, while data is being transmitted from the computer A on the terminal side to the computer B on the host side, the computer B on the host side transmits data to the computer A on the terminal side. If the transmission has been performed, the parallel transmission data 9a 'from the microprocessor 6'of the computer B on the host side is input to the communication control circuit 2'via the data bus 8', and this is input. The parallel transmission data 9a ′ is converted into serial transmission data 9b ′ by the communication control circuit 2 ′, and the converted serial transmission data 9b ′ is transmitted to the transmission gate circuit 4 in the transmission / reception separation circuit 4 ″.
This will be input to f, but this transmission gate circuit 4f
Is closed, the serial transmission data 9b 'is not output to the communication conversion circuit 3'. Therefore, the serial transmission data 9b 'and the serial reception data 10b' do not interfere with each other on the communication line 5.
【0070】上記の構成によれば、端末側のコンピュー
タ装置Aとホスト側のコンピュータ装置Bとの間で、互
いに半二重通信方式でデータの送受信を行なう際に、従
来問題となっていた操作を行なった場合、すなわちホス
ト側のコンピュータ装置Bが一時送信を中断している間
に、端末側のコンピュータ装置Aからホスト側のコンピ
ュータ装置Bへ通信回線5を介して送信を開始してしま
った場合には、ホスト側のコンピュータ装置Bから再度
シリアルの送信データ9b’を送信してもホスト側の送
受信分離回路4’が受信モードになっているので、ホス
ト側からのシリアルの送信データ9b’はホスト側の送
受信分離回路4’内の送信ゲート回路4f’で遮断され
る。従って、複数のコンピュータ装置が、互いに通信回
線5を介してデータの送受信を行なう際に、送信データ
と受信データとが混信することを防止することができる
ので、送受信動作の信頼性を向上させることができると
ともに送受信データの転送効率を上げることができる。According to the above construction, when the terminal-side computer unit A and the host-side computer unit B send and receive data to and from each other by the half-duplex communication method, the operation which has been a conventional problem. When the computer apparatus B on the host side suspends the temporary transmission, the transmission is started from the computer apparatus A on the terminal side to the computer apparatus B on the host side via the communication line 5. In this case, even if the serial transmission data 9b 'is transmitted from the host computer A again, the transmission / reception separation circuit 4'on the host side is in the reception mode. Therefore, the serial transmission data 9b' from the host is transmitted. Is blocked by the transmission gate circuit 4f 'in the transmission / reception separation circuit 4'on the host side. Therefore, when a plurality of computer devices transmit and receive data to and from each other via the communication line 5, it is possible to prevent transmission data and reception data from interfering with each other, thereby improving the reliability of the transmission and reception operation. It is possible to improve the transfer efficiency of transmitted / received data.
【0071】また、本実施例のシリアル通信回路におい
ては、複数のコンピュータ装置の間で互いに通信を行な
うための通信回線5として赤外線からなる光通信を用い
て通信を行なったので高速かつ信頼性の高いデータの送
受信を行なうことができ、更に複数のコンピュータ装置
の間を電気的に接続するためのケーブルの配線が不要と
なり、通信するための接続が容易であり、安価で通信シ
ステムを構成することができる。Further, in the serial communication circuit of the present embodiment, since the optical communication consisting of infrared rays is used as the communication line 5 for communicating between a plurality of computer devices, the communication is performed at high speed and with high reliability. High data transmission / reception is possible, further, wiring of a cable for electrically connecting a plurality of computer devices is not required, connection for communication is easy, and an inexpensive communication system is configured. You can
【0072】なお、一般に通信を行なうためのアプリケ
ーションソフトにおいて、通信するためのブロックデー
タは、送受信されるデータの種類を示すヘッダ部、送信
する内容のデータ部および送信されたデータを確認する
ためのエラーチェック用データ部から構成されており、
前記ブロックデータ内の各部により、通信回線の接続状
態の確認、データの送受信手順の確認および送受信され
たデータの確認等が行なわれ、もし異常があった場合に
は、データの送信を再度行なうようになっている。In general, in application software for communication, block data for communication includes a header section indicating the type of data to be transmitted / received, a data section of contents to be transmitted, and the transmitted data. It consists of an error check data section,
Each section in the block data confirms the connection state of the communication line, confirms the data transmission / reception procedure, confirms the transmitted / received data, and the like, and if there is an abnormality, retransmits the data. It has become.
【0073】従って、上述したように、送受信データが
シリアル通信回路1、1’の送受信分離回路4、4’に
より、シリアルの送信データ9b、9b’あるいはシリ
アルの受信データ10b、10b’を遮断されたとして
も、データの送信が再度行なわれるので最終的には全て
のデータの受信が正常に行なわれる。本実施例の送受信
分離回路4は送受信されるデータを自動的に切り換える
ので、半二重通信方式のシリアル半二重通信回線であり
ながら、疑似的に全二重通信用のアプリケーションソフ
トを使用することができる。また、コンピュータ装置に
おいて送受信モードの切り換えを行なうための通信制御
手順を簡略化することができる。Therefore, as described above, the transmission / reception data is blocked by the transmission / reception separation circuits 4 and 4'of the serial communication circuits 1 and 1 ', the serial transmission data 9b and 9b' or the serial reception data 10b and 10b '. Even if it does, since the data is transmitted again, finally all the data are normally received. Since the transmission / reception separation circuit 4 of this embodiment automatically switches the data to be transmitted / received, pseudo application software for full-duplex communication is used even though it is a half-duplex communication serial half-duplex communication line. be able to. Further, the communication control procedure for switching the transmission / reception mode in the computer device can be simplified.
【0074】なお、通信回線の手段として本実施例では
赤外線を使用した光信号を用いたが、半二重通信方式の
モデムを用いてもよい。In this embodiment, an optical signal using infrared rays is used as a communication line means, but a half-duplex communication mode modem may be used.
【0075】[0075]
【発明の効果】以上説明してきたように、本発明によれ
ば、複数のコンピュータ装置が、互いに通信回線を通し
てデータの送受信を行なう場合において、送信データと
受信データとが混信することを防止することができるの
で、送受信動作の信頼性を著しく向上させることができ
るとともに送受信データの転送効率を大幅に向上させる
ことができるという優れた効果を奏する。また、コンピ
ュータ装置の間の送受信の通信モードを自動的に切り換
えるので半二重通信回線で全二重通信用ソフトウェアを
使用することができ、送受信の通信モードを切り換える
ための通信制御手順を簡略化することができるという効
果も奏する。As described above, according to the present invention, it is possible to prevent transmission data and reception data from interfering with each other when a plurality of computer devices transmit and receive data to and from each other through a communication line. Therefore, it is possible to significantly improve the reliability of the transmission / reception operation and to greatly improve the transfer efficiency of the transmission / reception data. Also, since the transmission / reception communication mode between the computer devices is automatically switched, full-duplex communication software can be used on the half-duplex communication line, and the communication control procedure for switching the transmission / reception communication mode is simplified. There is also an effect that can be done.
【図1】本発明の一実施例である半二重通信回路のブロ
ック図である。FIG. 1 is a block diagram of a half-duplex communication circuit that is an embodiment of the present invention.
【図2】図1に示した送受信分離回路内の詳細ブロック
図である。2 is a detailed block diagram of a transmission / reception separation circuit shown in FIG.
【図3】図2に示した送受信分離回路内の一部を変更し
た詳細ブロック図である。FIG. 3 is a detailed block diagram in which a part of the transmission / reception separation circuit shown in FIG. 2 is modified.
【図4】本発明の他の実施例である送受信分離回路の詳
細ブロック図である。FIG. 4 is a detailed block diagram of a transmission / reception separation circuit according to another embodiment of the present invention.
【図5】従来の半二重通信方式のシリアル通信回路であ
る。FIG. 5 is a conventional half-duplex communication serial communication circuit.
【図6】端末側のコンピュータ装置の通信変換回路とホ
スト側のコンピュータ装置の通信変換回路とが、互いに
赤外線を使用して送受信する場合の具体的な構造の一例
を示した概略断面図である。FIG. 6 is a schematic cross-sectional view showing an example of a specific structure when the communication conversion circuit of the computer device on the terminal side and the communication conversion circuit of the computer device on the host side mutually transmit and receive using infrared rays. .
1、1’ シリアル通信回路 2、2’ 通信制御回路 3、3’ 通信変換回路 3a、3a’ 送信部 3b、3b’受信部 4、4’、4”、40 送受信分離回路 4a 受信データ検知回路 4b 動作モード切換回路 4c 送信データ検知回路 4d モードタイマー回路 4e 受信ゲート回路 4f 送信ゲート回路 5 通信回線 6 マイクロプロセッサ 7 アドレスバス 8 データバス 9a、9a’ パラレルの送信データ 9b、9b’ シリアルの送信データ 10a、10a’ パラレルの受信データ 10b、10b’ シリアルの受信データ 1, 1'serial communication circuit 2, 2'communication control circuit 3, 3'communication conversion circuit 3a, 3a 'transmission unit 3b, 3b' reception unit 4, 4 ', 4 ", 40 transmission / reception separation circuit 4a reception data detection circuit 4b Operation mode switching circuit 4c Transmission data detection circuit 4d Mode timer circuit 4e Reception gate circuit 4f Transmission gate circuit 5 Communication line 6 Microprocessor 7 Address bus 8 Data bus 9a, 9a 'Parallel transmission data 9b, 9b' Serial transmission data 10a, 10a 'Parallel reception data 10b, 10b' Serial reception data
Claims (6)
変換およびシリアルのデータをパラレルのデータへ変換
するための通信制御回路と、電気信号を通信するための
信号へ変換するための送信部および通信するための信号
を電気信号へ変換するための受信部とを有する通信変換
回路とを有する半二重通信方式のシリアル通信回路にお
いて、 前記通信制御回路と前記通信変換回路との間に送信デー
タと受信データとを分離するための送受信分離回路を設
けたことを特徴とする半二重通信方式のシリアル通信回
路。1. A communication control circuit for converting parallel data into serial data and serial data into parallel data, a transmission unit for converting electrical signals into signals for communicating, and communication. A half-duplex communication serial communication circuit having a communication conversion circuit having a receiving unit for converting a signal for converting into an electric signal, and transmitting data and receiving between the communication control circuit and the communication conversion circuit. A half-duplex communication serial communication circuit having a transmission / reception separation circuit for separating data.
するための送信データ検知回路と、受信データを検知す
るための受信データ検知回路と、前記送受信分離回路の
モードを受信モード、受信モードまたはアイドルモード
へ切り換えるための動作モード切換回路と、送受信デー
タを転送するための時間を設定するためのモードタイマ
ー回路と、受信データを出力するための受信ゲート回路
とを有することを特徴とする請求項1に記載の半二重通
信方式のシリアル通信回路。2. A transmission data detection circuit for the transmission / reception separation circuit to detect transmission data, a reception data detection circuit for detecting reception data, and a mode of the transmission / reception separation circuit as a reception mode, a reception mode, or an idle mode. 2. An operation mode switching circuit for switching to a mode, a mode timer circuit for setting a time for transferring transmission / reception data, and a reception gate circuit for outputting reception data. The half-duplex communication serial communication circuit described in.
するための送信ゲート回路を更に設けたことを特徴とす
る請求項2に記載の半二重通信方式のシリアル通信回
路。3. The half-duplex communication serial communication circuit according to claim 2, further comprising a transmission gate circuit for outputting transmission data to the transmission / reception separation circuit.
変換およびシリアルのデータをパラレルのデータへ変換
するための通信制御回路と、電気信号を通信するための
信号へ変換するための送信部および通信するための信号
を電気信号へ変換するための受信部とを有する通信変換
回路とを有するシリアル通信回路を有する複数のコンピ
ュータ装置が互いに、信号を送受信するための半二重通
信方式の通信回線を介して送受信を行なう通信システム
において、 前記通信制御回路と前記通信変換回路との間に送受信分
離回路を設けたことを特徴とする通信システム。4. A communication control circuit for converting parallel data into serial data and for converting serial data into parallel data, a transmission unit for converting an electric signal into a signal for communicating, and communication. A plurality of computer devices each having a serial communication circuit having a communication conversion circuit having a receiving unit for converting a signal for converting into an electric signal, and a communication circuit of a half-duplex communication system for transmitting and receiving signals to and from each other. A communication system for performing transmission / reception by providing a transmission / reception separation circuit between the communication control circuit and the communication conversion circuit.
変換する手段と、光信号を電気信号へ変換する手段とを
有していることを特徴とする請求項1に記載の半二重通
信方式のシリアル通信回路。5. The half-duplex according to claim 1, wherein the communication conversion circuit has means for converting an electric signal into an optical signal and means for converting an optical signal into an electric signal. Communication method serial communication circuit.
を特徴とする請求項5に記載の半二重通信方式のシリア
ル通信回路および通信システム。6. The half-duplex communication serial communication circuit and communication system according to claim 5, wherein infrared light is used as the optical signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6114016A JPH07297790A (en) | 1994-04-28 | 1994-04-28 | Serial communication circuit and communication system for half-duplex communication system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP6114016A JPH07297790A (en) | 1994-04-28 | 1994-04-28 | Serial communication circuit and communication system for half-duplex communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH07297790A true JPH07297790A (en) | 1995-11-10 |
Family
ID=14626946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP6114016A Pending JPH07297790A (en) | 1994-04-28 | 1994-04-28 | Serial communication circuit and communication system for half-duplex communication system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH07297790A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007267155A (en) * | 2006-03-29 | 2007-10-11 | Fujitsu Ltd | Memory system |
US7578282B2 (en) | 2006-01-27 | 2009-08-25 | Denso Corporation | Apparatus for processing sensor signal from knock sensor of internal combustion engine |
JP2012195639A (en) * | 2011-03-15 | 2012-10-11 | Nec Access Technica Ltd | Information processing device, information processing method, and information processing program |
-
1994
- 1994-04-28 JP JP6114016A patent/JPH07297790A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7578282B2 (en) | 2006-01-27 | 2009-08-25 | Denso Corporation | Apparatus for processing sensor signal from knock sensor of internal combustion engine |
JP2007267155A (en) * | 2006-03-29 | 2007-10-11 | Fujitsu Ltd | Memory system |
JP2012195639A (en) * | 2011-03-15 | 2012-10-11 | Nec Access Technica Ltd | Information processing device, information processing method, and information processing program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7899968B2 (en) | USB integrated bidirectional digital isolator channel across an interface between two USB devices | |
JPH07297790A (en) | Serial communication circuit and communication system for half-duplex communication system | |
US5467467A (en) | High reliability console connecting device | |
JPH04326828A (en) | Control circuit for half double/simplex interface in communication system | |
KR101013615B1 (en) | Control circuit | |
JPH03104582A (en) | Robot control device using serial communication | |
JPH10308796A (en) | Wrong connection detection circuit of inter-device cable | |
KR940006657Y1 (en) | Selecting circuit of information i/o | |
JP3155763B2 (en) | Signal processing device | |
JPH0533090Y2 (en) | ||
JPS5829241A (en) | Data communication system | |
JPS6192061A (en) | Data bus terminal equipment | |
KR890002301Y1 (en) | Communication port expanding circuit of computer terminal | |
JPH02270444A (en) | 2-wire full duplex/half-duplex switching device | |
KR0179285B1 (en) | Data transmission device | |
KR100788014B1 (en) | Broadcast signal transmission system and method | |
JP2762276B2 (en) | Redundant communication line | |
JPH03162156A (en) | Controller of duplexed communication bus | |
JPS62269529A (en) | Data repeater | |
JPH05167476A (en) | Data transmitter | |
JPS61206348A (en) | Transmission and reception system | |
JPS61270929A (en) | Wireless transmission system | |
JPH02222236A (en) | Communication equipment | |
JPS6394733A (en) | Signal transmission equipment | |
JPS6292633A (en) | Receiver failure determination circuit for wireless relay equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20010306 |