JP6183281B2 - Communication system and electronic control device - Google Patents
Communication system and electronic control device Download PDFInfo
- Publication number
- JP6183281B2 JP6183281B2 JP2014084508A JP2014084508A JP6183281B2 JP 6183281 B2 JP6183281 B2 JP 6183281B2 JP 2014084508 A JP2014084508 A JP 2014084508A JP 2014084508 A JP2014084508 A JP 2014084508A JP 6183281 B2 JP6183281 B2 JP 6183281B2
- Authority
- JP
- Japan
- Prior art keywords
- electronic control
- microcomputer
- communication
- communication line
- confirmation information
- 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.)
- Active
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、複数の電子制御装置間でデータを送受信する通信システムおよび電子制御装置に関する。 The present invention relates to a communication system and an electronic control device that transmit and receive data between a plurality of electronic control devices.
従来、複数の電子制御装置が通信線を介して接続されている通信システムにおいて、自装置以外の全ての他装置から監視用の通信フレームを受信することにより、通信システムにおける異常発生箇所を特定する技術が知られている(例えば、特許文献1を参照)。 2. Description of the Related Art Conventionally, in a communication system in which a plurality of electronic control devices are connected via a communication line, an abnormality occurrence location in the communication system is identified by receiving monitoring communication frames from all other devices other than the own device. A technique is known (see, for example, Patent Document 1).
しかし、上記特許文献1に記載の技術では、異常発生箇所によっては、その異常発生箇所が電子制御装置であるか通信線であるかを特定することができないという問題があった。 However, the technique described in Patent Document 1 has a problem in that it cannot be specified whether the abnormality occurrence location is an electronic control device or a communication line depending on the location where the abnormality has occurred.
本発明は、こうした問題に鑑みてなされたものであり、異常発生箇所が電子制御装置であるか通信線であるかを特定することを可能とする技術を提供することを目的とする。 The present invention has been made in view of these problems, and an object of the present invention is to provide a technique that makes it possible to specify whether an abnormality occurrence location is an electronic control device or a communication line.
上記目的を達成するためになされた第1発明の通信システムは、通信線を介して互いにデータ通信可能に接続された第1電子制御装置と第2電子制御装置とを備える。
第1電子制御装置は、マイクロコンピュータと、確認情報送信部とを備える。
In order to achieve the above object, a communication system according to a first aspect of the present invention includes a first electronic control unit and a second electronic control unit that are connected to each other via a communication line so as to be capable of data communication.
The first electronic control unit includes a microcomputer and a confirmation information transmission unit.
マイクロコンピュータは、第2電子制御装置との間で通信フレームを送受信する機能と、第2電子制御装置から通信フレームを受信すると、その旨を示す第1受信確認情報を通信線へ送信する機能とを有する。また確認情報送信部は、第2電子制御装置から通信フレームを受信すると、その旨を示す第2受信確認情報を通信線へ送信する。 The microcomputer has a function of transmitting / receiving a communication frame to / from the second electronic control device, and a function of transmitting first reception confirmation information indicating that to the communication line when a communication frame is received from the second electronic control device. Have When the communication information is received from the second electronic control unit, the confirmation information transmission unit transmits second reception confirmation information indicating the fact to the communication line.
このように構成された本発明の通信システムでは、第1電子制御装置が第2電子制御装置から通信フレームを受信すると、第1電子制御装置のマイクロコンピュータが第1受信確認情報を通信線へ送信するとともに、第1電子制御装置の確認情報送信部が第2受信確認情報を通信線へ送信する。 In the communication system of the present invention configured as described above, when the first electronic control unit receives a communication frame from the second electronic control unit, the microcomputer of the first electronic control unit transmits the first reception confirmation information to the communication line. At the same time, the confirmation information transmitter of the first electronic control unit transmits the second reception confirmation information to the communication line.
このため、マイクロコンピュータで異常が発生し且つ通信線で異常が発生していない場合に、第2電子制御装置は、少なくとも第2受信確認情報を受信することができる。一方、マイクロコンピュータで異常が発生しておらず且つ通信線で異常が発生している場合に、第2電子制御装置は、第1受信確認情報と第2受信確認情報の両方を受信することができない。 For this reason, when abnormality has occurred in the microcomputer and abnormality has not occurred in the communication line, the second electronic control unit can receive at least the second reception confirmation information. On the other hand, when there is no abnormality in the microcomputer and there is an abnormality in the communication line, the second electronic control unit may receive both the first reception confirmation information and the second reception confirmation information. Can not.
したがって、本発明の通信システムによれば、第2電子制御装置は、第1電子制御装置から通信フレームを受信できない場合において、第1電子制御装置から第2受信確認情報を受信できるか否かに基づいて、異常発生箇所がマイクロコンピュータであるか通信線であるかを特定することが可能となる。 Therefore, according to the communication system of the present invention, whether or not the second electronic control unit can receive the second reception confirmation information from the first electronic control unit when the communication frame cannot be received from the first electronic control unit. Based on this, it is possible to specify whether the abnormality occurrence location is a microcomputer or a communication line.
また、上記目的を達成するためになされた第2発明の電子制御装置は、通信線を介して互いにデータ通信可能に接続された第1電子制御装置と第2電子制御装置とを備える通信システムにおいて、第1電子制御装置として使用され、マイクロコンピュータと、確認情報送信部とを備える。 An electronic control device of a second invention made to achieve the above object is a communication system comprising a first electronic control device and a second electronic control device that are connected to each other via a communication line so as to be capable of data communication. Used as the first electronic control unit, and includes a microcomputer and a confirmation information transmitting unit.
マイクロコンピュータは、第2電子制御装置との間で通信フレームを送受信する機能と、第2電子制御装置から通信フレームを受信すると、その旨を示す第1受信確認情報を通信線へ送信する機能とを有する。確認情報送信部は、第2電子制御装置から通信フレームを受信すると、その旨を示す第2受信確認情報を通信線へ送信する。 The microcomputer has a function of transmitting / receiving a communication frame to / from the second electronic control device, and a function of transmitting first reception confirmation information indicating that to the communication line when a communication frame is received from the second electronic control device. Have When receiving the communication frame from the second electronic control unit, the confirmation information transmitting unit transmits second reception confirmation information indicating the fact to the communication line.
このように構成された電子制御装置は、第1発明の通信システムで使用される電子制御装置であり、第1発明と同様の効果を得ることができる。 The electronic control device configured as described above is an electronic control device used in the communication system of the first invention, and can obtain the same effects as those of the first invention.
以下に本発明の実施形態を図面とともに説明する。
車両用通信システム1は、図1に示すように、電子制御装置(Electronic Control Unit)2,3,4,5(以下、ECU2,3,4,5という)を備える。
Embodiments of the present invention will be described below with reference to the drawings.
As shown in FIG. 1, the vehicle communication system 1 includes
ECU2,3,4,5は、車両に搭載され、車両に搭載されている通信線6を介して互いにデータ通信可能に接続されており、CAN(Controller Area Network)通信プロトコルに従ってデータの送受信を行う。
The
ECU2は、車両のエンジン(不図示)を制御する。以下、ECU2をエンジンECU2ともいう。
ECU3,4,5は、エンジン以外の車載機器および車載装置等を制御する。例えば、ECU3は変速機を制御し、ECU4はブレーキを制御し、ECU5はステアリングを制御する。以下、ECU3,4,5を周辺ECU3,4,5ともいう。
The
The
エンジンECU2は、CANトランシーバ11とマイクロコンピュータ(以下、マイコンという)12とを備える。
CANトランシーバ11は、マイコン12から入力するデジタル信号をCAN通信プロトコルに従う差動信号に変換して通信線6へ出力するとともに、通信線6から入力する差動信号をデジタル信号に変換してマイコン12へ出力する。
The engine ECU 2 includes a CAN transceiver 11 and a microcomputer (hereinafter referred to as a microcomputer) 12.
The CAN transceiver 11 converts a digital signal input from the
マイコン12は、CPU、ROM、RAM、I/O及びこれらの構成を接続するバスラインなどから構成されている。またマイコン12は、CANコントローラ16を備える。
CANコントローラ16は、CANトランシーバ11を介して通信フレームを送受信する送受信制御、および複数のECUから同時に通信フレームが送信された場合の調停を行う調停制御等のCANプロトコルに従った制御を実行する。
The
The CAN
周辺ECU3,4,5は、CANトランシーバ21とマイコン22とを備える。
CANトランシーバ21は、マイコン22から入力するデジタル信号をCAN通信プロトコルに従う差動信号に変換して通信線6へ出力するとともに、通信線6から入力する差動信号をデジタル信号に変換してマイコン22へ出力する。
The
The
マイコン22は、CPU、ROM、RAM、I/O及びこれらの構成を接続するバスラインなどから構成されている。またマイコン22は、CANコントローラ26を備える。
CANコントローラ26は、CANトランシーバ21を介して通信フレームを送受信する送受信制御、および複数のECUから同時に通信フレームが送信された場合の調停を行う調停制御等のCANプロトコルに従った制御を実行する。
The
The CAN
通信フレームは、図2に示すように、スタートオブフレーム(SOF)、アービトレーションフィールド、コントロールフィールド、データフィールド、CRCフィールド、ACKフィールドおよびエンドオブフレーム(EOF)により構成されている。 As shown in FIG. 2, the communication frame includes a start of frame (SOF), an arbitration field, a control field, a data field, a CRC field, an ACK field, and an end of frame (EOF).
なお、アービトレーションフィールドは、11ビットまたは29ビットのアイデンティファイア(ID)と1ビットのRTRビットで構成される。
また、CAN通信で使用する11ビットのアイデンティファイア(ID)をCANIDという。CANIDは、通信フレームに含まれるデータの内容、通信フレームの送信元、および通信フレームの送信先等に基づいて予め設定されている。そして、ECU2,3,4,5のそれぞれについて、送信する通信フレームに付与する送信CANIDと、受信対象となる通信フレームを識別するための受信CANIDとが予め設定される。
The arbitration field includes an 11-bit or 29-bit identifier (ID) and a 1-bit RTR bit.
An 11-bit identifier (ID) used in CAN communication is called CANID. The CANID is set in advance based on the content of data included in the communication frame, the transmission source of the communication frame, the transmission destination of the communication frame, and the like. Then, for each of the
CANトランシーバ21は、図3に示すように、入出力端子31,32、送信端子33、受信端子34、送信回路35、受信回路36およびCANコントローラ37を備える。
入出力端子31は、通信線6を構成する一対のCANバスCANHおよびCANバスCANLのうち、バスCANHに接続され、入出力端子32は、CANバスCANLに接続される。
As shown in FIG. 3, the
The input /
送信端子33は、CANコントローラ26の送信端子TXに接続され、受信端子34は、CANコントローラ26の受信端子RXに接続される。
送信回路35は、送信端子33からデジタル信号を入力し、入力した信号に基づく差動信号を生成する。そして送信回路35は、生成した差動信号を入出力端子31,32へ出力する。具体的には、送信回路35は、「1」を表すハイレベルのデジタル信号をマイコン22から入力した場合には、レセッシブ(劣性)を表す差動信号を通信線6へ出力し、「0」を表すローレベルのデジタル信号をマイコン22から入力した場合には、ドミナント(優性)を表す差動信号を通信線6へ出力する。なお、通信線6に接続された複数のECUからドミナントの差動信号とレセッシブの差動信号とが同時に送信された場合には、通信線6上の信号レベルはドミナントとなる。
The
The
受信回路36は、入出力端子31,32から差動信号を入力し、入力した信号に基づくデジタル信号を生成する。そして受信回路36は、生成したデジタル信号を受信端子34へ出力する。具体的には、受信回路36は、レセッシブを表す差動信号を通信線6から入力した場合には、「1」を表すハイレベルのデジタル信号をマイコン22へ出力し、ドミナントを表す差動信号を通信線6から入力した場合には、「0」を表すローレベルのデジタル信号をマイコン22へ出力する。
The
CANコントローラ37は、その送信端子TXが、送信端子33と送信回路35との間の信号伝送経路に接続され、その受信端子RXが、受信端子34と受信回路36との間の信号伝送経路に接続される。
The
そしてCANコントローラ37は、このCANコントローラ37を搭載しているECUに対して設定されている1または複数の受信CANIDのうちの少なくとも1つが受信CANIDとして設定されている。このためCANコントローラ37は、設定されている受信CANIDを格納した通信フレームを正常に受信すると、その旨を示す正常受信確認情報を送信する。具体的には、CANコントローラ37は、まず、設定された受信CANIDを格納した通信フレームのCRCフィールドを受信すると、SOFからデータフィールドまでのデータ値と、CRCフィールドのデータ値とを用いて、CRC(Cyclic Redundancy Check)を行い、このCRCの結果に基づいて、通信フレームを正常に受信したか否かを判断する。そしてCANコントローラ37は、通信フレームを正常に受信したと判断した場合に、受信中の通信フレームにおけるACKフィールドをレセッシブからドミナントに書き換える。これにより、対応する通信フレームを送信するECUは、送信中の通信フレームのACKフィールドがドミナントである場合に、通信フレームを正常に送信したと判断することができる。なお、上記の正常受信確認情報の送信はCANコントローラ16,26でも行われる。
In the
このように構成された車両用通信システム1において、エンジンECU2は、後述の通信線異常判定処理とマイコン異常判定処理を実行する。
まず、エンジンECU2のマイコン12が実行する通信線異常判定処理の手順を説明する。通信線異常判定処理は、エンジンECU2の動作中において所定時間毎(例えば8ms毎)に繰り返し実行される処理である。
In the vehicle communication system 1 configured as described above, the
First, a communication line abnormality determination process performed by the
通信線異常判定処理は、エンジンECU2に設定されている複数の異常判定用CANID毎に設けられている。異常判定用CANIDは、周辺ECU3,4,5のCANコントローラ37に設定されている受信CANIDである。
The communication line abnormality determination process is provided for each of a plurality of abnormality determination CANIDs set in the
この通信線異常判定処理が実行されると、マイコン12は、図4に示すように、まずS10にて、当該通信線異常判定処理に対応する異常判定用CANIDが付与された通信フレームを送信したか否かを判断する。ここで、対応する異常判定用CANIDが付与された通信フレームを送信していない場合には(S10:NO)、通信線異常判定処理を一旦終了する。
When the communication line abnormality determination process is executed, the
一方、対応する異常判定用CANIDが付与された通信フレームを送信した場合には(S10:YES)、S20にて、上記の正常受信確認情報を受信したか否かを判断する。ここで、正常受信確認情報を受信した場合には(S20:YES)、S30にて、当該通信線異常判定処理の異常判定用CANIDに対応する通信線異常判定カウンタをクリア(0に設定)し、S50に移行する。なお通信線異常判定カウンタは、複数の異常判定用CANID毎に、マイコン12のRAM内に設けられている。
On the other hand, when the communication frame with the corresponding abnormality determination CANID is transmitted (S10: YES), it is determined whether or not the normal reception confirmation information is received in S20. When normal reception confirmation information is received (S20: YES), the communication line abnormality determination counter corresponding to the abnormality determination CANID of the communication line abnormality determination process is cleared (set to 0) in S30. , The process proceeds to S50. The communication line abnormality determination counter is provided in the RAM of the
一方、正常受信確認情報を受信しなかった場合には(S20:NO)、S40にて、当該通信線異常判定処理の異常判定用CANIDに対応する通信線異常判定カウンタをインクリメント(1加算)し、S50に移行する。 On the other hand, if the normal reception confirmation information has not been received (S20: NO), the communication line abnormality determination counter corresponding to the abnormality determination CANID of the communication line abnormality determination process is incremented (added by 1) in S40. , The process proceeds to S50.
そしてS50に移行すると、当該通信線異常判定処理の異常判定用CANIDに対応する通信線異常判定カウンタの値(以下、通信線異常判定カウンタ値という)が予め設定された通信線異常判定値(本実施形態では例えば3)以上であるか否かを判断する。ここで、通信線異常判定カウンタ値が通信線異常判定値未満である場合には(S50:NO)、通信線異常判定処理を一旦終了する。 Then, when the process proceeds to S50, a communication line abnormality determination value (this is referred to as a communication line abnormality determination counter value) corresponding to the abnormality determination CANID of the communication line abnormality determination process (hereinafter referred to as a communication line abnormality determination counter value) is set. In the embodiment, for example, it is determined whether or not 3) or more. Here, when the communication line abnormality determination counter value is less than the communication line abnormality determination value (S50: NO), the communication line abnormality determination process is temporarily ended.
一方、通信線異常判定カウンタ値が通信線異常判定値以上である場合には(S50:YES)、S60にて、当該通信線異常判定処理の異常判定用CANIDが受信CANIDとして設定されているCANコントローラ37を搭載する周辺ECUと、エンジンECU2との間の通信線6で異常が発生していると判定し、通信線異常判定処理を一旦終了する。
On the other hand, if the communication line abnormality determination counter value is equal to or larger than the communication line abnormality determination value (S50: YES), the CAN for which abnormality determination CANID of the communication line abnormality determination process is set as the reception CANID in S60. It is determined that an abnormality has occurred in the
次に、エンジンECU2のマイコン12が実行するマイコン異常判定処理の手順を説明する。マイコン異常判定処理は、エンジンECU2の動作中において所定時間毎(例えば8ms毎)に繰り返し実行される処理である。またマイコン異常判定処理は、周辺ECU3,4,5毎に設けられている。
Next, a procedure of microcomputer abnormality determination processing executed by the
このマイコン異常判定処理が実行されると、マイコン12は、図5に示すように、まずS110にて、通信線6で異常が発生しているとS60で判定されたか否かを判断する。ここで、通信線6で異常が発生していると判定されている場合には(S110:YES)、マイコン異常判定処理を一旦終了する。一方、通信線6で異常が発生していると判定されていない場合には(S110:NO)、S120にて、当該マイコン異常判定処理に対応する周辺ECUからの通信フレームを受信したか否かを判断する。
When the microcomputer abnormality determination process is executed, the
ここで、対応する周辺ECUからの通信フレームを受信していない場合には(S120:NO)、S140に移行する。一方、対応する周辺ECUからの通信フレームを受信した場合には(S120:YES)、S130にて、当該マイコン異常判定処理の周辺ECUに対応するマイコン異常判定タイマをクリア(0に設定)し、S140に移行する。なおマイコン異常判定タイマは、周辺ECU3,4,5毎に、マイコン12のRAM内に設けられている。マイコン異常判定タイマは、例えば1ms毎に自動的にインクリメントするタイマであり、ある時点でその値が0に設定されると、その時点で再び0からインクリメントする。
If no communication frame has been received from the corresponding peripheral ECU (S120: NO), the process proceeds to S140. On the other hand, when a communication frame is received from the corresponding peripheral ECU (S120: YES), the microcomputer abnormality determination timer corresponding to the peripheral ECU of the microcomputer abnormality determination process is cleared (set to 0) in S130. The process proceeds to S140. The microcomputer abnormality determination timer is provided in the RAM of the
そしてS140に移行すると、当該マイコン異常判定処理の周辺ECUに対応するマイコン異常判定タイマの値(以下、マイコン異常判定タイマ値という)が予め設定されたマイコン異常判定値(本実施形態では例えば24msに相当する値)以上であるか否かを判断する。ここで、マイコン異常判定タイマ値がマイコン異常判定値未満である場合には(S140:NO)、マイコン異常判定処理を一旦終了する。 In S140, a microcomputer abnormality determination timer value (hereinafter referred to as a microcomputer abnormality determination timer value) corresponding to the peripheral ECU of the microcomputer abnormality determination process is set to a microcomputer abnormality determination value (in this embodiment, for example, 24 ms). It is determined whether or not it is equal to or greater than the corresponding value. Here, when the microcomputer abnormality determination timer value is less than the microcomputer abnormality determination value (S140: NO), the microcomputer abnormality determination process is temporarily ended.
一方、マイコン異常判定タイマ値がマイコン異常判定値以上である場合には(S140:YES)、S150にて、当該マイコン異常判定処理に対応する周辺ECUのマイコン22で異常が発生していると判定し、マイコン異常判定処理を一旦終了する。
On the other hand, if the microcomputer abnormality determination timer value is equal to or greater than the microcomputer abnormality determination value (S140: YES), it is determined in S150 that an abnormality has occurred in the
このように構成された車両用通信システム1は、通信線6を介して互いにデータ通信可能に接続されたエンジンECU2と周辺ECU3,4,5とを備える。
周辺ECU3,4,5は、マイコン22とCANコントローラ37とを備える。
The vehicular communication system 1 configured as described above includes an
The
マイコン22は、エンジンECU2との間で通信フレームを送受信する機能と、エンジンECU2から通信フレームを正常に受信すると、その旨を示す正常受信確認情報を通信線6へ送信する機能とを有する。またCANコントローラ37は、エンジンECU2から通信フレームを正常に受信すると、その旨を示す正常受信確認情報を通信線6へ送信する。
The
このように構成された車両用通信システム1では、周辺ECU3,4,5がエンジンECU2から通信フレームを受信すると、周辺ECU3,4,5のマイコン22が正常受信確認情報を通信線6へ送信するとともに、周辺ECU3,4,5のCANコントローラ37が正常受信確認情報を通信線6へ送信する。
In the vehicle communication system 1 configured as described above, when the
このため、マイコン22で異常が発生し且つ通信線6で異常が発生していない場合に、エンジンECU2は、少なくともCANコントローラ37からの正常受信確認情報を受信することができる。一方、マイコン22で異常が発生しておらず且つ通信線6で異常が発生している場合に、エンジンECU2は、マイコン22からの正常受信確認情報とCANコントローラ37からの正常受信確認情報の両方を受信することができない。
For this reason, when an abnormality occurs in the
したがって、車両用通信システム1によれば、エンジンECU2は、周辺ECU3,4,5から通信フレームを受信できない場合において、CANコントローラ37からの正常受信確認情報を受信できるか否かに基づいて、異常発生箇所がマイコン22であるか通信線6であるかを特定することが可能となる。
Therefore, according to the vehicle communication system 1, when the
またエンジンECU2は、周辺ECU3,4,5へ通信フレームを送信した後に、周辺ECU3,4,5から正常受信確認情報を受信したか否かを判断する(S20)。そしてエンジンECU2は、正常受信確認情報を受信したか否かの判断結果に基づいて、通信線異常判定カウンタ値が通信線異常判定値以上であるか否かを判断し(S30〜S50)、通信線異常判定カウンタ値が通信線異常判定値以上である場合に(S50:YES)、通信線6で異常が発生したと判定する(S60)。これによりエンジンECU2は、周辺ECU3,4,5から通信フレームを受信できない場合において、通信線6で異常が発生したか否かを判定することができる。
Further, after transmitting the communication frame to the
またエンジンECU2は、通信線6で異常が発生しておらず(S110:NO)、且つ、マイコン異常判定タイマ値がマイコン異常判定値以上である場合に(S140:YES)、周辺ECU3,4,5のマイコン22で異常が発生したと判定する(S150)。これによりエンジンECU2は、周辺ECU3,4,5から通信フレームを受信できない場合において、マイコン22で異常が発生したか否かを判定することができる。
Further, the
また周辺ECU3,4,5は、CANトランシーバ21を備える。CANトランシーバ21は、マイコン22から通信フレームを示すデジタル信号を入力すると、CAN通信プロトコルに従う差動信号に変換して通信線6へ出力するとともに、通信線6から差動信号が入力すると、CAN通信プロトコルに基づいて、差動信号に対応するデジタル信号に変換してマイコン22へ出力する。そしてCANコントローラ37は、マイコン22とCANトランシーバ21との間に設けられた信号伝送経路を介して信号を入出力可能に接続される。これにより、マイコン22からの正常受信確認情報を差動信号に変換するための機能と、CANコントローラ37からの正常受信確認情報を差動信号に変換するための機能とをCANトランシーバ21で行うことができる。すなわち、CANコントローラ37からの正常受信確認情報を送信する機能を追加することに伴い、この正常受信確認情報を差動信号に変換するためのCANトランシーバを新たに追加する必要がなくなり、周辺ECU3,4,5の構成を簡略化することができる。
The
また、通信線6に流れる差動信号は、優性に対応したドミナントと、劣性に対応したレセッシブの何れか一方の信号レベルとなる。そしてマイコン22は、正常受信確認情報として、ドミナントに対応したデジタル信号を出力する。またCANコントローラ37は、マイコン22が正常受信確認情報を送信するのと同じタイミングで、正常受信確認情報として、ドミナントに対応したデジタル信号を出力する。これにより周辺ECU3,4,5は、マイコン22からの正常受信確認情報とCANコントローラ37からの正常受信確認情報とを1つにまとめた正常受信確認情報(以下、統合受信確認情報という)を出力することができる。そして、この統合受信確認情報は、マイコン22からの正常受信確認情報と、CANコントローラ37からの正常受信確認情報との何れか一つがドミナントである場合にドミナントとなる。換言すると、統合受信確認情報は、マイコン22からの正常受信確認情報と、CANコントローラ37からの正常受信確認情報との両方がレセッシブである場合にドミナントとなる。このためエンジンECU2は、統合受信確認情報がドミナントである場合に、マイコン22およびCANコントローラ37の少なくとも一つから正常受信確認情報を受信したと判断することができる。一方、エンジンECU2は、統合受信確認情報がレセッシブである場合に、マイコン22およびCANコントローラ37の両方から正常受信確認情報を受信していないと判断することができる。したがってエンジンECU2は、統合受信確認情報がドミナントであるか否かに基づいて、異常発生箇所がマイコン22であるか通信線6であるかを特定することが可能となる。
Further, the differential signal flowing through the
以上説明した実施形態において、車両用通信システム1は本発明における通信システム、周辺ECU3,4,5は本発明における第1電子制御装置、エンジンECU2は本発明における第2電子制御装置、マイコン22は本発明におけるマイクロコンピュータ、CANコントローラ37は本発明における確認情報送信部である。
In the embodiment described above, the vehicle communication system 1 is the communication system according to the present invention, the
また、S20の処理は本発明における受信確認手段、S30〜S60の処理は本発明における通信線異常判定手段、S110〜S150の処理は本発明におけるマイコン異常判定手段、CANトランシーバ21は本発明における信号変換部である。
The process of S20 is the reception confirmation means in the present invention, the processes of S30 to S60 are the communication line abnormality determination means in the present invention, the processes of S110 to S150 are the microcomputer abnormality determination means in the present invention, and the
以上、本発明の一実施形態について説明したが、本発明は上記実施形態に限定されるものではなく、本発明の技術的範囲に属する限り種々の形態を採ることができる。
例えば上記実施形態では、車両用通信システム1が4台のECUを備えるものを示したが、2台、3台のECUを備えるようにしてもよいし、5台以上のECUを備えるようにしてもよい。
As mentioned above, although one Embodiment of this invention was described, this invention is not limited to the said embodiment, As long as it belongs to the technical scope of this invention, a various form can be taken.
For example, in the above-described embodiment, the vehicle communication system 1 includes four ECUs. However, the vehicle communication system 1 may include two, three ECUs, or five or more ECUs. Also good.
また上記実施形態では、エンジンECU2が周辺ECU3,4,5から通信フレームを受信していない期間が予め設定さえた異常判定期間(本実施形態では24ms)以上である場合に、マイコン22で異常が発生していると判定するものを示した(S140,S150を参照)。しかし、周辺ECU3,4,5からの通信フレームのうち、予め設定された定期送信周期毎に周辺ECU3,4,5から送信される通信フレームを用いて、周辺ECU3,4,5から通信フレームを受信していない期間を計測するようにしてもよい。これにより、通信フレームを受信してから次に通信フレームを受信するまでの期間が定期送信周期であることが確実となり、通信フレームを受信していない期間が定期送信周期を超えた場合に、マイコン22で異常が発生していると判定することが可能となる。
Further, in the above embodiment, when the period in which the
また上記実施形態では、CAN通信プロトコルに基づいて通信を行うものを示したが、これに限定されるものではなく、通信フレームを受信した場合に受信確認情報を送信することが可能な通信プロトコルであればよい。 In the above-described embodiment, communication based on the CAN communication protocol is shown. However, the present invention is not limited to this, and a communication protocol that can transmit reception confirmation information when a communication frame is received. I just need it.
1…車両用通信システム、2…エンジンECU、3,4,5…周辺ECU、6…通信線、22…マイコン、37…CANコントローラ DESCRIPTION OF SYMBOLS 1 ... Vehicle communication system, 2 ... Engine ECU, 3, 4, 5 ... Peripheral ECU, 6 ... Communication line, 22 ... Microcomputer, 37 ... CAN controller
Claims (7)
前記第1電子制御装置は、
前記第2電子制御装置との間で通信フレームを送受信する機能と、前記第2電子制御装置から前記通信フレームを受信すると、その旨を示す第1受信確認情報を前記通信線へ送信する機能とを有するマイクロコンピュータ(22)と、
前記第2電子制御装置から前記通信フレームを受信すると、その旨を示す第2受信確認情報を前記通信線へ送信する確認情報送信部(37)とを備え、
前記第2電子制御装置は、
前記第1電子制御装置へ前記通信フレームを送信した後に、前記第1電子制御装置から前記第1受信確認情報と前記第2受信確認情報を受信したか否かを判断する受信確認手段(S20)と、
前記受信確認手段による判断結果に基づいて、前記第1受信確認情報と前記第2受信確認情報の両方を受信できないことを示す予め設定された通信線異常判定条件が成立したか否かを判断し、前記通信線異常判定条件が成立した場合に、前記通信線で異常が発生したと判定する通信線異常判定手段(S30〜S60)とを備える
ことを特徴とする通信システム(1)。 A communication system comprising a first electronic control unit (3, 4, 5) and a second electronic control unit (2) connected to each other via a communication line (6) so as to be capable of data communication,
The first electronic control unit includes:
A function of transmitting / receiving a communication frame to / from the second electronic control device; and a function of transmitting first reception confirmation information indicating that to the communication line when the communication frame is received from the second electronic control device. A microcomputer (22) having:
When receiving the communication frame from the second electronic control unit, a confirmation information transmitting unit (37) that transmits second reception confirmation information indicating that to the communication line ,
The second electronic control unit is
Reception confirmation means for determining whether or not the first reception confirmation information and the second reception confirmation information are received from the first electronic control apparatus after transmitting the communication frame to the first electronic control apparatus (S20). When,
Based on the determination result by the reception confirmation means, it is determined whether a preset communication line abnormality determination condition indicating that both of the first reception confirmation information and the second reception confirmation information cannot be received is satisfied. A communication system (1) comprising: communication line abnormality determination means (S30 to S60) for determining that an abnormality has occurred in the communication line when the communication line abnormality determination condition is satisfied .
前記通信線で異常が発生しておらず且つ前記第1電子制御装置からの前記通信フレームを受信できないことを示す予め設定されたマイコン異常判定条件が成立したか否かを判断し、前記マイコン異常判定条件が成立した場合に、前記第1電子制御装置の前記マイクロコンピュータで異常が発生したと判定するマイコン異常判定手段(S110〜S150)を備える
ことを特徴とする請求項1に記載の通信システム。 The second electronic control unit is
It is determined whether or not a preset microcomputer abnormality determination condition indicating that no abnormality has occurred in the communication line and the communication frame from the first electronic control unit cannot be received, and the microcomputer abnormality The communication system according to claim 1 , further comprising microcomputer abnormality determination means (S110 to S150) for determining that an abnormality has occurred in the microcomputer of the first electronic control unit when a determination condition is satisfied. .
予め設定された定期送信周期毎に前記第1電子制御装置から送信される前記通信フレームを用いて、前記マイコン異常判定条件が成立したか否かを判断する
ことを特徴とする請求項2に記載の通信システム。 The microcomputer abnormality determining means is
3. It is determined whether or not the microcomputer abnormality determination condition is satisfied by using the communication frame transmitted from the first electronic control device at each preset periodic transmission cycle. Communication system.
前記マイクロコンピュータから前記通信フレームを示すデジタル信号を入力すると、予め設定された通信プロトコルに従う伝送信号に変換して前記通信線へ出力するとともに、前記通信線から前記伝送信号が入力すると、前記通信プロトコルに基づいて、前記伝送信号に対応する前記デジタル信号に変換して前記マイクロコンピュータへ出力する信号変換部(21)を備え、
前記確認情報送信部は、前記マイクロコンピュータと前記信号変換部との間に設けられた信号伝送経路を介して信号を入出力可能に接続される
ことを特徴とする請求項1〜請求項3の何れか1項に記載の通信システム。 The first electronic control unit includes:
When a digital signal indicating the communication frame is input from the microcomputer, it is converted into a transmission signal according to a preset communication protocol and output to the communication line. When the transmission signal is input from the communication line, the communication protocol A signal conversion unit (21) that converts the digital signal corresponding to the transmission signal and outputs the digital signal to the microcomputer;
The confirmation information transmission unit of claim 1 to claim 3, characterized in that input and output connected to the signal via a signal transmission path provided between the microcomputer and the signal conversion unit The communication system according to any one of the above.
前記マイクロコンピュータは、前記第1受信確認情報として、前記優性レベルに対応したデジタル信号を出力し、
前記確認情報送信部は、前記マイクロコンピュータが前記第1受信確認情報を送信するのと同じタイミングで、前記第2受信確認情報として、前記優性レベルに対応したデジタル信号を出力する
ことを特徴とする請求項4に記載の通信システム。 The transmission signal flowing through the communication line has either a dominant level corresponding to dominance or a non-dominance level corresponding to non-dominance.
The microcomputer outputs a digital signal corresponding to the dominant level as the first reception confirmation information,
The confirmation information transmitting unit outputs a digital signal corresponding to the dominant level as the second reception confirmation information at the same timing as the microcomputer transmits the first reception confirmation information. The communication system according to claim 4 .
前記第2電子制御装置との間で通信フレームを送受信する機能と、前記第2電子制御装置から前記通信フレームを受信すると、その旨を示す第1受信確認情報を前記通信線へ送信する機能とを有するマイクロコンピュータと、
前記第2電子制御装置から前記通信フレームを受信すると、その旨を示す第2受信確認情報を前記通信線へ送信する確認情報送信部とを備える
ことを特徴とする電子制御装置と通信線を介して互いにデータ通信可能に接続された電子制御装置(2)であって、
前記第1電子制御装置へ前記通信フレームを送信した後に、前記第1電子制御装置から前記第1受信確認情報と前記第2受信確認情報を受信したか否かを判断する受信確認手段と、
前記受信確認手段による判断結果に基づいて、前記第1受信確認情報と前記第2受信確認情報の両方を受信できないことを示す予め設定された通信線異常判定条件が成立したか否かを判断し、前記通信線異常判定条件が成立した場合に、前記通信線で異常が発生したと判定する通信線異常判定手段とを備える
ことを特徴とする電子制御装置。 In a communication system comprising a first electronic control device and a second electronic control device that are connected to each other via a communication line so as to be able to communicate data, an electronic control device (3,4,5) used as the first electronic control device ) And
A function of transmitting / receiving a communication frame to / from the second electronic control device; and a function of transmitting first reception confirmation information indicating that to the communication line when the communication frame is received from the second electronic control device. A microcomputer having
When receiving the communication frame from the second electronic control unit, a confirmation information transmitting unit that transmits second reception confirmation information indicating the fact to the communication line is provided.
An electronic control device (2) connected to the electronic control device and a communication line so as to be capable of data communication with each other,
A reception confirmation means for determining whether or not the first reception confirmation information and the second reception confirmation information are received from the first electronic control device after transmitting the communication frame to the first electronic control device;
Based on the determination result by the reception confirmation means, it is determined whether a preset communication line abnormality determination condition indicating that both of the first reception confirmation information and the second reception confirmation information cannot be received is satisfied. An electronic control device comprising: a communication line abnormality determination unit that determines that an abnormality has occurred in the communication line when the communication line abnormality determination condition is satisfied.
ことを特徴とする請求項6に記載の電子制御装置。 It is determined whether or not a preset microcomputer abnormality determination condition indicating that no abnormality has occurred in the communication line and the communication frame from the first electronic control unit cannot be received, and the microcomputer abnormality The electronic control device according to claim 6 , further comprising: a microcomputer abnormality determination unit that determines that an abnormality has occurred in the microcomputer of the first electronic control device when a determination condition is satisfied.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014084508A JP6183281B2 (en) | 2014-04-16 | 2014-04-16 | Communication system and electronic control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014084508A JP6183281B2 (en) | 2014-04-16 | 2014-04-16 | Communication system and electronic control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015204596A JP2015204596A (en) | 2015-11-16 |
JP6183281B2 true JP6183281B2 (en) | 2017-08-23 |
Family
ID=54597799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014084508A Active JP6183281B2 (en) | 2014-04-16 | 2014-04-16 | Communication system and electronic control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6183281B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7003832B2 (en) * | 2018-05-09 | 2022-01-21 | 株式会社デンソー | Electronic control system for vehicles and electronic control device for vehicles |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5192353B2 (en) * | 2008-10-31 | 2013-05-08 | 株式会社オートネットワーク技術研究所 | Communication circuit, communication device, communication system, and communication device aggregation device |
-
2014
- 2014-04-16 JP JP2014084508A patent/JP6183281B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2015204596A (en) | 2015-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10693905B2 (en) | Invalidity detection electronic control unit, in-vehicle network system, and communication method | |
KR101519793B1 (en) | Network system for vehicle and data transmission method of a different kind communication controller in the same system | |
WO2016017088A1 (en) | Gateway device | |
US20170134358A1 (en) | Communication system, communication control device, and fraudulent information-transmission preventing method | |
JP2009161148A (en) | Fault location detecting device, communication device, and fault location detecting method | |
US20180255072A1 (en) | Communication device | |
WO2014078678A1 (en) | Failsafe communication system and method | |
KR102471960B1 (en) | Apparatus for security of vehicle can communication and method thereof | |
JP2014072673A (en) | Relay device | |
JP2012235427A (en) | Connection method for bus controller, and communication system | |
KR101334017B1 (en) | Apparatus of checking a validity of message on network for a vehicle and method of thereof | |
JP6384332B2 (en) | Electronic control unit | |
JP6183281B2 (en) | Communication system and electronic control device | |
JP2006253922A (en) | Gateway apparatus and data transfer method for the gateway apparatus | |
JP2019097088A (en) | Serial communication system | |
JP5696685B2 (en) | In-vehicle communication system, communication abnormality monitoring method for in-vehicle communication system, and communication abnormality monitoring program for in-vehicle communication system | |
JP6569547B2 (en) | Communication method | |
JP2017017615A (en) | Communication apparatus and communication system | |
JP6593230B2 (en) | Communications system | |
JP5892890B2 (en) | Communication control device | |
JP2009105549A (en) | Communication apparatus and communication system | |
JP2018137637A (en) | Communication network and communication terminal | |
JP6296462B2 (en) | In-vehicle control device | |
JP7151930B2 (en) | RELAY DEVICE, COMMUNICATION NETWORK SYSTEM AND COMMUNICATION CONTROL METHOD | |
JP6137033B2 (en) | In-vehicle network system and in-vehicle relay device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160627 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170407 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170516 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170616 |
|
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: 20170627 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170710 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6183281 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |