JPH01276841A - Data transferring method - Google Patents

Data transferring method

Info

Publication number
JPH01276841A
JPH01276841A JP10695488A JP10695488A JPH01276841A JP H01276841 A JPH01276841 A JP H01276841A JP 10695488 A JP10695488 A JP 10695488A JP 10695488 A JP10695488 A JP 10695488A JP H01276841 A JPH01276841 A JP H01276841A
Authority
JP
Japan
Prior art keywords
data
transfer
code
transmission
error
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
JP10695488A
Other languages
Japanese (ja)
Inventor
Kaori Yoshioka
義岡 香織
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP10695488A priority Critical patent/JPH01276841A/en
Publication of JPH01276841A publication Critical patent/JPH01276841A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To shorten the time necessary to detect a data error at a receiving side by adding a prescribed code to the peak side of data to be transmitted, transmitting it from a transmitting side, decoding a prescribed received code and detecting the transmission error of the transmission data by the result. CONSTITUTION:A prescribed code 1b is added and transmitted to the peak side of data 1a to be transmitted and at the receiving side, the prescribed received code 1b is decoded. Thus, since it is obvious whether or not an error occurs at the data received at a receiving part, when an error detecting code is received, the re-transmission can be immediately executed at the time point without awaiting the receiving completion of all data and the processing time necessary to the re-transmission at the time of generating an error is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータ、就中ディジタルデータの転送方法に関
し、更に詳述すれば、データ転送時に生じる誤りの検出
及び誤りが検出された場合のデータの回復を容易とした
データ転送方法に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a method for transferring data, especially digital data, and more specifically, to a method for detecting errors that occur during data transfer and for detecting errors in data when an error is detected. This invention relates to a data transfer method that facilitates recovery.

〔従来の技術〕[Conventional technology]

ディジタルデータの送受信に際しては、データ誤りの発
生の抑止及びその回復が重要な課題である。第3図はた
とえば特開昭59−81940号公報に開示されている
従来のデータ転送方法に使用される装置の構成の一例を
示す模式図である。
When transmitting and receiving digital data, preventing data errors from occurring and recovering from them are important issues. FIG. 3 is a schematic diagram showing an example of the configuration of a device used in the conventional data transfer method disclosed in, for example, Japanese Patent Application Laid-Open No. 59-81940.

図において、1aは送信対象のデータ(以下、送信デー
タという)であり、9は実際に送信されるデータ(以下
、転送データという)である、転送データ9は送信デー
タlaの末尾にサムチエツク値9aを付加したものであ
る。
In the figure, 1a is data to be transmitted (hereinafter referred to as transmission data), 9 is data that is actually transmitted (hereinafter referred to as transfer data), and transfer data 9 has a thumb check value 9a at the end of transmission data la. is added.

また、1は送信データlaを格納している送信データ領
域、2は送信データ1aのサムチエツク値9aを生成し
、これを送信データlaに付加して転送データ9を作成
し、データ線5を介して送信する送信部、3はデータ線
5を介して送信されて来る転送データ9を受信する受信
部、4は受信した転送データ9の内の送信データ1aの
部分のみを受信データ4aとして格納する受信データ領
域である。
In addition, 1 is a transmission data area storing transmission data la, and 2 is a transmission data area that generates a thumb check value 9a of transmission data 1a, adds this to transmission data la to create transfer data 9, and transmits it via data line 5. 3 is a receiving section that receives the transfer data 9 transmitted via the data line 5; 4 is a receiving section that stores only the transmission data 1a portion of the received transfer data 9 as reception data 4a. This is the receive data area.

また、8はデータ照合部であり、受信部3が受信した転
送データ9の内の送信データ1aに相当する部分のサム
チエシフ値を生成し、これと転送データ9の末尾に付加
されているサムチエツク値9aとを照合し、一致した場
合にはデータ誤りが無かったものとして転送データ9の
内の送信データ1畠の部分を受信部3から受信データ領
域4へ与えて格納させ、また一致しなかった場合はデー
タ誤りがあったものとして制御線6へ転送連絡コードを
送信する。
Further, 8 is a data collation unit, which generates a sum check value of the portion corresponding to the transmission data 1a of the transfer data 9 received by the reception unit 3, and combines this with the sum check value added to the end of the transfer data 9. 9a, and if they match, it is assumed that there was no data error, and the portion of the transmitted data 1 of the transferred data 9 is given from the receiving unit 3 to the received data area 4 for storage, and if they do not match, it is assumed that there is no data error. If so, it is determined that there is a data error and a transfer contact code is transmitted to the control line 6.

7は転送連絡コード受信部であり、制御線6から転送連
絡コードを受信し、これがデータ誤りの発生を表す信号
である場合には、送信部2にデータの再送信を行わせる
Reference numeral 7 denotes a transfer contact code receiving section which receives a transfer contact code from the control line 6, and if this is a signal indicating the occurrence of a data error, causes the transmitter 2 to retransmit the data.

このような従来のデータ転送方法では以下のようにして
データを転送し、データ誤りを回避している。
In such conventional data transfer methods, data is transferred in the following manner to avoid data errors.

送信データ領域1に格納されている送信データlaは送
信部2に逐次取出され、ここでその全バイト加算により
サムチエツク値9aが生成される。このサムチエツク値
9aは本来送信されるべき送信データ1aの末尾に付加
されて転送データ9として送信部2に一時記憶された後
、データ線5を介して受信部3へ送信される。
The transmission data la stored in the transmission data area 1 is sequentially taken out by the transmission section 2, and a sum check value 9a is generated by adding all the bytes. This sum check value 9a is added to the end of the transmission data 1a that should originally be transmitted, is temporarily stored in the transmission section 2 as transfer data 9, and is then transmitted to the reception section 3 via the data line 5.

受信部3では、転送データ9を一時記憶するが、この転
送データ9の内の送信データIaの部分はデータ照合部
8に取出される。データ照合部8は転送データ9の内の
送信データ1aの部分のサムチエツク値を生成し、これ
と受信部3に記憶されている転送データ9の末尾に付加
されているサムチエツク値9aとを比較照合する。
The receiving section 3 temporarily stores the transfer data 9, and the transmission data Ia portion of the transfer data 9 is taken out by the data collation section 8. The data collation unit 8 generates a sum check value for the transmission data 1a portion of the transfer data 9, and compares and verifies this with the sum check value 9a added to the end of the transfer data 9 stored in the reception unit 3. do.

この結果、両サムチエツク値が一致した場合には、デー
タ照合部8はデータ誤り無しの転送連絡コードを転送連
絡コード受信部7へ送信すると共に、受信部3に記憶さ
れている転送データ9はそのサムチエ7り値9aが除か
れて送信データ1aに相当する部分だけが受信データ4
aへ格納される。−方、両サムチエツク値が一致しなか
った場合は、データ照合部8はデータ誤りが発生したこ
とを表す転送連絡コードを転送連絡コード受信部7へ送
信する。これを受けて、転送連絡コード受信部7では直
ちにデータの再送信を行う。
As a result, if both sum check values match, the data collation section 8 transmits a transfer communication code with no data error to the transfer communication code reception section 7, and the transfer data 9 stored in the reception section 3 is Samchie 7 value 9a is removed and only the part corresponding to transmission data 1a is received data 4
stored in a. - On the other hand, if the two sum check values do not match, the data matching section 8 transmits a transfer communication code indicating that a data error has occurred to the transfer communication code receiving section 7. Upon receiving this, the transfer contact code receiving section 7 immediately retransmits the data.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

以上のような従来のデータ転送方法では、転送データ9
の総てを受信した後でなければサムチエツク値の生成が
出来ないため、転送データ9に誤りが有るか否かを判定
することが出来ず、またデータの正誤はサムチエツク値
によってのみ判定されているので、信頼性に乏しいとい
う問題がある。
In the conventional data transfer method as described above, the transfer data 9
Since the sum check value cannot be generated until all of the data have been received, it is not possible to determine whether or not there is an error in the transferred data 9, and the correctness of the data is determined only by the sum check value. Therefore, there is a problem of poor reliability.

