JPH0837541A - Data transmission system - Google Patents

Data transmission system

Info

Publication number
JPH0837541A
JPH0837541A JP6191996A JP19199694A JPH0837541A JP H0837541 A JPH0837541 A JP H0837541A JP 6191996 A JP6191996 A JP 6191996A JP 19199694 A JP19199694 A JP 19199694A JP H0837541 A JPH0837541 A JP H0837541A
Authority
JP
Japan
Prior art keywords
frame
data
error
node
check bit
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.)
Withdrawn
Application number
JP6191996A
Other languages
Japanese (ja)
Inventor
Kuniharu Ito
邦晴 伊藤
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel 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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP6191996A priority Critical patent/JPH0837541A/en
Publication of JPH0837541A publication Critical patent/JPH0837541A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide a data transmission system with which error detection can be more securely performed corresponding to the generation of error on a communication path and further proper data can be more securely transmitted to respective slave nodes by transmitting an error detected frame again. CONSTITUTION:This data transmission system is provided with an inspecting means 22 for inspecting the presence/absence of data error by providing a data sequence and an error check bit sequence for detecting data error added to the data sequence at the frame and by using the error check bit sequence for each received frame at the slave node connected to a ring-shaped network, error check bit sequence generating means 27 for updating the error check bit sequence for each frame and additionally outputting it to the next node, first scrambling means for loading first scramble to the data sequence and the error check bit sequence in the transmitting frame, and second scrambling means for loading second scramble different from the first scramble.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、1台のマスターノード
と複数のスレーブノードで構成されたリング型ネットワ
ークにおいて、ネットワーク上で発生したデータエラー
を検出し、エラーの発生したフレームを再送するデータ
伝送方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention, in a ring type network composed of one master node and a plurality of slave nodes, detects data error occurring on the network and retransmits the frame in which the error occurred. Regarding transmission method.

【0002】[0002]

【従来の技術】[Prior art]

文献名;IEEE Standard 802.5 Token Ring Access Meth トランジスタ技術スペシャルNo.8「データ通信技術のす
べて」p8〜11データ伝送において通信上の誤り(エ
ラー)を検出する方法として、パリティチェック方式、
定マーク符号方式、巡回符号(CRC)方式等がよく知
られている。
Reference name: IEEE Standard 802.5 Token Ring Access Meth Transistor Technology Special No. 8 "All about Data Communication Technology" p8-11 Parity check method for detecting communication errors in data transmission,
Constant mark code system, cyclic code (CRC) system and the like are well known.

【0003】これらの中でも巡回符号(CRC)方式
は、冗長度の割にチェック機能が高いこと、バースト的
雑音に比較的強いことやCRCの作成と検出回路が簡単
であることなどから、高速で信頼性の高いデータ通信に
よく用いられている。
Among them, the cyclic code (CRC) method is high in speed because it has a high check function for redundancy, is relatively resistant to burst noise, and has a simple CRC creation and detection circuit. It is often used for reliable data communication.

【0004】CRC方式では、送るべきデータ列を生成
多項式で割り、その余り(BCC:Block Check Charac
ter )をデータ列の後にエラーチェックビット列として
付加して送信し、受信側では同じ生成多項式を用いて除
算を行い、余りが出なければ受信したデータは正しいと
判断する。逆に余りが出ればデータ列に誤りがあると判
断する。
In the CRC method, a data string to be sent is divided by a generator polynomial, and the remainder (BCC: Block Check Charac
ter) is added as an error check bit string after the data string and transmitted, and the receiving side performs division using the same generator polynomial. If there is no remainder, the received data is judged to be correct. On the contrary, if there is a remainder, it is determined that the data string has an error.

【0005】従来のリング型ネットワーク通信方式の代
表であるトークンリングにおいても、通信時のエラーを
CRCチェックによって検出している。トークンリング
では通信時のエラーをCRCチェックによって検出する
とフレーム中のEnding Delimiter部のEbitと呼ばれるビ
ットを“1”にし、エラーの発生をシステムマネージャ
ーに通知する。システムマネージャーはEbit=“1”に
よってエラー発生を知り、必要な処理を行う。図8は、
トークンリングのフレーム構成の一例を示す概略図であ
る。図中Eで示されるビットがEnding Delimiter部のEb
itと呼ばれるビットであり、このビットを“1”にし、
エラーの発生をシステムマネージャーに通知する。シス
テムマネージャーはEbit=“1”によってエラー発生を
知り、必要な処理を行う。
Even in the token ring, which is a representative of the conventional ring-type network communication systems, an error during communication is detected by a CRC check. In the token ring, when an error during communication is detected by a CRC check, a bit called Ebit in the Ending Delimiter section in the frame is set to "1" and the system manager is notified of the error occurrence. The system manager recognizes the error occurrence by Ebit = "1" and performs necessary processing. Figure 8
It is a schematic diagram showing an example of a frame structure of a token ring. The bit indicated by E in the figure is Eb of the Ending Delimiter part.
It is a bit called it, and set this bit to "1",
Notify the system manager that an error has occurred. The system manager recognizes the error occurrence by Ebit = "1" and performs necessary processing.

【0006】また、一般にデータ伝送において、受信パ
ルス系列からタイミングを抽出する自己タイミング方式
が広く用いられており、この場合、零符号連続発生確率
の低減のため、通信データ列とランダム列との排他的論
理和をとることによりデータを違う表現に変換するスク
ランブル(SCR)という処理が通常行われている。
Generally, in data transmission, a self-timing method for extracting timing from a received pulse sequence is widely used. In this case, in order to reduce the probability of occurrence of consecutive zero codes, a communication data sequence and a random sequence are mutually exclusive. A process called scramble (SCR) for converting data into different expressions by taking a logical OR is usually performed.

【0007】[0007]

【発明が解決しようとする課題】前述のトークンリング
では、エラーを示すビットは、フレーム中1ビットだけ
であり、またEbitが含まれるEnding Delimiter部はCR
Cチェック対象からはずれているため、あるノード(ト
ークンリングでは Stationと呼ぶ)においてCRCエラ
ーが検出されEbit=“1”として送信された後、さらに
エラーが発生しこのビットが“1”から“0”に反転し
た場合にはシステムマネージャーはエラーの発生を知る
ことができない、という問題があった。
In the token ring described above, the bit indicating an error is only 1 bit in the frame, and the Ending Delimiter part including Ebit is CR.
Since it is out of the C check target, a CRC error is detected at a certain node (called Station in token ring) and is transmitted with Ebit = "1", and then an error occurs and this bit changes from "1" to "0". There is a problem that the system manager cannot know the occurrence of the error when it is reversed to "".

【0008】そこで本発明では、エラーチェックビット
列であるBCCビット列へ施すスクランブルを、CRC
チェック正常時とエラー検出時とで異なる方式に切り替
えることでCRCチェックによるエラーを確実にマスタ
ーノードへ伝搬する通信方式を提供することを目的とす
る。
Therefore, in the present invention, the scramble applied to the BCC bit string which is the error check bit string is CRC.
An object of the present invention is to provide a communication method in which an error due to a CRC check is surely propagated to a master node by switching to a different method depending on whether a check is normal or an error is detected.

【0009】[0009]

【課題を解決するための手段】本発明は上記課題を解決
するために、各ノードにおいて受信フレームに対してデ
ータエラーチェックを行い、正常であれば、送信データ
列とBCCに正規のスクランブル方式によりスクランブ
ルを施す第一のスクランブル手段と、エラーを検出した
ときはBCCに正規スクランブル方式とは異なるスクラ
ンブルを施す第二のスクランブル手段と、前記正規のス
クランブルをかけられた受信フレームの送信データ列及
びBCCを元に戻すためのデスクランブラ手段とを有す
る。ここで最初にCRCチェックによるエラーを検出し
たノード以降全てのノードでのCRCチェックによるエ
ラーが発生するようにし、エラー発生を確実にマスター
ノードへ伝えるとともに、マスターノードでは、エラー
を検出するとエラーが発生したフレームを認識する手段
とエラーの発生したフレームを再送する手段を設けた。
In order to solve the above problems, the present invention performs a data error check on a received frame at each node, and if normal, uses a regular scrambling method for a transmission data string and BCC. First scrambling means for scrambling, second scrambling means for scrambling the BCC different from the regular scrambling method when an error is detected, the transmission data string of the regular scrambled received frame and the BCC And descrambler means for returning the original. Here, the CRC check error is generated in all nodes after the node that detected the CRC check error, and the error occurrence is reliably transmitted to the master node. In addition, the master node generates an error when it detects the error. A means for recognizing the generated frame and a means for retransmitting the frame in which an error has occurred are provided.

【0010】[0010]

【作用】本発明は上記手段により、エラーチェックの結
果受信フレームが正常な場合、新たなエラーチェックビ
ット列が付加された送信フレームに前記第一のスクラン
ブル手段により正規のスクランブルがかけられ、次のノ
ードにおいて前記デスクランブラ手段によりスクランブ
ル前の通りのデータに復元されるので、このノードでの
エラーチェックの結果は直前のノードとの間のケーブル
上でエラーが発生していない限り正常である。一方、エ
ラーチェックの結果受信フレームにエラーが検出された
場合、新たなエラーチェックビット列が付加された送信
フレームに前記第二のスクランブル手段により正規のス
クランブルとは異なるスクランブルがかけられるので、
次のノードにおいて前記デスクランブラ手段によりスク
ランブル前とは異なるデータに復元されてしまい、その
結果このノードでのエラーチェックでエラーが検出さ
れ、以降のノードにおいても同様にエラーが検出され、
エラーをマスターノードへ確実に伝えることができる。
更に、エラーが検出されたフレームをネットワーク上に
再送する手段により、各スレーブノードへ確実に正しい
データを伝えることができる。
According to the present invention, when the received frame is normal as a result of the error check by the above means, the transmission frame to which a new error check bit string is added is normally scrambled by the first scramble means, and the next node In the above, the descrambler means restores the data as it was before the scramble, so the result of the error check in this node is normal unless an error occurs on the cable between the node and the immediately preceding node. On the other hand, if an error is detected in the received frame as a result of the error check, since the transmission frame to which a new error check bit string is added is scrambled differently from the regular scramble by the second scramble means,
In the next node, the descrambler means restores data different from that before scrambling, and as a result, an error is detected by an error check in this node, and an error is similarly detected in the following nodes,
The error can be reliably transmitted to the master node.
Further, the means for retransmitting the frame in which the error is detected on the network can surely transmit the correct data to each slave node.

【0011】[0011]

【実施例】図3はリングネットワークの概略構成図、図
4はネットワーク上での、エラーがない場合のフレーム
の送受信タイミングの説明図、図7はネットワーク上で
の、エラーが検出された場合のフレームの送受信タイミ
ングの説明図、図5は図1中のスクランブル回路のブロ
ック図、図6は図5の動作説明図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 3 is a schematic configuration diagram of a ring network, FIG. 4 is an explanatory diagram of transmission / reception timing of frames in the case where there is no error, and FIG. 7 is a case where an error is detected in the network. 5 is an explanatory diagram of frame transmission / reception timing, FIG. 5 is a block diagram of the scramble circuit in FIG. 1, and FIG. 6 is an operation explanatory diagram of FIG.

【0012】図1は、本発明の通信方式を実現するリン
グネットワーク上のノードの構成図であり、図1(b)
は、ネットワーク上に接続されており、マスターノード
からのデータを受送信するスレーブノード302〜30
4のブロック図である。1はネットワークからの入力
部、2はネットワークへの出力部、3及び4はそれぞ
れ、ノードにつながっている並列伝送路(図示せず)へ
の受信データ出力と並列伝送路からの送信データ入力で
ある。20は、ネットワーク上での同期を確立するた
め、データの送受信に先立ち、受信したフレーム中の同
期ビット列を検出するフレーム同期部を示しており、ノ
ード内部の動作はフレーム同期部20で検出した同期タ
イミングを基準として実行される。21は受信フレーム
にかけられているスクランブルを解除するデスクランブ
ラ、22は受信したフレーム中のエラーを検出するCR
Cチェック部であり、ここではあらかじめ決められた生
成多項式を用いて、フレーム中のフレーム番号情報、デ
ータ部、及びBCCに対して除算が行われ、12はCR
Cチェック部22の結果を表わすCRCチェック結果信
号であり、エラー無しの場合は「1」を、エラーが検出
された場合は「0」が出力される。
FIG. 1 is a block diagram of a node on a ring network which realizes the communication system of the present invention, and FIG.
Are slave nodes 302 to 30 which are connected to the network and which receive and transmit data from the master node.
4 is a block diagram of FIG. 1 is an input unit from the network, 2 is an output unit to the network, and 3 and 4 are reception data output to a parallel transmission line (not shown) connected to the node and transmission data input from the parallel transmission line, respectively. is there. Reference numeral 20 denotes a frame synchronization unit that detects a synchronization bit string in a received frame before data transmission / reception in order to establish synchronization on the network. The operation inside the node is the synchronization detected by the frame synchronization unit 20. It is executed based on the timing. 21 is a descrambler for descrambling the received frame, 22 is a CR for detecting an error in the received frame
C check unit, in which a frame number information in a frame, a data unit, and BCC are divided by using a predetermined generator polynomial, and 12 is a CR
It is a CRC check result signal indicating the result of the C check unit 22, and outputs "1" when there is no error and outputs "0" when an error is detected.

【0013】23は受信したデータを蓄え、所定の遅延
を作る受信バッファ、24はノード自身から送信するデ
ータを蓄える送信バッファ、29はノード自身からの送
信データをフレーム中に挿入するデータ切替部をそれぞ
れ示しており、データ切替部29は送信フレームの出力
タイミングに応じ、デスクライバー21から受信バッフ
ァ23に入力され、受信バッファ23から出力される同
期ビット列、コマンド部、フレーム番号情報、および受
信データと、送信バッファ24から出力されスレーブノ
ード自身が送信するデータを切り替えて出力する。ま
た、タイミング発生回路(図示せず)は1個備えられて
いればよく、これにより、受信タイミングは送信タイミ
ングと同一の基準信号から生成される。
Reference numeral 23 is a reception buffer for storing the received data and creating a predetermined delay, 24 is a transmission buffer for storing the data to be transmitted from the node itself, 29 is a data switching unit for inserting the transmission data from the node itself into the frame. In each of the figures, the data switching unit 29 receives the synchronization bit string, the command part, the frame number information, and the reception data which are input from the driver 21 to the reception buffer 23 and output from the reception buffer 23 according to the output timing of the transmission frame. The data output from the transmission buffer 24 and transmitted by the slave node itself is switched and output. Further, it is only necessary to include one timing generation circuit (not shown), whereby the reception timing is generated from the same reference signal as the transmission timing.

【0014】27はCRCビット列生成部であり、ここ
でデータ切替部29から出力されたフレーム番号情報と
送信データ列にCRC演算が施される。すなわち、フレ
ーム番号情報と送信データ列に対して、CRCチェック
部22での除算と同一の、あらかじめ決められた生成多
項式を用いて除算が行われ、その余りであるBCCがエ
ラーチェックビット列として送信データ列に付加され
る。なお、同期ビット列200、コマンド部201にも
CRC演算を施してもよい。28は、送信フレーム中の
フレーム番号情報、送信データ列にスクランブルを施す
スクランブル回路であるが、コマンド部201、エラー
チェックビット列204にもスクランブルを施してもよ
い。なお、この構成図には、フレーム同期部20で得ら
れた同期タイミングを元に各種制御タイミング及び制御
信号を発生する制御部は特に図示していない。
Reference numeral 27 denotes a CRC bit string generation unit, in which the frame number information and the transmission data string output from the data switching unit 29 are subjected to CRC calculation. That is, the frame number information and the transmission data string are divided by using a predetermined generator polynomial, which is the same as the division in the CRC check unit 22, and the remainder BCC is the transmission data as an error check bit string. Appended to columns. The CRC calculation may be performed on the synchronization bit string 200 and the command unit 201. 28 is a scramble circuit for scrambling the frame number information in the transmission frame and the transmission data string, but the command section 201 and the error check bit string 204 may also be scrambled. It should be noted that the control unit that generates various control timings and control signals based on the synchronization timing obtained by the frame synchronization unit 20 is not particularly shown in this configuration diagram.

【0015】図1(a)は、ネットワーク上を巡回する
フレームを発生させるマスターノード301のブロック
図である。フレーム番号発生部30は、CRCチェック
部22に従って、受信フレームにCRCエラーがなけれ
ばフレーム番号情報として順次インクリメントした値、
及びコマンドを発生する。また、フレーム番号発生部3
0は、ネットワーク上を巡回しCRCエラーなく正常に
受信された最新のフレームのフレーム番号情報を記憶
し、CRCチェック部22によりCRCエラーが検出さ
れた場合は、この記憶している情報に基づき、CRCエ
ラーが検出され再送すべきフレーム番号情報、及びコマ
ンドを発生させる。データ切替部25は、送信バッファ
24からの送信フレームの出力タイミングに応じ、同期
ビット列200を発生すると共に、その後にフレーム番
号発生部30からのコマンド部201、フレーム番号情
報202、受信バッファ23から読み出した他ノードの
受信データ、送信バッファ24からのマスターノード自
身の送信データを切り替えて出力する。また、受信タイ
ミングを発生するタイミング発生回路と送信タイミング
を発生するタイミング発生回路とが別々に備えられてお
り、受信タイミングと送信タイミングとは互いに独立に
発生される。なお、マスターノードとスレーブノードと
は、装置として別種類である必要はなく、ノードを任意
にスレーブ或いはマスターのどちらかに設定し、一部の
機能ブロックの動作を切り替えることができる。
FIG. 1A is a block diagram of a master node 301 that generates a frame that circulates on a network. According to the CRC check unit 22, the frame number generation unit 30 sequentially increments the frame number information if there is no CRC error in the received frame,
And generate a command. Also, the frame number generator 3
0 stores the frame number information of the latest frame which has circulated on the network and is normally received without a CRC error. When the CRC error is detected by the CRC check unit 22, based on the stored information, When a CRC error is detected, frame number information to be retransmitted and a command are generated. The data switching unit 25 generates the synchronous bit string 200 according to the output timing of the transmission frame from the transmission buffer 24, and thereafter reads from the command unit 201, the frame number information 202, and the reception buffer 23 from the frame number generation unit 30. The reception data of another node and the transmission data of the master node itself from the transmission buffer 24 are switched and output. Further, a timing generation circuit that generates a reception timing and a timing generation circuit that generates a transmission timing are separately provided, and the reception timing and the transmission timing are generated independently of each other. It should be noted that the master node and the slave node do not have to be of different types as devices, and the node can be arbitrarily set as either the slave or the master to switch the operation of some functional blocks.

【0016】次に、図2は、本発明に係る、通信路を巡
回するフレーム・フォーマットの1実施例であるが、図
2を用いてネットワーク上での同期確立方法について説
明する。各スレーブノードでのフレーム同期部20によ
る同期ビット列検出のため、マスターノードでは自身の
タイミングに基づいてフレーム同期のための同期確立フ
レームを送信する。この同期確立フレームは、図2
(a)に示すように、同期ビット列200、同期確立フ
レームであることを示す同期確立コマンドが入ったコマ
ンド部201を含むが、図2(b)に示すように、フレ
ーム番号情報202やデータ部203を更に含んでもよ
く、この場合、データ領域は存在してデータは空でもよ
い。また、同期確立フレームにおけるエラーチェックビ
ット列204は、コマンド部201が正しいかどうかを
チェックするためのものであり、これはなくてもよい。
Next, FIG. 2 shows an embodiment of a frame format for circulating a communication path according to the present invention. A method for establishing synchronization on a network will be described with reference to FIG. In order to detect the synchronization bit string by the frame synchronization unit 20 in each slave node, the master node transmits a synchronization establishment frame for frame synchronization based on its own timing. This synchronization establishment frame is shown in FIG.
As shown in (a), it includes a synchronization bit string 200 and a command section 201 containing a synchronization establishment command indicating that it is a synchronization establishment frame. However, as shown in FIG. 2B, frame number information 202 and a data section are included. It may further include 203, in which case the data area may be present and the data may be empty. The error check bit string 204 in the synchronization establishment frame is for checking whether the command unit 201 is correct, and may not be provided.

【0017】同期確立フレームを受信した各スレーブノ
ードは、同期ビット列200を検出することでフレーム
の開始点を知り、フレーム同期を確立し、各種制御タイ
ミングを発生することができるようになる。また、同期
確立に続くコマンド部201の同期確立コマンドによ
り、受信したフレームが同期確立フレームであることも
知ることができる。この同期確立コマンドは、各スレー
ブノードに対しては例えば、この同期確立フレームの次
から通信フレームが来るという、通信スタンバイ状態で
あることを示すために使われる。マスターノードでは、
ネットワークを巡回して戻ってきた同期確立フレームに
より、自身も受信側の制御タイミングを発生することが
できるようになる。続いてマスターノードは、データの
通信を開始し、各スレーブノードにおいてデータ送受信
をするための通信フレームを送信する。
Receiving the synchronization establishment frame, each slave node can detect the start point of the frame by detecting the synchronization bit string 200, establish the frame synchronization, and generate various control timings. Further, it is possible to know that the received frame is the synchronization establishment frame by the synchronization establishment command of the command unit 201 following the establishment of the synchronization. This synchronization establishment command is used to indicate to each slave node that it is in a communication standby state, for example, a communication frame comes after this synchronization establishment frame. On the master node,
The synchronization establishment frame returned after circulating through the network enables itself to generate control timing on the receiving side. Then, the master node starts data communication and transmits a communication frame for data transmission / reception in each slave node.

【0018】また、通信フレームは、図2(b)に示す
ように、フレーム同期をとるための同期ビット列20
0、通信フレームであることを示す通信モードコマンド
が入ったコマンド部201、フレーム番号情報202、
4ノード分のデータ領域(203−1〜4)が固定チャ
ネルとして割り当てられてあるデータ部203、フレー
ム番号情報202やデータ部203に施されたCRC演
算の結果発生したBCCで構成されるエラーチェックビ
ット列204、で構成されており、フレーム番号情報2
02は、マスターノードのみにおいて発生され、通常デ
ータエラーがネットワーク巡回中に検出されなければ、
1ずつインクリメントされたフレーム番号がマスターノ
ードから送信される。なお、データ部203は、本実施
例では4ノード分のデータ領域(203−1〜4)が固
定チャネルとして割り当てられているが、フレーム長は
必ずしも固定長である必要はなく、フレーム種類、デー
タ内容によって異なっても構わない。
Further, as shown in FIG. 2B, the communication frame has a sync bit string 20 for frame synchronization.
0, a command section 201 containing a communication mode command indicating a communication frame, frame number information 202,
An error check consisting of a data section 203 in which data areas (203-1 to 20-4) for four nodes are allocated as fixed channels, frame number information 202, and a BCC generated as a result of CRC calculation performed on the data section 203. Frame number information 2
02 occurs only on the master node, and usually if no data error is detected during network patrol,
The frame number incremented by 1 is transmitted from the master node. In the present embodiment, although the data areas for the four nodes (203-1 to 4-3) are allocated as fixed channels in the data section 203, the frame length does not necessarily have to be a fixed length. It may differ depending on the content.

【0019】図5は、スクランブル回路28のブロック
図で、図6はその動作タイミングとフレームとの関係を
説明するための模式図である。スクランブル回路28
は、CRCビット列生成部27の出力11が入力されス
クランブルを施す第一のスクランブル回路501と、出
力11が入力され第一のスクランブル回路501とは異
なる方式によりスクランブルを施す第二のスクランブル
回路502と、CRCチェック結果信号12が入力さ
れ、それにより第一のスクランブル回路501からの出
力511と、第二のスクランブル回路502からの出力
512とを切り替え選択するセレクタ504と、フレー
ム同期部20からの制御により動作するタイミングコン
トロール部から発生するセレクタ信号13が入力され、
それにより、フレーム中の同期ビット列200が送られ
てくる出力515と、セレクタ504からの出力514
を切り替え選択するセレクタ505とを備える。
FIG. 5 is a block diagram of the scramble circuit 28, and FIG. 6 is a schematic diagram for explaining the relationship between the operation timing and the frame. Scramble circuit 28
Includes a first scramble circuit 501 that receives the output 11 of the CRC bit string generation unit 27 and performs scrambling, and a second scramble circuit 502 that receives the output 11 and performs scrambling by a method different from that of the first scramble circuit 501. , CRC check result signal 12 is input, whereby a selector 504 for switching and selecting the output 511 from the first scramble circuit 501 and the output 512 from the second scramble circuit 502, and control from the frame synchronization unit 20. The selector signal 13 generated from the timing control section operated by
As a result, the output 515 to which the synchronous bit string 200 in the frame is sent and the output 514 from the selector 504.
And a selector 505 for switching and selecting.

【0020】本例において、CRC演算は、同期ビット
列200、コマンド部201、フレーム番号情報202
とデータ部203に対して施され、スクランブルは、コ
マンド部201、フレーム番号情報202、データ部2
03、及びエラーチェックビット列204に対して施さ
れるものとして、スクランブル回路28の動作を説明す
る。CRCビット列生成部27の出力のうち同期ビット
列200は、スクランブルされずに出力515としてセ
レクタ信号13が「1」の時、セレクタ505より出力
される。スクランブル回路501,502は同期ビット
列200が入力される間はリセットされており、コマン
ド部201、フレーム番号情報202、データ部20
3、及びBCC204が入力されている間動作する。コ
マンド部201、フレーム番号情報202、データ部2
03、及びBCC204にはスクランブルがかけられて
セレクタ信号13が「0」の時にネットワーク出力部2
からネットワーク上へ出力される。
In this example, the CRC calculation is performed by the synchronization bit string 200, the command part 201, and the frame number information 202.
And the data section 203 are scrambled, and the scrambling is performed by the command section 201, the frame number information 202, and the data section 2.
03 and the error check bit string 204, the operation of the scramble circuit 28 will be described. Of the outputs of the CRC bit string generator 27, the synchronous bit string 200 is not scrambled and is output from the selector 505 as the output 515 when the selector signal 13 is “1”. The scramble circuits 501 and 502 are reset while the synchronous bit string 200 is input, and the command section 201, the frame number information 202, and the data section 20.
It operates while 3 and BCC204 are input. Command part 201, frame number information 202, data part 2
03 and BCC 204 are scrambled, and when the selector signal 13 is “0”, the network output unit 2
Is output on the network.

【0021】この時、CRCチェックの結果データエラ
ー無しの場合CRCチェック結果信号12が「1」とな
り、セレクタ504により出力511が選択され、図6
(a)のように、出力2へは同期ビット列200に続
き、スクランブル回路501によるスクランブルのかか
ったコマンド部201、フレーム番号情報202、デー
タ部203、及びBCC204が出力される。逆にCR
Cチェックエラー検出時には、CRCチェック結果信号
12が「0」となり、図6(b)のように、同期ビット
列200に続き、スクランブル回路501によるスクラ
ンブルのかかったコマンド部201、フレーム番号情報
202、データ部203の後、スクランブル回路502
によるスクランブルがかかったBCC204が出力され
る。
At this time, if there is no data error in the CRC check, the CRC check result signal 12 becomes "1", and the output 511 is selected by the selector 504, as shown in FIG.
As shown in (a), the output 2 is followed by the sync bit string 200, and the command section 201, the frame number information 202, the data section 203, and the BCC 204 scrambled by the scramble circuit 501 are output. Conversely, CR
When the C check error is detected, the CRC check result signal 12 becomes “0”, and as shown in FIG. 6B, following the synchronization bit string 200, the command section 201 scrambled by the scramble circuit 501, the frame number information 202, the data After the section 203, the scramble circuit 502
The BCC 204 scrambled by is output.

【0022】図4および図7は、ネットワーク上でのフ
レームの送受信タイミングを示したもので、図4はCR
Cエラーがない場合、図7はエラーが検出された場合の
送受信の様子を示してある。
4 and 7 show the transmission / reception timing of frames on the network. FIG. 4 shows CR.
When there is no C error, FIG. 7 shows the state of transmission and reception when an error is detected.

【0023】図4により、データエラーが無い場合の通
信手順を説明する。図4において、まず、マスターノー
ドから最初のフレーム(フレーム番号情報202=0)
が送信される。この時マスターノードから出力されたフ
レーム上のデータ部203には、マスターノードが送信
したデータのみが存在する。このフレームを受信したス
レーブノード302では、前述した内部動作を経た後、
自ノードデータ領域にスレーブノード302自身からの
送信データを挿入し次のスレーブノードへフレームを送
る。以下、各ノードにおいて同様の手順で各ノードのデ
ータ領域に各送信データが挿入されたフレームは、マス
ターノード301まで巡回する。なお、スレーブノード
では、CRCチェック結果を判断してからエラーチェッ
クビット列に対しスクランブルをかけるため、受信バッ
ファ23に入力されたデータ列が読み出されるまで、エ
ラーチェックに相当する一定時間の遅延が設けられる。
また、この実施例では、マスターノード301では、ス
レーブノード303からのフレームを受信し、CRCチ
ェックを待たずに次のフレーム(フレーム番号情報20
2=1)を送信している(図4(a)及び(b))。
The communication procedure when there is no data error will be described with reference to FIG. In FIG. 4, first, the first frame from the master node (frame number information 202 = 0)
Will be sent. At this time, in the data portion 203 on the frame output from the master node, only the data transmitted by the master node exists. In the slave node 302 receiving this frame, after undergoing the above-mentioned internal operation,
The transmission data from the slave node 302 itself is inserted into the own node data area, and the frame is sent to the next slave node. Hereinafter, the frame in which each transmission data is inserted in the data area of each node in the same procedure in each node circulates to the master node 301. Since the slave node scrambles the error check bit string after judging the CRC check result, a delay of a certain time corresponding to the error check is provided until the data string input to the reception buffer 23 is read. .
In addition, in this embodiment, the master node 301 receives the frame from the slave node 303, and waits for the CRC check before the next frame (frame number information 20
2 = 1) is transmitted (FIGS. 4A and 4B).

【0024】次に図7を用いて、データエラーが発生し
た場合の通信手順について説明する。今、フレーム情報
番号が「N」のフレームで、ノード302とノード30
3の間の通信路でエラーが発生したとすると、ノード3
03において最初に受信フレームのCRCチェックエラ
ーが検出される(図7(a))。CRCチェックエラー
を検出したノード303では、前述したように図6
(b)に示す動作を実行し、送信フレームのエラーチェ
ックビット列へはスクランブル回路502によるスクラ
ンブルがかかったBCCを送出する(図7(b))。
Next, the communication procedure when a data error occurs will be described with reference to FIG. Now, in the frame whose frame information number is “N”, the node 302 and the node 30
If an error occurs on the communication path between nodes 3,
In 03, the CRC check error of the received frame is first detected (FIG. 7 (a)). In the node 303 that has detected the CRC check error, as shown in FIG.
The operation shown in (b) is executed, and the BCC scrambled by the scramble circuit 502 is sent to the error check bit string of the transmission frame (FIG. 7 (b)).

【0025】このフレームを受信したノード304で
は、受信したフレームに対し、デスクランブルを実行す
るが、前述したように、デスクランブル回路21は、ス
クランブラ501によるスクランブルがかかったデータ
のみをスクランブル前の原データに戻すが、それ以外の
スクランブルがかかったデータに関しては、元のデータ
とは異なるランダムなデータを出力する。従って、ノー
ド304でのデスクランブル実行により、フレーム番号
情報、及びデータ部に対しては原データ復元がなされる
が、エラーチェックビット列にはランダムデータが出力
されることになり、その結果CRCチェック部22によ
りデータエラーが検出される。以下同様にして、ノード
304から出力されるフレームのエラーチェックビット
列へはスクランブル回路502によるスクランブルがか
けられ(図7(c))、最終的にマスターノード301
までデータエラーが伝搬されることになる。
The node 304 that has received this frame descrambles the received frame. As described above, the descramble circuit 21 only scrambles the data scrambled by the scrambler 501. For the scrambled data other than the original data, random data different from the original data is output. Therefore, the descramble execution by the node 304 restores the frame number information and the original data for the data part, but random data is output to the error check bit string, and as a result, the CRC check part is output. A data error is detected by 22. Similarly, the error check bit string of the frame output from the node 304 is scrambled by the scramble circuit 502 (FIG. 7C), and finally the master node 301.
The data error will be propagated up to.

【0026】データエラーを検出したマスターノード3
01は、受信したフレームのフレーム番号Nを認識する
ことで、データエラーの発生したフレームはフレーム番
号Nであり、このフレームで送受信される筈のデータが
リングネットワーク上のノードのうち少なくとも1つで
正しく受信されていないことを知る。この時点で、マス
ターノードはすでにフレーム情報番号=N+1のフレー
ムを送信しているので、その次に送信するフレームのフ
レーム番号をNとして再送を実行する(図7(d))。
Master node 3 which has detected a data error
01 recognizes the frame number N of the received frame so that the frame in which the data error has occurred is the frame number N, and the data that should be transmitted / received in this frame is at least one of the nodes on the ring network. Know that it was not received correctly. At this point, the master node has already transmitted the frame with the frame information number = N + 1, so that the frame number of the frame to be transmitted next is N and the retransmission is executed (FIG. 7 (d)).

【0027】なお、フレーム情報番号=N+1のフレー
ムについても、エラーチェックビット列の送信が開始さ
れる以前に、フレーム番号=Nのフレームでのエラーを
検出しているので、CRCチェック結果信号12により
エラーチェックビット列に対して、スクランブル回路5
02によるスクランブルをかけることができる。例えば
画像データのように送信データの順序の連続性を必要と
する場合には、フレーム情報番号=N+1のフレームに
対してもエラーを波及させることで、各ノードがフレー
ムNを受信する前にフレームN+1を受信をしないよう
にすればよい。
As for the frame with the frame information number = N + 1, the error is detected in the frame with the frame number = N before the transmission of the error check bit string is started. Scramble circuit 5 for the check bit string
02 can be scrambled. For example, when continuity of the order of transmission data is required like image data, the error is propagated to the frame with the frame information number = N + 1 so that each node can receive the frame N before receiving the frame N. It suffices not to receive N + 1.

【0028】スレーブノードでは、受信したフレーム番
号に対応するデータを送信することで、エラーのあった
フレームで送信したデータを再送することができる。
The slave node can retransmit the data transmitted in the frame in error by transmitting the data corresponding to the received frame number.

【0029】[0029]

【発明の効果】以上説明したように本発明によれば、通
信路でのエラー発生に対し、より確実なエラー検出が可
能であり、更に、エラー検出されたフレームを再送する
ことにより、より確実に各スレーブノードへ正しいデー
タを伝えることができる、高信頼性のデータ伝送方式を
実現することができる。
As described above, according to the present invention, more reliable error detection can be performed with respect to the occurrence of an error in a communication path, and further, by retransmitting a frame in which an error has been detected, more reliable error detection can be performed. It is possible to realize a highly reliable data transmission method capable of transmitting correct data to each slave node.

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

【図1】(a)本発明の通信方式を実現するリングネッ
トワーク上のマスターノードの構成図である。 (b)本発明の通信方式を実現するリングネットワーク
上のスレーブノードの構成図である。
FIG. 1A is a configuration diagram of a master node on a ring network that realizes a communication system of the present invention. (B) It is a block diagram of the slave node on the ring network which implement | achieves the communication system of this invention.

【図2】通信路を巡回する本発明にかかるフレーム・フ
ォーマットの1実施例を示す概略図である。
FIG. 2 is a schematic diagram showing an embodiment of a frame format according to the present invention that circulates over a communication path.

【図3】本発明におけるリングネットワークの概略構成
図である。
FIG. 3 is a schematic configuration diagram of a ring network in the present invention.

【図4】本発明にかかる、エラーがない場合のリングネ
ットワーク上でのフレームの送受信タイミングを示す概
念図である。
FIG. 4 is a conceptual diagram showing a frame transmission / reception timing on a ring network when there is no error according to the present invention.

【図5】本発明にかかるスクランブル回路部のブロック
図である。
FIG. 5 is a block diagram of a scramble circuit unit according to the present invention.

【図6】本発明にかかるスクランブル回路図の動作タイ
ミングを示す概念図である。
FIG. 6 is a conceptual diagram showing operation timing of a scramble circuit diagram according to the present invention.

【図7】本発明にかかる、エラーが検出された場合のリ
ングネットワーク上でのフレームの送受信タイミングを
示す概念図である。
FIG. 7 is a conceptual diagram showing a frame transmission / reception timing on a ring network when an error is detected according to the present invention.

【図8】トークンリングの一般的なフレームの概略図で
ある。
FIG. 8 is a schematic diagram of a general frame of Token Ring.

【符号の説明】 1 入力部 2 出力部 3 受信データ出力 4 送信データ入力 12 CRCチェック結果信号 20 フレーム同期部 21 デスクランブル回路 22 CRCチェック部 23 受信バッファ 24 送信バッファ 25,29 データ切替部 26 遅延回路 27 CRCビット列生成部 28 スクランブル回路 30 フレーム番号発生部 101 ネットワークに接続するノード 200 同期ビット列 201 コマンド部 202 フレーム番号情報 203 データ部 204 エラーチェックビット列 501,502 スクランブル回路 504,505 セレクタ 13 セレクタ505のセレクタ信号 301 マスターノード 302〜304 スレーブノード[Description of Codes] 1 Input Unit 2 Output Unit 3 Received Data Output 4 Transmitted Data Input 12 CRC Check Result Signal 20 Frame Synchronous Unit 21 Descramble Circuit 22 CRC Check Unit 23 Receive Buffer 24 Transmit Buffer 25, 29 Data Switch Unit 26 Delay Circuit 27 CRC bit string generator 28 Scrambling circuit 30 Frame number generator 101 Node 200 connected to network 200 Synchronous bit string 201 Command part 202 Frame number information 203 Data part 204 Error check bit string 501,502 Scrambling circuit 504,505 Selector 13 Selector 505 Selector signal 301 Master node 302 to 304 Slave node

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 1台のマスターノードと複数のスレーブ
ノードによってリング型ネットワークが形成され、 前記リング型ネットワークを巡回するフレームは、デー
タ列と前記データ列に付加されたデータエラーを検出す
るためのエラーチェックビット列を有し、 前記リング型ネットワークに接続されている前記スレー
ブノードは、受信されたフレーム毎に前記エラーチェッ
クビット列を用いてデータエラーの有無を検査する検査
手段と、フレーム毎にエラーチェックビット列を更新し
付加して次ノードに出力するエラーチェックビット列生
成手段と、送信フレーム内のデータ列及びエラーチェッ
クビット列に第1のスクランブルをかける第1のスクラ
ンブル手段とを備えるデータ伝送方式において、 前記スレーブノードは、前記第一のスクランブルをかけ
られた受信フレームのデータ列及びエラーチェックビッ
ト列を元に戻すデスクランブル手段と、送信フレーム内
のデータ列及びエラーチェックビット列に前記第1のス
クランブルと異なる第2のスクランブルをかける第2の
スクランブル手段を備え、 前記検査手段によって受信フレームのデータが正常と判
断された場合には、前記第1のスクランブル手段によっ
て送信フレーム内のデータ列及びエラーチェックビット
列に前記第1のスクランブルをかけ、 前記検査手段によって受信フレームからデータエラーが
検出された場合には、前記第2のスクランブル手段によ
って送信フレーム内のデータ列及びエラーチェックビッ
ト列に前記第2のスクランブルをかけることを特徴とす
るデータ伝送方式。
1. A ring network is formed by one master node and a plurality of slave nodes, and a frame circulating in the ring network detects a data sequence and a data error added to the data sequence. The slave node, which has an error check bit string and is connected to the ring network, inspects a data error for each received frame using the error check bit string, and an error check for each frame. A data transmission method comprising: an error check bit string generating means for updating and adding a bit string to output to a next node; and a first scramble means for first scrambling a data string and an error check bit string in a transmission frame, The slave node is the first A descrambling means for restoring the data sequence and error check bit sequence of the received frame subjected to the scrambling, and a second scramble for applying a second scramble different from the first scramble to the data sequence and the error check bit sequence in the transmission frame. A scrambler, and when the data of the received frame is determined to be normal by the checker, the first scrambler scrambles the data string and the error check bit string in the transmit frame, A data transmission method characterized in that, when a data error is detected from the received frame by the inspection means, the second scramble means applies the second scramble to the data sequence and the error check bit sequence in the transmission frame.
【請求項2】 請求項1記載のデータ伝送方式におい
て、前記エラーチェックビット列は巡回符号方式により
生成されることを特徴とするデータ伝送方式。
2. The data transmission method according to claim 1, wherein the error check bit string is generated by a cyclic code method.
【請求項3】 請求項1において、データエラーが検出
されたフレームを他のノードへ順次伝搬して前記マスタ
ーノードへデータエラーの発生を通知し、このフレーム
をマスターノードから再送することを特徴とするデータ
伝送方式。
3. The method according to claim 1, wherein the frame in which the data error is detected is sequentially propagated to another node to notify the master node of the occurrence of the data error, and the frame is retransmitted from the master node. Data transmission method.
【請求項4】 請求項1記載のデータ伝送方式におい
て、前記リング型ネットワークを巡回するフレームは、
マスターノードが送信したフレームの順番を示すフレー
ム番号情報を含み、各ノードにおいて受信フレームのフ
レーム番号を検出/認識し、このフレーム番号に、前記
第1、第2のスクランブル、及び/またはデスクランブ
ルをかけることを特徴とするデータ伝送方式。
4. The data transmission method according to claim 1, wherein the frame that circulates in the ring network is
Each node includes frame number information indicating the order of frames transmitted, and each node detects / recognizes the frame number of the received frame, and the first, second scramble, and / or descramble are added to this frame number. A data transmission method characterized by being applied.
【請求項5】 請求項1記載のデータ伝送方式におい
て、マスターノードは、データエラーが検出されたフレ
ームを受信した場合、そのフレームが有するフレーム番
号を、次に送信するフレームのフレーム番号とすること
を特徴とするデータ伝送方式。
5. The data transmission method according to claim 1, wherein the master node, when receiving a frame in which a data error is detected, sets the frame number of the frame as a frame number of a frame to be transmitted next. Data transmission method characterized by.
JP6191996A 1994-07-22 1994-07-22 Data transmission system Withdrawn JPH0837541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6191996A JPH0837541A (en) 1994-07-22 1994-07-22 Data transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6191996A JPH0837541A (en) 1994-07-22 1994-07-22 Data transmission system

Publications (1)

Publication Number Publication Date
JPH0837541A true JPH0837541A (en) 1996-02-06

Family

ID=16283884

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6191996A Withdrawn JPH0837541A (en) 1994-07-22 1994-07-22 Data transmission system

Country Status (1)

Country Link
JP (1) JPH0837541A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738461B2 (en) 2005-05-09 2010-06-15 Mitsubishi Electric Corporation Communication apparatus and switching device
JP2018050144A (en) * 2016-09-21 2018-03-29 セイコーエプソン株式会社 Projection system, controller, and control method of projection system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7738461B2 (en) 2005-05-09 2010-06-15 Mitsubishi Electric Corporation Communication apparatus and switching device
JP2018050144A (en) * 2016-09-21 2018-03-29 セイコーエプソン株式会社 Projection system, controller, and control method of projection system

Similar Documents

Publication Publication Date Title
CA1078067A (en) Error-control system for data transmission
US7047475B2 (en) CRC encoding scheme for conveying status information
JP2004180295A (en) System and method for detecting lost message transmitted between modules in communication device
JPH01228340A (en) Error control system
CA1336291C (en) Initialization and synchronization method for a two-way communication link
US5161186A (en) System for secure and private communication in a triple-connected network
JP2002064506A (en) Data transfer system
JPH0756976B2 (en) Information distribution system and its transmitting station and terminal device
JPH0837541A (en) Data transmission system
JP2001045056A (en) Communication system
EP0093004B1 (en) Data communication system
JP3194373B2 (en) Network connection interface device, fault detection method therefor, and storage medium storing fault detection program
JPH06252895A (en) Data transmission system
JP3245552B2 (en) Transfer control system
JPH01238241A (en) Control system for retransmitting data
JPS60244131A (en) Frame retransmission system for transmission system of frame synchronizing data
JPS61100043A (en) Transmitter for multiple address communication
JPH0748737B2 (en) Token protection method in token passing transmission
JPH09326782A (en) Serial communication method
JPS6239929A (en) Data transmission equipment
JPH04267631A (en) Parity bit addition system
JP3077289B2 (en) Bus collision prevention circuit
JP2644558B2 (en) Test apparatus and test method for communication device
JPH0522314A (en) Data transmitter
JPS592461A (en) Virtual synchronism preventing system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20011002