JPH02266728A - Data transmission error control system - Google Patents

Data transmission error control system

Info

Publication number
JPH02266728A
JPH02266728A JP1089241A JP8924189A JPH02266728A JP H02266728 A JPH02266728 A JP H02266728A JP 1089241 A JP1089241 A JP 1089241A JP 8924189 A JP8924189 A JP 8924189A JP H02266728 A JPH02266728 A JP H02266728A
Authority
JP
Japan
Prior art keywords
data
processor
bit
transmission
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1089241A
Other languages
Japanese (ja)
Inventor
Reiko Sato
玲子 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1089241A priority Critical patent/JPH02266728A/en
Publication of JPH02266728A publication Critical patent/JPH02266728A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform data transfer normally even when a fixed fault occurs by taking the ENOR of data received first and the data received in the first re-transmission, and repeating the combinational transmission of bits that go to '1'. CONSTITUTION:A processor A compares return data from a processor B with original data, and performs the recursive transmission of the data in which all bits are inverted when noncoincidence is obtained. When the noncoincidence is obtained in second data comparison, the processor B takes the ENOR (inversion of exclusive OR) of first reception data and second reception data (inversion data), and detects a defective data part. When the defective data part is detected, the data is transferred to the processor A with the combination of ON ('1') and OFF ('0') possibly considered for the defective part, and comparison with the original data is performed at a processor A side. Such sequence is repeated until coincidence between both data can be obtained. Thereby, it is possible to perform the data transfer normally even when the fixed data fault occurs.

Description

【発明の詳細な説明】 [概要] プロセッサ相互間でデータ伝送する場合のデータ伝送誤
り制御方式に関し、更に詳しくは反復伝過方式を用いて
データ送受信を行う場合のデータ伝送誤り制御方式に関
し、 固定的な伝送障害が発生した場合でもプロセッサ相互間
のデータ転送を正常に行えるようにすることを目的とし
、 プロセッサAからプロセッサBに対してデータ転送を行
い、プロセッサBでは受信したデータをプロセッサAに
返送し、プロセッサAでは、送信状態のままプロセッサ
Bからの返送データを読込み、元のデータとの比較を行
い、不一致が発生した場合には、プロセッサAはデータ
の全ビットを反転してプロセッサBに再送し、プロセッ
サBは、受信した再送データをそのままプロセッサAに
返送し、プロセッサAでは、返送されてきたデータと再
送データとの比較を行い、不一致が発生した場合には、
プロセッサAは再び元のデータをプロセッサBに転送し
、プロセッサBは、最初に受信したデータと再送1回目
に受信したデータとの間でENORをとり、1となった
ビットを見つけて再送されてきたデータに対し、本ビッ
トのオンオフの組合せによって得られたビットパターン
に受信データの該当ビットを変化させて返送し、ステッ
プ8でENORをとって1となったビットの組合せ送信
をプロセッサA側で送信データと返送データの一致がと
れるまで繰返すように構成する。
[Detailed Description of the Invention] [Summary] This invention relates to a data transmission error control method when transmitting data between processors, more specifically, regarding a data transmission error control method when transmitting and receiving data using a repeated transmission method. The purpose of this system is to enable normal data transfer between processors even when a transmission failure occurs. Data is transferred from processor A to processor B, and processor B transfers the received data to processor A. Processor A reads the data returned from Processor B in the sending state and compares it with the original data. If a mismatch occurs, Processor A inverts all bits of the data and transfers it to Processor B. Processor B then returns the received retransmitted data as is to processor A. Processor A compares the returned data with the retransmitted data, and if a mismatch occurs,
Processor A transfers the original data to processor B again, and processor B performs ENOR between the first received data and the first retransmitted data, finds the bit that is 1, and transfers the data to processor B. For the received data, change the corresponding bits of the received data to the bit pattern obtained by the combination of on/off of this bit and send it back, and in step 8, processor A side sends the combination of bits that are ENOR'd and become 1. The configuration is such that it is repeated until the sent data and returned data match.

[産業上の利用分野] 本発明はプロセッサ相互間でデータ伝送する場合のデー
タ伝送誤り制御方式に関し、更に詳しくは反復伝送方式
を用いてデータ送受信を行う場合のデータ伝送誤り制御
方式に関する。
[Industrial Application Field] The present invention relates to a data transmission error control method when transmitting data between processors, and more particularly to a data transmission error control method when transmitting and receiving data using a repetitive transmission method.

プロセッサ相互間でデータ伝送を行う場合には、データ
が正確に伝送されたかどうかをチエツクする必要があり
、そのために種々のデータ伝送誤り検出方法が用いられ
ている。このデータ伝送誤り検出は、正確、確実である
ことが必要である。
When data is transmitted between processors, it is necessary to check whether the data has been transmitted correctly, and various data transmission error detection methods are used for this purpose. This data transmission error detection needs to be accurate and reliable.

[従来の技術J プロセッサ相互間でデータ伝送を行う場合に、データ伝
送が正確に行われたかどうかをチエツクする方式として
反復伝送方式がある。第8図は従来の反復伝送方式の説
明図である。プロセッサAはデータ保持用レジスタIA
、データ保存用バッファメモリ2A及びこれらレジスタ
IA及びバッファメモリ2Aの制御を行う制御プログラ
ム(具体的にはCPU)3Aより構成され、プロセッサ
Bについても同様のレジスタIB、バッファメモリ2B
及び制御プログラム3Bより構成されている。
[Prior Art J] When transmitting data between processors, there is a repeated transmission method as a method for checking whether data transmission has been performed accurately. FIG. 8 is an explanatory diagram of a conventional repetitive transmission system. Processor A has data holding register IA
, a data storage buffer memory 2A, and a control program (specifically, a CPU) 3A that controls these registers IA and buffer memory 2A, and processor B also has a similar register IB and buffer memory 2B.
and a control program 3B.

今、プロセッサAからプロセッサBに対してバッファメ
モリ2Aに格納されているデータの転送を行うものとす
る。バッファメモリ2Aに格納されているデータは制御
プログラム3Aにより順次読出されてレジスタIAに入
り、レジスタIAからプロセッサBに転送される。第9
図(イ)はデータ転送の様子を示す図である。プロセッ
サAからプロセッサBに向かってa、b、c、d、・・
・の順にデータが転送される。プロセッサBでは、受信
したデータを制御プログラム3Bの制御の下にバッファ
メモリ2bに順次格納する。プロセッサAは、全てのデ
ータ転送が終了したらプロセッサBに対してその旨の通
知を行う。
Now, assume that processor A transfers data stored in buffer memory 2A to processor B. The data stored in the buffer memory 2A is sequentially read out by the control program 3A, enters the register IA, and is transferred from the register IA to the processor B. 9th
Figure (A) is a diagram showing the state of data transfer. From processor A to processor B, a, b, c, d, etc.
・Data is transferred in the order of . Processor B sequentially stores the received data in buffer memory 2b under the control of control program 3B. When processor A completes all data transfer, processor A notifies processor B to that effect.

プロセッサBは当該通知を受けたら、バッファメモリ2
Bに格納されているデータを順次読出してレジスタIB
から受信した順に順次プロセッサAに返送する。第9図
(ロ)はプロセッサBからプロセッサAへのデータ返送
の順序を示しており、受信した順、即ちa、  b、 
 c、 d・・・の順になっている。プロセッサAでは
、返送されてくるデータをバッファメモリ2Aに格納さ
れている元のデータと突合わせ比較を行い、データが正
確に伝送されたかどうかをチエツクする。全てのデータ
が一致したら、プロセッサAからプロセッサBへのデー
タ伝送が正常に行われたことが分かる。
Upon receiving the notification, processor B stores buffer memory 2.
Sequentially read the data stored in B and register IB.
The data are sent back to processor A in the order in which they are received. FIG. 9(b) shows the order in which data is returned from processor B to processor A, in the order in which it was received, that is, a, b,
The order is c, d... Processor A compares the returned data with the original data stored in buffer memory 2A to check whether the data has been transmitted correctly. If all the data match, it is known that the data transmission from processor A to processor B was performed normally.

[発明が解決しようとする課題] 前述した従来の反復伝送方式では、全てのデータ伝送が
うまくいった場合には問題はないが、プロセッサA側で
元のデータと返送データとの間に不一致が発生した場合
に問題となる。つまり、不一致が発生したら、プロセッ
サAから再度全データを最初からプロセッサB側に再送
するようにしていた。このような方式では、データが一
致するまでプロセッサAからの同一データの再送→プロ
セッサBからの受信データの再送→プロセッサA側での
データ一致検出というシーケンスを繰返している。しか
しながら、このような方式では固定的な伝送障害が発生
すると、何回再送しても正常なデータ転送はできない。
[Problems to be Solved by the Invention] In the conventional repetitive transmission method described above, there is no problem if all data transmission is successful, but if there is a discrepancy between the original data and the returned data on the processor A side. It becomes a problem if it occurs. In other words, if a mismatch occurs, all data is retransmitted from processor A to processor B from the beginning. In such a system, the sequence of retransmission of the same data from processor A -> retransmission of received data from processor B -> data matching detection on the processor A side is repeated until the data match. However, in such a system, if a fixed transmission failure occurs, normal data transfer cannot be performed no matter how many times the data is retransmitted.

この結果、データ転送が不可能になるという不具合があ
った。
As a result, there was a problem in that data transfer was impossible.

本発明はこのような課題に鑑みてなされたものであって
、固定的な伝送障害が発生した場合でもプロセッサ相互
間のデータ転送を正常に行えるようにすることができる
データ伝送誤り制御方式を提供することを目的としてい
る。
The present invention has been made in view of these problems, and provides a data transmission error control method that allows data transmission between processors to be performed normally even when a fixed transmission failure occurs. It is intended to.

[課題を解決するための手段] 第1図は本発明方式の原理を示すフローチャートである
。本発明は、 プロセッサAとプロセッサBとをデータレジスタとコン
トロールレジスタを介して接続し、制御プログラムによ
りプロセッサAとプロセッサ8間のデータ伝送を行う場
合において、 プロセッサAからプロセッサBに対してデータ転送を行
い(ステップ1)、 プロセッサBでは受信したデータをプロセッサAに返送
しくステップ2)、 プロセッサAでは、送信状態のままプロセッサBからの
返送データを読込み、元のデータとの比較を行い(ステ
ップ3)、 不一致が発生した場合には、プロセッサAはデータの全
ビットを反転してプロセッサBに再送しくステップ4)
、 プロセッサBは、受信した再送データをそのままプロセ
ッサAに返送しくステップ5)、プロセッサAでは、返
送されてきたデータと再送データとの比較を行い(ステ
ップ6)、不一致が発生した場合には、プロセッサAは
再び元のデータをプロセッサBに転送しくステップ7)
、 プロセッサBは、最初に受信したデータと再送1回目に
受信したデータとの間でENORをとり、1となったビ
ットを見つけて再送されてきたデータに対し、本ビット
のオンオフの組合せによって得られたビットパターンに
受信データの該当ビットを変化させて返送しくステップ
8)、ステップ8でENORをとって1となったビット
の組合せ送信をプロセッサA側で送信データと返送デー
タの一致がとれるまで繰返す(ステップ9)ように構成
したことを特徴としている。
[Means for Solving the Problems] FIG. 1 is a flowchart showing the principle of the system of the present invention. The present invention provides a method for transmitting data from processor A to processor B when processor A and processor B are connected via a data register and a control register, and data is transmitted between processor A and processor 8 using a control program. (Step 1), Processor B sends the received data back to Processor A (Step 2), and Processor A reads the data returned from Processor B in the sending state and compares it with the original data (Step 3). ), if a mismatch occurs, processor A inverts all bits of the data and resends it to processor B (step 4).
, Processor B sends the received retransmitted data back to processor A as is (Step 5). Processor A compares the returned data with the retransmitted data (Step 6), and if a mismatch occurs, Processor A transfers the original data to processor B again (Step 7)
, Processor B performs ENOR between the first received data and the first retransmitted data, finds the bit that is 1, and applies the obtained bit to the retransmitted data by turning on and off this bit. Change the corresponding bit of the received data to the bit pattern and send it back (Step 8), and send the combination of the bits that were ENORed to 1 in Step 8 until the processor A matches the sent data and the returned data. It is characterized in that it is configured to repeat (step 9).

[作用] 反復伝送方式によりプロセッサBからの返送データを元
のデータと比較し、不一致が発生したら、次にデータの
全ピットを反転したものについて反復伝送を行う。2回
目のデータ比較でも不一致だった場合には、プロセッサ
Bで1回目の受信データと、2回目の受信データ(この
場合には反転データ)とのENOR(排他的論理和の反
転)をとり、不良データ部分を検出する。不良データ部
分が検出されたら、この不良部分について、考えられる
オン(“1°)オフ(“0”)の組合わせで、プロセッ
サBからプロセッサAにデータ転送し、プロセッサA側
で元のデータとの比較を行う。このシーケンスを両デー
タが一致するまで繰返す。
[Operation] The data returned from processor B is compared with the original data using the repetitive transmission method, and if a discrepancy occurs, the next data with all pits inverted is repeatedly transmitted. If there is a mismatch in the second data comparison, processor B performs ENOR (exclusive OR inversion) between the first received data and the second received data (in this case, inverted data). Detect bad data parts. When a defective data part is detected, data is transferred from processor B to processor A for this defective part using possible combinations of ON (“1°”) and OFF (“0”), and processor A side combines the data with the original data. This sequence is repeated until both data match.

このような構成をとることにより、固定的データ障害が
あった場合でも必ず正常なデータの伝送を行うことがで
きる。
By adopting such a configuration, normal data transmission can always be performed even if there is a fixed data failure.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第2図は本発明が適用される計算機システムのブロック
図である。図において、プロセッサAは、伝送用のデー
タが保持されるデータレジスタ11A、ライトモード又
はリードモードの決定、優先権の確保等を相互に通知し
あうためのデータが保持されるコントロールレジスタ1
2A、転送データが保存されるバッファメモリ13A及
びデータ伝送の制御を行う制御プログラム14Aより構
成されている。この構成は、プロセッサB側についても
同様で、データレジスタ11B、コントロールレジスタ
12B、バッファメモリ13B及び制御プログラム14
Bより構成されている。制御プログラム14A、14B
を動作させるのは、具体的にはCPU (図示せず)で
ある。
FIG. 2 is a block diagram of a computer system to which the present invention is applied. In the figure, processor A includes a data register 11A that holds data for transmission, and a control register 1 that holds data for mutually notifying each other of determining write mode or read mode, securing priority, etc.
2A, a buffer memory 13A in which transfer data is stored, and a control program 14A that controls data transmission. This configuration is the same on the processor B side, including a data register 11B, a control register 12B, a buffer memory 13B, and a control program 14.
It is composed of B. Control programs 14A, 14B
Specifically, it is a CPU (not shown) that operates the .