本発明はこのような事情に鑑みてなされたものであり、
受信側におけるデータ誤りの検出に要する時間を短縮す
ると共に、より信相性の高いデータ転送方法の提供を目
的とする。
The present invention was made in view of these circumstances, and
The present invention aims to shorten the time required for detecting data errors on the receiving side and to provide a data transfer method with higher reliability.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデータ転送方法は、送信されるべきデータの先
頭側に所定のコードを付加して送信し、受信側において
は受信した所定のコードを解読するようにしている。
In the data transfer method of the present invention, a predetermined code is added to the beginning of the data to be transmitted, and the receiving side decodes the received predetermined code.

〔作用〕[Effect]

本発明のデータ転送方法では、受信側において受信した
所定のコードを解読することにより、総てのデータを受
信するより以前にデータ転送中のデータ誤りの発生の有
無が検出される。
In the data transfer method of the present invention, by decoding a predetermined code received on the receiving side, the presence or absence of a data error during data transfer is detected before all data is received.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明をその実施例を示す図面に基づいて詳述す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below based on drawings showing embodiments thereof.

第1図は本発明のデータ転送方法の実施に使用される装
置構成を示すブロック図である。なお、前述の第3図に
示した従来のデータ転送方法の説明図と同一または対応
する部分には同一の参照符号を付与しである。
FIG. 1 is a block diagram showing the configuration of a device used to implement the data transfer method of the present invention. Note that the same reference numerals are given to the same or corresponding parts as in the explanatory diagram of the conventional data transfer method shown in FIG. 3 described above.

第1図において、1aは送信対象のデータ(以下、送信
データという)であり、9は実際に送信されるデータ(
以下、転送データという)である、転送データ9は送信
データlaの先頭側に所定のコード(以下、エラー検出
コードという)が付加され、また末尾にサムチエツク値
9aを付加したものである。
In FIG. 1, 1a is data to be transmitted (hereinafter referred to as transmission data), and 9 is data to be actually transmitted (hereinafter referred to as transmission data).
The transfer data 9 (hereinafter referred to as transfer data) is the transmission data la with a predetermined code (hereinafter referred to as an error detection code) added to the beginning and a thumb check value 9a added to the end.

また、1は送信データ1aを格納している送信データ領
域、2は送信データlaにエラー検出コード1b及びサ
ムチエツク値9aを付加した転送データ9を作成し、こ
れをデータ線5を介して送信する送信部、3はデータ線
5を介して送信されて来る転送データ9を受信する受信
部、4は受信した転送データ9の内の送信データ1aの
部分のみを受信データ4aとして格納する受信データ領
域である。
Further, 1 is a transmission data area storing transmission data 1a, and 2 is a transmission data area in which an error detection code 1b and a thumb check value 9a are added to the transmission data la to create transfer data 9, and this is transmitted via a data line 5. A transmitter 3 receives transfer data 9 transmitted via the data line 5; 4 a receive data area that stores only the transmit data 1a portion of the received transfer data 9 as received data 4a; It is.

また、8はデータ照合部であり、受信部3が受信した転
送データ9の内のエラー検出コード1bを解読し、この
結果により正常に受信されているか否かを検出する。正
常に受信されなかった場合には、データ照合部8は直ち
にその旨を表す転送連絡コードを制御線6を介して転送
連絡コード受信部7へ送信する。またエラー検出コード
lbが正常に受信されている場合には更に、送信データ
1aに相当する部分のサムチエツク値を作成し、これと
転送データ9の末尾に付加されているサムチエツク値9
aとを照合し、一致した場合にはデータ転送中のデータ
誤りの発生は無かったものとして転送データ9の内の送
信データlaの部分を受信部3から受信データ領域4へ
転送させ、また一致しなかった場合はデータ誤りがあっ
たものとして制御線6へ転送連絡コードを送信する。
Further, 8 is a data verification unit, which decodes the error detection code 1b in the transfer data 9 received by the reception unit 3, and detects based on the result whether or not the data has been received normally. If the data has not been received normally, the data matching section 8 immediately transmits a transfer communication code indicating that fact to the transfer communication code receiving section 7 via the control line 6. Furthermore, if the error detection code lb has been received normally, a sum check value of the part corresponding to the transmission data 1a is created, and this and the sum check value 9 added to the end of the transfer data 9 are added.
If they match, it is assumed that no data error has occurred during data transfer, and the transmission data la portion of the transfer data 9 is transferred from the receiving section 3 to the reception data area 4, and once again. If not, it is assumed that there is a data error and a transfer contact code is transmitted to the control line 6.

7は転送連絡コード受信部であり、制御線6から転送連
絡コードを受信した場合には、送信したデータに誤りが
生じたものとして、送信部2にデータの再送信を行わせ
る。
Reference numeral 7 denotes a transfer contact code receiving section, which, when receiving a transfer contact code from the control line 6, assumes that an error has occurred in the transmitted data and causes the transmitter 2 to retransmit the data.

このような装置構成により行われる本発明のデータ転送
方法は以下の如くである。なお、第2図はその手順を示
すフローチャートである。
The data transfer method of the present invention performed by such a device configuration is as follows. Note that FIG. 2 is a flowchart showing the procedure.

送信データ領域1に格納されている送信データ1aは送
信部2に逐次取出され、ここでその先頭側にエラー検出
コードlbが付加され、更にその全バイト加算によりサ
ムチエツク値9aが生成される。
The transmission data 1a stored in the transmission data area 1 is sequentially taken out by the transmission section 2, where an error detection code lb is added to the head thereof, and a sum check value 9a is generated by adding all the bytes.

このサムチエツク値9aは本来送信されるべき送信デー
タlaの末尾に付加されて転送データ9として送信部2
に一時記憶された後、データ線5を介して受信部3へ送
信される。
This thumb check value 9a is added to the end of the transmission data la that should originally be transmitted and sent to the transmitter 2 as transfer data 9.
After being temporarily stored in the data line 5, the data is transmitted to the receiving section 3 via the data line 5.

受信部3では、転送データ9を一時記憶するが、エラー
検出コード1bが受信された時点でデータ照合部8はそ
の解読を行い、この結果により正常に受信されたか否か
を検出する。正常でない場合には、転送連絡コード受信
部7へその旨を表す転送連絡コードを送信する。これに
より、転送連絡コード受信部7は送信部2に同一の送信
データlaの再送信を行わせる。
The receiving section 3 temporarily stores the transfer data 9, but when the error detection code 1b is received, the data collating section 8 decodes it, and based on this result, it is detected whether or not the data has been received normally. If it is not normal, a transfer contact code indicating that fact is transmitted to the transfer contact code receiving section 7. Thereby, the transfer contact code receiving section 7 causes the transmitting section 2 to retransmit the same transmission data la.

エラー検出コード1bが正常に受信された場合には、デ
ータ照合部8はサムチエツク値9aの総てが受信部3に
受信されて記憶された後、転送データ9の内の送信デー
タlaの部分を取出し、転送データ9の内の送信データ
laの部分のサムチエツク値を作成し、これと受信部3
に記憶されている転送データ9の末尾に付加されている
サムチエツク値9aとを比較照合する。
When the error detection code 1b is normally received, the data collation section 8 checks the transmission data la part of the transfer data 9 after all the sum check values 9a are received and stored in the reception section 3. Take out, create a thumb check value of the transmission data la part of the transfer data 9, and combine this with the reception section 3.
The sum check value 9a added to the end of the transfer data 9 stored in the transfer data 9 is compared and verified.

この結果、両サムチエツク値が一致した場合には、デー
タ誤り無しの転送連絡コードをデータ照合部8は制御線
6を介して転送連絡コード受信部7へ送信すると共に、
受信部3に記憶されている転送データ9はそのエラー検
出コード1b及びサムチエツク値9aが除がれた送信デ
ータlaに相当する部分が受信データ領域4へ格納され
る。一方、両サムチエツク値が一致しなかった場合は、
データ誤りが発生したことを表す転送連絡コードがデー
タ照合部8から転送連絡コード受信部7へ送信され、転
送連絡コード受信部7では直ちにデータの再送信を行う
As a result, if both sum check values match, the data matching section 8 transmits a transfer communication code with no data error to the transfer communication code receiving section 7 via the control line 6, and
A portion of the transfer data 9 stored in the receiving section 3 corresponding to the transmission data la from which the error detection code 1b and sum check value 9a have been removed is stored in the reception data area 4. On the other hand, if the two thumb check values do not match,
A transfer contact code indicating that a data error has occurred is transmitted from the data matching section 8 to the transfer contact code receiving section 7, and the transfer contact code receiving section 7 immediately retransmits the data.

〔発明の効果〕〔Effect of the invention〕

以上のように、本発明のデータ転送方法にょれば、受信
部に受信されたデータに誤りが生じているか否かはエラ
ー検出コードが受信された時点で判明するので、データ
の総ての受信完了を待つことなくその時点で直ちに再送
信を行うことが可能になり、誤り発生時の再送信に要す
る処理時間が短縮される。
As described above, according to the data transfer method of the present invention, whether or not an error has occurred in the data received by the receiving section can be determined at the time when the error detection code is received. It becomes possible to perform retransmission immediately at that point without waiting for completion, and the processing time required for retransmission when an error occurs is shortened.

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

第1図は本発明のデータ電送方法の実施に使用される装
置構成を示すブロック図、第2図は本発明方法の手順を
示すフローチャート、第3図は従来のデータ転送方法の
説明図である。 1a・・・送信データ  1b・・・エラー検出コード
4a・・・受信データ  9・・・転送データ  9a
・・・サムチエツク値 なお、各図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing the configuration of equipment used to carry out the data transmission method of the present invention, FIG. 2 is a flowchart showing the procedure of the method of the present invention, and FIG. 3 is an explanatory diagram of the conventional data transfer method. . 1a...Transmission data 1b...Error detection code 4a...Reception data 9...Transfer data 9a
...Thumb check value Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 1、送信すべきデータの先頭側に所定のコードを付加し
て送信側から送信し、受信した前記所定のコードを解読
し、その結果により伝送データの伝送誤りを検出するこ
とを特徴とするデータ転送方法。
1. Data characterized by adding a predetermined code to the beginning of data to be transmitted, transmitting it from the transmitting side, decoding the received predetermined code, and detecting a transmission error in the transmitted data based on the result. Transfer method.
JP10695488A 1988-04-27 1988-04-27 Data transferring method Pending JPH01276841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10695488A JPH01276841A (en) 1988-04-27 1988-04-27 Data transferring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10695488A JPH01276841A (en) 1988-04-27 1988-04-27 Data transferring method

Publications (1)

Publication Number Publication Date
JPH01276841A true JPH01276841A (en) 1989-11-07

Family

ID=14446747

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10695488A Pending JPH01276841A (en) 1988-04-27 1988-04-27 Data transferring method

Country Status (1)

Country Link
JP (1) JPH01276841A (en)

Similar Documents

Publication Publication Date Title
US20020071421A1 (en) Method and system for data loss detection and recovery in wireless communication process
JPS5981940A (en) Data transfer system
US5740189A (en) Integrity check method and system for serial-based communication
US8880972B2 (en) Serial transmission apparatus, information processing apparatus, and serial transmission method
JP3217716B2 (en) Wireless packet communication device
JPH01276841A (en) Data transferring method
JPH01834A (en) Full duplex communication method
JPS63318838A (en) Error control communication method
JPS609240A (en) Communication controller
JPH11272573A (en) File transfer method, file transfer system and recording medium
JPH06290130A (en) Data communication controller
JPH06204989A (en) Data communication equipment
JPH104413A (en) Data transmission system
JPH01252037A (en) Transmitting error correcting system
JP2891267B2 (en) Data retransmission transmission method
JPH09326782A (en) Serial communication method
GB2120055A (en) Data communication system
JPS5983430A (en) Serial transmission circuit
JPH1013388A (en) Data transfer equipment
JP2536385B2 (en) Data communication method
JPH06101723B2 (en) Data transmission method
JPS60236533A (en) Data communication equipment
JPH05260125A (en) Data transfer control system
JPH05219023A (en) Transmitting device for data with error control code
JPH11308200A (en) Device and method for correcting error