JPH0795222A - Communication equipment - Google Patents

Communication equipment

Info

Publication number
JPH0795222A
JPH0795222A JP5237891A JP23789193A JPH0795222A JP H0795222 A JPH0795222 A JP H0795222A JP 5237891 A JP5237891 A JP 5237891A JP 23789193 A JP23789193 A JP 23789193A JP H0795222 A JPH0795222 A JP H0795222A
Authority
JP
Japan
Prior art keywords
transmission
data
transmission line
transmission data
level
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
JP5237891A
Other languages
Japanese (ja)
Other versions
JP3252556B2 (en
Inventor
Masayuki Kobayashi
正幸 小林
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.)
Denso Corp
Original Assignee
NipponDenso Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP23789193A priority Critical patent/JP3252556B2/en
Publication of JPH0795222A publication Critical patent/JPH0795222A/en
Application granted granted Critical
Publication of JP3252556B2 publication Critical patent/JP3252556B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide a communication equipment in which the abnormality of a transmission line can be recognized by a simple constitution in a data communications system such as a CSMA/CD system. CONSTITUTION:A reception control part 20 of the communication equipment is provided with a CS detecting part 28 which outputs a transmission permitting signal IDLE for permitting the transmission of transmission data to a transmission control part 16, and an SOF error detecting part 30 which compares the transmission data transmitted by the transmission control part 16 and fetched from a transmission line with the prescribed pattern of a transmission control character SOF indicating the start of the transmission data, and outputs a SOF error signal ERR indicating the abnormality of the transmission line when they do not match. Then, the CS detecting part 28 permits the transmission of the transmission data when the transmission line is successively set in an active or in-active level in more than a prescribed time. Thus, the abnormality of the transmission line can be detected by the SOF error detecting part 30 without providing a fail detecting circuit.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、デジタルデータを1ビ
ット毎にパルス幅変調してシリアル通信を行なうCSM
A/CD方式等のデータ通信システムに使用される通信
装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to CSM for performing serial communication by pulse-width modulating digital data bit by bit.
The present invention relates to a communication device used in a data communication system such as an A / CD system.

【0002】[0002]

【従来の技術】従来より、伝送線路に他の通信装置から
の伝送データが流れていない時に、伝送データの送信を
開始し、伝送データの送信中は、送信中の伝送データと
他の通信装置からの伝送データとの伝送線路上での衝突
を監視し、伝送データの衝突時には、伝送データの送信
を停止し、所定時間経過後、伝送データの送信を再開す
る、CSMA/CD方式のデータ通信システムに使用さ
れる通信装置が知られている。
2. Description of the Related Art Conventionally, when transmission data from another communication device is not flowing on a transmission line, transmission of the transmission data is started, and during transmission of the transmission data, the transmission data being transmitted and another communication device are being transmitted. CSMA / CD system data communication that monitors the collision of the transmission data with the transmission data from the transmission line on the transmission line, stops the transmission of the transmission data when the transmission data collides, and restarts the transmission of the transmission data after a lapse of a predetermined time. Communication devices used in systems are known.

【0003】またこうしたCSMA/CD方式では、伝
送データ衝突時に伝送データを送信していた通信装置が
同時に送信を停止してしまうため、近年では、伝送デー
タの衝突時には、優先順位の高い伝送データを送信して
いる通信装置が伝送データを送信し続け、優先順位の低
い伝送データを送信している通信装置が伝送データの送
信を停止するようにしたデータ通信システムが考えられ
ており、その一つとして、国際標準であるJ1850規
格なども知られている。
Further, in such CSMA / CD system, since the communication device which has transmitted the transmission data at the time of the transmission data collision simultaneously stops the transmission, in recent years, when the transmission data collides, the transmission data having a high priority is transmitted. A data communication system is considered in which a transmitting communication device continues to transmit transmission data, and a communication device transmitting low-priority transmission data stops transmitting transmission data. For example, the J1850 standard, which is an international standard, is also known.

【0004】このJ1850規格は、上記CSMA/C
D方式のデータ通信システムに非破壊的アービットレー
ション機能を付加するものであり、この規格を満足する
通信装置は、自らが出力した伝送データが伝送線路を流
れているか否かを、伝送データの1ビット毎に確認し、
自らが出力した伝送データと同一のデータが伝送線路に
流れていれば、伝送データの送信を継続し、自らが出力
した伝送データと同一のデータが伝送線路に流れていな
ければ、伝送データの送信を中止する。
This J1850 standard is based on the above CSMA / C.
A non-destructive arbitration function is added to a D-type data communication system, and a communication device satisfying this standard determines whether or not the transmission data output by itself is flowing through a transmission line. Check every bit,
If the same data as the transmission data output by itself is flowing on the transmission line, the transmission of the transmission data is continued, and if the same data as the transmission data output by itself is not flowing on the transmission line, the transmission data is transmitted. To cancel.

【0005】即ち、図7(a)に示すように、J185
0規格においては、デジタルデータの「1」は「HL
L」のパタンで、またデジタルデータの「0」は、「H
HL」のパタンで伝送線路上を伝送される。そして、別
々の通信装置が同時に送信を開始し、一方の通信装置が
「1」、他方の通信装置が「0」を送出した場合、伝送
線路上ではアクティブレベル(ここではHighレベル)が
非アクティブレベル(Low レベル)よりも優性なので伝
送データは「HHL」となって各通信装置に受信され
る。従って、前者の通信装置は自分が送出した伝送デー
タと一致しないので送信を停止し、後者の通信装置は伝
送データの送信を継続する。
That is, as shown in FIG. 7 (a), J185
In the 0 standard, "1" of digital data is "HL".
The pattern of "L" and "0" of digital data is "H".
It is transmitted on the transmission line in the pattern of "HL". Then, when different communication devices simultaneously start transmission and one communication device sends out "1" and the other communication device sends out "0", the active level (here, High level) is inactive on the transmission line. Since it is more dominant than the level (Low level), the transmission data becomes “HHL” and is received by each communication device. Therefore, the former communication device stops transmission because it does not match the transmission data transmitted by itself, and the latter communication device continues transmission of transmission data.

