JP2009114932A - Communication abnormality detection device - Google Patents

Communication abnormality detection device Download PDF

Info

Publication number
JP2009114932A
JP2009114932A JP2007288113A JP2007288113A JP2009114932A JP 2009114932 A JP2009114932 A JP 2009114932A JP 2007288113 A JP2007288113 A JP 2007288113A JP 2007288113 A JP2007288113 A JP 2007288113A JP 2009114932 A JP2009114932 A JP 2009114932A
Authority
JP
Japan
Prior art keywords
data
control unit
communication abnormality
electronic control
abnormality detection
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
JP2007288113A
Other languages
Japanese (ja)
Other versions
JP5329794B2 (en
Inventor
Shigehiko Sugimori
滋彦 杉森
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.)
Keihin Corp
Original Assignee
Keihin Corp
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 Keihin Corp filed Critical Keihin Corp
Priority to JP2007288113A priority Critical patent/JP5329794B2/en
Publication of JP2009114932A publication Critical patent/JP2009114932A/en
Application granted granted Critical
Publication of JP5329794B2 publication Critical patent/JP5329794B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication abnormality detection device detecting such communication abnormality that data of same contents is sent repeatedly and effectively using communication resources without providing recognition data or monitor data separately for sending data. <P>SOLUTION: The communication abnormality detection device detecting communication abnormality between a plurality of electronic control devices periodically sending and receiving a plurality of kinds (n kinds) of data is constituted such that one (engine control unit 10) of the plurality of electronic control device determines data (command CMD) to be sent this time in the plurality of kinds of data and sends it to another device (throttle valve control unit 12) (S14), which is caused to change cycle of watch dog pulse according to the kind of received data, the changed watch dog cycle is measured, and communication abnormality is detected (from S16 to S24) when the cycle of the measured watch dog pulse is not changed according to the kind of the sent data. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、通信異常検知装置に関し、より具体的には複数の電子制御装置の間の通信異常を検知する装置に関する。   The present invention relates to a communication abnormality detection device, and more specifically to a device that detects communication abnormality between a plurality of electronic control devices.

一般的に内燃機関には、それを制御する上で燃料噴射装置(インジェクタ)、点火装置(イグナイタ)およびスロットルバルブなどの駆動をそれぞれ電子的に制御すべく複数の電子制御装置(ECU(Electronic Control Unit))が設けられる。各電子制御装置はCAN(Controller Area Network)通信などにより、それらを駆動制御するために必要となる複数種のデータを互いに送受信する。従来、複数種のデータを送受信する電子制御装置の間の通信異常を検知するものとして様々なものが提案されている。   In general, an internal combustion engine has a plurality of electronic control units (ECUs) (Electronic Control Units (ECUs)) for electronically controlling driving of a fuel injection device (injector), an ignition device (igniter), a throttle valve, and the like. Unit)) is provided. Each electronic control device transmits and receives a plurality of types of data necessary for driving and controlling them through CAN (Controller Area Network) communication or the like. Conventionally, various devices have been proposed for detecting an abnormality in communication between electronic control devices that transmit and receive multiple types of data.

例えば、下記の特許文献1にあっては、送信側の電子制御装置において複数の数値データを送信するに際し、複数の数値データの合計値を送信データに付加すると共に、受信側の電子制御装置において受信した複数の数値データの合計値を算出し、算出された合計値と受信した合計値を比較して確認することにより、電子制御装置の間の通信異常を検知している。また、下記の特許文献2にあっては、送信側の電子制御装置において送信データに通信毎に変化する監視情報、具体的には通信毎に1と0のいずれか交互に変化させられるフラグを付加して送信すると共に、受信側の電子制御装置において当該フラグの通信毎の変化を監視することにより、電子制御装置の間の通信異常を検知している。
特許第3156493号 特開2001−197154号公報
For example, in the following Patent Document 1, when transmitting a plurality of numerical data in the transmission-side electronic control device, the total value of the plurality of numerical data is added to the transmission data, and in the reception-side electronic control device, A communication abnormality between the electronic control devices is detected by calculating the total value of the received plurality of numerical data and comparing and confirming the calculated total value and the received total value. In Patent Document 2 below, monitoring information that changes for each communication in transmission data in the electronic control device on the transmission side, specifically, a flag that can be changed alternately between 1 and 0 for each communication. In addition to the transmission, the reception-side electronic control device detects a communication abnormality between the electronic control devices by monitoring changes in the flag for each communication.
Japanese Patent No. 3156493 JP 2001-197154 A

しかしながら、上記した特許文献に記載の通信異常検知は、送信側の電子制御装置において確認用あるいは監視用のデータを送信データに付加して送信し、受信側の電子制御装置においてそれを確認あるいは監視する構成であることから、送信側の電子制御装置が通信毎に送信データを更新することができずに同一内容のデータを繰り返して送信するといった通信異常を検知することができなかった。また、送信データに確認用あるいは監視用のデータを別途設ける必要があることから、通信リソースを有効に利用する点では改善の余地があった。   However, in the communication abnormality detection described in the above-mentioned patent document, the transmission-side electronic control device transmits data for confirmation or monitoring added to the transmission data, and the reception-side electronic control device confirms or monitors it. Because of this configuration, the transmission-side electronic control device cannot update transmission data for each communication, and cannot detect a communication abnormality such that data of the same content is repeatedly transmitted. Further, since it is necessary to provide data for confirmation or monitoring separately in the transmission data, there is room for improvement in terms of effective use of communication resources.

従って、この発明の目的は上記した課題を解決し、複数の種類のデータを周期的に送受信する複数の電子制御装置の間の通信異常を検知する通信異常検知装置において、同一内容のデータを繰り返して送信するといった通信異常を検知すると共に、送信データに確認用あるいは監視用のデータを別途設けることなく、通信リソースを有効に利用するようにした通信異常検知装置を提供することにある。   Accordingly, an object of the present invention is to solve the above-described problems and to repeatedly transmit data of the same content in a communication abnormality detection device that detects communication abnormality between a plurality of electronic control devices that periodically transmit and receive a plurality of types of data. Another object of the present invention is to provide a communication abnormality detection device that detects communication abnormality such as transmission and uses communication resources effectively without providing confirmation data or monitoring data separately in transmission data.

上記の目的を解決するために、請求項1にあっては、複数の種類のデータを周期的に送受信する複数の電子制御装置の間の通信異常を検知する通信異常検知装置において、前記複数の電子制御装置の一方は、前記複数の種類のデータの内、今回送信すべきデータを決定して他方に送信し、前記他方に、受信した前記データの種類に応じてウオッチドッグパルスの周期を変更させると共に、前記変更されたウオッチドッグパルスの周期を計測し、前記計測されたウオッチドッグパルスの周期が前記送信したデータの種類に応じて変更されていないとき、前記通信異常があると検知する如く構成した。   In order to solve the above-described object, in claim 1, in a communication abnormality detection device that detects communication abnormality between a plurality of electronic control devices that periodically transmit and receive a plurality of types of data, One of the electronic control devices determines the data to be transmitted this time among the plurality of types of data and transmits it to the other, and changes the period of the watchdog pulse according to the type of the received data to the other And measuring the period of the changed watchdog pulse and detecting that the communication abnormality is present when the period of the measured watchdog pulse is not changed according to the type of the transmitted data. Configured.

また、請求項2にあっては、前記一方は、前記一方と他方の演算負荷に基づいて前記複数種の制御データの内、今回送信すべきデータを決定する如く構成した。   According to a second aspect of the present invention, the one side is configured to determine data to be transmitted this time among the plurality of types of control data based on the calculation load of the one and the other.

上記において「通信異常」とは、電子制御装置の一方が同一内容のデータを繰り返して送信するといった通信内容の異常をいうが、電子制御装置の他方における受信異常や演算異常を含むものと解しても良い。   In the above, “communication abnormality” means an abnormality in communication contents in which one of the electronic control devices repeatedly transmits the same content data, but it is understood to include a reception abnormality or calculation abnormality in the other electronic control device. May be.

請求項1にあっては、複数の種類のデータを周期的に送受信する複数の電子制御装置の一方は、複数の種類のデータの内、今回送信すべきデータを決定して他方に送信し、他方に、受信したデータの種類に応じてウオッチドッグパルスの周期を変更させると共に、変更されたウオッチドッグパルスの周期を計測し、計測されたウオッチドッグパルスの周期が送信したデータの種類に応じて変更されていないとき、通信異常があると検知するように構成したので、同一内容のデータを繰り返して送信するといった通信異常を検知することができる。   According to claim 1, one of the plurality of electronic control devices that periodically transmit and receive a plurality of types of data determines data to be transmitted this time among the plurality of types of data and transmits to the other, On the other hand, the period of the watchdog pulse is changed according to the type of received data, the period of the changed watchdog pulse is measured, and the period of the measured watchdog pulse is changed according to the type of transmitted data. Since it is configured to detect that there is a communication abnormality when it has not been changed, it is possible to detect a communication abnormality such as repeatedly transmitting data having the same content.

即ち、電子制御装置の一方は、複数の種類のデータの内、今回送信すべきデータを決定して他方にそれを送信し、他方に、受信したデータの種類に応じてウオッチドッグパルスの周期を変更させるにも関わらず、一方において計測される他方のウオッチドッグパルスの周期が送信したデータの種類に応じて変更されていない場合にあっては、電子制御装置の一方が送信内容を更新することができず、前回通信時と同一内容のデータを送信する状況が想定されるため、上記のような通信異常を検知することができる。   That is, one of the electronic control devices determines data to be transmitted this time among a plurality of types of data and transmits it to the other, and on the other hand, sets the cycle of the watchdog pulse according to the type of received data. If the period of the other watchdog pulse measured on the other side is not changed according to the type of data transmitted, one of the electronic control units updates the transmission contents. In such a case, it is assumed that the same data is transmitted as in the previous communication, so that the communication abnormality as described above can be detected.

また、複数の種類のデータの内、今回送信すべきデータを利用して通信異常を検知するため、送信データに確認用あるいは監視用のデータを別途設ける必要がなく、よって通信リソースを有効に利用することができる。   In addition, since communication abnormality is detected using data to be transmitted this time among multiple types of data, there is no need to provide confirmation or monitoring data separately in the transmission data, so communication resources can be used effectively can do.

請求項2に係る通信異常検知装置にあっては、一方は、一方と他方の演算負荷に基づいて複数種の制御データの内、今回送信すべきデータを決定するように構成、換言すれば一方と他方の演算負荷に応じてウオッチドッグパルスの周期が設定されるように構成したので、一方がウオッチドッグパルスの周期を計測するために要する演算負荷と他方がウオッチドッグパルスを生成するために要する演算負荷を不要に増大させることなく、上記の効果を得ることができる。   In the communication abnormality detection device according to claim 2, one is configured to determine data to be transmitted this time among a plurality of types of control data based on the calculation load of one and the other, in other words, one Since the period of the watchdog pulse is set according to the calculation load of the other and the other, the calculation load required for one to measure the cycle of the watchdog pulse and the other required for generating the watchdog pulse The above effects can be obtained without unnecessarily increasing the calculation load.

以下、添付図面に即してこの発明に係る通信異常検知装置を実施するための最良の形態について説明する。   The best mode for carrying out the communication abnormality detection device according to the present invention will be described below with reference to the accompanying drawings.

図1は、この発明の第1実施例に係る通信異常検知装置を含む複数の電子制御装置を示すブロック図である。   FIG. 1 is a block diagram showing a plurality of electronic control devices including a communication abnormality detection device according to a first embodiment of the present invention.

図1において、符号10は、内燃機関(以下、「エンジン」という)の燃料噴射装置(インジェクタ)および点火装置(イグナイタ)を電子的に制御する電子制御装置(ECU(Electronic Control Unit)。以下、「エンジン制御ユニット」という)(電子制御装置の一方)を示す(図中に「UNIT1」と示す)。符号12は、スロットルバルブを電子的に制御する電子制御装置(ECU(Electronic Control Unit)。以下「スロットルバルブ制御ユニット」という)(電子制御装置の他方)を示す(図中に「UNIT2」と示す)。   In FIG. 1, reference numeral 10 denotes an electronic control unit (ECU) that electronically controls a fuel injection device (injector) and an ignition device (igniter) of an internal combustion engine (hereinafter referred to as “engine”). (Referred to as “engine control unit”) (shown as “UNIT1” in the drawing). Reference numeral 12 denotes an electronic control unit (ECU (Electronic Control Unit), hereinafter referred to as “throttle valve control unit”) (the other of the electronic control unit) that electronically controls the throttle valve (indicated by “UNIT2” in the figure). ).

エンジン制御ユニット10は中央演算装置たるCPU10aと、各種プログラムを格納するROM(図示なし)と、各種センサから出力されたデータやCPU10aで演算されたデータを一時的に記憶するRAM(図示なし)からなり、各種プログラムに従って制御対象たる燃料噴射装置および点火装置の駆動を制御する。スロットルバルブ制御ユニット12も同様なCPU12a、ROM(図示なし)、RAM(図示なし)からなり、各種プログラムに従ってスロットルバルブの駆動を制御する。   The engine control unit 10 includes a central processing unit CPU 10a, a ROM (not shown) for storing various programs, and a RAM (not shown) for temporarily storing data output from various sensors and data calculated by the CPU 10a. Thus, the drive of the fuel injection device and the ignition device, which are controlled objects, is controlled according to various programs. The throttle valve control unit 12 includes a similar CPU 12a, ROM (not shown), and RAM (not shown), and controls driving of the throttle valve according to various programs.

エンジン制御ユニット10とスロットルバルブ制御ユニット12は通信線14を介して接続され、データを他方へ送信すると共に、他方からデータを受信するための送受信機10b,12bをそれぞれ備える。各送受信機10b,12bはそれぞれのCPU内部に配置されるCANコントローラ10c,12cによって制御される。このように、エンジン制御ユニット10とスロットルバルブ制御ユニット12は、いわゆるCAN(Controller Area Network)通信によって接続され、データ送受信自在とされる。   The engine control unit 10 and the throttle valve control unit 12 are connected via a communication line 14, and are provided with transceivers 10b and 12b for transmitting data to the other and receiving data from the other, respectively. Each of the transceivers 10b and 12b is controlled by CAN controllers 10c and 12c arranged in the respective CPUs. As described above, the engine control unit 10 and the throttle valve control unit 12 are connected by so-called CAN (Controller Area Network) communication so that data can be transmitted and received.

エンジン制御ユニット10は、アクセル開度センサ、スロットル開度センサ、吸気圧センサなどに接続され、各種センサの出力データが入力される。具体的に、出力データはアクセル開度AP,スロットル開度θth,吸気圧PAなどである。スロットルバルブ制御ユニット12は、バッテリ電圧センサ、ホールセンサなどに接続され、各種センサの出力データが入力される。具体的に、出力データはバッテリ電圧VB,ホール電流IHなどである。エンジン制御ユニット10とスロットルバルブ制御ユニット12は、それら複数種のデータをCAN通信を介して周期的に相互に送受信する。   The engine control unit 10 is connected to an accelerator opening sensor, a throttle opening sensor, an intake pressure sensor, and the like, and outputs data from various sensors. Specifically, the output data includes an accelerator opening AP, a throttle opening θth, an intake pressure PA, and the like. The throttle valve control unit 12 is connected to a battery voltage sensor, a hall sensor, or the like, and receives output data from various sensors. Specifically, the output data is battery voltage VB, hall current IH, and the like. The engine control unit 10 and the throttle valve control unit 12 periodically transmit and receive these multiple types of data to each other via CAN communication.

また、スロットルバルブ制御ユニット12はCPU12aの動作を監視するウオッチドッグタイマ12dを備える。具体的に、ウオッチドッグタイマ12dはCPU12aに所定の周期毎に信号(以下、「ウオッチドッグパルス」という)を発生させて自身に送信させると共に、所定時間経過してもCPU12aからウオッチドッグパルスが送信されないとき、CPU12aの動作に割り込みをかけてCPU12aを再起動する。   The throttle valve control unit 12 includes a watch dog timer 12d that monitors the operation of the CPU 12a. Specifically, the watchdog timer 12d causes the CPU 12a to generate a signal (hereinafter referred to as “watchdog pulse”) at predetermined intervals and transmit it to the CPU 12a, and transmits a watchdog pulse from the CPU 12a even after a predetermined time elapses. If not, interrupt the operation of the CPU 12a and restart the CPU 12a.

CPU12aが発生するウオッチドッグパルスは、専用線16を介してエンジン制御ユニット10のCPU10aにも送信される。CPU10aは、送信されるウオッチドッグパルスの周期を適宜なタイマを用いて計測可能に構成される。   The watchdog pulse generated by the CPU 12a is also transmitted to the CPU 10a of the engine control unit 10 via the dedicated line 16. The CPU 10a is configured to be able to measure the cycle of the transmitted watchdog pulse using an appropriate timer.

この発明に係る通信異常検知装置はCANコントローラからなると共に、複数種のデータを一方から他方に送信するに際し、エンジン制御ユニット10とスロットルバルブ制御ユニット12の間のCAN通信の異常を検知する。次図以降のフロー・チャートから通信異常検知について具体的に説明する。   The communication abnormality detection device according to the present invention includes a CAN controller, and detects an abnormality in CAN communication between the engine control unit 10 and the throttle valve control unit 12 when transmitting a plurality of types of data from one to the other. The communication abnormality detection will be specifically described from the flowcharts in the following figures.

図2は、送信側の電子制御装置が実行する通信異常検知に係るフロー・チャートである。送信側の電子制御装置としてはエンジン制御ユニット10とスロットルバルブ制御ユニット12のいずれも妥当するが、説明の便宜上、ここではエンジン制御ユニット10を送信側の電子制御装置とする。具体的に、図2のフロー・チャートはエンジン制御ユニット10のCANコントローラ10cによって実行されるプログラムである。   FIG. 2 is a flowchart relating to communication abnormality detection executed by the transmission-side electronic control device. Although both the engine control unit 10 and the throttle valve control unit 12 are appropriate as the transmission-side electronic control device, for convenience of explanation, the engine control unit 10 is used here as the transmission-side electronic control device. Specifically, the flowchart of FIG. 2 is a program executed by the CAN controller 10 c of the engine control unit 10.

まずS10において、エンジン制御ユニット10とスロットルバルブ制御ユニット12の演算負荷に応じてコマンドCMDが発行される。例えば、エンジン制御ユニット10の演算負荷が高く、スロットルバルブ制御ユニット12の演算負荷が低い場合には1のコマンドCMDが発行される。逆にエンジン制御ユニット10の演算負荷が低く、スロットルバルブ制御ユニット12の演算負荷が高い場合にはnのコマンドCMDが発行される。尚、演算負荷の高低は各種センサの出力データに基づいて推定される。   First, in S10, a command CMD is issued according to the calculation load of the engine control unit 10 and the throttle valve control unit 12. For example, when the calculation load of the engine control unit 10 is high and the calculation load of the throttle valve control unit 12 is low, a command CMD of 1 is issued. Conversely, when the calculation load of the engine control unit 10 is low and the calculation load of the throttle valve control unit 12 is high, n commands CMD are issued. Note that the level of calculation load is estimated based on output data of various sensors.

コマンドCMDは、1からn(n≧2)までの自然数の内のいずれかの数値である。nはエンジン制御ユニット10が送信すべきデータ種の総数に相当する。ここで、データの種類毎に異なるコマンドCMDが割り当てられる。例えば、アクセル開度APには1、スロットル開度θthには2,吸気圧PAには3のコマンドCMDが割り当てられる。   The command CMD is any numerical value among natural numbers from 1 to n (n ≧ 2). n corresponds to the total number of data types to be transmitted by the engine control unit 10. Here, a different command CMD is assigned to each data type. For example, a command CMD of 1 is assigned to the accelerator opening AP, 2 to the throttle opening θth, and 3 to the intake pressure PA.

次いでS12に進み、コマンドCMDとそれに割り当てられたデータ種の数値を送信データとして送信する。ここで送信について具体的には、CANコントローラ10cがそれらを送信するように送受信機10bに指示し、送受信機10bがそれらを今回の送信データとして更新して送信する。また、送信データの内、少なくともコマンドCMDは前記したRAMに一時的に記憶される。   In step S12, the command CMD and the numerical value of the data type assigned to the command CMD are transmitted as transmission data. Here, specifically, regarding the transmission, the CAN controller 10c instructs the transceiver 10b to transmit them, and the transceiver 10b updates and transmits them as current transmission data. Of the transmission data, at least the command CMD is temporarily stored in the RAM.

尚、S12において複数種のデータを周期毎に送信するように、S10においてはエンジン制御ユニット10とスロットルバルブ制御ユニット12の演算負荷に応じてコマンドCMDを発行しつつも一定の期間で全てのコマンドCMDを発行するように構成される。   In S10, all commands are issued in a certain period while issuing a command CMD according to the calculation load of the engine control unit 10 and the throttle valve control unit 12 in S10 so that a plurality of types of data are transmitted every cycle in S12. It is configured to issue a CMD.

次いで、送信データを受信する受信側の電子制御装置について説明する。   Next, a reception-side electronic control device that receives transmission data will be described.

図3は、受信側の電子制御装置が実行する通信異常検知に係るフロー・チャートである。ここでは、スロットルバルブ制御ユニット12を受信側の電子制御装置として説明する。具体的には、図3のフロー・チャートはスロットルバルブ制御ユニット12のCANコントローラ12cによって実行されるプログラムである。   FIG. 3 is a flowchart relating to communication abnormality detection executed by the electronic control device on the receiving side. Here, the throttle valve control unit 12 will be described as a reception-side electronic control device. Specifically, the flowchart of FIG. 3 is a program executed by the CAN controller 12 c of the throttle valve control unit 12.

S100において、エンジン制御ユニット10から送信されたコマンドCMDとそれに割り当てられたデータ種の数値を受信したか否か判断される。否定されるときにはプログラムをスキップする一方、肯定されるときにはS102に進んで受信したコマンドCMDが1であるか否か判断される。   In S100, it is determined whether the command CMD transmitted from the engine control unit 10 and the numerical value of the data type assigned thereto are received. When the result is negative, the program is skipped, while when the result is positive, the process proceeds to S102 to determine whether or not the received command CMD is 1.

S102で肯定されるとき、S104に進んで1の認識コードIDが作成されると共に、S106に進んでウオッチドッグパルスの周期として周期Aが設定される。一方、S102で否定されるとき、S108に進んで受信したコマンドCMDが2であるか否か判断される。S108で肯定されるとき、S110に進んで2の認識コードIDが作成されると共に、S112に進んでウオッチドッグパルスの周期として周期Bが設定される。一方、S108で否定されるとき、以降は同様に、S114からS116のステップに示す如く、受信したコマンドCMDが3,4,5,・・・nであるか否か判断され、肯定されるとき、3,4,5,・・・nの認識コードIDが作成されると共に、ウオッチドッグパルスの周期として周期C,D,E・・・Nが設定される。このように、認識コードIDも1からn(n≧2)までの自然数であると共に、受信したコマンドCMDと同一の認識コードIDが作成される。また、受信したコマンドCMDに応じてウオッチドッグパルスの周期が設定(変更)される。   When the result in S102 is affirmative, the program proceeds to S104, in which one recognition code ID is created, and the program proceeds to S106, where the cycle A is set as the cycle of the watchdog pulse. On the other hand, when the result in S102 is negative, the program proceeds to S108 and it is determined whether or not the received command CMD is 2. When the result in S108 is affirmative, the program proceeds to S110 and a recognition code ID of 2 is created, and the program proceeds to S112 and the cycle B is set as the cycle of the watchdog pulse. On the other hand, when the result is negative in S108, similarly, as shown in steps S114 to S116, it is determined whether the received command CMD is 3, 4, 5,. , 3, 4, 5,... N are created, and cycles C, D, E... N are set as the cycle of the watchdog pulse. In this way, the recognition code ID is also a natural number from 1 to n (n ≧ 2), and the same recognition code ID as the received command CMD is created. Further, the period of the watchdog pulse is set (changed) according to the received command CMD.

次いでS120に進み、作成された認識コードIDを返信データとしてエンジン制御ユニット10に返信する。ここで返信について具体的には、CANコントローラ12cが今回作成した認識コードIDを返信するように送受信機12bに指示し、送受信機12bが認識コードIDを今回の返信データとして更新してエンジン制御ユニット10に返信する。尚、S114において否定されるとき、プログラムをスキップする。   Next, in S120, the created recognition code ID is returned to the engine control unit 10 as return data. More specifically, the CAN controller 12c instructs the transmitter / receiver 12b to return the currently generated recognition code ID, and the transmitter / receiver 12b updates the recognition code ID as the current return data and sends it to the engine control unit. Reply to 10. When the result in S114 is negative, the program is skipped.

図2に戻って送信側のフロー・チャートの説明を続けると、S14において、スロットルバルブ制御ユニット12からの返信データ、即ち認識コードIDを受信したか否か判断する。S12において送信データを送信した後、適度な時間が経過しても認識コードIDを受信しないときにはS14で否定され、S12に戻って再度同一の送信データをスロットルバルブ制御ユニット12に送信する。このように、エンジン制御ユニット10は、スロットルバルブ制御ユニット12からの返信データを受信しない限り、同一種のデータを繰り返し送信する。   Returning to FIG. 2, the description of the flow chart on the transmitting side will be continued. In S14, it is determined whether or not the reply data from the throttle valve control unit 12, that is, the recognition code ID has been received. After the transmission data is transmitted in S12, if the recognition code ID is not received even after an appropriate time has elapsed, the result in S14 is negative, and the process returns to S12 to transmit the same transmission data to the throttle valve control unit 12 again. As described above, the engine control unit 10 repeatedly transmits the same type of data unless receiving the return data from the throttle valve control unit 12.

一方、認識コードIDを受信するとS14で肯定されてS16に進み、前記したようにCPU10aにおいてウオッチドッグパルスの周期が計測される。   On the other hand, when the recognition code ID is received, the result is affirmative in S14 and the process proceeds to S16, and the period of the watchdog pulse is measured in the CPU 10a as described above.

次いでS18に進み、計測されたウオッチドッグパルスの周期が設定周期と一致するか否か判断される。設定周期とは、S10において発行されるコマンドCMDに対応して予め設定されるウオッチドッグパルスの周期である。設定周期自体は、スロットルバルブ制御ユニット12において受信したコマンドCMDに応じて設定される周期A,B,C,・・・Nと同一である。   Next, in S18, it is determined whether or not the measured period of the watchdog pulse coincides with the set period. The set period is a period of the watchdog pulse set in advance corresponding to the command CMD issued in S10. The setting cycle itself is the same as the cycle A, B, C,... N set according to the command CMD received by the throttle valve control unit 12.

S18で肯定されるとき、エンジン制御ユニット10とスロットルバルブ制御ユニット12の間の通信は正常であると判断され、S10に戻って新たなコマンドCMDが発行される。   When the result in S18 is affirmative, it is determined that the communication between the engine control unit 10 and the throttle valve control unit 12 is normal, and the process returns to S10 and a new command CMD is issued.

一方、S18で否定されるとき、S20に進んでS18において計測周期と設定周期が一致しないと判断された回数を適宜なカウンタを用いて計測する。次いでS22に進み、一致しないと判断された回数が所定回数に達したか否か判断される。S22で否定されるときはS16に戻る一方、S22で肯定されるとき、S24に進んでエンジン制御ユニット10とスロットルバルブ制御ユニット12の間の通信は異常であると判断する。通信が異常であると判断されるときにはプログラムを終了し、それ以降のデータの送信を停止する。   On the other hand, when the result in S18 is negative, the program proceeds to S20, and the number of times determined that the measurement cycle does not match the set cycle in S18 is measured using an appropriate counter. Next, the process proceeds to S22, in which it is determined whether or not the number of times determined to be inconsistent has reached a predetermined number. When the result is negative in S22, the process returns to S16, while when the result is positive in S22, the process proceeds to S24 and it is determined that the communication between the engine control unit 10 and the throttle valve control unit 12 is abnormal. When it is determined that the communication is abnormal, the program is terminated and transmission of data thereafter is stopped.

S18において計測されたウオッチドッグパルスの周期と設定周期が一致しない場合としては、S12においてCANコントローラ10cが今回発行したコマンドCMDとそれに対応するデータ種の数値を送信するように送受信機10bに指示するにも関わらず、送受信機10bがそれらを今回の送信データとして更新することができずに前回送信したコマンドCMDとそれに対応するデータ種の数値を繰り返し送信する場合が考えられる。即ち、この場合、スロットルバルブ制御ユニット12は前回と同一のコマンドCMDを受信することから、前回と同一のウオッチドッグパルスの周期が設定される結果、S18において両者が一致しないと判断される。   As a case where the set period of the watchdog pulse measured in S18 does not match, the CAN controller 10c instructs the transceiver 10b to transmit the command CMD issued this time and the numerical value of the corresponding data type in S12. Nevertheless, there may be a case where the transceiver 10b cannot repeatedly update them as current transmission data, but repeatedly transmits the command CMD transmitted last time and the numerical value of the corresponding data type. That is, in this case, since the throttle valve control unit 12 receives the same command CMD as the previous time, the same watchdog pulse cycle as the previous time is set, so that it is determined that both do not match in S18.

尚、送受信機12bの受信異常やCANコントローラ10c,12cの演算異常が生じている場合にもS18などにおいて両者が一致しないと判断され得るが、それらの事象が生じる可能性は低く無視できる程度である。   It should be noted that even if there is a reception abnormality of the transceiver 12b or a calculation abnormality of the CAN controllers 10c and 12c, it can be determined in S18 that the two do not coincide with each other. is there.

このように、エンジン制御ユニット10は、複数の種類のデータの内、今回送信すべきコマンドCMDを発行・送信し、スロットルバルブ制御ユニット12に、受信したコマンドCMDに応じてウオッチドッグパルスの周期を変更させると共に、変更されたウオッチドッグパルスの周期を計測し、計測されたウオッチドッグパルスの周期が送信したコマンドCMDに応じて変更されているか否かを判断することから、変更されていない場合にはエンジン制御ユニット10において同一内容のデータを繰り返して送信するといった通信異常が生じていることを検知することができる。また、複数の種類のデータの内、今回送信すべきデータを利用して通信異常を検知するため、送信データに確認用あるいは監視用のデータを別途設ける必要がなく、よって通信リソースを有効に利用することができる。   In this way, the engine control unit 10 issues and transmits the command CMD to be transmitted this time among a plurality of types of data, and sets the cycle of the watchdog pulse in accordance with the received command CMD to the throttle valve control unit 12. If the period of the changed watchdog pulse is measured and the period of the measured watchdog pulse is changed according to the command CMD transmitted, the period is changed. Can detect that a communication abnormality has occurred in the engine control unit 10 such that data of the same content is repeatedly transmitted. In addition, since communication abnormality is detected using data to be transmitted this time among multiple types of data, there is no need to provide confirmation or monitoring data separately in the transmission data, so communication resources can be used effectively can do.

また、エンジン制御ユニット10は、エンジン制御ユニット10とスロットルバルブ制御ユニット12の演算負荷に基づいて今回送信すべきコマンドCMDを決定することから、換言すればエンジン制御ユニット10とスロットルバルブ制御ユニット12の演算負荷に応じてウオッチドッグパルスの周期が設定されることから、エンジン制御ユニット10がウオッチドッグパルスの周期を計測するために要する演算負荷とスロットルバルブ制御ユニット12がウオッチドッグパルスを生成するために要する演算負荷を不要に増大させることなく、上記の通信異常を検知することができる。   Further, the engine control unit 10 determines the command CMD to be transmitted this time based on the calculation load of the engine control unit 10 and the throttle valve control unit 12, in other words, the engine control unit 10 and the throttle valve control unit 12. Since the cycle of the watchdog pulse is set according to the computation load, the computation load required for the engine control unit 10 to measure the cycle of the watchdog pulse and the throttle valve control unit 12 for generating the watchdog pulse The above-mentioned communication abnormality can be detected without unnecessarily increasing the calculation load required.

次いで、この発明の第2実施例に係る通信異常検知装置について説明する。   Next, a communication abnormality detection apparatus according to a second embodiment of the invention will be described.

図4は、第2実施例に係る通信異常検知装置についての送信側の電子制御装置が実行する、図2と同様なフロー・チャートである。また、図5は、第2実施例に係る通信異常検知装置についての受信側の電子制御装置が実行する、図3と同様なフロー・チャートである。尚、両図において第1実施例と共通の構成については、同一の符号を付して説明を省略する。   FIG. 4 is a flowchart similar to FIG. 2 executed by the electronic control device on the transmission side of the communication abnormality detection device according to the second embodiment. FIG. 5 is a flowchart similar to FIG. 3 executed by the reception-side electronic control device of the communication abnormality detection device according to the second embodiment. In both figures, the same reference numerals are assigned to components common to the first embodiment, and description thereof is omitted.

第1実施例と相違する点に焦点をおいて説明すると、第2実施例にあっては、送信側のエンジン制御ユニット10は送信データとしてコマンドCMDのみを送信すると共に、受信側のスロットルバルブ制御ユニット12は識別コードIDと受信したコマンドCMDに対応するデータ種の数値からなる返信データを返信するように構成した。   The description will focus on the differences from the first embodiment. In the second embodiment, the transmission-side engine control unit 10 transmits only the command CMD as transmission data, and the reception-side throttle valve control. The unit 12 is configured to send back reply data consisting of a numeric value of the data type corresponding to the identification code ID and the received command CMD.

図4フロー・チャートのS12aに示すように、送信側のエンジン制御ユニット10はコマンドCMDのみからなる送信データを受信側のスロットルバルブ制御ユニット12に送信する。また、図5フロー・チャートのS100aに示すように、受信側のスロットルバルブ制御ユニット12はコマンドCMDを受信したか否か判断する。   As shown in S12a of the flowchart of FIG. 4, the transmission-side engine control unit 10 transmits transmission data including only the command CMD to the reception-side throttle valve control unit 12. Further, as shown in S100a of the flow chart of FIG. 5, the receiving side throttle valve control unit 12 determines whether or not the command CMD has been received.

S120aにおいては、識別コードIDと受信したコマンドCMDに対応するデータ種の数値からなる返信データを作成し、それをエンジン制御ユニット10に返信する。ここで、例えば受信したコマンドCMDが1であれば、1の識別コードIDとバッテリ電圧VBの数値からなる返信データを作成して送信する。また、例えば受信したコマンドCMDが2であれば、2の識別コードIDとホール電流IHの数値からなる返信データを作成して送信する。   In S120a, reply data composed of a numerical value of the data type corresponding to the identification code ID and the received command CMD is created and returned to the engine control unit 10. Here, for example, if the received command CMD is 1, reply data composed of a numerical value of 1 identification code ID and battery voltage VB is generated and transmitted. For example, if the received command CMD is 2, reply data composed of the identification code ID of 2 and the numerical value of the hall current IH is created and transmitted.

図4フロー・チャートのS14aに示すように、送信側のエンジン制御ユニット10において識別コードIDと数値からなる返信データを受信したか否か判断される。   As shown in S14a of the flow chart of FIG. 4, it is determined whether or not the transmission-side engine control unit 10 has received return data consisting of an identification code ID and a numerical value.

残余の構成は第1実施例と同様である。よって、第2実施例に係る通信異常検知装置にあっても、第1実施例と同様な効果を得ることができる。即ち、エンジン制御ユニット10において同一内容のデータを繰り返して送信するといった通信異常が生じていることを検知することができると共に、複数の種類のデータの内、今回返信させるべきデータを決定してその種のデータを返信させることを利用して通信異常を検知するため、返信データに確認用あるいは監視用のデータを別途設ける必要がなく、よって通信リソースを有効に利用することができる。   The remaining configuration is the same as in the first embodiment. Therefore, even in the communication abnormality detection device according to the second embodiment, the same effect as that of the first embodiment can be obtained. That is, it is possible to detect the occurrence of a communication abnormality such as repeatedly transmitting the same content data in the engine control unit 10, and determine the data to be returned this time from among a plurality of types of data. Since a communication abnormality is detected by using the return of various types of data, it is not necessary to separately provide confirmation or monitoring data in the return data, and therefore communication resources can be used effectively.

以上のように、この発明の第1および第2実施例にあっては、複数の種類(n種類)のデータを周期的に送受信する複数の電子制御装置(エンジン制御ユニット10,スロットルバルブ制御ユニット12)の間の通信異常を検知する通信異常検知装置において、前記複数の電子制御装置の一方(エンジン制御ユニット10)は、前記複数の種類のデータの内、今回送信すべきデータ(コマンドCMD+数値、またはコマンドCMD)を決定して他方(スロットルバルブ制御ユニット12)に送信し(S12,S12a)、前記他方に、受信した前記データの種類(コマンドCMD)に応じてウオッチドッグパルスの周期を変更させると共に(S102,S106,S108,S112,S114,S118)、前記変更されたウオッチドッグパルスの周期を計測し(S16)、前記計測されたウオッチドッグパルスの周期が前記送信したデータの種類(コマンドCMD+数値、またはコマンドCMD)に応じて変更されていないとき、前記通信異常があると検知する(S18からS24)如く構成した。   As described above, in the first and second embodiments of the present invention, a plurality of electronic control devices (engine control unit 10, throttle valve control unit) that periodically transmit and receive a plurality of types (n types) of data. 12) In the communication abnormality detection device for detecting a communication abnormality during 12), one of the plurality of electronic control devices (engine control unit 10) is data (command CMD + numerical value) to be transmitted this time among the plurality of types of data. Or the command CMD) is determined and transmitted to the other (throttle valve control unit 12) (S12, S12a), and the watchdog pulse cycle is changed according to the received data type (command CMD). (S102, S106, S108, S112, S114, S118) and the modified watchdog If the communication abnormality occurs when the period of the pulse is measured (S16) and the period of the measured watchdog pulse is not changed according to the type of the transmitted data (command CMD + numerical value or command CMD) It is configured to detect (S18 to S24).

前記一方は、前記一方と他方の演算負荷に基づいて前記複数種の制御データの内、今回送信すべきデータを決定する(S10)如く構成した。   The one is configured to determine data to be transmitted this time among the plurality of types of control data based on the calculation load of the one and the other (S10).

尚、上記において、送信側の電子制御装置をエンジン制御ユニット10、受信側の電子制御装置をスロットルバルブ制御ユニット12として説明したが、逆であっても良い。   In the above description, the electronic control device on the transmission side is described as the engine control unit 10 and the electronic control device on the reception side is described as the throttle valve control unit 12. However, the reverse is also possible.

この発明の第1実施例に係る通信異常検知装置を含む複数の電子制御装置を示すブロック図である。1 is a block diagram illustrating a plurality of electronic control devices including a communication abnormality detection device according to a first embodiment of the present invention. FIG. 図1に示す通信異常検知装置の送信側の電子制御装置が実行するフロー・チャートである。It is a flowchart which the electronic controller of the transmission side of the communication abnormality detection apparatus shown in FIG. 1 performs. 図1に示す通信異常検知装置の受信側の電子制御装置が実行するフロー・チャートである。It is a flowchart which the electronic control apparatus of the receiving side of the communication abnormality detection apparatus shown in FIG. 1 performs. この発明の第2実施例に係る通信異常検知装置の送信側の電子制御装置が実行する、図2と同様なフロー・チャートである。It is the same flow chart as FIG. 2 which the electronic control apparatus of the transmission side of the communication abnormality detection apparatus based on 2nd Example of this invention performs. この発明の第2実施例に係る通信異常検知装置の受信側の電子制御装置が実行する、図3と同様なフロー・チャートである。It is the same flow chart as FIG. 3 which the electronic control apparatus of the receiving side of the communication abnormality detection apparatus based on 2nd Example of this invention performs.

符号の説明Explanation of symbols

10:エンジン制御ユニット、12:スロットルバルブ制御ユニット、14:通信線、16:専用線   10: engine control unit, 12: throttle valve control unit, 14: communication line, 16: dedicated line

Claims (2)

複数の種類のデータを周期的に送受信する複数の電子制御装置の間の通信異常を検知する通信異常検知装置において、前記複数の電子制御装置の一方は、前記複数の種類のデータの内、今回送信すべきデータを決定して他方に送信し、前記他方に、受信した前記データの種類に応じてウオッチドッグパルスの周期を変更させると共に、前記変更されたウオッチドッグパルスの周期を計測し、前記計測されたウオッチドッグパルスの周期が前記送信したデータの種類に応じて変更されていないとき、前記通信異常があると検知することを特徴とする通信異常検知装置。   In a communication abnormality detection device that detects communication abnormality between a plurality of electronic control devices that periodically transmit and receive a plurality of types of data, one of the plurality of electronic control devices is one of the plurality of types of data this time Determine the data to be transmitted and transmit to the other, and let the other change the period of the watchdog pulse according to the type of the received data, measure the period of the changed watchdog pulse, A communication abnormality detection device that detects that there is a communication abnormality when a cycle of the measured watchdog pulse is not changed according to the type of the transmitted data. 前記一方は、前記一方と他方の演算負荷に基づいて前記複数種の制御データの内、今回送信すべきデータを決定することを特徴とする請求項1記載の通信異常検知装置。   The communication abnormality detection device according to claim 1, wherein the one determines data to be transmitted this time among the plurality of types of control data based on the calculation load of the one and the other.
JP2007288113A 2007-11-06 2007-11-06 Communication abnormality detection device Expired - Fee Related JP5329794B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007288113A JP5329794B2 (en) 2007-11-06 2007-11-06 Communication abnormality detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007288113A JP5329794B2 (en) 2007-11-06 2007-11-06 Communication abnormality detection device

Publications (2)

Publication Number Publication Date
JP2009114932A true JP2009114932A (en) 2009-05-28
JP5329794B2 JP5329794B2 (en) 2013-10-30

Family

ID=40782353

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007288113A Expired - Fee Related JP5329794B2 (en) 2007-11-06 2007-11-06 Communication abnormality detection device

Country Status (1)

Country Link
JP (1) JP5329794B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011096088A (en) * 2009-10-30 2011-05-12 Autonetworks Technologies Ltd Processing apparatus
JP2011096087A (en) * 2009-10-30 2011-05-12 Autonetworks Technologies Ltd Processing apparatus and control method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05134899A (en) * 1991-11-13 1993-06-01 Sumitomo Electric Ind Ltd Runaway monitoring circuit for microcomputer
JPH0685876A (en) * 1992-09-07 1994-03-25 Nec Corp Communication controller
JPH086822A (en) * 1994-06-21 1996-01-12 Nec Home Electron Ltd Cpu device with runaway monitoring function
JPH09101908A (en) * 1995-10-04 1997-04-15 Oki Electric Ind Co Ltd Watchdog timer circuit
JP2001202266A (en) * 2000-01-21 2001-07-27 Denso Corp Method for inspecting on-vehicle control unit
JP2002229817A (en) * 2001-02-01 2002-08-16 Seiko Epson Corp Watchdog timer
JP2002351754A (en) * 2001-05-28 2002-12-06 Nec Corp Input noise discriminating method and its recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05134899A (en) * 1991-11-13 1993-06-01 Sumitomo Electric Ind Ltd Runaway monitoring circuit for microcomputer
JPH0685876A (en) * 1992-09-07 1994-03-25 Nec Corp Communication controller
JPH086822A (en) * 1994-06-21 1996-01-12 Nec Home Electron Ltd Cpu device with runaway monitoring function
JPH09101908A (en) * 1995-10-04 1997-04-15 Oki Electric Ind Co Ltd Watchdog timer circuit
JP2001202266A (en) * 2000-01-21 2001-07-27 Denso Corp Method for inspecting on-vehicle control unit
JP2002229817A (en) * 2001-02-01 2002-08-16 Seiko Epson Corp Watchdog timer
JP2002351754A (en) * 2001-05-28 2002-12-06 Nec Corp Input noise discriminating method and its recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011096088A (en) * 2009-10-30 2011-05-12 Autonetworks Technologies Ltd Processing apparatus
JP2011096087A (en) * 2009-10-30 2011-05-12 Autonetworks Technologies Ltd Processing apparatus and control method

Also Published As

Publication number Publication date
JP5329794B2 (en) 2013-10-30

Similar Documents

Publication Publication Date Title
US8217782B2 (en) Industrial field device with reduced power consumption
US7933696B2 (en) Distributed arithmetic logic unit security check
US10911252B2 (en) Communication system for vehicle and method for controlling the same
JP6418217B2 (en) Information aggregation method executed in communication system
CN106888123B (en) CAN message loss monitoring method
WO2016027367A1 (en) Vehicle-mounted electronic control device
JP2016141160A (en) Electronic control unit and electronic control system
JP5961326B2 (en) Device monitoring system, device monitoring program, and device monitoring method
US8321063B2 (en) Electronic control apparatus
JP5113492B2 (en) Communication abnormality detection device
JP2006285977A (en) Information processing system
JP5329794B2 (en) Communication abnormality detection device
JP2010198158A (en) Remote diagnostic method for working machine
JP3901987B2 (en) Electronic control device for vehicle
JP2016097879A (en) Vehicle control system
JP2013233904A (en) Electronic control system
JP6388629B2 (en) In-vehicle control device, gateway device, and in-vehicle network system
JP2011123569A (en) Processor
JP5667030B2 (en) Two-way communication system
JP2006222800A (en) Multiplex communication system
KR101346689B1 (en) Home-network system based on RS-485
JP5664926B2 (en) Start control device for internal combustion engine
JP2006195739A (en) Electronic controller
JP3623492B2 (en) Vehicle control system
JP3896858B2 (en) Vehicle control system and vehicle electronic control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121128

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130123

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: 20130710

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130725

R150 Certificate of patent or registration of utility model

Ref document number: 5329794

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees