JP2615982B2 - Communication error recovery method and device - Google Patents

Communication error recovery method and device

Info

Publication number
JP2615982B2
JP2615982B2 JP1053109A JP5310989A JP2615982B2 JP 2615982 B2 JP2615982 B2 JP 2615982B2 JP 1053109 A JP1053109 A JP 1053109A JP 5310989 A JP5310989 A JP 5310989A JP 2615982 B2 JP2615982 B2 JP 2615982B2
Authority
JP
Japan
Prior art keywords
communication
communication control
slave
control device
status information
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 - Fee Related
Application number
JP1053109A
Other languages
Japanese (ja)
Other versions
JPH02233037A (en
Inventor
祥太郎 田中
雅夫 池崎
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1053109A priority Critical patent/JP2615982B2/en
Publication of JPH02233037A publication Critical patent/JPH02233037A/en
Application granted granted Critical
Publication of JP2615982B2 publication Critical patent/JP2615982B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は通信回線を介して相互に接続された通信制御
装置間での通信において発生した通信エラーに対する通
信エラー回復方法及びそれを実現するための装置に関す
るものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication error recovery method for a communication error occurring in communication between communication control apparatuses interconnected via a communication line, and an apparatus for realizing the method. It is about.

従来の技術 従来の通信網、例えばオーディオ、ビデオ機器間の情
報通信を行うためのドメスティック デジタル バス
(D2B:Domestic Digital Bus)(IEC「84(Secretaria
t)86 1、2 Draft−Domestic Digital Bus(D2
B)」)における通信網構成を第2図に示す。各通信制
御部とスレーブステータス情報部から構成され、各通信
制御装置は通信回線5を介して相互に接続されている。
通信制御部は通信回線5に対する通信フレームの送受信
を行う。送受信を行う通信フレームを第3図に示す。通
信フレームはスタートビット部を先頭にモードビット
部、マスターアドレス部、スレーブアドレス部、コント
ロールフィールド部、データフィールド部から構成され
る。スタートビット部は該通信フレームの先頭を示す。
モードビット部は該通信フレームのモードを示し、現在
mode0、mode1、mode2が定義されている。各モードによ
り通信フレームの伝送速度、及び最大伝送データバイト
数が異なり、高いモードの通信フレームを受信できる通
信制御装置はそれ以下のモードの通信フレームを受信で
きる。例えばmode2まで受信できる通信制御装置はmode
0、mode1の通信フレームを受信可能である。マスターア
ドレス部はマスターアドレスとパリティビットから構成
され、マスターアドレスは該通信フレームの送信元アド
レス、パリティビットはマスターアドレスのパリティ値
を示す。スレーブアドレス部はスレーブアドレスとパリ
ティビット、アックビットから構成され、スレーブアド
レスは該通信フレームの受信先アドレス、パリティビッ
トはスレーブアドレスのパリティ値、アックビットは該
通信フレームを受信した受信先通信制御装置が返答する
肯定/否定(ACK/NACK)応答を示す。受信先通信制御装
置内の通信制御部は通信フレームを正常に受信した場合
に各フィールドのアックビット部において肯定応答(AC
K)を返答する。コントロールフィールド部はコントロ
ールフィールド、パリティビット、及びアックビットか
ら構成され、コントロールフィールドは該通信フレーム
の属性、パリティビットはコントロールフィールドのパ
リティ値、アックビットは該通信フレームを受信した受
信先通信制御装置が返答する肯定/否定(ACK/NACK)応
答を示す。データフィールド部はデータ、Cont/EODビッ
ト、アックビットから構成され、データは該通信フレー
ムが送信すべきデータ、Cont/EODビットはデータフィー
ルド部の該データバイトが継続/最終バイトであるかど
うかを示し、パリティビットはデータ及びCont/EODビッ
トのパリティ値、アックビットは該通信フレームを受信
した受信先通信制御装置が返答する肯定/否定(ACK/NA
CK)応答を示す。コントロールフィールドが示す属性内
容を第5図に示す。コントロールフィールドは4ビット
のデータで構成され、書き込み動作と読み出し動作を行
うものに分けられる。書き込み動作は送信元通信制御装
置(以降マスターと称する)から受信先通信制御装置
(以降スレーブと称する)にデータを書き込む事を示
す。読み出し動作はマスターからスレーブのデータを読
み出す事を示す。スレーブステータス読み出しはスレー
ブにおけるユニットの状態情報であるスレーブステータ
ス情報の読み出し、データ読みだしはスレーブのデータ
を読み出す事を示す。ロックアドレスの読み出しはスレ
ーブが他のマスターにロックされている時、ロックを行
っているマスターのユニットアドレスを読み出す時に使
用する。ロック動作については後述する。メモリアドレ
スの書き込みはマスターからスレーブに対してメモリア
ドレスを書き込む事を示す。コマンド書き込みはマスタ
ーからスレーブに対しコマンドの書き込みを、データ書
き込みはマスターからスレーブに対しデータの書き込み
を行うことをそれぞれ示す。各CF(Control Field)は
ロック動作が規定されており、ロック動作を行わない場
合はロック無し、ロックを行う場合はロック、ロック動
作を解除する場合はロック解除と示す。ここでロック動
作について説明する。第6図にロック動作についての通
信シーケンスを示す。通信制御装置11aはフレーム送信
(a)(CF=コマンド書き込み+ロック)を通信制御装
置11bに対して行う。このフレームを受信した通信制御
装置11bは通信制御装置11aに対して被ロック状態にな
る。この場合通信制御装置11bは通信制御装置11a以外の
通信フレームを受信しない状態になる。従ってこの時通
信制御装置11cが通信制御装置11bに対してフレーム送信
(b)(CF=コマンド書き込み+ロック)を行った場
合、この通信フレーム(b)は受信されない。通信制御
装置11aが通信制御装置11bに対してフレーム送信(c)
(CF=コマンド書き込み+ロック解除)を行うと、通信
制御装置11bはロックが解除され、通信制御装置11cが次
に通信制御装置11bに対してフレーム送信(d)を行っ
た場合、この通信フレームを通信制御装置11bは受信す
る事ができる。スレーブステータス情報部に格納されて
いるスレーブステータス情報は各通信制御装置の状態を
示し、その内容を第4図に示す。b0のスレーブ送信バッ
ファ状態は通信制御装置のスレーブ側送信バッファ状態
がempty/mot emptyを示す。b1のスレーブ受信バッファ
状態は通信制御装置のスレーブ側受信バッファ状態がem
pty/not emptyを示す。b2のユニットのロック状態は該
通信制御装置が他の通信制御装置によってロックされて
いるかどうかを示す。b3のメモリアドレスのインプリメ
ント状態は通信制御装置にメモリがインプリメントされ
ているかどうかを示す。b4のスレーブトランスミッタ部
状態はスレーブ側がデータの送信を行う事が出来るかど
うかを示す。b6、b7のモード状態は該通信制御装置が送
受信できる最上位フレームモードを示す。第2図におい
て各通信制御装置が通信回線5を介して通信を行った場
合、受信先通信制御装置(スレーブ)の状態、即ちスレ
ーブステータス状態により特定の通信フレームしか通信
出来ない場合がある。スレーブは正常に受信できた、あ
るいは該通信フレームのデータが受信可能なものであれ
ば通信フレームの各フィールド部において肯定(ACK)
応答をマスターに対して返答する。例えばスレーブ側で
受信した通信フレームのスレーブアドレス値が該通信制
御装置のユニットアドレス値と一致しない場合、即ち自
動通信制御装置宛でない通信フレームを受信した場合は
アドレスフィールド部において否定応答(NACK)を返答
する。ここでは1つの通信フレームの各フィールドにお
いて否定応答(NACK)が発生し、正常に通信が終了しな
かった場合に通信エラーが発生したと称する。スレーブ
側でのエラー発生条件について第7図に示す。ここでは
NACK(否定応答)発生部、及びそのエラー要因とその時
の通信フレームでの適用CFを示したものである。タイミ
ングエラー1)、4)、10)はフレーム受信時に受信タ
イミングにエラーが発生した場合を示す。モードが高い
2)はスレーブで受信できるモードより高いモードの通
信フレームを受信した場合を示す。スレーブ無し/down
3)の場合は明らかに受信動作が不可能である。locking
エラー5)はスレーブがロックされている時、ロックを
行っているマスター以外のマスターが通信を行った場合
に発生する。スレーブが受信バッファfull6)、11)、
送信バッファempyu7)の場合、スレーブ送信部disable
8)、メモリ無し9)の場合も各CF値を有する通信フレ
ームを受信した場合に通信エラーが発生する。第2図に
おける通信網においては以上のような通信エラーが発生
した場合にどのようにその通信エラーから回復するかの
手順及び機能が規定されておらず、通信エラーが発生し
た場合に同じ通信フレームを再送するしか方法がなかっ
た。
2. Description of the Related Art Domestic Digital Bus (D2B: Domestic Digital Bus) (IEC 84 (Secretaria
t) 86 1, 2 Draft-Domestic Digital Bus (D2
FIG. 2 shows the communication network configuration in B))). Each communication control unit is composed of a communication control unit and a slave status information unit. The communication control devices are connected to each other via a communication line 5.
The communication control unit transmits and receives a communication frame to and from the communication line 5. FIG. 3 shows a communication frame for transmission and reception. The communication frame includes a mode bit part, a master address part, a slave address part, a control field part, and a data field part with the start bit part at the head. The start bit part indicates the head of the communication frame.
The mode bit indicates the mode of the communication frame, and
mode0, mode1, and mode2 are defined. The transmission speed of the communication frame and the maximum number of transmission data bytes differ depending on each mode, and the communication control device that can receive the communication frame of the higher mode can receive the communication frame of the lower mode. For example, the communication control device that can receive up to mode 2 is mode
0, mode1 communication frames can be received. The master address section includes a master address and a parity bit. The master address indicates a source address of the communication frame, and the parity bit indicates a parity value of the master address. The slave address portion is composed of a slave address, a parity bit, and an ack bit, the slave address is a destination address of the communication frame, the parity bit is a parity value of the slave address, and the ack bit is a destination communication control device that has received the communication frame. Indicates an affirmative / negative (ACK / NACK) response. When the communication control unit in the destination communication control device receives the communication frame normally, the communication control unit acknowledges in the ACK bit part of each field (AC
K). The control field portion is composed of a control field, a parity bit, and an ack bit, the control field is an attribute of the communication frame, the parity bit is a parity value of the control field, and the ack bit is a communication control device that has received the communication frame. Indicates a positive / negative (ACK / NACK) response. The data field portion is composed of data, a Cont / EOD bit, and an ack bit. The data is data to be transmitted by the communication frame, and the Cont / EOD bit is whether the data byte of the data field portion is a continuation / last byte. The parity bit indicates the parity value of the data and the Cont / EOD bit, and the ack bit indicates the affirmative / negative (ACK / NA) returned by the destination communication control device that has received the communication frame.
CK) Indicates a response. FIG. 5 shows the attribute contents indicated by the control field. The control field is made up of 4-bit data, and is divided into those that perform a write operation and a read operation. The write operation indicates that data is written from a source communication control device (hereinafter referred to as a master) to a destination communication control device (hereinafter referred to as a slave). The read operation indicates that data of the slave is read from the master. Slave status reading indicates reading of slave status information which is state information of a unit in the slave, and data reading indicates reading of slave data. The reading of the lock address is used when the slave is locked by another master and when reading the unit address of the locking master. The locking operation will be described later. The writing of the memory address indicates that the memory address is written from the master to the slave. Command writing indicates that a command is written from the master to the slave, and data writing indicates that data is written from the master to the slave. Each CF (Control Field) specifies a lock operation. When no lock operation is performed, there is no lock, when lock is performed, lock is performed, and when lock operation is released, lock is released. Here, the lock operation will be described. FIG. 6 shows a communication sequence for the lock operation. The communication control device 11a performs frame transmission (a) (CF = command writing + lock) to the communication control device 11b. Upon receiving this frame, the communication control device 11b is locked with respect to the communication control device 11a. In this case, the communication control device 11b enters a state in which it does not receive a communication frame other than the communication control device 11a. Accordingly, at this time, if the communication control device 11c performs frame transmission (b) (CF = command writing + lock) to the communication control device 11b, the communication frame (b) is not received. The communication control device 11a transmits a frame to the communication control device 11b (c)
When (CF = command writing + unlocking) is performed, the communication control device 11b is unlocked, and when the communication control device 11c next performs frame transmission (d) to the communication control device 11b, this communication frame Can be received by the communication control device 11b. The slave status information stored in the slave status information section indicates the state of each communication control device, and the contents are shown in FIG. The slave transmission buffer status of b0 indicates that the slave transmission buffer status of the communication control device is empty / mot empty. The slave receive buffer status of b1 is em on the slave receive buffer status of the communication control device.
Indicates pty / not empty. The lock state of the unit b2 indicates whether the communication control device is locked by another communication control device. The implementation state of the memory address of b3 indicates whether the memory is implemented in the communication control device. The slave transmitter state of b4 indicates whether the slave side can transmit data. The mode state of b6 and b7 indicates the highest frame mode in which the communication control device can transmit and receive. In FIG. 2, when each communication control device communicates via the communication line 5, only a specific communication frame may be able to communicate depending on the state of the destination communication control device (slave), that is, the slave status state. If the slave was able to receive normally or if the data of the communication frame was receivable, affirmative (ACK) in each field part of the communication frame
Reply the response to the master. For example, if the slave address value of the communication frame received on the slave side does not match the unit address value of the communication control device, that is, if a communication frame not addressed to the automatic communication control device is received, a negative acknowledgment (NACK) is received in the address field portion. reply. Here, when a negative acknowledgment (NACK) is generated in each field of one communication frame and the communication does not end normally, it is called that a communication error has occurred. FIG. 7 shows an error occurrence condition on the slave side. here
It shows a NACK (negative acknowledgment) generator, its error factor, and the applied CF in the communication frame at that time. Timing errors 1), 4) and 10) show cases where an error has occurred in the reception timing at the time of frame reception. The higher mode 2) indicates a case where a communication frame in a mode higher than the mode that can be received by the slave is received. No slave / down
In the case of 3), the receiving operation is obviously impossible. locking
Error 5) occurs when a slave is locked and a master other than the locking master communicates. Slave receives buffer full6), 11),
In the case of transmission buffer empyu7), slave transmission unit disable
In the case of 8) and no memory 9), a communication error occurs when a communication frame having each CF value is received. In the communication network shown in FIG. 2, the procedure and function of how to recover from the communication error when the above-described communication error occurs are not specified, and the same communication frame is used when the communication error occurs. There was no other way but to resend.

発明が解決しようとする課題 しかしながら上記従来の方法においては例えば相手ス
レーブがdownして通信エラーが発生した場合には、通信
フレームの再送を行ってもその動作は無駄であり、通信
回線上の伝送効率を下げるという課題を有していた。
However, in the above-mentioned conventional method, for example, when a communication error occurs due to the down of the partner slave, even if the communication frame is retransmitted, the operation is useless, and the transmission on the communication line is useless. There was a problem of reducing efficiency.

本発明はこのような課題に対して効果的にエラー回復
を行う通信エラー回復方法及びそれに用いる装置を提供
することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a communication error recovery method for effectively recovering such a problem and a device used for the method.

課題を解決するための手段 上記課題を解決すために、本発明は、通信制御装置と
して通信回線を介して通信を行う機能を有する通信制御
部と、スレーブステータス情報を格納するスレーブステ
ータス情報部と、通信の管理を行う通信管理部とを備え
たものを用い、任意の通信制御装置Aが前記通信回線を
介して他の通信制御装置Bに対して通信を行った時に通
信エラーが発生した場合、送信元の通信制御装置A内の
通信管理部A1は受信先の通信制御装置B内の通信管理部
B1に対して前記通信回線及び前記各通信制御装置A,B内
の通信制御部A2,B2を介して通信フレームにより通信制
御装置B内のスレーブステータス情報部B3から当該通信
制御装置Bの状態を示すスレーブステータス情報の読み
出しを行い、前記通信管理部A1は前記読み出したスレー
ブステータス情報の内容から判断して、その内容に対応
した処理を前記通信制御部A2に対して行い、通信エラー
回復を図るようにしている。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a communication control unit having a function of performing communication via a communication line as a communication control device, and a slave status information unit for storing slave status information. When a communication error occurs when an arbitrary communication control device A communicates with another communication control device B via the communication line using a device having a communication management unit for managing communication The communication manager A1 in the source communication controller A is the communication manager in the destination communication controller B.
The status of the communication control device B from the slave status information unit B3 in the communication control device B by a communication frame via the communication line and the communication control units A2 and B2 in the communication control devices A and B with respect to B1. The communication management unit A1 reads the slave status information indicated by the communication unit A1, and judges from the content of the read slave status information, performs a process corresponding to the content to the communication control unit A2, and recovers a communication error. Like that.

作 用 本発明は上記構成により、例えば相手スレーブがdown
しているために通信エラーが発生した場合には相手スレ
ーブの状態を通信回線を介して読み出し相手スレーブが
downしている事を検出する事により、その時点でフレー
ムの再送を行っても無駄であると判断してフレーム再送
動作を停止するため、通信回線上の伝送効率を下げるこ
となく効果的なエラー回復が行える。
According to the present invention, for example, when the partner slave is down
If a communication error occurs due to communication, the status of the other slave is read out via the communication line and the other
By detecting that the frame is down, it is judged that it is useless even if the frame is retransmitted at that time, and the frame retransmission operation is stopped. Therefore, an effective error without reducing the transmission efficiency on the communication line You can recover.

実施例 第1図は本発明の1実施例における通信網構成を示
す。第1図において1a、1b、1cは通信回線5を介して相
互に接続されている通信制御装置、2a、2b、2cは通信回
線5を介して他の通信制御装置の通信制御部との通信を
行う通信制御部、3a、3b、3cは通信エラー発生時にエラ
ー回復処理の管理を行い、必要に応じて通信制御部に対
して通信フレームの送受信を行う通信管理部、4a、4b、
4cは各通信制御装置の状態情報であるスレーブステータ
ス情報の管理を行うスレーブステータス情報部である。
通信管理部で行われるエラー回復処理シーケンスを第8
図(a)、(b)、(c)、(d)、(e)に示す。こ
の内容について図面に基づいて説明する。第8図(a)
についてまず最初にフレームの送信を行う。この送信が
成功したかどうかを判定し、成功したと判断した場合、
次に未送信データが有るかどうかを判定する。まだ送信
すべきデータが残っている場合は未送信データ分を送信
し、未送信データの確認と送信を最大3回繰り返す。3
回の再送動作のうちですべてのデータが送信できた場合
は“正常終了”という復帰情報とともに処理を抜ける。
しかし3回の再送動作を行ってもすべてのデータが送信
できなかった場合は“タイミングエラー”という復帰情
報と共に処理を抜ける。最初の送信結果の判定で送信が
失敗した、と判断した場合は次に相手スレーブに対して
スレーブステータスの読み出しを行う。スレーブステー
タス読み出だしに失敗した場合、その送信失敗がアドレ
スフィールドにおいてNACKが発生したものかどうかを判
定し、そうであればモードを下げ、そうでなければその
ままのモードで最大3回までスレーブステータスの読み
出しと送信結果の判定を繰り返す。3回の再送のうちで
送信が成功しなかった場合、その再送フレームのうち1
つでもアドレスフィールドにおいてACKビットが発生し
た場合は“タイミングエラー”という復帰情報と共に処
理を抜ける。しかし全再送フレームにおいて1つのACK
ビットも発生しなかった場合は“スレーブ無し/down"の
復帰情報と共に処理を抜ける。スレーブステータス読み
出しに成功した場合は第8図(b)に続く。第8図
(b)において読みだしたスレーブステータスからスレ
ーブの受信可能なフレームモードと送信した送信フレー
ムとのモードを比較し、送信フレームのモードが適切か
どうかを判定し、適切でない場合、例えばmode0までし
か通信フレームを受信できないスレーブに対してmode1
のフレームを送信しようとした場合はモードを下げる。
次に送信フレームのCF=RD+lk、あるいはRD+ulkの場
合、さきに読み出したスレーブステータス情報の内容か
らまずスレーブトランスミッタ部disabluかどうかを判
定し、そうであれば“スレーブトランスミッタ部disabl
e"という復帰情報とともに処理を抜ける。次にスレーブ
ステータス情報の内容からスレーブ送信バッファempty
かどうかを判定し、そうであれば“スレーブ送信バッフ
ァempty"という復帰情報と共に処理を抜ける。そうでな
ければさらにスレーブステータス情報から相手スレーブ
が被ロック状態かどうかを判定し、そうでなければ第8
図(d)に続く。相手スレーブが被ロック状態であれば
まず相手スレーブに対してロックを行っているマスター
のアドレス値を示すロックアドレスの読み出しを通信回
路を介して送信する。ロックアドレスの読み出しに失敗
すると最大3回まで読み出しフレームを送信し、そべて
失敗した場合は“タイミングエラー”の復帰情報と共に
処理を抜ける。ロックアドレスの読み出しに成功する
と、読み出したロックアドレスと自ユニットアドレスと
の比較をして一致すれば第8図(d)の処理に続き、一
致しなければ“lockingエラー”の復帰情報と共に処理
を抜ける。送信フレームのCF=RD+lk、RD+ulkでなけ
れば第8図(c)に続く。第8図(c)において送信フ
レームのCF=WD+lk、WD+ulk、WC+lk、WC+ulkの場
合、先に読み出したスレーブステータス情報からスレー
ブの受信バッファがfullかどうかを判定し。そうであれ
ば“受信バッファfull"の復帰情報と共に背負いを抜け
る。スレーブステータス情報から相手スレーブが被ロッ
ク状態であれば相手スレーブからロックアドレスの読み
出しを行い、送信成功するまで最大3回再送を行う。再
送3回行っても送信に成功しなければ“タイミングエラ
ー”という復帰情報と共に処理を抜ける。ロックアドレ
スの読み出しに成功した場合は、読み出したロックアド
レスと自ユニットアドレスとの比較を行い、一致しなけ
れば“lockingエラー”の復帰情報と共に処理を抜け
る。一致すれば第8図(e)の処理に続く。送信フレー
ムCF=WD+lk、WD+ulk、WC+lk、WC+ulkでない場合は
第8図(d)の処理に続く。第8図(d)においてまず
送信フレームのCF=WMA+lkであれば先に読みだしたス
レーブステータス情報からスレーブの受信バッファがfu
llかどうかを判定し、そうであれば“受信バッファful
l"の復帰情報と共に処理を抜ける。スレーブステータス
情報から相手スレーブが被ロック状態であれば相手スレ
ーブからロックアドレスの読み出しを行い、送信成功す
るまで最大3回再送を行う。再送3回を行っても送信に
成功しなければ“タイミングエラー”という復帰情報と
共に処理を抜ける。ロックアドレスの読み出しに成功し
た場合は、読み出したロックアドレスと自ユニットアド
レスとの比較を行い、一致しなければ“lockingエラ
ー”の復帰情報と共に処理を抜ける。一致すればさらに
スレーブステータス情報から相手スレーブにメモリが存
在するかどうかを判定し、メモリが有る場合は第8図
(e)に続き、メモリが無い場合は“メモリ無し”の復
帰情報と共に処理を抜ける。送信フレームのCF=WMA+l
kでない場合は第8図(e)の処理に続く。第8図
(e)の処理においてまずフレームの送信を行い、送信
が失敗した場合は最大3回まで再送を行う。3回の再送
で送信が成功しなかった場合は“タイミングエラー”の
復帰情報と共に処理を抜ける。送信に成功すると未送信
データが有るかどうかを判定し、あれば未送信分のデー
タを最大3回まで再送する。3回の再送でまだ未送信デ
ータが存在する場合は“タイミングエラー”の復帰情報
と共に処理を抜ける。すべてのデータが送信できた場合
は“正常終了”の復帰情報と共に処理を終了する。
Embodiment FIG. 1 shows the configuration of a communication network according to an embodiment of the present invention. In FIG. 1, reference numerals 1a, 1b, and 1c denote communication control devices connected to each other via a communication line 5, and reference numerals 2a, 2b, and 2c denote communication with communication control units of other communication control devices via the communication line 5. The communication control unit, 3a, 3b, 3c performs error recovery processing management when a communication error occurs, and the communication management unit, 4a, 4b, which transmits and receives a communication frame to and from the communication control unit as necessary.
Reference numeral 4c denotes a slave status information section that manages slave status information that is state information of each communication control device.
The error recovery processing sequence performed by the communication
Figures (a), (b), (c), (d), and (e) show. This will be described with reference to the drawings. Fig. 8 (a)
First, a frame is transmitted. It determines whether this transmission was successful, and if it was successful,
Next, it is determined whether or not there is untransmitted data. If data to be transmitted still remains, the untransmitted data is transmitted, and confirmation and transmission of the untransmitted data are repeated up to three times. 3
If all the data can be transmitted in the retransmission operations, the process exits with return information of "normal termination".
However, if all data has not been transmitted even after performing the retransmission operation three times, the process exits with return information of "timing error". When it is determined that the transmission has failed in the first determination of the transmission result, the slave status is read out to the partner slave next. If reading the slave status fails, determine whether the transmission failure was due to a NACK in the address field. If so, lower the mode. Otherwise, check the slave status up to three times in the same mode. The reading and the determination of the transmission result are repeated. If the transmission is not successful in the three retransmissions, one of the retransmission frames
If any ACK bit occurs in the address field, the process exits with return information of "timing error". However, one ACK for all retransmission frames
If no bit is generated, the process exits with return information of "no slave / down". If the slave status reading is successful, the process continues to FIG. 8 (b). From the slave status read in FIG. 8 (b), the mode of the frame that can be received by the slave and the mode of the transmitted transmission frame are compared to determine whether the mode of the transmission frame is appropriate. Mode1 for slaves that can only receive communication frames up to
If you try to send a frame, lower the mode.
Next, when CF = RD + lk or RD + ulk of the transmission frame, it is first determined from the content of the slave status information read earlier whether or not the slave transmitter is disablu, and if so, the “slave transmitter disabl”
The process exits with return information "e". Next, the slave transmission buffer is empty based on the contents of the slave status information.
Then, the process exits with return information “slave transmission buffer empty”. If not, it is further determined from the slave status information whether or not the partner slave is in the locked state.
It continues to figure (d). If the other slave is in the locked state, first, a read of a lock address indicating the address value of the master locking the other slave is transmitted via the communication circuit. If the reading of the lock address fails, the read frame is transmitted up to three times at maximum, and if all fail, the process exits with the return information of the "timing error". If the read of the lock address is successful, the read lock address is compared with its own unit address, and if they match, the process follows the process of FIG. 8D. If they do not match, the process is performed together with the "locking error" return information. Exit. If CF = RD + lk or RD + ulk of the transmission frame, the process continues to FIG. 8 (c). In the case of CF = WD + lk, WD + ulk, WC + lk, WC + ulk of the transmission frame in FIG. 8 (c), it is determined from the previously read slave status information whether or not the reception buffer of the slave is full. If so, the process goes out of the shoulder with the return information of "reception buffer full". If the partner slave is locked from the slave status information, the lock address is read from the partner slave and retransmitted up to three times until the transmission succeeds. If the transmission is not successful even after three retransmissions, the process exits with the return information of "timing error". If the reading of the lock address is successful, the read lock address is compared with the own unit address, and if they do not match, the process exits with the "locking error" return information. If they match, the process of FIG. 8 (e) is continued. If the transmission frame CF is not WD + lk, WD + ulk, WC + lk, or WC + ulk, the processing continues to the processing in FIG. In FIG. 8 (d), if CF = WMA + lk of the transmission frame, the slave reception buffer reads fu from the slave status information read earlier.
ll, and if so, “Receive buffer full
The process exits with the return information of l ". If the slave is locked from the slave status information, the lock address is read from the slave and retransmitted up to three times until the transmission succeeds. If the lock address is not successfully transmitted, the process exits with the return information of “timing error.” If the lock address is successfully read, the read lock address is compared with the unit address, and if not, the “locking error” is detected. If it matches, it is further determined from the slave status information whether or not the partner slave has a memory. If there is a memory, the process continues to FIG. 8 (e). The process exits with the return information of "no memory". CF of transmission frame = WMA + l
If it is not k, the process continues to the process in FIG. In the process of FIG. 8 (e), the frame is transmitted first, and if the transmission fails, retransmission is performed up to three times. If the transmission is not successful after three retransmissions, the process exits with the return information of "timing error". If the transmission is successful, it is determined whether or not there is untransmitted data, and if so, the untransmitted data is retransmitted up to three times. If there is still untransmitted data after three retransmissions, the process exits with return information of “timing error”. If all data has been transmitted, the process ends with return information of “normal end”.

発明の効果 以上のように本発明によれば、通信エラーが発生した
場合に通信回線上の伝送効率を下げずに効果的なエラー
回復が行えるため実用上極めて有効である。
Effects of the Invention As described above, according to the present invention, when a communication error occurs, an effective error recovery can be performed without lowering the transmission efficiency on the communication line, which is extremely practical in practice.

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

第1図は本発明のエラー回復手順が適用される通信シス
テムの1実施例を示す構成図、第2図は従来の通信シス
テムの1例を示す構成図、第3図は通信回線上で示され
る通信フレームフォーマットの1実施例を示す構成図、
第4図はスレーブステータス情報の内容の1実施例を示
す構成図、第5図は通信フレームのコントロールフィー
ルドの内容の1実施例を示す構成図、第6図は通信制御
装置間でのクロック動作の1実施例を示す説明図、第7
図は通信エラー発生条件の1実施例を示す説明図、第8
図は本発明のエラー回復手順におけるマスター処理シー
ケンスの1実施例を示す構成図である。 1a、1b、1c……通信制御装置、2a、2b、2c……通信制御
部、3a、3b、3c……通信管理部、4a、4b、4c……スレー
ブステータス情報部、5……通信回線。
FIG. 1 is a block diagram showing one embodiment of a communication system to which the error recovery procedure of the present invention is applied, FIG. 2 is a block diagram showing one example of a conventional communication system, and FIG. 3 is shown on a communication line. FIG. 1 is a configuration diagram showing one embodiment of a communication frame format to be used.
FIG. 4 is a block diagram showing one embodiment of the contents of the slave status information, FIG. 5 is a block diagram showing one embodiment of the contents of the control field of the communication frame, and FIG. 6 is a clock operation between the communication control devices. FIG. 7 is an explanatory view showing one embodiment of the present invention, and FIG.
FIG. 14 is an explanatory diagram showing one embodiment of a communication error occurrence condition, and FIG.
FIG. 1 is a configuration diagram showing one embodiment of a master processing sequence in the error recovery procedure of the present invention. 1a, 1b, 1c: communication control device, 2a, 2b, 2c: communication control unit, 3a, 3b, 3c: communication management unit, 4a, 4b, 4c: slave status information unit, 5: communication line .

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】通信回線を介して通信を行う機能を有する
通信制御部と、スレーブステータス情報を格納するスレ
ーブステータス情報部と、通信の管理を行う通信管理部
とを備えた通信制御装置が複数個通信回線に接続されて
いる通信網において、任意の通信制御装置Aが前記通信
回線を介して他の通信制御装置Bに対して通信を行った
時に通信エラーが発生した場合、送信元の通信制御装置
A内の通信管理部A1は受信先の通信制御装置B内の通信
管理部B1に対して前記通信回線及び前記各通信制御装置
A,B内の通信制御部A2,B2を介して通信フレームにより通
信制御装置B内のスレーブステータス情報部B3から当該
通信制御装置Bの状態を示すスレーブステータス情報の
読み出しを行い、前記通信管理部A1は前記読み出したス
レーブステータス情報の内容から判断して、その内容に
対応した処理を前記通信制御部A2に対して行い、通信エ
ラー回復を図る事を特徴とする通信エラー回復方法。
1. A communication control device comprising: a communication control unit having a function of performing communication via a communication line; a slave status information unit for storing slave status information; and a communication management unit for managing communication. In a communication network connected to individual communication lines, if a communication error occurs when an arbitrary communication control device A communicates with another communication control device B via the communication line, a communication of a transmission source is performed. The communication management unit A1 in the control device A communicates the communication line and the communication control devices to the communication management unit B1 in the communication control device B of the receiving destination.
The communication control unit A reads the slave status information indicating the state of the communication control device B from the slave status information unit B3 in the communication control device B by a communication frame via the communication control units A2 and B2 in the communication control unit A. A1 is a communication error recovery method characterized by determining from the content of the read slave status information, performing a process corresponding to the content to the communication control unit A2, and recovering a communication error.
【請求項2】通信回線を介して通信を行う機能を有する
通信制御部、スレーブステータス情報を格納するスレー
ブステータス情報部、通信の管理を行う通信管理部を具
備し、前記通信制御部から前記通信回線を介して通信を
行い、その通信に失敗した場合、前記通信管理部は、受
信先通信制御装置内のスレーブステータス情報部からス
レーブステータス情報を通信回線並びに通信元及び受信
先の各通信制御部を介して読み出し、このスレーブステ
ータス情報の内容に対応した処理を通信制御部に対して
行い、通信エラーの回復を行うことを特徴とする通信制
御装置。
2. A communication control unit having a function of performing communication via a communication line, a slave status information unit for storing slave status information, and a communication management unit for managing communication. When communication is performed via a line and the communication fails, the communication management unit transmits slave status information from the slave status information unit in the destination communication control device to the communication line and each communication control unit of the communication source and the destination. A communication control unit for performing a process corresponding to the content of the slave status information to the communication control unit to recover a communication error.
JP1053109A 1989-03-06 1989-03-06 Communication error recovery method and device Expired - Fee Related JP2615982B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1053109A JP2615982B2 (en) 1989-03-06 1989-03-06 Communication error recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1053109A JP2615982B2 (en) 1989-03-06 1989-03-06 Communication error recovery method and device

Publications (2)

Publication Number Publication Date
JPH02233037A JPH02233037A (en) 1990-09-14
JP2615982B2 true JP2615982B2 (en) 1997-06-04

Family

ID=12933628

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1053109A Expired - Fee Related JP2615982B2 (en) 1989-03-06 1989-03-06 Communication error recovery method and device

Country Status (1)

Country Link
JP (1) JP2615982B2 (en)

Also Published As

Publication number Publication date
JPH02233037A (en) 1990-09-14

Similar Documents

Publication Publication Date Title
CA1155521A (en) Method and system for retransmitting incorrectly received numbered frames in a data transmission system
JPS5866448A (en) Error detecting system for exchange of packet
JPH0656994B2 (en) Checkpoint / frame number reduction method
WO1998012844A1 (en) Packet transmitter-receiver and packet receiver
JP2000076208A (en) Data transmitting and receiving device for executing data retransmission, and parallel processor system
JPH0720150B2 (en) Communication control method
JP4112717B2 (en) Data processing device
JP2615982B2 (en) Communication error recovery method and device
JPH08503353A (en) Communication bus systems and stations used in such systems
US7664863B2 (en) Data transferring method
JPH01834A (en) Full duplex communication method
JPS609240A (en) Communication controller
JP3217397B2 (en) Data transmission method of communication control device
JP3408495B2 (en) How to prevent double notification of retransmitted messages
US6711179B1 (en) Signal processing apparatus with three layer processing sections, and signal processing system with said two signal processing apparatuses
JP2759574B2 (en) Data transmission processing method and data transmission processing device
JPH11234347A (en) Buffer management method and system in data communication
JPH11298450A (en) Serial data transfer controller
JPH06112972A (en) Packet re-transmission system
JP2677895B2 (en) Multiplex transmission method
JPH06101723B2 (en) Data transmission method
JP2644571B2 (en) Remote IPL control method
JPS63267039A (en) Network system
JPH077969B2 (en) Communication control method
JP3219070B2 (en) Line restoration method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees