JPS6075147A - Semi-duplex communication method - Google Patents
Semi-duplex communication methodInfo
- Publication number
- JPS6075147A JPS6075147A JP58184108A JP18410883A JPS6075147A JP S6075147 A JPS6075147 A JP S6075147A JP 58184108 A JP58184108 A JP 58184108A JP 18410883 A JP18410883 A JP 18410883A JP S6075147 A JPS6075147 A JP S6075147A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- unit
- reception
- communication
- mode
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/14—Two-way operation using the same type of signal, i.e. duplex
- H04L5/16—Half-duplex systems; Simplex/duplex switching; Transmission of break signals non-automatically inverting the direction of transmission
Abstract
Description
【発明の詳細な説明】
技術分野
本発明は2本の通信線を介して交互に通イばを行なう半
二重通信方法に関し、特に通信線の一方に異常が生じた
場合に於ける他方造1= it−用いた片側通信の確保
が行なえる半二重通信方法に関するものでるる。[Detailed Description of the Invention] Technical Field The present invention relates to a half-duplex communication method in which communication is carried out alternately via two communication lines, and in particular, when an abnormality occurs in one of the communication lines, This relates to a half-duplex communication method that can secure one-sided communication using 1=it-.
背景技術
近年、電子技術の急速な発達に伴なって、各種装置に2
本の通信Iwを介して1キヤラクタ毎に交互にデータ通
イ^を送受信する半二重通信方法が利用されている。こ
の場合、半二重通信方法に於いて最も問題となる事は、
通信線の片側に障害が生ずると、互いの(i @ Kよ
って同期が取られているためにすべての通16が行なえ
なくなってしまうことである。Background Art In recent years, with the rapid development of electronic technology, two types of
A half-duplex communication method is used in which data communication I^ is sent and received alternately for each character via the book communication Iw. In this case, the biggest problem with the half-duplex communication method is
If a failure occurs on one side of the communication line, all communications 16 will become impossible because they are synchronized by each other's (i@K).
この様な問題を解決するものとしては、大型コンピュー
タ等に於いて用いられている様な複雑な通信制御手順を
用いることが考えられるが、プ目グラム容量の増大と多
くのチェック処理に伴なって転送時間が長くなってしま
う。また、上記方法を用いる場合にμ、システムが大型
となって極めて高価なものとなる問題を有している。One possible solution to this problem is to use complex communication control procedures such as those used in large-scale computers, but due to the increase in program capacity and the number of check processes, Therefore, the transfer time becomes longer. Furthermore, when using the above method, there is a problem that the system becomes large and extremely expensive.
発明の開示
従って、本発明による目的は5片方の通信線に障害が生
じた場合にも、他方の通信線を用いた片側通信を確保す
ることが出来るとともに、障害通信線が復旧した場合に
はそく正常通信が行なえる半二重通信方法を提供するこ
とである。DISCLOSURE OF THE INVENTION Accordingly, the present invention has five objectives: Even if one communication line fails, it is possible to ensure one-sided communication using the other communication line, and when the faulty communication line is restored, The object of the present invention is to provide a half-duplex communication method that allows normal communication.
この様な目的を達成するために本発明は、相手側が予め
定められた時間にわたって受信が行なえない時に送シ返
されて来る受信要求信号によって受信モードとなシ、こ
の受信要求信号に続いて1キヤラクタ以上でかつ2キヤ
ラクタ以下の時間間隔で送られて来る送信信号を受信す
る毎にlキャラクタ分の信号を送信するものである。In order to achieve such an object, the present invention enables the other party to enter the reception mode by a reception request signal that is sent back when reception cannot be performed for a predetermined period of time, and to enter the reception mode following this reception request signal. Each time a transmission signal sent at a time interval of more than one character and less than two characters is received, a signal for one character is transmitted.
よって、本発明による半二重通信方法によれは、送信側
の通信線に障害が発生したことを確実に検出することが
出来るとともeこ、障害発生後に於いても受信側の通信
線を介して情報の受信を確保することが出来る。また、
障害発生後に於いても送信モードと受信モードを繰ル返
していることから、送信側の通信線に対する障害が復旧
すると、そく通常状態に戻ることが出来る等の種々優れ
た効果を有する。Therefore, according to the half-duplex communication method according to the present invention, it is possible to reliably detect the occurrence of a fault in the communication line on the transmitting side, and it is also possible to detect the occurrence of a fault in the communication line on the receiving side even after the fault has occurred. The reception of information can be ensured through the Internet. Also,
Since the transmission mode and reception mode are repeated even after a failure has occurred, it has various excellent effects such as being able to return to the normal state as soon as the failure to the transmission side communication line is recovered.
発8Aを実施するための最良な形態
第1図は本発明による半二重通信方法の一実施例を説明
するためのブロック図でアル。同11に於いてlはマイ
クロコンピュータを内蔵する第1ユニツトであって、%
桶センツ゛−等からの信号INII 、 lN1mを入
力するとともに、図示しない端末機の制御を実行する。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram for explaining an embodiment of a half-duplex communication method according to the present invention. In the same 11, l is the first unit containing a microcomputer, and %
It inputs signals INII and IN1m from the bucket center, etc., and also controls a terminal (not shown).
また、この第15−ニット1は、送信モードに於いてシ
リアル信号t−1キヤラクタ単位に通信線2へ送出する
とともに、受信モードに於いては通信線3を介して送ら
れて来るシリアル信号を受信する。4は第1ユニツトと
同一構成の第2ユニツトであって、信号線2を介して送
られて来るシリアル信号の取シ込みおよび信号線3への
シリアル信号構成による送信信号の送出全実行する。従
って、これら第1.第2ユニット1,4は2本の通信線
2.3を介して互いに接続されることによ勺、半二1通
信が行なえる様になっている。以下、上記構成によるシ
ステムの動作を第2図に示すフローチャートを用いて説
明する。In addition, this 15th-nit 1 transmits the serial signal in units of t-1 characters to the communication line 2 in the transmission mode, and receives the serial signal sent via the communication line 3 in the reception mode. Receive. Reference numeral 4 denotes a second unit having the same configuration as the first unit, which takes in a serial signal sent through the signal line 2 and sends out a transmission signal to the signal line 3 according to the serial signal configuration. Therefore, these first. The second units 1 and 4 are connected to each other via two communication lines 2.3 so that two-way communication can be performed. The operation of the system with the above configuration will be explained below using the flowchart shown in FIG.
まず、第1.第2ユニット1.4がスタートされると、
その内部に設けられているマイクロコンピュータが作動
して、第2図に示すステツ、7’ 8xに於いてレジス
タNをリセットした後にステツ2′S2に移行する。ス
テップ82に於いてはスタートビットの検出を行ない、
相手側のユニットから送られて米る1キヤラクタ単位の
シリアル信号の先頭部に位置するスタートビットの検出
が行なわれる。そして、このスタートビットが検出され
ると、ステラf83に於いてレジスタNをリセットする
とともにステップ′S4に於いて受信異常ン2グを零に
セットする。次にステップ8sに於いて、第2ユニツト
4から通信a3を介して送られて米る1キヤラクタ単位
のシリアルデータの受信を実行する。そして、この1キ
ヤラクタのシリアル(i号を第1ユニツト1が受信を終
了すると、この受信データの処理をステップS6に於い
て実行した後にステップS7に移行する。ステップS7
に於いては端末から供給される信号の取り込みを行ない
、ステップS8に於いては端末に信号を供#する処理を
実行する。Cの様な処理が終了したならば、ステップS
9に於いて準備された送1gデータをステップ810に
於い−C第3図(a)に示すシリアル信号Δとして送出
することによシ通1d腺2をブrして第2ユニツト4へ
送信する。そして、このステップ810の処理が終了す
ると、ステップS2に戻ることによ夕同様な動作を繰p
返して1キヤラクタ毎による送受信が行なわれる。First, 1. When the second unit 1.4 is started,
The microcomputer provided therein operates and resets the register N in steps 7' to 8x shown in FIG. 2, and then proceeds to step 2'S2. In step 82, a start bit is detected,
The start bit located at the head of the serial signal sent from the other unit in units of one character is detected. When this start bit is detected, the register N is reset in the Stella f83 and the reception error ring 2 is set to zero in step 'S4. Next, in step 8s, the serial data sent from the second unit 4 via the communication a3 is received in units of one character. When the first unit 1 finishes receiving this one-character serial number (i), the received data is processed in step S6, and then the process moves to step S7.Step S7
In step S8, a signal supplied from the terminal is taken in, and in step S8, processing for supplying the signal to the terminal is executed. When the process like C is completed, step S
In step 810, the transmission data prepared in step 9 is sent as a serial signal Δ shown in FIG. Send. When the process of step 810 is completed, the process returns to step S2 to repeat the same operation as before.
In return, transmission and reception are performed character by character.
次にa倍線3の一部に障害が発生すると、スタートビッ
トの受信が行なえなくなることからステップ811に移
行してt1時間の経過を判別する。そして、この場合に
於ける時間t1は、1キヤラクタ以上で2キヤラクタ以
下の時間に設定されている。ステップS11に於いてt
i待時間経過が判別されると、ステップsHに於いてレ
ジスタNに1加算を行なった値が予め定められた設定値
nに一部するか否かの判別を行なう。そして、このステ
ップ8szの判別がノーであった場合には、ステップS
7に戻されて端末からの信号の取シ込み、端末制御、送
信データの準備およびシリアルデータの送イハ動作が繰
p返して行なわれることになる。この様な動作がn回行
なわれると、ステップ81mに於けるイ4」断がイエス
となって受イば別の通イg腺3に障害が発生したことが
検出され、ステップ813に於いてレジスタNにロー1
がセットされた後に、ステップS14に於いて通信異當
7ングが1″にセットされる。Next, if a failure occurs in a part of the a-multiple line 3, the start bit cannot be received, so the process moves to step 811 and it is determined whether the time t1 has elapsed. In this case, the time t1 is set to a time that is greater than or equal to one character and less than or equal to two characters. In step S11, t
When it is determined that the i waiting time has elapsed, it is determined in step sH whether the value obtained by adding 1 to the register N is part of a predetermined set value n. If the determination in step 8sz is NO, step S
7, the reception of signals from the terminal, terminal control, preparation of transmission data, and serial data transmission operations are repeated. When such an operation is performed n times, if the determination in Step 81m is YES and the result is YES, it is detected that a failure has occurred in another Ig gland 3, and in Step 813 Low 1 in register N
After is set, the communication error is set to 1'' in step S14.
そして、このステラ7”S14の処理が完了すると、ス
テップS7に戻されて送信処理が枕9返し夾行妊れる。When the process of Stella 7'' S14 is completed, the process returns to step S7 and the transmission process is interrupted.
次に、第3図にT!で示す時点に於いて、通信m2のP
点に障害が発生すると、43N(a)に示す送1B信号
Aはこの障害部分に於いて吸収されることから、第2ユ
ニツト4の受(,3信号は第3図(b)にA′で示す徐
に無信号となる。従って、この第2ユニツト4は、先の
受イW ji号に応答する送信16号Bの発生を時点T
2に於いて梃子すると、2キャラクタ以上の12時間に
わたって受信信号A′が無信号であるか否か全判別する
。そして、この判別がイエスである場合には、信号a2
に障害が発生したものとして受信要求信号Xf:送信す
ることによって第1ユニットl’fi−受信モードに強
制的に制御するとともに、この受信要求信号Xに続いて
第3図(りに示す信号Bを送出する。第に二ツ)Il−
1:第2ユニツト4から受信要求信号Xに続いて送られ
て来る信号の受信を完了すると、この受信信号に応答し
て第3図(a)に示す信号Aの送信を行なう。そして、
以後はM2ユニット4から送られて来る18号Bに応答
した送信動作を繰シ返すことによって、第1ユニツト1
の受信動作が確保されることになる。Next, in Figure 3, T! At the time indicated by , P of communication m2
If a fault occurs at the point 43N(a), the transmission 1B signal A shown in FIG. Therefore, this second unit 4 detects the generation of the transmission signal 16B in response to the previous reception signal Wji at the time T.
2, it is determined whether or not the received signal A' is no signal for 12 hours of 2 characters or more. Then, if this determination is YES, the signal a2
By transmitting the reception request signal Xf assuming that a failure has occurred in 2) Il-
1: When the reception of the signal sent from the second unit 4 following the reception request signal X is completed, the signal A shown in FIG. 3(a) is transmitted in response to this reception signal. and,
After that, by repeating the transmission operation in response to No. 18B sent from M2 unit 4, the first unit 1
This will ensure the reception operation.
次に、通信線2の障害が復旧すると、第1ユニツト1は
第2ユニツト4の送信信号Bに応答して送信動作を続け
ていることから、通常の送受信モードにiIIノ復旧す
る。Next, when the fault in the communication line 2 is recovered, the first unit 1 continues the transmission operation in response to the transmission signal B from the second unit 4, and therefore returns to the normal transmission/reception mode.
以上説明した様に5本発明による半二1通信方法は、送
信信号が予め設定された時間以上にわたって相手側に受
1Hされなかった場合に送シ返されて来る受信要求信号
によって送信側の通信線に障害が発生したことを検出す
ることが出来るとともに、他方の信号線を用いた受信動
作を確保し続けることが出来る。また、送信側の通信線
に障害が発生しても受信信号に応答した送信動作を続け
ているために、陣害復旧時に通常の通信モードに即く戻
ることが出来る等の種々優れた効果t−有する。As explained above, in the half-21 communication method according to the present invention, when the transmitted signal is not received by the other party for a preset period of time or more, the transmitting side communicates using the reception request signal that is sent back. It is possible to detect that a fault has occurred in the line, and to continue to ensure reception using the other signal line. In addition, even if a failure occurs in the communication line on the transmitting side, the transmission operation continues in response to the received signal, so it has various excellent effects such as being able to quickly return to the normal communication mode when the line is restored. - have.
第1図は本発明による半二重通信方法の一実施例t−説
明するためのブロック図%第2崗は第1図の動作を示す
フローチャート、第3図(a)〜<C)は第1図に示す
ブロック囚の各部動作波形図である。
l・・・Mlユニツ)、2.3・・・通信線、4・・・
第2ユニツト。FIG. 1 is a block diagram for explaining an embodiment of the half-duplex communication method according to the present invention.The second figure is a flowchart showing the operation of FIG. FIG. 2 is a waveform diagram of the operation of each part of the block shown in FIG. 1; l...Ml unit), 2.3... Communication line, 4...
2nd unit.
Claims (1)
いに2本の通イば#Jを介して接続されることによ、9
1キャラクタ単位のシリアル信号を交互に送受信する半
二重通信方法に於いて1相手側が予め定められた時間に
わたって信号の受信が行なえない時に送り返されて来る
受信要求信号の受信時に送信側の通信線に障害が発生し
たものと判断して受信モードとなシ、信号の受イに終了
毎に1キャンフタ分のシリアル信号を送イgする動作を
株p返丁ことを%黴とする半二重通信方法。(υ If the units with built-in microphones and computers are connected to each other via two wires #J, 9
In a half-duplex communication method that alternately sends and receives serial signals in units of one character, the communication line on the sending side when receiving a reception request signal that is sent back when one partner cannot receive a signal for a predetermined period of time. When it is determined that a failure has occurred, the mode is switched to reception mode, and the half-duplex mode is set to half-duplex mode, which sends a serial signal for one frame each time the signal is received. Communication method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58184108A JPS6075147A (en) | 1983-09-30 | 1983-09-30 | Semi-duplex communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58184108A JPS6075147A (en) | 1983-09-30 | 1983-09-30 | Semi-duplex communication method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS6075147A true JPS6075147A (en) | 1985-04-27 |
Family
ID=16147525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58184108A Pending JPS6075147A (en) | 1983-09-30 | 1983-09-30 | Semi-duplex communication method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6075147A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5539451A (en) * | 1978-09-14 | 1980-03-19 | Meidensha Electric Mfg Co Ltd | Fault detection system for remote monitor control device |
-
1983
- 1983-09-30 JP JP58184108A patent/JPS6075147A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5539451A (en) * | 1978-09-14 | 1980-03-19 | Meidensha Electric Mfg Co Ltd | Fault detection system for remote monitor control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS602813B2 (en) | Computer-to-computer communication method and system | |
JPH0638600B2 (en) | Local area network system | |
US4977499A (en) | Method and apparatus for commanding operations on a computer network | |
US5206860A (en) | Recovery from a possible switching error in a computer i/o system | |
JPS6075147A (en) | Semi-duplex communication method | |
JPH04291556A (en) | Communication control system | |
JP2612951B2 (en) | Operation check method of parity detection circuit | |
JP3245552B2 (en) | Transfer control system | |
JPS5847350A (en) | Data communication system | |
JPS6257337A (en) | Data transmission equipment | |
JPS6075146A (en) | Semi-duplex communication method | |
JP2616246B2 (en) | Dual processing method for inter-system data in dual operation redundant apparatus and dual operation redundant apparatus | |
JPS60239148A (en) | Duplicated ring type transmission system | |
JPS633536A (en) | Loop transmission line error correction system | |
JPH0635816A (en) | Multi-cpu sustem | |
JPH0447406A (en) | Communication equipment for programmable controller | |
JPH02264337A (en) | Data transfer control system | |
JPH0131738B2 (en) | ||
KR19980057607A (en) | Redundancy | |
JPH0544860B2 (en) | ||
JPS61109336A (en) | Private multiplex transmitter | |
JPH0368230A (en) | Synchronization slip preventing device for data bus | |
JPH0833841B2 (en) | Data duplication processing system | |
JPS6059837A (en) | Transmission confirming system | |
JPH02306735A (en) | Data transmission/reception system |