JPH05336082A - Detection of response data validity - Google Patents

Detection of response data validity

Info

Publication number
JPH05336082A
JPH05336082A JP14185592A JP14185592A JPH05336082A JP H05336082 A JPH05336082 A JP H05336082A JP 14185592 A JP14185592 A JP 14185592A JP 14185592 A JP14185592 A JP 14185592A JP H05336082 A JPH05336082 A JP H05336082A
Authority
JP
Japan
Prior art keywords
station
command
data
command data
response data
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
JP14185592A
Other languages
Japanese (ja)
Inventor
Susumu Furusawa
進 古澤
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP14185592A priority Critical patent/JPH05336082A/en
Publication of JPH05336082A publication Critical patent/JPH05336082A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To shorten the time of the overall command processing by eliminating the wait time due to transmission of response data corresponding to command data from a station B to a station A in the reception order of command data in the case of the station B capable of multiple execution of processings for command data continuously received from the station A. CONSTITUTION:A station A 01 adds a sequential code 3 indicating the order of transmission to command data 1 to transmit it to a station B 02. The station B 02 adds the same sequential code 3 as command data to response data 2 as the processing result to transmit it to the station A 01 immediately after processing the command.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は2局間のデータ伝送で、
自局から相手局へコマンドデータを送信し、相手局より
受信する応答データの正当性を検出する方法に関する。
なお以下各図において同一の符号は同一もしくは相当部
分を示す。
The present invention relates to data transmission between two stations,
The present invention relates to a method of transmitting command data from a local station to a partner station and detecting the validity of response data received from the partner station.
In the following figures, the same reference numerals indicate the same or corresponding parts.

【0002】[0002]

【従来の技術】図2はA局01とB局02との2局間の
データ伝送において、A局01よりコマンド(処理要
求)データ1をB局02に送信し、B局02はコマンド
1に対する処理結果としての応答データ2をA局01に
送信していることを示す。伝送手順は、もっとも簡単で
低価格である無手順を使用している。この方法は、特別
な伝送制御コードがなく、任意のビットパターンの伝送
が行なえるが、伝送の信頼性が著しく低下する。この伝
送において、コマンドデータに対する応答データの正当
性のチェックは送信時及び受信時の伝文に付される伝送
異常チェック用のステータス(パリティ,オーバーラン
等)の検出により行っている。
2. Description of the Related Art FIG. 2 shows a command (processing request) data 1 transmitted from the A station 01 to the B station 02 in the data transmission between the A station 01 and the B station 02. It indicates that the response data 2 as the processing result is transmitted to the A station 01. The transmission procedure uses the simplest and cheapest non-procedure. This method allows transmission of an arbitrary bit pattern without a special transmission control code, but the reliability of transmission is significantly reduced. In this transmission, the correctness of the response data to the command data is checked by detecting the transmission error check status (parity, overrun, etc.) attached to the message during transmission and reception.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上述した
従来の応答データ正当性の検出方法では、B局02が多
重にコマンドを受信できる場合に下記の不具合が生じ
る。即ちB局02は、連続したコマンド1を受信する
と、各コマンド1に対応する処理を並列実行する。この
とき、B局の負荷等により、各コマンド1の処理時間を
一定に保つことはできない。また、コマンド処理に定め
られた優先レベルにより、後から受信したコマンドの処
理が前のコマンドより先に終了することがある。しか
し、通常の簡易な伝送プロトコルではB局02は、先着
のコマンド1に対する応答データ2をA局01に返すま
で、後のコマンド1に対する応答データ2を返すことが
できない。そのため、A局01が連続に出すコマンド1
に対するトータルの処理時間は長くなる欠点があった。
However, in the above-described conventional method for detecting the validity of response data, the following problems occur when the B station 02 can receive multiple commands. That is, when the station B 02 receives the continuous commands 1, the processing corresponding to each command 1 is executed in parallel. At this time, the processing time of each command 1 cannot be kept constant due to the load of the station B or the like. Further, depending on the priority level set for the command processing, the processing of the command received later may be completed before the previous command. However, in the normal simple transmission protocol, the B station 02 cannot return the response data 2 for the subsequent command 1 until it returns the response data 2 for the first command 1 to the A station 01. Therefore, command 1 issued by station A 01 continuously
However, there is a drawback that the total processing time becomes longer.

【0004】そこでこの発明の課題は、A局01側に
て、連続のコマンド1に対する応答データ2の受信順番
の逆転が生じても、応答データ2の正当性を、より複雑
な伝送プロトコルを導入することなく、簡単にチェック
することができる応答データの正当性の検出方法を提供
することにある。
Therefore, an object of the present invention is to introduce a more complicated transmission protocol to the legitimacy of the response data 2 even if the reception order of the response data 2 for the continuous command 1 is reversed at the A station 01 side. It is to provide a method of detecting the validity of response data that can be easily checked without performing the above.

【0005】[0005]

【課題を解決するための手段】前記の課題を解決するた
めに、本発明による応答性データの正当性の検出方法
は、第2の局(B局02など)が第1の局(A局01な
ど)から連続して受信したコマンドデータ(1など)に
対する各処理を多重に実行しながら、その各処理ごとの
実行結果としての応答データ(2など)を第1の局に送
信するシステムにおける、第1の局が受信した前記応答
データの正当性を検出する方法において、第1の局は前
記コマンドデータにその送信の順番を示すシーケンシャ
ルコード(3など)を付加して送信し、第2の局は受信
したコマンドデータに対応する前記応答データに該コマ
ンドデータに付加されたシーケンシャルコードと同一の
シーケンシャルコードを付加して送信するようにする。
In order to solve the above-mentioned problems, in the method of detecting the validity of responsiveness data according to the present invention, the second station (station B 02 etc.) is the first station (station A). In a system for transmitting response data (2, etc.) as the execution result of each process to the first station while executing multiple processes for command data (1, etc.) continuously received from 01, etc.) In the method for detecting the legitimacy of the response data received by the first station, the first station adds a sequential code (3 or the like) indicating the order of transmission to the command data, and transmits the command data. Station transmits the response data corresponding to the received command data by adding the same sequential code as the sequential code added to the command data.

【0006】[0006]

【作用】A局はコマンドデータにその送信の順番を示す
シーケンシャルコードを付加してB局に送信し、B局は
受信したコマンドデータに対応する応答データに該コマ
ンドデータに付加されていたシーケンシャルコードと同
じシーケンシャルコードを付加してA局に送信する。
The station A adds a sequential code indicating the order of transmission to the command data and sends it to the station B, and the station B adds the sequential code added to the command data to the response data corresponding to the received command data. The same sequential code as is added and transmitted to station A.

【0007】[0007]

【実施例】図1は本発明の実施例としての2局間の交信
方法の説明図で図2に対応するものである。図1におい
てA局01は連続にコマンドをB局02に送信し、B局
02は受信したコマンドに対する処理を多重に実行でき
るものとする。この場合、本発明では、送受信されるコ
マンドデータ1,応答データ2に夫々シーケンシャルコ
ード3を付加したものである。2のシーケンシャルコー
ド3はコマンドデータ1の送信側であるA局01で1バ
イトの領域にセットされる。またシーケンシャルコード
3の値は、新しいコマンドデータ1を送信する毎に1づ
つインクリメントされ、00〜FFHの値となる。但し
FFHの次は00Hとなる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an explanatory diagram of a communication method between two stations as an embodiment of the present invention and corresponds to FIG. In FIG. 1, the A station 01 continuously transmits commands to the B station 02, and the B station 02 can perform multiple processes for the received commands. In this case, according to the present invention, the sequential code 3 is added to each of the transmitted and received command data 1 and response data 2. The sequential code 3 of 2 is set in the 1-byte area by the A station 01 which is the transmission side of the command data 1. Further, the value of the sequential code 3 is incremented by 1 every time new command data 1 is transmitted and becomes a value of 00 to FFH. However, 00H follows FFH.

【0008】コマンドデータ1を受信したB局02は、
コマンドデータ1に付加されたシーケンシャルコード3
を、該コマンドデータに対応する応答データ2にコピー
してA局01に送信する。応答データ2を受信したA局
01は、送信したコマンドデータ1のシーケンシャルコ
ード3と受信した応答データ2のシーケンシャルコード
3を比較することによりコマンドデータ1に対する応答
データ2の正当性を検出することが可能となる。
Station B 02, which has received the command data 1,
Sequential code 3 added to command data 1
Is copied to the response data 2 corresponding to the command data and transmitted to the A station 01. The station A 01 which receives the response data 2 can detect the validity of the response data 2 with respect to the command data 1 by comparing the sequential code 3 of the transmitted command data 1 with the sequential code 3 of the received response data 2. It will be possible.

【0009】[0009]

【発明の効果】本発明によれば、A局がB局に連続して
送信するコマンドデータにその送信の順番を示すシーケ
ンシャルコードを付加し、B局は受信したコマンドデー
タに対応する処理を多重に実行し、その実行結果として
の応答データに該コマンドデータに付加されたシーケン
シャルコードと同じシーケンシャルコードを付加してA
局に送信するようにしたので、A局側、つまりコマンド
の送信側の局でコマンドデータ1に対する応答データ2
の正当性のチェックを簡単に行うことが可能となり、コ
マンド1の並列処理ができるため、全コマンドのトータ
ル処理時間を短縮することができる。
According to the present invention, station A adds a sequential code indicating the order of transmission to the command data continuously transmitted to station B, and station B multiplexes the processing corresponding to the received command data. And the response data as the execution result is added with the same sequential code as the sequential code added to the command data.
Since it is transmitted to the station, the station A side, that is, the station on the command transmission side, responds to the command data 1 with the response data 2
Since it is possible to easily check the correctness of the command and the command 1 can be processed in parallel, the total processing time of all commands can be shortened.

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

【図1】本発明の実施例としての交信方法の説明図FIG. 1 is an explanatory diagram of a communication method as an embodiment of the present invention.

【図2】図1に対応する従来の交信方法の説明図FIG. 2 is an explanatory diagram of a conventional communication method corresponding to FIG.

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

01 A局 02 B局 1 コマンドデータ 2 応答データ 3 シーケンシャルコード 01 Station A 02 Station B 1 Command data 2 Response data 3 Sequential code

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】第2の局が第1の局から連続して受信した
コマンドデータに対する各処理を多重に実行しながら、
その各処理ごとの実行結果としての応答データを第1の
局に送信するシステムにおける、第1の局が受信した前
記応答データの正当性を検出する方法において、 第1の局は前記コマンドデータにその送信の順番を示す
シーケンシャルコードを付加して送信し、 第2の局は受信したコマンドデータに対応する前記応答
データに該コマンドデータに付加されたシーケンシャル
コードと同一のシーケンシャルコードを付加して送信す
るようにしたことを特徴とする応答データの正当性の検
出方法。
1. The second station multiplexes each process for command data continuously received from the first station,
In the method of detecting the validity of the response data received by the first station in the system for transmitting the response data as the execution result of each process to the first station, the first station converts the command data into the command data. The second station adds and transmits a sequential code indicating the order of transmission, and the second station adds and transmits the same sequential code as the sequential code added to the command data to the response data corresponding to the received command data. A method for detecting the validity of response data, which is characterized in that
JP14185592A 1992-06-03 1992-06-03 Detection of response data validity Pending JPH05336082A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14185592A JPH05336082A (en) 1992-06-03 1992-06-03 Detection of response data validity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14185592A JPH05336082A (en) 1992-06-03 1992-06-03 Detection of response data validity

Publications (1)

Publication Number Publication Date
JPH05336082A true JPH05336082A (en) 1993-12-17

Family

ID=15301737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14185592A Pending JPH05336082A (en) 1992-06-03 1992-06-03 Detection of response data validity

Country Status (1)

Country Link
JP (1) JPH05336082A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009111488A (en) * 2007-10-26 2009-05-21 Ntt Docomo Inc Remote supervisory control apparatus and mobile communication terminal
JP2014174734A (en) * 2013-03-08 2014-09-22 Toshiba Corp Data communication system and master unit thereof, and data communication method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009111488A (en) * 2007-10-26 2009-05-21 Ntt Docomo Inc Remote supervisory control apparatus and mobile communication terminal
JP2014174734A (en) * 2013-03-08 2014-09-22 Toshiba Corp Data communication system and master unit thereof, and data communication method

Similar Documents

Publication Publication Date Title
EP0580938B1 (en) Duplex communication control device
JPH05336082A (en) Detection of response data validity
JP2839384B2 (en) Programmable controller
JP2541492B2 (en) Microprocessor remote reset method
JP3245552B2 (en) Transfer control system
JP2757847B2 (en) Double reception avoidance method in basic procedure
JP2536385B2 (en) Data communication method
JP3052646B2 (en) Multiplex communication device
JPH0438618Y2 (en)
JP2602587B2 (en) Secondary station initialization method in SDLC communication system
JP3267348B2 (en) Simultaneous download method for data communication system
JPH04358251A (en) Method for transmitting data between computers
JPH0846633A (en) Data communication equipment
JPS5972844A (en) Communication control system
JPH04129443A (en) Information exchange system
JPS62102641A (en) Data transmission system
JPH0648473B2 (en) Message transmission / reception processing method
JPS61270929A (en) Wireless transmission system
JPH0522254A (en) Data transmission system
JPS63138827A (en) Data transmission equipment
JPH08111686A (en) Transmission timing control method
JPH04332230A (en) Communication control system
JPS6120444A (en) Data transferring system by infrared rays
JPH0520255A (en) Data transfer system
JPS60117845A (en) Data transmission system