JPS60236337A - Data communication method - Google Patents

Data communication method

Info

Publication number
JPS60236337A
JPS60236337A JP59092539A JP9253984A JPS60236337A JP S60236337 A JPS60236337 A JP S60236337A JP 59092539 A JP59092539 A JP 59092539A JP 9253984 A JP9253984 A JP 9253984A JP S60236337 A JPS60236337 A JP S60236337A
Authority
JP
Japan
Prior art keywords
answer
response
data
receiver
invalid
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
JP59092539A
Other languages
Japanese (ja)
Inventor
Kuniya Kaneko
金子 邦也
Tadashi Naito
正 内藤
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP59092539A priority Critical patent/JPS60236337A/en
Publication of JPS60236337A publication Critical patent/JPS60236337A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/188Time-out mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To shorten a communication time as less as possible by transmitting again the data sent to a receiver from a transmitter in case an invalid answer or no answer is given to said data from the receiver within the set reference time. CONSTITUTION:A signal ENQ is sent to a receiver R from a transmitter S to set up a data link, and the data link is set up when the answer reception ACK is given from the receiver R. In case a negative answer NAK is produced due to the noise, etc. of communication, the transmission of the ENQ is repeated up to the set (i) times. Then the answers NAK are outputted continuously to the (i+ 1)th transmission. In such a case, a system fault is decided and the communication is discontinued. While the ENQ is transmitted repetitively until the answer ACK is delivered within the prescribed reference time in case an invalid answer or a negative answer is outputted to the ENQ. When no valid answer nor no other answer is outputted even after the reference time is over, a system fault is decided to discontinue the transmission. In such a way, a data link is set up also in case an invalid answer or no answer is supplied during transmission of other data.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、通信時間の短縮化を図ったデータ通信方法に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a data communication method that reduces communication time.

(従来技術) 従来、送信機から受信機へ複数のデータを連続的に送信
する場合、送信機において、各個送信データに対する受
信機からの応答を受けつつデータの授受を行うようにし
たデータ通信方法が知られている。そして、上記した各
個送信データに対する受信機の応答には、そのデータを
確実に受信したことを意味する肯定応答と1通信回路の
ノイズなどが原因でデータを受け損なったことを意味す
る否定応答と、そのデータに対する応答としては不適当
なものとなる無効応答と、受信機からそのデータに対す
る応答が何も無い場合の無応答とが有り、これらの各応
答に対応させて送信機によりデータの送信を行うように
しているう (発明が解決□すべき問題点) ところで、従来にあっては、各個送信データに対する応
答が無効応答か或いは無応答であった場合には、データ
リンクの確立から改めて行うようKしておシ、そのため
、この無効応答や無応答の発生した送信段階が通信終了
時に近いほど通信時間が増大するという問題点を有して
いるう (問題点を解決するだめの手段) 本発明は、上記した問題点を解決する目的で。
(Prior Art) Conventionally, when multiple pieces of data are continuously transmitted from a transmitter to a receiver, there is a data communication method in which the transmitter exchanges data while receiving a response from the receiver for each piece of transmitted data. It has been known. The receiver's response to each of the above-mentioned transmitted data includes an affirmative response, which means that the data has been reliably received, and a negative response, which means that the data was not received due to noise in the communication circuit. , there are invalid responses that are inappropriate as responses to the data, and no responses when there is no response from the receiver to the data, and the transmitter must transmit data in response to each of these responses. (Problem to be solved by the invention) In the past, if the response to each piece of transmitted data was an invalid response or no response, the data link was established again. Therefore, there is a problem that the communication time increases the closer the transmission stage in which invalid responses or no responses occur to the end of communication (there is no way to solve the problem). ) The present invention aims to solve the above-mentioned problems.

送信機から受信機へ複数のデータを連続的に送る形式の
データ通信方法であって、無効応答及び無応答に対して
基準時間を設定し、前記受信機からの前記送信機への応
答が前記無効応答か或いは無応答である場合その時刻が
前記基準時間内であるか否かを判定し、前記時刻か前記
基準時間内であった場合には前記無効応答か或いは無応
答であったデータを再度送信することを特徴とするう (実施例) 以下1本発明の実施例を、図面を参照しつつ説明する。
A data communication method in which a plurality of pieces of data are continuously sent from a transmitter to a receiver, in which a reference time is set for invalid responses and no responses, and the response from the receiver to the transmitter is If there is an invalid response or no response, it is determined whether the time is within the reference time or not, and if the time is within the reference time, the invalid response or no response data is determined. (Embodiment) An embodiment of the present invention will be described below with reference to the drawings.

まず、第1図は1本発明方法を実施するだめの通信シス
テムを示すもので、同図において、システムは送信機8
と受信機几とが信号線lで接続されて構成されている。
First, FIG. 1 shows a communication system for implementing the method of the present invention.
and a receiver are connected by a signal line l.

そして送信機Sは。And the transmitter S.

システムバス2にインターフェース3 、!:第2図に
プロトコルダイヤグラムとして示すプログラムを記憶し
ているメモリ4と該メモリ4内のプ日グラムを解釈実行
し、後述する基準値(送信回数i、送信時間T)と実際
値とを比較する機能を有するCPU 5とが接続されて
その構成の概略を成し、同様に受信機几も、システム/
<ス6にインターフェース7とメモリ8とCPU 9と
が接続されて概略構成されているものである。
Interface 3 to system bus 2,! : Interpret and execute the memory 4 that stores the program shown as a protocol diagram in FIG. The receiver unit is connected to the CPU 5, which has the function of
The device is generally configured such that an interface 7, a memory 8, and a CPU 9 are connected to a bus 6.

上記システムにおいてまず送信機Sによシ受信機几に向
けてデータリンクの確立を行うための信号であるfEN
QJを送信する。とのrENQJK対する受信機几から
の応答が肯定応答(^CK)であるときデータリンクは
確立される。しかし。
In the above system, first, fEN is a signal for establishing a data link from the transmitter S to the receiver.
Send QJ. A data link is established when the response from the receiver to the rENQJK is an acknowledgment (^CK). but.

通信路のノイズなどが原因で否定応答(NAK )が発
生した場合、再びrENQJを送信することになるが、
その送信回数量が定められておシ。
If a negative acknowledgment (NAK) occurs due to noise on the communication channel, rENQJ will be sent again, but
The number of transmissions is determined.

この送信回数1以内で肯定応答が出るまでr ENQ 
Jを繰シ返し送信する。そして、その五十1回目の送信
に対してまで否定応答が加続けた場合はシステムの内部
異状あるいはシステムに対する外的異状あシとみて通信
を中正する。
r ENQ until an acknowledgment is received within this number of transmissions of 1
Send J repeatedly. If negative responses continue to be added to the 51st transmission, it is assumed that there is an internal abnormality in the system or an external abnormality to the system, and communication is interrupted.

またrENQJに対する応答が受信機Rの故障。Also, the response to rENQJ is a failure of receiver R.

信号線1の断線やノイズなどが原因となる無効応答か或
いは無応答であった場合には、否定応答のときと同様に
再びr BNQ Jを送信することになるが、その送信
時間Tが定められておシ。
If there is an invalid response or no response due to a disconnection or noise in signal line 1, r BNQ J will be transmitted again as in the case of a negative response, but the transmission time T is not fixed. I'm tired.

この送信時間T内で無効応答及び無応答以外の応答が出
るまでrENQJを繰返し送信するつそしてその送信時
刻が時間Tを越えたものに対してまで無効応答及び無応
答が出続けた場合には。
If rENQJ is repeatedly sent within this transmission time T until a response other than an invalid response or no response is received, and if the invalid response or no response continues to be received even after the transmission time exceeds time T, .

異状とみて通信を中止するウ データリンクが確立されると、送信機8によシ、まず最
初のデータである「DATAI Jを受信機Rに向けて
送信する。この「DATAI Jに対する受信機几から
の応答が肯定応答であるとき次の後続データを送信する
。しかし、j−DATAIJに対して否定応答が発生し
た場合、再び「DATAl」を送(gすることになるが
、その送信回数lがr ENQ Jのときと同様、定め
られておシ、この送信回数i以内で肯定応答が出るまで
l’−DATAl」を繰り返し送信する。そしてi+1
回目の送信に対してまで否定応答が続いた場合は異状有
シとして通信を中止する。また「DATAIJK対する
応答が無効応答か或いは無応答であった場合には、否定
応答のときと同様に再び「DATAl」を送信すること
Kなるが、その送信時間Tが定められており、この送信
時間T内で無効応答及び無応答以外の応答が出るまで[
DATAI Jを操シ返し送信する。そしてその送信時
刻が時間Tを越えたものに対してまで無効応答及び無応
答が出続けた場合には、異状とみて通信を中止するう 以上のことを、後続の各個データDATA 2〜DAT
A 1000 Kつき繰り返されて、「DATA 10
00 Jの送信に対し肯定応答が出て全てのデータの授
受が終了すると、送信機Sからデータ送信の終了を意味
する「EOT Jを発信する。とのl’−EOTJに対
し、受信機Bからその肯定応答を意味する[EOT J
が出されると通信は正規のかたちで完了する。しかし、
送信機Sの[EOT Jに対して受信機几から無効応答
か無応答が出た場合には。
When the transmitter 8 detects an abnormality and stops communication, the transmitter 8 first transmits the first data, ``DATAI J,'' to the receiver R. When the response from j-DATAIJ is a positive response, the next subsequent data is transmitted. However, if a negative response occurs to j-DATAIJ, "DATA1" is sent again (g, but the number of times it is sent is l). As in the case of r ENQ J, it is determined that "l'-DATAl" is repeatedly transmitted until an acknowledgment is received within this number of transmissions i. Then, i+1
If negative responses continue until the second transmission, it is assumed that there is an abnormality and the communication is stopped. Also, if the response to DATAIJK is an invalid response or no response, "DATAI" will be transmitted again in the same way as in the case of a negative response, but the transmission time T is determined, and this transmission Until a response other than an invalid response or no response is received within time T [
Send DATAI J in return. If invalid responses or non-responses continue to be received for those whose transmission time exceeds time T, it is assumed that there is an abnormality and the communication is discontinued.
A 1000 is repeated with K and "DATA 10
When an acknowledgment is received in response to the transmission of 00 J and all data exchange is completed, transmitter S sends ``EOT J'', which means the end of data transmission.In response to l'-EOTJ, receiver B [EOT J
When the is issued, the communication is completed in a normal manner. but,
If the receiver sends an invalid response or no response to the transmitter S's [EOT J].

送信機Sから再びl’−EOT Jを発信することにな
るが、その送信時間Tが定められておシ、この送信時間
T内で受信機几からのl”−EOTJが出るまで送信機
Sからl’−EOT Jを送信し続けることとなる。そ
してその送信時刻が時間Tを越えたものに対してまで無
効応答及び無応答が出続けた場合には異状とみて通信を
ここで中止する。
The transmitter S will transmit l'-EOTJ again, but the transmission time T is determined, and the transmitter S will continue transmitting until l''-EOTJ is output from the receiver within this transmission time T. It will continue to send l'-EOT J from then on.If invalid responses or no responses continue to be sent even to those whose transmission time exceeds time T, it will be considered an abnormality and communication will be stopped here. .

(発明の効果) 以上説明したように本発明によれば、無効応答及び無応
答があった時には、その時のデータのみ送勺直すように
したので、この無効応答や無応答の発生した送信段階が
通信終了時に近いほど通信時間が増大するということは
なく、この通信時間を可及的に短縮化することができる
(Effects of the Invention) As explained above, according to the present invention, when there is an invalid response or no response, only the data at that time is retransmitted, so that the transmission stage where the invalid response or no response occurred is The communication time does not increase as the communication ends, and the communication time can be shortened as much as possible.

例えば、 1000ブロツクのデータの送信で。For example, by sending 1000 blocks of data.

999ブロツクまで肯定応答が続き、1000プμツク
目で無効応答或いは無応答が発生して、その時の1ブロ
ツクのデータが8ビツト、通信速度が1200ボーであ
る場合1通信時間が従来方法によれば13.3秒1本発
明方法によれば6.7秒であシ、約1/2に短縮するこ
とができた。
If a positive response continues up to the 999th block, and an invalid response or no response occurs at the 1000th block, and the data of one block at that time is 8 bits and the communication speed is 1200 baud, one communication time is calculated using the conventional method. According to the method of the present invention, the time was reduced to 6.7 seconds, which was approximately 1/2.

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

第1図は本発明方法を実施するための装置のブロック図
、@2図は本発明方法のプロトコルダイアグラム、であ
る。 S・・・送信機 R・・・受信機 T・・・基準時間 (外1名)
FIG. 1 is a block diagram of an apparatus for implementing the method of the present invention, and FIG. 2 is a protocol diagram of the method of the present invention. S...Transmitter R...Receiver T...Reference time (1 person outside)

Claims (1)

【特許請求の範囲】[Claims] (1) 送信機から受信機へ複数のデータを連続的に送
る形式のデータ通信方法であって、無効応答及び無応答
に対して基準時間を設定し。 前記受信機からの前記送信機への応答が前記無効応答か
或いは無応答である場合その時刻が前記基準時間内であ
るか否かを判定し、前記時刻が前記基準時間内であった
場合には前記無効応答か或いは無応答であったデータを
再度送信することを特徴とするデータ通信方法。
(1) A data communication method in which multiple pieces of data are continuously sent from a transmitter to a receiver, and a reference time is set for invalid responses and no responses. If the response from the receiver to the transmitter is the invalid response or no response, determine whether the time is within the reference time, and if the time is within the reference time, A data communication method characterized in that the data for which the invalid response or no response was received is retransmitted.
JP59092539A 1984-05-09 1984-05-09 Data communication method Pending JPS60236337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59092539A JPS60236337A (en) 1984-05-09 1984-05-09 Data communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59092539A JPS60236337A (en) 1984-05-09 1984-05-09 Data communication method

Publications (1)

Publication Number Publication Date
JPS60236337A true JPS60236337A (en) 1985-11-25

Family

ID=14057174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59092539A Pending JPS60236337A (en) 1984-05-09 1984-05-09 Data communication method

Country Status (1)

Country Link
JP (1) JPS60236337A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5138908A (en) * 1974-09-30 1976-03-31 Tokyo Shibaura Electric Co

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5138908A (en) * 1974-09-30 1976-03-31 Tokyo Shibaura Electric Co

Similar Documents

Publication Publication Date Title
EP0244117B1 (en) A method of duplex data transmission using a send-and-wait protocol
JPS60223351A (en) Communication control system
JPS60236337A (en) Data communication method
JP3190869B2 (en) Data transmission method
JP3428883B2 (en) Data communication method and data communication device
JPH0530115A (en) Polling system
JPS5810899B2 (en) Unidirectional broadcast communication method
JPH0750880B2 (en) Data packet transmission method
JPS63228838A (en) Communication control processing method
JPS63246049A (en) Transmission communication system
JPS63272240A (en) Polling system
JPS5847350A (en) Data communication system
JPS58198941A (en) Simple data transmitter
JPS6359243A (en) Data communication equipment
JPS6239929A (en) Data transmission equipment
JPS5963831A (en) Data transmission system
JPS6072451A (en) Block transfer system in unconfirming transfer
JPH02222247A (en) Communication control system
JPS58219856A (en) Data communication system
JPH04129346A (en) Communication system provided with duplicate address detection function
JPH03268529A (en) Data resending time setting system
JPS60180350A (en) Data communication method
JPH0482440A (en) Multiplex link data transfer system
JPS63141418A (en) Power line carrier control method
JPH01228352A (en) Data transmission equipment