JP2001223677A - Data communication method and system - Google Patents

Data communication method and system

Info

Publication number
JP2001223677A
JP2001223677A JP2000032879A JP2000032879A JP2001223677A JP 2001223677 A JP2001223677 A JP 2001223677A JP 2000032879 A JP2000032879 A JP 2000032879A JP 2000032879 A JP2000032879 A JP 2000032879A JP 2001223677 A JP2001223677 A JP 2001223677A
Authority
JP
Japan
Prior art keywords
data
received
reception
signal line
error
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.)
Granted
Application number
JP2000032879A
Other languages
Japanese (ja)
Other versions
JP4476411B2 (en
Inventor
Kiyotsugu Oba
清嗣 大庭
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.)
Fujikura Ltd
Original Assignee
Fujikura 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 Fujikura Ltd filed Critical Fujikura Ltd
Priority to JP2000032879A priority Critical patent/JP4476411B2/en
Publication of JP2001223677A publication Critical patent/JP2001223677A/en
Application granted granted Critical
Publication of JP4476411B2 publication Critical patent/JP4476411B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a data communication method that has superior fail/safe function with respect to broken signal wire and high noise immunity. SOLUTION: The data communication system consists of a transmission section 1, a reception section 2 and a couple of signal wires 3a, 3b that interconnect them. Data A, consisting of a non-inverted Manchester code and data B consisting of an inverted Manchester code are transmitted from the transmission section 1 to the reception section 2 via the signal wires 3a, 3b respectively. The reception section 2 compares logic levels of the data A, B. When both the logic levels indicate the identical level, the reception section 2 discriminates the occurrence of an error in the received data, depending on the code state of both the data and processes the other received data as correct received data and processes the received data from the other signal line, when the received data from either of the signal wires 3a, 3b are intermitted.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、送信部から受信部
へ所定の信号線を介してデータを伝送するデータ通信方
法及び装置に関し、特にマンチェスター符号を用いてデ
ータを伝送するデータ通信方法及び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data communication method and apparatus for transmitting data from a transmission section to a reception section via a predetermined signal line, and more particularly to a data communication method and apparatus for transmitting data using Manchester codes. About.

【0002】[0002]

【従来の技術】同期通信システム等において伝送すべき
直列2進信号に受信側で同期をとるためのクロックを含
ませて伝送する種々の自己同期型の符号化伝送方式が知
られている。中でもCSMA/CD方式のLAN等で用
いられている符号化伝送方式としてマンチェスター符号
化方式が知られている。マンチェスター符号は、1ビッ
トのデータを2つの異なる論理エレメントの対を用いて
2ビットに冗長化する方式で、データ“0”は前半の論
理エレメントを“1”、後半の論理エレメントを“0”
で表現し、データ“1”は前半の論理エレメントを
“0”、後半の論理エレメントを“1”で表現する。こ
れにより、ビット区間の中央で高低レベルが必ず反転
し、同一レベルの論理エレメントの連続は2回以内とな
るので、これを再生クロックにより検証することで、ビ
ット単位でのエラーチェックが可能になる。
2. Description of the Related Art Various self-synchronous coded transmission systems are known in which a serial binary signal to be transmitted in a synchronous communication system or the like is transmitted by including a clock for synchronizing on the receiving side. Among them, the Manchester encoding system is known as an encoding transmission system used in a CSMA / CD LAN or the like. The Manchester code is a system in which one-bit data is made redundant by using two different pairs of logical elements into two bits. For data “0”, the former logical element is “1” and the latter logical element is “0”.
In the data "1", the first half logical element is expressed by "0" and the second half logical element is expressed by "1". As a result, the high and low levels are always inverted at the center of the bit section, and the continuation of the logic element of the same level is limited to twice or less. By verifying this with the reproduction clock, it is possible to perform error checking in bit units. .

【0003】[0003]

【発明が解決しようとする課題】従来のマンチェスター
符号化方式では、外部ノイズの影響などで前半の論理エ
レメントと後半の論理エレメントとが同一レベルとなっ
たときに符号誤りが生じたとして受信側から送信側に再
送要求を送出し、送信側で再送要求を受信したときには
再度同じデータを再送する。このため、データ伝送は双
方向になり、通信手順及び送受信装置の構成が複雑化す
る。
In the conventional Manchester encoding method, when the first logical element and the second logical element are at the same level due to the influence of external noise or the like, a code error occurs on the receiving side. A retransmission request is transmitted to the transmission side, and when the transmission side receives the retransmission request, the same data is retransmitted again. For this reason, data transmission becomes bidirectional, and the communication procedure and the configuration of the transmission / reception device become complicated.

【0004】また、通信システムにおいて一般に外部ノ
イズ(コモンモードノイズ)を除去するための技術の1
つとして差動方式が知られている。この通信方式は、受
信側で2本の通信線の差電圧を検出し、信号の論理レベ
ルを判定することにより、コモンモードノイズを除去す
る。この差動方式をマンチェスター符号に適用したディ
ファレンシャルマンチェスター符号方式も知られてい
る。しかし、差動通信方式では、2本の信号線のうち一
方が伝送不能になった場合、受信側での差電圧の検出が
困難となり、最悪の場合はデータを復号することができ
ないといった問題がある。
[0004] Further, in a communication system, generally, one of techniques for removing external noise (common mode noise) is disclosed.
One known method is a differential method. In this communication system, common mode noise is removed by detecting a difference voltage between two communication lines on a receiving side and determining a logical level of a signal. A differential Manchester code system in which this differential system is applied to a Manchester code is also known. However, in the differential communication method, if one of the two signal lines becomes unable to transmit, it becomes difficult to detect the differential voltage on the receiving side, and in the worst case, the data cannot be decoded. is there.

【0005】本発明は、このような問題点を解決するた
めになされたもので、耐ノイズ性能が高く、しかも信号
線の断線等に対するフェイルセーフ機能に優れたデータ
通信方法及び装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and it is an object of the present invention to provide a data communication method and apparatus which have a high noise resistance and an excellent fail-safe function against disconnection of a signal line. With the goal.

【0006】[0006]

【課題を解決するための手段】本発明に係るデータ通信
方法は、送信部から受信部まで第1の信号線を介してマ
ンチェスター符号からなる第1のデータを送信すると共
に第2の信号線を介して前記第1のデータの論理を反転
させた第2のデータを送信し、受信側で前記第1の信号
線を介して受信したデータと前記第2の信号線を介して
受信したデータとを比較して、両データが同一の論理レ
ベルを示している場合には両データの符号状態からいず
れか一方の受信データにエラーが発生したと判定しても
う一方の受信データを正しい受信データとして正常処理
し、前記第1の信号線及び第2の信号線のいずれか一方
からの受信データが途切れたときには他方の信号線から
の受信データを処理するようにしたことを特徴とする。
A data communication method according to the present invention transmits a first data consisting of a Manchester code from a transmitting unit to a receiving unit via a first signal line, and transmits a second signal line. Transmitting the second data obtained by inverting the logic of the first data via the first signal line and the data received via the first signal line and the data received via the second signal line on the receiving side. And if both data indicate the same logical level, it is determined from the code state of both data that an error has occurred in one of the received data, and the other received data is regarded as correct received data. Normal processing is performed, and when data received from one of the first signal line and the second signal line is interrupted, data received from the other signal line is processed.

【0007】また、本発明に係るデータ通信装置は、送
信部と、受信部と、これらを接続する第1及び第2の信
号線とを備えて構成され、前記送信部が、マンチェスタ
ー符号からなる第1のデータと、この第1のデータの論
理を反転させた第2のデータをそれぞれ前記第1及び第
2の信号線に出力し、前記受信部が、前記第1及び第2
の信号線をそれぞれを介して受信された第1のデータ及
び第2のデータの論理レベルを比較して、両論理レベル
が同一のレベルを示した場合には両データの符号状態か
らいずれか一方の受信データにエラーが発生したと判定
してもう一方の受信データを正しい受信データとして正
常処理し、前記第1及び第2の信号線のいずれか一方か
らの受信データが途切れたときには他方の信号線からの
受信データを処理するものであることを特徴とする。
Further, a data communication apparatus according to the present invention comprises a transmitting section, a receiving section, and first and second signal lines connecting the transmitting section and the receiving section, and the transmitting section is made of a Manchester code. First data and second data obtained by inverting the logic of the first data are output to the first and second signal lines, respectively, and the receiving unit outputs the first and second signals.
And comparing the logical levels of the first data and the second data received via the respective signal lines, and when both logical levels indicate the same level, one of the code states of both data is determined. It is determined that an error has occurred in the received data, and the other received data is processed normally as correct received data. When the received data from one of the first and second signal lines is interrupted, the other signal is output. It is characterized by processing received data from a line.

【0008】本発明によれば、第1及び第2の信号線を
それぞれを介して受信された第1のデータ及び第2のデ
ータが互いに論理レベルを反転させたデータであるか
ら、外部ノイズ(コモンモードノイズ)がデータの論理
レベルを反転させた場合でも、その影響は必ず一方のデ
ータのみに現れて、他方のデータの論理レベルは変化し
ない。本発明では、上記2つのデータの論理レベルを比
較して、両論理レベルが同一のレベルを示した場合には
両データの符号状態からいずれか一方の受信データにエ
ラーが発生したと判定し、もう一方の受信データを正し
い受信データとして正常処理するので、データの再送要
求をする必要がない。このため、データ通信は単方向通
信で良くなり、送信側は送信専用、受信側は受信専用の
簡単なハードウェア構成とすることが可能となる他、通
信手順も簡素化可能なためプログラム格納領域も少なく
て済む。これにより、通信システム全体のコストダウン
を図ることができる。
According to the present invention, since the first data and the second data received via the first and second signal lines are data whose logical levels are inverted from each other, external noise ( Even when the common mode noise) inverts the logical level of the data, the effect always appears on only one data, and the logical level of the other data does not change. In the present invention, the logical levels of the two data are compared, and if both logical levels indicate the same level, it is determined from the code state of both data that an error has occurred in one of the received data, Since the other received data is normally processed as correct received data, there is no need to request data retransmission. For this reason, the data communication can be a one-way communication, and the transmission side can have a simple hardware configuration for transmission only, and the reception side can have a simple hardware configuration for reception only. Less. As a result, the cost of the entire communication system can be reduced.

【0009】また、本発明によれば、第1及び第2の信
号線からの受信データをそれぞれ個別に処理して、これ
ら信号線のいずれか一方からの受信データが途切れたと
きには、他方の信号線からの受信データを処理するよう
にしているので、一方の信号線が断線した場合でも直ち
に通信が不能になることがなく、フェイルセーフ機能に
優れた通信方式を実現することができる。
According to the present invention, data received from the first and second signal lines are individually processed, and when data received from one of these signal lines is interrupted, the other signal is processed. Since data received from the line is processed, even if one of the signal lines is disconnected, communication is not immediately disabled, and a communication method excellent in the fail-safe function can be realized.

【0010】本発明のより具体的な態様においては、第
1の信号線及び第2の信号線のいずれか一方からの受信
データが途切れたときには他方の受信データを利用して
マンチェスター符号のルールに従い、ビット単位でのエ
ラーチェックを行った上でビットエラーがなければ前記
他方の受信データを正常処理する。これにより、一方の
信号線が断線した場合でも、受信データの信頼性を損な
わずにデータ通信を行うことができる。なお、第1及び
第2の信号線のいずれか一方からの受信データに所定時
間連続してエラーが発生する場合、警告表示や警告音を
出力することも可能である。
In a more specific aspect of the present invention, when data received from one of the first signal line and the second signal line is interrupted, the other received data is used to comply with the Manchester code rule. If there is no bit error after performing an error check in bit units, the other received data is processed normally. Thus, even if one of the signal lines is disconnected, data communication can be performed without impairing the reliability of the received data. When an error occurs continuously for a predetermined time in the data received from either one of the first and second signal lines, a warning display or a warning sound can be output.

【0011】また、単方向通信において、第1及び第2
のデータが所定周期で最新のデータに更新されて前記送
信部から前記受信部へ送信される場合、正常処理では、
受信側で受信された受信データが所定回数連続してビッ
トエラーがなく、且つ所定回数連続して同じ値である場
合に限り、前記受信データを受信確定データとして処理
する。このような構成によれば、一方の受信データにエ
ラーが発生した場合でも他方の受信データによって正し
い受信データが得られるので、所定回数連続してビット
エラーがない状態が続き、受信確定データを得るまでに
要する時間も短縮でき、受信側の応答性能の向上にもつ
ながる。
In one-way communication, first and second
When the data is updated to the latest data at a predetermined cycle and transmitted from the transmitting unit to the receiving unit, in the normal processing,
Only when the received data received on the receiving side has no bit error for a predetermined number of consecutive times and has the same value for a predetermined number of consecutive times, the received data is processed as reception confirmed data. According to such a configuration, even when an error occurs in one of the received data, correct received data can be obtained by the other received data. Therefore, a state in which there is no bit error continuously for a predetermined number of times continues, and reception confirmed data is obtained. The time required for this can be shortened, and the response performance of the receiving side can be improved.

【0012】[0012]

【発明の実施の形態】以下、図面に示した実施例を参照
して、本発明を詳細に説明する。図1は、本発明の一実
施例に係るデータ通信装置の概略構成を示す図である。
このデータ通信装置は、送信部1、受信部2及びこれら
を接続する1対の信号線3a,3bから構成される。自
動車用のLANシステムを想定すると、送信部1は、例
えばエンジン制御ユニット等であり、受信部2はコンビ
ネーションメータ等である。送信部1から受信部2への
信号線3a,3bを介した通信は単方向通信であり、信
号線3a,3bには、それぞれ非反転マンチェスター符
号によるデータAと、反転マンチェスター符号からなる
データBとが伝送される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to embodiments shown in the drawings. FIG. 1 is a diagram showing a schematic configuration of a data communication device according to one embodiment of the present invention.
This data communication device includes a transmission unit 1, a reception unit 2, and a pair of signal lines 3a and 3b connecting these. Assuming a LAN system for a vehicle, the transmission unit 1 is, for example, an engine control unit or the like, and the reception unit 2 is a combination meter or the like. The communication from the transmitting unit 1 to the receiving unit 2 via the signal lines 3a and 3b is one-way communication, and the signal lines 3a and 3b respectively include data A using a non-inverted Manchester code and data B including an inverted Manchester code. Is transmitted.

【0013】送信部1は、例えば図2に示すように、N
RZ(Non-Return to Zero)符号からなる送信データ
と、データ周期と同一の周期を持つクロックCK1とを
排他的論理和するXORゲート11と、このXORゲー
ト11の出力を反転させるインバータ12とを備えて構
成されている。XORゲート11で、図3に示すよう
に、送信データとクロックCK1との排他的論理和をと
ることで非反転マンチェスター符号からなるデータAが
得られ、これをインバータ12で反転することにより、
データBが得られる。送信部1は、これらデータA,B
を信号線3a,3bを介して受信部2に送信する。
[0013] The transmitting unit 1 includes, for example, as shown in FIG.
An XOR gate 11 that performs an exclusive OR operation on transmission data composed of an RZ (Non-Return to Zero) code and a clock CK1 having the same period as the data period, and an inverter 12 that inverts the output of the XOR gate 11 It is provided with. As shown in FIG. 3, XOR gate 11 obtains data A composed of a non-inverted Manchester code by taking an exclusive OR of transmission data and clock CK1.
Data B is obtained. The transmission unit 1 transmits these data A and B
Is transmitted to the receiving unit 2 via the signal lines 3a and 3b.

【0014】受信部2は、データA,Bの論理レベルを
比較して、両論理レベルが同一のレベルを示した場合に
は両データの符号状態からいずれか一方の受信データに
エラーが発生したと判定してもう一方の受信データを正
しい受信データとして処理し、信号線3a,3bのいず
れか一方からの受信データが途切れたときには他方の信
号線からの受信データを処理する。
The receiving unit 2 compares the logical levels of the data A and B, and if both logical levels indicate the same level, an error has occurred in one of the received data from the code state of both data. And the other received data is processed as correct received data, and when the received data from one of the signal lines 3a and 3b is interrupted, the received data from the other signal line is processed.

【0015】受信部2は、例えば図4に示すように構成
されている。データAは、波形整形回路21で所定のス
レッショルドレベルTH1で2値化されることにより、
波形整形され、データBは、波形整形回路22で所定の
スレッショルドレベルTH2で2値化されることによ
り、波形整形される。波形整形回路21,22の出力
A′,B′は、それぞれクロック再生回路23,24に
入力される。クロック再生回路23は、データA′に含
まれるクロック成分を抽出し、これを逓倍して前述した
クロックCK1の2倍の周波数のクロックCK2を再生
する。クロック再生回路24もこれと同様に、データ
B′に含まれるクロック成分を抽出し、これを逓倍して
前述したクロックCK1の2倍の周波数のクロックCK
3を再生する。
The receiving section 2 is configured, for example, as shown in FIG. The data A is binarized by the waveform shaping circuit 21 at a predetermined threshold level TH1, whereby
The waveform is shaped, and the data B is shaped into a waveform by being binarized by the waveform shaping circuit 22 at a predetermined threshold level TH2. Outputs A 'and B' of the waveform shaping circuits 21 and 22 are input to clock recovery circuits 23 and 24, respectively. The clock recovery circuit 23 extracts a clock component included in the data A ', multiplies the clock component, and reproduces a clock CK2 having a frequency twice as high as that of the clock CK1. Similarly, the clock recovery circuit 24 also extracts a clock component included in the data B ', multiplies it, and generates a clock CK having a frequency twice as high as that of the clock CK1.
Play 3

【0016】また、波形整形回路21の出力A′は、再
生されたクロックCK2によって波形のエッジとエッジ
の中間当たりをサンプリングされて、2段のD型フリッ
プフロップ25,26に順次格納される。波形整形回路
22の出力B′もこれと同様に、再生されたクロックC
K3に従って、2段のD型フリップフロップ27,28
に順次格納される。これらD型フリップフロップ25〜
28に格納された4ビットのデータは、判定回路29に
供給される。判定回路29は、クロックCK2,3の2
周期毎、即ち1ビットのデータを構成する前半のエレメ
ントと後半のエレメントとのペアがD型フリップフロッ
プ25〜28にセットされる度に、D型フリップフロッ
プ25〜28に格納された4ビットのデータの状態に基
づいて受信データを判定し、NRZ符号の受信データを
出力する。また、判定回路29は、4ビットのデータの
パターンから信号線3a,3bの断線を識別し、断線と
判断したときには、ディスプレイ装置、警告音発生装置
等からなる警告報知部30を駆動する。
The output A 'of the waveform shaping circuit 21 is sampled by the reproduced clock CK2 at the middle of the edge of the waveform and stored in the two-stage D-type flip-flops 25 and 26 in sequence. Similarly, the output B 'of the waveform shaping circuit 22 is the reproduced clock C
According to K3, two-stage D-type flip-flops 27 and 28
Are sequentially stored. These D-type flip-flops 25 to
The 4-bit data stored in 28 is supplied to a determination circuit 29. The determination circuit 29 determines the clock CK2, 3
For each cycle, that is, every time a pair of the first half element and the second half element forming one-bit data is set in the D-type flip-flops 25 to 28, the 4-bit data stored in the D-type flip-flops 25 to 28 The received data is determined based on the data state, and the received data of the NRZ code is output. In addition, the determination circuit 29 identifies a disconnection of the signal lines 3a and 3b from the 4-bit data pattern, and when it is determined that the signal line 3a or 3b is disconnected, drives a warning notification unit 30 including a display device, a warning sound generation device, and the like.

【0017】次に、このデータ通信装置の動作について
説明する。図5は、この装置の動作を説明するための各
部の信号のタイミングチャートを示している。また、図
6は、図4のD型フリップフロップ25,26,27,
28に格納されたデータの値と、判定回路29での判定
結果との関係を説明した図であり、図中4つの四角の右
側の2つが先行するビット(前半のエレメント)、左側
の2つが後行するビット(後半のエレメント)をそれぞ
れ示している。図6(a),(f)はビット誤りが無い
状態、(b)〜(e),(g)〜(j)は、斜線部でビ
ット誤りが生じた例である。図5の前半のエラーは、デ
ータA′の前半のエレメントが0から1に誤った例であ
り、図6(h)のパターンに相当する。図5の後半のエ
ラーは、データB′の後半のエレメントが1から0に誤
った例であり、図6(d)のパターンに相当する。信号
線3a,3bを介して伝送されるデータA,Bに符号誤
りが生じない場合には、常にデータA′,B′は、互い
に異なる論理レベルとなるので、1ビットのデータを示
す一対のエレメントがD型フリップフロップ25,2
6,27,28に格納された時点で、これら4つのデー
タは、図6の(a)又は(f)のように、上下左右とも
異なる論理レベルとなる。そして、同図(a)のように
データA′の前半のエレメントが“1”、後半のエレメ
ントが“0”のとき、受信データは“0”であると判定
し、同図(f)のようにデータA′の前半のエレメント
が“0”、後半のエレメントが“1”のとき、受信デー
タは“1”であると判定する。
Next, the operation of the data communication device will be described. FIG. 5 is a timing chart of signals of respective units for explaining the operation of this device. FIG. 6 shows the D-type flip-flops 25, 26, 27,
28 is a diagram for explaining the relationship between the value of the data stored in No. 28 and the result of the judgment by the judgment circuit 29. In the figure, the right two bits of the four squares precede the preceding bit (first half element), and the two left ones indicate the two bits. The following bit (the latter half element) is shown. 6 (a) and 6 (f) show a state where there is no bit error, and FIGS. 6 (b) to (e) and (g) to (j) show examples where a bit error has occurred in a hatched portion. The error in the first half of FIG. 5 is an example in which the element of the first half of the data A 'is incorrect from 0 to 1, and corresponds to the pattern in FIG. The error in the latter half of FIG. 5 is an example in which the latter element of the data B 'is incorrectly changed from 1 to 0, and corresponds to the pattern of FIG. When there is no code error in the data A and B transmitted through the signal lines 3a and 3b, the data A 'and B' always have different logic levels. Elements are D-type flip-flops 25 and 2
At the time when the data is stored in 6, 27, and 28, these four data have different logical levels in upper, lower, left, and right as shown in FIG. 6 (a) or (f). When the first half element of the data A 'is "1" and the second half element is "0" as shown in FIG. 11A, it is determined that the received data is "0". As described above, when the first half element of the data A 'is "0" and the second half element is "1", it is determined that the received data is "1".

【0018】図5に示すように、信号線3a,3bに同
相ノイズが重畳すると、いずれか一方のデータA′又は
B′にビット誤りが発生し、図6(b)〜(e)及び
(g)〜(j)に斜線で示すように、データA′,B′
の論理レベルが等しくなる。この場合、他方のデータ
A′又はB′については前半と後半のエレメントの論理
レベルが異なる正しいデータとなっているので、この正
しい方のデータに基づいて受信データが同図(b)〜
(e)の場合には“0”、同図(g)〜(j)の場合に
は“1”と判定することができる。
As shown in FIG. 5, when in-phase noise is superimposed on the signal lines 3a and 3b, a bit error occurs in one of the data A 'or B', and FIGS. g) to (j), the data A ', B'
Are equal in logic level. In this case, the other data A 'or B' is correct data in which the logic levels of the first half and the second half are different from each other, and the received data is based on this correct data as shown in FIG.
In the case of (e), it can be determined as “0”, and in the cases of FIGS.

【0019】また、所定時間エラーが続いた場合には、
エラーが生じている方のデータを伝送する信号線3a又
は3bが断線しているか、ある一定周期で発生するノイ
ズが常に通信データの同じ位置に乗っている場合が考え
られるが、例えば連続的に同一レベル又は同一パターン
(0レベルをキープ等)のエラーが所定時間続いた場合
には、断線の可能性があるものと判断して警告報知部3
0を介して警告表示するか又は警告音を出力する。この
場合、ビットエラーがあった場合、最新データの受信確
定までにかかる時間は2本の信号線3a,3bを用いた
場合に比べて多くなるものの、正常な方の信号線を用い
てデータ伝送をそのまま継続することができる。
If the error continues for a predetermined time,
It is conceivable that the signal line 3a or 3b for transmitting the data in which the error has occurred is disconnected, or noise generated at a certain period is always at the same position in the communication data. If an error of the same level or the same pattern (keep the 0 level, etc.) continues for a predetermined time, it is determined that there is a possibility of disconnection, and the warning notification unit 3
0 to display a warning or output a warning sound. In this case, if there is a bit error, the time required to determine the reception of the latest data is longer than when using the two signal lines 3a and 3b, but data transmission is performed using the normal signal line. Can be continued as it is.

【0020】なお、以上の実施例では、送信部1及び受
信部2が共にハードウェアによって構成されていたが、
例えば図7に示すように、送信部1を送信ドライバ41
と1チップマイコン42とで構成すると共に、受信部2
を受信ドライバ51と1チップマイコン52と警報報知
部30とで構成することもできる。この場合、送信部1
では、NRZ符号からマンチェスター符号へのコーディ
ング及び反転マンチェスター符号の生成を1チップマイ
コン41によるソフトウェアにて実現し、受信部2で
は、反転及び非反転マンチェスター符号からNRZ符号
へのデコーディング及びエラーチェックを1チップマイ
コン52によるソフトウェアで実現することができ、ハ
ードウェア構成が簡単になる。
In the above embodiment, both the transmitting unit 1 and the receiving unit 2 are configured by hardware.
For example, as shown in FIG.
And the one-chip microcomputer 42, and the receiving unit 2
May be configured by the reception driver 51, the one-chip microcomputer 52, and the alarm notification unit 30. In this case, the transmission unit 1
Then, the coding from the NRZ code to the Manchester code and the generation of the inverted Manchester code are realized by software using the one-chip microcomputer 41, and the receiving unit 2 performs decoding from the inverted and non-inverted Manchester code to the NRZ code and error checking. This can be realized by software using the one-chip microcomputer 52, and the hardware configuration is simplified.

【0021】[0021]

【発明の効果】以上述べたように本発明によれば、2つ
のデータの論理レベルを比較して、両論理レベルが同一
のレベルを示した場合には両データの符号状態からいず
れか一方の受信データにエラーが発生したと判定し、も
う一方の受信データを正しい受信データとして処理する
ので、データの再送要求をする必要がない。このため、
データ通信は単方向通信で良くなり、システムの構成を
単純化することができるという効果を奏する。
As described above, according to the present invention, the logical levels of two data are compared, and if both logical levels indicate the same level, one of the code states of both data is determined. Since it is determined that an error has occurred in the received data and the other received data is processed as correct received data, there is no need to request data retransmission. For this reason,
Data communication is improved by one-way communication, and the system configuration can be simplified.

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

【図1】 本発明の一実施例に係るデータ通信装置のブ
ロック図である。
FIG. 1 is a block diagram of a data communication device according to one embodiment of the present invention.

【図2】 同装置における送信部の構成を示すブロック
図である。
FIG. 2 is a block diagram illustrating a configuration of a transmission unit in the same device.

【図3】 同送信部の動作を説明するためのデータの波
形図である。
FIG. 3 is a waveform diagram of data for explaining the operation of the transmission unit.

【図4】 同装置における受信部の構成を示すブロック
図である。
FIG. 4 is a block diagram illustrating a configuration of a receiving unit in the device.

【図5】 同受信部の動作を説明するためのデータの波
形図である。
FIG. 5 is a waveform chart of data for explaining the operation of the receiving unit.

【図6】 同受信部の動作を説明するための図である。FIG. 6 is a diagram for explaining the operation of the receiving unit.

【図7】 本発明の他の実施例に係るデータ通信装置の
ブロック図である。
FIG. 7 is a block diagram of a data communication device according to another embodiment of the present invention.

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

1…送信部、2…受信部、3a,3b…信号線。 Reference numeral 1 denotes a transmitting unit, 2 denotes a receiving unit, 3a and 3b: signal lines.

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 送信部から受信部まで第1の信号線を介
してマンチェスター符号からなる第1のデータを送信す
ると共に第2の信号線を介して前記第1のデータの論理
を反転させた第2のデータを送信し、 受信側で前記第1の信号線を介して受信したデータと前
記第2の信号線を介して受信したデータとを比較して、
両データが同一の論理レベルを示している場合には両デ
ータの符号状態からいずれか一方の受信データにエラー
が発生したと判定してもう一方の受信データを正しい受
信データとして正常処理し、前記第1及び第2の信号線
のいずれか一方からの受信データが途切れたときには他
方の信号線からの受信データを処理するようにしたこと
を特徴とするデータ通信方法。
1. A first data comprising a Manchester code is transmitted from a transmission unit to a reception unit via a first signal line, and the logic of the first data is inverted via a second signal line. Transmitting the second data, comparing the data received via the first signal line with the data received via the second signal line on the receiving side,
When both data indicate the same logical level, it is determined from the code state of both data that an error has occurred in one of the received data, the other received data is processed normally as correct received data, A data communication method, wherein when data received from one of the first and second signal lines is interrupted, data received from the other signal line is processed.
【請求項2】 前記第1の信号線及び第2の信号線のい
ずれか一方からの受信データが途切れたときには他方の
受信データを利用してマンチェスター符号のルールに従
い、ビット単位でのエラーチェックを行った上でビット
エラーがなければ前記他方の受信データを正常処理する
ことを特徴とする請求項1記載のデータ通信方法。
2. When received data from one of the first signal line and the second signal line is interrupted, an error check is performed on a bit-by-bit basis using the other received data in accordance with the Manchester code rule. 2. The data communication method according to claim 1, wherein the other received data is processed normally if there is no bit error.
【請求項3】 前記第1及び第2のデータは、所定周期
で最新のデータに更新されて前記送信部から前記受信部
へ送信され、前記正常処理では、受信側で受信された受
信データが所定回数連続してビットエラーがなく、且つ
所定回数連続して同じ値である場合に限り、前記受信デ
ータを受信確定データとして処理することを特徴とする
請求項1又は2記載のデータ通信方法。
3. The first and second data are updated to the latest data at a predetermined cycle and transmitted from the transmitting unit to the receiving unit. In the normal processing, received data received on a receiving side is 3. The data communication method according to claim 1, wherein the reception data is processed as reception confirmation data only when there is no bit error for a predetermined number of consecutive times and when the value is the same for a predetermined number of consecutive times.
【請求項4】 前記第1の信号線及び第2の信号線のい
ずれか一方からの受信データに所定時間連続してエラー
が発生したときには他方の受信データを処理しつつ警告
報知処理を実行するようにしたことを特徴とする請求項
1〜3のいずれか1項記載のデータ通信方法。
4. When an error occurs continuously for a predetermined time in data received from one of the first signal line and the second signal line, a warning notification process is executed while processing the other received data. The data communication method according to any one of claims 1 to 3, wherein:
【請求項5】 送信部と、受信部と、これらを接続する
第1及び第2の信号線とを備えて構成され、 前記送信部は、マンチェスター符号からなる第1のデー
タと、この第1のデータの論理を反転させた第2のデー
タをそれぞれ前記第1及び第2の信号線に出力し、 前記受信部は、前記第1及び第2の信号線をそれぞれを
介して受信された第1のデータ及び第2のデータの論理
レベルを比較して、両論理レベルが同一のレベルを示し
た場合には両データの符号状態からいずれか一方の受信
データにエラーが発生したと判定してもう一方の受信デ
ータを正しい受信データとして正常処理し、前記第1及
び第2の信号線のいずれか一方からの受信データが途切
れたときには他方の信号線からの受信データを処理する
ものであることを特徴とするデータ通信装置。
5. A transmitting unit, a receiving unit, and first and second signal lines connecting the transmitting unit and the receiving unit, the transmitting unit comprising: a first data comprising a Manchester code; Outputting the second data obtained by inverting the logic of the data to the first and second signal lines, respectively, wherein the receiving unit receives the second data through the first and second signal lines, respectively. The logical levels of the first data and the second data are compared, and if both logical levels indicate the same level, it is determined that an error has occurred in one of the received data from the code state of both data. Normal processing of the other reception data as correct reception data, and processing of reception data from the other signal line when reception data from one of the first and second signal lines is interrupted. Day characterized by Communication device.
【請求項6】 前記受信部は、前記第1の信号線及び第
2の信号線のいずれか一方からの受信データが途切れた
ときには、他方の受信データを利用してマンチェスター
符号のルールに従い、ビット単位でのエラーチェックを
行った上でビットエラーがなければ前記他方の受信デー
タを正常処理するものであることを特徴とする請求項5
記載のデータ通信装置。
6. The reception unit, when reception data from one of the first signal line and the second signal line is interrupted, using the other reception data and following a Manchester code rule. 6. The method according to claim 5, wherein, after performing an error check in units, if there is no bit error, the other received data is processed normally.
A data communication device as described.
【請求項7】 前記送信部は、前記第1及び第2のデー
タを所定周期で最新のデータに更新して前記受信部へ送
信し、 前記受信部は、前記正常処理として、前記受信側で受信
された受信データが所定回数連続してビットエラーがな
く、且つ所定回数連続して同じ値である場合に限り、前
記受信データを受信確定データとする処理を実行するこ
とを特徴とする請求項5又は6記載のデータ通信装置。
7. The transmission unit updates the first and second data to the latest data at a predetermined cycle and transmits the updated data to the reception unit. The reception unit performs the normal processing on the reception side. The process of setting the received data as reception-determined data only when the received data has no bit error for a predetermined number of consecutive times and has the same value for a predetermined number of consecutive times. 7. The data communication device according to 5 or 6.
【請求項8】 前記受信部は、前記第1の信号線及び第
2の信号線のいずれか一方からの受信データに所定時間
連続してエラーが発生したときに他方の受信データを処
理しつつ警告報知処理を実行するものであることを特徴
とする請求項5〜7のいずれか1項記載のデータ通信装
置。
8. The reception unit, when an error has occurred in reception data from one of the first signal line and the second signal line continuously for a predetermined time, processes the other reception data. 8. The data communication device according to claim 5, wherein the data communication device executes a warning notification process.
JP2000032879A 2000-02-10 2000-02-10 Data communication method and apparatus Expired - Lifetime JP4476411B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000032879A JP4476411B2 (en) 2000-02-10 2000-02-10 Data communication method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000032879A JP4476411B2 (en) 2000-02-10 2000-02-10 Data communication method and apparatus

Publications (2)

Publication Number Publication Date
JP2001223677A true JP2001223677A (en) 2001-08-17
JP4476411B2 JP4476411B2 (en) 2010-06-09

Family

ID=18557433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000032879A Expired - Lifetime JP4476411B2 (en) 2000-02-10 2000-02-10 Data communication method and apparatus

Country Status (1)

Country Link
JP (1) JP4476411B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006060704A (en) * 2004-08-23 2006-03-02 Fujitsu Ltd Transmitting terminal, receiving terminal and network redundant system
JP2006270201A (en) * 2005-03-22 2006-10-05 Denso Wave Inc Data reading apparatus
JP2010119461A (en) * 2008-11-17 2010-06-03 Olympus Medical Systems Corp Medical instrument system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006060704A (en) * 2004-08-23 2006-03-02 Fujitsu Ltd Transmitting terminal, receiving terminal and network redundant system
JP4570421B2 (en) * 2004-08-23 2010-10-27 富士通株式会社 Network redundancy system
JP2006270201A (en) * 2005-03-22 2006-10-05 Denso Wave Inc Data reading apparatus
JP4539392B2 (en) * 2005-03-22 2010-09-08 株式会社デンソーウェーブ Data reader
JP2010119461A (en) * 2008-11-17 2010-06-03 Olympus Medical Systems Corp Medical instrument system

Also Published As

Publication number Publication date
JP4476411B2 (en) 2010-06-09

Similar Documents

Publication Publication Date Title
JPS59163697A (en) Time sharing multiplex system used in electric system of automatically moving object
WO1983001134A1 (en) Multiple source clock encoded communications error detection circuit
US5390195A (en) Miller-squared decoder with erasure flag output
US6694377B1 (en) Communications interface for the serial transmission of digital data, and corresponding data transmission method
JP2004519134A (en) An encoder in a communication system that prevents encoded DC accumulation and can use coding violations for decoder synchronization and transmission error detection
US6642862B2 (en) Method for encoding/decoding digital data transmitted through a serial link, particularly of the 8B/10 type, and device for implementing same
US20090296859A1 (en) Automatic correction of data polarity on a differential serial bus
JP4476411B2 (en) Data communication method and apparatus
US4581741A (en) Error detection apparatus for data dependent coding circuitry
JPH0654475B2 (en) Device for detecting transition error
EP0355988A2 (en) Method and apparatus for transmitting and receiving characters using a balanced weight error correcting code
JP2951992B2 (en) Method and apparatus for transmitting information between stations of a communication network, especially for motor vehicles
RU2163400C1 (en) Universal hybrid method for single error correction in data transmission using binary-pulse manchester ii code
JPH0314259B2 (en)
US20060007026A1 (en) Data transmitting circuit and method based on differential value data encoding
US6859885B2 (en) Data reception method
US4809301A (en) Detection apparatus for bi-phase signals
JPH02113341A (en) Error correction system
JPS63284935A (en) Detecting system for collision of optical transceiver
WO2003105392A1 (en) Methods for use with timeslot identifiers in a timeslot-based protocol and apparatus
JPS625733A (en) Method and circuit for decoding
JP3488378B2 (en) Serial data communication device and error checking method for serial data communication device
JP2555582B2 (en) CMI code error detection circuit
JPH0129339B2 (en)
US20090135959A1 (en) Apparatus and method for detecting a missing pulse in complementary coded irregular signals

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061128

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090428

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091006

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091008

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100309

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100310

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 3