JPH0548674A - Data communication equipment - Google Patents

Data communication equipment

Info

Publication number
JPH0548674A
JPH0548674A JP3206079A JP20607991A JPH0548674A JP H0548674 A JPH0548674 A JP H0548674A JP 3206079 A JP3206079 A JP 3206079A JP 20607991 A JP20607991 A JP 20607991A JP H0548674 A JPH0548674 A JP H0548674A
Authority
JP
Japan
Prior art keywords
data
reception
communication
control
transmission
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
JP3206079A
Other languages
Japanese (ja)
Inventor
Hideaki Tanaka
秀明 田中
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.)
Kubota Corp
Original Assignee
Kubota 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 Kubota Corp filed Critical Kubota Corp
Priority to JP3206079A priority Critical patent/JPH0548674A/en
Publication of JPH0548674A publication Critical patent/JPH0548674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PURPOSE:To obtain a transmitting equipment providing a collation data generating means for improving the reliability of data transmission and reception. CONSTITUTION:The equipment is the data communication equipment constituted by the data transmitting equipment M providing a data transmission control means which re-transmits communication data unless a reception response signal is detected within specified time after the transmission of communication data consisting of control data D1, D2 and D3 having an identification flag area identifying a head and consisting of collating data D4 derived by the exculive logical sum of control data D1, D2 and D3 and constituted by the data receiving equipment S providing a data reception control means transmitting a reception response signal after the termination of communication data reception. The equipment is constituted by providing the collation data generating means generating data D4 in such a way that the area corresponding to the identification flag area becomes the denial of the exclusive logical sum of control data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、先頭を識別する識別フ
ラグエリアを有する制御データと、前記制御データの正
誤を判定する照合データとからなる通信データの送信後
の所定時間以内に受信応答信号が検出されないときに、
前記通信データを再送信するデータ送信制御手段を備え
たデータ送信装置と、前記通信データの受信完了後に受
信応答信号を送信するデータ受信制御手段を備えたデー
タ受信装置とから構成してあるデータ通信装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reception response signal within a predetermined time after transmission of communication data consisting of control data having an identification flag area for identifying the head and collation data for judging whether the control data is right or wrong. Is not detected,
Data communication including a data transmission device including a data transmission control unit that retransmits the communication data, and a data reception device including a data reception control unit that transmits a reception response signal after the reception of the communication data is completed. Regarding the device.

【0002】[0002]

【従来の技術】従来、この種のデータ通信装置は、前記
データ送信装置に照合データを制御データの排他的論理
和となるように構成する照合データ生成手段を設けると
ともに、前記データ受信装置に、前記通信データの受信
後の一定時間経過後に受信応答信号を送信するデータ受
信制御手段を備えて構成していた。制御データが1バイ
トで構成される場合には、照合データが制御データと等
しくなる。図5に示すように、このときデータ受信装置
が何らかの原因(ノイズ等)で照合データを受信できな
かったなら照合データの受信を待ち続けて受信応答信号
が送信できない。そのため、データ送信装置はデータ送
信制御手段による通信データの送信後の所定時間以内の
受信応答信号の未検出故の通信データの再送信を先頭デ
ータから行うことになるが、データ受信装置のデータ受
信制御手段は制御データの先頭データを照合データと誤
認識して、全ての通信データの受信が終了していないに
もかかわらずデータ送信装置に受信応答信号を送信する
ことがあった。このときには、逆にデータ送信装置が誤
動作する危険性があるので、このような状態を回避すべ
くデータ受信装置に前記通信データの受信後の一定時間
経過後に受信応答信号を送信するデータ受信制御手段を
設けて、一定時間以内にデータが受信されない場合に全
通信データが受信されたと判断していたのである。
2. Description of the Related Art Conventionally, in this type of data communication device, the data transmitting device is provided with a collation data generating means for arranging the collation data to be the exclusive OR of the control data, and the data receiving device is provided with: The data reception control means for transmitting a reception response signal after a lapse of a fixed time after receiving the communication data is configured. When the control data is composed of 1 byte, the collation data is equal to the control data. As shown in FIG. 5, at this time, if the data receiving device cannot receive the collation data for some reason (noise or the like), the reception response signal cannot be transmitted while waiting for the reception of the collation data. Therefore, the data transmitter will retransmit the communication data due to the undetection of the reception response signal within the predetermined time after the transmission of the communication data by the data transmission control means from the top data. The control means may erroneously recognize the leading data of the control data as the collation data, and may transmit the reception response signal to the data transmission device even though the reception of all the communication data is not completed. At this time, on the contrary, there is a risk that the data transmitting device may malfunction. Therefore, in order to avoid such a state, the data receiving control means for transmitting the reception response signal to the data receiving device after a lapse of a certain time after receiving the communication data. Therefore, it is determined that all communication data has been received when no data is received within a certain time.

【0003】[0003]

【発明が解決しようとする課題】しかし、上述の従来技
術では、データ受信装置は、通信データの受信完了後に
受信応答信号を送信するまでに常に一定時間待たねばな
らず通信効率が低下するという欠点があった。本発明の
目的は上述した従来欠点を解消する点にある。
However, in the above-mentioned conventional technique, the data receiving apparatus has to always wait a certain period of time after the reception of the communication data until the reception response signal is transmitted, which deteriorates the communication efficiency. was there. An object of the present invention is to eliminate the above-mentioned conventional drawbacks.

【0004】[0004]

【課題を解決するための手段】この目的を達成するため
本発明によるデータ通信装置の特徴構成は、前記データ
送信装置に、前記照合データを、前記識別フラグエリア
に対応するエリアが前記制御データの排他的論理和の否
定となるように生成する照合データ生成手段を設けてあ
ることにある。
To achieve this object, the data communication device according to the present invention is characterized in that the collation data is transmitted to the data transmission device, and the area corresponding to the identification flag area is the control data. The collation data generating means for generating the negation of the exclusive OR is provided.

【0005】[0005]

【作用】照合データ生成手段により生成された照合デー
タは、少なくとも識別フラグエリアに対応するエリアが
制御データと異なるように構成されているので、データ
受信装置側では、データ送信手段からのデータの再送信
であるか否かが識別フラグエリアのデータから判別でき
る。従って、データの再送信であれば、以前の受信中の
データを破棄して、再送信された全データの受信完了後
ただちに受信応答信号を送信することができる。
Since the collation data generated by the collation data generating means is configured so that at least the area corresponding to the identification flag area is different from the control data, the data receiving device side re-creates the data from the data transmitting means. Whether it is transmission or not can be determined from the data in the identification flag area. Therefore, if the data is retransmitted, the previously received data can be discarded and the reception response signal can be transmitted immediately after the reception of all the retransmitted data is completed.

【0006】[0006]

【発明の効果】従って、本発明のデータ通信装置によれ
ば、通信データの構成のうち照合データの構成のみの変
更で、容易に通信効率を向上することができるようにな
った。
Therefore, according to the data communication apparatus of the present invention, the communication efficiency can be easily improved by changing only the structure of the collation data in the structure of the communication data.

【0007】[0007]

【実施例】以下に本発明の実施例を図面に基づいて説明
する。図1に示すように、複数の制御部1間を、終端抵
抗Rを介して双方向データ伝送用の一対の電流ループ方
式のバスLで接続してマスタ/スレーブ方式の制御シス
テムを構成してある。即ち、単一のマスタ制御部Mと複
数のスレーブ制御部Sで複数の制御部1を構成してあ
り、それら制御部1の各々に送受信方向を切り替える通
信制御部2を設けて通信装置を構成してあり、各々がデ
ータ送信装置となり、且つ、データ受信装置となる。前
記通信制御部2は、差動増幅機構を有する受信バッファ
4と互いに論理の反転する二つの信号を出力する送信ド
ライバ5で構成してあり、それらの動作を制御する制御
端子REと制御端子DEと制御部1との間でデータを入
出力する端子R,Dと前記バスLとの間でデータを入出
力する端子A,Bとを設けてあり、CCITTのV.1
1、X.27規格に適合するものである。各制御部1か
らの送信データは,端子AからバスL及び終端抵抗Rを
介して端子Bに流れる電流ループにより伝送される。入
出力する端子R,Dと制御部1のシリアルデータ送信端
子TX,シリアルデータ受信端子RXとを論理反転回路
6,7を介して接続してある。システムの通信制御は、
マスタ制御部Mの構成要素であるデータ送信制御手段M
1によるスレーブ制御部Sへのポーリング制御により行
われる。データ送信制御手段M1は、出力ポートCon
tを介して通信制御部2を送信モード(制御端子REと
制御端子DEを“H”)にセットして、スレーブ制御部
Sの構成要素であるデータ受信制御手段S1により通信
制御部2を受信モード(制御端子REと制御端子DEを
“L”)にセットされたスレーブ制御部Sに所定のデー
タを送信し、特定スレーブ制御部Sに送信権を与えると
ともに、自らの通信制御部2を受信モード(制御端子R
Eと制御端子DEを“L”)にセットする。送信権が与
えられたスレーブ制御部Sは、自らの通信制御部2を送
信モード(制御端子REと制御端子DEを“H”)にセ
ットしてデータの送信を開始する。
Embodiments of the present invention will be described below with reference to the drawings. As shown in FIG. 1, a plurality of control units 1 are connected via a terminating resistor R by a pair of current loop system buses L for bidirectional data transmission to form a master / slave system control system. is there. That is, a single master control unit M and a plurality of slave control units S constitute a plurality of control units 1, and each of the control units 1 is provided with a communication control unit 2 for switching a transmission / reception direction to configure a communication device. Each of them serves as a data transmission device and also serves as a data reception device. The communication control unit 2 is composed of a reception buffer 4 having a differential amplification mechanism and a transmission driver 5 that outputs two signals whose logics are inverted from each other, and a control terminal RE and a control terminal DE that control their operations. The terminals R and D for inputting / outputting data between the control unit 1 and the control unit 1 and the terminals A and B for inputting / outputting data between the bus L are provided. 1
1, X. It complies with 27 standards. The transmission data from each control unit 1 is transmitted by a current loop flowing from the terminal A to the terminal B via the bus L and the terminating resistor R. The input / output terminals R and D are connected to the serial data transmission terminal TX and the serial data reception terminal RX of the control unit 1 through logic inversion circuits 6 and 7. The communication control of the system is
Data transmission control means M which is a component of the master control unit M
This is performed by polling control of the slave control unit S by 1. The data transmission control means M1 has an output port Con.
The communication control unit 2 is set to the transmission mode (the control terminal RE and the control terminal DE are “H”) via t, and the communication control unit 2 is received by the data reception control means S1 which is a constituent element of the slave control unit S. It transmits predetermined data to the slave control unit S set to the mode (control terminal RE and control terminal DE are set to "L"), gives a transmission right to the specific slave control unit S, and receives its own communication control unit 2. Mode (control terminal R
E and control terminal DE are set to "L"). The slave controller S to which the transmission right is given sets its communication controller 2 in the transmission mode (control terminals RE and DE are “H”) and starts data transmission.

【0008】図2に示すように、マスタ制御部Mの通信
制御部2が送信モードから受信モードに移行してから、
スレーブ制御部Sの通信制御部2が送信モードから受信
モードに移行するまでの間、即ち全ての通信制御部2が
受信モードとなる僅かのタイミングに、制御部1に対す
るデータの出力端子Rが“L”となることでスタートビ
ットと誤認識して以後の通信が正常に行われなくなるこ
とを防止すべく、論理反転回路7で“H”を補償する。
一方スレーブ制御部Sからの本来の送信データの論理が
反転しないように、同じく制御部1に対するデータの入
力端子Dには論理反転回路6で論理の整合をとる。
As shown in FIG. 2, after the communication control unit 2 of the master control unit M shifts from the transmission mode to the reception mode,
While the communication control unit 2 of the slave control unit S shifts from the transmission mode to the reception mode, that is, at a slight timing when all the communication control units 2 are in the reception mode, the data output terminal R to the control unit 1 is set to " The logical inversion circuit 7 compensates for "H" in order to prevent the communication from being erroneously recognized as a start bit when it becomes L "and the communication thereafter is not normally performed.
On the other hand, in order to prevent the logic of the original transmission data from the slave control unit S from being inverted, a logic inversion circuit 6 is used to match the logic to the data input terminal D to the control unit 1.

【0009】以下にスレーブ制御部Sによる受信シーケ
ンスを説明する。マスタ制御部Mからスレーブ制御部S
へ伝送されるデータのフレームフォーマットは、図3に
示すように、MSBに識別フラグを設け次の2ビット
〔m1,m2〕をポーリングコマンド残り5ビットをス
レーブ制御部Sのアドレスとする8ビットの単位データ
からなる先頭データD1と、ポーリングコマンドに応じ
て付加される同じくMSBに識別フラグを設け以後の7
ビットをスレーブ制御部Sへの所定の指示データとする
単位データD2,D3で構成される制御データと、それ
らの垂直パリティ、即ち排他的論理和の否定を表す照合
データD4で構成してある。即ち、前記データ送信制御
手段M1による照合データD4の生成部が照合データ生
成手段となる。スレーブ制御部Sからマスタ制御部Mへ
伝送されるデータのフレームフォーマットも同様であ
る。さらに、データ送信制御手段M1、或いはデータ受
信制御手段S1によりパリティビットが付加されて伝送
される。先頭データD1の識別フラグをセットし、以後
の単位データD2,D3の識別フラグをリセットしてあ
る。従って、照合データD4の識別データに対応するビ
ットはリセットされる。ポーリングコマンド〔m1,m
2〕によりスレーブ制御部Sの通信応答を指示する。即
ち、〔0,0〕はスレーブ制御部Sにデータを送信する
コマンドで単位データD2,D3を含まない。〔0,
1〕はスレーブ制御部Sにデータを送信したのち応答を
要求するコマンドで単位データD2,D3を含む。
〔1,0〕はスレーブ制御部Sの応答である。
The reception sequence by the slave control unit S will be described below. Master control unit M to slave control unit S
As shown in FIG. 3, the frame format of the data transmitted to the MSB has an identification flag in the MSB, and the next 2 bits [m1, m2] are 8 bits in which the remaining 5 bits are the address of the slave control unit S. An identification flag is provided in the head data D1 consisting of unit data and the same MSB added in response to the polling command.
It is composed of control data composed of unit data D2 and D3 whose bits are predetermined instruction data to the slave control section S, and vertical parity thereof, that is, collation data D4 representing negation of exclusive OR. That is, the generation unit of the collation data D4 by the data transmission control unit M1 serves as the collation data generation unit. The same applies to the frame format of data transmitted from the slave control unit S to the master control unit M. Further, the data transmission control means M1 or the data reception control means S1 adds a parity bit for transmission. The identification flag of the head data D1 is set, and the identification flags of the subsequent unit data D2 and D3 are reset. Therefore, the bit corresponding to the identification data of the collation data D4 is reset. Polling command [m1, m
2] instructs the slave controller S to make a communication response. That is, [0,0] is a command for transmitting data to the slave control unit S and does not include the unit data D2 and D3. [0,
1] is a command for requesting a response after transmitting data to the slave control section S and includes unit data D2 and D3.
[1,0] is the response of the slave control unit S.

【0010】図4に示すように、マスタ制御部Mはスレ
ーブ制御部Sにコマンド〔0,1〕をセットしたデータ
D1,D2,D3,D4を送信するとともに、再送検出
タイマをセットする。ここに、再送検出タイマは、デー
タの送信完了からスレーブ制御部Sが受信応答信号を送
信するまでに必要な処理時間より十分長い時間とする。
該当するスレーブ制御部Sはマスタ制御部Mに受信応答
信号ACKを送信する。マスタ制御部Mは再送検出タイ
マがカウントアップするまでに受信応答信号ACKを検
出すると、次のスレーブ制御部Sに対してアクセスする
べく、例えばコマンド〔0,0〕をセットしたデータD
1,D4を送信するとともに、再送検出タイマをセット
する。該当スレーブ制御部SがデータD1の受信後に続
くデータD4を受信できなかったときは次のデータを待
続ける。マスタ制御部Mは再送検出タイマがカウントア
ップすると、同一スレーブ制御部Sに同一データD1,
D4を再送する。該当スレーブ制御部Sは、データD1
を受信したときに、その識別フラグがセットされている
ことを検出すると、前回受信中のデータを破棄して新た
にデータD1,D4を取り込み、受信応答信号ACKを
送信する。。以下に本発明の別実施例を説明する。先の
実施例では、単位データが4バイト或いは2バイト連続
して送信される例を示したが、任意の連続バイト数に適
用できる。尚、特許請求の範囲の項に図面との対象を便
利にする為に符号を記すが、該記入により本発明は添付
図面の構成に限定されるものではない。
As shown in FIG. 4, the master control unit M transmits to the slave control unit S the data D1, D2, D3, D4 in which the command [0, 1] is set, and also sets the retransmission detection timer. Here, the retransmission detection timer is set to a time that is sufficiently longer than the processing time required from the completion of data transmission to the slave controller S transmitting a reception response signal.
The corresponding slave control unit S transmits a reception response signal ACK to the master control unit M. When the master control unit M detects the reception response signal ACK before the retransmission detection timer counts up, in order to access the next slave control unit S, for example, the data D in which the command [0, 0] is set is set.
1 and D4 are transmitted, and the retransmission detection timer is set. When the slave control unit S cannot receive the data D4 following the reception of the data D1, it continues to wait for the next data. When the retransmission detection timer counts up, the master control unit M sends the same data D1, to the same slave control unit S.
Retransmit D4. The corresponding slave control unit S receives the data D1.
When it is detected that the identification flag is set, the previously received data is discarded, the data D1 and D4 are newly captured, and the reception response signal ACK is transmitted. .. Another embodiment of the present invention will be described below. In the above embodiment, an example in which the unit data is continuously transmitted in 4 bytes or 2 bytes has been shown, but the present invention can be applied to an arbitrary number of consecutive bytes. It should be noted that reference numerals are added to the claims for convenience of the drawing, but the present invention is not limited to the configuration of the accompanying drawings by the entry.

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

【図1】通信制御装置のブロック構成図FIG. 1 is a block configuration diagram of a communication control device.

【図2】タイミングチャート[Fig. 2] Timing chart

【図3】データ構成図[Figure 3] Data structure diagram

【図4】通信タイミングチャートFIG. 4 is a communication timing chart.

【図5】従来例を示す通信タイミングチャートFIG. 5 is a communication timing chart showing a conventional example.

【符号の説明】[Explanation of symbols]

D1,D2,D3 制御データ D4 照合データ M データ送信装置 M1 データ送信制御手段 S データ受信装置 S1 データ受信制御手段 D1, D2, D3 control data D4 collation data M data transmission device M1 data transmission control means S data reception device S1 data reception control means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 先頭を識別する識別フラグエリアを有す
る制御データ(D1,D2,D3)と、前記制御データ
(D1,D2,D3)の正誤を判定する照合データ(D
4)とからなる通信データの送信後の所定時間以内に受
信応答信号が検出されないときに、前記通信データを再
送信するデータ送信制御手段(M1)を備えたデータ送
信装置(M)と、前記通信データの受信完了後に受信応
答信号を送信するデータ受信制御手段(S1)を備えた
データ受信装置(S)とから構成してあるデータ通信装
置であって、 前記データ送信装置(M)に、前記照合データ(D4)
を前記識別フラグエリアに対応するエリアが前記制御デ
ータの排他的論理和の否定となるように生成する照合デ
ータ生成手段を設けてあるデータ通信装置。
1. A control data (D1, D2, D3) having an identification flag area for identifying the head and a collation data (D) for judging whether the control data (D1, D2, D3) are correct or not.
4) a data transmission device (M) having data transmission control means (M1) for retransmitting the communication data when a reception response signal is not detected within a predetermined time after the transmission of the communication data, A data communication device comprising a data reception device (S) having a data reception control means (S1) for transmitting a reception response signal after completion of reception of communication data, wherein the data transmission device (M) comprises: Matching data (D4)
A data communication device provided with collation data generation means for generating so that an area corresponding to the identification flag area is the negation of the exclusive OR of the control data.
JP3206079A 1991-08-19 1991-08-19 Data communication equipment Pending JPH0548674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3206079A JPH0548674A (en) 1991-08-19 1991-08-19 Data communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3206079A JPH0548674A (en) 1991-08-19 1991-08-19 Data communication equipment

Publications (1)

Publication Number Publication Date
JPH0548674A true JPH0548674A (en) 1993-02-26

Family

ID=16517480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3206079A Pending JPH0548674A (en) 1991-08-19 1991-08-19 Data communication equipment

Country Status (1)

Country Link
JP (1) JPH0548674A (en)

Similar Documents

Publication Publication Date Title
JPS61500142A (en) Data communication method and circuit
JPH0347786B2 (en)
JP3201666B2 (en) Interface conversion circuit for half-duplex serial transmission
JPH0548674A (en) Data communication equipment
JP3190869B2 (en) Data transmission method
JPH01289339A (en) Communication controller
KR0165440B1 (en) Polling communication method
JPS58225756A (en) Serial data communication device
JPS6236940A (en) Data communication equipment in automobile
JP2581238Y2 (en) Data transmission equipment
JPH03289833A (en) On-vehicle data transmitter
JP3096485B2 (en) Transmission control method
JP2512928B2 (en) Communication control device
JPH05260125A (en) Data transfer control system
JP2874983B2 (en) Communication device
JPH0354909B2 (en)
JPH04278742A (en) Method of detecting error in reception data
JP2747151B2 (en) Apparatus and method for establishing data link
JPS62207041A (en) Transmitter and receiver module
JPH05303537A (en) Multi-address communication circuit
JPS62137946A (en) Data transmission system
JP2002073430A (en) Device and method for transmitting error message
JPS5952329A (en) Data terminal device
JPH07311728A (en) Simultaneous transmission system for data
JPS58198941A (en) Simple data transmitter