JP6674854B2 - Arithmetic unit - Google Patents

Arithmetic unit Download PDF

Info

Publication number
JP6674854B2
JP6674854B2 JP2016139210A JP2016139210A JP6674854B2 JP 6674854 B2 JP6674854 B2 JP 6674854B2 JP 2016139210 A JP2016139210 A JP 2016139210A JP 2016139210 A JP2016139210 A JP 2016139210A JP 6674854 B2 JP6674854 B2 JP 6674854B2
Authority
JP
Japan
Prior art keywords
communication
unit
identifier
monitoring
communication data
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.)
Expired - Fee Related
Application number
JP2016139210A
Other languages
Japanese (ja)
Other versions
JP2018011214A (en
Inventor
憲太 森島
憲太 森島
勝 康夫
康夫 勝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2016139210A priority Critical patent/JP6674854B2/en
Priority to PCT/JP2017/024153 priority patent/WO2018012322A1/en
Publication of JP2018011214A publication Critical patent/JP2018011214A/en
Application granted granted Critical
Publication of JP6674854B2 publication Critical patent/JP6674854B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Description

本発明は、演算装置に関する。   The present invention relates to an arithmetic device.

電子化の進行により車両には多くの演算装置が搭載される。これらの演算装置は車載ネットワークにより接続され、様々な制御情報を交換することで車両の制御が実現されている。演算装置同士の通信に問題が発生すると車両の制御に影響が生じるので、通信に発生する問題の検出が求められる。特許文献1には、複数のノードが1回以上メッセージを送信する略一定時間毎に、複数のノードの通信有無を監視して、前記略一定時間内に通信が検出されないノードを、ノードが検出されない順位情報と共に記録する通信途絶検出手段を有するノード監視方法が開示されている。   With the progress of computerization, many computing devices are mounted on vehicles. These computing devices are connected by a vehicle-mounted network, and control of the vehicle is realized by exchanging various control information. If a problem occurs in the communication between the arithmetic units, the control of the vehicle is affected. Therefore, it is required to detect the problem occurring in the communication. Patent Literature 1 discloses that a node monitors the presence / absence of communication of a plurality of nodes approximately every fixed time during which a plurality of nodes transmit a message at least once, and detects a node in which communication is not detected within the substantially fixed time. There is disclosed a node monitoring method having a communication disruption detection unit that records together with rank information that is not performed.

特開2012−86601号公報JP 2012-86601 A

特許文献1に記載されている発明では、周期的でない通信に発生する異常を検出できない。   In the invention described in Patent Document 1, it is not possible to detect an abnormality that occurs in non-periodic communication.

本発明の第1の態様による演算装置は、通信データを送受信する演算装置であって、前記通信データの内容を示す識別子を含む前記通信データを送受信する通信部と、前記識別子と規定の順番とを含むレコードを複数含む監視条件が格納される格納部と、通信の異常を検出する検出部とを備え、前記監視条件の複数のレコードには、同一の前記定の順番がまれ、前記検出部は、前記通信部が送受信した複数の前記通信データの通信順序と、前記監視条件に記された前記識別子の規定の順番とに基づき、通信の異常を検出し、前記検出部は、前記識別子をそれぞれ含む複数の前記通信データが、前記規定の順番とは異なる通信順序で前記通信部に送受信された場合に通信の異常を検出したと判断する。
Operation apparatus according to a first aspect of the present invention is an arithmetic unit for transmitting and receiving communication data, and a communication unit for transmitting and receiving said communication data including an identifier indicating the content of the communication data, the identifier and the provisions of the order and preparative storage unit monitoring conditions are stored including a plurality of records containing, and a detection unit for detecting an abnormality of communication, the multiple records of monitoring conditions are the same of the provisions of the order are included, The detection unit, based on the communication order of the plurality of communication data transmitted and received by the communication unit, based on the specified order of the identifier described in the monitoring condition, detects a communication abnormality, the detection unit, When a plurality of pieces of communication data each including the identifier are transmitted and received to and from the communication unit in a communication order different from the prescribed order, it is determined that a communication abnormality has been detected.

本発明によれば、周期的でない通信の異常を検出することができる。   According to the present invention, it is possible to detect a non-periodic communication abnormality.

車載ネットワークの構成を示す図Diagram showing the configuration of the in-vehicle network 車両のダッシュボードの一例を示す図Diagram showing an example of a vehicle dashboard 第1ECUの構成を示すブロック図Block diagram showing the configuration of the first ECU 監視条件テーブルの一例を示す図Diagram showing an example of a monitoring condition table 検証テーブルの一例を示す図The figure which shows an example of a verification table 検出部が監視部からCAN−IDを受信した際の動作を表すフローチャート9 is a flowchart illustrating an operation when the detection unit receives the CAN-ID from the monitoring unit. 変形例1における検出部の動作を表すフローチャート9 is a flowchart illustrating the operation of the detection unit according to the first modification. 複数のレコードに同一の順序が付された監視条件テーブルの一例を示す図Diagram showing an example of a monitoring condition table in which the same order is assigned to a plurality of records 付加的なフィールドを有する検証テーブルの一例を示す図The figure which shows an example of the verification table which has an additional field.

以下、図1〜図6を参照して、演算装置である第1ECUの第1の実施の形態を説明する。ECUは車両に搭載される。   Hereinafter, a first embodiment of a first ECU as an arithmetic unit will be described with reference to FIGS. The ECU is mounted on a vehicle.

(ネットワーク構成)
図1は本発明にかかる第1ECU100が接続される車載ネットワーク2の構成を示す図である。車載ネットワーク2は、車両1に搭載される。車載ネットワーク2には、第1ECU100と、第2ECU200と、第3ECU300と、第4ECU400とが接続される。車載ネットワーク2には、不図示の他の装置も接続される。車載ネットワーク2は、通信プロトコルにCAN(Controller Area Network)を使用する、いわゆるCANネットワークである。第1ECU100、第2ECU200、第3ECU300、および第4ECU400は、CANの通信規約に沿った通信を行う。
(Network configuration)
FIG. 1 is a diagram showing a configuration of a vehicle-mounted network 2 to which a first ECU 100 according to the present invention is connected. The in-vehicle network 2 is mounted on the vehicle 1. The first ECU 100, the second ECU 200, the third ECU 300, and the fourth ECU 400 are connected to the vehicle-mounted network 2. Other devices (not shown) are also connected to the vehicle-mounted network 2. The vehicle-mounted network 2 is a so-called CAN network that uses CAN (Controller Area Network) as a communication protocol. The first ECU 100, the second ECU 200, the third ECU 300, and the fourth ECU 400 perform communication according to the CAN protocol.

CANネットワークにおいてやり取りされる通信データ、すなわちデータフレームは、ヘッダとペイロードとを含む。ヘッダにはCAN−IDが含まれる。CAN−IDとはペイロードの種類、またはペイロードの内容を表す情報であり、ペイロードとは通信の目的となるデータである。
第1ECU100、第2ECU200、第3ECU300、および第4ECU400はそれぞれ、CANに対応する通信インタフェースと、CPUと、RAMと、ROMとを備える。CPUはROMに格納された不図示のプログラムをRAMに展開して実行し、後述する動作を行う。
Communication data exchanged in a CAN network, that is, a data frame, includes a header and a payload. The header includes the CAN-ID. The CAN-ID is information indicating the type of the payload or the content of the payload, and the payload is data to be used for communication.
The first ECU 100, the second ECU 200, the third ECU 300, and the fourth ECU 400 each include a communication interface corresponding to CAN, a CPU, a RAM, and a ROM. The CPU expands a program (not shown) stored in the ROM into the RAM, executes the program, and performs an operation described later.

第4ECU400は、異常表示部610を含むダッシュボードの表示制御を行う。ダッシュボードは異常表示部610に接続される。第4ECU400は異常の検知を示す所定のデータフレームを受信すると、異常表示部610に異常の発生を示す表示を表示させる。異常表示部610は、図2に示すように車両1のダッシュボード800の一部であり、たとえば図2に示すように工具のアイコンを点灯させることにより、車両1の運転者に不具合の発生を通知する。   The fourth ECU 400 controls display of a dashboard including the abnormality display unit 610. The dashboard is connected to the abnormality display section 610. When receiving the predetermined data frame indicating the detection of the abnormality, fourth ECU 400 causes abnormality display section 610 to display a display indicating the occurrence of the abnormality. The abnormality display unit 610 is a part of the dashboard 800 of the vehicle 1 as shown in FIG. 2. For example, by turning on a tool icon as shown in FIG. Notice.

(動作の概要)
前述の図1を用いて第1ECU100の動作の概要を説明する。第1ECU100には、ECU同士の通信の順番が予め記憶されている。その順番とはたとえば以下のようなものである。まず第1ECU100から第2ECU200および第3ECU300宛ての通信が行われる(図1の“1”)。次に第2ECU200から第1ECU100宛ての通信が行われる(図1の“2”)。次に第3ECU300から第1ECU100宛ての通信が行われる(図1の“3”)。最後に第1ECU100から他の装置宛ての通信が行われる(図1の“4”)。
(Outline of operation)
The outline of the operation of the first ECU 100 will be described with reference to FIG. The first ECU 100 stores the order of communication between ECUs in advance. The order is, for example, as follows. First, communication from the first ECU 100 to the second ECU 200 and the third ECU 300 is performed ("1" in FIG. 1). Next, communication from the second ECU 200 to the first ECU 100 is performed ("2" in FIG. 1). Next, communication from the third ECU 300 to the first ECU 100 is performed ("3" in FIG. 1). Finally, communication from the first ECU 100 to another device is performed ("4" in FIG. 1).

第1ECU100は、通信が行われる順番を監視し、通信が上述した順番で行われていない場合、すなわち通信の順番が変わっている場合は異常が発生したと判断し、異常の発生を知らせる通信を行う。第4ECU400は、異常の発生を知らせる通信を受信すると異常表示部610に異常の発生を示す表示を表示させる。   The first ECU 100 monitors the order in which the communication is performed. If the communication is not performed in the order described above, that is, if the order of the communication is changed, the first ECU 100 determines that an abnormality has occurred, and performs communication notifying the occurrence of the abnormality. Do. When receiving the communication indicating the occurrence of the abnormality, fourth ECU 400 causes abnormality display section 610 to display a display indicating the occurrence of the abnormality.

(第1ECUの構成)
図3は第1ECU100の構成を示すブロック図である。第1ECU100は、その機能として、通信部110と、抽出部120と、格納部130と、検出部140と、出力部150と、制御演算部160を備える。
通信部110は、CANに対応する通信インタフェースであり、車載ネットワーク2へのデータフレームの送信、および車載ネットワーク2からのデータフレームの受信を行う。通信部110が送信または受信したデータフレームの情報は、抽出部120および制御演算部160に出力される。
抽出部120は、通信部110から入力されたデータフレームの情報からCAN−IDを抽出し、抽出したCAN−IDを検出部140に出力する。
(Configuration of the first ECU)
FIG. 3 is a block diagram showing the configuration of the first ECU 100. The first ECU 100 includes, as its functions, a communication unit 110, an extraction unit 120, a storage unit 130, a detection unit 140, an output unit 150, and a control calculation unit 160.
The communication unit 110 is a communication interface corresponding to CAN, and transmits a data frame to the vehicle-mounted network 2 and receives a data frame from the vehicle-mounted network 2. Information of the data frame transmitted or received by the communication unit 110 is output to the extraction unit 120 and the control calculation unit 160.
The extracting unit 120 extracts the CAN-ID from the information of the data frame input from the communication unit 110, and outputs the extracted CAN-ID to the detecting unit 140.

格納部130には、監視条件テーブル500が格納される。格納部130は、監視条件テーブル500を検出部140に提供する。監視条件テーブル500の構成は後に詳述する。検出部140は、格納部130から監視条件テーブル500を取得し、抽出部120から入力されたCAN−IDの情報に基づいて、通信部110が送信または受信したデータフレームの順番が、監視条件テーブル500に記載された順番に合致するか検証する。検出部140は、この検証に利用する検証テーブル600を備える。この検証により、通信部110が送信または受信したデータフレームの通信順序が監視条件テーブル500に記載された識別子の順番に合致しないと判断すると、出力部150に異常の検知を示す信号を出力する。検出部140の動作、および検証テーブル600の構成は後に詳述する。   The storage unit 130 stores a monitoring condition table 500. The storage unit 130 provides the monitoring condition table 500 to the detection unit 140. The configuration of the monitoring condition table 500 will be described later in detail. The detection unit 140 acquires the monitoring condition table 500 from the storage unit 130, and determines the order of the data frame transmitted or received by the communication unit 110 based on the CAN-ID information input from the extraction unit 120, based on the monitoring condition table 500. It is verified that the order matches the order described in 500. The detection unit 140 includes a verification table 600 used for this verification. If the communication unit 110 determines that the communication order of the data frames transmitted or received by the communication unit 110 does not match the order of the identifiers described in the monitoring condition table 500, the communication unit 110 outputs a signal indicating abnormality detection to the output unit 150. The operation of the detection unit 140 and the configuration of the verification table 600 will be described later in detail.

出力部150は、検出部140から異常の検知を示す信号が入力されると、あらかじめ定められたデータフレームを生成して通信部110に送信させる。このデータフレームによる他の装置への影響は後述する。
制御演算部160は、あらかじめ定められた手順にしたがって、他のECUや他の装置と通信を行うためのデータフレームを生成し、通信部110に送信させる。たとえば制御演算部160は、あらかじめ定められた時間の周期でデータフレームを生成して通信部110に送信させる。また制御演算部160は、受信したデータフレームのペイロードを用いて演算を行い、演算結果をペイロードに含むデータフレームを生成して通信部110に送信させる。なお抽出部120、格納部130、および検出部140は連携して動作するが、これらと制御演算部160の動作は独立している。
When a signal indicating the detection of an abnormality is input from the detection unit 140, the output unit 150 generates a predetermined data frame and causes the communication unit 110 to transmit the data frame. The effect of this data frame on other devices will be described later.
The control calculation unit 160 generates a data frame for communicating with another ECU or another device according to a predetermined procedure, and causes the communication unit 110 to transmit the data frame. For example, the control operation unit 160 generates a data frame at a predetermined time period and causes the communication unit 110 to transmit the data frame. Further, the control operation unit 160 performs an operation using the payload of the received data frame, generates a data frame including the operation result in the payload, and causes the communication unit 110 to transmit the data frame. The extraction unit 120, the storage unit 130, and the detection unit 140 operate in cooperation with each other, but the operations of these units and the control calculation unit 160 are independent.

(監視条件テーブル)
図4は、監視条件テーブル500の一例を示す図である。監視条件テーブル500は、2以上のレコードから構成される。監視条件テーブル500の各レコードは、順序、前提フラグ、条件、タイムアウト、および成立時フラグの5つのフィールドを有する。
順序のフィールドには、この監視条件テーブル500において条件が成立する順番、換言すると正常な通信の順序を示す情報が格納される。順序のフィールドには、たとえば1以上の整数が格納され、少なくとも「1」と「2」が格納される。図4に示す例では4つのレコードにそれぞれ異なる値が格納されているので、4つの条件が1つずつ順番に成立するのが正常であることがわかる。
(Monitoring condition table)
FIG. 4 is a diagram showing an example of the monitoring condition table 500. The monitoring condition table 500 includes two or more records. Each record of the monitoring condition table 500 has five fields of an order, a premise flag, a condition, a time-out, and a fulfillment time flag.
The order field stores information indicating the order in which the conditions are satisfied in the monitoring condition table 500, in other words, information indicating the normal communication order. In the order field, for example, one or more integers are stored, and at least “1” and “2” are stored. In the example shown in FIG. 4, since different values are stored in the four records, it can be understood that it is normal that the four conditions are satisfied one by one in order.

前提フラグのフィールドには、当該レコードが有効になる前提となるフラグが記載される。たとえば図4の1番目のレコードは前提フラグが不要であり常時有効であることを示している。また図4の2番目のレコードは「CD1」というフラグが設定された際に有効になることを示している。
条件のフィールドには、当該レコードにおいて評価される条件が格納される。本実施の形態における条件は、検知したデータフレームのCAN−IDが特定の値と一致することである。たとえば図4の1番目のレコードの条件は、通信部110が送信または受信したデータフレームのCAN−IDが「0x01」であることを示している。
In the field of the premise flag, a flag which is a premise that the record becomes valid is described. For example, the first record in FIG. 4 indicates that the premise flag is unnecessary and is always valid. The second record in FIG. 4 indicates that the record becomes valid when the flag “CD1” is set.
The condition field stores the condition evaluated in the record. The condition in the present embodiment is that the CAN-ID of the detected data frame matches a specific value. For example, the condition of the first record in FIG. 4 indicates that the CAN-ID of the data frame transmitted or received by the communication unit 110 is “0x01”.

タイムアウトのフィールドには、タイムアウト時間が格納される。当該フィールドが有効になってからタイムアウトのフィールドに記載された時間が経過すると、通信部110が条件を満たさないデータフレームを送信または受信した場合と同様に処理される。ただし図4の1番目のレコードのように、タイムアウトのフィールドに無限大が格納されているレコードについては、タイムアウトは発生しないものとして扱われる。図4の2番目のレコードでは、タイムアウトのフィールドに「200マイクロ秒」が格納されているので、直前の条件である1番目のレコードの条件が成立したとき、すなわちCAN−IDが「0x11」のデータフレームを通信部110が送信または受信したときから、200マイクロ秒経過するとタイムアウトと判断される。
成立時フラグのフィールドには、当該レコードの条件のフィールドに記載された条件が成立した際に設定されるフラグが格納される。たとえば図4の1番目のレコードに記載の条件が成立すると、「CD1」のフラグが設定される。
The timeout field stores a timeout time. When the time described in the timeout field elapses after the field becomes valid, the processing is performed in the same manner as when the communication unit 110 transmits or receives a data frame that does not satisfy the conditions. However, a record in which infinity is stored in the timeout field, such as the first record in FIG. 4, is treated as not causing a timeout. In the second record in FIG. 4, “200 microseconds” is stored in the timeout field, so when the condition of the first record that is the immediately preceding condition is satisfied, that is, when the CAN-ID is “0x11” When 200 microseconds have elapsed since the communication unit 110 transmitted or received the data frame, it is determined that a timeout has occurred.
In the field of the flag at the time of establishment, a flag set when the condition described in the field of the condition of the record is established is stored. For example, when the condition described in the first record in FIG. 4 is satisfied, a flag of “CD1” is set.

(検証テーブル)
図5は、検証テーブル600の一例を示す図である。検証テーブル600は、1以上のレコードから構成される。検証テーブル600の各レコードは、テーブル番号、成立時刻、監視番号、の3つのフィールドを有する。検証テーブル600を構成するレコード数は、格納部130に格納される監視条件テーブル500の数と同一である。検証テーブル600は検出部140により編集される。
テーブル番号のフィールドには、それぞれの監視条件テーブルを識別する識別子、すなわちテーブル番号が格納される。成立時刻のフィールドには、最新の条件が成立した時刻が格納される。監視番号のフィールドには、現在有効なレコードの「順序」を表す番号が格納される。監視番号のフィールドの初期値は「1」である。
(Verification table)
FIG. 5 is a diagram illustrating an example of the verification table 600. The verification table 600 includes one or more records. Each record of the verification table 600 has three fields: table number, establishment time, and monitoring number. The number of records constituting the verification table 600 is the same as the number of the monitoring condition tables 500 stored in the storage unit 130. The verification table 600 is edited by the detection unit 140.
The table number field stores an identifier for identifying each monitoring condition table, that is, a table number. The time at which the latest condition was satisfied is stored in the field of “established time”. The monitoring number field stores a number indicating the “order” of currently valid records. The initial value of the monitoring number field is “1”.

以上の説明をまとめると、図5に例示した検証テーブル600は以下のことを表している。ただしここでは、テーブル番号「1」が図4に示した監視条件テーブル500に対応することとする。
図5に例示した検証テーブル600の監視番号のフィールドが「2」なので、監視条件テーブル500の順序が「2」のレコードが有効である。また成立時刻のフィールドに格納された「0:01:23.456」に最新の条件が成立した、すなわち順序が「1」のレコードの条件が成立したことが示されている。換言すると通信部110が0x01のCAN−IDをヘッダに含むデータフレームを送信または受信した時刻が「0:01:23.456」である。
To summarize the above description, the verification table 600 illustrated in FIG. 5 indicates the following. However, here, it is assumed that the table number “1” corresponds to the monitoring condition table 500 shown in FIG.
Since the field of the monitoring number in the verification table 600 illustrated in FIG. 5 is “2”, the record whose order in the monitoring condition table 500 is “2” is valid. Also, “0: 01: 23.456” stored in the field of the establishment time indicates that the latest condition has been established, that is, the condition of the record whose order is “1” has been established. In other words, the time at which the communication unit 110 transmitted or received the data frame including the CAN-ID of 0x01 in the header is “0: 01: 23.456”.

(検出部の動作)
検出部140は、通信部110が送信または受信したデータフレームのCAN−IDが抽出部120から入力されると、検証テーブル600を参照してそれぞれの監視条件テーブル500における監視番号、すなわち有効なレコードの順序の値を特定する。次に検出部140は、格納部130に格納される監視条件テーブル500を参照し、OK判断IDとNG判断IDを特定する。OK判断IDとは通信部110が次に送信または受信することが期待されるCAN−IDであり、有効なレコードにおいてトリガ条件のフィールドに記載されるCAN−IDである。NG判断IDとは通信部110が次回以降に送信または受信することが期待されるCAN−IDであり、監視条件テーブル500における有効なレコードの次以降のレコードにおいて条件のフィールドに記載されるCAN−IDである。
(Operation of the detector)
When the CAN-ID of the data frame transmitted or received by the communication unit 110 is input from the extraction unit 120, the detection unit 140 refers to the verification table 600, and checks the monitoring number in each monitoring condition table 500, that is, a valid record. Identify the order value of. Next, the detecting unit 140 refers to the monitoring condition table 500 stored in the storage unit 130 and specifies the OK determination ID and the NG determination ID. The OK determination ID is a CAN-ID that the communication unit 110 is expected to transmit or receive next, and is a CAN-ID described in a trigger condition field in a valid record. The NG determination ID is a CAN-ID that the communication unit 110 is expected to transmit or receive next time or later. The NG determination ID is a CAN-ID described in a condition field in a record subsequent to a valid record in the monitoring condition table 500. ID.

たとえば図4〜図5に示す例におけるOK判断IDとNG判断IDは以下のように特定される。図5に示す検証テーブル600では監視番号のフィールドに「2」が格納されているので2番目のレコードが有効であり、監視条件テーブル500における2番目のレコードに記載の「0x02」がOK判断IDとして特定される。また、2番目のレコードの次以降のレコード、すなわち3番目と4番目のレコードに記載の「0x03、0x04」がNG判断IDとして特定される。   For example, the OK judgment ID and the NG judgment ID in the examples shown in FIGS. 4 and 5 are specified as follows. In the verification table 600 shown in FIG. 5, "2" is stored in the monitoring number field, so the second record is valid, and "0x02" described in the second record in the monitoring condition table 500 is the OK determination ID. Specified as Further, the records subsequent to the second record, that is, “0x03, 0x04” described in the third and fourth records are specified as the NG determination ID.

検出部140は、OK判断IDとNG判断IDを特定すると、抽出部120から入力されたCAN−IDがOK判断IDと一致するか否か、NG判断IDと一致するか否かを判断する。OK判断IDと一致すると判断する場合は、検証テーブル600を更新する。NG判断IDと一致すると判断する場合は、通信の順序が異なるという異常の検知を示す信号を出力部150に出力する。いずれにも一致しないと判断する場合は、何も処理を行わない。ただし検証テーブル600の成立時刻のフィールドの時刻に監視条件テーブル500のタイムアウトのフィールドの時間を加えた時刻が現在時刻と比較して過去であれば、タイムアウトが発生したという異常の検知を示す信号を出力部150に出力する。   Upon specifying the OK determination ID and the NG determination ID, the detection unit 140 determines whether the CAN-ID input from the extraction unit 120 matches the OK determination ID or the NG determination ID. If it is determined that the ID matches the OK determination ID, the verification table 600 is updated. If it is determined that they match the NG determination ID, a signal indicating the detection of an abnormality that the order of communication is different is output to the output unit 150. If it is determined that they do not match any of them, no processing is performed. However, if the time obtained by adding the time of the field of the timeout time field of the monitoring condition table 500 to the time of the field of the establishment time of the verification table 600 is in the past as compared with the current time, a signal indicating the detection of abnormality indicating that a timeout has occurred is output. Output to the output unit 150.

検出部140による検証テーブル600の更新は以下のとおりである。すなわち、成立時刻のフィールドの値が現在時刻に更新され、監視番号のフィールドの値が1増加した値に更新される。なお、監視番号のフィールドの値の更新の詳細は次のとおりである。監視条件テーブル500の2番目のレコードの条件が成立した場合は、2行目の成立時フラグのフィールドに記載されたフラグ「CD2」が設定される。そして監視条件テーブル500において前提フラグのフィールドの値が「CD2」である3番目のレコードが有効化されるので、検証テーブル600の監視番号のフィールドの値が「3」に更新される。   The update of the verification table 600 by the detection unit 140 is as follows. That is, the value of the field of the establishment time is updated to the current time, and the value of the field of the monitoring number is updated to a value increased by one. The details of updating the value of the monitoring number field are as follows. When the condition of the second record of the monitoring condition table 500 is satisfied, the flag “CD2” described in the field of the flag at the time of establishment in the second row is set. Then, since the third record in which the value of the premise flag is “CD2” in the monitoring condition table 500 is validated, the value of the monitoring number field of the verification table 600 is updated to “3”.

(検出部のフローチャート)
図6は検出部140が抽出部120からCAN−IDを入力された際の動作を表すフローチャートである。以下に説明する各ステップの実行主体は第1ECU100のCPUである。
ステップS11では、検証テーブル600の監視番号のフィールドの値、すなわち監視条件テーブル500における有効なレコードの番号を特定する。続くステップS12では、監視条件テーブル500における有効なレコード、および次以降のレコードを参照し、OK判断IDとNG判断IDを特定する。続くステップS13では、タイムアウトが発生しているか否かを判断する。タイムアウトが発生していると判断する場合はステップS18に進み、タイムアウトが発生していないと判断する場合はステップS14に進む。
(Flowchart of detection unit)
FIG. 6 is a flowchart illustrating an operation when the detection unit 140 receives a CAN-ID from the extraction unit 120. The execution entity of each step described below is the CPU of the first ECU 100.
In step S11, the value of the monitoring number field of the verification table 600, that is, the number of a valid record in the monitoring condition table 500 is specified. In the following step S12, an OK record ID and an NG record ID are specified by referring to a valid record in the monitoring condition table 500 and records after the next record. In a succeeding step S13, it is determined whether or not a timeout has occurred. When it is determined that a timeout has occurred, the process proceeds to step S18, and when it is determined that a timeout has not occurred, the process proceeds to step S14.

ステップS14では、入力されたCAN−IDがOK判断IDと一致するか否かを判断する。OK判断IDと一致すると判断する場合はステップS17に進み、一致しないと判断する場合はステップS15に進む。
ステップS15では、入力されたCAN−IDがNG判断IDと一致するか否かを判断する。NG判断IDと一致すると判断する場合はステップS16に進み、一致しないと判断する場合は図7のフローチャートを終了する。
ステップS16では、通信の順序が異なるという異常の検知を示す信号を出力部150に出力し、図6のフローチャートを終了する。ステップS17では、検証テーブル600を更新し、図6のフローチャートを終了する。ステップS18では、タイムアウトのエラー、すなわちタイムアウトが発生したという異常の検知を示す信号を出力部150に出力して、図6のフローチャートを終了する。
In step S14, it is determined whether or not the input CAN-ID matches the OK determination ID. If it is determined that the ID matches the OK determination ID, the process proceeds to step S17. If it is determined that the ID does not match, the process proceeds to step S15.
In step S15, it is determined whether or not the input CAN-ID matches the NG determination ID. If it is determined that they match the NG determination ID, the process proceeds to step S16, and if it is determined that they do not match, the flowchart of FIG. 7 ends.
In step S16, a signal indicating the detection of abnormality indicating that the order of communication is different is output to the output unit 150, and the flowchart in FIG. 6 ends. In step S17, the verification table 600 is updated, and the flowchart of FIG. 6 ends. In step S18, a signal indicating detection of a timeout error, that is, detection of abnormality indicating that a timeout has occurred, is output to the output unit 150, and the flowchart in FIG. 6 ends.

上述した第1の実施の形態によれば、次の作用効果が得られる。
(1)演算装置、すなわち第1ECU100は、ヘッダに通信データの内容を示す識別子、すなわちCAN−IDを含む通信データを受信する通信部110と、識別子の規定の順番が記された監視条件テーブル500が格納される格納部130と、通信の異常を検出する検出部140とを備える。検出部140は、通信部110が送受信した複数の通信データの通信順序と、監視条件テーブル500に記された識別子の規定の順番とに基づき、通信の異常を検出する。
第1ECU100は、データフレームのヘッダに格納されるCAN−IDに着目し、送受信するデータフレームの通信順序に応じたCAN−IDの順番が監視条件テーブル500に記された識別子の順番と一致しない場合に通信の異常を検出する。そのため第1ECU100は、周期的でない通信でも通信の異常を検出することができる。
According to the first embodiment, the following operation and effect can be obtained.
(1) The arithmetic unit, that is, the first ECU 100, receives the identifier indicating the content of the communication data in the header, ie, the communication unit 110 that receives the communication data including the CAN-ID, and the monitoring condition table 500 in which the prescribed order of the identifier is described. And a detection unit 140 that detects a communication abnormality. The detection unit 140 detects a communication abnormality based on the communication order of the plurality of communication data transmitted and received by the communication unit 110 and the prescribed order of the identifiers described in the monitoring condition table 500.
The first ECU 100 pays attention to the CAN-ID stored in the header of the data frame, and the order of the CAN-ID according to the communication order of the data frame to be transmitted / received does not match the order of the identifier described in the monitoring condition table 500. Detects communication errors. Therefore, the first ECU 100 can detect communication abnormality even in non-periodic communication.

(2)検出部140は、監視条件テーブル500に含まれる識別子、たとえば図4の例におけるCAN−ID「0x01」、「0x02」、「0x03」、「0x04」をそれぞれ含む通信データが、監視条件テーブル500に記された順番とは異なる通信順序、たとえば「0x01,0x02,0x04,0x03」の順で通信部110に送受信されたと判断すると通信の異常を検出したと判断する。そのため、通信データの順番が入れ替わって受信した場合に迅速に通信の異常を検出することができる。 (2) The detecting unit 140 determines that the identifier included in the monitoring condition table 500, for example, the communication data including the CAN-ID “0x01”, “0x02”, “0x03”, and “0x04” in the example of FIG. If it is determined that the communication unit 110 has transmitted / received a communication order different from the order described in the table 500, for example, “0x01, 0x02, 0x04, 0x03”, it is determined that a communication abnormality has been detected. Therefore, when communication data is received in a different order, a communication abnormality can be quickly detected.

(3)検出部140は、監視条件テーブル500に記された第1識別子を含む通信データが通信部110により送受信されると、監視条件テーブル500における第1識別子の次に記載された第2識別子を含む通信データが既定のタイムアウト時間までに通信部110により送受信されない場合に通信の異常を検出したと判断する。そのため、通信の順序が入れ替わった場合だけでなく、既定の時間よりも通信の間隔が長い場合に通信の異常として検出することができる。 (3) When communication data including the first identifier described in the monitoring condition table 500 is transmitted / received by the communication unit 110, the detection unit 140 transmits the second identifier described next to the first identifier in the monitoring condition table 500. If the communication data including “” is not transmitted / received by the communication unit 110 by the predetermined timeout time, it is determined that a communication abnormality has been detected. Therefore, not only when the communication order is changed, but also when the communication interval is longer than a predetermined time, it can be detected as a communication abnormality.

(4)通信データはCANプロトコルにしたがったデータフレームであり、識別子はCAN−IDである。CANではバス型のネットワークトポロジが採用されているので、第1ECU100は同一ネットワーク内の通信をすべて受信することができる。したがって、通信データが送信された順序をもれなく把握することができる。 (4) The communication data is a data frame according to the CAN protocol, and the identifier is CAN-ID. Since the CAN adopts a bus-type network topology, the first ECU 100 can receive all communications within the same network. Therefore, it is possible to grasp the order in which the communication data is transmitted without fail.

(変形例1)
上述した実施の形態における検出部140の動作を以下のように変更してもよい。
図7は、変形例1における検出部140の動作を表すフローチャートである。図6と同一の動作を行う処理ステップには同一のステップ番号を付している。以下に説明する各ステップの実行主体は第1ECU100のCPUである。
(Modification 1)
The operation of the detection unit 140 in the above-described embodiment may be changed as follows.
FIG. 7 is a flowchart illustrating the operation of the detection unit 140 according to the first modification. Processing steps that perform the same operations as in FIG. 6 are given the same step numbers. The execution entity of each step described below is the CPU of the first ECU 100.

検出部140は、第1ECU100が起動すると動作を開始する。ステップS21では、監視条件テーブル500における順序が「1」のレコードにおいてトリガ条件のフィールドに記載されるCAN−IDが抽出部120から入力されたか否かを判断する。入力されたと判断する場合はステップS17に進み、入力されていないと判断する場合はステップS21に留まる。   Detecting section 140 starts operating when first ECU 100 is started. In step S <b> 21, it is determined whether or not the CAN-ID described in the trigger condition field in the record whose order in the monitoring condition table 500 is “1” is input from the extraction unit 120. If it is determined that an input has been made, the process proceeds to step S17. If it is determined that an input has not been made, the process remains at step S21.

ステップS17では、現状の検証テーブル600の記述と、受信したCAN−IDに基づき検証テーブル600を更新し、ステップS11に進む。ステップS11では検証テーブル600の記述に基づき、監視条件テーブル500において有効なレコードの番号を特定する。続くステップS12Aでは、OK判断IDを特定する。続くステップS14Aでは、OK判断IDが入力されたか否かを判断し、入力されたと判断する場合はステップS22に進み、入力されていないと判断する場合はステップS13に進む。ステップS14Aにおいて否定判断される場合は、通信部110が何も受信していない場合、およびOK判断ID以外のCAN−IDを有するデータフレームを受信した場合である。   In step S17, the verification table 600 is updated based on the current description of the verification table 600 and the received CAN-ID, and the process proceeds to step S11. In step S11, a valid record number is specified in the monitoring condition table 500 based on the description of the verification table 600. In a succeeding step S12A, an OK determination ID is specified. In a succeeding step S14A, it is determined whether or not the OK determination ID has been input. When it is determined that the ID has been input, the process proceeds to step S22. When it is determined that the OK determination ID has not been input, the process proceeds to step S13. The case where a negative determination is made in step S14A is a case where the communication unit 110 has not received anything and a case where a data frame having a CAN-ID other than the OK determination ID has been received.

ステップS22では、現在有効なレコードが最後のレコードであるか否かを判断し、最後のレコードであると判断する場合はステップS23に進み、最後のレコードではないと判断する場合はステップS17に戻る。ステップS23では、検証テーブル600の初期化、すなわち成立時刻の削除および監視番号の「1」への変更を行い、図7のフローチャートを終了する。   In step S22, it is determined whether or not the currently valid record is the last record. When it is determined that the record is the last record, the process proceeds to step S23. When it is determined that the record is not the last record, the process returns to step S17. . In step S23, the verification table 600 is initialized, that is, the establishment time is deleted and the monitoring number is changed to “1”, and the flowchart in FIG. 7 ends.

ステップS14Aにおいて否定判断されると実行されるステップS13では、タイムアウトが発生したか否かを判断する。タイムアウトが発生したと判断する場合はステップS18に進み、タイムアウトが発生していないと判断する場合はステップS14Aに戻る。ステップS18ではタイムアウトのエラー、すなわちタイムアウトが発生したという異常の検知を示す信号を出力部150に出力して、図7のフローチャートを終了する。
第1ECU100のCPUは、図7のフローチャートの実行が終了すると、再び図7のフローチャートを実行する。
In a step S13 executed when a negative determination is made in the step S14A, it is determined whether or not a timeout has occurred. If it is determined that a timeout has occurred, the process proceeds to step S18, and if it is determined that a timeout has not occurred, the process returns to step S14A. In step S18, a signal indicating a time-out error, that is, a signal indicating detection of abnormality indicating that a time-out has occurred, is output to the output unit 150, and the flowchart in FIG. 7 ends.
When the execution of the flowchart of FIG. 7 ends, the CPU of first ECU 100 executes the flowchart of FIG. 7 again.

(動作例)
監視条件テーブル500が図4に示すものである場合に、「0x02」と「0x03」のCAN−IDの通信の順番が入れ替わり、通信部110が送受信したデータフレームのCAN−IDの順番が「0x01,0x03,0x02,0x04」である場合に以下のようにエラーが検出される。
(Operation example)
In the case where the monitoring condition table 500 is as shown in FIG. , 0x03, 0x02, 0x04 ", an error is detected as follows.

まず通信部110により、順序が「1」であるレコードのCAN−IDである「0x01」のデータフレームが送信され、このCAN−IDが検出部140に入力されると(図7のS21:YES)、検証テーブル600の監視番号が「2」に更新される(S17)。したがって順序が「2」であるレコードに記載された「0x02」がOK判断IDとして特定される(S11,S12A)。すると、「0x02」のCAN−IDが検出部140に入力されるかタイムアウトが発生するまで、S14AとS13のループが継続される。   First, the communication unit 110 transmits a data frame of “0x01”, which is the CAN-ID of the records whose order is “1”, and when this CAN-ID is input to the detection unit 140 (S21 in FIG. 7: YES) ), The monitoring number in the verification table 600 is updated to “2” (S17). Therefore, “0x02” described in the record whose order is “2” is specified as the OK determination ID (S11, S12A). Then, the loop of S14A and S13 is continued until the CAN-ID of “0x02” is input to the detection unit 140 or a timeout occurs.

そのため通信部110が「0x03」のCAN−IDのデータフレームを受信し、このCAN−IDが検出部140に入力されると、S14Aで否定判断される。その次に通信部110が「0x02」のCAN−IDのデータフレームを受信すると、S14Aで肯定判断され最後のレコードではないのでS17に戻り、検証テーブル600の監視番号が「3」に更新される。そのため次は「0x03」がOK判断IDとして特定され(S11,S12A)、S14Aでは「0x03」のCAN−IDが検出部140に入力されるのを待ち続ける。しかし、次に通信部110が送信するデータフレームのCAN−IDは最後の「0x04」なので、検出部140に「0x03」のCAN−IDが入力されることはなく、タイムアウトエラーが出力される(S13:YES,S18)。   Therefore, when the communication unit 110 receives the data frame with the CAN-ID of “0x03” and the CAN-ID is input to the detection unit 140, a negative determination is made in S14A. Next, when the communication unit 110 receives the data frame of the CAN-ID of “0x02”, the determination is affirmative in S14A, and since it is not the last record, the process returns to S17, and the monitoring number of the verification table 600 is updated to “3”. . Therefore, next, “0x03” is specified as the OK determination ID (S11, S12A), and in S14A, the process waits for the CAN-ID of “0x03” to be input to the detection unit 140. However, since the CAN-ID of the data frame transmitted next by the communication unit 110 is the last “0x04”, the CAN-ID of “0x03” is not input to the detection unit 140, and a timeout error is output ( S13: YES, S18).

この変形例1によれば、次の作用効果が得られる。
(1)検出部140は、監視部(図7のS17,S11,S12A,S14A,S13)と監視開始部(図7のS21)と監視終了部(図7のS22)とを含む。監視部は、監視条件テーブル500に記された第1識別子を含む通信データが通信部110により送受信されると、既定のタイムアウト時間までに監視条件テーブル500における第1識別子の次に記載された第2識別子を含む通信データが通信部110により送受信されない場合に通信の異常を検出したと判断する。監視開始部は、監視条件テーブル500に記された先頭の識別子を含む通信データが通信部110により送受信されると監視部の動作を開始させる。監視終了部は、監視条件テーブル500に記された末尾の識別子を含む通信データが通信部110により送受信されると監視部の動作を終了させる。
According to the first modification, the following operation and effect can be obtained.
(1) The detection unit 140 includes a monitoring unit (S17, S11, S12A, S14A, S13 in FIG. 7), a monitoring start unit (S21 in FIG. 7), and a monitoring end unit (S22 in FIG. 7). When communication data including the first identifier described in the monitoring condition table 500 is transmitted / received by the communication unit 110, the monitoring unit determines the second data described next to the first identifier in the monitoring condition table 500 by a predetermined timeout time. If communication data including the two identifiers is not transmitted / received by the communication unit 110, it is determined that a communication abnormality has been detected. The monitoring start unit starts the operation of the monitoring unit when communication data including the first identifier described in the monitoring condition table 500 is transmitted and received by the communication unit 110. The monitoring termination unit terminates the operation of the monitoring unit when communication data including the last identifier described in the monitoring condition table 500 is transmitted and received by the communication unit 110.

検出部140は、受信するCAN−IDかある1つのCAN−IDと一致するか否かを判断すればよく(図7のステップS14A)、第1の実施の形態のように複数のCAN−IDとの一致を判断する必要がないので、CPUの処理負荷を軽くすることができる。
なお検出部140は、実施の形態に示した手法と変形例1における方法とのいずれの方法を採用するかを選択可能であってもよい。検出部140は、処理負荷が高い点を許容し迅速に異常を検出することを重視する場合は実施の形態に示した手法を選択し、異常検出に時間を要する点を許容し処理負荷が低いことを重視する場合は変形例1に示した手法を選択する。
The detection unit 140 only needs to determine whether the received CAN-ID matches a certain CAN-ID (step S14A in FIG. 7), and a plurality of CAN-IDs as in the first embodiment. Since there is no need to judge the match, the processing load on the CPU can be reduced.
Note that the detection unit 140 may be able to select which of the method described in the embodiment and the method in the first modification is adopted. The detection unit 140 selects the method shown in the embodiment when it is important to allow a point with a high processing load and quickly detect an abnormality, and allows a point that requires a long time to detect an abnormality and has a low processing load. When importance is attached to the fact, the method shown in the first modification is selected.

(変形例2)
監視条件テーブル500の複数のレコードに、同一の順序が付与されてもよい。
図8は、複数のレコードに同一の順序が付された監視条件テーブル500の一例を示す図である。図8に示す例では、2番目と3番目のレコードに同一の「2」の順序が付されている。検出部140に「0x11」のCAN−IDが入力されると、「CD5」のフラグが成立するので、2番目と3番目のレコードが有効となる。そして「0x12」のCAN−IDが入力されると「CD6」のフラグが設定され、「0x13」のCAN−IDが入力されると「CD7」のフラグが設定される。
図8の4番目のレコードはトリガ設定が「CD6+CD7」なので、これら2つのフラグが両方とも設定されている場合に4番目のレコードが有効となる。なおこの2つのフラグはどちらが先に有効にされてもかまわない。
(Modification 2)
The same order may be assigned to a plurality of records in the monitoring condition table 500.
FIG. 8 is a diagram illustrating an example of the monitoring condition table 500 in which the same order is assigned to a plurality of records. In the example shown in FIG. 8, the same order of “2” is assigned to the second and third records. When the CAN-ID of “0x11” is input to the detection unit 140, the flag of “CD5” is established, so that the second and third records are valid. When a CAN-ID of “0x12” is input, a flag of “CD6” is set, and when a CAN-ID of “0x13” is input, a flag of “CD7” is set.
Since the trigger setting of the fourth record in FIG. 8 is “CD6 + CD7”, if both of these two flags are set, the fourth record is valid. Either of these two flags may be made valid first.