【0006】このように複数の通信装置が同時に送信を
開始した場合、優先順位の低い伝送データを送信した通
信装置が、順次、伝送データの送信を停止し、最終的に
は唯一の通信装置のみが伝送データの送信を継続するこ
ととなる。また、J1850規格のデータ通信システム
においては、図7(b)に示すように、他の通信装置が
伝送データを送出し終えた後、伝送データの末尾に位置
する伝送制御キャラクタ(EOD/EOF/IFS)を
含め9クロック以上連続したLow レベル(CS)を確認
できた場合に、通信装置は伝送データを伝送線路へ送出
することができる。
When a plurality of communication devices simultaneously start transmission in this way, the communication device that has transmitted the transmission data with the lower priority sequentially stops the transmission of the transmission data, and finally only one communication device is transmitted. Will continue to transmit the transmission data. Further, in the data communication system of the J1850 standard, as shown in FIG. 7B, after another communication device finishes sending the transmission data, the transmission control character (EOD / EOF / The communication device can send the transmission data to the transmission line when the low level (CS) including 9 consecutive clocks including IFS) can be confirmed.

【0007】ところで、このような通信システムにおい
て、伝送線路が電源やグランドに短絡するなどしてレベ
ルが固定されてしまう異常(フェール)が発生した場
合、伝送データの送受信が不可能となるのでこれを検出
して、異常に対応する処理を行なわせる必要がある。
By the way, in such a communication system, when an abnormality (failure) occurs in which the level is fixed by short-circuiting the transmission line to the power supply or the ground, it becomes impossible to transmit / receive the transmission data. It is necessary to detect and detect the abnormality and perform a process corresponding to the abnormality.

【0008】このうち、非アクティブレベルにフェール
している場合、即ち、伝送線路上の信号レベルがLow レ
ベルに固定されている場合は、みかけ上は伝送データの
送信が可能な状態と同じであるので、伝送データの送信
は許可され、伝送データが送信される。この時、伝送線
路はフェールしているので、送信した伝送データと伝送
線路上のデータとは当然一致しない。そこで従来は、伝
送線路上の伝送データと、伝送データの開始を示す伝送
制御キャラクタSOFの所定パタン「HHHHLL」と
が一致するか否かをチェックすることにより、この伝送
線路の異常を検出していた。
Of these, when the signal has failed to the inactive level, that is, when the signal level on the transmission line is fixed to the low level, it is apparently the same as the state in which the transmission data can be transmitted. Therefore, the transmission of the transmission data is permitted and the transmission data is transmitted. At this time, since the transmission line has failed, the transmitted transmission data and the data on the transmission line do not match. Therefore, conventionally, an abnormality of this transmission line is detected by checking whether or not the transmission data on the transmission line and a predetermined pattern “HHHHLL” of the transmission control character SOF indicating the start of the transmission data match. It was

【0009】また、アクティブレベルにフェールしてい
る場合、即ち、伝送線路の信号レベルはHighレベルに固
定されている場合は、伝送データを送信することができ
ず、上記のように送信した伝送データのエラー発生状態
から伝送線路の異常を判断することはできない。そこで
従来は、通信装置とは別に伝送線路上に専用のフェール
検出回路を設けることにより、伝送線路の状態を常時監
視し、アクティブレベルのフェールを検出すると、これ
を通信装置に伝えるようにしていた。
When the active level has failed, that is, when the signal level of the transmission line is fixed at the high level, the transmission data cannot be transmitted, and the transmission data transmitted as described above is transmitted. It is impossible to judge the abnormality of the transmission line from the error occurrence state. Therefore, conventionally, by providing a dedicated fail detection circuit on the transmission line separately from the communication device, the state of the transmission line is constantly monitored, and when an active level fail is detected, this is transmitted to the communication device. .

【0010】[0010]

【発明が解決しようとする課題】このように、従来の通
信装置では、伝送線路の異常は、その信号レベルがアク
ティブレベルにフェールした場合と、非アクティブレベ
ルにフェールした場合とで、同様のエラーにも関わらず
別々の方法で検出されており、しかも、アクティブレベ
ルにフェールした場合の検出のためには、専用のフェー
ル検出回路を必要とするため、装置や制御に無駄が多い
という問題があった。
As described above, in the conventional communication device, the abnormality of the transmission line is the same when the signal level fails to the active level and when the signal level fails to the inactive level. Nevertheless, they are detected by different methods.Moreover, there is a problem that there is a lot of waste in the device and control because a dedicated fail detection circuit is required for detection when failing to the active level. It was

【0011】本発明は、上記問題点を解決するために、
CSMA/CD方式やJ1850規格などのデータ通信
システムにおいて、伝送線路がアクティブレベルにフェ
ールした場合の異常を、専用の検出回路を設けることな
く認識できる通信装置を提供することを目的とする。
In order to solve the above problems, the present invention provides
An object of the present invention is to provide a communication device capable of recognizing an abnormality when a transmission line fails to an active level in a data communication system such as CSMA / CD system or J1850 standard without providing a dedicated detection circuit.

【0012】[0012]

【課題を解決するための手段】上記目的を達成するため
の本発明の構成は、図1に例示するように、デジタルデ
ータを1ビット毎にパルス幅変調した送信用のデータの
先頭部分に、レベルの反転を有する所定パタンの開始デ
ータを付加した伝送データを伝送線路に送出する送信手
段と、上記伝送線路の信号レベルが、所定時間以上連続
してどの通信装置も伝送データを流していないことを表
す非アクティブレベルにある時に、上記送信手段から伝
送線路への伝送データの送出を許可する第1の送信許可
手段と、上記送信手段が伝送線路に伝送データを送出し
た際に、伝送線路上の伝送データと、開始データの所定
パタンとを比較し、これらが一致していない時に、伝送
線路は異常であると判定し、該判定結果を出力する伝送
線路異常判定手段と、を備えた通信装置であって、上記
伝送線路上の信号レベルが、所定時間以上連続して上記
非アクティブレベルが反転したアクティブレベルにある
時に、上記送信手段から伝送線路への伝送データの送出
を許可する第2の送信許可手段を設けたことを特徴とす
る通信装置を要旨とする。
As shown in FIG. 1, a structure of the present invention for achieving the above object is such that, as shown in FIG. Transmission means for sending out transmission data to which a start data of a predetermined pattern having level inversion is added to the transmission line, and that the signal level of the transmission line is continuous for a predetermined time or longer and no communication device is transmitting the transmission data. On the transmission line when the transmission means transmits the transmission data to the transmission line, and the first transmission permission means permits the transmission of the transmission data from the transmission means to the transmission line when the transmission data is transmitted to the transmission line. Of the start data is compared with the predetermined pattern of the start data, and when they do not match, it is determined that the transmission line is abnormal, and a transmission line abnormality determining means for outputting the determination result. A transmission device for transmitting transmission data from the transmission means to the transmission line when the signal level on the transmission line is at an active level that is the inactive level inverted continuously for a predetermined time or longer. A gist of a communication device is characterized in that a second transmission permitting unit for permitting communication is provided.

【0013】[0013]

【作用】上記のように構成された本発明の通信装置にお
いては、伝送線路の信号レベルが所定時間以上連続して
非アクティブレベルの状態にあり、第1の送信許可手段
が伝送線路への伝送データの送信を許可しているか、ま
たは、伝送線路の信号レベルが所定時間以上連続してア
クティブレベルの状態にあり、第2の送信許可手段が伝
送線路への伝送データの送信を許可している場合に、送
信手段が、デジタルデータを1ビット毎にパルス幅変調
した送信用のデータの先頭部分に、レベルの反転を有す
る所定パタンの開始データを付加した伝送データを伝送
線路に送出する。すると、伝送線路異常判定手段は、伝
送線路上の伝送データと、伝送データの先頭部分に設定
されているべき開始データの所定パタンとを比較し、こ
れらが一致していない時に、伝送線路は異常であると判
定し、この判定結果を出力する。
In the communication device of the present invention configured as described above, the signal level of the transmission line is continuously at the inactive level for a predetermined time or longer, and the first transmission permission means transmits to the transmission line. The data transmission is permitted, or the signal level of the transmission line is continuously in the active level for a predetermined time or longer, and the second transmission permission means permits the transmission of the transmission data to the transmission line. In this case, the transmission means sends transmission data to the transmission line in which start data of a predetermined pattern having a level inversion is added to the head portion of transmission data obtained by pulse-width modulating digital data bit by bit. Then, the transmission line abnormality determination means compares the transmission data on the transmission line with the predetermined pattern of the start data that should be set at the beginning of the transmission data, and when they do not match, the transmission line is abnormal. Then, the result of this determination is output.

【0014】つまり、伝送線路が電源に短絡するなどし
て、伝送線路の信号レベルが一方のレベルに固定されて
いる場合、伝送データと比較される開始データは、レベ
ルの反転を有しているため、伝送線路がどちらのレベル
に固定されていても、伝送線路上の伝送データとは一致
せず、従って、伝送データが伝送線路に送出された際に
伝送線路異常判定手段により伝送線路は異常であると判
定される。
In other words, when the signal level of the transmission line is fixed at one level, for example, because the transmission line is short-circuited to the power supply, the start data to be compared with the transmission data has a level inversion. Therefore, no matter which level the transmission line is fixed to, it does not match the transmission data on the transmission line.Therefore, when the transmission data is sent to the transmission line, the transmission line abnormality determination means determines that the transmission line is abnormal. It is determined that

【0015】[0015]

【実施例】以下に本発明の実施例を図面と共に説明す
る。まず図2は、本発明が適用された実施例の車両用通
信システムおよび各部の構成を表すブロック図である。
Embodiments of the present invention will be described below with reference to the drawings. First, FIG. 2 is a block diagram showing the configuration of a vehicle communication system and each part of an embodiment to which the present invention is applied.

【0016】図2(a)に示すように、本実施例の車両
用通信システムは、マスタノード,コラム周辺のスイッ
チ(ヘッドランプスイッチ等)の情報をマスタノードに
送信するコラムノード,メータパネルのウォーニングラ
ンプ等の情報をマスタノードに送信するメータノード,
サスペンションの状態をマスタノードに送信し、マスタ
ノードからはサスペンションの制御情報を受信するサス
ペンションノード等の各種のノードA,B,C,…を、
伝送線路Lを介して接続したものである。
As shown in FIG. 2A, the vehicular communication system according to the present embodiment includes a master node, a column node for transmitting information on switches around the column (headlight switch, etc.) to the master node, and a meter panel. A meter node that sends information such as warning lamps to the master node,
Various nodes A, B, C, etc., such as suspension nodes, which transmit the suspension state to the master node and receive suspension control information from the master node,
They are connected via a transmission line L.

【0017】そして、伝送線路L上では、パルス幅変調
方式(PWM)によるシリアル双方向通信が行なわれ、
その信号レベルは、どのノードも送信を行なっていない
場合(非アクティブ)はLow レベルであり、どれか1つ
のノードでも送信を行っている場合にHigh(アクティ
ブ)レベルが表れる。また、各ノード間の通信は所定の
通信手順(J1850規格)に従って行われ、その通信
に使用される伝送データは、伝送データの開始を示す伝
送制御キャラクタSOF、送信先および送信元のアドレ
スが格納される識別子ID、0〜9バイトのユーザデー
タDn、誤り検出符号CRC、誤り検出符号CRCを含
むユーザデータの終了を示す伝送制御キャラクタEO
D、受信状態を示す応答情報RSP、伝送データの終了
を示す伝送制御キャラクタEOF、連続的に伝送データ
を送信する場合に各ノードの同期を取るための伝送制御
キャラクタIFS等で構成され、例えば図3に示すよう
な形式で伝送される。
On the transmission line L, serial bidirectional communication is performed by the pulse width modulation method (PWM),
The signal level is Low level when no node is transmitting (inactive), and High (active) level appears when any one node is transmitting. Further, the communication between the respective nodes is performed according to a predetermined communication procedure (J1850 standard), and the transmission data used for the communication includes a transmission control character SOF indicating the start of the transmission data, a destination and a source address. Identifier ID, 0 to 9 bytes of user data Dn, error detection code CRC, transmission control character EO indicating the end of user data including error detection code CRC
D, response information RSP indicating the reception state, transmission control character EOF indicating the end of transmission data, transmission control character IFS for synchronizing each node when transmitting transmission data continuously, and the like. It is transmitted in the format shown in FIG.

【0018】次に、各ノードA,B,C…は、図2
(b)に示すように、車両各部の状態の監視及び制御を
行なう電子制御ユニット(以下単にECUという。)2
と、伝送線路Lを介して他のノードとデータ通信を行う
ための通信装置4と、通信装置4と伝送線路Lとの間に
挿入されて、通信装置4の送信端子TX から出力された
伝送データを伝送線路L上に流すと共に、伝送線路Lを
流れる伝送データを通信装置4の受信端子RX に入力す
るD/R(伝送ラインドライバ/レシーバ)6とから構
成されている。
Next, each node A, B, C ...
As shown in (b), an electronic control unit (hereinafter simply referred to as an ECU) 2 that monitors and controls the states of various parts of the vehicle.
And a communication device 4 for performing data communication with another node via the transmission line L, and a transmission output from the transmission terminal TX of the communication device 4 inserted between the communication device 4 and the transmission line L. It is composed of a D / R (transmission line driver / receiver) 6 which allows data to flow on the transmission line L and inputs the transmission data flowing on the transmission line L to the receiving terminal RX of the communication device 4.

【0019】このうち通信装置4は、図2(c)に示す
ように、ECU2からの送信要求や送信用のデジタルデ
ータを受信するECU通信用受信部12と、送信端子T
X から伝送データを送出する伝送ライン送信部14と、
ECU通信用受信部12がECU2からの送信要求を受
けると、伝送ライン送信部14から、送信用のデジタル
データにJ1850規格に則った各種コードを付与した
伝送データを送信させる送信制御部16と、D/R6を
介して受信端子RX に入力された伝送線路L上の伝送デ
ータを取り込む伝送ライン受信部18と、伝送ライン受
信部18にて取り込まれた伝送データをデジタルデータ
に変換すると共に、伝送データの中から各種コードを取
り出し、必要に応じて送信制御部16に対して回答用の
伝送データを送信させる受信制御部20と、受信制御部
20にて得られたデジタルデータをECU2に送信する
ECU通信用送信部22とから構成されている。
As shown in FIG. 2 (c), the communication device 4 includes an ECU communication receiving section 12 for receiving a transmission request and digital data for transmission from the ECU 2, and a transmission terminal T.
A transmission line transmitter 14 for transmitting transmission data from X,
When the ECU communication reception unit 12 receives a transmission request from the ECU 2, a transmission control unit 16 for transmitting transmission data in which various codes according to the J1850 standard are added to transmission digital data from the transmission line transmission unit 14, A transmission line receiving section 18 for taking in the transmission data on the transmission line L inputted to the receiving terminal RX via the D / R6, and converting the transmission data taken in by the transmission line receiving section 18 into digital data and transmitting the data. Various codes are extracted from the data, and the reception control unit 20 for transmitting the transmission data for reply to the transmission control unit 16 as necessary, and the digital data obtained by the reception control unit 20 are transmitted to the ECU 2. The transmission unit 22 for ECU communication is included.

【0020】ここで、受信制御部20は、図4に示すよ
うに、伝送ライン受信部18を介して受信した伝送デー
タをサンプリングするサンプリング部24と、送信制御
部16が伝送ライン送信部14から伝送データを送信さ
せている時、送信中の伝送データと伝送ライン受信部1
8が受信した伝送データとを1ビット毎に比較し、伝送
データが一致していなければ送信制御部16に対して伝
送データの送信を停止させる信号ARBを出力する伝送
データ比較部26と、伝送線路Lに伝送データを送信し
てもよい状態であるか否かを調べ(キャリアチェッ
ク)、その結果を送信許可信号IDLEにより送信制御
部16に通知するCS検出部28と、送信制御部16が
伝送ライン送信部14から伝送データを送信させている
時に、伝送ライン受信部18にて受信した伝送データを
チェックし、伝送データの開始を示す伝送制御キャラク
タSOFの所定パタンと一致しなければSOFエラー信
号ERRを出力するSOFエラー検出部30と、他のノ
ードからの伝送データを受信している時に、受信した伝
送データから各伝送制御キャラクタを検出し、タイミン
グ信号を出力する伝送制御キャラクタ検出部32と、伝
送制御キャラクタ検出部32において検出されたタイミ
ング信号に従い受信した伝送データから各情報を取り出
し、識別子IDから自ノード宛のメッセージであるか否
かの判断、誤り検出符号CRCや応答情報RSPに対す
る処理、パルス幅変調されたユーザデータの復調等を行
なう受信メッセージ処理部36とからなる。
Here, as shown in FIG. 4, the reception control unit 20 includes a sampling unit 24 for sampling the transmission data received via the transmission line reception unit 18, and a transmission control unit 16 for transmitting data from the transmission line transmission unit 14. When transmitting the transmission data, the transmission data being transmitted and the transmission line receiving unit 1
8 compares the received transmission data bit by bit, and if the transmission data do not match, the transmission data comparison unit 26 that outputs a signal ARB to the transmission control unit 16 to stop the transmission of the transmission data; The transmission control unit 16 and the CS detection unit 28 that checks whether or not the transmission data can be transmitted to the line L (carrier check) and notifies the transmission control signal 16 of the result by the transmission permission signal IDLE. While the transmission data is being transmitted from the transmission line transmission unit 14, the transmission data received by the transmission line reception unit 18 is checked, and if it does not match the predetermined pattern of the transmission control character SOF indicating the start of the transmission data, the SOF error is detected. When the SOF error detection unit 30 that outputs the signal ERR and the transmission data from another node are being received, each transmission control is performed based on the received transmission data. A transmission control character detection unit 32 that detects a character and outputs a timing signal, and each information is extracted from the transmission data received according to the timing signal detected by the transmission control character detection unit 32. The reception message processing unit 36 determines whether there is an error detection code CRC, processing for the response information RSP, demodulation of pulse-width modulated user data, and the like.

【0021】そして、送信制御部16は、CS検出部2
8が出力する送信許可信号IDLEに従い、伝送線路L
が送信可能な状態であれば伝送ライン送信部14から伝
送データを送信させ、送信不可能な状態であれば伝送デ
ータの送信を所定期間延期させる。また、伝送データを
送信中、伝送データ比較部26から送信停止信号ARB
が出力されると、送信制御部16は直ちに送信を停止す
る。
Then, the transmission control unit 16 has the CS detection unit 2
In accordance with the transmission permission signal IDLE output from the transmission line L
Is transmitted, the transmission line transmitter 14 transmits the transmission data, and if transmission is impossible, the transmission data transmission is postponed for a predetermined period. Further, during transmission of transmission data, the transmission data comparison unit 26 sends a transmission stop signal ARB.
When is output, the transmission control unit 16 immediately stops the transmission.

【0022】次に本発明の主要部である、CS検出部2
8、SOFエラー検出部30、およびサンプリング部2
4の詳細を図5に示す。図5に示すように、まずサンプ
リング部24は、伝送ライン受信部18にて受信された
シリアルの伝送データを図示しない発信回路からのシス
テムクロックCLKによりサンプリングしパラレルデー
タに変換する9ビットのシフトレジスタ38、伝送ライ
ン受信部18にて受信された伝送データの先頭を検出す
るとリセットされ、以後3クロック分カウントする毎
に、即ち本実施例の通信装置においてパルス幅変調され
た1ビットのデータは3クロックでサンプリングされる
のでビットの境目毎に、1クロック幅だけHighレベルに
なるタイミング信号を出力するビットタイミング生成回
路42を備えている。
Next, the CS detector 2 which is the main part of the present invention
8, SOF error detection unit 30, and sampling unit 2
4 is shown in detail in FIG. As shown in FIG. 5, first, the sampling unit 24 is a 9-bit shift register that samples the serial transmission data received by the transmission line receiving unit 18 by the system clock CLK from a transmission circuit (not shown) and converts it into parallel data. 38, it is reset when the beginning of the transmission data received by the transmission line receiving unit 18 is detected, and thereafter, every time 3 clocks are counted, that is, the 1-bit data pulse-width-modulated in the communication apparatus of this embodiment is 3. Since the sampling is performed by the clock, a bit timing generation circuit 42 that outputs a timing signal that becomes a High level for one clock width is provided at each bit boundary.

【0023】次に、CS検出部28は、シフトレジスタ
38の出力がすべてLow レベルの時、即ち伝送線路Lが
9クロック連続してLow レベルにある時に出力がHighレ
ベルになるNOR回路44、シフトレジスタ38の出力
がすべてHighレベルの時に出力がHighレベルになるAN
D回路46、NOR回路44およびAND回路46の出
力のいずれか一方でもHighレベルの時に出力がHighレベ
ルになるOR回路48、ビットタイミング生成回路42
の出力およびOR回路48の出力がいずれもHighレベル
の時に出力がHighレベルになるAND回路50からな
る。そして、AND回路50の出力は、送信許可信号I
DLEとして送信制御部16に入力される。
Next, the CS detector 28 shifts the NOR circuit 44, which shifts the output to the High level when the outputs of the shift register 38 are all at the Low level, that is, when the transmission line L is at the Low level for 9 consecutive clocks. When the output of the register 38 is all High level, the output becomes High level AN
The OR circuit 48 and the bit timing generation circuit 42, in which any one of the outputs of the D circuit 46, the NOR circuit 44, and the AND circuit 46 is at the High level, the output becomes the High level.
Of the AND circuit and the output of the OR circuit 48 are both at the high level, and the AND circuit 50 outputs the high level. The output of the AND circuit 50 is the transmission permission signal I.
It is input to the transmission control unit 16 as DLE.

【0024】また、SOFエラー検出部30は、シフト
レジスタ38の下位6ビットの出力が伝送制御キャラク
タSOFのパタンである「HHHHLL」の時に出力が
Lowレベルになる論理回路52、送信制御部16から出
力された伝送データの送信開始タイミングを示す信号S
TRにより起動し、6クロック後、即ち受信した伝送デ
ータの先頭6ビットがシフトレジスタ38にセットされ
た時点で、Highレベルのタイミング信号を出力するSO
F判定信号発生回路54、SOF判定信号発生回路54
の出力および論理回路52の出力がいずれもHighレベル
の時に出力がHighレベルになるAND回路56からな
る。そしてAND回路56の出力は、SOFエラー信号
ERRとして、送信制御回路16および受信メッセージ
処理部36に入力される。
Further, the SOF error detecting section 30 outputs when the output of the lower 6 bits of the shift register 38 is "HHHHLL" which is the pattern of the transmission control character SOF.
A signal S indicating the transmission start timing of the transmission data output from the transmission control unit 16 and the logic circuit 52 that becomes Low level.
An SO that outputs a high-level timing signal after being activated by TR and 6 clocks later, that is, when the first 6 bits of the received transmission data are set in the shift register 38
F determination signal generation circuit 54, SOF determination signal generation circuit 54
Of the AND circuit and the output of the logic circuit 52 are both at the high level, and the AND circuit 56 outputs the high level. Then, the output of the AND circuit 56 is input to the transmission control circuit 16 and the reception message processing unit 36 as the SOF error signal ERR.

【0025】つまり本実施例の通信装置は、送信許可信
号IDLEにより送信が許可されている場合にのみ伝送
データの送信を行なうことができるのであるが、送信許
可信号IDLEは、伝送線路Lが所定時間以上連続して
Low レベルにある時、即ちどのノードも伝送データを流
していないか、伝送線路Lが非アクティブレベルにフェ
ールしている場合、または伝送線路Lが所定時間以上連
続してHighレベルにある時、即ち、伝送線路Lがアクテ
ィブレベルにフェールしている場合に出力される。
That is, the communication apparatus of this embodiment can transmit the transmission data only when the transmission is permitted by the transmission permission signal IDLE. However, the transmission permission signal IDLE is transmitted through the transmission line L in a predetermined manner. Continuously for more than an hour
When it is at Low level, that is, when no node is transmitting the transmission data, or when the transmission line L is failing to the inactive level, or when the transmission line L is continuously at High level for a predetermined time or more, that is, , Is output when the transmission line L has failed to the active level.

【0026】そして、送信制御部16が送信許可信号I
DLEに従って伝送データの送信を開始すると、受信制
御部20は伝送線路Lから伝送データを取り込み、SO
Fエラー検出部30において、取り込んだ伝送データが
伝送データの開始を示す伝送制御キャラクタSOFの所
定パタンと一致しているか否かを判断する。
Then, the transmission control unit 16 causes the transmission permission signal I
When transmission of the transmission data is started according to DLE, the reception control unit 20 takes in the transmission data from the transmission line L, and the SO
The F error detection unit 30 determines whether the received transmission data matches a predetermined pattern of the transmission control character SOF indicating the start of the transmission data.

【0027】ここで、正常に送信が行われていれば、伝
送線路Lから取り込まれた伝送データの先頭は、伝送制
御キャラクタSOFの所定パタンと一致するのでSOF
エラー信号ERRは出力されず送信は継続される。しか
し、伝送線路Lがアクティブ/非アクティブのいずれか
のレベルにフェールしている場合、受信するデータはオ
ールHighレベルまたはオールLow レベルであるので、当
然伝送制御キャラクタSOFの所定パタンとは一致せ
ず、伝送線路Lの異常としてSOFエラー信号ERRが
出力される。
Here, if the transmission is normally performed, the beginning of the transmission data fetched from the transmission line L coincides with the predetermined pattern of the transmission control character SOF, and thus the SOF.
The error signal ERR is not output and the transmission is continued. However, when the transmission line L has failed to either the active / inactive level, the data to be received is all high level or all low level, so naturally it does not match the predetermined pattern of the transmission control character SOF. The SOF error signal ERR is output as an abnormality of the transmission line L.

【0028】なお、このSOFエラー信号ERRは、送
信制御部16および受信メッセージ処理部36を介して
ECU2に伝えられ、送信制御部16においては、直ち
に伝送データの送信を停止させる。また、ECU2にお
いては、例えばサスペンションノードの場合、マスタノ
ードからサスペンションを制御する情報を得ることがで
きなくなるので、所定のサスペンション強度に設定する
処理が実行される。
The SOF error signal ERR is transmitted to the ECU 2 via the transmission control unit 16 and the reception message processing unit 36, and the transmission control unit 16 immediately stops transmission of transmission data. Further, in the case of the suspension node, for example, in the case of the suspension node, the ECU 2 cannot obtain information for controlling the suspension from the master node, and therefore, the process of setting the suspension strength to a predetermined value is executed.

【0029】以上説明したように、従来の通信装置にお
いては、図6(a)に示すように、受信端子Rxで取り
込まれる伝送線路Lの信号レベルが所定時間以上連続し
て非アクティブレベルである場合にのみ伝送データの送
信を許可していたので、受信端子Rxで取り込まれる伝
送線路Lの信号レベルがアクティブレベルである場合
は、伝送データを送信することができなかった(図中点
線)のであるが、本実施例の通信装置においては、受信
端子Rxで取り込まれる伝送線路Lの信号レベルが所定
時間以上連続してアクティブレベルにある場合であって
も、伝送データの送信を許可している。そしてこの場
合、伝送データを送信すると、図6(b)に示すよう
に、伝送データの先頭を表す伝送制御キャラクタSOF
が送出された時点で、受信制御部のSOFエラー検出部
30においてSOFエラーが検出され、直ちに伝送デー
タの送信は停止させられてしまうのであるが、このよう
にあえて伝送データを送出させSOFエラーを起こさせ
ることにより、特別なフェール検出回路を設けることな
く伝送線路Lがアクティブレベルにフェールした場合の
検出を可能としている。そして、この方法は、従来装置
で行われている非アクティブレベルにフェールした場合
の検出方法と同じである。
As described above, in the conventional communication device, as shown in FIG. 6A, the signal level of the transmission line L taken in by the receiving terminal Rx is continuously inactive for a predetermined time or longer. Since the transmission of the transmission data was permitted only in this case, the transmission data could not be transmitted when the signal level of the transmission line L taken in at the receiving terminal Rx was the active level (the dotted line in the figure). However, in the communication device of the present embodiment, transmission of transmission data is permitted even when the signal level of the transmission line L captured at the reception terminal Rx is continuously at the active level for a predetermined time or longer. . Then, in this case, when the transmission data is transmitted, as shown in FIG. 6B, the transmission control character SOF indicating the beginning of the transmission data is transmitted.
When the SOF error is transmitted, the SOF error detection unit 30 of the reception control unit detects the SOF error and immediately stops the transmission of the transmission data. By raising it, it is possible to detect when the transmission line L fails to the active level without providing a special fail detection circuit. Then, this method is the same as the detection method in the case of failing to the inactive level, which is performed in the conventional device.

【0030】従って、本実施例の通信装置によれば、伝
送線路Lがアクティブあるいは非アクティブのいずれの
レベルにフェールしている場合でも、共通の方法でこの
伝送線路Lの異常を検出し処理できるので、無駄なく制
御を行なうことができる。また、本実施例の通信装置
は、従来、非アクティブレベルのフェールが生じた時に
のみ発生していたSOFエラーを、アクティブレベルの
フェールが生じた場合にも発生させるように、伝送デー
タの送信を許可する条件に伝送線路Lが所定時間以上連
続してアクティブレベルである場合を追加しただけであ
り、従来、専用に設けられていたフェール検出回路を設
ける必要がない分だけ、装置を小型化することができ、
例えば装置をIC化する場合にも有利である。
Therefore, according to the communication apparatus of the present embodiment, even if the transmission line L fails to either the active or inactive level, the abnormality of the transmission line L can be detected and processed by the common method. Therefore, control can be performed without waste. Further, the communication device of the present embodiment transmits the transmission data so that the SOF error, which has conventionally been generated only when the inactive level failure occurs, is also generated when the active level failure occurs. Only the case where the transmission line L is continuously at the active level for a predetermined time or longer is added to the conditions for permitting, and the device can be downsized by the fact that it is not necessary to provide a fail detection circuit that is conventionally provided for exclusive use. It is possible,
For example, it is also advantageous when the device is integrated into an IC.

【0031】[0031]

【発明の効果】以上説明したように、本発明の通信装置
においては、伝送データの送信を、伝送線路の信号レベ
ルが所定時間以上連続して非アクティブレベルにある時
だけでなく、第2の送信許可手段により所定時間以上連
続してアクティブレベルにある時でも可能としている。
また、伝送線路異常判定手段が、送信された伝送線路上
の伝送データと、伝送データの先頭部分に設定されてい
るべき開始データの所定パタンとを比較し、一致しない
時には伝送線路は異常であると判定している。
As described above, in the communication device of the present invention, the transmission of the transmission data is performed not only when the signal level of the transmission line is continuously at the inactive level for a predetermined time or longer, but also when the signal level of the transmission line is set to the second level. The transmission permission means makes it possible even when the active level is continuously maintained for a predetermined time or longer.
Further, the transmission line abnormality determination means compares the transmitted transmission data on the transmission line with a predetermined pattern of start data that should be set at the beginning of the transmission data, and when they do not match, the transmission line is abnormal. It has been determined.

【0032】従って、本発明の通信装置によれば、伝送
線路がアクティブあるいは非アクティブのいずれのレベ
ルにフェールしている場合でも、伝送データは伝送線路
に送出されるので、伝送線路異常判定手段が伝送線路の
異常を判定することができる。即ち、いずれのレベルの
フェールも同じ伝送線路異常判定手段により判定される
ので、無駄なく制御を行なうことができる。
Therefore, according to the communication apparatus of the present invention, the transmission data is sent to the transmission line regardless of whether the transmission line fails at the active level or the inactive level. It is possible to determine the abnormality of the transmission line. That is, since the failure of any level is judged by the same transmission line abnormality judging means, control can be performed without waste.

【0033】また、本発明の通信装置は、従来、非アク
ティブレベルのフェールのみ判定していた伝送路異常判
定手段を、アクティブレベルのフェールも判定させるよ
うにするために、第2の送信許可手段を追加しただけで
あり、従来、専用に設けられていたフェール検出回路を
設ける必要がない分だけ、装置を小型化することがで
き、例えば装置をIC化する場合にも有利である。
Further, the communication apparatus of the present invention uses the second transmission permitting means in order to make the transmission path abnormality judging means, which conventionally judges only the inactive level fail, also judge the active level fail. However, the device can be downsized by the fact that it is not necessary to provide a fail detection circuit, which has been conventionally provided exclusively, which is also advantageous when the device is integrated into an IC.

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

【図1】 本発明の構成を例示するブロック図である。FIG. 1 is a block diagram illustrating a configuration of the present invention.

【図2】 本実施例のデータ通信システムおよび各部の
構成を表すブロック図である。
FIG. 2 is a block diagram showing a configuration of a data communication system and each unit of this embodiment.

【図3】 本実施例の通信装置において送受信される伝
送データの構成を表す説明図である。
FIG. 3 is an explanatory diagram showing a configuration of transmission data transmitted and received in the communication device of this embodiment.

【図4】 図2の送信制御部の構成を表すブロック図で
ある。
FIG. 4 is a block diagram showing a configuration of a transmission control unit in FIG.

【図5】 図4のCS検出部,SOFエラー検出部,お
よびサンプリング部の詳細を表す回路図である。
5 is a circuit diagram showing details of a CS detection unit, an SOF error detection unit, and a sampling unit in FIG.

【図6】 従来および本実施例の通信装置における伝送
データの送信動作を説明する動作説明図である。
FIG. 6 is an operation explanatory diagram illustrating a transmission operation of transmission data in the communication device according to the related art and the present embodiment.

【図7】 J1850規格の伝送データの伝送線路上に
おけるフォーマットを表す説明図である。
FIG. 7 is an explanatory diagram showing a format of transmission data of J1850 standard on a transmission line.

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

4…通信装置 16…送信制御部 2
0…受信制御部 24…サンプリング部 26…伝送データ比較部
28…CS検出部 30…SOFエラー検出部 32…伝送制御キ
ャラクタ検出部 36…受信メッセージ処理部 38…シフトレジ
スタ 42…ビットタイミング生成回路 54…SOF判定
信号発生回路
4 ... Communication device 16 ... Transmission control unit 2
0 ... Reception control unit 24 ... Sampling unit 26 ... Transmission data comparison unit
28 ... CS detection unit 30 ... SOF error detection unit 32 ... Transmission control character detection unit 36 ... Received message processing unit 38 ... Shift register 42 ... Bit timing generation circuit 54 ... SOF determination signal generation circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 デジタルデータを1ビット毎にパルス幅
変調した送信用のデータの先頭部分に、レベルの反転を
有する所定パタンの開始データを付加した伝送データを
伝送線路に送出する送信手段と、 上記伝送線路の信号レベルが、所定時間以上連続してど
の通信装置も伝送データを流していないことを表す非ア
クティブレベルにある時に、上記送信手段から伝送線路
への伝送データの送出を許可する第1の送信許可手段
と、 上記送信手段が伝送線路に伝送データを送出した際に、
伝送線路上の伝送データと、開始データの所定パタンと
を比較し、これらが一致していない時に、伝送線路は異
常であると判定し、該判定結果を出力する伝送線路異常
判定手段と、 を備えた通信装置であって、 上記伝送線路上の信号レベルが、所定時間以上連続して
上記非アクティブレベルが反転したアクティブレベルに
ある時に、上記送信手段から伝送線路への伝送データの
送出を許可する第2の送信許可手段を設けたことを特徴
とする通信装置。
1. Transmission means for transmitting transmission data to a transmission line, in which start data of a predetermined pattern having level inversion is added to the head portion of transmission data obtained by pulse-width-modulating digital data bit by bit. When the signal level of the transmission line is at an inactive level which indicates that no communication device is continuously transmitting the transmission data for a predetermined time or more, the transmission means permits transmission of the transmission data to the transmission line. 1 when the transmission permitting means sends the transmission data to the transmission line,
The transmission data on the transmission line is compared with a predetermined pattern of the start data, and when they do not match, it is determined that the transmission line is abnormal, and a transmission line abnormality determination means for outputting the determination result, A communication device provided, wherein when the signal level on the transmission line is at an active level that is the inactive level inverted for a predetermined time or more continuously, transmission of transmission data from the transmission means to the transmission line is permitted. A communication device comprising:
JP23789193A 1993-09-24 1993-09-24 Communication device Expired - Fee Related JP3252556B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23789193A JP3252556B2 (en) 1993-09-24 1993-09-24 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23789193A JP3252556B2 (en) 1993-09-24 1993-09-24 Communication device

Publications (2)

Publication Number Publication Date
JPH0795222A true JPH0795222A (en) 1995-04-07
JP3252556B2 JP3252556B2 (en) 2002-02-04

Family

ID=17021958

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23789193A Expired - Fee Related JP3252556B2 (en) 1993-09-24 1993-09-24 Communication device

Country Status (1)

Country Link
JP (1) JP3252556B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8158330B2 (en) 2008-05-12 2012-04-17 Shin-Etsu Chemical Co., Ltd. Resist protective coating composition and patterning process
US11509762B2 (en) 2018-12-20 2022-11-22 Mitsubishi Electric Corporation Cable length calculation system and cable length calculation method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8158330B2 (en) 2008-05-12 2012-04-17 Shin-Etsu Chemical Co., Ltd. Resist protective coating composition and patterning process
US11509762B2 (en) 2018-12-20 2022-11-22 Mitsubishi Electric Corporation Cable length calculation system and cable length calculation method

Also Published As

Publication number Publication date
JP3252556B2 (en) 2002-02-04

Similar Documents

Publication Publication Date Title
US8514065B2 (en) Method and device for waking users of a bus system, and corresponding users
US8868807B2 (en) Communication system, master node, and slave node
US6167057A (en) Data communication system and electronic control unit used therein
JP2013516136A (en) Bus transceiver configuration
JPH0773270B2 (en) Data communication method and multiple connection system
CN102035564A (en) Transceiver
JP3486990B2 (en) Serial communication device
JP2839054B2 (en) Communication device
US5293571A (en) Receipt acknowledgement method in multiplex transmission
CN113438139A (en) Device and method for checking frames from a communication bus
JP2873514B2 (en) Multiplex transmission method
JP2753915B2 (en) Communication control device
JPH0799688A (en) Multiplex transmission system
EP0893019B1 (en) Multiplex communication interface circuit and method
JP4968169B2 (en) Communication system and communication method
JPH0795222A (en) Communication equipment
CN111141966A (en) Method for detecting hardware fault through single communication line and hardware module
JP4570753B2 (en) Error code sending apparatus and method
JP3221259B2 (en) Bus type duplex transmission equipment
JP2726300B2 (en) Fault diagnosis device
JP3051873B2 (en) Data collision detection device
JPH09284320A (en) Communication controller
JP2959860B2 (en) Multiplex transmission method
JPH04361439A (en) Serial data communication equipment
JPH06296294A (en) Communication control equipment

Legal Events

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