このように構成されたシステムにおいて、コントロール
レジスタ12Aから12Bに優先権確保の通知を行い、
プロセッサAからプロセッサBヘデータ転送を行うもの
とする。この時には、バッファメモリ13Aに保存され
ているデータが制御プログラム14Aの制御下で、デー
タレジスタ11Aを介してプロセッサB側に転送される
。それと同時に、プロセッサBは受信したデータをデー
タレジスタIIBを介してプロセッサAに返送する。
In the system configured as described above, notification of priority reservation is sent from control registers 12A to 12B,
Assume that data is transferred from processor A to processor B. At this time, the data stored in the buffer memory 13A is transferred to the processor B side via the data register 11A under the control of the control program 14A. At the same time, processor B sends the received data back to processor A via data register IIB.

プロセッサA側では、返送されてくるデータを送信状態
のままでバッファメモリ13Aに保存されている元のデ
ータと逐次比較する。比較の結果、両方のデータが一致
したら、#l111プログラム14Aは次のデータ送信
のために次に送信すべきデータをバッファメモリ13A
から読出してデータレジスタIIAに書込み、データ転
送を行う。
On the processor A side, the returned data is successively compared with the original data stored in the buffer memory 13A while remaining in the transmission state. As a result of the comparison, if both data match, the #l111 program 14A stores the next data to be transmitted in the buffer memory 13A for the next data transmission.
Data is transferred by reading from and writing to data register IIA.

比較の結果、不一致データが発生したら、コントロール
レジスタ12Aからコントロールレジスタ12Bに不一
致発生を通知する。そして、制御プログラム14Aはデ
ータの全ビットを反転してデータレジスタIIAにセッ
トし、プロセッサBに再送する。プロセッサBはデータ
レジスタ11Bを介して反転データを受信すると、受信
したデータをそのままプロセッサAに返送する。プロセ
ッサA側では、返送されてくるデータを再送データ(元
のデータの反転データ)と比較する。
If mismatched data is generated as a result of the comparison, the control register 12A notifies the control register 12B of the mismatch. Then, the control program 14A inverts all bits of the data, sets it in the data register IIA, and retransmits it to the processor B. When processor B receives the inverted data via data register 11B, processor B returns the received data to processor A as is. On the processor A side, the returned data is compared with retransmitted data (inverted data of the original data).

返送データと再送データの比較でもやはり不一致が発生
したら、フントロールレジスタ12Aからコントロール
レジスタ12Bに不一致発生を通知する。そして、sr
sプログラム14Aは再び元のデータ(反転しない前の
データ)をバッファメモリ13Aから読出してデータレ
ジスタ11Aにセットし、プロセッサBに転送する。
If a mismatch occurs after comparing the returned data and the retransmitted data, the control register 12A notifies the control register 12B of the mismatch. And sr.
The s program 14A again reads the original data (data before being inverted) from the buffer memory 13A, sets it in the data register 11A, and transfers it to the processor B.

プロセッサBg14では、プロセッサAからのデータを
受けて、制御プログラム14Bが最初に受信したデータ
と再送1回目に受信したデータとのENORをとり、そ
の結果が′1″となったビットを見つける。そして、再
送されてきたデータに対して本ビット(@1”が立った
ビット)のオンオフの組合わせによって得られたビット
パターンに受信データの該当ビットを変化させてデータ
レジスタ11Bにセットし、プロセッサAに返送する。
The processor Bg14 receives the data from the processor A, performs an ENOR operation on the data first received by the control program 14B, and the data received at the first retransmission, and finds the bit for which the result is '1'. , change the corresponding bit of the received data to the bit pattern obtained by the combination of on/off of this bit (the bit where @1" is set) for the retransmitted data, set it in the data register 11B, and processor A send it back to

プロセッサA側では、プロセッサBから送られてきたデ
ータを元の送信データと比較する。比較の結果、不一致
であった場合にはコントロールレジスタ12Aを介して
プロセッサB側に通知する。
On the processor A side, the data sent from processor B is compared with the original transmitted data. As a result of the comparison, if there is a mismatch, a notification is sent to the processor B side via the control register 12A.

この結果、プロセッサB側では制御プログラム14Bが
次のビットパターンの組合わせをデータレジスタ11B
にセットし、プロセッサAに返送する。プロセッサA側
では、制御プログラム14Aが送られてきたデータと元
のデータとの比較を行う。
As a result, on the processor B side, the control program 14B stores the next bit pattern combination in the data register 11B.
, and sends it back to processor A. On the processor A side, the control program 14A compares the sent data with the original data.

このようなシーケンスを両方のデータが一致するまで繰
返す。本発明方式によれば伝送障害ビットがいくつあっ
ても比較シーケンスを繰返すことにより必ず一致するよ
うになる。一致したら、そのデータが最初にプロセッサ
AからプロセッサBに転送されたデータということにな
る。一致したら、プロセッサAはコントロールレジスタ
12Aを介してプロセッサBに一致した旨の通知を行な
う。プロセッサBでは、この一致通知を受けた時点で、
当該データをバッファメモリ13Bに格納する。
This sequence is repeated until both data match. According to the method of the present invention, no matter how many transmission failure bits there are, by repeating the comparison sequence, they always match. If they match, that data is the first data transferred from processor A to processor B. If they match, processor A notifies processor B of the match via control register 12A. When processor B receives this match notification,
The data is stored in the buffer memory 13B.

第3図は本発明が適用される計算機システムの一実施例
の詳細構成例を示す図である。第2図と同一のものは、
同一の符号を付して示す。同図は、コントロールレジス
タ12A、12Bを詳細に示している。例えば、プロセ
ッサA側について説明すると、プロセッサAからプロセ
ッサBに制御情報を送る場合(ライト時)には、コント
ロールレジスタ12A1が用いられ、逆にプロセッサB
h1ら@御情報を受ける場合(リード時)には、コント
ロールレジスタ12A2が用いられる。
FIG. 3 is a diagram showing a detailed configuration example of an embodiment of a computer system to which the present invention is applied. The same thing as in Figure 2 is
Indicated with the same reference numerals. The figure shows the control registers 12A and 12B in detail. For example, regarding the processor A side, when sending control information from processor A to processor B (at the time of writing), the control register 12A1 is used;
When receiving control information such as h1 (at the time of reading), the control register 12A2 is used.

コントロールレジスタ12A1はRQSNDビット、R
TSNDビット、FR8Tビット及びRSTDTビット
より構成されている。このコントロールレジスタ12A
1はライト時に用いられるものであり、各構成ビットの
意味は第4図に示すとおりである。コントロールレジス
タ12A2はSNDビット、RCVピッl−、BUSY
ピッ)及びDTRDYビットより構成されている。この
コントロールレジスタ12A2はリード時に用いられる
ものであり、各構成ビットの意味は第5図に示すとおり
である。
Control register 12A1 has RQSND bit, R
It consists of TSND bit, FR8T bit and RSTDT bit. This control register 12A
1 is used at the time of writing, and the meaning of each constituent bit is as shown in FIG. Control register 12A2 has SND bit, RCV pin, BUSY
It consists of bits (Beep) and DTRDY. This control register 12A2 is used at the time of reading, and the meaning of each constituent bit is as shown in FIG.

RQSNDビットは、データ転送を行う時、“1”と書
込むことにより、送信権を要求する。
The RQSND bit requests a transmission right by writing "1" when performing data transfer.

この送信要求が受付けられると、本レジスタ12A1リ
ード時にSNDビットが“1″となり相手側のRCVビ
ットが1”となる。RTSNDビットは、データ転送を
終了した時“1”と書込むことで送信権を解除する。送
信権が解除されると、本レジスタ12A1リード時、S
NDビットが“0″となり、相手方のRCVビットが“
Ooとなる。
When this transmission request is accepted, the SND bit becomes "1" when this register 12A1 is read, and the RCV bit on the other side becomes "1".The RTSND bit is set to "1" when the data transfer is completed, and the transmission is transmitted. When the transmission right is released, when reading this register 12A1, S
The ND bit becomes “0” and the RCV bit of the other party becomes “0”.
It becomes Oo.

FR3Tビットは、誤り制御を行うためにデータ送信を
強制的に中断させる時“1°を書込む。
The FR3T bit is written with “1°” when data transmission is forcibly interrupted to perform error control.

本操作により本レジスタ12A1リード時全ビットが“
0”になり、相手側においても同様の状態となる。R8
TDTビットは、本レジスタ12A1リード時、DTR
DYビットが′1mの時本ビットに“1″を書込むこと
により本レジスタ12A1リード時DTRDYビットが
“0”となり、相手側のBUSYビットが0”となる。
With this operation, all bits of this register 12A1 are set to “
0", and the other party is in the same state. R8
The TDT bit is set to DTR when reading this register 12A1.
By writing "1" to this bit when the DY bit is '1m', the DTRDY bit becomes "0" when reading this register 12A1, and the BUSY bit on the other side becomes "0".

SNDビブトは、データ送信要求が受付けられ送信可能
状態になっていることを表わす。即ち、′1°の時送信
状態を示す。RCVビットは、データ受信状態になって
いることを表わす。即ち、11°の時受信状態を示す。
The SND bit indicates that a data transmission request has been accepted and the data transmission is possible. That is, when it is '1°, it indicates the transmission state. The RCV bit indicates that data is being received. That is, the receiving state is indicated when the angle is 11°.

BUSYビットは、送信状態の時、データレジスタ11
Aに送信データを書込むとalmとなる。相手側にてR
3TDTビットに1”が書込まれると、本ビットは′0
”となる。DTRDYビットは、受信状態の時相手側の
データレジスタ11Bに送信データが書込まれると“1
”となる。R3TDTビットに“1”を書込むと“0”
となる。以上のコントロールレジスタ12A1.12A
2の説明は、プロセッサB側のコントロールレジスタ1
2B1.12B2についても同様である。
The BUSY bit is set in the data register 11 when in the transmitting state.
When sending data is written to A, it becomes alm. R on the other side
When 1” is written to the 3TDT bit, this bit becomes ’0.
”.The DTRDY bit becomes “1” when transmission data is written to the data register 11B of the other party in the receiving state.
”.When “1” is written to the R3TDT bit, it becomes “0”.
becomes. Above control register 12A1.12A
The explanation for 2 is the control register 1 on the processor B side.
The same applies to 2B1.12B2.

第6図は本発明の動作シーケンスを示す図である。図に
示す例は、プロセッサAからプロセッサBにデータを転
送する場合を示している。コントロールレジスタ12A
、12Bについては第4図。
FIG. 6 is a diagram showing the operation sequence of the present invention. The illustrated example shows a case where data is transferred from processor A to processor B. Control register 12A
, 12B is shown in FIG.

