JP2007181061A - Electronic controller, can system and method for diagnosing failure of can system - Google Patents

Electronic controller, can system and method for diagnosing failure of can system Download PDF

Info

Publication number
JP2007181061A
JP2007181061A JP2005379096A JP2005379096A JP2007181061A JP 2007181061 A JP2007181061 A JP 2007181061A JP 2005379096 A JP2005379096 A JP 2005379096A JP 2005379096 A JP2005379096 A JP 2005379096A JP 2007181061 A JP2007181061 A JP 2007181061A
Authority
JP
Japan
Prior art keywords
electronic control
bus line
characteristic data
control device
ecu
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.)
Pending
Application number
JP2005379096A
Other languages
Japanese (ja)
Inventor
Masayoshi Kawatsu
昌義 川津
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2005379096A priority Critical patent/JP2007181061A/en
Publication of JP2007181061A publication Critical patent/JP2007181061A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To perform failure judgment according to operation environment of an electronic controller for diagnosis to exactly perform failure diagnosis of the electronic controller. <P>SOLUTION: In a CAN system constituted of ECUs 1-3 and a CAN bus line 4, an ECU 1 receives and stores operation characteristics data transmitted by an ECU 2. The ECU 1 determines permission/prohibition of diagnosis and adoption or rejection of a control parameter from the ECU 2 based on the stored operation characteristics data. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、電子制御装置、CAN(Controller Area Network)システム、及びCANシステムの故障診断方法に係り、特に、エンジン制御装置等の車載電子制御装置間における制御情報伝達手段としてCANを採用した車輌システムに用いられる電子制御装置、CANシステム、及びCANシステムの故障診断方法に関する。   The present invention relates to an electronic control device, a CAN (Controller Area Network) system, and a failure diagnosis method for a CAN system, and in particular, a vehicle system adopting CAN as a control information transmission means between on-vehicle electronic control devices such as an engine control device. The present invention relates to an electronic control device, a CAN system, and a failure diagnosis method for a CAN system.

自動車などにおいて、エンジン電子制御装置、変速電子制御装置、ステアリング電子制御装置等の各種の車載電子制御装置を相互に関連付けして各種制御を行うために、その複数個の電子制御装置を共通のバスラインに接続し、代表的標準ネットワークプロトコルであるController Area Network(以下、単にCANという。)プロトコルを使用して車載電子制御装置間の相互通信を行うものがある。   In an automobile or the like, a plurality of electronic control devices such as an engine electronic control device, a transmission electronic control device, a steering electronic control device, etc. Some are connected to a line and perform mutual communication between in-vehicle electronic control devices using a controller area network (hereinafter simply referred to as CAN) protocol that is a typical standard network protocol.

このようなCANシステム(制御システム)において、CANバスラインに接続されて通信ノードをなす複数個の電子制御装置から送出されるデータの受信間隔を監視し、故障している電子制御装置を特定する技術が知られている(例えば、特許文献1)。
特開2003−143164号公報
In such a CAN system (control system), a reception interval of data transmitted from a plurality of electronic control devices connected to the CAN bus line and forming a communication node is monitored, and a faulty electronic control device is specified. A technique is known (for example, Patent Document 1).
JP 2003-143164 A

しかしながら、このような通信故障検出を行うCANシステムにおいては、単に、CANバスラインに接続されている電子制御装置からの受信の有無によって故障判断を行っているため、診断対象となる電子制御装置が正しく動作する環境にない状況、例えば、バッテリ電圧や起動時間が正規の状態にない状況下において診断を実行すると、正常な電子制御装置を故障と誤判定してしまう可能性がある。   However, in a CAN system that performs such communication failure detection, failure determination is simply performed based on whether or not there is reception from an electronic control device connected to the CAN bus line. If the diagnosis is executed in a situation that is not in an environment that operates correctly, for example, in a situation where the battery voltage or the start-up time is not in a normal state, there is a possibility that a normal electronic control device is erroneously determined as a failure.

このような状況を回避するために、診断を実行する電子制御装置において、診断対象の動作環境範囲値を記憶させて判断することも可能である。しかし、電子制御装置毎に動作環境範囲が異なるため、動作環境範囲を一律で決めることができず、診断を実行する電子制御装置は、診断対象電子制御装置の動作環境範囲値を電子制御装置毎に個々に記憶する必要がある。   In order to avoid such a situation, it is also possible to store and determine the operating environment range value to be diagnosed in the electronic control device that executes the diagnosis. However, since the operating environment range is different for each electronic control device, the operating environment range cannot be determined uniformly, and the electronic control device that executes diagnosis determines the operating environment range value of the diagnosis target electronic control device for each electronic control device. Need to be memorized individually.

たとえ、診断対象電子制御装置の動作環境範囲値を、診断を実行する電子制御装置に記憶させても、診断対象となる電子制御装置の動作環境範囲が変更になると、診断を実行する電子制御装置に記憶させた動作環境範囲値も変更する必要が生じる。このため、診断を実行する電子制御装置に記憶させる動作環境範囲値は、かなり余裕を持たせた設定しかできず、故障判定を実行できる領域が限定されてしまう。このため、従来の制御システムでは、電子制御装置の故障診断を的確に行うことが難しい。   Even if the operating environment range value of the diagnosis target electronic control device is stored in the electronic control device that executes the diagnosis, if the operation environment range of the electronic control device that is the diagnosis target is changed, the electronic control device that executes the diagnosis It is also necessary to change the operating environment range value stored in. For this reason, the operating environment range value stored in the electronic control unit that executes diagnosis can only be set with a considerable margin, and the area in which failure determination can be performed is limited. For this reason, it is difficult for the conventional control system to accurately diagnose the failure of the electronic control device.

本発明は、前記課題に鑑みてなされたものであって、その目的とするところは、診断対象となる電子制御装置の動作環境に合わせた故障判定を行い、電子制御装置の故障診断を的確に行うことができる電子制御装置、CANシステム、及びその故障診断方法を提供することにある。   The present invention has been made in view of the above-mentioned problems, and the object of the present invention is to perform failure determination in accordance with the operating environment of the electronic control device to be diagnosed and accurately diagnose failure of the electronic control device. It is an object to provide an electronic control device, a CAN system, and a failure diagnosis method thereof that can be performed.

前記目的を達成するために、本発明による電子制御装置は、CANバスラインに接続され、前記CANバスラインのデータを取得する手段を有する電子制御装置であって、同一CANバスラインに接続される他の電子制御装置からの動作特性データを受信し、受信した動作特性データを自身のメモリに記憶する。   To achieve the above object, an electronic control device according to the present invention is an electronic control device connected to a CAN bus line and having means for acquiring data of the CAN bus line, and is connected to the same CAN bus line. It receives operation characteristic data from other electronic control units and stores the received operation characteristic data in its own memory.

本発明による電子制御装置は、好ましくは、受信した動作特性データを記憶する前記メモリは、電源停止時も記憶値を保持するメモリによって構成される。   In the electronic control device according to the present invention, preferably, the memory for storing the received operation characteristic data is constituted by a memory for holding a stored value even when the power is stopped.

本発明による電子制御装置は、更に、同一CANバスラインに接続された前記他の電子制御装置の通信状況を監視して異常診断する手段を備え、前記メモリに記憶した前記動作特性データを条件に異常診断を許可/禁止する。   The electronic control device according to the present invention further comprises means for monitoring the communication status of the other electronic control device connected to the same CAN bus line and diagnosing the abnormality, and using the operation characteristic data stored in the memory as a condition. Allow / prohibit abnormality diagnosis.

本発明による電子制御装置は、好ましくは、同一CANバスラインに接続された前記他の電子制御装置からの受信データの採否を、前記メモリに記憶した前記動作特性データ条件に決定する。   The electronic control device according to the present invention preferably determines whether or not the received data from the other electronic control device connected to the same CAN bus line is accepted as the operating characteristic data condition stored in the memory.

本発明による電子制御装置は、好ましくは、動作特性データを受信して当該動作特性データを前記メモリに記憶するまでの間、予め設定されている仮の動作特性データを使用する。   The electronic control device according to the present invention preferably uses temporary operation characteristic data set in advance until the operation characteristic data is received and the operation characteristic data is stored in the memory.

前記目的を達成するために、本発明による電子制御装置は、CANバスラインに接続され、前記CANバスラインにデータを送出する手段を有する電子制御装置であって、自身の動作環境を示す動作特性データを前記CANバスラインに送出する。   To achieve the above object, an electronic control device according to the present invention is an electronic control device connected to a CAN bus line and having means for sending data to the CAN bus line. Data is sent to the CAN bus line.

また、前記目的を達成するために、本発明によるCANシステムは、CANバスラインにデータを送出する手段と、前記CANバスラインのデータを取得する手段とを有する複数の電子制御装置が同一のCANバスラインに接続されたCANシステムであって、前記電子制御装置のうち診断対象となる電子制御装置は、自身の動作環境を示す動作特性データを前記CANバスラインに送出し、前記電子制御装置のうち診断を実行する電子制御装置は、診断対象となる電子制御装置より前記CANバスラインに送出された動作特性データを受信し、受信した動作特性データを自身のメモリに記憶し、前記メモリに記憶した動作特性データを基に診断の許可/禁止を判断し、診断対象となる電子制御装置の故障検出を行う。   In order to achieve the above object, a CAN system according to the present invention includes a plurality of electronic control units having the same CAN having means for sending data to the CAN bus line and means for obtaining data on the CAN bus line. In the CAN system connected to the bus line, the electronic control device to be diagnosed among the electronic control devices sends operating characteristic data indicating its operating environment to the CAN bus line, and Among them, the electronic control unit that executes the diagnosis receives the operation characteristic data sent to the CAN bus line from the electronic control unit to be diagnosed, stores the received operation characteristic data in its own memory, and stores it in the memory Based on the obtained operation characteristic data, the permission / prohibition of the diagnosis is determined, and the failure of the electronic control device to be diagnosed is detected.

また、前記目的を達成するために、本発明によるCANシステムの故障診断方法は、CANバスラインにデータを送出し、前記CANバスラインのデータを取得する複数の電子制御装置が同一のCANバスラインに接続されたCANシステムの故障診断方法であって、前記電子制御装置のうち診断対象となる電子制御装置は、自身の動作環境を示す動作特性データを前記CANバスラインに送出し、前記電子制御装置のうち診断を実行する電子制御装置は、診断対象となる電子制御装置より前記CANバスラインに送出された動作特性データを受信し、受信した動作特性データを自身のメモリに記憶し、前記メモリに記憶した動作特性データを基に診断の許可/禁止を判断し、診断対象となる電子制御装置の故障検出を行う。   In order to achieve the above object, according to the failure diagnosis method of a CAN system according to the present invention, a plurality of electronic control units for transmitting data to the CAN bus line and acquiring the data of the CAN bus line have the same CAN bus line. A failure diagnosis method for a CAN system connected to the electronic control device, wherein the electronic control device to be diagnosed among the electronic control devices sends operating characteristic data indicating its own operating environment to the CAN bus line, and An electronic control unit that executes diagnosis among the devices receives the operation characteristic data sent to the CAN bus line from the electronic control unit to be diagnosed, stores the received operation characteristic data in its own memory, and the memory Based on the operation characteristic data stored in the above, the permission / prohibition of the diagnosis is determined, and the failure of the electronic control device to be diagnosed is detected.

本発明によれば、診断を実行する電子制御装置は、同一のCANバスラインに接続される他の電子制御装置(診断対象の電子制御装置)の動作環境パラメータ(動作特性データ)を受信し、受信した動作特性データを自身のメモリに記憶するから、CANバスラインに接続されてデータを送出する電子制御装置の故障判定において、診断対象となる電子制御装置の動作環境に合わせて診断を行うことができる。また、診断対象の電子制御装置の動作環境が変更になった場合でも、診断を実行する電子制御装置の変更は不要となるため、診断許可/禁止の判断を余裕代を少なくした設定で行うことが可能となる。   According to the present invention, an electronic control device that executes diagnosis receives operating environment parameters (operation characteristic data) of another electronic control device (electronic control device to be diagnosed) connected to the same CAN bus line, Since the received operation characteristic data is stored in its own memory, in the failure determination of the electronic control device that is connected to the CAN bus line and transmits the data, the diagnosis is performed in accordance with the operating environment of the electronic control device to be diagnosed Can do. Even if the operating environment of the electronic control unit to be diagnosed is changed, it is not necessary to change the electronic control unit that executes the diagnosis. Is possible.

これらのことにより、診断対象となる電子制御装置の動作環境に合わせた故障判定を行い、電子制御装置の故障診断を的確に行うことができる。   As a result, it is possible to make a failure determination in accordance with the operating environment of the electronic control device to be diagnosed and accurately perform a failure diagnosis of the electronic control device.

本発明による電子制御装置およびCANシステムの実施形態を、図を参照して説明する。   An embodiment of an electronic control device and a CAN system according to the present invention will be described with reference to the drawings.

図1に示されているように、本実施形態のCANシステムは、自動車に搭載される電子制御装置(以下、ECU)として、エンジン制御ECU1(以下、ECU1)と、AT制御ECU2(以下、ECU2)と、メータ制御ECU3(以下、ECU3)が、各々通信ノートとして、共通のCANバスライン4に接続されている。ECU1〜3は、各々、CANバスライン4を介してCAN通信仕様に規定された通信方式により、情報の送受信を可能にしている。   As shown in FIG. 1, the CAN system of this embodiment includes an engine control ECU 1 (hereinafter referred to as ECU 1) and an AT control ECU 2 (hereinafter referred to as ECU 2) as an electronic control device (hereinafter referred to as ECU) mounted on a vehicle. ) And the meter control ECU 3 (hereinafter, ECU 3) are connected to a common CAN bus line 4 as communication notes. Each of the ECUs 1 to 3 enables transmission / reception of information through a CAN bus line 4 and a communication method defined in the CAN communication specification.

ECU1〜3は、各々、コンピュータ式のものであり、図2に示されているように、CPU10と、CANコントローラ11と、トランシーバ12と、ROM13と、RAM14を備えている。   Each of the ECUs 1 to 3 is of a computer type and includes a CPU 10, a CAN controller 11, a transceiver 12, a ROM 13, and a RAM 14, as shown in FIG.

トランシーバ12は、CANバスライン4とCANコントローラ11に接続され、CANバスライン4の差動式信号をCANコントローラ11が認識できる0V、5Vの2値からなるデジタル信号に変換する役割を持つ。   The transceiver 12 is connected to the CAN bus line 4 and the CAN controller 11 and has a role of converting a differential signal of the CAN bus line 4 into a digital signal composed of binary values of 0V and 5V that can be recognized by the CAN controller 11.

CANコントローラ11は、CPU10に接続され、CPU10から指示されたデータを、CAN通信仕様に規定されたデータフォーマットに展開した後、トランシーバ12を介してCANバスライン4に送出し、他のECUに伝達する。また、CANコントローラ11は、他のECUがCANバスライン4に送出したデータのうち必要なデータを、選別、取得し、CPU10に通知する。これにより、CANコントローラ11は、CANバスライン4にデータを送出する手段と、CANバスライン14のデータを取得する手段とをなす。   The CAN controller 11 is connected to the CPU 10 and expands the data instructed from the CPU 10 into a data format defined in the CAN communication specification, and then sends the data to the CAN bus line 4 via the transceiver 12 and transmits it to another ECU. To do. Further, the CAN controller 11 selects and acquires necessary data from data sent to the CAN bus line 4 by other ECUs, and notifies the CPU 10 of the selected data. As a result, the CAN controller 11 serves as means for sending data to the CAN bus line 4 and means for obtaining data on the CAN bus line 14.

ROM13は、プログラムや制御データを格納するために使用される。
CPU10は、ROM13に格納されたプログラムおよび制御データに従って制御に必要なパラメータの演算や、CANコントローラ11を制御し、パラメータの送受信を行う。
The ROM 13 is used for storing programs and control data.
The CPU 10 performs calculation of parameters necessary for control according to a program and control data stored in the ROM 13, and controls the CAN controller 11 to transmit and receive parameters.

RAM14は、CPU10の演算結果やCANコントローラ11から取得した情報を格納するために使用される。   The RAM 14 is used for storing calculation results of the CPU 10 and information acquired from the CAN controller 11.

なお、本実施形態におけるECU1〜3は、同様の構成として説明するが、例えばECU1は、CPU10、CANコントローラ11、ROM13とRAM14が一つのパッケージになっているICを使用するなど、必ずしもECU2およびECU3と同一構成である必要はない。   Although the ECUs 1 to 3 in the present embodiment are described as having the same configuration, for example, the ECU 1 does not necessarily include the ECU 2 and the ECU 3 such as using an IC in which the CPU 10, the CAN controller 11, the ROM 13 and the RAM 14 are in one package. It is not necessary to have the same configuration as

図3は、ECU1〜3の動作特性例を示している。図3(a)は動作電圧、図3(b)は電源投入後のCAN通信開始可能時間を例として示している。   FIG. 3 shows an example of operation characteristics of the ECUs 1 to 3. FIG. 3A shows the operating voltage, and FIG. 3B shows the CAN communication startable time after power-on as an example.

図3(a)は、ECU1は6Vから18V、ECU2は8Vから16V、ECU3は5Vから16Vの範囲で動作可能であることを示している。図3(b)は、電源投入からCAN通信が可能になる時間を示しており、ECM1が200ms、ECM2が250ms、ECM3が150msである。   FIG. 3A shows that the ECU 1 can operate in the range of 6V to 18V, the ECU 2 can operate in the range of 8V to 16V, and the ECU 3 can operate in the range of 5V to 16V. FIG. 3B shows a time period during which CAN communication can be performed after power-on. ECM1 is 200 ms, ECM2 is 250 ms, and ECM3 is 150 ms.

このように、CANバスライン4に接続されるECUの動作特性が異なる場合が想定され、また、当該ECUから得られる情報も動作特性の範囲内に限定される。   As described above, it is assumed that the operation characteristics of the ECU connected to the CAN bus line 4 are different, and information obtained from the ECU is also limited within the range of the operation characteristics.

図4を用いてECUの動作特性データのやり取りについて説明する。
診断対象となるECU2は、ROM213に、自身の動作環境パラメータ(動作特性データ)として、ECU2自体の動作可能電圧下限データ213a、動作可能電圧上限データ213b、CAN通信開始可能時間データ213cを格納している。ECU2は、これらの動作特性データを、CPU210、CANコントローラ211、トランシーバ212を経由してCANバスライン4へ送出する。
The exchange of the operation characteristic data of the ECU will be described with reference to FIG.
The ECU 2 to be diagnosed stores the operable voltage lower limit data 213a, operable voltage upper limit data 213b, and CAN communication startable time data 213c of the ECU 2 as its operating environment parameters (operation characteristic data) in the ROM 213. Yes. The ECU 2 sends these operation characteristic data to the CAN bus line 4 via the CPU 210, the CAN controller 211, and the transceiver 212.

診断を実行するECU1は、CANバスライン4からトランシーバ112、CANコントローラ111、CPU110を経由して動作特性データを取得し、ECU1内のRAM114内に設けた動作可能電圧下限値領域114a、動作可能電圧上限値領域114b、CAN通信開始可能時間値領域114cに、ECU2よりの動作可能電圧下限データ213a、動作可能電圧上限データ213b、CAN通信開始可能時間データ213cを格納する。これにより、診断を実行するECU1は、診断対象となるECU2の動作特性データを認識することができる。   The ECU 1 that executes the diagnosis acquires operating characteristic data from the CAN bus line 4 via the transceiver 112, the CAN controller 111, and the CPU 110, and operates in an operable voltage lower limit value area 114a and an operable voltage provided in the RAM 114 in the ECU 1. Operable voltage lower limit data 213a, operable voltage upper limit data 213b, and CAN communication startable time data 213c from the ECU 2 are stored in the upper limit value area 114b and the CAN communication startable time value area 114c. Thereby, ECU1 which performs a diagnosis can recognize the operation characteristic data of ECU2 used as a diagnostic object.

なお、動作特性データを記憶するRAM114は、ECU1の電源停止中も記憶値を保持できるようにバックアップされたメモリ、もしくはEEPROMのように電気的に書換えが可能な不揮発性メモリであることが好ましい。これは、動作特性データは、CAN通信によって他のECUから受信しなければならず、動作特性データを受信するまでの間は、前回までに受信して記憶しておいたデータを保持しておくことで、ECU1の電源投入直後から使用できるようにするためである。   Note that the RAM 114 that stores the operation characteristic data is preferably a memory that is backed up so that the stored value can be held even when the power of the ECU 1 is stopped, or a nonvolatile memory that can be electrically rewritten, such as an EEPROM. This is because the operation characteristic data must be received from other ECUs by CAN communication, and until the operation characteristic data is received, the data received and stored until the previous time is held. This is so that the ECU 1 can be used immediately after the power is turned on.

診断を実行するECU1は、ROM113に、ECU2の仮動作可能電圧下限データ113a、仮動作可能電圧上限データ113b、仮CAN通信開始可能時間データ113cを格納している。   The ECU 1 that executes the diagnosis stores the temporary operable voltage lower limit data 113a, the temporary operable voltage upper limit data 113b, and the temporary CAN communication startable time data 113c of the ECU 2 in the ROM 113.

次に、図5に示すフローチャートを参照して、受信・記憶した動作特性データの使用方法について説明する。ここでは、図4において、動作特性データ(動作可能電圧下限データ213a、動作可能電圧上限データ213b、CAN通信開始可能時間データ213c)を送出したECU2をECU1が診断し、またECU2から受信した制御データの採否判断を行う例にて説明する。なお、本発明は診断方法に係る発明ではないため、診断方法の詳細な説明は割愛する。   Next, a method for using the received / stored operation characteristic data will be described with reference to the flowchart shown in FIG. Here, in FIG. 4, ECU 1 diagnoses ECU 2 that has sent operating characteristic data (operable voltage lower limit data 213 a, operable voltage upper limit data 213 b, CAN communication start possible time data 213 c), and control data received from ECU 2. This will be described with reference to an example of determining whether to accept or reject. Since the present invention is not an invention related to a diagnostic method, a detailed description of the diagnostic method is omitted.

前述のように、ECU2が送出した動作特性データは、ECU1内のRAM114に記憶されている。ECU1は、電源投入されると、図5に示すフローチャートの処理を所定の周期(例えば10ms毎)で実行する。   As described above, the operation characteristic data sent out by the ECU 2 is stored in the RAM 114 in the ECU 1. When the power is turned on, the ECU 1 executes the processing of the flowchart shown in FIG. 5 at a predetermined cycle (for example, every 10 ms).

この処理の中で、まず、タイマTonをカウントして時間計測を行う(ステップS101)。この時間計測値は電源が投入されてからの時間に相当する。   In this process, first, the timer Ton is counted to measure time (step S101). This time measurement value corresponds to the time after the power is turned on.

次に、計測時間(タイマTon)とCAN通信開始可能時間値領域114cに書き込まれているCAN通信開始可能時間値とを比較する(ステップS102)。CAN通信開始可能時間・未経過と判断した場合には、診断処理(ステップS104)をスキップする。つまり、診断処理を禁止し、診断処理を実行しない。   Next, the measured time (timer Ton) is compared with the CAN communication startable time value written in the CAN communication startable time value area 114c (step S102). If it is determined that the CAN communication startable time / not yet elapsed, the diagnosis process (step S104) is skipped. That is, the diagnosis process is prohibited and the diagnosis process is not executed.

CAN通信開始可能時間を経過していると判断した場合には、次に、ECU1が認識しているバッテリ電圧と動作可能電圧下限値領域114aに書き込まれている動作可能電圧下限値とを比較する。バッテリ電圧が動作可能電圧下限値より低いと判定した場合には、診断処理(ステップS104)をスキップする。つまり、診断処理を禁止し、診断処理を実行しない。   If it is determined that the CAN communication startable time has elapsed, then the battery voltage recognized by the ECU 1 is compared with the operable voltage lower limit value written in the operable voltage lower limit value area 114a. . If it is determined that the battery voltage is lower than the operable voltage lower limit value, the diagnostic process (step S104) is skipped. That is, the diagnosis process is prohibited and the diagnosis process is not executed.

バッテリ電圧が動作可能電圧下限値より高いと判断した場合には、診断処理を許可し、ECU2のCAN受信データを監視する診断処理を実行する(ステップS104)。   When it is determined that the battery voltage is higher than the operable voltage lower limit value, the diagnosis process is permitted, and the diagnosis process for monitoring the CAN reception data of the ECU 2 is executed (step S104).

このように、ECU1内で生成するパラメータと比較し、ECU2がCAN通信を開始可能となる前や、現在のバッテリ電圧がECU2の動作可能電圧を下回っている場合には、診断が禁止される。車輌においては、キースイッチを操作することにより、ECU1およびECU2に同時にバッテリを電源とする電圧が投入されることから、ECU1が計測した時間をECU2のCAN通信開始可能時間値と比較することができるし、ECU1が検出したバッテリ電圧とECU2の動作可能電圧値と比較することができる。   Thus, compared with the parameters generated in the ECU 1, diagnosis is prohibited before the ECU 2 can start CAN communication or when the current battery voltage is lower than the operable voltage of the ECU 2. In the vehicle, by operating the key switch, a voltage using the battery as a power source is simultaneously applied to the ECU 1 and the ECU 2. Therefore, the time measured by the ECU 1 can be compared with the CAN communication startable time value of the ECU 2. The battery voltage detected by the ECU 1 can be compared with the operable voltage value of the ECU 2.

次に、バッテリ電圧と動作可能下限値領域114aに書き込まれている動作可能電圧下限値および動作可能上限値領域114bに書き込まれている動作可能電圧上限値とを比較し、バッテリ電圧が所定範囲内にあるか否かを判別する(ステップS105)。バッテリ電圧が所定範囲内にない場合には、CANデータ採用処理(ステップS106)をスキップする。バッテリ電圧が所定範囲内であると判定した場合には、ECU2から受信した制御データを採用するCANデータ採用処理を行う(ステップS106)。   Next, the battery voltage is compared with the operable voltage lower limit value written in the operable lower limit value region 114a and the operable voltage upper limit value written in the operable upper limit value region 114b, and the battery voltage is within a predetermined range. (Step S105). If the battery voltage is not within the predetermined range, the CAN data adoption process (step S106) is skipped. When it is determined that the battery voltage is within the predetermined range, a CAN data adoption process that employs the control data received from the ECU 2 is performed (step S106).

これにより、ECU2の動作が保証できない領域においては、ECU2から受信した制御データを破棄し、ECU2の制御データをもとに実行する処理の誤動作が防止される。   Thereby, in the area where the operation of the ECU 2 cannot be guaranteed, the control data received from the ECU 2 is discarded, and the malfunction of the process executed based on the control data of the ECU 2 is prevented.

本実施形態のCANシステムは、故障診断において、診断対象のECU2の動作特性データを、診断を実行するECU1がCANより受信、記憶した値を使用することを特徴としている。   The CAN system of the present embodiment is characterized in that, in failure diagnosis, the operation characteristic data of the ECU 2 to be diagnosed is a value received and stored from the CAN by the ECU 1 that executes the diagnosis.

ここで、例えば、ECU2がモデルチェンジ等により変更となり、動作特性データが変更になった場合でも、変更後のECU2が送出する新たな動作特性データを使用してECU1が判断を行うことができるため、ECU1に影響を与えることなくECU2をモデルチェンジすることができる。   Here, for example, even when the ECU 2 is changed due to a model change or the like and the operation characteristic data is changed, the ECU 1 can make a determination by using new operation characteristic data transmitted from the changed ECU 2. The ECU 2 can be model changed without affecting the ECU 1.

以上説明したように、本実施形態のCANシステムでは、CANバスライン4を経由してCANバスライン4に接続されるECUに動作環境パラメータ(特性データ;例えば最低動作電圧、電源投入からの起動時間)を知らしめ、他のECUからの動作環境パラメータを受信した場合には、メモリに記憶するから、診断を実行するECUは、診断対象のECUの動作環境を把握できる。これによって、例えば、CANバスライン4に送出されるデータを監視して診断(故障検出)を行う場合、メモリに記憶した動作環境パラメータを基に診断の許可/禁止を判断することができ、診断による誤判定を防止することができる。また、ECUが何らかの理由により変更され、動作環境パラメータが変わった場合でも、変更されたECUに対応した新たな動作環境パラメータを知ることができるため、その他のECUに対する影響を抑止することができる。   As described above, in the CAN system of the present embodiment, the operating environment parameters (characteristic data; for example, the minimum operating voltage, the startup time from power-on, are connected to the ECU connected to the CAN bus line 4 via the CAN bus line 4. When the operating environment parameters are received from other ECUs, they are stored in the memory, so that the ECU executing the diagnosis can grasp the operating environment of the ECU to be diagnosed. As a result, for example, when performing diagnosis (failure detection) by monitoring data sent to the CAN bus line 4, it is possible to determine whether or not to permit diagnosis based on the operating environment parameters stored in the memory. It is possible to prevent erroneous determination due to. Further, even when the ECU is changed for some reason and the operating environment parameter is changed, the new operating environment parameter corresponding to the changed ECU can be known, so that the influence on other ECUs can be suppressed.

車輌の故障、例えば、CANバスライン4が断線しているような場合、動作特性データを受信することができない。このことに対して、ECU2の動作特性データに対し、十分に余裕を持たせた仮の特性データ(仮動作可能電圧下限データ113a、仮動作可能電圧上限データ113b、仮CAN通信開始可能時間データ113c)を、予めECU1のROM113内に記憶させてあり、図6に示すECU1のイニシャル処理を実行する。   If the vehicle is broken, for example, if the CAN bus line 4 is disconnected, the operating characteristic data cannot be received. On the other hand, provisional characteristic data (provisional operable voltage lower limit data 113a, provisional operable voltage upper limit data 113b, provisional CAN communication startable time data 113c having sufficient allowance for the operation characteristic data of the ECU 2 is provided. ) Is previously stored in the ROM 113 of the ECU 1, and the initial process of the ECU 1 shown in FIG. 6 is executed.

イニシャル処理では、先ず、ECU2からの動作特性データの受信履歴がないか否かを判別する(ステップS110)。受信履歴がないと判断した場合には、ROM113に格納されている仮特性データ(仮動作可能電圧下限データ113a、仮動作可能電圧上限データ113b、仮CAN通信開始可能時間データ113c)をそれぞれRAM114の動作可能電圧下限値領域114a、動作可能電圧上限値領域114b、CAN通信開始可能時間値領域114cにコピーする(ステップS111)。   In the initial process, first, it is determined whether or not there is a reception history of operation characteristic data from the ECU 2 (step S110). If it is determined that there is no reception history, the temporary characteristic data (temporary operable voltage lower limit data 113a, temporary operable voltage upper limit data 113b, temporary CAN communication startable time data 113c) stored in the ROM 113 are stored in the RAM 114, respectively. Copy to the operable voltage lower limit value area 114a, the operable voltage upper limit value area 114b, and the CAN communication startable time value area 114c (step S111).

これにより、仮の動作特性データを用いて、図5に示したステップS102、S103およびS105の判定を実行すればよい。その後、ECU2から動作特性データを受信できる状況になった場合には、受信データ採用処理(ステップS106)にて、それぞれの値をRAM114の各領域に上書きすれば、ECU2の動作特性データによる判定を継続して行うことができる。   Thus, the determinations in steps S102, S103, and S105 shown in FIG. 5 may be executed using the temporary operating characteristic data. Thereafter, when it becomes possible to receive the operation characteristic data from the ECU 2, if each value is overwritten in each area of the RAM 114 in the received data adoption process (step S106), the determination based on the operation characteristic data of the ECU 2 is performed. It can be done continuously.

なお、CANバスライン4に接続されるECUのうち、ECU1とECU2を例に説明したが、その他のECUに対しても、例えばECU1とECU3のような組合せでも、同様に実現することができる。   In addition, although ECU1 and ECU2 were demonstrated to the example among ECU connected to the CAN bus line 4, it can implement | achieve similarly also about other ECUs, for example, combination like ECU1 and ECU3.

本発明による電子制御装置を含むCANシステムの一実施形態を示すネットワーク図。1 is a network diagram showing an embodiment of a CAN system including an electronic control device according to the present invention. 本発明による電子制御装置の一実施形態を示すブロック図。The block diagram which shows one Embodiment of the electronic control apparatus by this invention. (a)はCANシステムにおける各ECUの動作可能電圧例を示すグラフ、(b)は同じくCAN通信開始可能時間例を示すグラフ。(A) is a graph which shows the example of operable voltage of each ECU in a CAN system, (b) is a graph which similarly shows the example of CAN communication start possible time. 本発明による電子制御装置およびCANシステムの一実施形態の詳細を示すブロック図。The block diagram which shows the detail of one Embodiment of the electronic control apparatus and CAN system by this invention. 本発明による電子制御装置の一実施形態の動作を示すフローチャート。The flowchart which shows operation | movement of one Embodiment of the electronic control apparatus by this invention. 本発明による電子制御装置の一実施形態のイニシャル処理を示すフローチャート。The flowchart which shows the initial process of one Embodiment of the electronic control apparatus by this invention.

符号の説明Explanation of symbols

1〜3 電子制御装置(ECU)
4 CANバスライン
10 CPU
11 CANコントローラ
12 トランシーバ
13 ROM
14 RAM
110 ECU1に内蔵されるCPU
111 ECU1に内蔵されるCANコントローラ
112 ECU1に内蔵されるトランシーバ
113 ECU1に内蔵されるROM
114 ECU1に内蔵されるRAM
210 ECU2に内蔵されるCPU
211 ECU2に内蔵されるCANコントローラ
212 ECU2に内蔵されるトランシーバ
213 ECU2に内蔵されるROM
214 ECU2に内蔵されるRAM
1-3 Electronic control unit (ECU)
4 CAN bus line 10 CPU
11 CAN controller 12 Transceiver 13 ROM
14 RAM
110 CPU built in ECU1
111 CAN controller 112 built in ECU1 112 transceiver 113 built in ECU1 ROM built in ECU1
114 RAM built in ECU1
210 CPU built in ECU2
211 CAN controller 212 built in ECU 2 Transceiver 213 built in ECU 2 ROM built in ECU 2
214 RAM built in ECU 2

Claims (8)

CAN(Controller Area Network)バスラインに接続され、前記CANバスラインのデータを取得する手段を有する電子制御装置であって、
同一CANバスラインに接続される他の電子制御装置からの動作特性データを受信し、受信した動作特性データを自身のメモリに記憶することを特徴とする電子制御装置。
An electronic control device connected to a CAN (Controller Area Network) bus line and having means for acquiring data of the CAN bus line,
An electronic control device that receives operation characteristic data from another electronic control device connected to the same CAN bus line and stores the received operation characteristic data in its own memory.
受信した動作特性データを記憶する前記メモリは、電源停止時も記憶値を保持するメモリによって構成されていることを特徴とする請求項1に記載の電子制御装置。   The electronic control device according to claim 1, wherein the memory that stores the received operation characteristic data is configured by a memory that retains a stored value even when the power is stopped. 同一CANバスラインに接続された前記他の電子制御装置の通信状況を監視して異常診断する手段を備え、前記メモリに記憶した前記動作特性データを条件に異常診断を許可/禁止することを特徴とする請求項1又は2に記載の電子制御装置。   A means for monitoring the communication status of the other electronic control devices connected to the same CAN bus line and diagnosing the abnormality is provided, and abnormality diagnosis is permitted / prohibited based on the operation characteristic data stored in the memory. The electronic control device according to claim 1 or 2. 同一CANバスラインに接続された前記他の電子制御装置からの受信データの採否を、前記メモリに記憶した前記動作特性データを条件に決定することを特徴とする請求項1から3の何れか一項に記載の電子制御装置。   4. The acceptance / rejection of received data from the other electronic control unit connected to the same CAN bus line is determined based on the operation characteristic data stored in the memory. The electronic control device according to item. 動作特性データを受信して当該動作特性データを前記メモリに記憶するまでの間、予め設定されている仮の動作特性データを使用することを特徴とする請求項1から4の何れか一項に記載の電子制御装置。   The temporary operating characteristic data set in advance is used until the operating characteristic data is received and stored in the memory. The electronic control device described. CAN(Controller Area Network)バスラインに接続され、前記CANバスラインにデータを送出する手段を有する電子制御装置であって、
自身の動作環境を示す動作特性データを前記CANバスラインに送出することを特徴とする電子制御装置。
An electronic control device having means for sending data to the CAN bus line, connected to a CAN (Controller Area Network) bus line,
An electronic control device, characterized in that operating characteristic data indicating its own operating environment is sent to the CAN bus line.
CAN(Controller Area Network)バスラインにデータを送出する手段と、前記CANバスラインのデータを取得する手段とを有する複数の電子制御装置が同一のCANバスラインに接続されたCANシステムであって、
前記電子制御装置のうち診断対象となる電子制御装置は、自身の動作環境を示す動作特性データを前記CANバスラインに送出し、
前記電子制御装置のうち診断を実行する電子制御装置は、診断対象となる電子制御装置より前記CANバスラインに送出された動作特性データを受信し、受信した動作特性データを自身のメモリに記憶し、前記メモリに記憶した動作特性データを基に診断の許可/禁止を判断し、診断対象となる電子制御装置の故障検出を行うことを特徴とするCANシステム。
A CAN system in which a plurality of electronic control units having means for sending data to a CAN (Controller Area Network) bus line and means for obtaining data on the CAN bus line are connected to the same CAN bus line,
The electronic control device to be diagnosed among the electronic control devices sends operating characteristic data indicating its own operating environment to the CAN bus line,
The electronic control unit that executes diagnosis among the electronic control units receives the operation characteristic data sent from the electronic control unit to be diagnosed to the CAN bus line, and stores the received operation characteristic data in its own memory. A CAN system that judges permission / prohibition of diagnosis based on operation characteristic data stored in the memory, and detects a failure of an electronic control device to be diagnosed.
CAN(Controller Area Network)バスラインにデータを送出し、前記CANバスラインのデータを取得する複数の電子制御装置が同一のCANバスラインに接続されたCANシステムの故障診断方法であって、
前記電子制御装置のうち診断対象となる電子制御装置は、自身の動作環境を示す動作特性データを前記CANバスラインに送出し、
前記電子制御装置のうち診断を実行する電子制御装置は、診断対象となる電子制御装置より前記CANバスラインに送出された動作特性データを受信し、受信した動作特性データを自身のメモリに記憶し、前記メモリに記憶した動作特性データを基に診断の許可/禁止を判断し、診断対象となる電子制御装置の故障検出を行うことを特徴とするCANシステムの故障診断方法。
A failure diagnosis method for a CAN system in which a plurality of electronic control units that transmit data to a CAN (Controller Area Network) bus line and acquire data on the CAN bus line are connected to the same CAN bus line,
The electronic control device to be diagnosed among the electronic control devices sends operating characteristic data indicating its own operating environment to the CAN bus line,
The electronic control unit that executes diagnosis among the electronic control units receives the operation characteristic data sent from the electronic control unit to be diagnosed to the CAN bus line, and stores the received operation characteristic data in its own memory. A failure diagnosis method for a CAN system, wherein permission / prohibition of diagnosis is determined based on operation characteristic data stored in the memory, and failure detection of an electronic control device to be diagnosed is performed.
JP2005379096A 2005-12-28 2005-12-28 Electronic controller, can system and method for diagnosing failure of can system Pending JP2007181061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005379096A JP2007181061A (en) 2005-12-28 2005-12-28 Electronic controller, can system and method for diagnosing failure of can system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005379096A JP2007181061A (en) 2005-12-28 2005-12-28 Electronic controller, can system and method for diagnosing failure of can system

Publications (1)

Publication Number Publication Date
JP2007181061A true JP2007181061A (en) 2007-07-12

Family

ID=38305727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005379096A Pending JP2007181061A (en) 2005-12-28 2005-12-28 Electronic controller, can system and method for diagnosing failure of can system

Country Status (1)

Country Link
JP (1) JP2007181061A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009253736A (en) * 2008-04-08 2009-10-29 Mitsubishi Electric Corp Network system
WO2018131334A1 (en) * 2017-01-13 2018-07-19 パナソニックIpマネジメント株式会社 Illegality detection electronic control unit, electronic control unit, vehicle-mounted network system, illegality detection method and computer program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009253736A (en) * 2008-04-08 2009-10-29 Mitsubishi Electric Corp Network system
JP4509200B2 (en) * 2008-04-08 2010-07-21 三菱電機株式会社 Network system
WO2018131334A1 (en) * 2017-01-13 2018-07-19 パナソニックIpマネジメント株式会社 Illegality detection electronic control unit, electronic control unit, vehicle-mounted network system, illegality detection method and computer program
US11075927B2 (en) * 2017-01-13 2021-07-27 Panasonic Intellectual Property Management Co., Ltd. Fraud detection electronic control unit, electronic control unit, and non-transitory recording medium in which computer program is described

Similar Documents

Publication Publication Date Title
CN111133289B (en) Vehicle diagnostic device, vehicle diagnostic system, and vehicle diagnostic program
JP5772666B2 (en) Communications system
JP6754743B2 (en) In-vehicle electronic control unit and its abnormal processing method
US9978188B2 (en) Vehicle electronic control device and system with off-board diagnostic function
CN106415673B (en) For diagnosing the method and diagnostic testing apparatus of the state in vehicle
US20100250061A1 (en) Vehicle control device
JP6418217B2 (en) Information aggregation method executed in communication system
JP5286659B2 (en) In-vehicle device relay system, in-vehicle device relay method, and relay device
JP4509200B2 (en) Network system
JP2006253921A (en) Network system for vehicle
CN107430167A (en) Semiconductor device and diagnostic test method
JP5867605B2 (en) Failure diagnosis system, failure diagnosis apparatus and failure diagnosis method
US8412412B2 (en) Vehicle communication system and electronic control unit
JP5582748B2 (en) Electronic control device for vehicle
JP2007181061A (en) Electronic controller, can system and method for diagnosing failure of can system
JP6459851B2 (en) Electronic control device for vehicle
JP6345447B2 (en) Electronic control unit for automobile
WO2020217928A1 (en) Electronic control device
JP7205245B2 (en) electronic controller
KR20130042317A (en) Method for diagnosing engine off timer
JP7176444B2 (en) VEHICLE ELECTRONIC CONTROLLER, DEMAND DEVICE, AND FAULT DETECTION SYSTEM
JP2004142511A (en) Electronic control device for vehicle, electronic control unit, program, and recording medium
JP2015112962A (en) Information processing apparatus
JP2009005160A (en) Error generation device
JP7003456B2 (en) Diagnostic device