JPS5983431A - Method for controlling data transmission - Google Patents

Method for controlling data transmission

Info

Publication number
JPS5983431A
JPS5983431A JP57195041A JP19504182A JPS5983431A JP S5983431 A JPS5983431 A JP S5983431A JP 57195041 A JP57195041 A JP 57195041A JP 19504182 A JP19504182 A JP 19504182A JP S5983431 A JPS5983431 A JP S5983431A
Authority
JP
Japan
Prior art keywords
data
transmission
character
message
transmitted
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
JP57195041A
Other languages
Japanese (ja)
Inventor
Osamu Nishiguchi
修 西口
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP57195041A priority Critical patent/JPS5983431A/en
Publication of JPS5983431A publication Critical patent/JPS5983431A/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/14Arrangements for detecting or preventing errors in the information received by using return channel in which the signals are sent back to the transmitter to be checked ; echo systems

Landscapes

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

Abstract

PURPOSE:To increase the data transmission efficiency and the line operating efficiency, by transmitting character data via the 1st transmission line and transmitting the same data to a transmission controller via the 2nd transmission line as return data at the terminal device side. CONSTITUTION:A transmission controller 13 consists of a main control section 13a, a line control section 13b and a hand shake section 13c. In transmitting a telegraphic message from the controller 13 to a terminal device 12 (12a-12c), the character data is transmitted sequentially one by one character via the 1st transmission line 14a. The terminal device 12 transmits the same data to the controller 13 via the 2nd transmission line 14b as the return data and the dissidence between the character data of one character transmitted from the controller 13 with the return data is detected. When the dissidence is detected, the data from the initial character data is retransmtted without completing the transmission of the remaining character data. A terminal controller 11 controls plural terminal devices 12a-12c.

Description

【発明の詳細な説明】 発明の分野 この発明はデータ伝送制御方法に関し、特に少なくとも
1つの端末装置と端末制御装置との間でデータ伝送を行
なう場合におけるデータ伝送異常のあった場合の処理を
改良したデータ伝送制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a data transmission control method, and in particular improves processing in the case of data transmission abnormality when data is transmitted between at least one terminal device and a terminal control device. The present invention relates to a data transmission control method.

先行技術の説明 従来、複数の端末装置と端末制御装置との間でデータ伝
送を行なう場合、複数の文字データからなる電文を全て
端末装置へ送信した後、端末装置が正常に電文を受信し
たことを判断すると肯定応答(ACK)を返送し、内定
応答がなく否定応答(NAK)が返送されると再び端末
装置へ電文を送信していた。このため、データ伝送動作
が正常な場合における伝送手順が複雑になっていた。
Description of Prior Art Conventionally, when data is transmitted between multiple terminal devices and a terminal control device, after all messages consisting of multiple character data are sent to the terminal device, the terminal device normally receives the message. When it determined that the request was made, it sent back an affirmative response (ACK), and when there was no response and a negative response (NAK) was sent back, it sent the message to the terminal device again. For this reason, the transmission procedure when the data transmission operation is normal has become complicated.

また、従来のデータ伝送方法は、ノイズなどでデータが
破壊されたりその他各種のデータ伝送異常のあったこと
を検出するために、誤り検出を行なっていた。この誤り
検出には、たとえば電文の後に垂直・水平パリティピッ
1〜などの検査ビット(冗長ビット)を付加して、検査
ピッ1〜に基づいて端末装置側でデータの伝送異常をチ
ェックする方法が知られている。このため、伝送データ
が冗長ピッl−を含み、データ伝送効率の低下を招いて
いた。また、従来方法は、端末制御側に垂直・水平パリ
ディビットを付加するだめの演算回路が必要であり、端
末装置側にもパリティチェックなどを行なうための誤り
検出回路が必要となり、回路構成が複雑化するとともに
、電文の伝送開始からう相手先に正確に伝送されるまで
に長時間要し、データ伝送効率が悪いという問題点があ
った。このような問題点は、データ伝送回線が電話回線
の場合であれば、それだけコストアップになる。
Furthermore, conventional data transmission methods perform error detection to detect data destruction due to noise or other various data transmission abnormalities. A known method for detecting this error is to add check bits (redundant bits) such as vertical and horizontal parity bits 1 to 1 after the message, and check for data transmission abnormalities on the terminal device side based on the test bits 1 to 1. It is being Therefore, the transmitted data includes redundant signals, resulting in a decrease in data transmission efficiency. In addition, the conventional method requires an arithmetic circuit to add vertical and horizontal paridi bits on the terminal control side, and an error detection circuit to perform parity checks on the terminal device side, resulting in a complicated circuit configuration. Along with this, there was a problem in that it took a long time from the start of message transmission until it was accurately transmitted to the other party, resulting in poor data transmission efficiency. Such a problem increases the cost accordingly if the data transmission line is a telephone line.

さらに、従来方法では、電文の伝送途中にエラーが発生
しても、一旦送信するように設定された電文のすべてを
送信した後、端末装置から否定応答があった後でなけれ
ば電文を再送していないので、エラー発生後に不要な電
文を送信することになり、伝送効率が悪く、データ伝送
時間が長くかかつていた。
Furthermore, in the conventional method, even if an error occurs during the transmission of a message, the message cannot be retransmitted unless a negative response is received from the terminal device after all the messages set to be sent have been sent. As a result, unnecessary messages were sent after an error occurred, resulting in poor transmission efficiency and long data transmission times.

発明の目的 それゆえに、この発明の目的は、伝送データに冗長ビッ
トを必要とせず、データ伝送効率を向上でき、異常が発
生した場合における処理を迅速に行なえ、データ伝送ラ
インの使用効率を白土できるような、データ伝送方法を
提供することである。
Purpose of the Invention Therefore, the purpose of the present invention is to eliminate the need for redundant bits in transmission data, improve data transmission efficiency, speed up processing when an abnormality occurs, and improve the efficiency of data transmission line usage. An object of the present invention is to provide a data transmission method.

発明の要約 この発明は、要約すれば、伝送制!II装置から端末装
置へ電文を送信する際、1文字ずつ文字データを第1の
伝送ラインを介して順次送信し、端末装置側では同じデ
ータを返送データとして第2の伝送ラインを介して伝送
制御装置へ送信し、伝送制御装置側で送信した1文字の
データと返送データとの不一致を検出する。そして、不
一致を検出したときは、電文の残りの文字データを送信
終了することなく、最初の文字データから再送し、異常
なく電文のすべての文字データを送信完了したときは端
末装置からの応答を待たずにデータ伝送動作を終了させ
るようにしたデータ伝送制御方法である。
Summary of the invention In summary, this invention is a transmission system! When sending a message from the II device to the terminal device, the character data is sent one character at a time through the first transmission line, and the terminal device side controls the transmission by using the same data as return data through the second transmission line. The transmission control device detects a mismatch between the transmitted one-character data and the returned data. When a mismatch is detected, the remaining character data of the message is retransmitted from the first character data without completing transmission, and when all the character data of the message has been transmitted without any abnormality, a response is received from the terminal device. This is a data transmission control method in which a data transmission operation is ended without waiting.

発明の効果 この発明によれば、伝送データに検査ビットなどの冗長
ビットを必要とせず、誤り検出のために用いられる検査
ビットを発生するための特別の回路や誤り検出のための
回路を必要とせず、回路構成を簡略化できるとともに、
データ伝送効率およびデータ伝送ラインの使用効率を向
上できる。
Effects of the Invention According to the present invention, there is no need for redundant bits such as check bits in transmission data, and there is no need for a special circuit for generating check bits used for error detection or a circuit for error detection. In addition to simplifying the circuit configuration,
Data transmission efficiency and data transmission line usage efficiency can be improved.

実施例の説明 第1図はこの発明のデータ伝送制御方法の対象5− となるデータ伝送制御システム1oの概略を示す図解図
である。
DESCRIPTION OF THE EMBODIMENTS FIG. 1 is an illustrative diagram showing an outline of a data transmission control system 1o which is the object 5- of the data transmission control method of the present invention.

第2図はデータ伝送システム1oの具体的なブロック図
である。
FIG. 2 is a concrete block diagram of the data transmission system 1o.

第1図および第2図を参照してデータ伝送システム10
の構成を説明する。端末制御装置11は、複数の端末装
置12a〜120を離れた場所から制御するものである
。この端末制御装置11には、伝送制御装置13が関連
的に設けられる。伝送制御装置1113は、端末制御装
置1f11と複数の端末装置128〜120との間でデ
ータ伝送制−を行なうものであって、主制御部13a1
回線制御部13bおよびハンドシェイク部13bを含む
。主制御部13aには、図示を省略しているが、マイク
ロプロセッサ、プログラム記憶用メモリ(ROM)およ
びデータ記憶用メモリ(RAM)が含まれる。
With reference to FIGS. 1 and 2, data transmission system 10
The configuration of is explained. The terminal control device 11 controls a plurality of terminal devices 12a to 120 from a remote location. A transmission control device 13 is provided in relation to this terminal control device 11 . The transmission control device 1113 performs data transmission control between the terminal control device 1f11 and the plurality of terminal devices 128 to 120, and the main control unit 13a1
It includes a line control section 13b and a handshake section 13b. Although not shown, the main control unit 13a includes a microprocessor, a program storage memory (ROM), and a data storage memory (RAM).

回線11JII]部13bと各端末装置112a 〜1
2cとの間には、第1のデータ伝送ライン14aおよび
第2のデータ伝送ライン14bを含むデータバス14が
接続される。第1のデータ伝送ライン146一 aは伝送制御装置14から各端末装置12a〜12Cヘ
データを伝送するのに用いられる。第2のデータ伝送ラ
イン14bは、複数の端末装置12a〜120から伝送
制御装置13ヘデータを伝送゛するのに用いられる。す
なわち、この実施例では、全二重通信(4線式)が用い
られる。
line 11JII] unit 13b and each terminal device 112a to 1
2c, a data bus 14 including a first data transmission line 14a and a second data transmission line 14b is connected. The first data transmission line 1461a is used to transmit data from the transmission control device 14 to each terminal device 12a to 12C. The second data transmission line 14b is used to transmit data from the plurality of terminal devices 12a to 120 to the transmission control device 13. That is, in this embodiment, full-duplex communication (four-wire type) is used.

ここで、端末装置112a〜12Cは、たとえばプリン
タ(第1図に示す12a)やコンソール(第1図に示?
112b、120)などである。コンソールは、データ
を入力するためのキーボードおよびデータを表示するた
めの表示装置(CRTディスプレイなど)を含む。しか
し、この発明は、端末装置をこれらに限ることなく、各
種のものに適用できる。すなわち、この発明では、上位
から見て制御対象となるものを端末装置と古い、下位の
ものを制御する装置すなわち上位側の装置を端末側m装
置と呼ぶ。
Here, the terminal devices 112a to 12C are, for example, a printer (12a shown in FIG. 1) or a console (12a shown in FIG. 1).
112b, 120), etc. The console includes a keyboard for entering data and a display device (such as a CRT display) for displaying data. However, the present invention is not limited to these terminal devices, and can be applied to various types of terminal devices. That is, in this invention, the device to be controlled when viewed from the upper level is called the old terminal device, and the device that controls the lower level, that is, the device on the higher level side, is called the terminal side m device.

そして、必要に応じて、端末制御装置11はホストプロ
セッサまたはセンタのプロセッサに接続される。
The terminal control device 11 is then connected to a host processor or a center processor as necessary.

第3図はこの発明の一実施例の動作を説明するための概
略フロー図である。
FIG. 3 is a schematic flow diagram for explaining the operation of one embodiment of the present invention.

第4図はこの発明の特徴となる電文送信処理ルーチンの
フローチャートである。
FIG. 4 is a flowchart of a message transmission processing routine which is a feature of the present invention.

第5図は電文送信・エラー検出サブルーチンのフローチ
ャートである。これらの第3図〜第5図に示すフローチ
ャートのプログラムは、第2図に示す主制御部13aに
よって処理される。
FIG. 5 is a flowchart of the message transmission/error detection subroutine. The programs shown in the flowcharts shown in FIGS. 3 to 5 are processed by the main control section 13a shown in FIG.

第6図はこの実施例の動作を説明するための送信データ
とデータ伝送中におけるタイムチャートを示す。
FIG. 6 shows transmission data and a time chart during data transmission to explain the operation of this embodiment.

次に、第1図ないし第6図を参照して、この発明のデー
タ伝送方法の具体的な実施例とともにその動作を説明す
る。
Next, with reference to FIGS. 1 to 6, a specific embodiment of the data transmission method of the present invention and its operation will be described.

ステップ1において、イニシャル処理が行なわれる。こ
の処理としては、主制御部13aに含まれるRAMの記
憶WA域のクリア処理などである。
In step 1, initial processing is performed. This process includes clearing the storage WA area of the RAM included in the main control unit 13a.

続いて、ステップ2において、端末制御装置11から端
末装@128〜12Cのいずれかへ送信すべき電文があ
るか否かが判断される。ここで、送信電文(いわゆる電
文)は、複数の文字データからなる1フレームのデータ
である。この送信電文の有無の判断は、たとえば端末制
御装置11が電文を送信電文記憶領域(図示せず)に記
憶して送信フラグ(図示せず)をセットしているとき、
主制御部13aが送信フラグのセット状態の有無に基づ
いて判断する。もし、送信電文のないことが判断される
と、ステップ3において受信可能か否かが判断される。
Subsequently, in step 2, it is determined whether there is a message to be transmitted from the terminal control device 11 to any of the terminal devices @128 to 12C. Here, the transmitted message (so-called message) is one frame of data consisting of a plurality of character data. The presence or absence of this transmission message is determined, for example, when the terminal control device 11 stores the message in a transmission message storage area (not shown) and sets a transmission flag (not shown).
The main control unit 13a makes the determination based on whether or not the transmission flag is set. If it is determined that there is no transmitted message, it is determined in step 3 whether or not it can be received.

この判断は、端末制御装置11が受信フラグを含みかつ
受信電文を記憶するエリアが空になった状態のとき受信
フラグをリセットしておく。そして、主制御部13aが
受信フラグのセット状態を判断することによって行なわ
れる。
This determination is made by resetting the reception flag when the terminal control device 11 includes the reception flag and the area for storing the received message is empty. The main control unit 13a then determines the set state of the reception flag.

もし、受信可能でないことが判断されると、ステップ2
へ戻る。
If it is determined that reception is not possible, step 2
Return to

前述のステップ2において、送信電文のあることが判断
されると、ステップ4へ進み電文送信処理が行なわれる
。この電文送信処理動作は、第4図に詳細に示される。
In step 2 described above, if it is determined that there is a message to be transmitted, the process proceeds to step 4, where message transmission processing is performed. This message transmission processing operation is shown in detail in FIG.

また、前述のステップ3において、受信可能なことが判
断されると、ステラ9− プ5へ進み、電文受信処理が行なわれる。この電文受信
処理動作は、従来知られている処理と同様であるので、
その詳細を省略する。
Further, in step 3 described above, if it is determined that the message can be received, the process proceeds to step 9-5, where message reception processing is performed. This message reception processing operation is similar to the conventionally known processing, so
The details will be omitted.

次に、第4図および第5図に示すフローチャートに沿っ
て、電文送信処理の具体的な動作を説明する。
Next, the specific operation of the message transmission process will be explained along the flowcharts shown in FIGS. 4 and 5.

電文送信処理においては、正常にデータ伝送された場合
と正常にデータ伝送されない場合(すなわち異常が生じ
た場合)がある。以下には、それぞれの場合に分けて説
明する。
In the message transmission process, there are cases where data is transmitted normally and cases where data is not transmitted normally (that is, cases where an abnormality occurs). Each case will be explained separately below.

(1) 正常にデータ伝送される場合 ステップ6において、電文の受信命令すなわち間合せ符
号(ENQ)が回線制御部13b、データ伝送ライン1
4aを介して送信先の端末装置へ伝送されるか、または
電文受信命令とこれから電文を送信先の端末装置の識別
データとが複数の端末装置に共通的に伝送される。この
電文受信命令を受信した端末装置は、肯定応答符号(A
CK)をデータ伝送ライン14b1回線制御部13bを
介して主制御部13aへ送信する。このとき、主10− 制御部13aはステップ7および8の動作を繰返して待
機している。すなわち、ステップ7において応答受信の
有無が判断され、応答受信のないことが判断されるとス
テップ8においてタイムオーバか否かの判断が行なわれ
る。タイムオーバでないことが判断されると、ステップ
7へ戻る。ここで、タイムオーバの判断は、伝送制御装
置13から電文受信命令を送信してから応答受信がある
までの時間よりもやや長い一定時間経過したか否かを判
断することによって行なわれる。もし、一定時間内に応
答受信のあることが判断されると、ステップ9において
その応答受信データが肯定応答か否かが判断されるが、
正常な場合であれば肯定応答であるので、ステップ10
へ進む。ステップ10において、主制御部13aに含ま
れる異常のあることを表わすフラグ(D下異常フラグと
略称する;図示せず)がリセットされる。その後、第5
図に示す電文送信・エラー検出サブルーチンの処理が行
なわれる。なお、この電文送信・エラー検出ザブルーチ
ンの動作ステップは、3桁の番号で示される。
(1) When the data is transmitted normally In step 6, the message reception command, that is, the timing code (ENQ) is sent to the line controller 13b and the data transmission line 1.
4a to the destination terminal device, or the message reception command and the identification data of the destination terminal device to which the message will be sent are commonly transmitted to a plurality of terminal devices. The terminal device that received this message reception command receives an acknowledgment code (A
CK) is transmitted to the main control section 13a via the data transmission line 14b1 line control section 13b. At this time, the main 10-control unit 13a repeats the operations of steps 7 and 8 and is on standby. That is, in step 7 it is determined whether or not a response has been received, and if it is determined that no response has been received, it is determined in step 8 whether or not a time has elapsed. If it is determined that the time has not exceeded, the process returns to step 7. Here, the determination of time over is made by determining whether a certain period of time, which is slightly longer than the time from when the transmission control device 13 sends the message reception command until the time when a response is received, has elapsed. If it is determined that a response has been received within a certain period of time, it is determined in step 9 whether or not the response reception data is an affirmative response.
If it is normal, it is an affirmative response, so step 10
Proceed to. In step 10, a flag (abbreviated as D-lower abnormality flag; not shown) included in the main control unit 13a and indicating that there is an abnormality is reset. Then the fifth
The message transmission/error detection subroutine shown in the figure is processed. Note that the operation steps of this message transmission/error detection subroutine are indicated by three-digit numbers.

ステップ101において、成る端末装置へ送信すべき電
文すなわち送信データの先頭番地が主制御部13Aに含
まれるアドレスレジスタR1にセットされる。ステップ
102において、送信すべき電文の文字数が送信文字数
を記憶でべきレジスタR2にセットされる。そして、ス
テップ103において、1文字分のデータが送信バッフ
ァレジスタ(図示せず)へ書込まれる。この送信バッフ
ァレジスタへ送信すべき1文字のデータを書込むと、こ
のデータが回線制御部13bによってビット直列でデー
タ伝送ライン14aを介して所望の端末装置へ順次送信
される。主制御部13aは1文字分のデータを書込んだ
後、ステップ104において送信文字データを退避レジ
スタR3へ退避させる。その後、ステップ105におい
て、レジスタR2の内容から1を減算することによって
、送信文字数が1だけ減算される。ステップ106にお
いて、レジスタR2の内容すなわち送信文字数がOか否
かが判断される。しかし、電文の送信開始直後から送信
すべきすべての文字データを送信完了する直前までは、
レジスタR2の値がOでないのでそれが判断されて、ス
テップ107へ進む。ステップ107において、アドレ
スレジスタR1の内容に1が加算されて、送信データを
記憶しているメモリの読出番地が歩進される。ステップ
108において、1文字送信終了したが否がが判断され
る。もし、1文字送信終了していないことが判断される
と、ステップ109においてタイムオーバか否かが判断
される。タイムオーバでなければ、ステップ10Bおよ
び109の動作が繰返される。そして、1文字だけ送信
終了したことが判断されると、ステップ110において
レジスタR1で指定されるメモリの番地に記憶されてい
る次の1文字データが送信される。
In step 101, the starting address of the message, that is, the data to be transmitted to the terminal device, is set in the address register R1 included in the main control section 13A. In step 102, the number of characters in the message to be transmitted is set in a register R2 that stores the number of characters to be transmitted. Then, in step 103, data for one character is written to a transmission buffer register (not shown). When one character of data to be transmitted is written into this transmission buffer register, this data is sequentially transmitted in bit series to a desired terminal device via the data transmission line 14a by the line control section 13b. After writing the data for one character, the main control unit 13a saves the transmitted character data to the save register R3 in step 104. Thereafter, in step 105, the number of transmitted characters is subtracted by 1 by subtracting 1 from the contents of register R2. In step 106, it is determined whether the contents of register R2, ie, the number of characters to be transmitted, is O. However, from the moment the message starts to be sent until just before all the character data to be sent is completed,
Since the value of register R2 is not O, this is determined and the process proceeds to step 107. In step 107, 1 is added to the contents of the address register R1, and the read address of the memory storing the transmission data is incremented. In step 108, it is determined whether transmission of one character has been completed or not. If it is determined that one character has not been transmitted, it is determined in step 109 whether or not time has elapsed. If the time has not expired, the operations of steps 10B and 109 are repeated. When it is determined that transmission of one character has been completed, the next character data stored in the memory address designated by register R1 is transmitted in step 110.

続いて、ステップ110において、1文字受信終了した
か否かが判断される。ところで、電文の送信された端末
装置は、1文字分のデータを受信するごとに、受信した
1文字データと同じものをそのままデータ伝送ライン1
4bを介して回線料=13− 伸側13bへ送信している。このため、主制御部13a
は、もしステップ111において1文字受信終了してい
ないことを判断すると、ステップ112において予め定
める1文字受信に要する時間よりもやや長い一定時間経
過したが否かを判断し、一定時間内に1文字の受信デー
タのあること、すなわち端末装置からの返送データのあ
ることを待機している。そして、端末装置から1文字デ
ータを受信すると、ステップ113へ進む。ステップ1
13において、今、端末装置から受信した受信文字デー
タ(すなわち返送データ)とレジスタR3に退避してい
た前回送信した送信文字データとが一致しているか否か
が判断される。もし、両者の一致していることが判断さ
れると、ステップ114へ進む。ステップ114におい
て、航述のステップ110において送信された送信文字
データがレジスタR3に退避される。ステップ115に
おいて、レジスタR2の内容が1だけ減算されて、送信
文字数が1だけ減算される。ステップ116において、
レジスタR2の値すなわち送信文字数14− がOか否かが判断される。0でないことが判断されると
、ステップ107へ進む。そして、ステップ107〜1
16の動作が送信文字数よりも1だ(プ少ない回数繰返
される。
Subsequently, in step 110, it is determined whether one character has been received. By the way, each time the terminal device to which the message was sent receives data for one character, it transmits the same data as the received character data to data transmission line 1.
4b to the egress side 13b for a line charge of 13-. For this reason, the main control unit 13a
If it is determined in step 111 that one character has not been received yet, in step 112 it is determined whether a certain period of time, which is slightly longer than the predetermined time required to receive one character, has elapsed, and one character is received within a certain period of time. It is waiting for the presence of received data, that is, the presence of return data from the terminal device. When one character data is received from the terminal device, the process advances to step 113. Step 1
13, it is determined whether or not the received character data (ie, returned data) currently received from the terminal device matches the previously transmitted transmitted character data saved in the register R3. If it is determined that the two match, the process proceeds to step 114. In step 114, the transmission character data transmitted in step 110 of the navigation is saved in register R3. In step 115, the contents of register R2 are decremented by 1, and the number of characters to be transmitted is decremented by 1. In step 116,
It is determined whether the value of register R2, ie, the number of transmitted characters 14-, is O. If it is determined that the value is not 0, the process proceeds to step 107. And steps 107-1
16 operations are repeated 1 fewer times than the number of characters sent.

そして、ステップ116において、レジスタR2の値が
Oになったこと、換言すればすべての送信すべき文字デ
ータを送信完了したことが判断されると、ステップ11
7へ進む。ステップ117において、1文字受信終了し
たか否かが判断される。1文字受信終了していなければ
ステップ118において一定時間経過したか否かが判断
され、一定時間経過していなければステップ117およ
び118の動作が繰返される。そして、一定時間内に1
文字受信終了すると、ステップ119へ進む。ステップ
119において、先に送信した■信文字データと今回受
信した受信文字データとが一致したか否かが判断される
。一致していることが判断されると、第4図に示すステ
ップ11へ戻る。
Then, in step 116, when it is determined that the value of register R2 has become O, in other words, that all character data to be transmitted has been transmitted, step 11
Proceed to step 7. In step 117, it is determined whether one character has been received. If one character has not been received yet, it is determined in step 118 whether a certain period of time has elapsed, and if the certain period of time has not elapsed, the operations of steps 117 and 118 are repeated. Then, within a certain period of time, 1
When the character reception is completed, the process advances to step 119. In step 119, it is determined whether or not the previously transmitted character data and the received character data received this time match. If it is determined that they match, the process returns to step 11 shown in FIG.

ステップ11において、データ伝送異常があったか否か
が判断される。この判断は、異常フラグがセットされて
いるか否かに基づいて行なゆれる。
In step 11, it is determined whether there is a data transmission abnormality. This determination is made based on whether or not the abnormality flag is set.

正常にf−夕伝送された場合は、異常フラグがセットさ
れていないので、ステップ12へ進む。ステップ12に
おいて、データ伝送を終了することを表わ寸伝送終了符
号(E O’r )を送信する。ステップ13において
、送信終了を表わすデータが端末制御装置11に与えら
れ、成る1つの端末装置とのデータ伝送動作を終了する
If the data is transmitted normally, the abnormality flag is not set, so the process advances to step 12. In step 12, an end-of-transmission code (E O'r ) indicating the end of data transmission is transmitted. In step 13, data indicating the end of transmission is given to the terminal control device 11, thereby terminating the data transmission operation with the one terminal device.

(2) 1回目のデータ伝送において異常があり、2回
目のときに正常にデータ伝送がtうなわれる場合の動作 前述の電文送信・エラー検出サブルーチンにおいて、何
らかの異常が発生すれば次のような処理が行なわれる。
(2) Operation when there is an abnormality in the first data transmission, and the data transmission is normal the second time If any abnormality occurs in the message transmission/error detection subroutine described above, the following processing is performed. will be carried out.

すなわち、伝送すべき電文の複数の文字データを1文字
ずつ伝送している途中において、何番目かの文字の送信
文字データと受信文字データとが不一致を生じた場合は
、前述のステップ113または119で検出されて、ス
テップ120において異常フラグがセットされる。また
、1文字データを送信した後、端末装置からの1文字受
信のあることを持っている状態において一定時間以上経
過した場合は、ステップ112または118でそれが検
出されて、ステップ120において異常フラグがセット
される。このように、何らかの異常により、異常フラグ
がセットされた場合は、ステップ11において異常のあ
ることが検出されて、ステップ14へ進む。
That is, if a mismatch occurs between the transmitted character data and the received character data of a certain character while transmitting multiple character data of the message to be transmitted one character at a time, step 113 or 119 described above is performed. is detected, and an abnormality flag is set in step 120. Furthermore, if a certain period of time has elapsed in a state where one character has been received from the terminal device after transmitting one character data, this is detected in step 112 or 118, and an abnormality flag is flagged in step 120. is set. In this manner, if the abnormality flag is set due to some abnormality, it is detected in step 11 that there is an abnormality, and the process proceeds to step 14.

ステップ14において、2回目か否かが判断される。こ
の判断は、ステップ14の判断動作を行なう(ステップ
1つを通る)のが2回目か否かを判断するものである。
In step 14, it is determined whether this is the second time. This judgment is to judge whether or not it is the second time to perform the judgment operation of step 14 (pass through one step).

、Llかし、最初は2回目でないことが判断されて、ス
テップ15へ進む。ステップ15において、応答を催促
する符号が端末装置へ送信される。その後、ステップ1
6において端末装置から応答受信があるか否かが判断さ
れ、応答受信がなければステップ17において一定時間
経過したか否かが判断され、一定時間経過していなけれ
ばステップ16および17の動作が繰返される。
, Ll, but it is determined that this is not the second time, and the process proceeds to step 15. In step 15, a code is sent to the terminal device prompting for a response. Then step 1
In step 6, it is determined whether or not a response is received from the terminal device, and if no response is received, it is determined in step 17 whether or not a certain period of time has elapsed, and if the certain period of time has not elapsed, the operations of steps 16 and 17 are repeated. It will be done.

そして、一定時間内に端末装置からの応答受信17− のあることが判断されると、ステップ18へ進む。Then, a response is received from the terminal device within a certain period of time 17- If it is determined that there is, the process proceeds to step 18.

ステップ18において、端末装置からの応答が否定応答
符号(NAK)か否かが判断される。通常、データ伝送
中に異常が生じれば、否定応答符号が端末@置から送ら
れてくるので、それが判断されてステップ19へ進む。
In step 18, it is determined whether the response from the terminal device is a negative acknowledgment code (NAK). Normally, if an abnormality occurs during data transmission, a negative acknowledgment code is sent from the terminal, and this is determined and the process proceeds to step 19.

ステップ19において、否定応答が2回目か否かが判断
される。最初は、2回目でないことが判断されで、ステ
ップ10へ戻る。
In step 19, it is determined whether this is the second negative response. Initially, it is determined that this is not the second time, and the process returns to step 10.

そして、前述のステップ10.ステップ101〜119
の動作が繰返され、再び電文の最初の文字データから1
文字ずつ順次端末装置へ伝送される。ここで、注目すべ
き特徴は、複数文字データからなる電文を1文字ずつ順
次送信しているとき、送信文字と受信文字とを比較照合
して正常に送信されたか否かを検出し、もし異常が生じ
れば異常フラグをセットさせた後、残りの文字データを
送信終了するまでデータ伝送を続けることなく、直ちに
電文の最初の文字データから再度送信(ずなわち再送)
することである。その理由は、成る文18− 字データの送信中に異常が生じれば、伝送完了するまで
待つことなく、残りの文字データを送信して直ちに再送
を開始することによって無用なデータ伝送を省略し、デ
ータ伝送効率を高めるためである。
Then step 10 above. Steps 101-119
The operation is repeated, and again 1 from the first character data of the message
Characters are sequentially transmitted to the terminal device. The noteworthy feature here is that when a message consisting of multiple character data is sent one character at a time, the sent characters and received characters are compared and matched to detect whether or not the transmission was successful. If this occurs, set the abnormality flag and then immediately resend the message starting from the first character data (in other words, retransmit) without continuing data transmission until the remaining character data has been transmitted.
It is to be. The reason for this is that if an error occurs during the transmission of 18-character data, unnecessary data transmission can be avoided by transmitting the remaining character data and immediately starting retransmission without waiting until the transmission is complete. , in order to increase data transmission efficiency.

そして、2回目の電文送13が正常に伝送されると、ス
テップ11において異常のないことが判断され、ステッ
プ12および13の処理が行なわれる。
When the second telegram 13 is transmitted normally, it is determined in step 11 that there is no abnormality, and the processes in steps 12 and 13 are performed.

(3) 2回のデータ伝送において異常が生じた場合の
動作 2回目のデータ伝送においても何らかの異常が生じれば
、前述のステップ120において異常フラグがセットさ
れている。このため、電文送信・エラー検出サブルーチ
ンの処理が終了1ノた後、ステップ11において再度異
常のあったことが判断されて、ステップ14へ進む。ス
テップ14において、2回目の異常のあつIにとが判断
されて、ステップ20へ進む。ステップ20において、
伝送終了符号(EOT)が端末装置へ送信される。
(3) Operation when an abnormality occurs in two data transmissions If any abnormality occurs in the second data transmission, the abnormality flag is set in step 120 described above. Therefore, after the processing of the message transmission/error detection subroutine is completed, it is determined in step 11 that there is an abnormality again, and the process proceeds to step 14. In step 14, it is determined that there is a second abnormality, and the process proceeds to step 20. In step 20,
An end of transmission code (EOT) is sent to the terminal device.

ステップ21において、電文無応答(すなわち電文を送
信したが端末装ばから正しく応答されない異常のあるこ
と)を表わすデータが端末制御装置11に与えられて、
動作を終了する。
In step 21, data indicating a non-response to the message (that is, there is an abnormality in which a message is sent but the terminal does not respond correctly) is given to the terminal control device 11;
Finish the operation.

(4) 子の他の異常が発生した場合の動作前述のステ
ップ8においで、電文受信命令を送信してから応答受信
のない状態が一定時間継続したことが判断されると、ス
テップ22へ進む。ステップ22において、伝送終了筒
@ (EOT)が端末装置へ送信される。ステップ23
において、無応答であることを表わすデータが端末シリ
御装置11に与えられた後、動作を終了する。
(4) Operation when another abnormality occurs in the child If it is determined in step 8 above that no response has been received for a certain period of time after sending the message reception command, proceed to step 22. . In step 22, an end of transmission (EOT) is sent to the terminal. Step 23
After data indicating that there is no response is given to the terminal serial control device 11, the operation ends.

電文受信命令を送信した復・、一定時間内に応答受信が
あり、その応答受信が内定応答(ACK)でない場合は
、ステップ9においてそれが判断されて、ステップ24
へ進む。ステップ24において、応答受信のデータが否
定応答符号(N A K )か否かが判断される。もし
、否定応答でもないことが判断されると、ステップ7へ
戻る。一方、端末装置が故障などによってデータ伝送で
きない状態の場合は、電文受信命令に応答して否定応答
を送信する。そこで、端末装置に異常のある場合は、ス
テップ24において否定応答(NAK)であることが判
断されて、ステップ25へ道む。ステップ25において
、伝送終了符号(EOT)が端末装置へ送信される。′
ステップ26において、端末の異常によりデータ伝送で
きないことを表わすデータが端末制御装置11へ与えら
れた後、動作を終了する。
If a response is received within a certain period of time after transmitting the message reception command, and the response is not an informal response (ACK), this is determined in step 9, and step 24
Proceed to. In step 24, it is determined whether the response received data is a negative acknowledgment code (NAK). If it is determined that there is no negative response, the process returns to step 7. On the other hand, if the terminal device is unable to transmit data due to a failure or the like, it transmits a negative response in response to the message reception command. Therefore, if there is an abnormality in the terminal device, it is determined in step 24 that there is a negative response (NAK), and the process proceeds to step 25. In step 25, an end of transmission code (EOT) is sent to the terminal. ′
In step 26, data indicating that data transmission is not possible due to an abnormality in the terminal is provided to the terminal control device 11, and then the operation is terminated.

前述のステップ19において、2回目の否定応答のある
ことが判断されると、ステップ27へ進む。ステップ2
7において、伝送終了符号(EOT)が端末装置へ送信
される。ステップ28にd3いて、電文異常によりデー
タ伝送を正常に行なえないことを表わすデータが端末制
御装置11に与えられた後、動作を終了する。
If it is determined in step 19 that there is a second negative response, the process proceeds to step 27. Step 2
At 7, an end of transmission code (EOT) is sent to the terminal. At step d3 in step 28, data indicating that data transmission cannot be performed normally due to an abnormality in the message is given to the terminal control device 11, and then the operation ends.

このように、成る端末装置どのデータ伝送中に異常が生
じた場合において、電文を2回送信したにもかかわらず
正常にデータ伝送できないとき、またはその他の理由に
よる異常のあるときは、そ21− の端末装置とのデータ伝送を終了させた後、他の端末装
置とのデータ伝送に移る。
In this way, if an abnormality occurs during data transmission of any terminal device, if the data cannot be transmitted normally even though the message has been sent twice, or if there is an abnormality due to other reasons, After completing data transmission with one terminal device, data transmission with another terminal device is started.

なお、前述のステップ109において、1文字送信中に
タイムオーバ(一定時間経過)したことが判断されると
、その場合は異常の原因が伝送制t111装置13側に
あるので、ステップ121へ進む。
If it is determined in step 109 that a time has elapsed (a certain period of time has elapsed) while transmitting one character, then the process proceeds to step 121 because the cause of the abnormality is on the transmission system t111 device 13 side.

そして、ステップ121において、送受信禁止処理が行
なわれた後、すべての端末装置とのデータ伝送を停止す
る。
Then, in step 121, after the transmission/reception prohibition process is performed, data transmission with all terminal devices is stopped.

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

第1図はこの発明が適用されるデータ伝送システムの概
略を示す図解図である。第2図はデータ伝送システムの
ブロック図である。第3図はこの発明の一実施例の動作
を説明するための概略フローチャートである。第4図は
この発明の一実施例の電文送信処理ルーチンの70−ヂ
ヤートである。 第5図は電文送信・エラー検出サブルーチンのフローチ
ャートである。第6図はこの発明の詳細な説明するため
の送信電文とデータ伝送期間中における動作状態のタイ
ムチャートを示す。 22− 図において、10はデータ伝送システム、11は端末制
御装置、128〜12cは端末装置、13は伝送制御装
置、13aは主制御部、13bは回線制御部、130は
ハンドシェイク部、14aは第1のデータ伝送ライン、
14bは第2のデータ伝送ラインを示す。 特許出願人 立石電機株式会社 23−
FIG. 1 is an illustrative diagram showing an outline of a data transmission system to which the present invention is applied. FIG. 2 is a block diagram of the data transmission system. FIG. 3 is a schematic flow chart for explaining the operation of one embodiment of the present invention. FIG. 4 shows a 70-digit message transmission processing routine according to an embodiment of the present invention. FIG. 5 is a flowchart of the message transmission/error detection subroutine. FIG. 6 shows a time chart of the transmission message and the operating state during the data transmission period for explaining the present invention in detail. 22- In the figure, 10 is a data transmission system, 11 is a terminal control device, 128 to 12c are terminal devices, 13 is a transmission control device, 13a is a main control section, 13b is a line control section, 130 is a handshake section, and 14a is a a first data transmission line;
14b indicates a second data transmission line. Patent applicant: Tateishi Electric Co., Ltd. 23-

Claims (1)

【特許請求の範囲】 少なくとも1つの端末装置が第1のデータ伝送ラインお
よび第2のデータ伝送ラインを介して端末制御装置側の
伝送制御vi&置に接続されたデータ伝送システムにお
いて、 前記伝送制御装置が送信すべき複数の文字データからな
る電文のうち1文字データずつ前記第1のデータ伝送ラ
インを介して前記端末装置へ順次送信するステップ、 前記端末装置が前記第1のデータ伝送ラインを介して伝
送された1文字データを受信したとき、その1文字デー
タをそのまま返送データとして前記第゛2のデータ伝送
ラインを介して前記伝送制御装置へ送信するステップ、 前記伝送制御装置が前記第2のデータ伝送ラインを介し
て伝送された返送データを受信したとき、当該返送デー
タと返送データに対応する送信した1文字データとの不
一致を検出するステップ、前記伝送IQ111装置が不
一致を検出したとき、前記電文のすべての文字データの
送信を終了することなく、電文の最初の文字データから
1文字ずつ再送するステップ、ならびに 前記伝送制御装置が電文のすべての文字データを送信完
了したとき、データ伝送異常のないことに基づいて前記
端末装置からの応答を待つことなくデータ伝送動作を終
了状態にさせるステップを含む、データ伝送制御方法。
[Scope of Claims] A data transmission system in which at least one terminal device is connected to a transmission control unit on a terminal control device side via a first data transmission line and a second data transmission line, wherein the transmission control device sequentially transmitting one character data of a message consisting of a plurality of character data to be transmitted to the terminal device via the first data transmission line; When receiving the transmitted one character data, transmitting the one character data as it is as return data to the transmission control device via the second data transmission line, the transmission control device transmitting the second data When the return data transmitted via the transmission line is received, detecting a mismatch between the return data and the transmitted one-character data corresponding to the return data; when the transmission IQ 111 device detects the mismatch, the message The step of retransmitting the message one character at a time starting from the first character data without completing the transmission of all the character data of the message, and the step of retransmitting the message one character at a time without completing the transmission of all the character data of the message, and when the transmission control device completes transmitting all the character data of the message, there is no data transmission abnormality. A data transmission control method comprising the step of bringing a data transmission operation to an end state without waiting for a response from the terminal device based on the above.
JP57195041A 1982-11-04 1982-11-04 Method for controlling data transmission Pending JPS5983431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57195041A JPS5983431A (en) 1982-11-04 1982-11-04 Method for controlling data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57195041A JPS5983431A (en) 1982-11-04 1982-11-04 Method for controlling data transmission

Publications (1)

Publication Number Publication Date
JPS5983431A true JPS5983431A (en) 1984-05-14

Family

ID=16334554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57195041A Pending JPS5983431A (en) 1982-11-04 1982-11-04 Method for controlling data transmission

Country Status (1)

Country Link
JP (1) JPS5983431A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017526244A (en) * 2014-07-03 2017-09-07 サムスン エレクトロニクス カンパニー リミテッド Method and apparatus for transmitting and receiving information in a multimedia system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017526244A (en) * 2014-07-03 2017-09-07 サムスン エレクトロニクス カンパニー リミテッド Method and apparatus for transmitting and receiving information in a multimedia system
US10498492B2 (en) 2014-07-03 2019-12-03 Samsung Electronics Co., Ltd. Method and device for receiving and transmitting information in multimedia system

Similar Documents

Publication Publication Date Title
US4547850A (en) Priority control method and apparatus for common bus of data processing system
JPS604624B2 (en) System for retransmitting incorrect information frames
CN105786753A (en) Method and device for data transmission between master and slave devices on I2C bus
US5378067A (en) Network interface apparatus and method for reducing conflicts through the use of times
US4454601A (en) Method and apparatus for communication of information and error checking
JPS5983431A (en) Method for controlling data transmission
JPH10126463A (en) Method for checking completeness of full duplex serial transmission
JPH0530115A (en) Polling system
JPS58164346A (en) Data communication system provided with shifting-down function
JP2891267B2 (en) Data retransmission transmission method
JPH0973373A (en) Parallel interface
JPH05216793A (en) Device and method for communication control
JPH11298450A (en) Serial data transfer controller
JP3454264B2 (en) Wireless communication system and wireless communication method
JPS6154521A (en) Data transmission method
JPH0897880A (en) Communication system by procedure applicable to hdlc
JPH0991100A (en) Data transmission controller
JPH07212432A (en) Data repeater
JPS59125429A (en) Transmission controller
JP2001189714A (en) Data transmission system
JPH06177941A (en) Home bus controller
JPH03289833A (en) On-vehicle data transmitter
JPS58219856A (en) Data communication system
JPH09190388A (en) Data transfer device, interface device and data transfer method
JPS63131740A (en) Serial data transmitter