第5図に示すように動作するものとする。It is assumed that the system operates as shown in FIG.

今、プロセッサAがプロセッサBに対してデータを転送
する時には、プロセッサAは送信権を獲得するため、R
QSNDビットをオン(“1”にすること。以下同じ)
とし、SNDビットがオンとなるのを確認した後、バッ
ファメモリ13Aから読出した送信データをデータレジ
スタIIAに書込む。
Now, when processor A transfers data to processor B, processor A acquires the transmission right, so R
Turn on the QSND bit (set it to “1”; the same applies below)
After confirming that the SND bit is turned on, the transmission data read from the buffer memory 13A is written into the data register IIA.

一方、プロセッサB側ではコントロールレジスタ12B
を定期的にリードしている。そして、RCvビットがオ
ンとなったのを検出したら受信状態となり、DTRDY
ビットがオンになるのを検出したら、データレジスタI
IBの内容を読込んでデータを受信し、その後、速やか
に今受信したデータをデータレジスタ11Bに書込む。
On the other hand, on the processor B side, control register 12B
regularly leads. Then, when it detects that the RCv bit is turned on, it enters the reception state and DTRDY
When the bit is detected to be turned on, the data register I
The contents of the IB are read and the data is received, and then the data just received is immediately written into the data register 11B.

その後R8TDTビットをオンにする。データレジスタ
11Bの内容はプロセッサAに返送される。
Then turn on the R8TDT bit. The contents of data register 11B are sent back to processor A.

その後、プロセッサAは、BUSYビットがオフになる
のを検出すると、次の送信データをデータレジスタII
Aに書込む前にデータレジスタ11Aの内容(プロセッ
サBからの返送データ)を読込み、バッファメモリ13
Aに格納されている元のデータとの比較を行う。比較の
結果、両方のデータが一致しなかった場合には、データ
伝送誤りがあることになる。
After that, when processor A detects that the BUSY bit is turned off, processor A transfers the next transmission data to data register II.
Before writing to A, the contents of the data register 11A (return data from processor B) are read, and the buffer memory 13
A comparison is made with the original data stored in A. As a result of the comparison, if both data do not match, there is a data transmission error.

この場合には、プロセッサAはFR3Tビットをオンに
して一旦送信を中断する。その後、再度RQSNDビッ
トをオンにして送信が失敗したデータを再度送信して誤
り制御を行う。その後、次のデータの送信を行い、送信
データと返送データとが一致した時には続けて次のデー
タ転送に入る。
In this case, processor A turns on the FR3T bit and temporarily suspends transmission. Thereafter, error control is performed by turning on the RQSND bit again and retransmitting the data whose transmission failed. Thereafter, the next data is transmitted, and when the transmitted data and the returned data match, the next data transfer begins.

このデータ転送シーケンスを最終データを送信し終わる
まで繰返す。
This data transfer sequence is repeated until the final data is sent.

なお、データ再送時にはプロセッサAとプロセッサ8間
で予め取り決められた規則に従って、再送1回目にはプ
ロセッサAでは前述したように再送すべきデータを全ビ
ット反転した後、データレジスタIIAに書込む。一方
、データを受信したプロセッサB側では、受信データを
そのままの形でデータレジスタIIBに書込み返送デー
タとする。しかる後、プロセッサA側のデータ比較で両
方のデータが一致していれば全ビット反転させて受信デ
ータとする。この受信データはバッファメモリ13Bに
格納する。
Note that when data is retransmitted, according to rules decided in advance between processor A and processor 8, in the first retransmission, processor A inverts all bits of the data to be retransmitted as described above, and then writes the data to data register IIA. On the other hand, on the processor B side that has received the data, the received data is written in the data register IIB in the same form as return data. Thereafter, if the data on the processor A side is compared and both data match, all bits are inverted and used as received data. This received data is stored in the buffer memory 13B.

しかしながら、それでも両方のデータが一致しなかった
場合には、以下に示すやり方でデータ転送を行う。第7
図は、具体的なデータ転送シーケンスを示す図である。
However, if both data still do not match, data transfer is performed in the manner described below. 7th
The figure is a diagram showing a specific data transfer sequence.

図に示す例は、データ伝送のビットが8ビツトで、送信
データが028  (Hは16道を示す。以下同じ)の
場合を示している。
The example shown in the figure shows a case where the data transmission bits are 8 bits and the transmitted data is 028 (H indicates 16 ways. The same applies hereinafter).

図中のX印は両方のデータ(プロセッサA側における転
送データと返送データのこと)不一致を、Q印は両方の
データの一致を示している。また、同図に示す障害は、
8ビツトのデータ線のうちLSHのビット線が固定的に
“1°になっている不良を示している。このような場合
であっても正常にデータが伝送できることを以下に示す
In the figure, an X mark indicates a mismatch between both data (transfer data and return data on the processor A side), and a Q mark indicates a match between both data. In addition, the obstacles shown in the same figure are
This shows a defect in which the LSH bit line among the 8-bit data lines is fixed at "1 degree." It will be shown below that data can be transmitted normally even in such a case.

再送1回目までは、既に述べた。再送1回目では不一致
が発生したので、プロセッサAは再度元のデータ02s
をプロセッサBに対して送信する(再送2回目)。プロ
セッサBで受信するデータは1回目と同様に03oであ
る。プロセッサBは、1回目に受信したデータ(つまり
再送2回目の受信データ)とのENORをとり、“1”
が立つビットを見つけだす。ENORシーケンスをデー
タで示せば、以下のとおりである。
I have already mentioned up to the first retransmission. Since a mismatch occurred during the first retransmission, processor A retransmits the original data 02s.
is sent to processor B (second retransmission). The data received by processor B is 03o as in the first time. Processor B performs an ENOR with the first received data (that is, the second retransmitted data) and sets it to “1”.
Find the bit where it stands. The ENOR sequence can be expressed as data as follows.

1回目の受信データ 0000 0011再送1回目の 受信データ     1111 1111これら両方の
データのFOR(排他的論理和)をとると、 となる。ENORはこの否定であるから、となる。′1
”が立つのは下2桁のビットである。
First received data 0000 0011 Retransmission First received data 1111 1111 When the FOR (exclusive OR) of both of these data is taken, the following is obtained. Since ENOR is the negation of this, it becomes. '1
” is set in the lower two digits.

このような演算処理により下2桁のビットが“1”とな
ることが分かったので、プロセッサBは再送2回目の受
信データに対して、下2桁のビットを11を除き、考え
られる組合わせ、00゜01.10と1ビツトずつ変化
させてプロセッサAに返送する。プロセッサAでは、再
送2回目以降は元のデータと返送データとが一致するま
で元のデータ(1回目の送信データ)の送信を繰返す。
Since it was found that the lower two digit bits become "1" through such arithmetic processing, processor B removes 11 from the lower two digit bits for the received data for the second retransmission, and calculates the possible combinations. , 00°01.10, one bit at a time, and sends it back to processor A. Processor A repeats the transmission of the original data (first transmission data) from the second retransmission onwards until the original data and the returned data match.

第7図の例では再送4回目に元のデータと返送データと
が一致した。この一致したデータが、プロセッサAの1
回目の送信データ(転送データ)となる。データが一致
したら、プロセッサBは当該返送データを送信データと
してバッファメモリに格納する。
In the example of FIG. 7, the original data and the returned data match on the fourth retransmission. This matched data is
This is the second transmission data (transfer data). If the data match, processor B stores the returned data in the buffer memory as transmission data.

上述の説明では、プロセッサAがプロセッサBにデータ
を転送する場合を例にとって説明したが、本発明はこれ
に限るものではなく、プロセッサBからプロセッサAに
データを転送する場合についても全く同様である。
In the above description, the case where processor A transfers data to processor B was explained as an example, but the present invention is not limited to this, and the same applies to the case where data is transferred from processor B to processor A. .

[発明の効果] 以上、詳細に説明したように、本発明によればプロセッ
サ相互間に固定的障害が発生した場合でもプロセッサ相
互間のデータ転送を正常に行えるようにすることができ
る。
[Effects of the Invention] As described above in detail, according to the present invention, even if a fixed failure occurs between processors, data transfer between processors can be performed normally.

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

第1図は本発明方式の原理を示すフローチャート、 第2図は本発明が適用される計算機システムのブロック
図、 第3図は本発明が適用される計算機システムの一実施例
の詳細構成例を示すブロック図、第4図はライト時の各
構成ビットの意味を示す図、 第5図はリード時の各構成ビットの意味を示す図、 第6図は本発明の動作シーケンスを示す図、第7図は具
体的なデータ転送シーケンスを示す図、 第8図は従来の反復伝送方式の説明図、第9図はデータ
転送の様子を示す図である。 第2図において、 11A、IIBはデータレジスタ、 12A、12Bはコントロールレジスタ、13A、13
Bはバッファメモリ、 14A、14Bは制御プログラムである。
FIG. 1 is a flowchart showing the principle of the method of the present invention, FIG. 2 is a block diagram of a computer system to which the present invention is applied, and FIG. 3 is a detailed configuration example of an embodiment of a computer system to which the present invention is applied. FIG. 4 is a diagram showing the meaning of each constituent bit when writing, FIG. 5 is a diagram showing the meaning of each constituent bit when reading, and FIG. 6 is a diagram showing the operation sequence of the present invention. FIG. 7 is a diagram showing a specific data transfer sequence, FIG. 8 is an explanatory diagram of a conventional repetitive transmission method, and FIG. 9 is a diagram showing the state of data transfer. In Figure 2, 11A and IIB are data registers, 12A and 12B are control registers, and 13A and 13
B is a buffer memory, and 14A and 14B are control programs.

Claims (1)

【特許請求の範囲】 プロセッサAとプロセッサBとをデータレジスタとコン
トロールレジスタを介して接続し、制御プログラムによ
りプロセッサAとプロセッサB間のデータ伝送を行う場
合において、 プロセッサAからプロセッサBに対してデータ転送を行
い(ステップ1)、 プロセッサBでは受信したデータをプロセッサAに返送
し(ステップ2)、 プロセッサAでは、送信状態のままプロセッサBからの
返送データを読込み、元のデータとの比較を行い(ステ
ップ3)、 不一致が発生した場合には、プロセッサAはデータの全
ビットを反転してプロセッサBに再送し(ステップ4)
、 プロセッサBは、受信した再送データをそのままプロセ
ッサAに返送し(ステップ5)、 プロセッサAでは、返送されてきたデータと再送データ
との比較を行い(ステップ6)、 不一致が発生した場合には、プロセッサAは再び元のデ
ータをプロセッサBに転送し(ステップ7)、 プロセッサBは、最初に受信したデータと再送1回目に
受信したデータとの間でENORをとり、1となったビ
ットを見つけて再送されてきたデータに対し、本ビット
のオンオフの組合せによって得られたビットパターンに
受信データの該当ビットを変化させて返送し(ステップ
8)、 ステップ8でENORをとって1となったビットの組合
せ送信をプロセッサA側で送信データと返送データの一
致がとれるまで繰返す(ステップ9)ように構成したこ
とを特徴とするデータ伝送誤り制御方式。
[Claims] In the case where processor A and processor B are connected via a data register and a control register, and data is transmitted between processor A and processor B using a control program, data is transmitted from processor A to processor B. The data is transferred (step 1), and processor B sends the received data back to processor A (step 2). Processor A reads the data returned from processor B while still in the sending state and compares it with the original data. (Step 3) If a mismatch occurs, processor A inverts all bits of the data and resends it to processor B (Step 4).
, Processor B returns the received retransmitted data as is to processor A (step 5), and processor A compares the returned data with the retransmitted data (step 6), and if a mismatch occurs, , processor A transfers the original data to processor B again (step 7), and processor B performs ENOR between the first received data and the first retransmitted data, and stores the bit that becomes 1. For the data that was found and retransmitted, the corresponding bit of the received data is changed to the bit pattern obtained by the combination of on/off of this bit and sent back (step 8), and in step 8, ENOR is taken and it becomes 1. A data transmission error control system characterized in that bit combination transmission is repeated on the processor A side until transmission data and return data match (step 9).
JP1089241A 1989-04-07 1989-04-07 Data transmission error control system Pending JPH02266728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1089241A JPH02266728A (en) 1989-04-07 1989-04-07 Data transmission error control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1089241A JPH02266728A (en) 1989-04-07 1989-04-07 Data transmission error control system

Publications (1)

Publication Number Publication Date
JPH02266728A true JPH02266728A (en) 1990-10-31

Family

ID=13965251

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1089241A Pending JPH02266728A (en) 1989-04-07 1989-04-07 Data transmission error control system

Country Status (1)

Country Link
JP (1) JPH02266728A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015152414A1 (en) * 2014-04-04 2015-10-08 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication system, transmission device, reception device, communication device, communication method, and program
JP2015201689A (en) * 2014-04-04 2015-11-12 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication system, transmitter, receiver and communication method
JP2016025641A (en) * 2014-07-24 2016-02-08 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication system, communication device, data communication method, and program
JP2021069069A (en) * 2019-10-28 2021-04-30 トヨタ自動車株式会社 Vehicle control device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015152414A1 (en) * 2014-04-04 2015-10-08 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication system, transmission device, reception device, communication device, communication method, and program
JP2015201689A (en) * 2014-04-04 2015-11-12 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication system, transmitter, receiver and communication method
US10178440B2 (en) 2014-04-04 2019-01-08 Ntt Communications Corporation Communication system, transmission apparatus, reception apparatus, communication apparatus, communication method, and program
JP2016025641A (en) * 2014-07-24 2016-02-08 エヌ・ティ・ティ・コミュニケーションズ株式会社 Communication system, communication device, data communication method, and program
JP2021069069A (en) * 2019-10-28 2021-04-30 トヨタ自動車株式会社 Vehicle control device

Similar Documents

Publication Publication Date Title
US4788637A (en) Communication control apparatus
JPH0223888B2 (en)
JP3996928B2 (en) How to handle corrupted data
JPH02199938A (en) Data transmission error detection system
JPH10164139A (en) System for holding sequential ordering by ring network having busy node and supporting idenpotent command
JPH05100879A (en) Device and method for maintaining integrity of control information
JPH02266728A (en) Data transmission error control system
US20030154288A1 (en) Server-client system and data transfer method used in the same system
JPH06204989A (en) Data communication equipment
JPH02244336A (en) Data transmission error control system
JPS58136151A (en) Error correction system
TWI261993B (en) System and method for data redundancy checking and correcting
JP2000165424A (en) Loop type data transmitting device
JP3027439B2 (en) Time split bus control circuit
JP3245552B2 (en) Transfer control system
JP2735246B2 (en) Test and set method
JPH01273450A (en) Test system for data error detecting circuit
JPH09326782A (en) Serial communication method
JPH0424900B2 (en)
JPS62216440A (en) Communication control method
JPS60167052A (en) Data transfer method
JP3842764B2 (en) Bus interface circuit
JPH05313979A (en) Matching check system for common definition information in loose coupling distributed transaction processing system
JPH0298711A (en) Numerical control data transfer checking system
JPH1188473A (en) Communication control system