JPH04267631A - Parity bit addition system - Google Patents

Parity bit addition system

Info

Publication number
JPH04267631A
JPH04267631A JP3047383A JP4738391A JPH04267631A JP H04267631 A JPH04267631 A JP H04267631A JP 3047383 A JP3047383 A JP 3047383A JP 4738391 A JP4738391 A JP 4738391A JP H04267631 A JPH04267631 A JP H04267631A
Authority
JP
Japan
Prior art keywords
parity
transmission data
data
odd
setting
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
JP3047383A
Other languages
Japanese (ja)
Inventor
Ryoetsu Nakajima
中島 亮悦
Kiyoshi Sugita
清 杉田
Naoki Yamazaki
直己 山崎
Takumi Maruyama
巧 丸山
Kimimoto Takayama
高山 公元
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3047383A priority Critical patent/JPH04267631A/en
Publication of JPH04267631A publication Critical patent/JPH04267631A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Error Detection And Correction (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PURPOSE:To detect it as a fault at a receiver side even when a transmission data is fixed to 'all 1s' or 'all 0s' due to occurrence of the fault with respect to the system adding a parity bit to the transmission data. CONSTITUTION:The parity rule of a parity generating means 1 is selected and set by an even/odd setting means 2 to generate a parity bit according to a prescribed parity rule from a transmission data by the parity generating means 1. A parity bit generated according to the prescribed parity rune is added to the transmission data and the result is sent. The even/odd setting means 2 is provided with a setting inversion means 3 to invert alternately the parity rule into the even parity or the odd parity periodically.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、伝送データにパリティ
ビットを付加する方式に関し、特に伝送データが“al
l1”または“all0”に固定された場合にも検出可
能なパリティビット付加方式に関するものである。
[Field of Industrial Application] The present invention relates to a method for adding parity bits to transmission data, and in particular, the present invention relates to a method for adding parity bits to transmission data.
The present invention relates to a parity bit addition method that can be detected even when the parity bit is fixed to "l1" or "all0".

【0002】近年において、マイクロコンピュータの進
歩に伴って、情報の加工,処理,伝送等をすべてディジ
タル信号によって行うことが一般化している。これに伴
って、データ自身の信頼性を向上するとともに、データ
伝送時の異常発生の際における早期発見,対応が必要と
なっている。
In recent years, with the advancement of microcomputers, it has become common to process, process, transmit, etc. all information using digital signals. Along with this, it is necessary to improve the reliability of the data itself, as well as to detect and respond to abnormalities at an early stage when they occur during data transmission.

【0003】データ伝送時の異常検出は、パリティビッ
トの付加によって行われることが多いが、この場合のパ
リティビット付加方式は、伝送データが“all1”ま
たは“all0”に固定された場合でも、異常として検
出可能なものであることが要望される。
[0003] Abnormality detection during data transmission is often performed by adding a parity bit. In this case, the parity bit addition method detects an abnormality even when the transmitted data is fixed to "all1" or "all0". It is desired that it be detectable as

【0004】0004

【従来の技術】パリティビット付加方式における伝送デ
ータの正常性のチェックは、伝送データ単位にパリティ
ビットを付加して伝送し、受信側において伝送データに
おけるパリティの正常性をみて、受信データの正常性を
確認することによって行われる。しかしながら、伝送装
置の故障や伝送線路の障害等によって伝送データが“a
ll1”または“all0”に固定された場合には、こ
れを異常として検出することができず、故障の早期発見
が困難であった。
[Background Art] In order to check the normality of transmitted data in a parity bit addition method, a parity bit is added to each transmitted data unit before transmission, and the receiving side checks the normality of parity in the transmitted data to determine whether the received data is normal. This is done by checking. However, due to transmission equipment failures, transmission line failures, etc., the transmitted data
If it is fixed to "ll1" or "all0", this cannot be detected as an abnormality, and early detection of a failure is difficult.

【0005】図4は、従来のパリティビット付加方式の
例を示したものであって、8ビットの並列データ伝送の
場合を例示し、図中、11は伝送すべきデータを生成す
る伝送データ生成回路、12は伝送データ送信部、13
はパリティビットを生成するパリティ生成回路、14は
パリティ則の偶数または奇数を設定する偶奇設定部であ
る。
FIG. 4 shows an example of a conventional parity bit addition method, illustrating the case of 8-bit parallel data transmission. circuit, 12 is a transmission data transmitter, 13
14 is a parity generation circuit that generates a parity bit, and 14 is an even-odd setting section that sets the parity rule to be an even number or an odd number.

【0006】伝送データ生成回路11で生成された伝送
データは、伝送データ送信部12を経て、フレームごと
に並列データD0〜D7として出力される。パリティ生
成回路13は、8ビットの並列伝送データごとにパリテ
ィビットPを生成して、データD0〜D7に付加する。 出力データD0〜D7およびパリティビットPからなる
並列データは、送信データとして各種I/Oまたは対向
装置に対して出力される。
The transmission data generated by the transmission data generation circuit 11 passes through the transmission data transmitting section 12 and is output as parallel data D0 to D7 for each frame. The parity generation circuit 13 generates a parity bit P for each 8-bit parallel transmission data and adds it to the data D0 to D7. Parallel data consisting of output data D0 to D7 and parity bit P is output as transmission data to various I/Os or opposing devices.

【0007】この際、偶奇設定部14は、外部からのパ
リティ則の偶数または奇数の設定に応じて、並列伝送デ
ータにおける“1”または“0”の数に対応して、偶数
パリティまたは奇数パリティになるように、パリティビ
ットPを生成する。
[0007] At this time, the even/odd setting section 14 sets the even parity or the odd parity according to the number of "1" or "0" in the parallel transmission data according to the even or odd setting of the parity rule from the outside. A parity bit P is generated so that

【0008】図5は、従来のパリティビット付加方式の
他の例を示したものであって、8ビットの直列データ伝
送の場合を例示している。図中、図4におけると同じも
のを同じ番号で示し、15は並列データを直列データに
変換する並列/直列変換部、16は変換された直列デー
タにパリティビットを挿入するパリティ挿入部である。
FIG. 5 shows another example of the conventional parity bit addition method, illustrating the case of 8-bit serial data transmission. In the figure, the same parts as in FIG. 4 are designated by the same numbers; 15 is a parallel/serial converter that converts parallel data to serial data; 16 is a parity inserter that inserts a parity bit into the converted serial data.

【0009】伝送データ生成回路11で生成された並列
データからなる伝送データは、並列/直列変換部15に
おいてフレームごとに直列データに変換されて、パリテ
ィ挿入部16に入力される。パリティ生成回路13は、
8ビットの並列伝送データごとにパリティビットPを生
成して、パリティ挿入部16に加える。パリティ挿入部
16では、並列/直列変換部15の出力データに、パリ
ティビットPを挿入して直列データからなる出力データ
Dataを生成し、そのクロック信号Clkとともに、
送信データとして各種I/Oまたは対向装置に対して出
力する。
Transmission data consisting of parallel data generated by the transmission data generation circuit 11 is converted into serial data frame by frame in a parallel/serial conversion section 15 and input to a parity insertion section 16 . The parity generation circuit 13 is
A parity bit P is generated for each 8-bit parallel transmission data and added to the parity insertion section 16. The parity insertion section 16 inserts a parity bit P into the output data of the parallel/serial conversion section 15 to generate output data Data consisting of serial data, and together with the clock signal Clk,
Output as transmission data to various I/Os or opposing devices.

【0010】この際、偶奇設定部14は、外部からの偶
数または奇数の設定に応じて、直列伝送データにおける
“1”または“0”の数に対応して、偶数パリティまた
は奇数パリティになるように、パリティビットPを生成
する。
[0010] At this time, the even/odd setting section 14 sets the parity to even parity or odd parity according to the number of "1" or "0" in the serially transmitted data according to the even or odd setting from the outside. Then, a parity bit P is generated.

【0011】[0011]

【発明が解決しようとする課題】図4に示された並列デ
ータにおけるパリティビット付加方式、または図5に示
された直列データにおけるパリティビット付加方式では
、例えばパリティ則が偶数パリティに設定されていた場
合、伝送データが“01010101”のときはパリテ
ィビットは“0”に設定されて、各種I/Oまたは対向
装置に伝送される。受信側では、伝送データの“1”ま
たは“0”の数からパリティビットの値が“0”である
ことを期待しており、付加されたパリティビットが“0
”の場合には、伝送データに異常がないものと判断する
。一方、“1”の場合には、伝送データに異常ありと判
断し、データ伝送の停止または再送等のリカバリー処理
を実行する。
[Problem to be Solved by the Invention] In the parity bit addition method for parallel data shown in FIG. 4 or the parity bit addition method for serial data shown in FIG. 5, for example, the parity rule is set to even parity. In this case, when the transmission data is "01010101", the parity bit is set to "0" and is transmitted to various I/O or opposing devices. The receiving side expects the value of the parity bit to be “0” based on the number of “1” or “0” in the transmitted data, and the added parity bit is “0”.
”, it is determined that there is no abnormality in the transmitted data. On the other hand, in the case of “1”, it is determined that there is an abnormality in the transmitted data, and recovery processing such as stopping data transmission or retransmission is executed.

【0012】しかしながら、伝送データ送信部12以降
に故障等が発生し、伝送データが“11111111”
または“00000000”のように、“all1”ま
たは“all0”となってそれが継続した場合には、受
信側では偶数パリティの検出を行うため、パリティ検出
結果上は正常であると判断し、異常発生を検出できない
という問題が生じる。
However, a failure or the like occurs after the transmission data transmitter 12, and the transmission data becomes "11111111".
or "00000000", if it becomes "all1" or "all0" and continues, the receiving side detects even parity, so it is judged that the parity detection result is normal, and it is abnormal. A problem arises in that the occurrence cannot be detected.

【0013】図5に示された直列データにおけるパリテ
ィビット付加方式の場合も同様であって、例えばパリテ
ィ則が偶数パリティに設定されていた場合には、伝送デ
ータの“1”または“0”の数が偶数であって、付加さ
れたパリティビットが“0”の場合には、伝送データが
正常であると判断するので、並列/直列変換部15以降
に故障等が発生して、伝送データが“11111111
”または“00000000”のように、“all1”
または“all0”となってそれが継続した場合には、
受信側では偶数パリティの検出を行うため、パリティ検
出結果上は正常であると判断し、異常発生を検出できな
いという問題が生じる。
The same applies to the method of adding parity bits to serial data shown in FIG. If the number is even and the added parity bit is "0", it is determined that the transmitted data is normal, so if a failure occurs after the parallel/serial converter 15 and the transmitted data is “11111111
” or “00000000”, “all1”
Or if it becomes “all0” and continues,
Since the receiving side performs even parity detection, a problem arises in that the parity detection result is determined to be normal and the occurrence of an abnormality cannot be detected.

【0014】本発明は、このような従来技術の課題を解
決しようとするものであって、並列データまたは直列デ
ータにおけるパリティビット付加方式において、故障等
の発生によって、伝送データが“all1”または“a
ll0”に固定されてそれが継続した場合でも、受信側
において異常としてこれを検出することが可能なパリテ
ィビット付加方式を提供することを目的としている。
[0014] The present invention is an attempt to solve the problems of the prior art, and is aimed at solving the problem of the prior art. In the parity bit addition method for parallel data or serial data, transmission data becomes "all1" or "all" due to the occurrence of a failure or the like. a
The object of the present invention is to provide a parity bit addition method that can detect this as an abnormality on the receiving side even if the parity bit is fixed to "ll0" and continues.

【0015】[0015]

【課題を解決するための手段】本発明は、伝送データか
ら所定のパリティ則に従ってパリティビットを生成する
パリティ生成手段と、このパリティ生成手段におけるパ
リティ則を切り替えて設定する偶奇設定手段とを備え、
生成されたパリティビットを伝送データに付加して送出
するパリティビット付加方式において、偶奇設定手段に
パリティ則を偶数パリティと奇数パリティとに周期的に
交互に反転する設定反転手段を設けたことを特徴とする
ものである。
[Means for Solving the Problems] The present invention includes parity generation means for generating parity bits from transmission data according to a predetermined parity rule, and even-odd setting means for switching and setting the parity rule in the parity generation means,
A parity bit addition method for adding generated parity bits to transmission data and transmitting the data is characterized in that the even/odd setting means is provided with setting inversion means for periodically inverting the parity rule alternately between even parity and odd parity. That is.

【0016】[0016]

【作用】図1は、本発明の原理的構成を示したものであ
る。パリティビット付加方式においては、パリティ生成
手段1によって伝送データから所定のパリティ則に従っ
てパリティビットを生成するとともに、偶奇設定手段2
を設けて、パリティ生成手段1におけるパリティ則を切
り替えて設定することによって、所与のパリティ則に従
って生成されたパリティビットを、伝送データに付加し
て送出する。このようなパリティビット付加方式におい
て、偶奇設定手段2に設定反転手段3を設けて、パリテ
ィ則を偶数パリティと奇数パリティとに周期的に交互に
反転する。
[Operation] FIG. 1 shows the basic structure of the present invention. In the parity bit addition method, parity generation means 1 generates parity bits from transmission data according to a predetermined parity rule, and even/odd setting means 2
By switching and setting the parity rule in the parity generating means 1, a parity bit generated according to a given parity rule is added to the transmission data and transmitted. In such a parity bit addition system, the even-odd setting means 2 is provided with a setting inversion means 3 to periodically and alternately invert the parity rule to even parity and odd parity.

【0017】従って本発明によれば、パリティ則を偶数
パリティと奇数パリティとに周期的に交互に切り替えて
、伝送データに対してパリティビットを付加して送出す
るので、伝送装置の故障や伝送線路の障害等、伝送線路
関連部分の故障等によるデータ異常、特に“all1”
または“all0”の発生があっても、これを伝送デー
タの伝送単位に検出することが可能となる。
Therefore, according to the present invention, the parity rule is periodically and alternately switched between even parity and odd parity, and parity bits are added to the transmission data before being transmitted. Data abnormalities due to transmission line related failures, especially “all1”
Alternatively, even if "all0" occurs, it is possible to detect this in units of transmission data.

【0018】[0018]

【実施例】図2は、本発明の一実施例の構成を示したも
のであって、図4におけると同じものを同じ番号で示し
、21,22,23はそれぞれ異なるパリティ則設定部
の例を示したものである。パリティ則設定部21,22
,23において、31は偶数パリティと奇数パリティと
を切り替える設定反転部、32は伝送データ数を計数す
る伝送データ計数部、33はPNパターンを発生するP
Nパターン発生部である。
[Embodiment] FIG. 2 shows the configuration of an embodiment of the present invention, in which the same parts as in FIG. 4 are designated by the same numbers, and 21, 22, and 23 are examples of different parity rule setting units This is what is shown. Parity rule setting units 21, 22
, 23, 31 is a setting inversion unit that switches between even parity and odd parity, 32 is a transmission data counting unit that counts the number of transmitted data, and 33 is a P that generates a PN pattern.
This is an N pattern generation section.

【0019】パリティ則設定部21を備えた実施例の場
合、設定反転部31は伝送データ生成回路11における
伝送データ量に応じて、例えば伝送データの1フレーム
ごとに、偶奇設定部14におけるパリティ則を偶数パリ
ティと奇数パリティとに反転させる。パリティ生成回路
13においては、伝送データの1フレームごとに、パリ
ティビットPとして、偶数パリティビットと奇数パリテ
ィビットとを交互に挿入する。
In the case of the embodiment including the parity rule setting unit 21, the setting inversion unit 31 changes the parity rule in the even-odd setting unit 14 for each frame of transmission data according to the amount of data to be transmitted in the transmission data generation circuit 11. to have even parity and odd parity. The parity generation circuit 13 alternately inserts even parity bits and odd parity bits as parity bits P for each frame of transmission data.

【0020】受信側(各種I/Oまたは対向装置)では
、送信側におけるパリティ則の反転に同期して、偶数パ
リティチェックと奇数パリティチェックとを切り替えて
行うことによって、伝送データの正常性をチェックする
ことができる。伝送データ送信部12以降の故障等に基
づいて、伝送データまたは伝送データとパリティビット
とが“all1”または“all0”に固定された場合
、例えば偶数パリティ設定時には、受信側では前述のよ
うにこれを異常として検出することができない場合でも
、奇数パリティ設定時には、受信側では伝送データの“
1”または“0”の数と、付加されているパリティビッ
トとが一致しないので、異常として検出することができ
る。その逆の場合も同様である。
[0020] On the receiving side (various I/Os or opposing devices), the normality of the transmitted data is checked by switching between an even parity check and an odd parity check in synchronization with the reversal of the parity rule on the transmitting side. can do. If the transmission data or the transmission data and the parity bit are fixed to "all1" or "all0" due to a failure of the transmission data transmitter 12 or later, for example, when even parity is set, the receiving side will not accept this as described above. Even if it cannot be detected as an abnormality, when odd parity is set, the receiving side will detect “
Since the number of 1's or 0's does not match the added parity bit, it can be detected as an abnormality.The same applies to the opposite case.

【0021】パリティ則設定部22を備えた実施例の場
合、伝送データ計数部32は、伝送データ生成回路11
で生成されるデータの数を計数することによって、パケ
ット等の一定周期のデータブロックごとに設定反転部3
1におけるパリティ則を反転させる。これによって、偶
奇設定部14は、伝送データの1ブロックごとに、パリ
ティ生成回路13における偶数パリティと奇数パリティ
の発生を反転させる。従って、偶奇設定部14の制御に
応じて、パリティビットPとして、偶数パリティビット
と奇数パリティビットとが交互に挿入される。
In the case of the embodiment including the parity rule setting section 22, the transmission data counting section 32 is connected to the transmission data generating circuit 11.
By counting the number of data generated by
Invert the parity rule in 1. Thereby, the even-odd setting unit 14 inverts the generation of even parity and odd parity in the parity generation circuit 13 for each block of transmission data. Therefore, even parity bits and odd parity bits are alternately inserted as parity bits P under the control of the even/odd setting section 14.

【0022】伝送データ送信部12以降の故障等に基づ
いて、伝送データが“all1”または“all0”と
なってそれが継続した場合、例えば偶数パリティ設定時
には、受信側ではこれを異常として検出することができ
ない場合でも、奇数パリティ設定時には、受信側では伝
送データの“1”,“0”の数と、付加されているパリ
ティビットとが一致しないので、異常として検出するこ
とができる。
[0022] If the transmission data becomes "all1" or "all0" and continues to do so based on a failure or the like after the transmission data transmitter 12, for example when even parity is set, the receiving side detects this as an abnormality. Even if this is not possible, it can be detected as an abnormality because the number of "1"s and "0"s in the transmission data and the added parity bits do not match on the receiving side when odd parity is set.

【0023】パリティ則設定部23を備えた実施例の場
合、伝送データ計数部32は、伝送データ生成回路11
で生成されるデータの数を計数する。PNパターン発生
部33は、伝送データ計数部32におけるデータ数の計
数結果に応じて、一定周期のPNパターン(疑似ランダ
ムパターン)を発生し、設定反転部31は、このPNパ
ターンに従って、パリティ則を反転させる。偶奇設定部
14は、設定反転部31の設定に応じて、パリティ生成
回路13における偶数パリティと奇数パリティの挿入を
反転させる。これによって、パリティビットPとして、
偶数パリティビットと奇数パリティビットとがPNパタ
ーンの“1”,“0”に従って交互に挿入される。
In the case of the embodiment including the parity rule setting section 23, the transmission data counting section 32 is connected to the transmission data generating circuit 11.
Count the number of data generated. The PN pattern generation section 33 generates a PN pattern (pseudorandom pattern) with a constant period according to the result of counting the number of data in the transmission data counting section 32, and the setting inversion section 31 generates a parity rule according to this PN pattern. Invert. The even-odd setting section 14 inverts the insertion of even parity and odd parity in the parity generation circuit 13 according to the setting of the setting inversion section 31. As a result, as the parity bit P,
Even parity bits and odd parity bits are inserted alternately according to "1" and "0" of the PN pattern.

【0024】伝送データ送信部12以降の故障等に基づ
いて、伝送データが“all1”または“all0”と
なってそれが継続した場合、例えば偶数パリティ設定時
には、受信側ではこれを異常として検出することができ
ない場合でも、奇数パリティ設定時には、受信側では伝
送データの“1”,“0”の数と、付加されているパリ
ティビットとが一致しないので、異常として検出するこ
とができる。
[0024] If the transmission data becomes "all1" or "all0" and continues to do so based on a failure of the transmission data transmitter 12 or later, for example when even parity is set, the receiving side detects this as an abnormality. Even if this is not possible, it can be detected as an abnormality because the number of "1"s and "0"s in the transmission data and the added parity bits do not match on the receiving side when odd parity is set.

【0025】図3は、本発明の他の実施例の構成を示し
たものであって、図2および図5におけると同じものを
同じ番号で示している。またパリティ則設定部21,2
2,23における、設定反転部31,伝送データ計数部
32,PNパターン発生部33における構成,動作も同
じである。
FIG. 3 shows the structure of another embodiment of the present invention, in which the same parts as in FIGS. 2 and 5 are designated by the same numbers. Also, parity rule setting units 21, 2
The configurations and operations of the setting inversion section 31, transmission data counting section 32, and PN pattern generation section 33 in 2 and 23 are also the same.

【0026】パリティ則設定部21を備えた実施例の場
合、設定反転部31は伝送データ生成回路11における
伝送データ量に応じて、例えば伝送データの1フレーム
ごとに、偶奇設定部14における偶数パリティと奇数パ
リティの設定を反転させる。これによってパリティ生成
回路13は、伝送データの1フレームごとに、パリティ
ビットPとして、偶数パリティビットと奇数パリティビ
ットとを交互に発生し、パリティ挿入部16はこのパリ
ティビットPを伝送データに挿入する。
In the case of the embodiment including the parity rule setting section 21, the setting inversion section 31 changes the even parity in the even-odd setting section 14 for each frame of transmission data, depending on the amount of data to be transmitted in the transmission data generation circuit 11. and reverse the odd parity setting. As a result, the parity generation circuit 13 alternately generates an even parity bit and an odd parity bit as the parity bit P for each frame of transmission data, and the parity insertion unit 16 inserts this parity bit P into the transmission data. .

【0027】従って、並列/直列変換部15以降の故障
等に基づいて、パリティ挿入部16から出力される伝送
データが“11111111”または“0000000
0”のように、“all1”または“all0”となっ
てそれが継続した場合、例えば偶数パリティ設定時には
、受信側では前述のようにこれを異常として検出するこ
とができない場合でも、奇数パリティ設定時には、受信
側では伝送データの“1”,“0”の数と、付加されて
いるパリティビットとが一致しないので、異常として検
出することができる。
Therefore, based on a failure or the like after the parallel/serial converter 15, the transmission data output from the parity inserter 16 may be "11111111" or "0000000".
0", "all1" or "all0" continues, for example, when even parity is set, even if the receiving side cannot detect this as an abnormality as described above, odd parity is set. Sometimes, on the receiving side, the number of 1's and 0's in the transmitted data does not match the added parity bits, so it can be detected as an abnormality.

【0028】パリティ則設定部22を備えた実施例の場
合、伝送データ計数部32は、伝送データ生成回路11
で生成されるデータの数を計数することによって、パケ
ット等の一定周期のデータブロックごとに設定反転部3
1におけるパリティ則を反転させる。これによって、偶
奇設定部14は、伝送データの1ブロックごとに、パリ
ティ生成回路13における偶数パリティと奇数パリティ
の発生を反転させ、パリティ挿入部16は、このパリテ
ィビットPを伝送データに挿入する。
In the case of the embodiment including the parity rule setting section 22, the transmission data counting section 32 is connected to the transmission data generating circuit 11.
By counting the number of data generated by
Invert the parity rule in 1. As a result, the even-odd setting section 14 inverts the generation of even parity and odd parity in the parity generation circuit 13 for each block of transmission data, and the parity insertion section 16 inserts this parity bit P into the transmission data.

【0029】並列/直列変換部15以降の故障等に基づ
いて、伝送データが“all1”または“all0”と
なってそれが継続した場合、例えば偶数パリティ設定時
には、受信側ではこれを異常として検出することができ
ない場合でも、奇数パリティ設定時には、受信側では伝
送データの“1”,“0”の数と、付加されているパリ
ティビットとが一致しないので、異常として検出するこ
とができる。
[0029] If the transmitted data becomes "all1" or "all0" and continues to do so based on a failure etc. after the parallel/serial converter 15, for example when even parity is set, the receiving side will detect this as an abnormality. Even if this is not possible, it can be detected as an abnormality because the number of "1"s and "0"s in the transmission data and the added parity bits do not match on the receiving side when odd parity is set.

【0030】パリティ則設定部23を備えた実施例の場
合、伝送データ計数部32は、伝送データ生成回路11
で生成されるデータの数を計数する。PNパターン発生
部33は、伝送データ計数部32におけるデータ数の計
数結果に応じて、一定周期のPNパターン(疑似ランダ
ムパターン)を発生し、設定反転部31は、このPNパ
ターンに従って、偶奇設定部14におけるパリティ則を
反転させる。偶奇設定部14は、パリティ生成回路13
における偶数パリティと奇数パリティの発生を反転させ
、パリティ挿入部16はこのパリティビットPを伝送デ
ータに挿入する。
In the case of the embodiment including the parity rule setting section 23, the transmission data counting section 32 is connected to the transmission data generating circuit 11.
Count the number of data generated. The PN pattern generation section 33 generates a PN pattern (pseudo-random pattern) with a constant period according to the result of counting the number of data in the transmission data counting section 32, and the setting inversion section 31 generates an even-odd setting section according to this PN pattern. Invert the parity rule in 14. The even-odd setting section 14 includes a parity generation circuit 13
The parity inserting unit 16 inverts the generation of even parity and odd parity in , and inserts this parity bit P into the transmission data.

【0031】並列/直列変換部15以降の故障等に基づ
いて、伝送データが“all1”または“all0”と
なってそれが継続した場合、例えば偶数パリティ設定時
には、受信側ではこれを異常として検出することができ
ない場合でも、奇数パリティ設定時には、受信側では伝
送データの“1”,“0”の数と、付加されているパリ
ティビットとが一致しないので、異常として検出するこ
とができる。
[0031] If the transmitted data becomes "all1" or "all0" and continues to do so due to a failure etc. after the parallel/serial converter 15, for example when even parity is set, the receiving side will detect this as an abnormality. Even if this is not possible, it can be detected as an abnormality because the number of "1"s and "0"s in the transmission data and the added parity bits do not match on the receiving side when odd parity is set.

【0032】[0032]

【発明の効果】以上説明したように、パリティビットを
付加して伝送データの異常や誤りを検出するパリティビ
ット付加方式において、伝送線路関連部分の故障等によ
るデータ異常、特に“All1”または“All0”の
発生があっても、これを伝送データの所定量の伝送単位
に検出することが可能であり、従って異常発生後のリカ
バリー処理の実行を即座に行うことができるので、装置
の信頼度およびシステムの信頼度を確保することが可能
となる。
As explained above, in the parity bit addition method that adds parity bits to detect abnormalities and errors in transmission data, data abnormalities due to failures in transmission line related parts, especially "All1" or "All0", can be detected. Even if an error occurs, it can be detected in a transmission unit of a predetermined amount of transmitted data, and therefore recovery processing can be performed immediately after the occurrence of an error, which improves the reliability and reliability of the device. It becomes possible to ensure the reliability of the system.

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

【図1】本発明の原理的構成を示す図である。FIG. 1 is a diagram showing the basic configuration of the present invention.

【図2】本発明の一実施例を示す図である。FIG. 2 is a diagram showing an embodiment of the present invention.

【図3】本発明の他の実施例を示す図である。FIG. 3 is a diagram showing another embodiment of the present invention.

【図4】従来のパリティビット付加方式の例を示す図で
ある。
FIG. 4 is a diagram showing an example of a conventional parity bit addition method.

【図5】従来のパリティビット付加方式の他の例を示す
図である。
FIG. 5 is a diagram showing another example of a conventional parity bit addition method.

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

1  パリティ生成手段 2  偶奇設定手段 3  設定反転手段 4  伝送データ計数手段 5  PNパターン発生手段 1 Parity generation means 2 Even-odd setting means 3 Setting reversal means 4 Transmission data counting means 5 PN pattern generation means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】  伝送データから所定のパリティ則に従
ってパリティビットを生成するパリティ生成手段(1)
と、該パリティ生成手段(1)におけるパリティ則を切
り替えて設定する偶奇設定手段(2)とを備え、該生成
されたパリティビットを前記伝送データに付加して送出
するパリティビット付加方式において、前記偶奇設定手
段(2)にパリティ則を偶数パリティと奇数パリティと
に周期的に交互に反転する設定反転手段(3)を設けた
ことを特徴とするパリティビット付加方式。
Claim 1: Parity generation means (1) for generating parity bits from transmission data according to a predetermined parity rule.
and an even/odd setting means (2) for switching and setting the parity rule in the parity generating means (1), and in which the generated parity bit is added to the transmission data and transmitted. A parity bit addition method characterized in that the even/odd setting means (2) is provided with a setting reversing means (3) for periodically and alternately reversing the parity rule between even parity and odd parity.
【請求項2】  前記設定反転手段(3)が、伝送デー
タの1フレームごとにパリティ則を反転することを特徴
とする請求項1に記載のパリティビット付加方式。
2. The parity bit addition method according to claim 1, wherein the setting inversion means (3) inverts the parity rule for each frame of transmission data.
【請求項3】  前記設定反転手段(3)が、伝送デー
タ量を計数する伝送データ計数手段(4)を有し、伝送
データのパケット等の1ブロックの計数ごとにパリティ
則を反転することを特徴とする請求項1に記載のパリテ
ィビット付加方式。
3. The setting inversion means (3) includes transmission data counting means (4) for counting the amount of transmission data, and inverts the parity rule every time one block of transmission data packets or the like is counted. The parity bit addition method according to claim 1.
【請求項4】  前記設定反転手段(3)が、伝送デー
タ量を計数する伝送データ計数手段(4)と、該伝送デ
ータ量の計数結果に応じてPNパターンを発生するPN
パターン発生手段(5)とを有し、伝送データ量に対し
てPNパターンに従ってパリティ則を反転することを特
徴とする請求項1に記載のパリティビット付加方式。
4. The setting inversion means (3) includes a transmission data counting means (4) for counting the amount of transmitted data, and a PN that generates a PN pattern according to the result of counting the amount of transmitted data.
2. The parity bit addition method according to claim 1, further comprising a pattern generating means (5) for inverting a parity rule according to a PN pattern with respect to an amount of transmitted data.
JP3047383A 1991-02-21 1991-02-21 Parity bit addition system Withdrawn JPH04267631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3047383A JPH04267631A (en) 1991-02-21 1991-02-21 Parity bit addition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3047383A JPH04267631A (en) 1991-02-21 1991-02-21 Parity bit addition system

Publications (1)

Publication Number Publication Date
JPH04267631A true JPH04267631A (en) 1992-09-24

Family

ID=12773581

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3047383A Withdrawn JPH04267631A (en) 1991-02-21 1991-02-21 Parity bit addition system

Country Status (1)

Country Link
JP (1) JPH04267631A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6920603B2 (en) 2000-12-27 2005-07-19 Fujitsu Limited Path error monitoring method and apparatus thereof
JP2014135580A (en) * 2013-01-09 2014-07-24 Mitsubishi Electric Corp Plant monitoring control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6920603B2 (en) 2000-12-27 2005-07-19 Fujitsu Limited Path error monitoring method and apparatus thereof
JP2014135580A (en) * 2013-01-09 2014-07-24 Mitsubishi Electric Corp Plant monitoring control system

Similar Documents

Publication Publication Date Title
KR900006920B1 (en) Method for error detection and correction by majority
EP0043432A2 (en) Error detecting device for synchronous data transmission system
EP0130429B1 (en) Failure detection apparatus
JPH04267631A (en) Parity bit addition system
JPH06204989A (en) Data communication equipment
JPH0535616A (en) Data transfer system
JP2606160B2 (en) Failure detection method for parity check circuit
JP2954048B2 (en) Baud rate generation circuit
JPH08233890A (en) Apparatus for detecting improper connection of cable
JPH034623A (en) Serial data transmission system
JP2803479B2 (en) Serial data receiver
JPS5945304B2 (en) Line failure detection method in two-wire communication equipment
JPH0294722A (en) Parity monitor system
JP2970690B2 (en) Synchronous control circuit
KR19990038709U (en) Error Detection Device Using Parit Bits
JP2001331384A (en) System and method for detecting inter-package communication fault
JP2591455B2 (en) Communication device
JPS63148335A (en) Error detector
JPS61236233A (en) Supervision equipment for transmission system
JPS5918897B2 (en) Transmission result determination device at transmitting station
JPH0272733A (en) Parity function checking system
JPH05103041A (en) Data processing unit and its fault detection method
JPS6248833A (en) Token system
JPS63245093A (en) Remote super visory equipment
KR19990003250A (en) Apparatus and Method for Preventing Transmission Message Collision in Exchange 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: 19980514