また監視条件テーブル500の複数のレコードに同一の順序が付与されている場合は、検証テーブルが付加的なフィールドを有する。
図9は、付加的なフィールドを有する検証テーブル600Aの一例を示す図である。検証テーブル600Aは、テーブル番号、成立時刻、監視番号に加えて、オプションパラメータのフィールドを有する。オプションパラメータのフィールドには、監視番号のフィールドの記載から複数のレコードが特定される場合に、成立済みのフラグを示す情報が格納される。たとえば図8に示すように同一の順序を有する2つのレコードがあり、それぞれのレコードの条件が成立するとCD2のフラグとCD3のフラグが設定される場合に、オプションパラメータのフィールドには以下の値が格納される。すなわち、いずれのフラグも設定されていない場合は「0x0000」が格納され、CD2のフラグのみが設定されると「0x0002」が格納され、さらにCD3のフラグも設定されると次のフィールドが有効になるので「0x0000」が格納される。
この変形例2によれば、通信の順序の入れ替わりを許容する柔軟な監視条件を設定することができる。
When the same order is assigned to a plurality of records in the monitoring condition table 500, the verification table has an additional field.
FIG. 9 is a diagram illustrating an example of a verification table 600A having an additional field. The verification table 600A has an option parameter field in addition to the table number, the establishment time, and the monitoring number. When a plurality of records are specified from the description of the monitoring number field, information indicating a flag that has been established is stored in the option parameter field. For example, as shown in FIG. 8, there are two records having the same order, and when the conditions of the respective records are satisfied, the flag of CD2 and the flag of CD3 are set. Is stored. That is, if none of the flags are set, “0x0000” is stored. If only the flag of CD2 is set, “0x0002” is stored. If the flag of CD3 is also set, the next field becomes valid. Therefore, “0x0000” is stored.
According to the second modification, it is possible to set a flexible monitoring condition that allows the change of the order of communication.

(変形例3)
監視条件テーブル500のトリガ条件のフィールドには、CAN−IDの値に加えてペイロードに含まれる値の条件が含まれてもよい。データフラグのペイロードには各種の値、たとえばエンジン回転数や排気ガスの温度が含まれる。それらの値はそれぞれ通常とりうる値の範囲が想定されるので、その範囲を条件としてトリガ条件のフィールドに含める。たとえばCAN−IDが「0x30」のデータフラグのペイロードにはエンジン回転数Rの情報が格納され、その値がR1からR2の間であることを条件とする場合にトリガ条件のフィールドには「CAN−ID=0x30、R1<R<R2」という情報が格納される。
(Modification 3)
The trigger condition field of the monitoring condition table 500 may include a condition of a value included in the payload in addition to the value of the CAN-ID. The payload of the data flag includes various values, for example, engine speed and exhaust gas temperature. Since a range of possible values is assumed for each of these values, the range is included in the trigger condition field as a condition. For example, in the payload of the data flag with the CAN-ID “0x30”, information on the engine speed R is stored. When the condition is that the value is between R1 and R2, the field of the trigger condition is “CAN”. -Information of ID = 0x30 and R1 <R <R2 is stored.

この変形例3によれば、次の作用効果が得られる。
(1)監視条件テーブル500には、識別子と通信データのペイロードに格納される値の条件と識別子との組み合わせも記載される。検出部140は、通信データのペイロードに格納される値が、当該通信データに含まれる識別子と組み合わせて監視条件テーブル500に記載される条件を満たさない場合に通信の異常を検出したと判断する。
そのため、ペイロードに格納された値も監視対象とすることができる。
According to the third modification, the following operation and effect can be obtained.
(1) The monitoring condition table 500 also describes combinations of identifiers and conditions of values stored in the payload of communication data and identifiers. The detecting unit 140 determines that a communication abnormality has been detected when the value stored in the payload of the communication data does not satisfy the conditions described in the monitoring condition table 500 in combination with the identifier included in the communication data.
Therefore, the value stored in the payload can also be monitored.

(変形例4)
格納部130には、複数の監視条件テーブル500が備えられてもよい。この場合、検出部140の検証テーブル600は、監視条件テーブル500と同数のレコードを有する。検出部140の動作における第1の実施の形態との相違点を図6のステップ番号ごとに説明する。
(Modification 4)
The storage unit 130 may include a plurality of monitoring condition tables 500. In this case, the verification table 600 of the detection unit 140 has the same number of records as the monitoring condition table 500. Differences in the operation of the detection unit 140 from the first embodiment will be described for each step number in FIG.

図6のステップS11およびS12では、検出部140はそれぞれの監視条件テーブル500を対象として処理を行う。ステップS13、S16、およびS18の処理は第1の実施の形態と同様である。ステップS14では、受信したIDがいずれかの監視条件テーブル500のOK判断IDと一致するか否かを判断する。いずれかの監視条件テーブル500のOK判断IDと一致すると判断する場合はステップS17に進み、いずれの監視条件テーブル500のOK判断IDとも一致しないと判断する場合はステップS15に進む。ステップS15では、受信したIDがいずれかの監視条件テーブル500のNG判断IDと一致するか否かを判断する。いずれかの監視条件テーブル500のNG判断IDと一致すると判断する場合はステップS16に進み、いずれの監視条件テーブル500のOK判断IDとも一致しないと判断する場合は図6のフローチャートを終了する。   In steps S11 and S12 of FIG. 6, the detection unit 140 performs processing on each monitoring condition table 500. The processes in steps S13, S16, and S18 are the same as in the first embodiment. In step S14, it is determined whether or not the received ID matches the OK determination ID in any of the monitoring condition tables 500. If it is determined that the ID matches the OK determination ID of any of the monitoring condition tables 500, the process proceeds to step S17. If it is determined that the ID does not match the OK determination ID of any of the monitoring condition tables 500, the process proceeds to step S15. In step S15, it is determined whether or not the received ID matches the NG determination ID in any of the monitoring condition tables 500. If it is determined that it matches the NG determination ID of any of the monitoring condition tables 500, the process proceeds to step S16, and if it is determined that it does not match the OK determination ID of any of the monitoring condition tables 500, the flowchart of FIG. 6 ends.

(変形例)
上述した第1の実施の形態をさらに以下のように変形してもよい。
(1)第1ECU100は、制御演算部160を備えなくてもよい。すなわち第1ECU100は、監視のみを行うECUでもよい。
(2)検出部140は、タイムアウトによるエラーと、受信したCAN−IDが規定されていた順番ではないためのエラーとを区別せずに出力してもよい。
(3)第1ECU100はエラーが検出された際の対応を行うフォルトモードを備え、検出部140が順序のエラーを出力した場合(図6のステップS16)に、フォルトモードを有効にしてもよい。
(Modification)
The above-described first embodiment may be further modified as follows.
(1) The first ECU 100 may not include the control calculation unit 160. That is, the first ECU 100 may be an ECU that performs only monitoring.
(2) The detection unit 140 may output the error due to the timeout without discriminating between the error due to the received CAN-ID not being in the prescribed order.
(3) The first ECU 100 may include a fault mode for responding to the detection of an error, and may enable the fault mode when the detection unit 140 outputs an error in the sequence (step S16 in FIG. 6).

(4)第4ECU400は、受信した異常の検知を示すデータフレームを蓄積し、外部から読出し可能であってもよい。この場合は、たとえばサービスマンなどが第4ECU400と通信を行い異常に関する情報を収集することができる。
(5)本発明を通信プロトコルにCAN以外を使用するネットワークに適用してもよい。たとえば通信プロトコルにFlexRayを使用するネットワークに適用してもよい。その場合は、FlexRayにおけるデータフレームIDがCANにおけるCAN−IDに相当する。
(6)格納部130に格納される監視条件の情報は、図4や図8に示したようなテーブル形式のものに限らない。また、検出部140に格納される検証のための情報も、図5や図9に示したようなテーブル形式のものに限らない。検出部140の処理において必要な情報が適切に表されていれば、格納部130や検出部140にどのような形式の情報を格納してもよい。
(4) The fourth ECU 400 may accumulate the received data frame indicating the detection of the abnormality, and may be readable from the outside. In this case, for example, a service person or the like can communicate with the fourth ECU 400 and collect information on the abnormality.
(5) The present invention may be applied to a network using a communication protocol other than CAN. For example, the present invention may be applied to a network using FlexRay as a communication protocol. In that case, the data frame ID in FlexRay corresponds to the CAN-ID in CAN.
(6) The monitoring condition information stored in the storage unit 130 is not limited to the table format as shown in FIGS. Further, the information for verification stored in the detection unit 140 is not limited to the table format as shown in FIGS. 5 and 9. Any type of information may be stored in the storage unit 130 or the detection unit 140 as long as necessary information is appropriately represented in the processing of the detection unit 140.

プログラムは第1ECU100の不図示のROMに格納されるとしたが、プログラムは格納部130に格納されていてもよい。また、第1ECU100が不図示の入出力インタフェースを備え、必要なときに入出力インタフェースと第1ECU100が利用可能な媒体を介して、他の装置からプログラムが読み込まれてもよい。ここで媒体とは、例えば入出力インタフェースに着脱可能な記憶媒体、または通信媒体、すなわち有線、無線、光などのネットワーク、または当該ネットワークを伝搬する搬送波やディジタル信号、を指す。また、プログラムにより実現される機能の一部または全部がハードウエア回路やFPGAにより実現されてもよい。
上述した実施の形態および変形例は、それぞれ組み合わせてもよい。
上記では、種々の実施の形態および変形例を説明したが、本発明はこれらの内容に限定されるものではない。本発明の技術的思想の範囲内で考えられるその他の態様も本発明の範囲内に含まれる。
Although the program is stored in the ROM (not shown) of the first ECU 100, the program may be stored in the storage unit 130. In addition, the first ECU 100 may include an input / output interface (not shown), and a program may be read from another device via a medium that can be used by the first ECU 100 when necessary. Here, the medium refers to, for example, a storage medium detachable from an input / output interface, or a communication medium, that is, a network such as a wired, wireless, or optical network, or a carrier wave or a digital signal propagating through the network. In addition, some or all of the functions realized by the program may be realized by a hardware circuit or an FPGA.
The above-described embodiments and modifications may be combined with each other.
Although various embodiments and modified examples have been described above, the present invention is not limited to these contents. Other embodiments that can be considered within the scope of the technical concept of the present invention are also included in the scope of the present invention.

2 … 車載ネットワーク
100 … 第1ECU
110 … 通信部
120 … 抽出部
130 … 格納部
140 … 検出部
150 … 出力部
500 … 監視条件テーブル
2 ... in-vehicle network 100 ... 1st ECU
110 ... communication unit 120 ... extraction unit 130 ... storage unit
140 ... detection unit 150 ... output unit 500 ... monitoring condition table

Claims (5)

通信データを送受信する演算装置であって、
前記通信データの内容を示す識別子を含む前記通信データを送受信する通信部と、
前記識別子と規定の順番とを含むレコードを複数含む監視条件が格納される格納部と、
通信の異常を検出する検出部とを備え、
前記監視条件の複数のレコードには、同一の前記定の順番がまれ、
前記検出部は、前記通信部が送受信した複数の前記通信データの通信順序と、前記監視条件に記された前記識別子の規定の順番とに基づき、通信の異常を検出し、
前記検出部は、前記識別子をそれぞれ含む複数の前記通信データが、前記規定の順番とは異なる通信順序で前記通信部に送受信された場合に通信の異常を検出したと判断する演算装置。
An arithmetic unit for transmitting and receiving communication data,
A communication unit that transmits and receives the communication data including an identifier indicating the content of the communication data,
A storage unit the identifier and the provisions of containing a plurality of records containing the sequence monitoring condition is stored,
A detection unit for detecting a communication abnormality,
Wherein the plurality of records of the monitoring conditions are the same of the provisions of the order are included,
The detection unit, based on the communication order of the plurality of communication data transmitted and received by the communication unit, based on the specified order of the identifier described in the monitoring conditions, to detect communication abnormality,
An arithmetic unit that determines that a communication abnormality has been detected when the plurality of communication data each including the identifier are transmitted and received to and from the communication unit in a communication order different from the prescribed order.
請求項1に記載の演算装置において、
前記識別子は、第1識別子と、前記規定の順番が前記第1識別子の次である第2識別子とを含み、
前記検出部は、前記第1識別子を含む前記通信データが前記通信部により送受信されると、前記第2識別子を含む前記通信データが既定のタイムアウト時間までに前記通信部により送受信されない場合に通信の異常を検出したと判断する演算装置。
The arithmetic unit according to claim 1,
The identifier includes a first identifier and a second identifier whose prescribed order is next to the first identifier,
When the communication data including the first identifier is transmitted and received by the communication unit, the detection unit performs communication when the communication data including the second identifier is not transmitted and received by the communication unit by a predetermined timeout time. An arithmetic unit that determines that an abnormality has been detected.
請求項1に記載の演算装置において、
前記検出部は、監視部と監視開始部と監視終了部とを含み、
前記識別子は、第1識別子と、前記規定の順番が前記第1識別子の次である第2識別子とを含み、
前記監視部は、前記第1識別子を含む前記通信データが前記通信部により送受信されると、前記第2識別子を含む前記通信データが既定のタイムアウト時間までに前記通信部により送受信されない場合に通信の異常を検出したと判断し、
前記監視開始部は、前記規定の順番が先頭の前記識別子を含む前記通信データが前記通信部により送受信されると前記監視部の動作を開始させ、
前記監視終了部は、前記規定の順番が末尾の前記識別子を含む前記通信データが前記通信部により送受信されると前記監視部の動作を終了させる演算装置。
The arithmetic unit according to claim 1,
The detection unit includes a monitoring unit, a monitoring start unit, and a monitoring end unit,
The identifier includes a first identifier and a second identifier whose prescribed order is next to the first identifier,
The monitoring unit is configured to, when the communication data including the first identifier is transmitted and received by the communication unit, perform communication when the communication data including the second identifier is not transmitted and received by the communication unit within a predetermined timeout period. Judging that an abnormality was detected,
The monitoring start unit starts the operation of the monitoring unit when the communication data including the identifier at the head of the prescribed order is transmitted and received by the communication unit,
The computing device, wherein the monitoring termination unit terminates the operation of the monitoring unit when the communication data including the identifier ending in the prescribed order is transmitted and received by the communication unit.
請求項1に記載の演算装置において、
前記監視条件には、前記識別子と前記通信データのペイロードに格納される値の条件との組み合わせも記載され、
前記検出部は、前記通信データのペイロードに格納される値が、当該通信データに含まれる前記識別子と組み合わせて前記監視条件に記載される前記条件を満たさない場合に通信の異常を検出したと判断する演算装置。
The arithmetic unit according to claim 1,
The monitoring condition also describes a combination of the identifier and a condition of a value stored in a payload of the communication data,
The detection unit determines that a communication abnormality has been detected when the value stored in the payload of the communication data does not satisfy the condition described in the monitoring condition in combination with the identifier included in the communication data. Arithmetic unit to do.
請求項1に記載の演算装置において、
前記通信データはCANプロトコルにしたがったデータフレームであり、
前記識別子はCAN−IDである演算装置。
The arithmetic unit according to claim 1,
The communication data is a data frame according to a CAN protocol;
The arithmetic unit, wherein the identifier is a CAN-ID.
JP2016139210A 2016-07-14 2016-07-14 Arithmetic unit Expired - Fee Related JP6674854B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016139210A JP6674854B2 (en) 2016-07-14 2016-07-14 Arithmetic unit
PCT/JP2017/024153 WO2018012322A1 (en) 2016-07-14 2017-06-30 Computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016139210A JP6674854B2 (en) 2016-07-14 2016-07-14 Arithmetic unit

Publications (2)

Publication Number Publication Date
JP2018011214A JP2018011214A (en) 2018-01-18
JP6674854B2 true JP6674854B2 (en) 2020-04-01

Family

ID=60952036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016139210A Expired - Fee Related JP6674854B2 (en) 2016-07-14 2016-07-14 Arithmetic unit

Country Status (2)

Country Link
JP (1) JP6674854B2 (en)
WO (1) WO2018012322A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7011983B2 (en) * 2018-07-11 2022-01-27 日立Astemo株式会社 Arithmetic system, arithmetic unit
CN117118776A (en) 2019-02-08 2023-11-24 松下电器(美国)知识产权公司 Abnormality determination method, abnormality determination device, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6080338A (en) * 1983-10-07 1985-05-08 Fujitsu Ltd Bus supervising circuit
JP5772666B2 (en) * 2012-03-05 2015-09-02 株式会社オートネットワーク技術研究所 Communications system

Also Published As

Publication number Publication date
JP2018011214A (en) 2018-01-18
WO2018012322A1 (en) 2018-01-18

Similar Documents

Publication Publication Date Title
JP7008100B2 (en) Fraud handling methods, fraud detection electronic control units and network communication systems
EP3358788B1 (en) Illegality detection electronic control unit, vehicle onboard network system, and communication method
WO2019193786A1 (en) Log output method, log output device, and program
US11909748B2 (en) Anti-fraud control system, monitoring device, and anti-fraud control method
JP6674854B2 (en) Arithmetic unit
EP3799364A1 (en) Communication control device, unauthorized access-detecting electronic control unit, mobility network system, communication control method, unauthorized access detection method and program
JP6342311B2 (en) CAN (Controller Area Network) communication system and error information recording apparatus
JP6433851B2 (en) Information collection system and method
US20210029103A1 (en) A control apparatus, in-vehicle communication system, communication control method and program
JP2020092379A (en) Monitoring device
JP5696685B2 (en) In-vehicle communication system, communication abnormality monitoring method for in-vehicle communication system, and communication abnormality monitoring program for in-vehicle communication system
JP7392586B2 (en) Log sending control device
JP4624443B2 (en) Network device setting method
JP6508092B2 (en) Vehicle gateway device and program
US10459816B2 (en) Communication setting notification apparatus
CN112422428B (en) Link state acquisition method and device, electronic equipment and readable storage medium
JP2009171310A (en) Communication apparatus, and fault determination method in communication apparatus
JP2019029921A (en) Transmitter, receiver, and communication method
US11349685B2 (en) Relay device
CN114301812A (en) Method, device, equipment and storage medium for monitoring message processing result
KR20180058537A (en) Method and Apparatus for Providing In-Vehicle Communication Security
JP2017216613A (en) Transfer device and transfer method
JP6497142B2 (en) Communication monitoring device, communication monitoring program, and communication monitoring method
US10862759B2 (en) Communication network determination apparatus, communication network determination method, and recording medium having communication network determination program recorded therein
JP2012182607A (en) Communication disruption determination system and communication node, and communication disruption determination method

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20170126

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20170927

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190924

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200127

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200309

R150 Certificate of patent or registration of utility model

Ref document number: 6674854

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees