JP4476411B2 - Data communication method and apparatus - Google Patents

Data communication method and apparatus Download PDF

Info

Publication number
JP4476411B2
JP4476411B2 JP2000032879A JP2000032879A JP4476411B2 JP 4476411 B2 JP4476411 B2 JP 4476411B2 JP 2000032879 A JP2000032879 A JP 2000032879A JP 2000032879 A JP2000032879 A JP 2000032879A JP 4476411 B2 JP4476411 B2 JP 4476411B2
Authority
JP
Japan
Prior art keywords
data
signal line
received
reception
received data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2000032879A
Other languages
Japanese (ja)
Other versions
JP2001223677A (en
Inventor
清嗣 大庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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

Images

Description

【0001】
【発明の属する技術分野】
本発明は、送信部から受信部へ所定の信号線を介してデータを伝送するデータ通信方法及び装置に関し、特にマンチェスター符号を用いてデータを伝送するデータ通信方法及び装置に関する。
【0002】
【従来の技術】
同期通信システム等において伝送すべき直列2進信号に受信側で同期をとるためのクロックを含ませて伝送する種々の自己同期型の符号化伝送方式が知られている。中でもCSMA/CD方式のLAN等で用いられている符号化伝送方式としてマンチェスター符号化方式が知られている。マンチェスター符号は、1ビットのデータを2つの異なる論理エレメントの対を用いて2ビットに冗長化する方式で、データ“0”は前半の論理エレメントを“1”、後半の論理エレメントを“0”で表現し、データ“1”は前半の論理エレメントを“0”、後半の論理エレメントを“1”で表現する。これにより、ビット区間の中央で高低レベルが必ず反転し、同一レベルの論理エレメントの連続は2回以内となるので、これを再生クロックにより検証することで、ビット単位でのエラーチェックが可能になる。
【0003】
【発明が解決しようとする課題】
従来のマンチェスター符号化方式では、外部ノイズの影響などで前半の論理エレメントと後半の論理エレメントとが同一レベルとなったときに符号誤りが生じたとして受信側から送信側に再送要求を送出し、送信側で再送要求を受信したときには再度同じデータを再送する。このため、データ伝送は双方向になり、通信手順及び送受信装置の構成が複雑化する。
【0004】
また、通信システムにおいて一般に外部ノイズ(コモンモードノイズ)を除去するための技術の1つとして差動方式が知られている。この通信方式は、受信側で2本の通信線の差電圧を検出し、信号の論理レベルを判定することにより、コモンモードノイズを除去する。この差動方式をマンチェスター符号に適用したディファレンシャルマンチェスター符号方式も知られている。しかし、差動通信方式では、2本の信号線のうち一方が伝送不能になった場合、受信側での差電圧の検出が困難となり、最悪の場合はデータを復号することができないといった問題がある。
【0005】
本発明は、このような問題点を解決するためになされたもので、耐ノイズ性能が高く、しかも信号線の断線等に対するフェイルセーフ機能に優れたデータ通信方法及び装置を提供することを目的とする。
【0006】
【課題を解決するための手段】
本発明に係るデータ通信方法は、送信部から受信部までの第1の信号線を介して論理レベルが互いに異なる前半エレメントと後半エレメントのペアで1ビットのデータを構成するマンチェスター符号からなる第1のデータを送信すると共に第2の信号線を介して前記第1のデータの論理を反転させた第2のデータを送信し、受信側で前記第1の信号線を介して受信したデータと前記第2の信号線を介して受信したデータとを比較して、両データのいずれか一方のエレメントが同一の論理レベルを示している場合には前半エレメントと後半エレメントが同一の論理レベルを示している方の受信データにエラーが発生したと判定してもう一方の受信データを正しい受信データとして正常処理し、前記第1及び第2の信号線のいずれか一方からの受信データが途切れたときには他方の信号線からの受信データを処理するようにしたことを特徴とする。
【0007】
また、本発明に係るデータ通信装置は、送信部と、受信部と、これらを接続する第1及び第2の信号線とを備えて構成され、前記送信部は、論理レベルが互いに異なる前半エレメントと後半エレメントのペアで1ビットのデータを構成するマンチェスター符号からなる第1のデータと、この第1のデータの論理を反転させた第2のデータをそれぞれ前記第1及び第2の信号線に出力し、前記受信部は、前記第1及び第2の信号線をそれぞれ介して受信された第1のデータ及び第2のデータの論理レベルを比較して、両データのいずれか一方のエレメントの論理レベルが同一のレベルを示した場合には前半エレメントと後半エレメントが同一の論理レベルを示している方の受信データにエラーが発生したと判定してもう一方の受信データを正しい受信データとして正常処理し、前記第1及び第2の信号線のいずれか一方からの受信データが途切れたときには他方の信号線からの受信データを処理するものであることを特徴とする。
【0008】
本発明によれば、第1及び第2の信号線をそれぞれを介して受信された第1のデータ及び第2のデータが互いに論理レベルを反転させたデータであるから、外部ノイズ(コモンモードノイズ)がデータの論理レベルを反転させた場合でも、その影響は必ず一方のデータのみに現れて、他方のデータの論理レベルは変化しない。本発明では、上記2つのデータの論理レベルを比較して、両論理レベルが同一のレベルを示した場合には両データの符号状態からいずれか一方の受信データにエラーが発生したと判定し、もう一方の受信データを正しい受信データとして正常処理するので、データの再送要求をする必要がない。このため、データ通信は単方向通信で良くなり、送信側は送信専用、受信側は受信専用の簡単なハードウェア構成とすることが可能となる他、通信手順も簡素化可能なためプログラム格納領域も少なくて済む。これにより、通信システム全体のコストダウンを図ることができる。
【0009】
また、本発明によれば、第1及び第2の信号線からの受信データをそれぞれ個別に処理して、これら信号線のいずれか一方からの受信データが途切れたときには、他方の信号線からの受信データを処理するようにしているので、一方の信号線が断線した場合でも直ちに通信が不能になることがなく、フェイルセーフ機能に優れた通信方式を実現することができる。
【0010】
本発明のより具体的な態様においては、第1の信号線及び第2の信号線のいずれか一方からの受信データが途切れたときには他方の受信データを利用してマンチェスター符号のルールに従い、ビット単位でのエラーチェックを行った上でビットエラーがなければ前記他方の受信データを正常処理する。これにより、一方の信号線が断線した場合でも、受信データの信頼性を損なわずにデータ通信を行うことができる。なお、第1及び第2の信号線のいずれか一方からの受信データに所定時間連続してエラーが発生する場合、警告表示や警告音を出力することも可能である。
【0011】
また、単方向通信において、第1及び第2のデータが所定周期で最新のデータに更新されて前記送信部から前記受信部へ送信される場合、正常処理では、受信側で受信された受信データが所定回数連続してビットエラーがなく、且つ所定回数連続して同じ値である場合に限り、前記受信データを受信確定データとして処理する。このような構成によれば、一方の受信データにエラーが発生した場合でも他方の受信データによって正しい受信データが得られるので、所定回数連続してビットエラーがない状態が続き、受信確定データを得るまでに要する時間も短縮でき、受信側の応答性能の向上にもつながる。
【0012】
【発明の実施の形態】
以下、図面に示した実施例を参照して、本発明を詳細に説明する。
図1は、本発明の一実施例に係るデータ通信装置の概略構成を示す図である。このデータ通信装置は、送信部1、受信部2及びこれらを接続する1対の信号線3a,3bから構成される。自動車用のLANシステムを想定すると、送信部1は、例えばエンジン制御ユニット等であり、受信部2はコンビネーションメータ等である。送信部1から受信部2への信号線3a,3bを介した通信は単方向通信であり、信号線3a,3bには、それぞれ非反転マンチェスター符号によるデータAと、反転マンチェスター符号からなるデータBとが伝送される。
【0013】
送信部1は、例えば図2に示すように、NRZ(Non-Return to Zero)符号からなる送信データと、データ周期と同一の周期を持つクロックCK1とを排他的論理和するXORゲート11と、このXORゲート11の出力を反転させるインバータ12とを備えて構成されている。XORゲート11で、図3に示すように、送信データとクロックCK1との排他的論理和をとることで非反転マンチェスター符号からなるデータAが得られ、これをインバータ12で反転することにより、データBが得られる。送信部1は、これらデータA,Bを信号線3a,3bを介して受信部2に送信する。
【0014】
受信部2は、データA,Bの論理レベルを比較して、両論理レベルが同一のレベルを示した場合には両データの符号状態からいずれか一方の受信データにエラーが発生したと判定してもう一方の受信データを正しい受信データとして処理し、信号線3a,3bのいずれか一方からの受信データが途切れたときには他方の信号線からの受信データを処理する。
【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倍の周波数のクロックCK3を再生する。
【0016】
また、波形整形回路21の出力A′は、再生されたクロックCK2によって波形のエッジとエッジの中間当たりをサンプリングされて、2段のD型フリップフロップ25,26に順次格納される。波形整形回路22の出力B′もこれと同様に、再生されたクロックCK3に従って、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を駆動する。
【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,26,27,28に格納された時点で、これら4つのデータは、図6の(a)又は(f)のように、上下左右とも異なる論理レベルとなる。そして、同図(a)のようにデータA′の前半のエレメントが“1”、後半のエレメントが“0”のとき、受信データは“0”であると判定し、同図(f)のようにデータA′の前半のエレメントが“0”、後半のエレメントが“1”のとき、受信データは“1”であると判定する。
【0018】
図5に示すように、信号線3a,3bに同相ノイズが重畳すると、いずれか一方のデータA′又はB′にビット誤りが発生し、図6(b)〜(e)及び(g)〜(j)に斜線で示すように、データA′,B′の論理レベルが等しくなる。この場合、他方のデータA′又はB′については前半と後半のエレメントの論理レベルが異なる正しいデータとなっているので、この正しい方のデータに基づいて受信データが同図(b)〜(e)の場合には“0”、同図(g)〜(j)の場合には“1”と判定することができる。
【0019】
また、所定時間エラーが続いた場合には、エラーが生じている方のデータを伝送する信号線3a又は3bが断線しているか、ある一定周期で発生するノイズが常に通信データの同じ位置に乗っている場合が考えられるが、例えば連続的に同一レベル又は同一パターン(0レベルをキープ等)のエラーが所定時間続いた場合には、断線の可能性があるものと判断して警告報知部30を介して警告表示するか又は警告音を出力する。この場合、ビットエラーがあった場合、最新データの受信確定までにかかる時間は2本の信号線3a,3bを用いた場合に比べて多くなるものの、正常な方の信号線を用いてデータ伝送をそのまま継続することができる。
【0020】
なお、以上の実施例では、送信部1及び受信部2が共にハードウェアによって構成されていたが、例えば図7に示すように、送信部1を送信ドライバ41と1チップマイコン42とで構成すると共に、受信部2を受信ドライバ51と1チップマイコン52と警報報知部30とで構成することもできる。この場合、送信部1では、NRZ符号からマンチェスター符号へのコーディング及び反転マンチェスター符号の生成を1チップマイコン41によるソフトウェアにて実現し、受信部2では、反転及び非反転マンチェスター符号からNRZ符号へのデコーディング及びエラーチェックを1チップマイコン52によるソフトウェアで実現することができ、ハードウェア構成が簡単になる。
【0021】
【発明の効果】
以上述べたように本発明によれば、2つのデータの論理レベルを比較して、両論理レベルが同一のレベルを示した場合には両データの符号状態からいずれか一方の受信データにエラーが発生したと判定し、もう一方の受信データを正しい受信データとして処理するので、データの再送要求をする必要がない。このため、データ通信は単方向通信で良くなり、システムの構成を単純化することができるという効果を奏する。
【図面の簡単な説明】
【図1】 本発明の一実施例に係るデータ通信装置のブロック図である。
【図2】 同装置における送信部の構成を示すブロック図である。
【図3】 同送信部の動作を説明するためのデータの波形図である。
【図4】 同装置における受信部の構成を示すブロック図である。
【図5】 同受信部の動作を説明するためのデータの波形図である。
【図6】 同受信部の動作を説明するための図である。
【図7】 本発明の他の実施例に係るデータ通信装置のブロック図である。
【符号の説明】
1…送信部、2…受信部、3a,3b…信号線。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data communication method and apparatus for transmitting data from a transmission unit to a reception unit via a predetermined signal line, and more particularly to a data communication method and apparatus for transmitting data using a Manchester code.
[0002]
[Prior art]
Various self-synchronous encoding 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 synchronization on the receiving side. Among them, the Manchester encoding method is known as an encoding transmission method used in a CSMA / CD LAN or the like. Manchester code is a system in which 1-bit data is made redundant into 2 bits by using two pairs of different logic elements. Data “0” is “1” for the first half logical element and “0” for the second half logical element. In the data “1”, the first logical element is represented by “0” and the second logical element is represented by “1”. As a result, the high and low levels are always inverted at the center of the bit interval, and the continuation of the logic elements of the same level is within two times. By checking this with the reproduction clock, it is possible to perform an error check in bit units. .
[0003]
[Problems to be solved by the invention]
In the conventional Manchester encoding method, a retransmission request is sent from the reception side to the transmission side as a code error occurs when the first and second logical elements are at the same level due to the influence of external noise, etc. When the transmission side receives a retransmission request, the same data is retransmitted again. For this reason, data transmission is bidirectional, and the communication procedure and the configuration of the transmission / reception apparatus are complicated.
[0004]
In addition, a differential method is generally known as one of techniques for removing external noise (common mode noise) in a communication system. In this communication method, common mode noise is removed by detecting a voltage difference between two communication lines on the receiving side and determining a logic level of the signal. A differential Manchester code system in which this differential system is applied to Manchester codes is also known. However, in the differential communication method, when one of the two signal lines becomes impossible to transmit, it is difficult to detect the differential voltage on the receiving side, and in the worst case, the data cannot be decoded. is there.
[0005]
The present invention has been made to solve such problems, and an object thereof is to provide a data communication method and apparatus having high noise resistance and an excellent fail-safe function against signal line disconnection and the like. To do.
[0006]
[Means for Solving the Problems]
The data communication method according to the present invention includes a first code comprising a Manchester code comprising 1-bit data by a pair of first half elements and second half elements having different logic levels via a first signal line from a transmission section to a reception section. And the second data obtained by inverting the logic of the first data via the second signal line, and the data received via the first signal line on the receiving side and the data Compared with the data received via the second signal line, if either element of both data indicates the same logic level, the first half element and the second half element indicate the same logic level. it is determined that an error has occurred in the received data of the person who is normally treated as a correct received data the other of the received data, received from one of the first and second signal lines Characterized by being adapted to process the received data from the other signal line when the data is interrupted.
[0007]
The data communication apparatus according to the present invention includes a transmission unit, a reception unit, and first and second signal lines that connect the transmission unit, and the transmission unit includes first half elements having different logic levels. The first data consisting of Manchester code that constitutes 1-bit data with a pair of latter elements and the second data obtained by inverting the logic of the first data are applied to the first and second signal lines, respectively. And the receiving unit compares the logical levels of the first data and the second data received via the first and second signal lines, respectively , and correct the other received data to determine that an error has occurred in the received data towards the element first and second halves element indicates the same logic level when the logic level showed the same level Normally processed as reception data, and wherein the when the received data from one of the first and second signal line is interrupted is to process the received data from the other signal line.
[0008]
According to the present invention, since the first data and the second data received through the first and second signal lines are data obtained by inverting the logic levels, external noise (common mode noise) is obtained. ) Inverts the logic level of the data, the influence always appears only in one data, and the logic level of the other data does not change. In the present invention, when the logical levels of the two data are compared and 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, Since the other received data is normally processed as correct received data, there is no need to request data retransmission. For this reason, data communication can be unidirectional communication, and the transmission side can be a simple hardware configuration dedicated to transmission and the reception side can be dedicated to reception, and the communication procedure can be simplified, so the program storage area Less. Thereby, the cost reduction of the whole communication system can be aimed at.
[0009]
Further, according to the present invention, when the reception data from the first and second signal lines are individually processed and the reception data from either one of these signal lines is interrupted, the data from the other signal line is interrupted. Since the received data is processed, even if one of the signal lines is disconnected, communication is not immediately disabled, and a communication method having an excellent fail-safe function can be realized.
[0010]
In a more specific aspect of the present invention, when the reception data from one of the first signal line and the second signal line is interrupted, the other reception data is used to comply with the rules of Manchester code and are in bit units If there is no bit error after the error check in step 1, the other received data is processed normally. Thereby, even when one signal line 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 received data from one of the first and second signal lines, a warning display or a warning sound can be output.
[0011]
In the unidirectional communication, when the first and second data are updated to the latest data at a predetermined cycle and transmitted from the transmission unit to the reception unit, the reception data received on the reception side in normal processing The received data is processed as reception confirmed data only when there is no bit error continuously for the predetermined number of times and the same value continuously for the predetermined number of times. According to such a configuration, even when an error occurs in one received data, the correct received data can be obtained by the other received data, so that there is no bit error continuously for a predetermined number of times, and reception confirmed data is obtained. The time required to complete the process can be shortened and the response performance on the receiving side can be improved.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the present invention will be described in detail with reference to the embodiments shown in the drawings.
FIG. 1 is a diagram showing a schematic configuration of a data communication apparatus according to an embodiment of the present invention. This data communication apparatus includes a transmission unit 1, a reception unit 2, and a pair of signal lines 3a and 3b connecting them. Assuming a LAN system for automobiles, the transmission unit 1 is, for example, an engine control unit, and the reception unit 2 is a combination meter or the like. Communication from the transmission unit 1 to the reception unit 2 via the signal lines 3a and 3b is unidirectional communication. The signal lines 3a and 3b include data A based on non-inverted Manchester code and data B composed of inverted Manchester code, respectively. Are transmitted.
[0013]
For example, as illustrated in FIG. 2, the transmission unit 1 includes an XOR gate 11 that exclusively ORs transmission data including an NRZ (Non-Return to Zero) code and a clock CK1 having the same cycle as the data cycle. The inverter 12 for inverting the output of the XOR gate 11 is provided. As shown in FIG. 3, the XOR gate 11 obtains data A composed of non-inverted Manchester code by taking the exclusive OR of the transmission data and the clock CK1, and by inverting this with the inverter 12, the data B is obtained. The transmission unit 1 transmits the data A and B to the reception unit 2 via the signal lines 3a and 3b.
[0014]
The receiving unit 2 compares the logical levels of the data A and B, and if both logical levels indicate the same level, it determines that an error has occurred in one of the received data from the code state of both data. 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]
The receiving unit 2 is configured as shown in FIG. 4, for example. The data A is binarized at a predetermined threshold level TH1 by the waveform shaping circuit 21, and the waveform of the data B is binarized at a predetermined threshold level TH2 by the waveform shaping circuit 22. Waveform shaping. The outputs A ′ and B ′ of the waveform shaping circuits 21 and 22 are input to the clock recovery circuits 23 and 24, respectively. The clock recovery circuit 23 extracts a clock component included in the data A ′ and multiplies it to regenerate the clock CK2 having a frequency twice that of the clock CK1 described above. Similarly, the clock recovery circuit 24 extracts a clock component included in the data B ′ and multiplies it to reproduce the clock CK3 having a frequency twice that of the clock CK1 described above.
[0016]
Further, the output A ′ of the waveform shaping circuit 21 is sampled at the edge between the edges of the waveform by the regenerated clock CK 2 and is sequentially stored in the two-stage D-type flip-flops 25 and 26. Similarly, the output B ′ of the waveform shaping circuit 22 is sequentially stored in the two-stage D-type flip-flops 27 and 28 in accordance with the recovered clock CK3. The 4-bit data stored in these D-type flip-flops 25 to 28 is supplied to the determination circuit 29. The determination circuit 29 is connected to the D-type flip-flop every time a pair of the first half element and the second half element constituting 1-bit data is set in the D-type flip-flops 25 to 28 every two cycles of the clocks CK2 and CK3. The received data is determined based on the state of the 4-bit data stored in the blocks 25 to 28, and the received data of the NRZ code is output. Further, the determination circuit 29 identifies the disconnection of the signal lines 3a and 3b from the 4-bit data pattern, and when it is determined that the disconnection has occurred, the determination circuit 29 drives the warning notification unit 30 including a display device, a warning sound generator, and the like.
[0017]
Next, the operation of this data communication apparatus will be described.
FIG. 5 shows a timing chart of signals at various parts for explaining the operation of this apparatus. FIG. 6 is a diagram for explaining the relationship between the data values stored in the D-type flip-flops 25, 26, 27, and 28 in FIG. 4 and the determination result in the determination circuit 29. Two bits on the right side of the square indicate the preceding bits (first half element), and two bits on the left side indicate the following bits (second half element). FIGS. 6A and 6F show a state in which there is no bit error, and FIGS. 6B to 6E and FIG. 6G and FIG. The error in the first half of FIG. 5 is an example in which the element in the first half of the data A ′ is erroneously changed 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 half of the data B ′ is erroneously changed from 1 to 0, and corresponds to the pattern in FIG.
When there is no sign 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, so a pair of 1-bit data indicating data When the elements are stored in the D-type flip-flops 25, 26, 27, and 28, these four data have different logic levels in the upper, lower, left, and right directions as shown in (a) or (f) of FIG. Then, when the first half element of the data A ′ is “1” and the second half element is “0” as shown in FIG. 5A, it is determined that the received data is “0”. Thus, when the first half element of data A ′ is “0” and the second half element is “1”, it is determined that the received data is “1”.
[0018]
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. 6 (b) to 6 (e) and 6 (g). As indicated by hatching in (j), the logical levels of the data A ′ and B ′ are equal. In this case, since the other data A ′ or B ′ is correct data in which the logic levels of the first and second elements are different, the received data is based on this correct data. ) Can be determined as “0”, and in the cases (g) to (j) in FIG.
[0019]
If the error continues for a predetermined time, 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 on the same position in the communication data. For example, when errors of the same level or the same pattern (keep level 0, etc.) continue for a predetermined time, it is determined that there is a possibility of disconnection, and the warning notification unit 30 A warning is displayed or a warning sound is output. In this case, when there is a bit error, the time required to confirm 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 is.
[0020]
In the above embodiment, the transmission unit 1 and the reception unit 2 are both configured by hardware. For example, as illustrated in FIG. 7, the transmission unit 1 is configured by a transmission driver 41 and a one-chip microcomputer 42. At the same time, the receiving unit 2 can be constituted by the receiving driver 51, the one-chip microcomputer 52, and the alarm notification unit 30. In this case, the transmission unit 1 realizes the coding from the NRZ code to the Manchester code and the generation of the inverted Manchester code by software by the one-chip microcomputer 41, and the reception unit 2 converts the inverted and non-inverted Manchester code to the NRZ code. Decoding and error checking can be realized by software using the one-chip microcomputer 52, and the hardware configuration is simplified.
[0021]
【The invention's effect】
As described above, according to the present invention, when the logical levels of two data are compared and both logical levels indicate the same level, an error is detected in one of the received data from the code state of both data. Since it is determined that it has occurred and the other received data is processed as correct received data, there is no need to request retransmission of data. For this reason, unidirectional communication is sufficient for data communication, and the system configuration can be simplified.
[Brief description of the drawings]
FIG. 1 is a block diagram of a data communication apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of a transmission unit in the apparatus.
FIG. 3 is a data waveform diagram for explaining the operation of the transmission unit;
FIG. 4 is a block diagram showing a configuration of a receiving unit in the apparatus.
FIG. 5 is a data waveform diagram for explaining the operation of the receiving unit;
FIG. 6 is a diagram for explaining an operation of the receiving unit.
FIG. 7 is a block diagram of a data communication apparatus according to another embodiment of the present invention.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Transmission part, 2 ... Reception part, 3a, 3b ... Signal line.

Claims (6)

送信部から受信部までの第1の信号線を介して論理レベルが互いに異なる前半エレメントと後半エレメントのペアで1ビットのデータを構成するマンチェスター符号からなる第1のデータを送信すると共に第2の信号線を介して前記第1のデータの論理を反転させた第2のデータを送信し、
受信側で前記第1の信号線を介して受信したデータと前記第2の信号線を介して受信したデータとを比較して、両データのいずれか一方のエレメントが同一の論理レベルを示している場合には前半エレメントと後半エレメントが同一の論理レベルを示している方の受信データにエラーが発生したと判定してもう一方の受信データを正しい受信データとして正常処理し、前記第1及び第2の信号線のいずれか一方からの受信データが途切れたときには他方の信号線からの受信データを処理する
ようにしたことを特徴とするデータ通信方法。
The first data consisting of the Manchester code that constitutes 1-bit data with a pair of the first half element and the second half element having different logic levels is transmitted via the first signal line from the transmission section to the reception section, and the second data Transmitting second data obtained by inverting the logic of the first data via a signal line;
The data received via the first signal line on the receiving side is compared with the data received via the second signal line, and either element of both data indicates the same logic level. If the first half element and the latter half element indicate the same logic level, it is determined that an error has occurred in the received data, and the other received data is processed normally as the correct received data. A data communication method characterized in that when the reception data from one of the two signal lines is interrupted, the reception data from the other signal line is processed.
前記第1の信号線及び第2の信号線のいずれか一方からの受信データが途切れたときには他方の受信データを利用してマンチェスター符号のルールに従い、ビット単位でのエラーチェックを行った上でビットエラーがなければ前記他方の受信データを正常処理することを特徴とする請求項1記載のデータ通信方法。  When the received data from either the first signal line or the second signal line is interrupted, the other received data is used to check the error in bit units according to the rules of Manchester code. 2. The data communication method according to claim 1, wherein if there is no error, the other received data is normally processed. 前記第1の信号線及び第2の信号線のいずれか一方からの受信データに所定時間連続してエラーが発生したときには他方の受信データを処理しつつ警告報知処理を実行するようにしたことを特徴とする請求項1又は2記載のデータ通信方法。  The warning notification process is executed while processing the other received data when an error occurs continuously for a predetermined time in the received data from one of the first signal line and the second signal line. 3. The data communication method according to claim 1, wherein the data communication method is a data communication method. 送信部と、受信部と、これらを接続する第1及び第2の信号線とを備えて構成され、
前記送信部は、論理レベルが互いに異なる前半エレメントと後半エレメントのペアで1ビットのデータを構成するマンチェスター符号からなる第1のデータと、この第1のデータの論理を反転させた第2のデータをそれぞれ前記第1及び第2の信号線に出力し、
前記受信部は、前記第1及び第2の信号線をそれぞれ介して受信された第1のデータ及び第2のデータの論理レベルを比較して、両データのいずれか一方のエレメントの論理レベルが同一のレベルを示した場合には前半エレメントと後半エレメントが同一の論理レベルを示している方の受信データにエラーが発生したと判定してもう一方の受信データを正しい受信データとして正常処理し、前記第1及び第2の信号線のいずれか一方からの受信データが途切れたときには他方の信号線からの受信データを処理するものである
ことを特徴とするデータ通信装置。
A transmission unit, a reception unit, and first and second signal lines connecting them;
The transmission unit includes first data composed of a Manchester code that forms 1-bit data with a pair of first and second half elements having different logic levels, and second data obtained by inverting the logic of the first data. Are respectively output to the first and second signal lines,
The receiving unit compares the logic levels of the first data and the second data received via the first and second signal lines, respectively, and the logic level of one element of both data is When the same level is indicated, it is determined that an error has occurred in the received data in which the first half element and the second half element indicate the same logical level, and the other received data is normally processed as correct received data. A data communication apparatus characterized by processing reception data from the other signal line when reception data from either one of the first and second signal lines is interrupted.
前記受信部は、前記第1の信号線及び第2の信号線のいずれか一方からの受信データが途切れたときには、他方の受信データを利用してマンチェスター符号のルールに従い、ビット単位でのエラーチェックを行った上でビットエラーがなければ前記他方の受信データを正常処理するものである
ことを特徴とする請求項4記載のデータ通信装置。
When the reception data from one of the first signal line and the second signal line is interrupted, the reception unit uses the other reception data to check an error in bit units according to the rules of Manchester code. 5. The data communication apparatus according to claim 4, wherein the other received data is normally processed if there is no bit error after performing.
前記受信部は、前記第1の信号線及び第2の信号線のいずれか一方からの受信データに所定時間連続してエラーが発生したときに他方の受信データを処理しつつ警告報知処理を実行するものである
ことを特徴とする請求項4又は5記載のデータ通信装置。
The receiving unit executes a warning notification process while processing the other received data when an error occurs in the received data from either the first signal line or the second signal line for a predetermined time continuously. The data communication device according to claim 4 or 5, wherein
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 JP2001223677A (en) 2001-08-17
JP4476411B2 true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4570421B2 (en) * 2004-08-23 2010-10-27 富士通株式会社 Network redundancy system
JP4539392B2 (en) * 2005-03-22 2010-09-08 株式会社デンソーウェーブ Data reader
JP5307518B2 (en) * 2008-11-17 2013-10-02 オリンパスメディカルシステムズ株式会社 Medical equipment system

Also Published As

Publication number Publication date
JP2001223677A (en) 2001-08-17

Similar Documents

Publication Publication Date Title
JPS60149247A (en) Binary data transmitting method
JP3135641B2 (en) Differential signal receiving circuit
EP0090019A4 (en) Multiple source clock encoded communications error detection circuit.
JP4476411B2 (en) Data communication method and apparatus
US6642862B2 (en) Method for encoding/decoding digital data transmitted through a serial link, particularly of the 8B/10 type, and device for implementing same
JPH059975B2 (en)
RU2163400C1 (en) Universal hybrid method for single error correction in data transmission using binary-pulse manchester ii code
JPH0314259B2 (en)
JPH02113341A (en) Error correction system
JP3888601B2 (en) Data receiver
JP2806856B2 (en) Diagnostic device for error detection and correction circuit
JP3488378B2 (en) Serial data communication device and error checking method for serial data communication device
JP2555582B2 (en) CMI code error detection circuit
JPS6340384B2 (en)
US20090135959A1 (en) Apparatus and method for detecting a missing pulse in complementary coded irregular signals
JPS625733A (en) Method and circuit for decoding
JP2640909B2 (en) Digital information transmission path abnormality detection method
JPH01297925A (en) Data transmission system
JPH0118607B2 (en)
JPH0340987B2 (en)
JPS6253100B2 (en)
JP2759607B2 (en) Synchronous signal detection device
JPS58132835A (en) Decoder device
JPH07209382A (en) Tester of pseudorandom bit data
JPS61281736A (en) Coding system

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