[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2018011155A - CAN communication system - Google Patents

CAN communication system Download PDF

Info

Publication number
JP2018011155A
JP2018011155A JP2016137786A JP2016137786A JP2018011155A JP 2018011155 A JP2018011155 A JP 2018011155A JP 2016137786 A JP2016137786 A JP 2016137786A JP 2016137786 A JP2016137786 A JP 2016137786A JP 2018011155 A JP2018011155 A JP 2018011155A
Authority
JP
Japan
Prior art keywords
reply
controller
signal
controllers
order
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
JP2016137786A
Other languages
Japanese (ja)
Inventor
小林 正利
Masatoshi Kobayashi
正利 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Marelli Corp
Original Assignee
Calsonic Kansei 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 Calsonic Kansei Corp filed Critical Calsonic Kansei Corp
Priority to JP2016137786A priority Critical patent/JP2018011155A/en
Publication of JP2018011155A publication Critical patent/JP2018011155A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To appropriately discriminate the presence/absence of an irregular controller within an in-vehicle network.SOLUTION: The present invention relates to an in-vehicle network on which multiple controllers ECUn of different priorities are connected to a gateway G/W via a BUS 1 in a communicable manner. The gateway G/W comprises: transmission means 211 for simultaneously transmitting a reply request signal requesting a reply to the gateway G/W to the controllers ECUn via the BUS 1; and abnormality discrimination means 213 for discriminating the presence/absence of abnormality based on a reception order of reply signals that are redirected from the controllers ECUn. In a case where signals (including reply signals) are simultaneously outputted from each the controllers ECUn to the BUS 1, in the in-vehicle network, the signal is transmitted in the order starting from a controller of a highest priority.SELECTED DRAWING: Figure 2

Description

本発明は、CAN通信システムに関する。   The present invention relates to a CAN communication system.

車内ネットワークに接続された車載機器のコントローラ(CPU)が、正規のコントローラ(CPU)であるか否かを確認するために、外部サーバの情報を参照する技術が種々提案されている(例えば、特許文献1)。   In order to confirm whether or not the controller (CPU) of the in-vehicle device connected to the in-vehicle network is a legitimate controller (CPU), various techniques for referring to information of an external server have been proposed (for example, patents) Reference 1).

特開2014−193654号公報JP 2014-193654 A

しかし、特許文献1の技術の場合、自車両が、外部サーバと接続可能な通信環境下にいなければ、正規のコントローラ(CPU)であるか否かを判断できないので、車内ネットワークに正規のコントローラ(CPU)が接続されているか否かを適切に判断できるようにすることが求められている。   However, in the case of the technique disclosed in Patent Document 1, it is impossible to determine whether or not the vehicle is a regular controller (CPU) unless the host vehicle is in a communication environment that can be connected to an external server. There is a need to be able to appropriately determine whether or not (CPU) is connected.

本発明は、
序列が異なる複数のコントローラが、共通の伝送路を介してゲートウェイ装置に通信可能に接続され、前記複数のコントローラから同時に信号が出力される場合、前記序列が高いコントローラの信号から順番に前記ゲートウェイ装置に伝送されるCAN通信システムであって、
前記ゲートウェイ装置は、
当該ゲートウェイ装置への返信を要求する返信要求信号を、前記共通の伝送路を介して、前記複数のコントローラに同時に送信する送信手段と、
前記コントローラの各々から返信信号を受信する受信手段と、
前記返信信号の受信順に基づいて、異常の有無を判定する異常判定手段と、を有する構成とした。
The present invention
When a plurality of controllers having different ranks are communicably connected to a gateway apparatus via a common transmission line, and signals are output simultaneously from the plurality of controllers, the gateway apparatus sequentially from the controller signal having the highest rank. A CAN communication system transmitted to
The gateway device is
A transmission means for simultaneously transmitting a reply request signal for requesting a reply to the gateway device to the plurality of controllers via the common transmission path;
Receiving means for receiving a reply signal from each of the controllers;
And an abnormality determining means for determining presence / absence of abnormality based on the reception order of the reply signals.

本発明によれば、車内ネットワークに正規のコントローラが接続されているか否かを適切に判断できる。   ADVANTAGE OF THE INVENTION According to this invention, it can be determined appropriately whether the regular controller is connected to the vehicle interior network.

通常の車内ネットワークの概略構成図である。It is a schematic block diagram of a normal in-vehicle network. 車内ネットワークに接続されたゲートウェイとコントローラを説明する図である。It is a figure explaining the gateway and controller connected to the in-vehicle network. ゲートウェイG/Wが認証処理を実施する際のシーケンスチャートであるIt is a sequence chart when gateway G / W performs an authentication process. BUSとひとつのECUとの間に偽ECUが設けられた車内ネットワークの概略構成図である。1 is a schematic configuration diagram of an in-vehicle network in which a fake ECU is provided between a BUS and one ECU. ゲートウェイG/Wが、返信要求信号を3回連続して送信する場合のシーケンスチャートである。It is a sequence chart in case gateway G / W transmits a reply request signal 3 times continuously. ゲートウェイG/Wが、返信要求信号を4回連続して送信する場合のシーケンスチャートである。It is a sequence chart in case gateway G / W transmits a reply request signal 4 times continuously.

以下、本発明の実施の形態を、車両V内に敷設されたCANバス(以下、BUS1と標記する)に、車両Vに搭載された各車載機器のコントローラ(ECU1〜ECUn)が、ゲートウェイG/Wに通信可能に接続された車内ネットワーク2(CAN:Controller Area Network)の場合を例に挙げて説明する。   In the following, the embodiment of the present invention is applied to a controller (ECU1 to ECUn) of each in-vehicle device mounted on the vehicle V on a CAN bus (hereinafter referred to as BUS1) installed in the vehicle V. The case of an in-vehicle network 2 (CAN: Controller Area Network) that is communicably connected to W will be described as an example.

始めに、偽ECU(非正規のコントローラ)が設けられていない通常の車内ネットワーク2と、この車内ネットワーク2に接続されたコントローラ(ECU1〜ECUn)を説明する。   First, a normal in-vehicle network 2 in which a false ECU (non-regular controller) is not provided and controllers (ECU1 to ECUn) connected to the in-vehicle network 2 will be described.

図1は、偽ECUが設けられていない通常の車内ネットワーク2の概略構成図である。
図2は、車内ネットワーク2に接続されたコントローラを説明する図であり、(a)は、コントローラの認証処理を行う機能を有するゲートウェイG/Wの認証処理に関わる部分のブロック図であり、(b)は、ゲートウェイG/Wからの返信要求に従って、認証のための返信信号を生成する機能を有するコントローラ(以下、コントローラ(ECUn)とも標記する)の返信信号の生成に関わる部分のブロック図である。ここで、ECUnの「n」は、車内ネットワーク2に接続されたコントローラ(ECU)の総数に応じて決まる任意の整数である。
FIG. 1 is a schematic configuration diagram of a normal in-vehicle network 2 in which no fake ECU is provided.
FIG. 2 is a diagram illustrating a controller connected to the in-vehicle network 2, and FIG. 2A is a block diagram of a part related to the gateway G / W authentication process having a function of performing the controller authentication process. b) is a block diagram of a part related to generation of a reply signal of a controller (hereinafter also referred to as a controller (ECUn)) having a function of generating a reply signal for authentication in accordance with a reply request from the gateway G / W. is there. Here, “n” of ECUn is an arbitrary integer determined according to the total number of controllers (ECUs) connected to the in-vehicle network 2.

図1に示すように、BUS1には、ゲートウェイG/Wと、車両Vに搭載された車載機器のコントローラ(ECU1、ECU2、・・・、ECUn)と、が接続されており、コントローラ(ECU1、ECU2、・・・、ECUn)の各々は、共通のBUS1(伝送路)を介して、ゲートウェイG/Wおよび他のコントローラとの間で情報(信号)の交換を行えるようになっている。   As shown in FIG. 1, a gateway G / W and controllers (ECU1, ECU2,..., ECUn) of in-vehicle devices mounted on the vehicle V are connected to the BUS1, and the controllers (ECU1, Each of the ECUs 2,..., ECUn) can exchange information (signals) with the gateway G / W and other controllers via a common BUS1 (transmission path).

ゲートウェイG/Wは、車載機器のコントローラ(ECU1、ECU2、・・・、ECUn)から出力された情報を集約するノードであり、本実施形態では不正アクセスを検知するセキュリティ機能を備えたコントローラである。なお、このゲートウェイG/Wは、異なるプロトコル間のフレーム変換機能や、異常を検知するセーフティ機能等を備えていてもよい。   The gateway G / W is a node that collects information output from the controllers (ECU1, ECU2,..., ECUn) of the in-vehicle device, and is a controller having a security function for detecting unauthorized access in this embodiment. . The gateway G / W may have a frame conversion function between different protocols, a safety function for detecting an abnormality, and the like.

また、ゲートウェイG/Wには、通信プロトコル毎に系統化された車載ネットワーク、或いは、制御系や安全系といった機能別に系統化された車載ネットワークといった複数の車載ネットワークを接続してもよい。本実施形態では、一つの車載ネットワーク2を取り上げて説明する。   The gateway G / W may be connected to a plurality of in-vehicle networks such as an in-vehicle network organized for each communication protocol or an in-vehicle network organized according to functions such as a control system and a safety system. In the present embodiment, a single in-vehicle network 2 will be described.

車内ネットワーク2では、各コントローラ(ECU1、ECU2、・・・、ECUn)の出力信号がBUS1に同時に出力されると、優先順位(序列)の高いコントローラからの出力信号のほうが、優先順位(序列)の低いコントローラからの出力信号よりも先に伝送されるようになっている。
そのため、各コントローラの出力信号がBUS1に同時に出力されると、優先順位の高いコントローラの出力信号から順番に、BUS1を通って伝送されるようになっている。
一方、各コントローラ(ECU1、ECU2、・・・、ECUn)の出力信号が異なるタイミング(非同時)で出力された場合には、出力された順番で、それらの出力信号がBUS1に伝送されるようになっている。
In the in-vehicle network 2, when the output signals of the controllers (ECU1, ECU2,..., ECUn) are simultaneously output to the BUS1, the output signal from the controller having the higher priority (order) is the priority (order). The signal is transmitted before the output signal from the low controller.
For this reason, when the output signals of the controllers are simultaneously output to BUS1, they are transmitted through the BUS1 in order from the controller output signal having the highest priority.
On the other hand, when the output signals of the controllers (ECU1, ECU2,..., ECUn) are output at different timings (non-simultaneous), the output signals are transmitted to BUS1 in the output order. It has become.

実施の形態では、BUS1に接続された各コントローラ(ECU1、ECU2、・・・、ECUn)に、それぞれ異なる優先順位(序列)が設定されている。
コントローラ(ECU1、ECU2、・・・、ECUn)には、ECU1からECUnになるほど、低い優先順位が設定されている。
In the embodiment, different priorities (orders) are set for the respective controllers (ECU1, ECU2,..., ECUn) connected to the BUS1.
In the controllers (ECU1, ECU2,..., ECUn), a lower priority is set as the ECU1 changes to ECUn.

図2の(a)に示すように、ゲートウェイG/Wは、記憶部20と、CPU21と、入出力ポート(I/O)22と、を備えており、これらは、内部バス23を介して、互いに接続されている。
このゲートウェイG/Wの入出力ポート22には、BUS1と、イグニッションスイッチ24と、スピーカ25と、インジケータパネル26と、が接続されている。
As shown in FIG. 2A, the gateway G / W includes a storage unit 20, a CPU 21, and an input / output port (I / O) 22, which are connected via an internal bus 23. Are connected to each other.
The BUS 1, the ignition switch 24, the speaker 25, and the indicator panel 26 are connected to the input / output port 22 of the gateway G / W.

ゲートウェイG/Wは、イグニッションスイッチ24のオン操作により当該ゲートウェイG/Wが起動すると、BUS1に接続された車載機器のコントローラ(ECU1、ECU2、・・・、ECUn)の認証処理を行って、偽ECU(非正規のコントローラ)がBUS1に接続されているか否かを確認する機能を有している。   When the gateway G / W is activated by turning on the ignition switch 24, the gateway G / W performs authentication processing of the controllers (ECU1, ECU2,..., ECUn) of the in-vehicle devices connected to the BUS1, and false The ECU (non-regular controller) has a function of confirming whether or not it is connected to the BUS1.

記憶部20は、不揮発性メモリなどから構成されており、認証処理に必要なプログラムなどを記憶すると共に、認証処理の過程で算出された値や、認証処理の過程で参照される参照値などを記憶する。   The storage unit 20 is configured by a non-volatile memory or the like, stores a program or the like necessary for the authentication process, and stores a value calculated during the authentication process, a reference value referenced during the authentication process, or the like. Remember.

CPU21は、送信手段211と、受信手段212と、異常判定手段213と、報知手段214と、認証手段215と、を有しており、記憶部20に記憶されているプログラムに基づいて、認証処理を実施する。   The CPU 21 includes a transmission unit 211, a reception unit 212, an abnormality determination unit 213, a notification unit 214, and an authentication unit 215, and an authentication process based on a program stored in the storage unit 20. To implement.

送信手段211は、BUS1に接続されたコントローラ(ECU1〜ECUn)の認証処理を行うために、ゲートウェイG/Wへの返信を要求する返信要求信号(認証スタートメッセージ)を、BUS1を介して、コントローラ(ECU1〜ECUn)に送信する。
受信手段212は、各コントローラ(ECU1〜ECUn)から返信された返信信号(応答メッセージ)を受信する。
The transmission means 211 sends a reply request signal (authentication start message) for requesting a reply to the gateway G / W to the controller (ECU1 to ECUn) connected to the BUS1 via the BUS1. (ECU1 to ECUn).
The receiving means 212 receives a reply signal (response message) returned from each controller (ECU1 to ECUn).

異常判定手段213は、コントローラ(ECU1〜ECUn)の各々から返信された返信信号の受信順に基づいて、異常の有無を判定する。
具体的には、BUS1に偽ECU(非正規のコントローラ)が接続されているか否かを確認し、偽ECUが接続されていると判定された場合に、「異常あり」と判定する。
また、異常判定手段213は、偽ECUが接続されていないと判定された場合に、「異常なし」と判定する。
Abnormality determination means 213 determines the presence / absence of an abnormality based on the reception order of reply signals returned from each of the controllers (ECU1 to ECUn).
Specifically, it is confirmed whether or not a fake ECU (non-regular controller) is connected to BUS1, and when it is determined that a fake ECU is connected, it is determined that “abnormality exists”.
The abnormality determination unit 213 determines “no abnormality” when it is determined that the fake ECU is not connected.

報知手段214は、異常判定手段が「異常あり」と判定した場合に、インジケータパネル26の警告灯261を点灯させて、自車両の乗員などに異常の発生を報知する。
なお、スピーカ25からの音声情報の出力により、「異常あり」と判定された旨を、報知するようにしても良い。
When the abnormality determination unit determines that “there is abnormality”, the notification unit 214 turns on the warning lamp 261 of the indicator panel 26 to notify the passenger of the own vehicle of the occurrence of the abnormality.
Note that it may be notified by the output of audio information from the speaker 25 that it has been determined that there is “abnormal”.

認証手段215は、各コントローラ(ECU1〜ECUn)から返信された返信信号(応答メッセージ)に基づいて、返信信号を返信した各コントローラ(ECU1〜ECUn)の認証処理を実施する。   The authentication unit 215 performs authentication processing of each controller (ECU1 to ECUn) that has returned the reply signal based on the reply signal (response message) returned from each controller (ECU1 to ECUn).

図2の(b)に示すように、コントローラECUnは、記憶部30と、CPU31と、入出力ポート(I/O)32と、を備えており、これらは、内部バス33を介して、互いに接続されている。
このコントローラECUnの入出力ポート32には、BUS1が接続されている。
As shown in FIG. 2B, the controller ECUn includes a storage unit 30, a CPU 31, and an input / output port (I / O) 32, which are connected to each other via an internal bus 33. It is connected.
BUS1 is connected to the input / output port 32 of the controller ECUn.

コントローラECUnは、BUS1の信号レベルを確認して、他のコントローラの出力信号が、BUS1を介して伝送されているか否かを確認し、他のコントローラの出力信号が伝送されている場合には、他のコントローラの出力信号の伝送完了を待って、コントローラECUnで生成した出力信号を、BUS1に出力するように構成されている。   Controller ECUn confirms the signal level of BUS1, confirms whether the output signal of the other controller is transmitted via BUS1, and when the output signal of the other controller is transmitted, It waits for the completion of transmission of the output signal of the other controller, and outputs the output signal generated by the controller ECUn to BUS1.

さらに、コントローラECUnで生成した出力信号をBUS1に出力している間も、BUS1の信号レベルを確認し、優先順位が自分よりも高いコントローラの出力信号もBUS1に同時に出力されている場合には、出力信号のBUS1への出力を中止し、優先順位が自分よりも高いコントローラの出力信号の伝送終了を待って、コントローラECUnで生成した出力信号を、BUS1に再度出力するように構成されている。   Further, while the output signal generated by the controller ECUn is being output to the BUS1, the signal level of the BUS1 is confirmed, and when the output signal of the controller having a higher priority than the self is also output to the BUS1 simultaneously, The output of the output signal to the BUS1 is stopped, and the output signal generated by the controller ECUn is output to the BUS1 again after waiting for the end of transmission of the output signal of the controller having a higher priority than itself.

ここで、コントローラECUnが、ゲートウェイG/Wからの返信要求信号を受信した場合には、それぞれのコントローラECUnは、認証のための返信信号を生成し、生成した返信信号を、BUS1を介してゲートウェイG/Wに返信する機能を有している。コントローラECUnが、ゲートウェイG/Wからの返信要求信号を受信して、それぞれのコントローラECUnが同時に返信信号を出力すると、上述したように、それぞれのコントローラECUnは、優先順位が自分よりも高いコントローラの返信信号の伝送終了を待って、自身の返信信号をBUS1に再度出力するように構成されている。   Here, when the controller ECUn receives a reply request signal from the gateway G / W, each controller ECUn generates a reply signal for authentication, and the generated reply signal is sent to the gateway via the BUS1. It has a function to reply to G / W. When the controller ECUn receives the reply request signal from the gateway G / W and each controller ECUn outputs a reply signal at the same time, as described above, each controller ECUn has a higher priority than the controller itself. It waits for the end of transmission of the reply signal and then outputs its own reply signal to BUS1 again.

記憶部30は、不揮発性メモリなどから構成されており、返信信号の生成処理に必要なプログラムなどを記憶すると共に、返信信号の生成処理の過程で算出された値や、返信信号の生成処理の過程で参照される参照値などを記憶する。   The storage unit 30 includes a non-volatile memory and the like. The storage unit 30 stores a program and the like necessary for the generation process of the return signal, and the value calculated in the process of the return signal generation process and the process of the return signal generation process. A reference value or the like referred to in the process is stored.

CPU31は、返信信号生成手段311を有しており、記憶部30に記憶されているプログラムに基づいて、返信信号の生成処理を実施する。
返信信号生成手段311は、ゲートウェイG/Wからの返信要求信号を受信すると、返信信号を生成し、生成した返信信号を、BUS1を介してゲートウェイG/Wに返信する。
The CPU 31 includes a reply signal generation unit 311 and performs a reply signal generation process based on a program stored in the storage unit 30.
When the reply signal generation means 311 receives the reply request signal from the gateway G / W, the reply signal generation means 311 generates a reply signal and returns the generated reply signal to the gateway G / W via BUS1.

以下、ゲートウェイG/Wが認証処理を実施する際のゲートウェイG/Wとコントローラ(ECU1〜ECUn)で実施される処理と、ゲートウェイG/Wとコントローラ(ECU1〜ECUn)との間で交換される信号(情報)を説明する。
図3は、ゲートウェイG/Wが認証処理を実施する際のシーケンスチャートである。
Hereinafter, the processing performed by the gateway G / W and the controllers (ECU1 to ECUn) when the gateway G / W performs the authentication processing is exchanged between the gateway G / W and the controllers (ECU1 to ECUn). The signal (information) will be described.
FIG. 3 is a sequence chart when the gateway G / W performs the authentication process.

図3に示すように、イグニッションスイッチ24のオン操作によりゲートウェイG/Wが起動すると(ステップS101、Yes)、ステップS102においてゲートウェイG/Wの送信手段211は、BUS1に接続された車載機器のコントローラ(ECU1〜ECUn)の認証処理を行うために、ゲートウェイG/Wへの返信を要求する返信要求信号(認証スタートメッセージ)を生成する。   As shown in FIG. 3, when the gateway G / W is activated by turning on the ignition switch 24 (step S101, Yes), the transmission unit 211 of the gateway G / W is the controller of the in-vehicle device connected to the BUS 1 in step S102. In order to perform the authentication processing of (ECU1 to ECUn), a reply request signal (authentication start message) for requesting a reply to the gateway G / W is generated.

ここで、返信要求信号は、ゲートウェイG/Wの優先順位を示す識別IDと、BUS1に接続された車載機器の各コントローラ(ECU1〜ECUn)での返信信号の生成に必要な情報(必須情報)と、を含んでいる。
各コントローラ(ECU1〜ECUn)での返信信号の生成に必要な必須情報は、コントローラ毎に用意されており、例えば、コントローラECU1での処理に必要な情報には、コントローラECU1の優先順位を示す情報(識別子ID)と、コントローラECU1で生成される返信信号に付加させる情報(付加情報)とが含まれており、これらの情報は、コントローラECU1でのみ復号可能な方式で暗号化されている。
なお、返信要求信号では、ゲートウェイG/Wの識別子IDと、各コントローラ(ECU1〜ECUn)の各必須情報とが、直列に連なっている。
Here, the reply request signal includes an identification ID indicating the priority order of the gateway G / W and information necessary for generating a reply signal in each controller (ECU1 to ECUn) of the in-vehicle device connected to BUS1 (essential information). And.
The essential information necessary for generating a reply signal in each controller (ECU1 to ECUn) is prepared for each controller. For example, the information necessary for processing in the controller ECU1 includes information indicating the priority order of the controller ECU1. (Identifier ID) and information (additional information) to be added to the reply signal generated by the controller ECU 1 are included, and these pieces of information are encrypted by a method that can be decrypted only by the controller ECU 1.
In the reply request signal, the identifier ID of the gateway G / W and the essential information of each controller (ECU1 to ECUn) are connected in series.

そして、返信要求信号の生成(ステップS102)が完了すると、ステップS103において送信手段211は、生成した返信要求信号を、入出力ポート22を介してBUS1に出力する。
これにより、BUS1に直接接続された他の車載機器のコントローラ(ECU1〜ECUn)は、ゲートウェイG/Wが送信した返信要求信号を同時に受信することになる。
When the generation of the reply request signal (step S102) is completed, the transmission unit 211 outputs the generated reply request signal to BUS1 via the input / output port 22 in step S103.
Thereby, the controllers (ECU1 to ECUn) of other in-vehicle devices directly connected to BUS1 simultaneously receive the reply request signal transmitted by the gateway G / W.

返信要求信号を受信したコントローラ(ECU1〜ECUn)の返信信号生成手段311は、返信信号を生成する(ステップS104)。
具体的には、各コントローラ(ECU1〜ECUn)は、返信要求信号の復号化により、返信信号の生成に必要な必須情報、すなわち、コントローラの優先順位を示す情報(識別子ID)と、コントローラで生成される返信信号に付加させる情報(付加情報)とを取得する。
The reply signal generating means 311 of the controller (ECU1 to ECUn) that has received the reply request signal generates a reply signal (step S104).
Specifically, each controller (ECU1 to ECUn) decodes the reply request signal and generates the essential information necessary for generating the reply signal, that is, information (identifier ID) indicating the priority order of the controller and the controller. Information to be added to the reply signal (additional information) is acquired.

ここで、コントローラ(ECU1)の場合を例に挙げて説明すると、コントローラ(ECU1)は、返信要求信号に含まれる必須情報であって、当該コントローラ(ECU1)での返信信号の生成に必要な必須情報を復号化により取得する。
すなわち、各コントローラ(ECU1〜ECUn)は、自身での返信信号の生成に必要な必須情報を復号化して取得できるようになっている。
Here, the case of the controller (ECU1) will be described as an example. The controller (ECU1) is essential information included in the reply request signal and is essential for generating a reply signal in the controller (ECU1). Information is obtained by decryption.
That is, each controller (ECU1 to ECUn) can acquire essential information necessary for generating a reply signal by decoding the controller itself.

そして、各コントローラ(ECU1〜ECUn)の返信信号生成手段311は、自身での返信信号の生成に必要な必須情報から、識別子IDと付加情報とを取得し、取得した付加情報をゲートウェイG/Wで復号可能な方式で暗号化し、暗号化した付加情報に、コントローラの優先順位を示す情報(識別子ID)を付加して返信信号を生成する。   Then, the return signal generating means 311 of each controller (ECU1 to ECUn) acquires the identifier ID and the additional information from the essential information necessary for generating the return signal by itself, and uses the acquired additional information as the gateway G / W. The information is encrypted by a method that can be decrypted by the method, and the information (identifier ID) indicating the priority order of the controller is added to the encrypted additional information to generate a reply signal.

例えば、コントローラECU1の場合には、返信信号生成手段311は、コントローラECU1の優先順位を示す情報(識別子ID)と、コントローラ(ECU1)用の付加情報とを、返信要求信号から取得する。
そして、返信信号生成手段311は、取得した付加情報をゲートウェイG/Wで復号可能な方式で暗号化し、暗号化した付加情報に、識別子IDに付加して、コントローラ(ECU1)専用の返信信号を生成する。
For example, in the case of the controller ECU 1, the reply signal generation unit 311 acquires information (identifier ID) indicating the priority order of the controller ECU 1 and additional information for the controller (ECU 1) from the reply request signal.
Then, the reply signal generation means 311 encrypts the acquired additional information by a method that can be decrypted by the gateway G / W, and adds the reply signal dedicated to the controller (ECU1) to the encrypted additional information by adding it to the identifier ID. Generate.

ここで、前記したように、コントローラ(ECU1)用の付加情報は、コントローラ(ECU1)でのみ復号化可能な方式で暗号化されている。なお、このようなゲートウェイG/WとコントローラECUnの間の通信には、MAC(Message Authentication Code)を利用することが知られている。   Here, as described above, the additional information for the controller (ECU1) is encrypted by a method that can be decrypted only by the controller (ECU1). It is known that a MAC (Message Authentication Code) is used for communication between the gateway G / W and the controller ECUn.

そして、各コントローラ(ECU1〜ECUn)は、生成した返信信号を、ゲートウェイG/Wに返信するために、BUS1に出力する(ステップS105)。
前記したように、BUS1に複数の信号が出力された場合、優先順位の高い信号から順番に、伝送されるようになっている。
Each controller (ECU1 to ECUn) outputs the generated reply signal to BUS1 in order to send it back to gateway G / W (step S105).
As described above, when a plurality of signals are output to BUS1, signals are transmitted in order from the signal with the highest priority.

そのため、各コントローラ(ECU1〜ECUn)から、返信信号がBUS1に同時に出力されると、コントローラECU1の返信信号、コントローラECU2の返信信号、コントローラECU3の返信信号、・・・、コントローラECUnの返信信号という順番で、ゲートウェイG/Wに入力されることになる。   Therefore, when a reply signal is simultaneously output from each controller (ECU1 to ECUn) to BUS1, a reply signal from the controller ECU1, a reply signal from the controller ECU2, a reply signal from the controller ECU3, ..., a reply signal from the controller ECUn. In order, they are input to the gateway G / W.

そして、ゲートウェイG/Wでは、受信手段212が、コントローラ(ECU1〜ECUn)から返信された返信信号を受信すると、ステップS106において認証手段215が、返信信号に含まれた付加情報に基づいて、認証の成立/不成立を判定する。
具体的には、ゲートウェイG/Wの認証手段215は、受信した返信信号の識別子IDから、返信信号を送信したコントローラ(ECU1〜ECUn)を特定すると共に、返信情報の復号化により、付加情報を取得する。
そして、取得した付加情報と、前記した返信要求信号に付加した付加情報とを比較して、両付加情報が一致した場合に、認証が成立したと判定し、一致しない場合に認証が成立しない(認証不成立)と判定する。
In gateway G / W, when receiving means 212 receives a reply signal returned from the controller (ECU1 to ECUn), authentication means 215 authenticates based on the additional information included in the reply signal in step S106. Whether or not is established is determined.
Specifically, the authentication unit 215 of the gateway G / W specifies the controller (ECU1 to ECUn) that transmitted the reply signal from the identifier ID of the received reply signal, and decrypts the reply information to obtain additional information. get.
Then, the acquired additional information is compared with the additional information added to the above-described reply request signal, and when both pieces of additional information match, it is determined that the authentication has been established, and when they do not match, the authentication is not established ( It is determined that authentication is not established.

例えば、コントローラECU1からの返信信号の場合、返信信号から取得した付加情報と、返信要求信号に付加した付加情報であってコントローラECU1用の付加情報と、を比較し、両付加情報が一致した場合に、認証が成立したと判定される。   For example, in the case of a reply signal from the controller ECU1, the additional information acquired from the reply signal is compared with the additional information for the controller ECU1 that is the additional information added to the reply request signal. On the other hand, it is determined that the authentication has been established.

続くステップS107において、ゲートウェイG/Wの異常判定手段213は、ゲートウェイG/Wでの返信信号の受信順に基づいて、車内ネットワーク2に偽ECU(非正規のコントローラ)が接続されているか否かを確認し、偽ECUが接続されていると判定された場合には、「異常あり」と判定し、偽ECUが接続されていると判定されなかった場合には、「異常なし」と判定する。
なお、このステップS107の処理については、後に詳細に説明する。
In subsequent step S107, the gateway G / W abnormality determination means 213 determines whether or not a fake ECU (non-regular controller) is connected to the in-vehicle network 2 based on the reception order of the reply signals at the gateway G / W. When it is confirmed that it is determined that the fake ECU is connected, it is determined as “abnormal”, and when it is not determined that the fake ECU is connected, it is determined as “no abnormality”.
Note that the processing in step S107 will be described in detail later.

続くステップS108において、ゲートウェイG/Wの報知手段214は、前記したステップS106において「認証不成立」と判定されていた場合には、「認証不成立」である旨を報知するための音声情報を、スピーカ25から出力する。
また、前記したステップS107において、「異常あり」と判定されていた場合には、報知手段214は、車内ネットワーク2に偽ECUが接続されていることを報知するために、インジケータパネル26に設けた警告灯261を点灯させる。
In the subsequent step S108, the notifying unit 214 of the gateway G / W, when it is determined that “authentication is not established” in the above-described step S106, the voice information for notifying that “authentication is not established” is transmitted to the speaker. 25.
Further, when it is determined that there is “abnormal” in the above-described step S107, the notification unit 214 is provided on the indicator panel 26 in order to notify that the fake ECU is connected to the in-vehicle network 2. The warning lamp 261 is turned on.

さらに、報知手段214は、記憶部20に記憶された異常判定用のフラグを「オン」にする。これにより、車両Vの点検などのために、ゲートウェイG/Wに外部の検査機器が接続された際に、検査機器側で、「異常あり」と判定されていたことを把握できるようになる。
なお、この際に、車内ネットワーク2に偽ECUが接続されていることを報知するための音声情報を、スピーカ25から出力しても良い。
Further, the notification unit 214 turns on the abnormality determination flag stored in the storage unit 20. As a result, when an external inspection device is connected to the gateway G / W for inspection of the vehicle V, it is possible to grasp that the inspection device has been determined to be “abnormal”.
At this time, sound information for notifying that the fake ECU is connected to the in-vehicle network 2 may be output from the speaker 25.

以下、異常判定手段213による異常の有無の判定を、BUS1に接続されているコントローラが3つである場合であって、BUS1とコントローラECU1との間に、偽ECU(非正規のコントローラ)が設けられている場合を例に挙げて説明する。   Hereinafter, the determination of the presence or absence of abnormality by the abnormality determination means 213 is a case where there are three controllers connected to the BUS1, and a false ECU (non-regular controller) is provided between the BUS1 and the controller ECU1. An example will be described.

図4の(a)は、BUS1(CANバス)とECU1(コントローラ)との間に、偽ECU(非正規のコントローラ)が設けられている場合の車内ネットワーク2の概略構成図であり、(b)は、(a)の場合において、ゲートウェイG/Wが認証処理を実施する際のシーケンスチャートである。   FIG. 4A is a schematic configuration diagram of the in-vehicle network 2 when a fake ECU (non-regular controller) is provided between the BUS1 (CAN bus) and the ECU 1 (controller). ) Is a sequence chart when the gateway G / W performs an authentication process in the case of (a).

ここで、偽ECUが、ゲートウェイG/Wとコントローラ(ECU1)と間の通信を仲介し、正規のコントローラ(ECU1)からの返信信号を、そのままゲートウェイG/Wに入力する場合には、通常の認証処理(図3:ステップS106)では、この偽ECUの存在を検知できない。以下においては、このような偽ECUを想定したセキュリティ対策について説明する。   Here, when the fake ECU mediates communication between the gateway G / W and the controller (ECU1) and inputs a reply signal from the legitimate controller (ECU1) to the gateway G / W as it is, In the authentication process (FIG. 3: step S106), the presence of this false ECU cannot be detected. In the following, security measures assuming such a fake ECU will be described.

ゲートウェイG/Wからの返信要求信号が、偽ECUとコントローラ(ECU2、ECU3)で同時に受信されると、偽ECUが、受信した返信要求信号をコントローラ(ECU1)に転送する一方で、コントローラ(ECU2、ECU3)は、返信信号を生成してゲートウェイG/Wに返信する。
そうすると、コントローラ(ECU1)は、転送された返信要求信号に応じて返信信号を生成して、ゲートウェイG/Wに返信することになるが、この返信信号もまた、偽ECUにより転送されるので、偽EUCが介在するコントローラ(ECU1)からの返信信号は、他のコントローラ(ECU2、ECU3)からの返信信号に遅れて、ゲートウェイG/Wに入力されることになる。
When the reply request signal from the gateway G / W is received simultaneously by the fake ECU and the controllers (ECU2, ECU3), the fake ECU transfers the received reply request signal to the controller (ECU1), while the controller (ECU2 , ECU 3) generates a reply signal and sends it back to the gateway G / W.
Then, the controller (ECU1) generates a reply signal in response to the transferred reply request signal and sends it back to the gateway G / W. Since this reply signal is also forwarded by the fake ECU, The reply signal from the controller (ECU 1) in which the false EUC is interposed is input to the gateway G / W with a delay from the reply signals from the other controllers (ECU 2, ECU 3).

この際に、コントローラ(ECU2、ECU3)からの返信信号のゲートウェイG/Wでの受信から、コントローラ(ECU1)からの返信信号のゲートウェイG/Wでの受信までの遅延時間Tは、偽ECUによる転送遅延の時間Txの2回分に相当する(T=2×Tx)。   At this time, the delay time T from the reception of the return signal from the controller (ECU2, ECU3) at the gateway G / W to the reception of the return signal from the controller (ECU1) at the gateway G / W is determined by the fake ECU. This corresponds to two transfer delay times Tx (T = 2 × Tx).

そうすると、車内ネットワーク2(CAN通信ネットワーク)では、まず、同時に出力された返信信号のなかでコントローラ(ECU2、ECU3)の優先順位(ECU2→ECU3)に応じて、当該返信信号が伝送され、次いで、遅れて出力されたコントローラ(ECU1)からの返信信号が伝送される。この結果、ゲートウェイG/Wは、ECU2→ECU3→ECU1の順番で返信信号を受信する。   Then, in the in-vehicle network 2 (CAN communication network), first, the reply signal is transmitted according to the priority (ECU2 → ECU3) of the controller (ECU2, ECU3) among the reply signals output simultaneously, A reply signal from the controller (ECU 1) output with a delay is transmitted. As a result, the gateway G / W receives the reply signals in the order of ECU2 → ECU3 → ECU1.

すなわち、偽ECUが介在するコントローラ(ECU1)の返信信号は、本来の優先順(ECU1→ECU2→ECU3)からは繰り下がって伝送されることとなる。   That is, the reply signal of the controller (ECU1) in which the false ECU is interposed is transmitted in a descending order from the original priority order (ECU1 → ECU2 → ECU3).

そのため、異常判定手段213は、前記した異常判定処理S107の際に、コントローラ(ECUn)からの返信信号が、予め設定された優先順位の高い順番で入力されたか否かを確認し、コントローラ(ECUn)からの返信信号を、優先順位に応じた順番で受信しない場合に、車内ネットワーク2に非正規のコントローラが接続されていると認定して、「異常あり」と判定するようになっている。   Therefore, the abnormality determination means 213 checks whether or not the reply signals from the controller (ECUn) are input in the order of preset priority in the above-described abnormality determination process S107. ) Is not received in the order corresponding to the priority order, it is determined that an unauthorized controller is connected to the in-vehicle network 2 and it is determined that there is an abnormality.

これにより、ゲートウェイG/Wとコントローラ(ECU1)と間の通信を仲介する機能を有する偽ECUが、BUS1とコントローラ(ECU1)との間に設置されている場合のように、認証手段215での認証処理では、非正規のコントローラ(偽ECU)の存在をゲートウェイG/W側で検知できない場合であっても、異常判定手段213による上記した判定処理により、非正規のコントローラ(偽ECU)の存在を検知できるようになっている。   As a result, as in the case where a fake ECU having a function of mediating communication between the gateway G / W and the controller (ECU1) is installed between the BUS1 and the controller (ECU1), the authentication means 215 In the authentication process, even if the presence of an unauthorized controller (fake ECU) cannot be detected on the gateway G / W side, the presence of an unauthorized controller (fake ECU) is determined by the above-described determination process by the abnormality determination unit 213. Can be detected.

なお、異常判定手段213は、コントローラ(ECUn)からの返信信号を、優先順位に応じた順番で受信した場合には、車内ネットワーク2に非正規のコントローラが接続されていないと認定して、「異常なし」と判定する。   In addition, the abnormality determination means 213 recognizes that the non-regular controller is not connected to the in-vehicle network 2 when the reply signal from the controller (ECU) is received in the order according to the priority order. It is determined that there is no abnormality.

以上の通り、実施の形態では、
(1)優先順位(序列)が異なる複数のコントローラ(ECU1〜ECUn)が、BUS1(共通の伝送路)を介してゲートウェイ装置(G/W)に通信可能に接続されていると共に、複数のコントローラ(ECU1〜ECUn)から同時に信号が出力された場合に、優先順位が高いコントローラの信号から順番にゲートウェイ装置(G/W)に伝送されるCAN通信システムであって、
ゲートウェイ装置(G/W)は、
当該ゲートウェイ装置(G/W)への返信を要求する返信要求信号を、BUS1を介して、複数のコントローラ(ECU1〜ECUn)に同時に送信する送信手段211と、
コントローラ(ECU1〜ECUn)の各々からの返信信号を受信する受信手段212と、
返信信号の受信順に基づいて、異常の有無を判定する異常判定手段213と、を有する構成とした。
As described above, in the embodiment,
(1) A plurality of controllers (ECU1 to ECUn) having different priorities (order) are communicably connected to the gateway device (G / W) via BUS1 (common transmission path), and a plurality of controllers A CAN communication system in which, when signals are simultaneously output from (ECU1 to ECUn), signals are sequentially transmitted from a controller signal having a higher priority to a gateway device (G / W),
Gateway device (G / W)
A transmission unit 211 for simultaneously transmitting a reply request signal for requesting a reply to the gateway device (G / W) to the plurality of controllers (ECU1 to ECUn) via the BUS1;
Receiving means 212 for receiving a return signal from each of the controllers (ECU1 to ECUn);
An abnormality determination unit 213 that determines whether or not there is an abnormality based on the reception order of the return signals.

BUS1と、正規のコントローラ(ECU1〜ECUn)うちの少なくともひとつとの間に、BUS1と正規のコントローラとの間の信号の伝達を仲介する非正規のコントローラ(偽ECU)が設置されている場合には、信号の伝達に偽ECUが介在する分だけ、返信信号がBUS1に出力されるタイミングが遅延する。
そうすると、例えば、偽ECUが、BUS1とコントローラ(ECU1)との間に設けられている場合には、偽ECUを介してBUS1に接続された正規のコントローラ(ECU1)が出力する返信信号は、このコントローラ(ECU1)よりも優先順位の低いコントローラ(ECU2)が出力する返信信号よりも遅れて、ゲートウェイG/Wの受信手段212で受信されることになる。
よって、上記のように構成して、コントローラから返信された返信信号の受信順を確認することで、信号の伝達を仲介する非正規のコントローラ(偽ECU)が接続されているか否かを適切に判断できる。
When an unauthorized controller (fake ECU) that mediates transmission of signals between BUS1 and the authorized controller is installed between BUS1 and at least one of the authorized controllers (ECU1 to ECUn). The delay of the timing at which the return signal is output to BUS1 is delayed by the amount of the false ECU interposed in the signal transmission.
Then, for example, when the false ECU is provided between the BUS1 and the controller (ECU1), the reply signal output from the regular controller (ECU1) connected to the BUS1 via the false ECU is The signal is received by the receiving means 212 of the gateway G / W after a reply signal output from the controller (ECU2) having a lower priority than the controller (ECU1).
Therefore, it is configured as described above, and by confirming the reception order of the reply signals returned from the controller, it is appropriately determined whether or not an unauthorized controller (fake ECU) that mediates signal transmission is connected. I can judge.

(2)CAN通信システムでは、他のコントローラからの返信信号の出力に遅れて出力された返信信号は、当該遅れて出力された返信信号の返信元のコントローラの優先順位(序列)よりも遅れて伝送されるように構成されており、
異常判定手段213は、
コントローラ(ECU1〜ECUn)の各々から返信された返信信号の受信順が、コントローラ(ECU1〜ECUn)の優先順位の順番と異なる場合に、複数のコントローラ(ECU1〜ECUn)の何れかと、ゲートウェイ装置(G/W)との間に不正なコントローラが介在するとして、「異常あり」と判定し、
コントローラ(ECU1〜ECUn)の各々から返信された返信信号の受信順が、コントローラ(ECU1〜ECUn)の優先順位の順番と同じである場合に、「異常なし」と判定し、
車内ネットワーク2は、
異常判定手段213が「異常あり」と判定した場合に、異常の発生を報知する報知手段214をさらに備えている構成とした。
(2) In a CAN communication system, a reply signal output with a delay from the output of a reply signal from another controller is delayed from the priority order (order) of the reply source controller of the reply signal output with a delay. Configured to be transmitted,
The abnormality determination means 213
When the reception order of the reply signals returned from each of the controllers (ECU1 to ECUn) is different from the priority order of the controllers (ECU1 to ECUn), any one of the plurality of controllers (ECU1 to ECUn) and the gateway device ( G / W) is determined to be “abnormal” and an unauthorized controller is present,
When the receiving order of the reply signals returned from each of the controllers (ECU1 to ECUn) is the same as the priority order of the controllers (ECU1 to ECUn), it is determined that there is no abnormality,
In-car network 2
When the abnormality determination unit 213 determines “abnormal”, the notification unit 214 is further provided to notify the occurrence of the abnormality.

前記したように、BUS1と、何れかのコントローラ(ECU1〜ECUn)との間に、信号の伝達を仲介する非正規のコントローラ(偽ECU)が設置されている場合には、信号の伝達に偽ECUが介在する分だけ、返信信号がBUS1に出力されるタイミングが遅延する。
よって、上記のように構成すると、コントローラ(ECU1〜ECUn)から返信された返信信号の受信順と、コントローラ(ECU1〜ECUn)の優先順位の順番とを比較することで、偽ECU(非正規のコントローラ)が接続されているか否かを適切に判断できる。
As described above, when a non-regular controller (fake ECU) that mediates signal transmission is installed between BUS1 and any of the controllers (ECU1 to ECUn), the signal transmission is false. The timing at which the return signal is output to BUS1 is delayed by the amount of intervention of the ECU.
Therefore, if comprised as mentioned above, by comparing the order of reception of the reply signals returned from the controllers (ECU1 to ECUn) and the order of priority of the controllers (ECU1 to ECUn), a false ECU (non-regular ECU) It is possible to appropriately determine whether or not the controller is connected.

また、異常判定手段213が「異常あり」と判定した場合に、報知手段214が、(a)インジケータパネル26の警告灯261を点灯させて、車両Vの乗員などに異常の発生を報知する、および/または(b)スピーカ25からの音声情報の出力により、「異常あり」と判定された旨を報知することで、車内ネットワーク2に偽ECUが設置されたと認められる異常の検知を、車両Vの乗員に確実に伝えることができる。   When the abnormality determination unit 213 determines that “there is abnormality”, the notification unit 214 (a) turns on the warning lamp 261 of the indicator panel 26 to notify the passenger of the vehicle V of the occurrence of the abnormality. And / or (b) by notifying that it is determined as “abnormal” by outputting audio information from the speaker 25, it is possible to detect an abnormality in which it is recognized that a fake ECU is installed in the in-vehicle network 2. Can be surely communicated to the passengers.

さらに、異常判定手段213が「異常あり」と判定した場合に、報知手段214が、(c)記憶部20に記憶された異常判定用のフラグを「オン」にすることで、車両Vの点検などのために、ゲートウェイG/Wに外部の検査機器が接続された際に、検査機器側で、「異常あり」と判定されていたことを把握できるようになる。   Further, when the abnormality determination unit 213 determines that “there is abnormality”, the notification unit 214 (c) checks the vehicle V by turning on the abnormality determination flag stored in the storage unit 20. For example, when an external inspection device is connected to the gateway G / W, it is possible to grasp that the inspection device has been determined to be “abnormal”.

(3)返信要求信号には、コントローラ(ECU1〜ECUn)各々の優先順位を規定した序列データ(識別ID)が付加されており、
コントローラ(ECU1〜ECUn)は、
返信要求信号を受信すると、当該コントローラ(ECU1〜ECUn)の優先順位を識別IDを参照して特定し、特定した優先順位を示す識別IDを、返信信号に付加して送信する返信信号生成手段311を有している構成とした。
(3) To the reply request signal, rank data (identification ID) that defines the priority order of each of the controllers (ECU1 to ECUn) is added.
The controllers (ECU1 to ECUn)
When the reply request signal is received, the priority order of the controller (ECU1 to ECUn) is specified with reference to the identification ID, and the reply signal generating means 311 for transmitting the identification ID indicating the identified priority order added to the reply signal. It was set as the structure which has.

このように構成すると、コントローラ(ECU1〜ECUn)から返信される返信信号に、優先順位を示す識別IDが付加されているので、コントローラ(ECU1〜ECUn)から出力される返信信号を、優先順位に応じた適切な順番で、ゲートウェイG/Wに伝送することができる。   If comprised in this way, since identification ID which shows a priority is added to the reply signal returned from a controller (ECU1-ECU), the reply signal output from a controller (ECU1-ECUn) is made into a priority. The data can be transmitted to the gateway G / W in an appropriate order according to the order.

特に、コントローラ(ECU1〜ECUn)は、当該コントローラ(ECU1〜ECUn)で生成した出力信号をBUS1に出力している間も、BUS1の信号レベルを確認し、優先順位が自分よりも高いコントローラの出力信号もBUS1に同時に出力されている場合には、出力信号のBUS1への出力を中止し、優先順位が自分よりも高いコントローラの出力信号の伝送終了を待って、コントローラECUnで生成した出力信号を、BUS1に再度出力するように構成されているものとしたので、各コントローラ(ECU1〜ECUn)からBUS1への信号の出力が同じタイミングで行われた場合であっても、優先順位の高い信号から順番に、BUS1を介して伝送することができる。   In particular, the controller (ECU1 to ECUn) checks the signal level of BUS1 while outputting the output signal generated by the controller (ECU1 to ECUn) to the BUS1, and outputs the controller having a higher priority than itself. If the signal is also output simultaneously to BUS1, output of the output signal to BUS1 is stopped, the output of the output signal of the controller having a higher priority than that of itself is terminated, and the output signal generated by controller ECUn is output. Since it is configured to output to BUS1 again, even if signals are output from each controller (ECU1 to ECUn) to BUS1 at the same timing, a signal having a higher priority is used. In turn, it can be transmitted over BUS1.

さらに、ゲートウェイG/W側で、返信要求信号に含まれる序列データを設定する構成とすることで、コントローラ(ECU1〜ECUn)各々の優先順位を、コントローラ(ECU1〜ECUn)各々の本来の機能の発揮を阻害することがない範囲内で変更することが可能である構成としたので、コントローラ(ECU1〜ECUn)各々からBUS1に出力される返信信号の順番を定期的に変更することができる。   Furthermore, by setting the order data included in the reply request signal on the gateway G / W side, the priority order of each of the controllers (ECU1 to ECUn) is set to the original function of each of the controllers (ECU1 to ECUn). Since the configuration can be changed within a range that does not hinder the performance, the order of the reply signals output from the controllers (ECU1 to ECUn) to the BUS1 can be changed periodically.

[変形例1]
前記した実施の形態では、ゲートウェイG/Wが、返信要求信号を1回送信しており、コントローラ(ECU1〜ECUn)が、返信要求信号を同じタイミングで受信して、同じタイミングで返信信号の生成を開始するようになっている。
しかし、BUS1に接続された車載機器のコントローラ(ECU1〜ECUn)は、コントローラ毎に処理速度などの性能が異なっており、処理速度が遅いコントローラの場合には、当該コントローラよりも優先順位の低いコントローラのほうが先に返信信号を生成する場合も想定される。
この場合には、偽ECUが設けられていないにもかかわらず、異常判定手段213が、「異常あり」と判定する可能性がある。
[Modification 1]
In the above-described embodiment, the gateway G / W transmits a reply request signal once, and the controllers (ECU1 to ECUn) receive the reply request signal at the same timing and generate a reply signal at the same timing. Is supposed to start.
However, the controllers (ECU1 to ECUn) of the in-vehicle devices connected to the BUS1 have different performance such as processing speed for each controller. In the case of a controller with a slow processing speed, a controller having a lower priority than the controller. It is also assumed that the reply signal is generated earlier.
In this case, there is a possibility that the abnormality determination unit 213 determines that “abnormality exists” even though the false ECU is not provided.

そこで、変形例1では、ゲートウェイG/Wが、返信要求信号を複数回連続して送信するように設定されており、返信要求信号の送信回数は、BUS1に接続されたコントローラ(ECU1〜ECUn)のうち、最も返信信号の生成に時間のかかるコントローラでの返信信号の生成に要する時間に基づいて設定されている。   Therefore, in the first modification, the gateway G / W is set to continuously transmit the reply request signal a plurality of times, and the number of reply request signals transmitted is the controller (ECU1 to ECUn) connected to the BUS1. Of these, it is set based on the time required for generating a reply signal in the controller that takes the longest time to generate the reply signal.

以下、ゲートウェイG/Wが、返信要求信号を複数回連続して送信するように設定されている場合を例に挙げて説明する。
図5は、ゲートウェイG/Wが、返信要求信号を3回連続して送信する場合のシーケンスチャートであって、BUS1に接続された3つのコントローラ(ECU1〜ECU3)のうち、BUS1とコントローラ(ECU1)との間に偽ECUが設けられている場合のシーケンスチャートである。
Hereinafter, a case where the gateway G / W is set to continuously transmit a reply request signal a plurality of times will be described as an example.
FIG. 5 is a sequence chart when the gateway G / W transmits the reply request signal three times in succession. Of the three controllers (ECU1 to ECU3) connected to BUS1, BUS1 and the controller (ECU1 ) Is a sequence chart when a fake ECU is provided.

BUS1に直接接続されたコントローラ(ECU2、ECU3)は、返信要求信号の受信から返信信号の生成までに要する時間Δta、Δtbが異なっており、優先順位の高いコントローラ(ECU2)のほうが、このコントローラ(ECU2)よりも優先順位の低いコントローラ(ECU3)より、返信信号の生成に時間がかかるようになっている。
そのため、返信要求信号を1回のみ送信すると、コントローラ(ECU2)の返信信号のほうが、コントローラ(ECU3)の返信信号よりも遅れて生成されるので、コントローラ(ECU2)の返信信号のBUS1への出力タイミングが、コントローラ(ECU3)の返信信号の出力タイミングよりも遅れてしまう。
The controllers (ECU2, ECU3) directly connected to the BUS1 have different times Δta and Δtb required from the reception of the reply request signal to the generation of the reply signal, and the controller (ECU2) with higher priority is the controller (ECU2). The controller (ECU 3) having a lower priority than the ECU 2) takes time to generate a reply signal.
Therefore, if the reply request signal is transmitted only once, the reply signal from the controller (ECU2) is generated later than the reply signal from the controller (ECU3), and therefore the reply signal from the controller (ECU2) is output to BUS1. The timing is delayed from the output timing of the return signal of the controller (ECU 3).

そうすると、BUS1では、異なるタイミングで信号が出力された場合に、BUS1に信号を出力した順番で、信号が伝送されるようになっており、他のコントローラからの返信信号の出力に遅れて出力された返信信号は、当該遅れて出力された返信信号の返信元のコントローラの優先順位(序列)よりも遅れて伝送されるようになっているので、コントローラ(ECU3)の返信信号のほうが、コントローラ(ECU2)の返信信号よりも先にゲートウェイG/Wに伝送される結果、偽ECUが設けられていないにもかかわらず、コントローラ(ECU2)に対して「異常あり」と判定されてしまう。   Then, in BUS1, when signals are output at different timings, the signals are transmitted in the order in which the signals are output to BUS1, and are output with a delay from the output of reply signals from other controllers. Since the reply signal is transmitted later than the priority (order) of the reply-source controller of the reply signal output with a delay, the reply signal of the controller (ECU 3) is transmitted to the controller ( As a result of transmission to the gateway G / W prior to the reply signal from the ECU 2), it is determined that the controller (ECU 2) is “abnormal” although no fake ECU is provided.

そのため、かかる事態の発生を防止するために、変形例1では、返信信号の生成が遅いコントローラ(ECU2)での返信信号の生成を待ってから、各コントローラがBUS1に返信信号を出力するようにするために、ゲートウェイG/Wが、返信要求信号を連続して複数回送信するようになっている。   Therefore, in order to prevent the occurrence of such a situation, in the first modification, each controller outputs a reply signal to BUS1 after waiting for a reply signal to be generated by a controller (ECU2) that is slow in generating a reply signal. In order to do this, the gateway G / W continuously transmits a reply request signal a plurality of times.

前記したように、車内ネットワーク2では、共通のBUS1を利用して、各コントローラが信号の送受信を行うようになっており、BUS1で伝送される信号が競合した場合には、競合した信号のうち、優先順位が最も高いコントローラが出力した信号のみが伝送されるように設定されている。
そして、ゲートウェイG/Wの優先順位は、コントローラ(ECU1〜ECU3)よりも高いので、ゲートウェイG/Wが返信要求信号を出力してBUS1を占有している間は、コントローラ(ECU1〜ECU3)は、BUS1を介して信号を送信できないようになっている。
As described above, in the in-vehicle network 2, each controller uses a common BUS1 to transmit and receive signals. When signals transmitted by the BUS1 compete, Only the signal output by the controller with the highest priority is set to be transmitted.
Since the priority order of the gateway G / W is higher than that of the controllers (ECU1 to ECU3), while the gateway G / W outputs the reply request signal and occupies BUS1, the controllers (ECU1 to ECU3) The signal cannot be transmitted via BUS1.

そのため、実施の形態では、返信信号の生成が最も遅いコントローラ(図5の場合には、コントローラ(ECU2))での返信信号の生成に要する時間Δtaよりも長い時間(Δt)、ゲートウェイG/Wが返信要求信号を繰り返し送信している。
なお、ゲートウェイG/Wによる返信要求信号の送信間隔Δtx(図5参照)は、総ての返信要求信号の送信が完了するまでBUS1を占有して、BUS1に接続された他のコントローラから信号を送信させないようにすることができる送信間隔に設定されている。
Therefore, in the embodiment, the gateway G / W has a time (Δt) longer than the time Δta required to generate the return signal in the controller (the controller (ECU 2 in the case of FIG. 5)) that generates the return signal the slowest. Repeatedly sends a reply request signal.
Note that the transmission interval Δtx of the reply request signal by the gateway G / W (see FIG. 5) occupies BUS1 until transmission of all reply request signals is completed, and signals from other controllers connected to BUS1. It is set to a transmission interval that can prevent transmission.

そして、返信要求信号が送信されている間にコントローラ(ECU2、ECU3)が生成した返信信号は、BUS1が返信要求信号の伝送に占有されているので、当該コントローラ(ECU2、ECU3)の記憶部30に記憶され、返信要求信号によるBUS1の占有が終了したのちに、優先順位の高い返信信号から伝送されるようになっている。   Then, since the BUS1 is occupied by the transmission of the reply request signal, the storage unit 30 of the controller (ECU2, ECU3) is the reply signal generated by the controller (ECU2, ECU3) while the reply request signal is being transmitted. And after the occupation of BUS1 by the reply request signal is completed, the reply signal having a higher priority is transmitted.

図5の場合には、ゲートウェイG/Wが、返信要求信号を合計3回送信するようになっており、この返信要求信号が送信されている間は、BUS1がこの返信要求信号により占有されるので、コントローラ(ECU3)の返信信号が、BUS1を介してゲートウェイG/Wに伝送されないようになっている。   In the case of FIG. 5, the gateway G / W transmits the reply request signal three times in total, and BUS1 is occupied by this reply request signal while the reply request signal is being transmitted. Therefore, the reply signal of the controller (ECU 3) is not transmitted to the gateway G / W via BUS1.

なお、返信要求信号が送信されている間に、コントローラ(ECU2)による返信信号の生成が完了するので、返信要求信号の送信が完了した時点で、コントローラ(ECU2)による返信信号と、コントローラ(ECU3)による返信信号とが競合することになるが、コントローラ(ECU2)のほうが、コントローラ(ECU3)よりも優先順位が高いので、コントローラ(ECU2)の返信信号が、先に生成されたコントローラ(ECU3)の返信信号よりも先に、BUS1を介してゲートウェイG/Wに伝送されるようになっている。   Since the generation of the reply signal by the controller (ECU2) is completed while the reply request signal is being transmitted, the reply signal by the controller (ECU2) and the controller (ECU3) when the transmission of the reply request signal is completed. However, since the controller (ECU2) has a higher priority than the controller (ECU3), the controller (ECU2) generates a response signal from the controller (ECU3) previously generated. Is transmitted to the gateway G / W via the BUS1 prior to the reply signal.

ここで、図5の場合にも、BUS1とコントローラ(ECU1)との間に、前記した実施の形態の場合と同じ信号の転送機能を有する偽ECUが設けられている。
この場合には、偽ECUによる2回の転送に起因して、正規のコントローラ(ECU1)が生成した返信信号の伝送が遅延する結果、コントローラ(ECU1)の返信信号が、コントローラ(ECU2)の返信信号に遅れて、ゲートウェイG/Wに伝送されることになる。
Here, also in the case of FIG. 5, a fake ECU having the same signal transfer function as that of the above-described embodiment is provided between the BUS 1 and the controller (ECU 1).
In this case, as a result of the delay in transmission of the reply signal generated by the legitimate controller (ECU1) due to the two transfers by the fake ECU, the reply signal from the controller (ECU1) becomes the reply from the controller (ECU2). The signal is transmitted to the gateway G / W after the signal.

したがって、この場合には、ゲートウェイG/Wに返信信号が伝送される順序が、予め決められた優先順位と異なることになるので、前記した異常判定手段213が、コントローラ(ECU1)に対して「異常あり」と判定することになる。   Therefore, in this case, the order in which the reply signals are transmitted to the gateway G / W is different from the predetermined priority order, so the abnormality determination unit 213 described above with respect to the controller (ECU1) It is determined that there is an abnormality.

なお、ゲートウェイG/Wが返信要求信号を繰り返し送信する回数(時間(Δt))は、少なくとも正規のコントローラ(ECU1)が生成した最初の返信信号が偽ECUに伝送される前までに、返信要求信号によるBUS1の占有が終了する回数(時間)に設定されている。
返信要求信号によるBUS1の占有が終了するまでの間に、正規のコントローラ(ECU1)が生成した返信信号が偽ECUに伝送されていると、ゲートウェイG/Wに返信信号が伝送される順序が、予め決められた優先順位と同じになって、偽ECUの存在を検出できなくなる場合があるからである。
The number of times the gateway G / W repeatedly transmits the reply request signal (time (Δt)) is at least before the first reply signal generated by the regular controller (ECU1) is transmitted to the fake ECU. It is set to the number of times (time) at which the occupation of BUS1 by the signal ends.
If the reply signal generated by the legitimate controller (ECU1) is transmitted to the fake ECU before the occupation of BUS1 by the reply request signal ends, the order in which the reply signals are transmitted to the gateway G / W is: This is because there is a case where it becomes impossible to detect the presence of a fake ECU because the priority order is the same as that determined in advance.

このように変形例1では、BUS1に直接接続された正規のコントローラ(ECU2、ECU3)各々が、コントローラ(ECU2、ECU3)における返信信号の生成に要する時間の差(信号処理能力の差)に起因して、「異常あり」と誤って判定されることを防止しつつ、BUS1に偽ECU1を介して接続された正規のコントローラ(ECU1)に対して、「異常あり」と正確に判定できるようになっている。   As described above, in Modification 1, each of the legitimate controllers (ECU2, ECU3) directly connected to BUS1 is caused by a difference in time required for generating a return signal in the controller (ECU2, ECU3) (difference in signal processing capability). Thus, it is possible to accurately determine “abnormal” with respect to a regular controller (ECU 1) connected to the BUS 1 via the fake ECU 1 while preventing erroneous determination as “abnormal”. It has become.

なお、この変形例1の場合には、コントローラ(ECU1〜ECU3)からの返信信号が、返信要求信号と同じ回数、予め決められた優先順位の順番でゲートウェイG/Wに入力されたか否かを確認することで、偽ECUの有無を判定している。
すなわち、変形例1の場合には、コントローラ(ECU1〜ECU3)からの返信信号が、返信要求信号と同じ回数、予め決められた優先順位の順番でゲートウェイG/Wに入力された場合に、偽ECUが設けられていない(「異常なし」)と判定するようになっている。
In the case of the first modification, it is determined whether or not the reply signals from the controllers (ECU1 to ECU3) have been input to the gateway G / W in the same order of priority as the reply request signal. By checking, the presence or absence of a fake ECU is determined.
That is, in the case of the first modification, when the reply signals from the controllers (ECU1 to ECU3) are input to the gateway G / W in the order of predetermined priority, the same number of times as the reply request signal, It is determined that the ECU is not provided (“no abnormality”).

しかし、図6に示すように、返信要求信号の送信時間Δt(送信回数)が長く(多く)なると、コントローラ(ECU2)が生成した返信信号を送信している途中で、正規のコントローラ(ECU1)が生成した返信信号が、偽ECUに伝送されて、偽ECUが、正規のコントローラ(ECU1)が生成した返信信号をBUS1に出力する場合がある。   However, as shown in FIG. 6, when the transmission time Δt (number of transmissions) of the reply request signal is long (large), the controller (ECU 2) is in the middle of transmitting the reply signal generated by the controller (ECU 1). May be transmitted to the fake ECU, and the fake ECU may output the reply signal generated by the legitimate controller (ECU1) to the BUS1.

この場合には、コントローラ(ECU2)が生成した返信信号の総てがゲートウェイG/Wに伝送される前に、コントローラ(ECU1)が生成した返信信号が、ゲートウェイG/Wに伝送されることになる。   In this case, the reply signal generated by the controller (ECU1) is transmitted to the gateway G / W before all the reply signals generated by the controller (ECU2) are transmitted to the gateway G / W. Become.

そのため、異常判定手段213は、(a)直前の返信信号の優先順位よりも高い優先順位の返信信号を受信した場合や、(b)直前の返信信号の優先順位よりも高い優先順位の返信信号を受信したのちに、直前に伝送された返信信号を再び受信した場合に、「異常あり」と判定することが好ましい。   Therefore, the abnormality determination means 213 receives (a) a reply signal with a higher priority than the immediately preceding reply signal, or (b) a reply signal with a higher priority than the immediately preceding reply signal. It is preferable to determine “abnormal” when the reply signal transmitted immediately before is received again.

また、優先順位が最も低いコントローラ(図5の場合には、ECU3)とBUS1との間に偽ECUが設けられている場合には、ECU3は優先順位が最も低く、ECU3よりも後に返信信号を送信するECUが存在しないため、上記した方法のみで、偽ECUの存在を検知することができない。   Further, when a false ECU is provided between the controller with the lowest priority (ECU 3 in the case of FIG. 5) and BUS1, the ECU 3 has the lowest priority and sends a reply signal after the ECU 3. Since there is no ECU to transmit, the presence of the fake ECU cannot be detected only by the method described above.

そのため、返信要求信号を複数回送信する場合、少なくとも一回の返信要求信号において、優先順位が最も低いコントローラ(ECU3)の優先順位と、このコントローラよりも優先順位が高いコントローラ(ECU2)の優先順位とを入れ替えて、優先順位を入れ替えたときの返信要求信号に対する返信信号にも基づいて、優先順位が最も低いコントローラ(ECU3)に対する異常の有無を判定することが好ましい。   Therefore, when the reply request signal is transmitted a plurality of times, the priority order of the controller (ECU3) having the lowest priority order and the priority order of the controller (ECU2) having a higher priority order than this controller in at least one reply request signal. It is preferable to determine whether or not there is an abnormality in the controller (ECU 3) with the lowest priority based on the return signal for the reply request signal when the priority is changed.

この場合において、複数のコントローラ(ECU1〜ECUn)がBUS1に接続されている場合には、優先順位が最も低いコントローラ(ECUn)と、このコントローラ(ECUn)よりも優先順位が高い残りのコントローラ(ECU1〜ECUn−1)のうちの少なくとも1つのコントローラとの間で、優先順位を交換すれば良い。
よって、BUS1に接続されたコントローラ(ECU1〜ECUn)に異常があるか否かを判断する場合には、ゲートウェイG/Wが、少なくとも2回、返信要求信号をコントローラ(ECU1〜ECUn)に向けて送信する構成とすることが好ましい。
In this case, when a plurality of controllers (ECU1 to ECUn) are connected to BUS1, the controller (ECUn) having the lowest priority and the remaining controllers (ECU1) having a higher priority than this controller (ECUn). The priority order may be exchanged with at least one controller of .about.ECUn-1).
Therefore, when determining whether or not there is an abnormality in the controllers (ECU1 to ECUn) connected to the BUS1, the gateway G / W sends a reply request signal to the controllers (ECU1 to ECUn) at least twice. It is preferable to be configured to transmit.

以上の通り、
(4)ゲートウェイG/Wは、コントローラ(ECU1〜ECUn)よりも優先順位が高いコントローラであり、
送信手段211は、ゲートウェイG/Wの起動後に、共通の伝送路であるBUS1が、返信要求信号で占有され続けるタイミング(図5、Δtx)で、返信要求信号を連続して所定回数送信して、所定時間Δtの間、返信要求信号の伝送でBUS1を占有し、
異常判定手段213は、
コントローラ(ECU1〜ECUn)の各々から返信されたの返信信号が、コントローラ(ECU1〜ECUn)の優先順位の順番で所定回数ずつ、受信手段212で受信されていない場合に、「異常あり」と判定し、
コントローラ(ECU1〜ECUn)の各々から返信されたの返信信号が、コントローラ(ECU1〜ECUn)の優先順位の順番で所定回数ずつ、受信手段212で受信されている場合に、「異常なし」と判定する構成とした。
As above,
(4) The gateway G / W is a controller having a higher priority than the controllers (ECU1 to ECUn),
The transmission unit 211 continuously transmits the reply request signal a predetermined number of times at a timing (FIG. 5, Δtx) where the common transmission path BUS1 continues to be occupied by the reply request signal after the gateway G / W is activated. Occupy BUS1 in the transmission of the reply request signal for a predetermined time Δt,
The abnormality determination means 213
It is determined that there is an abnormality when the return signals returned from each of the controllers (ECU1 to ECUn) have not been received by the receiving means 212 a predetermined number of times in the priority order of the controllers (ECU1 to ECUn). And
It is determined as “no abnormality” when the return signals returned from each of the controllers (ECU1 to ECUn) are received by the receiving unit 212 a predetermined number of times in the priority order of the controllers (ECU1 to ECUn). It was set as the structure to do.

このように構成すると、返信要求信号の1回の送信のみで、異常の有無を判定する場合よりも、異常の有無を正確に判定できる。   If comprised in this way, the presence or absence of abnormality can be determined more correctly than the case where the presence or absence of abnormality is determined only by one transmission of a reply request signal.

(5)送信手段221による返信要求信号の送信回数(時間Δt)は、ゲートウェイG/Wとの間に、信号(返信要求信号、返信信号)の伝送を仲介する偽ECU(不正なコントローラ)が介在する正規のコントローラ(ECU1)が生成した返信信号が、BUS1(共通の伝送路)に伝送(送信)されるまでの間に、返信要求信号の送信が終了する回数(時間)に設定されている構成とした。 (5) The number of transmissions of the reply request signal by the transmission means 221 (time Δt) is determined by a false ECU (illegal controller) that mediates transmission of signals (reply request signal, reply signal) with the gateway G / W. It is set to the number of times (time) at which the transmission of the reply request signal is completed before the reply signal generated by the intervening regular controller (ECU1) is transmitted (transmitted) to BUS1 (common transmission path). It was set as the composition.

このように構成すると、返信要求信号によるBUS1の占有が終了するまでの間に、正規のコントローラ(ECU1)が生成した返信信号が偽ECUに伝送されていると、ゲートウェイG/Wに返信信号が伝送される順序が、予め決められた優先順位と同じになって、偽ECUの存在を検出できなくなることを防止しつつ、異常の有無を判定することができる。   With this configuration, if the reply signal generated by the legitimate controller (ECU1) is transmitted to the fake ECU before the BUS1 is occupied by the reply request signal, the reply signal is sent to the gateway G / W. It is possible to determine whether there is an abnormality while preventing the transmission order from being the same as a predetermined priority order and preventing the presence of a false ECU from being detected.

(6)異常判定手段213は、
受信手段212が受信した返信信号の返信元のコントローラの優先順位(序列)が、先に受信した返信信号の返信元のコントローラの優先順位(序列)よりも高い場合に、「異常あり」と判定する構成とした。
(6) The abnormality determination means 213
When the priority (order) of the reply source controller of the reply signal received by the receiving means 212 is higher than the priority (order) of the reply source controller of the reply signal received earlier, it is determined as “abnormal”. It was set as the structure to do.

このように構成すると、コントローラから返信された返信信号の受信順を確認することで、信号の伝達を仲介する非正規のコントローラ(偽ECU)が接続されているか否かを適切に判断できる。   If comprised in this way, it can be determined appropriately whether the non-regular controller (fake ECU) which mediates transmission of a signal is connected by confirming the reception order of the reply signal returned from the controller.

(7)異常判定手段213は、優先順位(序列)が同じコントローラからの返信信号を所定回数受信する間に、優先順位(序列)が同じコントローラよりも優先順位(序列)が高いコントローラからの返信信号を受信した場合に、「異常あり」と判定する構成とした。 (7) The abnormality determination means 213 returns a reply from a controller having a higher priority (order) than a controller having the same priority (order) while receiving a response signal from the controller having the same priority (order) a predetermined number of times. When a signal is received, it is determined to be “abnormal”.

図6に示すように、返信要求信号の送信時間Δt(送信回数)が長く(多く)なると、コントローラ(ECU2)が生成した返信信号を送信している途中で、正規のコントローラ(ECU1)が生成した返信信号が、偽ECUに伝送されて、偽ECUが、正規のコントローラ(ECU1)が生成した返信信号をBUS1に出力する場合がある。
この場合には、コントローラ(ECU1)が生成して偽ECUが伝送した返信信号が、コントローラ(ECU2)が生成した返信信号の送信の間に割り込んで、ゲートウェイG/Wに伝送されることになる。
As shown in FIG. 6, when the transmission time Δt (number of transmissions) of the reply request signal becomes long (large), the legitimate controller (ECU1) generates while the reply signal generated by the controller (ECU2) is being transmitted. The transmitted reply signal may be transmitted to the fake ECU, and the fake ECU may output the reply signal generated by the legitimate controller (ECU1) to the BUS1.
In this case, the reply signal generated by the controller (ECU1) and transmitted by the fake ECU interrupts the transmission of the reply signal generated by the controller (ECU2) and is transmitted to the gateway G / W. .

よって、上記のように構成して、コントローラから返信された返信信号を複数回受信する途中に、他のコントローラから返信された送信信号の割込があるか否かを確認することによっても、信号の伝達を仲介する非正規のコントローラ(偽ECU)が接続されているか否かを適切に判断できる。   Therefore, by configuring as described above, it is also possible to check whether there is an interrupt of a transmission signal returned from another controller while receiving a response signal returned from the controller a plurality of times. It is possible to appropriately determine whether or not a non-regular controller (fake ECU) that mediates transmission is connected.

(8)送信手段211は、コントローラ(ECU1〜ECUn)の優先順位(序列)を規定した識別ID(序列データ)を、返信要求信号に付加して送信すると共に、
返信要求信号を複数回送信する場合には、識別IDのうちの最も優先順位が低いコントローラ(ECUn)と、この最も優先順位が低いコントローラよりも優先順位が高いコントローラ(ECU1〜ECUn−1)との間で優先順位を入れ替えた確認用序列データを付加した返信要求信号を、少なくとも1回送信する構成とした。
(8) The transmission unit 211 transmits an identification ID (order data) that defines the priority (order) of the controllers (ECU1 to ECUn) in addition to the reply request signal,
When the reply request signal is transmitted a plurality of times, a controller (ECUn) having the lowest priority among the identification IDs and a controller (ECU1 to ECUn-1) having a higher priority than the controller having the lowest priority The reply request signal to which the confirmation order data in which the priorities are switched is added is transmitted at least once.

優先順位が最も低いコントローラ(ECUn)とBUS1との間に偽ECUが設けられている場合には、ゲートウェイG/Wでの返信信号の受信順で、異常の有無を判定することができない。
上記のように構成して、優先順位を入れ替えていない返信要求信号に対する返信信号の受信順と、優先順位を入れ替えた返信要求信号に対する返信信号の受信順との両方により、異常の有無を判定することで、優先順位が最も低いコントローラ(ECUn)とBUS1との間に偽ECUが設けられている場合でも、異常の有無、すなわち偽ECUの有無を確認することができる。
When a false ECU is provided between the controller (ECU) having the lowest priority and the BUS1, it is not possible to determine whether there is an abnormality in the order in which the gateway G / W receives the return signal.
By configuring as described above, the presence / absence of an abnormality is determined by both the reception order of reply signals with respect to reply request signals whose priority is not changed and the reception order of reply signals with respect to reply request signals whose priority is exchanged. Thus, even when a false ECU is provided between the controller (ECUn) having the lowest priority and the BUS1, it is possible to check whether there is an abnormality, that is, whether there is a false ECU.

(9)返信要求信号の送信回数は、BUS1に接続されたコントローラ(ECU1〜ECUn)のうち、最も返信信号の生成に時間のかかるコントローラでの返信信号の生成に要する時間に基づいて設定されており、最も返信信号の生成に時間のかかるコントローラでの返信信号の生成に要する時間よりも長い時間に亘って、ゲートウェイG/Wが出力する返信要求信号で、BUS1が占有されるように設定されているものとした。 (9) The number of transmissions of the reply request signal is set based on the time required for generating the reply signal in the controller (ECU1 to ECUn) connected to the BUS 1 that takes the longest time to generate the reply signal. The reply request signal output by the gateway G / W is set to be occupied by the reply request signal output from the gateway G / W for a time longer than the time required for the reply signal to be generated by the controller that takes the longest time to generate the reply signal. It was supposed to be.

このように構成すると、返信信号の生成が遅いコントローラでの返信信号の生成を待ってから、各コントローラ(ECU1〜ECUn)がBUS1に返信信号を出力することになるので、返信信号の生成が速いコントローラの返信信号が、このコントローラよりも優先順位の高いコントローラの返信信号よりも先にゲートウェイG/Wで受信されることを好適に防止できる。
これにより、異常判定手段213が、偽ECUが設けられていないにもかかわらず、返信信号の生成が遅いコントローラに対して「異常あり」と判定することを好適に防止できる。
With such a configuration, each controller (ECU1 to ECUn) outputs a reply signal to BUS1 after waiting for a reply signal to be generated by a controller that is slow in generating a reply signal. It can be suitably prevented that the reply signal from the controller is received by the gateway G / W before the reply signal from the controller having a higher priority than the controller.
Thereby, it is possible to suitably prevent the abnormality determination unit 213 from determining that there is “abnormality” for a controller that is slow in generating a reply signal even though no fake ECU is provided.

1 BUS
2 車内ネットワーク
20 記憶部
21 CPU
22 入出力ポート
23 内部バス
24 イグニッションスイッチ
25 スピーカ
26 インジケータパネル
30 記憶部
31 CPU
31 記憶部
32 入出力ポート
33 内部バス
211 送信手段
212 受信手段
213 異常判定手段
214 報知手段
215 認証手段
217 報知手段
261 警告灯
311 返信信号生成手段
G/W ゲートウェイ
ECU1〜ECUn コントローラ
V 車両
1 BUS
2 In-car network 20 Storage unit 21 CPU
22 I / O Port 23 Internal Bus 24 Ignition Switch 25 Speaker 26 Indicator Panel 30 Storage Unit 31 CPU
31 Storage Unit 32 Input / Output Port 33 Internal Bus 211 Transmitting Means 212 Receiving Means 213 Abnormality Determination Means 214 Notification Means 215 Authentication Means 217 Notification Means 261 Warning Light 311 Reply Signal Generation Means G / W Gateway ECU1 to ECUn Controller V Vehicle

Claims (11)

序列が異なる複数のコントローラが、共通の伝送路を介してゲートウェイ装置に通信可能に接続され、前記複数のコントローラから同時に信号が出力される場合、前記序列が高いコントローラの信号から順番に前記ゲートウェイ装置に伝送されるCAN通信システムであって、
前記ゲートウェイ装置は、
当該ゲートウェイ装置への返信を要求する返信要求信号を、前記共通の伝送路を介して、前記複数のコントローラに同時に送信する送信手段と、
前記コントローラの各々から返信信号を受信する受信手段と、
前記返信信号の受信順に基づいて、異常の有無を判定する異常判定手段と、を有する
ことを特徴とするCAN通信システム。
When a plurality of controllers having different ranks are communicably connected to a gateway apparatus via a common transmission line, and signals are output simultaneously from the plurality of controllers, the gateway apparatus sequentially from the controller signal having the highest rank. A CAN communication system transmitted to
The gateway device is
A transmission means for simultaneously transmitting a reply request signal for requesting a reply to the gateway device to the plurality of controllers via the common transmission path;
Receiving means for receiving a reply signal from each of the controllers;
A CAN communication system comprising: an abnormality determination unit configured to determine presence / absence of an abnormality based on a reception order of the reply signals.
前記CAN通信システムでは、前記複数のコントローラのうち、遅れて出力されたコントローラの返信信号は、当該コントローラの序列よりも遅れて伝送され、
前記異常判定手段は、
前記コントローラの各々からの前記返信信号の受信順が、前記コントローラの序列順と異なる場合に、複数の前記コントローラの何れかと前記ゲートウェイ装置の間に不正なコントローラが介在するとして、異常ありと判定する請求項1に記載のCAN通信システム。
In the CAN communication system, among the plurality of controllers, the reply signal of the controller output with a delay is transmitted with a delay from the order of the controllers,
The abnormality determining means includes
When the reception order of the reply signals from each of the controllers is different from the order of the controllers, it is determined that there is an abnormality as an unauthorized controller is interposed between any of the plurality of controllers and the gateway device. The CAN communication system according to claim 1.
前記異常判定手段は、
前記コントローラの各々からの前記返信信号の受信順が、前記コントローラの序列順と同じである場合に、異常なしと判定する請求項2に記載のCAN通信システム。
The abnormality determining means includes
3. The CAN communication system according to claim 2, wherein when the order of receiving the reply signals from each of the controllers is the same as the order of order of the controllers, it is determined that there is no abnormality.
前記返信要求信号には、前記コントローラ各々の序列を規定した序列データが付加されており、
前記コントローラは、
前記返信要求信号を受信すると、当該コントローラの序列を前記序列データを参照して特定し、特定した序列を示す情報を、前記返信信号に付加して送信する返信信号生成手段を有していることを特徴とする請求項1から請求項3の何れか一項に記載のCAN通信システム。
In the reply request signal, order data defining the order of each of the controllers is added,
The controller is
Upon receipt of the reply request signal, it has reply signal generation means for identifying the order of the controller with reference to the order data and adding information indicating the identified order to the reply signal for transmission. The CAN communication system according to any one of claims 1 to 3, wherein:
前記送信手段は、前記ゲートウェイ装置の起動後に、前記共通の伝送路が前記返信要求信号で占有され続けるタイミングで、前記返信要求信号を連続して所定回数送信し、
前記異常判定手段は、
前記コントローラの各々からの前記返信信号が、前記コントローラの序列順で前記所定回数ずつ受信されていない場合に、異常ありと判定することを特徴とする請求項1、請求項2、請求項4の何れか一項に記載のCAN通信システム。
The transmission means continuously transmits the reply request signal a predetermined number of times at a timing at which the common transmission line continues to be occupied by the reply request signal after the gateway device is activated,
The abnormality determining means includes
5. The method according to claim 1, wherein the return signal from each of the controllers is determined to be abnormal when it has not been received the predetermined number of times in the order of the controllers. The CAN communication system as described in any one.
前記送信手段による前記返信要求信号の送信回数は、
前記ゲートウェイ装置との間に不正なコントローラが介在する正規のコントローラの返信信号が、前記共通の伝送路に送信されるまでの間に、前記返信要求信号の送信が終了する回数に設定されていることを特徴とする請求項5に記載のCAN通信システム。
The number of transmissions of the reply request signal by the transmission means is:
It is set to the number of times the transmission of the reply request signal is completed before a reply signal from a legitimate controller having an unauthorized controller intervening with the gateway device is sent to the common transmission path. The CAN communication system according to claim 5.
前記異常判定手段は、
前記コントローラの各々からの前記返信信号が、前記コントローラの序列順で前記所定回数ずつ受信されている場合に、異常なしと判定する請求項5または請求項6に記載のCAN通信システム。
The abnormality determining means includes
7. The CAN communication system according to claim 5, wherein when the reply signal from each of the controllers is received the predetermined number of times in the order of the controllers, it is determined that there is no abnormality.
前記異常判定手段は、
前記受信手段が受信した返信信号の返信元のコントローラの序列が、先に受信した返信信号の返信元のコントローラの序列よりも高い場合に、異常ありと判定することを特徴とする請求項5に記載のCAN通信システム。
The abnormality determining means includes
6. The apparatus according to claim 5, wherein when there is a higher rank of the reply source controller of the reply signal received by the receiving means than the rank of the reply source controller of the previously received reply signal, it is determined that there is an abnormality. The described CAN communication system.
前記異常判定手段は、前記序列が同じコントローラからの返信信号を前記所定回数受信する間に、前記序列が同じコントローラよりも序列が高いコントローラからの返信信号を受信した場合に、異常ありと判定することを特徴とする請求項5に記載のCAN通信システム。   The abnormality determining means determines that there is an abnormality when a reply signal is received from a controller having a higher order than the controller having the same order while the reply signal from the controller having the same order is received the predetermined number of times. The CAN communication system according to claim 5. 前記送信手段は、前記コントローラ各々の序列を規定した序列データを、前記返信要求信号に付加して送信すると共に、
前記返信要求信号を複数回送信する場合には、前記序列データにおいて最も序列が低いコントローラと、この最も序列が低いコントローラよりも序列が高いコントローラとの間で序列を入れ替えた確認用序列データを付加した返信要求信号を、少なくとも1回送信することを特徴とする請求項5から請求項9の何れか一項に記載のCAN通信システム。
The transmission means transmits the order data defining the order of each of the controllers, added to the reply request signal, and
When the reply request signal is transmitted a plurality of times, confirmation order data in which the order is switched between the controller having the lowest order in the order data and the controller having the higher order than the controller having the lowest order is added. The CAN communication system according to any one of claims 5 to 9, wherein the response request signal transmitted is transmitted at least once.
前記返信要求信号の送信回数は、前記伝送路に接続された複数の前記コントローラのうち、前記返信信号の生成に最も時間のかかるコントローラでの前記返信信号の生成に要する時間に基づいて設定されていることを特徴とする請求項5から請求項10の何れか一項に記載のCAN通信システム。   The number of transmissions of the reply request signal is set based on the time required to generate the reply signal by the controller that takes the longest time to generate the reply signal among the plurality of controllers connected to the transmission path. The CAN communication system according to any one of claims 5 to 10, wherein:
JP2016137786A 2016-07-12 2016-07-12 CAN communication system Pending JP2018011155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016137786A JP2018011155A (en) 2016-07-12 2016-07-12 CAN communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016137786A JP2018011155A (en) 2016-07-12 2016-07-12 CAN communication system

Publications (1)

Publication Number Publication Date
JP2018011155A true JP2018011155A (en) 2018-01-18

Family

ID=60995850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016137786A Pending JP2018011155A (en) 2016-07-12 2016-07-12 CAN communication system

Country Status (1)

Country Link
JP (1) JP2018011155A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024166740A1 (en) * 2023-02-08 2024-08-15 株式会社オートネットワーク技術研究所 On-vehicle relay device, relay method, and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024166740A1 (en) * 2023-02-08 2024-08-15 株式会社オートネットワーク技術研究所 On-vehicle relay device, relay method, and computer program

Similar Documents

Publication Publication Date Title
CN107005447B (en) Communication control device and communication system
JP6477281B2 (en) In-vehicle relay device, in-vehicle communication system, and relay program
KR101462553B1 (en) Controller area network communications using ethernet
CN107005572B (en) Method and device for the reaction-free detection of data
RU2712138C2 (en) Method, system and electronic control unit for prevention of spoofing in automotive network
WO2017038422A1 (en) Communication device
JP7178408B2 (en) Abnormality detection device, abnormality detection system and control method
JPWO2015159520A1 (en) In-vehicle network system, gateway device and fraud detection method
KR101972457B1 (en) Method and System for detecting hacking attack based on the CAN protocol
WO2018173732A1 (en) On-board communication device, computer program, and message determination method
US11388156B2 (en) Proof-of-work concept for a vehicle
JPWO2019193786A1 (en) Log output method, log output device and program
CN111226417A (en) Vehicle-mounted communication device, vehicle-mounted communication system, and vehicle-mounted communication method
JP6586500B2 (en) Method and apparatus for transmitting message sequences over a data bus and method and apparatus for recognizing attacks on message sequences thus transmitted
JP5304496B2 (en) Communication node
JP2018121220A (en) In-vehicle network system
JP2019097088A (en) Serial communication system
JP2018011155A (en) CAN communication system
CN108632242B (en) Communication device and receiving device
JP2015227157A (en) Data gateway, and method for interfering with vehicular operation thereof
JP7132132B2 (en) In-vehicle communication system, in-vehicle communication control device, in-vehicle communication device, computer program, communication control method and communication method
JP7110950B2 (en) network system
JP2013121071A (en) Relay system, and relay device and external device forming the same
WO2018037894A1 (en) Authentication device for vehicles
JP7328419B2 (en) In-vehicle communication system, in-vehicle communication device, computer program and communication method