JP2536385B2 - Data communication method - Google Patents
Data communication methodInfo
- Publication number
- JP2536385B2 JP2536385B2 JP5071338A JP7133893A JP2536385B2 JP 2536385 B2 JP2536385 B2 JP 2536385B2 JP 5071338 A JP5071338 A JP 5071338A JP 7133893 A JP7133893 A JP 7133893A JP 2536385 B2 JP2536385 B2 JP 2536385B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- command
- flag
- error
- section
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 11
- 230000005540 biological transmission Effects 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 1
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、コマンドを送出しレス
ポンスを受信するマスタ局と、コマンドを受信しレスポ
ンスを送出するスレーブ局との間のデータ通信方式に関
し、特にコマンドやレスポンスにデータ誤りが発生した
場合の再送手順に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication system between a master station that sends a command and receives a response and a slave station that receives a command and sends a response. Retransmission procedure when it occurs.
【0002】[0002]
【従来の技術】マスタ局とスレーブ局との間で、マスタ
局からスレーブ局に対するコマンドデータと、それに対
してスレーブ局からマスタ局へ送出されるレスポンスデ
ータとをやりとりする従来のデータ通信方式の一例が、
特開昭62−117439号公報に開示されている。2. Description of the Related Art An example of a conventional data communication system for exchanging command data from a master station to a slave station and response data sent from the slave station to the master station between the master station and the slave station. But,
It is disclosed in Japanese Patent Laid-Open No. 62-117439.
【0003】以下に、一般的な従来のデータ通信方式に
おいて、コマンドやレスポンスにデータ誤りが発生した
場合の再送手順について説明する。スレーブ局は、受信
したコマンドデータに誤りがあった場合、コマンド内容
を実行せずマスタ局へレスポンスデータを送信しない。
マスタ局はレスポンスデータ受信待ちタイマを持ち、そ
のタイムアウトによって再送処理を開始し同じデータの
コマンドデータを再送する。またスレーブ局から受信し
たレスポンスデータに誤りがあった場合にも再送処理を
開始し同じデータのコマンドデータを再送する。A description will be given below of a retransmission procedure when a data error occurs in a command or response in a general conventional data communication system. If the received command data has an error, the slave station does not execute the command contents and does not send the response data to the master station.
The master station has a response data reception waiting timer, and when it times out, it starts resending processing and resends command data of the same data. Also, when the response data received from the slave station has an error, the resending process is started and the command data of the same data is resent.
【0004】[0004]
【発明が解決しようとする課題】このデータ通信方式で
は、スレーブ局で受信したコマンドデータに誤りが含ま
れていた場合、マスタ局に対しレスポンスデータを送出
せず、マスタ側のレスポンスデータ受信待ちタイマのタ
イムアウトによってのみ通信異常を認識するため、スル
ープットを著しく低下させる。In this data communication method, when the command data received by the slave station contains an error, the response data is not sent to the master station, and the response data reception waiting timer on the master side is not sent. Since the communication abnormality is recognized only by the time-out, the throughput is remarkably reduced.
【0005】またこのため、コマンドデータにおける通
信異常が発生したのかレスポンスデータにおける通信異
常が発生したのかが判別できない。For this reason, it is not possible to determine whether the communication error in the command data or the communication error in the response data has occurred.
【0006】また、再送処理において送出するコマンド
データは、最初に送出したコマンドデータと同じなた
め、それを受信したスレーブ側では、再送によるコマン
ドデータであるかどうかを判別することができないた
め、同一コマンドの重複実行が発生してしまう。Further, since the command data sent in the resend process is the same as the command data sent first, the slave side receiving the same cannot determine whether the command data is the resend command data. Duplicate execution of commands will occur.
【0007】本発明の課題は、上述の欠点を除去し、デ
ータ誤りによるスループットの低下の防止でき、同一コ
マンドの重複実行の発生を防止できる、精度の高い誤り
処理を可能とするデータ通信方式を提供することにあ
る。An object of the present invention is to eliminate the above-mentioned drawbacks, to prevent a decrease in throughput due to a data error, to prevent the duplicate execution of the same command, and to provide a data communication system capable of highly accurate error processing. To provide.
【0008】[0008]
【課題を解決するための手段】本発明によれば、マスタ
局とスレーブ局との間で、マスタ局からスレーブ局に送
信されるコマンド部を有するコマンドデータと、それに
対してスレーブ局からマスタ局に送信されるレスポンス
部を有するレスポンスデータとをやりとりするデータ通
信方式において、マスタ局は、前記コマンド部と再送フ
ラグ部とを有するコマンドデータを送信し;スレーブ局
は、前記レスポンス部と誤りフラグ部とを有するレスポ
ンスデータを送信し;マスタ局は、処理開始時、前記再
送フラグ部に再送フラグを立てずにコマンドデータを送
信し、受信したレスポンスデータのレスポンス部に誤り
があった場合は、前記再送フラグ部に再送フラグを立て
てコマンドデータを送信し、反対にレスポンス部に誤り
がなくかつ前記誤りフラグ部に誤りフラグが立っていた
場合は、前記再送フラグ部に再送フラグを立てずにコマ
ンドデータを送信し、レスポンス部に誤りがなくかつ前
記誤りフラグ部に誤りフラグが立っていなかった場合は
通信終了する機能を有し;スレーブ局は、受信したコマ
ンドデータのコマンド部に誤りがあった場合、コマンド
部の内容は実行せず前記誤りフラグ部に誤りフラグを立
ててレスポンスデータを送信し、コマンド部に誤りがな
くかつ前記再送フラグ部に再送フラグが立っていなかっ
た場合、コマンド部の内容を実行して前記誤りフラグ部
に誤りフラグを立てないでレスポンスデータを送信し、
コマンド部に誤りがなくかつ前記再送フラグ部に再送フ
ラグが立っていた場合、コマンド部の内容を実行せずに
その時点で最後に送信したレスポンスデータと同じレス
ポンスデータを送信する機能を有することを特徴とする
データ通信方式が得られる。According to the present invention, command data having a command section transmitted from a master station to a slave station between a master station and a slave station, and corresponding slave station to master station In the data communication method of exchanging response data having a response section transmitted to the master station, the master station transmits command data having the command section and a retransmission flag section; and the slave station transmits the response section and the error flag section. The master station transmits command data without setting a retransmission flag in the retransmission flag section at the start of processing, and if the response section of the received response data has an error, The command data is sent with the resend flag set in the resend flag part. When an error flag is set in the flag section, command data is transmitted without setting a retransmission flag in the retransmission flag section, and when there is no error in the response section and no error flag is set in the error flag section The slave station has a function of terminating communication; when the command portion of the received command data has an error, the slave station transmits the response data by setting the error flag in the error flag portion without executing the contents of the command portion, If there is no error in the command section and the retransmission flag is not set in the retransmission flag section, the contents of the command section are executed and response data is transmitted without setting an error flag in the error flag section,
If the command section has no error and the resend flag section has a resend flag set, it is possible to send the same response data as the last sent response data without executing the contents of the command section. A characteristic data communication method is obtained.
【0009】更に本発明によれば、マスタ局とスレーブ
局との間で、マスタ局からスレーブ局に送信されるコマ
ンド部を有するコマンドデータと、それに対してスレー
ブ局からマスタ局に送信されるレスポンス部を有するレ
スポンスデータとをやりとりするデータ通信方式におい
て、マスタ局は、前記コマンド部と再送フラグ部とを有
するコマンドデータを送信するマスタデータ送受信部を
有し;スレーブ局は、前記レスポンス部と誤りフラグ部
とを有するレスポンスデータを送信するスレーブデータ
送受信部と、コマンド実行部とを有し;前記マスタデー
タ送受信部は、処理開始時、前記再送フラグ部に再送フ
ラグを立てずにコマンドデータを送信し、受信したレス
ポンスデータのレスポンス部に誤りがあった場合は、前
記再送フラグ部に再送フラグを立ててコマンドデータを
送信し、反対にレスポンス部に誤りがなくかつ前記誤り
フラグ部に誤りフラグが立っていた場合は、前記再送フ
ラグ部に再送フラグを立てずにコマンドデータを送信
し、レスポンス部に誤りがなくかつ前記誤りフラグ部に
誤りフラグが立っていなかった場合は通信終了する機能
を有し;前記スレーブデータ送受信部は、受信したコマ
ンドデータのコマンド部に誤りがあった場合、コマンド
部の内容を前記コマンド実行部に実行させずに前記誤り
フラグ部に誤りフラグを立ててレスポンスデータを送信
し、コマンド部に誤りがなくかつ前記再送フラグ部に再
送フラグが立っていなかった場合、コマンド部の内容を
前記コマンド実行部に実行させて前記誤りフラグ部に誤
りフラグを立てないでレスポンスデータを送信し、コマ
ンド部に誤りがなくかつ前記再送フラグ部に再送フラグ
が立っていた場合、コマンド部の内容を前記コマンド実
行部に実行させずにその時点で最後に送信したレスポン
スデータと同じレスポンスデータを送信する機能を有す
ることを特徴とするデータ通信方式が得られる。Further, according to the present invention, between the master station and the slave station, command data having a command portion transmitted from the master station to the slave station and a response transmitted from the slave station to the master station in response to the command data. In a data communication system for exchanging response data having a section, the master station has a master data transmitting / receiving section for transmitting command data having the command section and a retransmission flag section; the slave station has an error with the response section. A slave data transmitting / receiving section for transmitting response data having a flag section; and a command executing section; the master data transmitting / receiving section transmits command data without setting a retransmission flag in the retransmission flag section at the start of processing. However, if there is an error in the response part of the received response data, the resend flag part When the command data is transmitted with the transmission flag set, and on the contrary, if there is no error in the response section and the error flag is set in the error flag section, the command data is transmitted without setting the retransmission flag in the retransmission flag section. , Has a function of terminating communication when there is no error in the response part and no error flag is set in the error flag part; when the slave data transmitting / receiving part has an error in the command part of the received command data , The response data was transmitted by setting an error flag in the error flag section without causing the command execution section to execute the contents of the command section, and there was no error in the command section and the retransmission flag was not set in the retransmission flag section. In this case, the content of the command part is executed by the command execution part and the error flag part is not set with an error flag. If there is no error in the command part and the resend flag part is set in the resend flag part, the same response as the last sent response data without causing the command executing part to execute the contents of the command part. A data communication system having a function of transmitting data is obtained.
【0010】[0010]
【実施例】次に本発明の実施例について図面を参照して
説明する。Next, an embodiment of the present invention will be described with reference to the drawings.
【0011】図1は本発明の一実施例のデータ通信方式
における構成図である。FIG. 1 is a block diagram of a data communication system according to an embodiment of the present invention.
【0012】マスタ局1からスレーブ局2へ送られるコ
マンドデータ3は、再送フラグ部4とコマンド部5から
なっており、これに対する返答としてスレーブ局2から
マスタ局1へ送られるレスポンスデータ6は、誤りフラ
グ部7とレスポンス部8からなっている。The command data 3 sent from the master station 1 to the slave station 2 comprises a resend flag section 4 and a command section 5, and the response data 6 sent from the slave station 2 to the master station 1 in response to this is The error flag unit 7 and the response unit 8 are included.
【0013】本発明のデータ通信方式におけるマスタ局
1は、スレーブ局2からのレスポンスデータ6を受信し
て、そのレスポンス部8に誤りがあるかどうかのチェッ
クと誤りフラグ部7に誤りフラグが立っていたかどうか
のチェックを行い、その結果をもとに次に送出するコマ
ンドデータをどのようにするかを判断するマスタデータ
送受信部9を持つ。一方、スレーブ局2は、マスタ局か
らのコマンドデータ3を受信して、そのコマンド部5に
誤りがあるかどうかのチェックと再送フラグ部4に再送
フラグが立っていたかどうかのチェックを行い、その結
果をもとにレスポンスデータ6の内容を決定送信し、さ
らに送信した内容を記録するスレーブデータ送受信部1
0と、スレーブデータ送受信部10の判断した結果にも
とづき受信したコマンド部5の内容を実行するコマンド
実行部11を持つ。In the data communication system of the present invention, the master station 1 receives the response data 6 from the slave station 2, checks whether the response section 8 has an error, and sets an error flag in the error flag section 7. It has a master data transmitter / receiver 9 for checking whether or not the command data is to be transmitted next time, and for determining what to do with the command data to be transmitted next based on the result. On the other hand, the slave station 2 receives the command data 3 from the master station, checks whether the command section 5 has an error, and checks whether the retransmission flag section 4 has a retransmission flag. The slave data transmitter / receiver 1 for determining and transmitting the content of the response data 6 based on the result and recording the transmitted content
0 and a command execution unit 11 that executes the content of the command unit 5 received based on the result determined by the slave data transmission / reception unit 10.
【0014】図2は図1のデータ通信方式の動作を説明
するためのタイムチャート図である。FIG. 2 is a time chart for explaining the operation of the data communication system of FIG.
【0015】図2を図1と共に参照して、マスタ局1は
最初のコマンドデータ12を再送フラグ部4に再送フラ
グを立てないで(即ち、再送フラグ=0として)送出す
る。Referring to FIG. 2 together with FIG. 1, the master station 1 sends the first command data 12 to the retransmission flag unit 4 without setting a retransmission flag (that is, with retransmission flag = 0).
【0016】これを受信したスレーブ局2は、スレーブ
データ送受信部10においてコマンド部5に誤りがない
かどうかをチェックする。この結果コマンド部5に誤り
が発見された場合、スレーブデータ送受信部10ではコ
マンド実行部11に対しコマンド部5の内容を実行しな
いように指示し、マスタ局1に対し送出するレスポンス
データ13の中の誤りフラグ部4に誤りフラグを立てて
(即ち、誤りフラグ=1として)送出するとともにレス
ポンスデータ13の内容を記録しておく。The slave station 2 which has received this checks whether or not there is an error in the command section 5 in the slave data transmitting / receiving section 10. If an error is found in the command section 5 as a result, the slave data transmitter / receiver section 10 instructs the command execution section 11 not to execute the contents of the command section 5, and the slave data transmission / reception section 10 sends the response data 13 to the master station 1. The error flag is set to the error flag section 4 (i.e., the error flag is set to 1) and transmitted, and the content of the response data 13 is recorded.
【0017】これを受信したマスタ局1は、マスタデー
タ送受信部9においてレスポンス部8に誤りがないかど
うかをチェックする。この結果レスポンス部8には誤り
が発見されなかったとすると、さらに誤りフラグ部7に
誤りフラグが立っているか、いないか(即ち、誤りフラ
グが1か0か)をチェックする。この結果レスポンスデ
ータ13の誤りフラグ部7に誤りフラグが立っているの
でマスタデータ送受信部9では、最初のコマンドデータ
12が正しくスレーブ局2に受信されなかったと認識し
て再送処理を開始し、最初のコマンドデータ12と全く
同じデータを再送フラグ部4に再送フラグを立てないで
スレーブ局2に送出する。The master station 1 having received this checks whether or not the response section 8 in the master data transmission / reception section 9 has an error. As a result, if no error is found in the response section 8, it is further checked whether or not the error flag is set in the error flag section 7 (that is, whether the error flag is 1 or 0). As a result, since an error flag is set in the error flag section 7 of the response data 13, the master data transmitting / receiving section 9 recognizes that the first command data 12 has not been correctly received by the slave station 2, and starts the resending process. The same data as the command data 12 is sent to the slave station 2 without setting the retransmission flag in the retransmission flag unit 4.
【0018】これを受信したスレーブ局2は、スレーブ
データ送受信部10においてコマンド部5に誤りがない
かどうかをチェックする。この結果今度はコマンドデー
タ12に誤りが発見されなかったとするとさらに再送フ
ラグ部4に再送フラグが立っているかどうかをチェック
する。その結果再送フラグ部4に再送フラグは立ってい
ないので、スレーブデータ送受信部10では新規のコマ
ンドを正常に受信したと認識しコマンド実行部11に対
し実行するよう指示して、誤りフラグ7を立てずに(即
ち、誤りフラグ=0として)レスポンスデータ14をマ
スタ局1に対して送出するとともにその内容を記録して
おく。スレーブデータ送受信部10からコマンド実行の
指示を受けたコマンド実行部11では受信したコマンド
データ12に含まれるコマンド部5の内容に従ってコマ
ンドを実行する。The slave station 2 which has received this checks whether or not there is an error in the command section 5 in the slave data transmitting / receiving section 10. As a result, if no error is found in the command data 12 this time, it is further checked whether or not the retransmission flag is set in the retransmission flag unit 4. As a result, since the retransmission flag is not set in the retransmission flag unit 4, the slave data transmission / reception unit 10 recognizes that the new command is normally received, instructs the command execution unit 11 to execute the command, and sets the error flag 7. Instead (that is, with error flag = 0), the response data 14 is sent to the master station 1 and the content thereof is recorded. The command execution unit 11 that has received the command execution instruction from the slave data transmission / reception unit 10 executes the command according to the contents of the command unit 5 included in the received command data 12.
【0019】レスポンスデータ14を受信したマスタ局
1は、マスタデータ送受信部9においてレスポンス部8
に誤りがないかどうかをチェックする。この結果誤りが
発見されたとすると、マスタデータ送受信部9はスレー
ブ局2からレスポンスデータ14を再度送信してもらう
ことが必要であると判断し、コマンドデータ15の再送
フラグ部4に再送フラグを立てて(即ち、再送フラグ=
1として)スレーブ局2へ送出する。The master station 1 which has received the response data 14 has the response section 8 in the master data transmission / reception section 9.
Check if there is no mistake. If an error is found as a result, the master data transmitting / receiving unit 9 determines that the slave station 2 needs to retransmit the response data 14, and sets a retransmission flag in the retransmission flag unit 4 of the command data 15. (That is, resend flag =
(As 1) to slave station 2.
【0020】これを受信したスレーブ局2は、スレーブ
データ送受信部10においてコマンド部5に誤りがない
かどうかをチェックする。この結果、誤りは発見されな
かったとすると、再送フラグ部4に再送フラグが立って
いるかどうかをチェックする。その結果再送フラグが立
っているのでスレーブデータ送受信部10はいま現在記
録している最後に送出したレスポンスデータ14を再度
送出すればよいと判断し、コマンド実行部11にはコマ
ンドを実行しないように指示し、前回送出したレスポン
スデータ14と同じものをマスタ局1に送出する。コマ
ンド実行部11は、スレーブデータ送受信部10からコ
マンドを実行しないよう指示されたので、コマンド実行
は行わない。The slave station 2 having received this checks whether or not there is an error in the command section 5 in the slave data transmitting / receiving section 10. As a result, if no error is found, it is checked whether the retransmission flag is set in the retransmission flag unit 4. As a result, since the resend flag is set, the slave data transmitter / receiver unit 10 judges that the last transmitted response data 14 currently recorded should be sent again, and the command execution unit 11 should not execute the command. The master station 1 sends the same data as the previously sent response data 14 to the master station 1. Since the command execution unit 11 is instructed by the slave data transmission / reception unit 10 not to execute the command, the command execution unit 11 does not execute the command.
【0021】これを受信したマスタ局1は、レスポンス
部8にデータ誤りがあるかどうかをチェックする。この
結果データ誤りがなかったとすると、さらに誤りフラグ
部7に誤りフラグが立っているかどうかをチェックす
る。その結果誤りフラグは立っていないので、レスポン
ス部8の内容を引き取って正常に送受信を終了する。The master station 1 having received this checks whether or not the response section 8 has a data error. As a result, if there is no data error, it is further checked whether or not the error flag is set in the error flag section 7. As a result, since the error flag is not set, the contents of the response part 8 are taken and the transmission / reception ends normally.
【0022】[0022]
【発明の効果】本発明を用いれば、マスタ局とスレーブ
局の間にデータの誤りが発生した場合でも、かならず何
等かのレスポンスが帰って来るため、精度の高いエラー
処理を行うことができるので、大幅なスループットの低
下を防ぐことができる。According to the present invention, even if a data error occurs between the master station and the slave station, some kind of response always comes back, so that highly accurate error processing can be performed. It is possible to prevent a significant decrease in throughput.
【0023】また、コマンドデータに再送フラグをもう
けたため、スレーブ側で新規のコマンドか再送のコマン
ドかを認識することができるので、コマンド実行の重複
を防ぐことができる。Since the command data is provided with a resend flag, the slave side can recognize whether it is a new command or a resend command, so that duplication of command execution can be prevented.
【図1】本発明の一実施例によるデータ通信方式の構成
図。FIG. 1 is a configuration diagram of a data communication system according to an embodiment of the present invention.
【図2】図1の実施例の動作を説明するためのタイムチ
ャート図である。FIG. 2 is a time chart diagram for explaining the operation of the embodiment of FIG.
1 マスタ局 2 スレーブ局 3 コマンドデータ 4 再送フラグ部 5 コマンド部 6 レスポンスデータ 7 誤りフラグ部 8 レスポンス部 9 マスタデータ送受信部 10 スレーブデータ送受信部 11 コマンド実行部 12 再送フラグが立っていないコマンドデータ 13 誤りフラグが立っているレスポンスデータ 14 誤りフラグの立っていないレスポンスデータ 15 再送フラグの立っているコマンドデータ 1 Master station 2 Slave station 3 Command data 4 Retransmission flag section 5 Command section 6 Response data 7 Error flag section 8 Response section 9 Master data transmission / reception section 10 Slave data transmission / reception section 11 Command execution section 12 Command data with no retransmission flag 13 Response data with error flag 14 Response data without error flag 15 Command data with resend flag
Claims (2)
局からスレーブ局に送信されるコマンド部を有するコマ
ンドデータと、それに対してスレーブ局からマスタ局に
送信されるレスポンス部を有するレスポンスデータとを
やりとりするデータ通信方式において、 マスタ局は、前記コマンド部と再送フラグ部とを有する
コマンドデータを送信し;スレーブ局は、前記レスポン
ス部と誤りフラグ部とを有するレスポンスデータを送信
し;マスタ局は、処理開始時、前記再送フラグ部に再送
フラグを立てずにコマンドデータを送信し、受信したレ
スポンスデータのレスポンス部に誤りがあった場合は、
前記再送フラグ部に再送フラグを立ててコマンドデータ
を送信し、反対にレスポンス部に誤りがなくかつ前記誤
りフラグ部に誤りフラグが立っていた場合は、前記再送
フラグ部に再送フラグを立てずにコマンドデータを送信
し、レスポンス部に誤りがなくかつ前記誤りフラグ部に
誤りフラグが立っていなかった場合は通信終了する機能
を有し;スレーブ局は、受信したコマンドデータのコマ
ンド部に誤りがあった場合、コマンド部の内容は実行せ
ず前記誤りフラグ部に誤りフラグを立ててレスポンスデ
ータを送信し、コマンド部に誤りがなくかつ前記再送フ
ラグ部に再送フラグが立っていなかった場合、コマンド
部の内容を実行して前記誤りフラグ部に誤りフラグを立
てないでレスポンスデータを送信し、コマンド部に誤り
がなくかつ前記再送フラグ部に再送フラグが立っていた
場合、コマンド部の内容を実行せずにその時点で最後に
送信したレスポンスデータと同じレスポンスデータを送
信する機能を有することを特徴とするデータ通信方式。1. Command data having a command part transmitted from the master station to the slave station between the master station and the slave station, and response data having a response part transmitted from the slave station to the master station in response thereto. In the data communication method of exchanging data with the master station, the master station transmits command data having the command section and the retransmission flag section; the slave station transmits response data having the response section and the error flag section; At the start of processing, the station transmits command data without setting a retransmission flag in the retransmission flag section, and if there is an error in the response section of the received response data,
If command data is transmitted with the retransmission flag set in the retransmission flag section, and conversely, there is no error in the response section and an error flag is set in the error flag section, the retransmission flag is not set in the retransmission flag section. It has a function of transmitting command data and ending communication when there is no error in the response part and no error flag is set in the error flag part; the slave station has an error in the command part of the received command data. In the case where the contents of the command part are not executed, the response data is transmitted by setting an error flag in the error flag part, and when there is no error in the command part and the retransmission flag is not set in the retransmission flag part, the command part The response data is transmitted without executing the contents of the above and the error flag is not set in the error flag part, and the command part has no error and If the retransmission flag stood flag unit, data communication system characterized by having a function of transmitting the same response data and response data transmitted last at that time without executing the contents of the command unit.
局からスレーブ局に送信されるコマンド部を有するコマ
ンドデータと、それに対してスレーブ局からマスタ局に
送信されるレスポンス部を有するレスポンスデータとを
やりとりするデータ通信方式において、 マスタ局は、前記コマンド部と再送フラグ部とを有する
コマンドデータを送信するマスタデータ送受信部を有
し;スレーブ局は、前記レスポンス部と誤りフラグ部と
を有するレスポンスデータを送信するスレーブデータ送
受信部と、コマンド実行部とを有し;前記マスタデータ
送受信部は、処理開始時、前記再送フラグ部に再送フラ
グを立てずにコマンドデータを送信し、受信したレスポ
ンスデータのレスポンス部に誤りがあった場合は、前記
再送フラグ部に再送フラグを立ててコマンドデータを送
信し、反対にレスポンス部に誤りがなくかつ前記誤りフ
ラグ部に誤りフラグが立っていた場合は、前記再送フラ
グ部に再送フラグを立てずにコマンドデータを送信し、
レスポンス部に誤りがなくかつ前記誤りフラグ部に誤り
フラグが立っていなかった場合は通信終了する機能を有
し;前記スレーブデータ送受信部は、受信したコマンド
データのコマンド部に誤りがあった場合、コマンド部の
内容を前記コマンド実行部に実行させずに前記誤りフラ
グ部に誤りフラグを立ててレスポンスデータを送信し、
コマンド部に誤りがなくかつ前記再送フラグ部に再送フ
ラグが立っていなかった場合、コマンド部の内容を前記
コマンド実行部に実行させて前記誤りフラグ部に誤りフ
ラグを立てないでレスポンスデータを送信し、コマンド
部に誤りがなくかつ前記再送フラグ部に再送フラグが立
っていた場合、コマンド部の内容を前記コマンド実行部
に実行させずにその時点で最後に送信したレスポンスデ
ータと同じレスポンスデータを送信する機能を有するこ
とを特徴とするデータ通信方式。2. Command data having a command section transmitted from the master station to the slave station, and response data having a response section transmitted from the slave station to the master station between the master station and the slave station. In the data communication system for exchanging data with the master station, the master station has a master data transmission / reception section for transmitting command data having the command section and a retransmission flag section; the slave station has the response section and an error flag section. It has a slave data transmission / reception unit for transmitting response data and a command execution unit; the master data transmission / reception unit transmits command data without setting a retransmission flag in the retransmission flag unit at the start of processing, and receives the received response. If there is an error in the response part of the data, set a resend flag in the resend flag part. Sends command data, when an error flag is standing and the error flag portion without error in the response unit Conversely, it sends command data without making a retransmission flag in the retransmission flag portion,
It has a function of terminating communication when there is no error in the response part and no error flag is set in the error flag part; the slave data transmitting / receiving part, when there is an error in the command part of the received command data, The response data is transmitted by setting an error flag in the error flag part without causing the command execution part to execute the contents of the command part,
When there is no error in the command section and the retransmission flag is not set in the retransmission flag section, the command execution section is caused to execute the contents of the command section and the response data is transmitted without setting the error flag in the error flag section. , If there is no error in the command part and the resend flag is set in the resend flag part, the same response data as the last sent response data is sent without causing the command execution part to execute the contents of the command part. A data communication method characterized by having a function to perform.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5071338A JP2536385B2 (en) | 1993-03-30 | 1993-03-30 | Data communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5071338A JP2536385B2 (en) | 1993-03-30 | 1993-03-30 | Data communication method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06284166A JPH06284166A (en) | 1994-10-07 |
| JP2536385B2 true JP2536385B2 (en) | 1996-09-18 |
Family
ID=13457625
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5071338A Expired - Lifetime JP2536385B2 (en) | 1993-03-30 | 1993-03-30 | Data communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2536385B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1018821A1 (en) * | 1999-01-08 | 2000-07-12 | TELEFONAKTIEBOLAGET L M ERICSSON (publ) | Communication device and method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63314934A (en) * | 1987-06-17 | 1988-12-22 | Fujitsu Ten Ltd | Data transfer system |
-
1993
- 1993-03-30 JP JP5071338A patent/JP2536385B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06284166A (en) | 1994-10-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4589111A (en) | Arq equipped data communication system | |
| US6081568A (en) | Method and system for automatic setting of optimum number of waiting frames in automatic repeat request protocol | |
| JP2901585B1 (en) | Radio communication system, and transmission device and reception device used for this system | |
| JP2536385B2 (en) | Data communication method | |
| JP2003186767A (en) | Opposite connection test method | |
| JPS6239964A (en) | Facsimile transmission system | |
| JPS58164346A (en) | Data communication method with shift down function | |
| US5896413A (en) | Apparatus for and method of transmitting data | |
| JPH06290130A (en) | Data communication controller | |
| JP3454264B2 (en) | Wireless communication system and wireless communication method | |
| JPH04253433A (en) | Data retransmission system | |
| JPS58105671A (en) | Transmission controlling system of facsimile | |
| JPH04274631A (en) | Data re-transmission system | |
| JPH05260125A (en) | Data transfer control system | |
| JPS63267039A (en) | network system | |
| JPH0336851A (en) | Data link communication control system | |
| JPH01295595A (en) | Separate air conditioner | |
| JPH08149153A (en) | Virtual buffer control system in relay computer | |
| JPH05336082A (en) | Detection of response data validity | |
| JPH05114987A (en) | Command transmitting system | |
| JPS60236533A (en) | Data communication equipment | |
| JPH05300132A (en) | Data transmitter | |
| JPH04129443A (en) | information exchange system | |
| JPH0837519A (en) | Wireless communication method | |
| JPS63268326A (en) | Wireless data transmission system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19960514 |