JP2020048203A - Update management method, update management device, and control program - Google Patents

Update management method, update management device, and control program Download PDF

Info

Publication number
JP2020048203A
JP2020048203A JP2019204428A JP2019204428A JP2020048203A JP 2020048203 A JP2020048203 A JP 2020048203A JP 2019204428 A JP2019204428 A JP 2019204428A JP 2019204428 A JP2019204428 A JP 2019204428A JP 2020048203 A JP2020048203 A JP 2020048203A
Authority
JP
Japan
Prior art keywords
update
message
external tool
authority
ecu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019204428A
Other languages
Japanese (ja)
Other versions
JP6835935B2 (en
Inventor
芳賀 智之
Tomoyuki Haga
智之 芳賀
松島 秀樹
Hideki Matsushima
秀樹 松島
前田 学
Manabu Maeda
学 前田
勇二 海上
Yuji Kaijo
勇二 海上
安齋 潤
Jun Anzai
潤 安齋
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.)
Panasonic Intellectual Property Corp of America
Original Assignee
Panasonic Intellectual Property Corp of America
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 Panasonic Intellectual Property Corp of America filed Critical Panasonic Intellectual Property Corp of America
Publication of JP2020048203A publication Critical patent/JP2020048203A/en
Application granted granted Critical
Publication of JP6835935B2 publication Critical patent/JP6835935B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Stored Programmes (AREA)

Abstract

To provide an update management method for causing an external tool, capable of transmitting an update message to update data such as shared keys within ECUs making up an onboard network, to update shared keys and the like within the ECUs, while reducing the risk of all ECUs being unauthorizedly rewritten in a case where secret information given to the external tool is leaked.SOLUTION: An onboard network system 10 includes a master ECU that receives from an external tool 30 and verifies a public key certificate, update authority information indicating authority of the external tool. In a case that an update message instructing updating of shared keys or the like of one or multiple ECUs connected to a network has been transmitted from the external tool, if the verification of the update authority information is successful and the update authority information indicates that the transmission of the update message is within the range of authority of the external tool, the ECU transfers the update message to the network so that the ECUs update the shared keys or the like, and otherwise, the ECU does not transfer the update message in order to inhibit update by the ECUs.SELECTED DRAWING: Figure 1

Description

本発明は、車載ネットワークシステムにおける電子制御ユニットの保持するデータを更新するための更新管理方法、更新管理装置等に関する。   The present invention relates to an update management method, an update management device, and the like for updating data held by an electronic control unit in a vehicle-mounted network system.

近年、自動車の中のシステムには、電子制御ユニット(ECU:Electronic Control Unit)と呼ばれる装置が多数配置されている。これらのECUをつなぐネットワークを車載ネットワークと呼ばれる。車載ネットワークには、多数の規格が存在する。その中でもISO11898−1で規定されている、CAN(Controller Area Network)という規格が主流である。CANでは、通信路は2本のバスで構成され、バスに接続されているECUはノードと呼ばれる。バスに接続されている各ノードは、フレームと呼ばれるメッセージを送受信する。CANでは送信先や送信元を指す識別子は存在せず、送信ノードはフレーム毎にID(メッセージIDと称する)を付けて送信し(つまりバスに信号を送出し)、各受信ノードは予め定められたメッセージIDのみを受信する(つまりバスから信号を読み取る)。また、CSMA/CA(Carrier Sense Multiple Access/Collision Avoidance)方式を採用しており、複数ノードの同時送信時にはメッセージIDによる調停が行われ、メッセージIDの値が小さいフレームが優先的に送信される。また、車載ネットワークには、OBD2(On-Board Diagnostics2)と呼ばれる、外部ツール(例えば故障診断ツール等の外部装置)と通信するインタフェースであるポート(以下、「診断ポート」と称する)が存在し、ECUの診断に利用される。最近では診断だけでなく、診断ポートを利用してECUのファームウェアの書き換えも可能になっている。また、診断ポートと接続可能な外部ツールが安価に発売されており、専門業者でなく一般ユーザが使える外部ツールが増えている。   2. Description of the Related Art In recent years, a number of devices called electronic control units (ECUs) are arranged in a system in an automobile. A network connecting these ECUs is called an in-vehicle network. There are many standards for in-vehicle networks. Among them, a standard called CAN (Controller Area Network) defined by ISO11898-1 is mainstream. In CAN, a communication path is composed of two buses, and an ECU connected to the bus is called a node. Each node connected to the bus sends and receives messages called frames. In the CAN, there is no identifier indicating the transmission destination or the transmission source, and the transmitting node transmits the frame with an ID (referred to as a message ID) for each frame (that is, sends a signal to the bus), and each receiving node is determined in advance. Only the received message ID is received (that is, a signal is read from the bus). In addition, a CSMA / CA (Carrier Sense Multiple Access / Collision Avoidance) method is adopted, and arbitration based on a message ID is performed at the time of simultaneous transmission of a plurality of nodes, and a frame having a small value of the message ID is transmitted preferentially. In addition, a port (hereinafter, referred to as a “diagnosis port”), which is an interface for communicating with an external tool (for example, an external device such as a failure diagnosis tool), which is called an OBD2 (On-Board Diagnostics 2), exists in the vehicle-mounted network. Used for ECU diagnosis. In recent years, not only diagnosis but also rewriting of ECU firmware using a diagnosis port has become possible. In addition, external tools that can be connected to the diagnostic port are on the market at a low price, and the number of external tools that can be used by general users rather than specialists is increasing.

そのため、不正な外部ツールが診断ポートに接続されるリスクは高まっている。不正な外部ツールにより車載ネットワークにおけるECUのファームウェアを不正に書き換えることで、車体を不正にコントロールすることが可能になる。このように診断ポート経由で不正なファームウェアの書き換えを防止する方法として、外部ツールが送信するファームウェア更新要求メッセージに識別コードが埋め込まれており、識別コードが登録コードと一致した場合にファームウェアの更新を許可する方法が存在する(特許文献1参照)。   Thus, the risk of unauthorized external tools being connected to the diagnostic port is increasing. By illegally rewriting the firmware of the ECU in the in-vehicle network with an illegal external tool, it becomes possible to illegally control the vehicle body. As a method of preventing unauthorized rewriting of firmware via the diagnostic port, an identification code is embedded in a firmware update request message transmitted by an external tool, and when the identification code matches the registration code, the firmware is updated. There is a permission method (see Patent Document 1).

特開2013−141948号公報JP 2013-141948 A

しかしながら、特許文献1の方法には、ファームウェアを更新する外部ツールに付与されている識別コードが漏洩した場合に、全てのECUのファームウェアを不正に書き換えられてしまうリスクが存在する。   However, in the method of Patent Document 1, there is a risk that the firmware of all ECUs may be illegally rewritten when the identification code assigned to the external tool for updating the firmware is leaked.

本発明は、外部ツールに付与された機密情報が漏洩した場合に全てのECUのファームウェアが不正に書き換えられるリスクを低減して、外部ツールにファームウェア等のECU内のデータを更新させるための更新管理方法を提供する。また、本発明は、リスクを低減して外部ツールにECU内のデータを更新させるための更新管理装置、及び、この更新管理装置のための制御プログラムを提供する。   The present invention is directed to update management for reducing the risk that all ECU firmware is illegally rewritten when confidential information given to an external tool is leaked, and for allowing an external tool to update data in the ECU such as firmware. Provide a way. The present invention also provides an update management device for reducing the risk and allowing an external tool to update data in the ECU, and a control program for the update management device.

上記課題を解決するために本発明の一態様に係る更新管理方法は、車載ネットワークシステムにおける更新管理装置で実行される更新管理方法であって、前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、前記更新管理装置は、前記複数の電子ユニットのうちの1つの電子ユニットであり、前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いる共有鍵と、前記共有鍵の有効期限とを保持し、前記更新管理方法は、前記外部ツールの権限を示す更新権限情報の検証を行い、前記更新権限情報の検証が成功し、かつ、前記外部ツールから、前記共有鍵の更新を指示する更新メッセージを受信した場合に、前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定を行い、(i)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記更新メッセージを前記ネットワークに転送し、(ii)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないと判定したときには、前記転送を抑止し、現在時刻が前記有効期限内であるかどうかを判断し、前記有効期限の一定時間前、又は、前記有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する。   According to one embodiment of the present invention, there is provided an update management method executed by an update management device in an in-vehicle network system, wherein the in-vehicle network system communicates via a network. Comprising a plurality of electronic control units, an external tool is connected, the update management device is one of the plurality of electronic units, the update management device and an electronic control unit other than the update management device, Holding a shared key used for transmitting a first session key for cryptographic processing during the period, and an expiration date of the shared key, and the update management method verifies update authority information indicating the authority of the external tool. Perform, the verification of the update authority information is successful, and, from the external tool, when receiving an update message instructing the update of the shared key, It is determined whether or not the transmission of the update message by the external tool is within the authority of the external tool. (I) The transmission of the update message by the external tool is within the authority of the external tool. When the update authority information indicates that the update authority information indicates, the update authority information is transferred to the network, and (ii) the update authority information indicates that transmission of the update message by the external tool is within the authority range of the external tool. When it is determined that does not indicate, suppress the transfer, determine whether the current time is within the expiration date, a certain time before the expiration date, or, if the expiration date has passed, the Send an alert message prompting you to update the shared key.

また、上記課題を解決するために本発明の一態様に係る更新管理装置は、車載ネットワークシステムにおける更新管理装置であって、前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、前記更新管理装置は、前記複数の電子ユニットのうちの1つの電子ユニットであり、前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いられる共有鍵と、前記共有鍵の有効期限とを保持する保持部と、前記外部ツールから前記外部ツールの権限を示す更新権限情報、及び、前記共有鍵の更新を指示する更新メッセージを、受信する受信部と、前記受信部により受信された前記更新権限情報を検証する検証部と、前記検証部による検証が成功し、前記受信部により前記更新メッセージが受信された場合において、(i)前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記ネットワークに転送し、(ii)当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止する転送部と、現在時刻が前記有効期限内であるかどうかを判断する判断部と、前記有効期限の一定時間前、又は、有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する送信部とを備える。   According to another embodiment of the present invention, there is provided an update management device in an in-vehicle network system, wherein the in-vehicle network system includes a plurality of electronic control units performing communication via a network. An external tool is connected, the update management device is one of the plurality of electronic units, and encryption processing between the update management device and an electronic control unit other than the update management device is performed. A shared key used for transmitting a first session key for use, a holding unit for holding an expiration date of the shared key, update authority information indicating authority of the external tool from the external tool, and the shared key A receiving unit that receives an update message instructing the updating of the update unit, a verification unit that verifies the update authority information received by the receiving unit, When the verification by the authentication unit is successful and the update message is received by the receiving unit, (i) when the update authority information indicates that the transmission of the update message is within the authority range of the external tool, A transfer unit that transfers the update message to the network, and (ii) when the update authority information does not indicate that the transmission of the update message is within the authority range of the external tool, a transfer unit that inhibits the transfer; A determination unit that determines whether or not the expiration date is within, and a transmission unit that transmits an alert message urging the update of the shared key when a predetermined time before the expiration date, or when the expiration date has passed, Is provided.

また、上記課題を解決するために本発明の一態様に係る制御プログラムは、車載ネットワークシステムにおける更新管理装置を制御するための制御プログラムであって、前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、前記更新管理装置は、前記複数の電子制御ユニットのうちの1つの前記電子制御ユニットであり、前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いる共有鍵と、前記共有鍵の有効期限とを保持し、前記制御プログラムは、前記外部ツールの権限を示す更新権限情報の検証を行い、前記更新権限情報の検証が成功し、かつ、前記外部ツールから、前記共有鍵の更新を指示する更新メッセージを受信した場合に、前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定を行い、(i)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記更新メッセージを前記ネットワークに転送し、(ii)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないと判定したときには、前記転送を抑止し、現在時刻が前記有効期限内であるかどうかを判断し、前記有効期限の一定時間前、又は、前記有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する。   According to another embodiment of the present invention, there is provided a control program for controlling an update management device in an in-vehicle network system, wherein the in-vehicle network system communicates via a network. A plurality of electronic control units to perform, an external tool is connected, the update management device is one of the plurality of electronic control units, the electronic control unit, and other than the update management device and the update management device. Holding a shared key used for transmitting a first session key for encryption processing to and from an electronic control unit, and an expiration date of the shared key, wherein the control program has update authority information indicating authority of the external tool. And the verification of the update authority information succeeds, and the update from the external tool instructs the update of the shared key. When receiving the message, it is determined whether or not the transmission of the update message by the external tool is within the authority of the external tool. (I) The transmission of the update message by the external tool is performed by the external tool. When it is determined that the update authority information indicates that the update message is within the authority range, the update message is transferred to the network, and (ii) transmission of the update message by the external tool is within the authority range of the external tool. When it is determined that the update authority information does not indicate that the transfer is inhibited, the transfer is suppressed, and it is determined whether or not the current time is within the expiration date. If it has passed, an alert message prompting the update of the shared key is transmitted.

上記課題を解決するために本発明の一態様に係る更新管理方法は、バスを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続される車載ネットワークシステムにおいて用いられる更新管理方法であって、前記外部ツールの権限を示す更新権限情報を受信して検証し、前記外部ツールから、1つ又は複数の前記電子制御ユニットが保持するデータの更新を指示する更新メッセージが送信された場合において、前記検証が成功し、かつ、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージに対応して前記1つ又は複数の電子制御ユニットにより前記更新を実行し、前記検証が失敗したとき、又は、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記1つ又は複数の電子制御ユニットによる前記更新メッセージに対応した前記更新を抑止する更新管理方法である。   An update management method according to one aspect of the present invention for solving the above problems includes an update management method used in an in-vehicle network system including a plurality of electronic control units that communicate via a bus and to which an external tool is connected. Receiving and verifying update authority information indicating the authority of the external tool, and when the external tool transmits an update message instructing to update data held by one or more electronic control units. In the above, when the verification is successful and the update authority information indicates that the transmission of the update message is within the authority range of the external tool, the one or more electronic controls correspond to the update message. When the update is executed by the unit and the verification fails, or when the transmission of the update message is performed by the authority of the external tool. When the update permission information does not indicate that it is the update management method for inhibiting the update corresponding to the update message by said one or more electronic control units.

また、上記課題を解決するために本発明の一態様に係る更新管理装置は、バスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムにおいて診断ポートと繋がった1つの電子制御ユニットである更新管理装置であって、前記診断ポートに接続された外部ツールから前記診断ポートを介して送信される、当該外部ツールの権限を示す更新権限情報、及び、1つ又は複数の前記電子制御ユニットが保持するデータの更新を指示する更新メッセージを、受信する受信部と、前記受信部により受信された前記更新権限情報を検証する検証部と、前記受信部により前記更新メッセージが受信された場合において、前記検証部による前記検証が成功し、かつ、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記バスに転送し、前記検証部による前記検証が失敗したとき、又は、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止する転送部とを備える更新管理装置である。   Further, in order to solve the above problem, an update management device according to one embodiment of the present invention is a single electronic control unit connected to a diagnostic port in an in-vehicle network system including a plurality of electronic control units performing communication via a bus. An update management device, wherein update authority information transmitted from the external tool connected to the diagnostic port via the diagnostic port and indicating the authority of the external tool, and one or more electronic control units A receiving unit that receives an update message instructing the update of the data held, a verification unit that verifies the update authority information received by the receiving unit, and a case where the update message is received by the receiving unit. The verification by the verification unit is successful, and the transmission of the update message is within the authority of the external tool. When the update authority information indicates, the update message is transferred to the bus, and when the verification by the verification unit fails, or when the transmission of the update message is within the authority range of the external tool, the update is performed. When the authority information is not indicated, the update management device includes a transfer unit that suppresses the transfer.

また、上記課題を解決するために本発明の一態様に係る制御プログラムは、バスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムにおいて診断ポートと繋がった1つの電子制御ユニットとしての、プロセッサを有する更新管理装置に、所定の更新管理処理を実行させるための制御プログラムであって、前記更新管理処理は、前記診断ポートに接続された外部ツールから前記診断ポートを介して送信される、当該外部ツールの権限を示す更新権限情報を受信する更新権限情報受信ステップと、前記更新権限情報受信ステップにおいて受信された前記更新権限情報を検証する検証ステップと、前記外部ツールから前記診断ポートを介して送信される、1つ又は複数の前記電子制御ユニットが保持するデータの更新を指示する更新メッセージを受信する更新メッセージ受信ステップと、前記更新メッセージ受信ステップで前記更新メッセージが受信された場合において、前記検証ステップでの前記検証が成功し、かつ、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記バスに転送し、前記検証ステップでの前記検証が失敗したとき、又は、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止する転送制御ステップとを含む制御プログラムである。   Further, in order to solve the above-described problem, a control program according to one embodiment of the present invention provides a control program as one electronic control unit connected to a diagnostic port in a vehicle-mounted network system including a plurality of electronic control units communicating via a bus. A control program for causing an update management device having a processor to execute a predetermined update management process, wherein the update management process is transmitted from an external tool connected to the diagnostic port via the diagnostic port. An update authority information receiving step of receiving update authority information indicating the authority of the external tool, a verification step of verifying the update authority information received in the update authority information receiving step, and the diagnostic port from the external tool. Updates of data held by one or more of the electronic control units transmitted via Update message receiving step of receiving an update message to be indicated, and when the update message is received in the update message receiving step, the verification in the verification step is successful, and the transmission of the update message is performed by the external device. Transferring the update message to the bus when the update authority information indicates that the update authority information is within the authority range of the tool; and when the verification in the verification step fails, or when the transmission of the update message is performed by the external tool. A transfer control step of suppressing the transfer when the update right information does not indicate that the transfer is within the right range.

本発明によれば、外部ツールに付与された機密情報が漏洩した場合に全てのECUのファームウェアが不正に書き換えられるリスクを低減して、外部ツールにECU内のデータを更新させ得る。   ADVANTAGE OF THE INVENTION According to this invention, when the confidential information given to the external tool leaks, the risk of the firmware of all ECUs being rewritten illegally can be reduced and an external tool can update the data in ECU.

実施の形態1に係る車載ネットワークシステムの全体構成図である。FIG. 1 is an overall configuration diagram of an in-vehicle network system according to a first embodiment. CANプロトコルで規定されるデータフレームのフォーマットを示す図である。FIG. 3 is a diagram illustrating a format of a data frame defined by a CAN protocol. ECU及び外部ツールに関わる鍵発行システムを示す図である。FIG. 2 is a diagram illustrating a key issuing system related to an ECU and an external tool. 公開鍵証明書の構成を示す図である。FIG. 3 is a diagram illustrating a configuration of a public key certificate. 公開鍵証明書に記載された更新権限情報のレベルとECUの機能種別との対応関係を示す図である。FIG. 7 is a diagram illustrating a correspondence relationship between a level of update authority information described in a public key certificate and a function type of an ECU. ECUが保持する共有鍵を示す図である。FIG. 3 is a diagram illustrating a shared key held by an ECU. 実施の形態1に係るマスタECU(更新管理装置)の構成図である。FIG. 2 is a configuration diagram of a master ECU (update management device) according to the first embodiment. 実施の形態1に係るレベル情報を示す図である。FIG. 5 is a diagram showing level information according to the first embodiment. ECUの構成図である。FIG. 2 is a configuration diagram of an ECU. 受信IDリストを示す図である。It is a figure showing a reception ID list. 実施の形態1に係る共有鍵更新シーケンスを示す図である(図12に続く)。FIG. 13 is a diagram showing a shared key update sequence according to the first embodiment (continued from FIG. 12). 実施の形態1に係る共有鍵更新シーケンスを示す図である(図11から続く)。FIG. 12 is a diagram illustrating a shared key update sequence according to the first embodiment (continued from FIG. 11). 実施の形態2に係る車載ネットワークシステムの全体構成図である。FIG. 7 is an overall configuration diagram of an in-vehicle network system according to a second embodiment. 実施の形態2に係るレベル情報を示す図である。FIG. 14 is a diagram showing level information according to the second embodiment. 実施の形態2に係る共有鍵更新シーケンスを示す図である(図16に続く)。FIG. 17 is a diagram illustrating a shared key update sequence according to the second embodiment (continued from FIG. 16). 実施の形態2に係る共有鍵更新シーケンスを示す図である(図15から続く)。FIG. 16 is a diagram illustrating a shared key update sequence according to the second embodiment (continued from FIG. 15). 実施の形態3に係るマスタECU(更新管理装置)の構成図である。FIG. 13 is a configuration diagram of a master ECU (update management device) according to a third embodiment. 実施の形態3に係る共有鍵と有効期限等とを対応付けた情報を示す図である。FIG. 17 is a diagram showing information in which a shared key and an expiration date and the like according to the third embodiment are associated with each other. 実施の形態3に係る共有鍵の更新を促す画面の一例を示す図である。FIG. 14 is a diagram showing an example of a screen for prompting the update of a shared key according to the third embodiment. 実施の形態4に係る共有鍵更新シーケンスを示す図である(図21に続く)。FIG. 22 is a diagram illustrating a shared key update sequence according to Embodiment 4 (continued from FIG. 21). 実施の形態4に係る共有鍵更新シーケンスを示す図である(図20から続く)。FIG. 21 illustrates a shared key update sequence according to Embodiment 4 (continued from FIG. 20). 実施の形態4に係るサーバが保持するログ情報を示す図である。FIG. 14 is a diagram showing log information held by a server according to Embodiment 4.

本発明の一態様に係る更新管理方法は、車載ネットワークシステムにおける更新管理装置で実行される更新管理方法であって、前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、前記更新管理装置は、前記複数の電子ユニットのうちの1つの電子ユニットであり、前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いる共有鍵と、前記共有鍵の有効期限とを保持し、前記更新管理方法は、前記外部ツールの権限を示す更新権限情報の検証を行い、前記更新権限情報の検証が成功し、かつ、前記外部ツールから、前記共有鍵の更新を指示する更新メッセージを受信した場合に、前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定を行い、(i)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記更新メッセージを前記ネットワークに転送し、(ii)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないと判定したときには、前記転送を抑止し、現在時刻が前記有効期限内であるかどうかを判断し、前記有効期限の一定時間前、又は、前記有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する。   An update management method according to an aspect of the present invention is an update management method executed by an update management device in an in-vehicle network system, wherein the in-vehicle network system includes a plurality of electronic control units that communicate via a network. An external tool is connected, the update management device is one of the plurality of electronic units, and is used for encryption processing between the update management device and an electronic control unit other than the update management device. Holding a shared key used for transmitting the first session key and an expiration date of the shared key; the update management method verifies update authority information indicating authority of the external tool; If the verification is successful, and an update message instructing to update the shared key is received from the external tool, the external tool Determining whether the transmission of the new message is within the authority of the external tool; and (i) determining that the transmission of the update message by the external tool is within the authority of the external tool. Transfer the update message to the network, and (ii) determine that the update authority information does not indicate that the transmission of the update message by the external tool is within the authority range of the external tool. In this case, the transfer is suppressed and it is determined whether or not the current time is within the expiration date, and when the expiration date has passed, or when the expiration date has passed, the update of the shared key is performed. Send an alert message to prompt.

また、前記複数の電子制御ユニットは、Controller Area Network(CAN)プロトコルに従って通信し、前記外部ツールは、CANプロトコルに従って前記更新メッセージを送信することとしても良い。   Further, the plurality of electronic control units may communicate according to a Controller Area Network (CAN) protocol, and the external tool may transmit the update message according to a CAN protocol.

また、前記外部ツールからの前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定は、前記更新メッセージのメッセージIDに基づいて、判定し、前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記メッセージIDを有する前記更新メッセージを受信するように定められている前記電子制御ユニットに対して前記更新を実行することとしても良い。   Also, the determination as to whether the transmission of the update message from the external tool is within the authority range of the external tool is made based on the message ID of the update message. Performing the update on the electronic control unit defined to receive the update message having the message ID when it is determined that the update authority information indicates that the update authority information is within the authority range of the tool. It is good.

また、前記更新権限情報は、前記電子制御ユニットの分類用の複数の機能種別のうち1つ又は複数の機能種別を特定し、特定した当該1つ又は複数の機能種別のいずれかに分類される前記電子制御ユニットに前記更新を行わせる権限を前記外部ツールが有することを表し、前記更新メッセージのメッセージIDに基づいて、前記メッセージIDを受信するように定められている前記電子制御ユニットの機能種別が、前記更新権限情報により特定される1つ又は複数の機能種別のいずれかと一致するか否かを判別することにより、前記判定を行うこととしても良い。   The update authority information specifies one or more function types among the plurality of function types for classification of the electronic control unit, and is classified into one of the specified one or more function types. The function type of the electronic control unit, which indicates that the external tool has authority to cause the electronic control unit to perform the update, and is configured to receive the message ID based on the message ID of the update message. The determination may be made by determining whether or not one of the one or more function types specified by the update authority information matches.

また、前記更新権限情報は、1つ又は複数の前記機能種別を特定するための複数のレベルのうち1つのレベルを示し、相対的に高いレベルは、相対的に低いレベルが特定する1つ又は複数の機能種別を包含した複数の機能種別を特定することとしても良い。   Further, the update authority information indicates one level among a plurality of levels for specifying one or a plurality of the function types, and a relatively high level is one or a plurality of levels specified by a relatively low level. A plurality of function types including a plurality of function types may be specified.

また、前記車載ネットワークシステムを搭載する車両の状態が所定状態でないときには、前記更新メッセージの前記ネットワークへの転送を抑止することとしても良い。   Further, when the state of the vehicle equipped with the in-vehicle network system is not a predetermined state, the transfer of the update message to the network may be suppressed.

また、前記車載ネットワークシステムにおける各電子制御ユニットに電力を供給する電池が所定電池残量を有さないときには、前記更新メッセージの前記ネットワークへの転送を抑止することとしても良い。   Further, when a battery that supplies power to each electronic control unit in the in-vehicle network system does not have a predetermined remaining battery level, transfer of the update message to the network may be suppressed.

また、(i)前記車載ネットワークシステムを、複数の車載ネットワークシステムの中で識別する識別情報と、(ii)前記更新メッセージの処理結果を示す結果情報とを前記外部ツールに送信することとしても良い。   Further, (i) identification information for identifying the in-vehicle network system among a plurality of in-vehicle network systems, and (ii) result information indicating a processing result of the update message may be transmitted to the external tool. .

また、前記更新メッセージが指示する、前記電子制御ユニットが保持するデータの前記更新は、前記電子制御ユニットのファームウェアの更新であることとしても良い。   Further, the update of the data held by the electronic control unit indicated by the update message may be an update of the firmware of the electronic control unit.

また、前記アラートメッセージは、ディスプレイを制御する電子制御ユニットに送信することとしても良い。   Further, the alert message may be transmitted to an electronic control unit that controls a display.

また、上記課題を解決するために本発明の一態様に係る更新管理装置は、車載ネットワークシステムにおける更新管理装置であって、前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、前記更新管理装置は、前記複数の電子ユニットのうちの1つの電子ユニットであり、前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いられる共有鍵と、前記共有鍵の有効期限とを保持する保持部と、前記外部ツールから前記外部ツールの権限を示す更新権限情報、及び、前記共有鍵の更新を指示する更新メッセージを、受信する受信部と、前記受信部により受信された前記更新権限情報を検証する検証部と、前記検証部による検証が成功し、前記受信部により前記更新メッセージが受信された場合において、(i)前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記ネットワークに転送し、(ii)当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止する転送部と、現在時刻が前記有効期限内であるかどうかを判断する判断部と、前記有効期限の一定時間前、又は、有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する送信部とを備える。   According to another embodiment of the present invention, there is provided an update management device in an in-vehicle network system, wherein the in-vehicle network system includes a plurality of electronic control units performing communication via a network. An external tool is connected, the update management device is one of the plurality of electronic units, and encryption processing between the update management device and an electronic control unit other than the update management device is performed. A shared key used for transmitting a first session key for use, a holding unit for holding an expiration date of the shared key, update authority information indicating authority of the external tool from the external tool, and the shared key A receiving unit that receives an update message instructing the updating of the update unit, a verification unit that verifies the update authority information received by the receiving unit, When the verification by the authentication unit is successful and the update message is received by the receiving unit, (i) when the update authority information indicates that the transmission of the update message is within the authority range of the external tool, A transfer unit that transfers the update message to the network, and (ii) when the update authority information does not indicate that the transmission of the update message is within the authority range of the external tool, a transfer unit that inhibits the transfer; A determination unit that determines whether or not the expiration date is within, and a transmission unit that transmits an alert message urging the update of the shared key when a predetermined time before the expiration date, or when the expiration date has passed, Is provided.

また、上記課題を解決するために本発明の一態様に係る制御プログラムは、車載ネットワークシステムにおける更新管理装置を制御するための制御プログラムであって、前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、前記更新管理装置は、前記複数の電子制御ユニットのうちの1つの前記電子制御ユニットであり、前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いる共有鍵と、前記共有鍵の有効期限とを保持し、前記制御プログラムは、前記外部ツールの権限を示す更新権限情報の検証を行い、前記更新権限情報の検証が成功し、かつ、前記外部ツールから、前記共有鍵の更新を指示する更新メッセージを受信した場合に、前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定を行い、(i)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記更新メッセージを前記ネットワークに転送し、(ii)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないと判定したときには、前記転送を抑止し、現在時刻が前記有効期限内であるかどうかを判断し、前記有効期限の一定時間前、又は、前記有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する。   According to another embodiment of the present invention, there is provided a control program for controlling an update management device in an in-vehicle network system, wherein the in-vehicle network system communicates via a network. A plurality of electronic control units to perform, an external tool is connected, the update management device is one of the plurality of electronic control units, the electronic control unit, and other than the update management device and the update management device. Holding a shared key used for transmitting a first session key for encryption processing to and from an electronic control unit, and an expiration date of the shared key, wherein the control program has update authority information indicating authority of the external tool. And the verification of the update authority information succeeds, and the update from the external tool instructs the update of the shared key. When receiving the message, it is determined whether or not the transmission of the update message by the external tool is within the authority of the external tool. (I) The transmission of the update message by the external tool is performed by the external tool. When it is determined that the update authority information indicates that the update message is within the authority range, the update message is transferred to the network, and (ii) transmission of the update message by the external tool is within the authority range of the external tool. When it is determined that the update authority information does not indicate that the transfer is inhibited, the transfer is suppressed, and it is determined whether or not the current time is within the expiration date. If it has passed, an alert message prompting the update of the shared key is transmitted.

本発明の一態様に係る更新管理方法は、バスを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続される車載ネットワークシステムにおいて用いられる更新管理方法であって、前記外部ツールの権限を示す更新権限情報を受信して検証し、前記外部ツールから、1つ又は複数の前記電子制御ユニットが保持するデータの更新を指示する更新メッセージが送信された場合において、前記検証が成功し、かつ、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージに対応して前記1つ又は複数の電子制御ユニットにより前記更新を実行し、前記検証が失敗したとき、又は、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記1つ又は複数の電子制御ユニットによる前記更新メッセージに対応した前記更新を抑止する更新管理方法である。これにより、検証可能な更新権限情報により外部ツール毎に、ECU内のデータの更新を指示する更新メッセージを送信する権限を異なるように定め得る。そして、車載ネットワークシステムにおける一部のECU内のデータの更新メッセージについて送信する権限を有している外部ツールだけがその一部のECU内のデータを更新させ得る。また、その一部のECU内のデータの更新メッセージについての送信の権限を有している外部ツールについて機密情報が漏洩しても、その一部のECU以外のECUについては不正に書き換えられない。このため、車載ネットワークの全てのECUのファームウェア等が不正に書き換えられるリスクを低減して、外部ツールにECU内のデータを更新させ得る。   An update management method according to an aspect of the present invention includes a plurality of electronic control units that perform communication via a bus, and is an update management method used in an in-vehicle network system to which an external tool is connected. Upon receiving and verifying the update authority information indicating the authority, when the external tool transmits an update message instructing to update data held by one or more electronic control units, the verification is successful. And, when the update authority information indicates that the transmission of the update message is within the authority range of the external tool, the update is executed by the one or more electronic control units in response to the update message. The update right when the verification fails or that the transmission of the update message is within the authority of the external tool. When the information is not shown, an update management method for inhibiting the update corresponding to the update message by said one or more electronic control units. Thus, the authority to transmit an update message instructing to update data in the ECU can be determined differently for each external tool based on the verifiable update authority information. Then, only the external tool having the authority to transmit the update message of the data in some ECUs in the vehicle-mounted network system can update the data in some ECUs. Further, even if confidential information is leaked about an external tool that has a right to transmit a data update message in some of the ECUs, ECUs other than some of the ECUs are not illegally rewritten. For this reason, the risk that the firmware etc. of all ECUs in the in-vehicle network are illegally rewritten can be reduced, and an external tool can update data in the ECU.

また、前記複数の電子制御ユニットは、Controller Area Network(CAN)プロトコルに従って前記バスを介して通信を行い、前記外部ツールは、CANプロトコルに従って前記更新メッセージを送信することとしても良い。これにより、CANに従った車載ネットワークシステムにおいて適切に権限を有する外部ツールにECU内のデータを更新させ得る。   Further, the plurality of electronic control units may perform communication via the bus according to a Controller Area Network (CAN) protocol, and the external tool may transmit the update message according to a CAN protocol. This allows an external tool having an appropriate authority to update data in the ECU in the in-vehicle network system according to CAN.

また、前記外部ツールから前記更新メッセージが送信された場合において、当該更新メッセージのメッセージIDに基づいて、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示すか否かを判定し、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記メッセージIDを有する前記更新メッセージを受信するように定められている前記電子制御ユニットにより前記更新を実行することとしても良い。これにより、CANのフレームのID(メッセージID)により更新メッセージでの更新指示の対象となるECUか否かの区別がなされる。このため、特定の1又は複数のECUに対しての更新の権限を、他の1又は複数のECUに対しての更新の権限と区別でき、例えば更新指示の対象となるECUに応じた権限を有する適切な外部ツールに限ってその更新を許可することが可能になる。   Further, when the update message is transmitted from the external tool, whether the update authority information indicates that transmission of the update message is within the authority range of the external tool based on the message ID of the update message. It is determined to receive the update message having the message ID when it is determined that the update authority information indicates that the transmission of the update message is within the authority range of the external tool. The update may be executed by the electronic control unit. As a result, whether or not the ECU is the target of the update instruction in the update message is determined based on the CAN frame ID (message ID). For this reason, the authority to update one or more specific ECUs can be distinguished from the authority to update one or more other ECUs. The update can be permitted only for the appropriate external tools that the user has.

また、前記更新権限情報は、前記電子制御ユニットの分類用の複数の機能種別のうち1つ又は複数の機能種別を特定し、特定した当該1つ又は複数の機能種別のいずれかに分類される前記電子制御ユニットに前記更新を行わせる権限を前記外部ツールが有することを表し、前記外部ツールから前記更新メッセージが送信された場合において、当該更新メッセージのメッセージIDに基づいて、当該メッセージIDを受信するように定められている前記電子制御ユニットの機能種別が、前記更新権限情報により特定される1つ又は複数の機能種別のいずれかと一致するか否かを判別することにより、前記判定を行うこととしても良い。これにより、ECUを機能面で分類する機能種別毎に、更新の権限を区別して外部ツールに認定するような運用が可能となる。この認定は、例えば検証可能な更新権限情報の付与により行われる。   The update authority information specifies one or more function types among the plurality of function types for classification of the electronic control unit, and is classified into one of the specified one or more function types. Indicates that the external tool has the authority to make the electronic control unit perform the update, and when the update message is transmitted from the external tool, receives the message ID based on the message ID of the update message. Performing the determination by determining whether or not the function type of the electronic control unit determined to be performed matches one or more of the one or more function types specified by the update authority information. It is good. As a result, it becomes possible to perform an operation in which the authority of the update is distinguished and the external tool is recognized as an external tool for each function type that classifies the ECUs in terms of functions. This recognition is performed, for example, by providing verifiable update authority information.

また、前記更新権限情報は、1つ又は複数の前記機能種別を特定するための複数のレベルのうち1つのレベルを示し、相対的に高いレベルは、相対的に低いレベルが特定する1つ又は複数の機能種別を包含した複数の機能種別を特定することとしても良い。これにより、外部ツール毎に更新の権限のレベルを異ならせることが可能となる。例えば、低いレベルの権限を有する外部ツールについての機密情報が漏洩してもそのレベルに対応して更新可能なECUの機能種別以外のECU(つまり高いレベルの権限を有する外部ツールによって更新可能なECU)については不正に書き換えられない。   Further, the update authority information indicates one level among a plurality of levels for specifying one or a plurality of the function types, and a relatively high level is one or a plurality of levels specified by a relatively low level. A plurality of function types including a plurality of function types may be specified. This makes it possible to make the level of update authority different for each external tool. For example, even if confidential information about an external tool having a low level of authority is leaked, an ECU other than a function type of an ECU that can be updated in accordance with the level (that is, an ECU that can be updated by an external tool with a high level of authority) ) Is not illegally rewritten.

また、1つの前記電子制御ユニットである更新管理装置が、当該更新管理装置と繋がった診断ポートに接続された前記外部ツールから前記更新権限情報を受信して前記検証を行い、前記外部ツールから前記更新メッセージが送信された場合に当該更新メッセージを受信し、当該受信した場合において、前記検証が成功し、かつ、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記バスに転送し、前記検証が失敗したとき、又は、当該更新メッセージの送信が当該外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止することとしても良い。これにより、更新管理装置(マスタECU)が更新メッセージを他のECUへ転送するか否かを制御するので、他のECUは外部ツールの権限に係る検査を省略し得る。   Also, the update management device, which is one of the electronic control units, receives the update authority information from the external tool connected to a diagnostic port connected to the update management device, performs the verification, and performs the verification from the external tool. When the update message is transmitted, the update message is received, and when the update message is received, the verification is successful, and the update authority information indicates that the transmission of the update message is within the authority range of the external tool. When the indicates, transfer the update message to the bus, when the verification fails, or when the update authority information does not indicate that the transmission of the update message is within the authority range of the external tool, The transfer may be suppressed. Thereby, since the update management device (master ECU) controls whether or not to transfer the update message to another ECU, the other ECU may omit the inspection related to the authority of the external tool.

また、前記更新メッセージにセッション鍵を用いた所定暗号処理が施されていなければ当該更新メッセージに対応した前記電子制御ユニットによる前記更新を抑止し、前記更新管理装置は、前記更新権限情報の前記受信を、当該更新権限情報を記載した、前記外部ツールの公開鍵に係る公開鍵証明書の受信により行い、前記検証に成功した場合に、前記外部ツールが前記更新メッセージの送信に際して当該更新メッセージに対して所定暗号処理を施すために用いる前記セッション鍵を、前記外部ツールの公開鍵で暗号化して前記外部ツールに送信することとしても良い。これにより、外部ツールの更新の権限について公開鍵証明書を発行することで認定できる。また、公開鍵証明書における公開鍵を利用して外部ツールによる通信内容に係るセキュリティの確保を図ることが可能になる。   Further, if the update message has not been subjected to the predetermined encryption process using a session key, the update by the electronic control unit corresponding to the update message is suppressed, and the update management device receives the update authority information. The update authority information is described, by performing the reception of a public key certificate related to the public key of the external tool, if the verification is successful, the external tool transmits the update message The session key used to perform the predetermined encryption processing may be encrypted with the public key of the external tool and transmitted to the external tool. As a result, the authority to update the external tool can be certified by issuing a public key certificate. In addition, it is possible to use the public key in the public key certificate to ensure the security of the communication contents of the external tool.

また、前記更新管理装置は、前記外部ツールから前記更新メッセージが送信された場合において、前記車載ネットワークシステムを搭載する車両の状態が所定状態でないときには、前記更新メッセージの前記バスへの転送を抑止することとしても良い。これにより、所定状態として例えば停車状態、エンジンを停止した状態等を定めておくと、例えば走行に関連するECUの負荷が低下しバストラフィックが比較的少なくなる停車状態等においてECU内のデータを更新できるので、例えば更新に不具合が生じる可能性等を低減し得る。   Further, the update management device, when the update message is transmitted from the external tool, suppresses transfer of the update message to the bus when a state of the vehicle equipped with the in-vehicle network system is not a predetermined state. It is good. With this, if a predetermined state, for example, a stopped state, a state in which the engine is stopped, or the like is determined, data in the ECU is updated, for example, in a stopped state in which the load on the ECU related to traveling is reduced and bus traffic is relatively small. Therefore, for example, it is possible to reduce a possibility that a problem occurs in updating.

また、前記更新管理装置は、前記外部ツールから前記更新メッセージが送信された場合において、前記車載ネットワークシステムにおける各電子制御ユニットに電力を供給する電池が所定電池残量を有さないときには、前記更新メッセージの前記バスへの転送を抑止することとしても良い。これにより、所定電池残量として例えば電池の残量が更新に足りる程度に十分な量を定めておくと、更新中の電池切れによる不具合を防ぐことが可能となる。   Further, the update management device, when the update message is transmitted from the external tool, when the battery that supplies power to each electronic control unit in the in-vehicle network system does not have a predetermined battery remaining amount, the update management device The transfer of the message to the bus may be suppressed. Thus, if the predetermined battery remaining amount is set to a sufficient amount, for example, such that the remaining amount of the battery is sufficient for updating, it is possible to prevent a problem due to running out of the battery during updating.

また、前記更新管理装置以外の電子制御ユニットと前記更新管理装置とは、通信内容に係る暗号処理用のセッション鍵の伝達に用いるために相互間で共有する共有鍵を保持し、前記更新メッセージが指示する、前記電子制御ユニットが保持するデータの前記更新は、前記共有鍵の更新であることとしても良い。これにより、外部ツールによりマスタECUとそれ以外のECUとの間で共有する共有鍵を更新できるようになる。   Further, the electronic control unit other than the update management device and the update management device hold a shared key shared between them for use in transmitting a session key for encryption processing related to communication contents, and the update message is The instructed update of the data held by the electronic control unit may be an update of the shared key. As a result, the shared key shared between the master ECU and the other ECUs can be updated by the external tool.

また、前記共有鍵の有効期限の一定期間前に前記共有鍵の更新を促す警告情報を出力することとしても良い。これにより、共有鍵の有効期限が切れる前に、鍵更新を促すことができ、共有鍵が有効期限を過ぎて利用し続けられるリスクを低減し得る。   Further, warning information for urging the renewal of the shared key may be output a predetermined period before the expiration date of the shared key. Thus, key update can be prompted before the expiration date of the shared key expires, and the risk that the shared key can continue to be used after the expiration date can be reduced.

また、前記更新管理装置は、前記車載ネットワークシステムを、複数の車載ネットワークシステムの中で識別する識別情報と前記更新メッセージの処理結果を示す結果情報とを前記外部ツールに送信することとしても良い。これにより、外部ツール側で車両毎(つまり車載ネットワークシステム毎)におけるECU内のデータの更新結果を管理することが可能となる。   Further, the update management device may transmit, to the external tool, identification information for identifying the in-vehicle network system among a plurality of in-vehicle network systems and result information indicating a processing result of the update message. This makes it possible for the external tool to manage the result of updating data in the ECU for each vehicle (that is, for each vehicle-mounted network system).

また、前記外部ツールは、前記結果情報と前記識別情報とをサーバに送信することとしても良い。これにより、サーバにおいて車両毎におけるECU内のデータの更新結果を管理することが可能となる。   Further, the external tool may transmit the result information and the identification information to a server. This makes it possible for the server to manage the result of updating the data in the ECU for each vehicle.

また、前記更新メッセージが指示する、前記電子制御ユニットが保持するデータの前記更新は、前記電子制御ユニットのファームウェアの更新であることとしても良い。これにより、ECUのファームウェアの更新についての権限を外部ツール毎に柔軟に設定できるようになる。   Further, the update of the data held by the electronic control unit indicated by the update message may be an update of the firmware of the electronic control unit. Thus, the authority for updating the firmware of the ECU can be flexibly set for each external tool.

また、本発明の一態様に係る更新管理装置は、バスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムにおいて診断ポートと繋がった1つの電子制御ユニットである更新管理装置であって、前記診断ポートに接続された外部ツールから前記診断ポートを介して送信される、当該外部ツールの権限を示す更新権限情報、及び、1つ又は複数の前記電子制御ユニットが保持するデータの更新を指示する更新メッセージを、受信する受信部と、前記受信部により受信された前記更新権限情報を検証する検証部と、前記受信部により前記更新メッセージが受信された場合において、前記検証部による前記検証が成功し、かつ、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記バスに転送し、前記検証部による前記検証が失敗したとき、又は、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止する転送部とを備える更新管理装置である。これにより、外部ツールに付与された機密情報が漏洩した場合に全てのECU内のファームウェア等が不正に書き換えられるリスクを低減して、外部ツールにECU内のデータを更新させることが可能になる。   Further, the update management device according to one aspect of the present invention is an update management device which is one electronic control unit connected to a diagnostic port in a vehicle-mounted network system including a plurality of electronic control units communicating via a bus. Updating authority information transmitted from the external tool connected to the diagnostic port via the diagnostic port and indicating the authority of the external tool, and updating of data held by one or more of the electronic control units. A receiving unit that receives the instructed update message, a verification unit that verifies the update authority information received by the reception unit, and, when the update message is received by the reception unit, the verification by the verification unit. Is successful and the update authority information indicates that the transmission of the update message is within the authority range of the external tool. Transfer the update message to the bus, and when the verification by the verification unit fails, or when the update authority information indicates that the transmission of the update message is within the authority range of the external tool. If not, the update management device includes a transfer unit that suppresses the transfer. Thus, when the confidential information given to the external tool is leaked, the risk that the firmware and the like in all ECUs are illegally rewritten is reduced, and the external tool can update the data in the ECU.

また、本発明の一態様に係る制御プログラムは、バスを介して通信を行う複数の電子制御ユニットを備える車載ネットワークシステムにおいて診断ポートと繋がった1つの電子制御ユニットとしての、プロセッサを有する更新管理装置に、所定の更新管理処理を実行させるための制御プログラムであって、前記更新管理処理は、前記診断ポートに接続された外部ツールから前記診断ポートを介して送信される、当該外部ツールの権限を示す更新権限情報を受信する更新権限情報受信ステップと、前記更新権限情報受信ステップにおいて受信された前記更新権限情報を検証する検証ステップと、前記外部ツールから前記診断ポートを介して送信される、1つ又は複数の前記電子制御ユニットが保持するデータの更新を指示する更新メッセージを受信する更新メッセージ受信ステップと、前記更新メッセージ受信ステップで前記更新メッセージが受信された場合において、前記検証ステップでの前記検証が成功し、かつ、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記バスに転送し、前記検証ステップでの前記検証が失敗したとき、又は、当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止する転送制御ステップとを含む制御プログラムである。このプログラムを更新管理装置にインストールして、プロセッサに実行させることにより、外部ツールに付与された機密情報が漏洩した場合に全てのECU内のファームウェア等が不正に書き換えられるリスクを低減して、外部ツールにECU内のデータを更新させることが可能になる。   Further, a control program according to an aspect of the present invention provides an update management device having a processor as one electronic control unit connected to a diagnostic port in a vehicle-mounted network system including a plurality of electronic control units communicating via a bus. A control program for causing a predetermined update management process to be executed, wherein the update management process is executed by the external tool connected to the diagnostic port and transmitted through the diagnostic port. An update right information receiving step of receiving update right information indicating the update right information, a verification step of verifying the update right information received in the update right information receiving step, and an update request transmitted from the external tool via the diagnostic port. An update message instructing an update of data held by one or more of the electronic control units. Update message receiving step, and when the update message is received in the update message receiving step, the verification in the verification step is successful, and the transmission of the update message is within the authority of the external tool. When the update authority information indicates that the update message is transferred to the bus, and the verification in the verification step fails, or the transmission of the update message is within the authority range of the external tool. A transfer control step of suppressing the transfer when the update authority information does not indicate that the update right information is present. By installing this program in the update management device and causing the processor to execute the program, the risk of unauthorized rewriting of firmware and the like in all ECUs when confidential information given to an external tool is leaked is reduced. This allows the tool to update data in the ECU.

なお、これらの全般的又は具体的な態様は、システム、方法、集積回路、コンピュータプログラム又はコンピュータで読み取り可能なCD−ROM等の記録媒体で実現されても良く、システム、方法、集積回路、コンピュータプログラム又は記録媒体の任意な組み合わせで実現されても良い。   Note that these general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program or a computer-readable recording medium such as a CD-ROM, and the system, the method, the integrated circuit, and the computer. It may be realized by an arbitrary combination of a program or a recording medium.

以下、実施の形態に係る更新管理方法を用いる車載ネットワークシステムについて、図面を参照しながら説明する。ここで示す実施の形態は、いずれも本発明の一具体例を示すものである。従って、以下の実施の形態で示される数値、構成要素、構成要素の配置及び接続形態、並びに、ステップ(工程)及びステップの順序等は、一例であって本発明を限定するものではない。以下の実施の形態における構成要素のうち、独立請求項に記載されていない構成要素については、任意に付加可能な構成要素である。また、各図は、模式図であり、必ずしも厳密に図示されたものではない。   Hereinafter, an in-vehicle network system using the update management method according to the embodiment will be described with reference to the drawings. Each of the embodiments shown here is a specific example of the present invention. Therefore, the numerical values, constituent elements, arrangement and connection forms of the constituent elements, steps (processes), order of steps, and the like shown in the following embodiments are merely examples and do not limit the present invention. Among the components in the following embodiments, components not described in the independent claims are components that can be arbitrarily added. In addition, each drawing is a schematic diagram, and is not necessarily strictly illustrated.

(実施の形態1)
以下、本発明の実施の形態として、更新管理装置としてのマスタECU100を含む複数のECUがバスを介して通信する車載ネットワークシステム10において用いられる更新管理方法について、図面を用いて説明する。
(Embodiment 1)
Hereinafter, as an embodiment of the present invention, an update management method used in an in-vehicle network system 10 in which a plurality of ECUs including a master ECU 100 as an update management device communicate via a bus will be described with reference to the drawings.

更新管理方法として、本実施の形態では、車載ネットワークシステム10の診断ポートに外部ツールが接続された場合においてマスタECU100が、外部ツール30を認証して、一定条件を満たすときに限って外部ツール30にECUのデータ(ファームウェア等)の更新を許可する例を示す。   As an update management method, in the present embodiment, the master ECU 100 authenticates the external tool 30 when the external tool is connected to the diagnostic port of the in-vehicle network system 10 and authenticates the external tool 30 only when certain conditions are satisfied. Shows an example in which updating of ECU data (firmware and the like) is permitted.

[1.1 車載ネットワークシステム10の全体構成]
図1は、実施の形態1に係る車載ネットワークシステム10の全体構成を示す図である。なお、同図には車載ネットワークシステム10の他に、外部ツール30が示されている。この外部ツール30は、例えば各種ECUの製造、メンテナンスを行う事業者等により製造された、個々の各種外部ツール(例えば後述する外部ツール30a、30b)を代表して表したものである。車載ネットワークシステム10は、CANプロトコルに従って通信するネットワーク通信システムの一例であり、制御装置、センサ等の各種機器が搭載された自動車(車両)におけるネットワーク通信システムである。車載ネットワークシステム10は、CANプロトコルに従ってバスを介してフレームに係る通信を行う複数の装置(ノード)を備え、更新管理方法を用いる。具体的には図1に示すように車載ネットワークシステム10は、診断ポート600と、バス500a〜500dと、マスタECU(更新管理装置)100、ヘッドユニット200、ゲートウェイ300、各種機器に接続されたECU400a〜400f等のECUといったバスに接続された各ノードとを含んで構成される。なお、車載ネットワークシステム10には、マスタECU100及びECU400a〜400f以外にもいくつものECUが含まれ得るが、ここでは、便宜上マスタECU100及びECU400a〜400fに注目して説明を行う。ECUは、例えば、プロセッサ(マイクロプロセッサ)、メモリ等のデジタル回路、アナログ回路、通信回路等を含む装置である。メモリは、ROM、RAM等であり、プロセッサにより実行される制御プログラム(コンピュータプログラム)を記憶することができる。例えばプロセッサが、制御プログラムに従って動作することにより、ECUは各種機能を実現することになる。なお、コンピュータプログラムは、所定の機能を達成するために、プロセッサに対する指令を示す命令コードが複数個組み合わされて構成されたものである。
[1.1 Overall Configuration of In-Vehicle Network System 10]
FIG. 1 is a diagram illustrating an overall configuration of an in-vehicle network system 10 according to the first embodiment. FIG. 2 shows an external tool 30 in addition to the in-vehicle network system 10. The external tools 30 are representatively representative of various external tools (for example, external tools 30a and 30b to be described later) manufactured by, for example, a company that manufactures and maintains various ECUs. The in-vehicle network system 10 is an example of a network communication system that communicates according to a CAN protocol, and is a network communication system in an automobile (vehicle) on which various devices such as a control device and a sensor are mounted. The in-vehicle network system 10 includes a plurality of devices (nodes) that perform frame-related communication via a bus according to a CAN protocol, and uses an update management method. Specifically, as shown in FIG. 1, the in-vehicle network system 10 includes a diagnostic port 600, buses 500a to 500d, a master ECU (update management device) 100, a head unit 200, a gateway 300, and an ECU 400a connected to various devices. And each node connected to a bus such as an ECU of 400 f. Although the in-vehicle network system 10 may include any number of ECUs in addition to the master ECU 100 and the ECUs 400a to 400f, the following description focuses on the master ECU 100 and the ECUs 400a to 400f for convenience. The ECU is, for example, a device including a processor (microprocessor), a digital circuit such as a memory, an analog circuit, a communication circuit, and the like. The memory is a ROM, a RAM, or the like, and can store a control program (computer program) executed by the processor. For example, when the processor operates according to the control program, the ECU realizes various functions. Note that the computer program is configured by combining a plurality of instruction codes indicating instructions to the processor in order to achieve a predetermined function.

診断ポート600は、車載ネットワークシステム10を構成するECUのメンテナンスを行う際に外部ツール30を接続するポートであり、マスタECU100とバス500dで繋がっている。診断ポート600は、例えばOBD2に準拠したコネクタである。外部ツール30は、診断ポート600と接続することにより、車載ネットワークシステム10へとCANプロトコルに従ったフレームを送信できる。例えば、外部ツール30は、ECUのファームウェア等を更新するための更新メッセージ或いはECUの故障診断のための診断用のメッセージ等、車載ネットワークシステム10において予め定められた一定範囲のメッセージIDを含むメッセージを送信し得る。ここでは、特に、ECUのファームウェア及び共有鍵のそれぞれを更新するために予め定められている一定範囲のメッセージIDを含む更新メッセージ(つまり更新要求用のフレーム)を外部ツールが送信することに注目して説明する。   The diagnostic port 600 is a port for connecting the external tool 30 when performing maintenance of the ECU configuring the in-vehicle network system 10, and is connected to the master ECU 100 by a bus 500d. The diagnostic port 600 is, for example, a connector compliant with OBD2. The external tool 30 can transmit a frame according to the CAN protocol to the in-vehicle network system 10 by connecting to the diagnostic port 600. For example, the external tool 30 transmits a message including a message ID in a predetermined range predetermined in the in-vehicle network system 10, such as an update message for updating firmware of the ECU or a message for diagnosis for failure diagnosis of the ECU. Can send. Here, in particular, it is noted that the external tool transmits an update message (that is, an update request frame) including a predetermined range of message IDs for updating each of the ECU firmware and the shared key. Will be explained.

マスタECU100は、外部ツール30の認証を行い、外部ツール30の証明書(後述する公開鍵証明書)に記載された更新権限情報に基づいて、外部ツールからの更新メッセージに対して更新を許可するか否かに係る判定等を行う役割を有する更新管理装置としての一種のECUである。また、マスタECU100は、車載ネットワークシステム10における複数のECUのうち自装置以外の1以上のECUそれぞれとの相互間で、フレームでの通信内容に係る暗号処理用のセッション鍵の伝達に用いるための、事前に共有した同一の共有鍵を保持し、セッション鍵を各ECUに伝達する機能を有する。   The master ECU 100 authenticates the external tool 30, and permits updating of an update message from the external tool based on the update authority information described in a certificate of the external tool 30 (a public key certificate described later). This is a kind of ECU as an update management device having a role of making a determination as to whether or not the update is performed. The master ECU 100 is used to transmit a session key for encryption processing related to communication contents in a frame between each of one or more ECUs other than the own ECU among the plurality of ECUs in the in-vehicle network system 10. It has a function of holding the same shared key shared in advance and transmitting the session key to each ECU.

ECU400a〜400fは、バス500a〜500cのいずれかと接続され、それぞれエンジン310、ブレーキ320、ドア開閉センサ330、窓開閉センサ340、エアバッグ350、ヘッドユニット200に接続されている。ECU400a〜400eのそれぞれは、接続されている機器(エンジン310等)の状態を取得し、定期的に状態を表すフレームをネットワーク(つまりバス)に送信している。ヘッドユニット200は、例えば、自動車のインストルメントパネル(インパネ)等に設けられた液晶ディスプレイ(LCD:Liquid Crystal Display)等の表示装置を含み、車両の運転者への報知を行い得る。ヘッドユニット200に接続されたECU400fは、バス500cからフレームを受信して、フレームが表す各種状態を、ヘッドユニット200の表示装置に表示させる機能を有する。   The ECUs 400a to 400f are connected to any of the buses 500a to 500c, and are connected to the engine 310, the brake 320, the door open / close sensor 330, the window open / close sensor 340, the airbag 350, and the head unit 200, respectively. Each of the ECUs 400a to 400e acquires the state of a connected device (the engine 310 and the like) and periodically transmits a frame representing the state to a network (that is, a bus). The head unit 200 includes, for example, a display device such as a liquid crystal display (LCD) provided on an instrument panel (instrument panel) of an automobile or the like, and can notify a driver of the vehicle. The ECU 400f connected to the head unit 200 has a function of receiving a frame from the bus 500c and displaying various states represented by the frame on a display device of the head unit 200.

ゲートウェイ300は、ECU400a及びECU400bと繋がるバス500aと、マスタECU100及びECU400c〜400eと繋がるバス500bと、ECU400fと繋がるバス500cとに接続しており、それぞれのバスから受信したフレームを他のバスに転送する機能を有する。また受信したフレームを転送するかしないかを接続されたバス間毎に切り替えることも可能である。ゲートウェイ300は一種のECUである。   The gateway 300 is connected to a bus 500a connected to the ECU 400a and the ECU 400b, a bus 500b connected to the master ECU 100 and the ECUs 400c to 400e, and a bus 500c connected to the ECU 400f, and transfers a frame received from each bus to another bus. It has a function to do. It is also possible to switch whether the received frame is transferred or not for each connected bus. Gateway 300 is a kind of ECU.

車載ネットワークシステム10においてはCANプロトコルに従って、マスタECU400を含む各ECUがバスを介してフレームの授受を行う。CANプロトコルにおけるフレームには、データフレーム、リモートフレーム、オーバーロードフレーム及びエラーフレームがあるが、説明の便宜上、ここではデータフレームを中心に説明する。   In the in-vehicle network system 10, each ECU including the master ECU 400 exchanges frames via the bus according to the CAN protocol. Frames in the CAN protocol include a data frame, a remote frame, an overload frame, and an error frame, but for convenience of explanation, the description will focus on the data frame.

[1.2 データフレームフォーマット]
以下、CANプロトコルに従ったネットワークで用いられるフレームの1つであるデータフレームについて説明する。
[1.2 Data frame format]
Hereinafter, a data frame which is one of frames used in a network according to the CAN protocol will be described.

図2は、CANプロトコルで規定されるデータフレームのフォーマットを示す図である。同図には、CANプロトコルで規定される標準IDフォーマットにおけるデータフレームを示している。データフレームは、SOF(Start Of Frame)、IDフィールド、RTR(Remote Transmission Request)、IDE(Identifier Extension)、予約ビット「r」、DLC(Data Length Code)、データフィールド、CRC(Cyclic Redundancy Check)シーケンス、CRCデリミタ「DEL」、ACK(Acknowledgement)スロット、ACKデリミタ「DEL」、及び、EOF(End Of Frame)の各フィールドで構成される。   FIG. 2 is a diagram showing a format of a data frame defined by the CAN protocol. FIG. 1 shows a data frame in a standard ID format defined by the CAN protocol. The data frame includes an SOF (Start Of Frame), an ID field, an RTR (Remote Transmission Request), an IDE (Identifier Extension), a reserved bit “r”, a DLC (Data Length Code), a data field, and a CRC (Cyclic Redundancy Check) sequence. , CRC delimiter “DEL”, ACK (Acknowledgement) slot, ACK delimiter “DEL”, and EOF (End Of Frame) fields.

SOFは、1bitのドミナントで構成される。バスがアイドルの状態はレセシブになっており、SOFによりドミナントへ変更することでフレームの送信開始を通知する。   The SOF is composed of a 1-bit dominant. The idle state of the bus is recessive, and the start of frame transmission is notified by changing to dominant by SOF.

IDフィールドは、11bitで構成される、データの種類を示す値であるID(つまりメッセージID)を格納するフィールドである。複数のノードが同時に送信を開始した場合、このIDフィールドで通信調停を行うために、IDが小さい値を持つフレームが高い優先度となるよう設計されている。   The ID field is a field configured of 11 bits and storing an ID (that is, a message ID) that is a value indicating a type of data. When a plurality of nodes start transmission at the same time, in order to perform communication arbitration in this ID field, a frame having a small ID has a higher priority.

RTRは、データフレームとリモートフレームとを識別するための値であり、データフレームにおいてはドミナント1bitで構成される。   RTR is a value for distinguishing between a data frame and a remote frame, and a data frame is composed of one dominant bit.

IDEと「r」とは、両方ドミナント1bitで構成される。   IDE and “r” are both composed of one dominant bit.

DLCは、4bitで構成され、データフィールドの長さを示す値である。なお、IDE、「r」及びDLCを合わせてコントロールフィールドと称する。   DLC is composed of 4 bits and is a value indicating the length of the data field. In addition, IDE, "r", and DLC are collectively called a control field.

データフィールドは、最大64bitで構成される送信するデータの内容を示す値である。8bit毎に長さを調整できる。送られるデータの仕様については、CANプロトコルで規定されておらず、車載ネットワークシステム10において定められる。従って、車種、製造者(メーカ)等に依存した仕様となる。   The data field is a value indicating the content of data to be transmitted, which is composed of a maximum of 64 bits. The length can be adjusted every 8 bits. The specification of the data to be transmitted is not defined by the CAN protocol, but is defined by the vehicle-mounted network system 10. Therefore, the specifications depend on the vehicle type, the manufacturer (manufacturer), and the like.

CRCシーケンスは、15bitで構成される。SOF、IDフィールド、コントロールフィールド及びデータフィールドの送信値より算出される。   The CRC sequence is composed of 15 bits. It is calculated from the transmission values of the SOF, ID field, control field and data field.

CRCデリミタは、1bitのレセシブで構成されるCRCシーケンスの終了を表す区切り記号である。なお、CRCシーケンス及びCRCデリミタを合わせてCRCフィールドと称する。   The CRC delimiter is a delimiter indicating the end of a CRC sequence composed of 1-bit recessive. Note that the CRC sequence and the CRC delimiter are collectively referred to as a CRC field.

ACKスロットは、1bitで構成される。送信ノードはACKスロットをレセシブにして送信を行う。受信ノードはCRCシーケンスまで正常に受信ができていればACKスロットをドミナントとして送信する。レセシブよりドミナントが優先されるため、送信後にACKスロットがドミナントであれば、送信ノードは、いずれかの受信ノードが受信に成功していることを確認できる。   The ACK slot is composed of one bit. The transmitting node performs transmission by making the ACK slot recessive. The receiving node transmits the ACK slot as a dominant if the reception has been normally performed up to the CRC sequence. Since dominant is given priority over recessive, if the ACK slot is dominant after transmission, the transmitting node can confirm that any of the receiving nodes has successfully received.

ACKデリミタは、1bitのレセシブで構成されるACKの終了を表す区切り記号である。   The ACK delimiter is a delimiter that indicates the end of the ACK composed of 1-bit recessive.

EOFは、7bitのレセシブで構成されており、データフレームの終了を示す。   The EOF is composed of 7-bit recessive and indicates the end of a data frame.

[1.3 鍵発行システム]
図3は、上述したECU及び外部ツールに関わる鍵発行システムを示す図である。鍵発行機関20は、公開鍵証明書40a〜40c、秘密鍵50a〜50c、共有鍵60をメーカ21に配布する。配布された鍵や証明書は、メーカ21によって製造段階等において、外部ツール30a、30b、マスタECU100、ECU400a〜400fに書き込まれる。メーカ21は、例えばOEMメーカ(Original Equipment Manufacturer)、ECUベンダー等である。公開鍵を記載した公開鍵証明書と、秘密鍵とは、公開鍵基盤(PKI:Public Key Infrastructure)で利用され、公開鍵及び秘密鍵が、楕円暗号、RSA暗号等の鍵ペアである。この秘密鍵及び公開鍵証明書は、マスタECU100と外部ツール30a〜b間の認証に用いられる。共有鍵60は、個々の共有鍵を代表的に表している。この共有鍵60は、共通鍵暗号方式のAES(Advanced Encryption Standard)の鍵であり、マスタECU100と他の各ECUとの間で共有され、フレームに係る暗号処理用のセッション鍵の伝達に用いられる。フレームに係る暗号処理としては、フレームのデータフィールドの内容の暗号化及び復号の他に、例えば、フレームの送信側で、フレームのデータフィールドに、メッセージ認証コード(MAC:Message Authentication Code)を生成して付加して送信し、受信側ではそのMACについて検証する処理が挙げられる。このMACによりデータの改ざんの検出が可能となる。セッション鍵は、例えばMACの生成に用いられる。
[1.3 Key issuing system]
FIG. 3 is a diagram showing a key issuing system related to the ECU and the external tool described above. The key issuing organization 20 distributes the public key certificates 40a to 40c, the secret keys 50a to 50c, and the shared key 60 to the maker 21. The distributed keys and certificates are written by the manufacturer 21 in the external tools 30a and 30b, the master ECU 100, and the ECUs 400a to 400f at the manufacturing stage or the like. The maker 21 is, for example, an OEM maker (Original Equipment Manufacturer), an ECU vendor, or the like. The public key certificate describing the public key and the private key are used in a public key infrastructure (PKI), and the public key and the private key are key pairs such as elliptical encryption and RSA encryption. The secret key and the public key certificate are used for authentication between the master ECU 100 and the external tools 30a and 30b. The shared key 60 represents each shared key as a representative. The shared key 60 is an AES (Advanced Encryption Standard) key of a common key cryptosystem, is shared between the master ECU 100 and each of the other ECUs, and is used for transmitting a session key for encryption processing related to the frame. . As the encryption processing related to the frame, in addition to encryption and decryption of the content of the data field of the frame, for example, a message authentication code (MAC) is generated in the data field of the frame on the transmission side of the frame. Then, the receiving side verifies the MAC. This MAC enables detection of data tampering. The session key is used for generating a MAC, for example.

図3の例では、外部ツール30aには、公開鍵証明書40aと秘密鍵50aとが書き込まれ、外部ツール30bには、公開鍵証明書40bと秘密鍵50bとが書き込まれ、マスタECU20には公開鍵証明書40cと秘密鍵50cと共有鍵60とが書き込まれ、ECU400a〜400fには、共有鍵60が書き込まれることを示している。図3の例では、公開鍵証明書40aに記載された更新権限情報のレベルは3であり、公開鍵証明書40bに記載された更新権限情報のレベルは4である。   In the example of FIG. 3, the public key certificate 40a and the secret key 50a are written in the external tool 30a, the public key certificate 40b and the secret key 50b are written in the external tool 30b, and the master ECU 20 The public key certificate 40c, the secret key 50c, and the shared key 60 are written, indicating that the ECU 400a to 400f writes the shared key 60. In the example of FIG. 3, the level of the update authority information described in the public key certificate 40a is 3, and the level of the update authority information described in the public key certificate 40b is 4.

[1.4 公開鍵証明書]
図4は、鍵発行機関20が、外部ツール30a、30bに書き込まれるために発行つまり配布する公開鍵証明書40aの構成の一例を示す図である。公開鍵証明書40bも同様の構成を有する。
[1.4 Public key certificate]
FIG. 4 is a diagram showing an example of the configuration of a public key certificate 40a issued or distributed by the key issuing organization 20 to be written into the external tools 30a and 30b. The public key certificate 40b has a similar configuration.

同図に示すように、公開鍵証明書は、バージョン、発行者、有効期間の開始と終了、証明書識別情報(ID)、公開鍵、更新権限情報(レベル)、及びこれらに対する署名を含んで構成される。署名は、鍵発行機関20或いはポータルサーバ等の認証局により付与される。このため、マスタECU100は外部ツール30の認証を、外部ツール30から公開鍵証明書を取得して署名の検証等により、行うことができる。   As shown in the figure, the public key certificate includes a version, an issuer, start and end of a validity period, certificate identification information (ID), public key, update authority information (level), and a signature for these. Be composed. The signature is given by the key issuing organization 20 or a certificate authority such as a portal server. For this reason, the master ECU 100 can authenticate the external tool 30 by acquiring a public key certificate from the external tool 30 and verifying the signature.

公開鍵証明書中の更新権限情報は、外部ツール30(外部ツール30a、30b等)に対して、どの種別のECUについてのECU内のデータの更新を指示する更新メッセージを送信する権限が認められているかについて示す情報であり、具体的には、権限について複数段階に区分されたレベルのうち1つを示す。このため、外部ツール30について署名主体である認証局等により認定された権限のレベルが更新権限情報に示されていることになる。   According to the update authority information in the public key certificate, the authority to transmit an update message instructing the external tool 30 (the external tools 30a, 30b, etc.) to update the data in the ECU for which type of ECU is recognized. Information, specifically, one of the levels of authority divided into a plurality of levels. Therefore, the updated authority information indicates the authority level of the external tool 30 that has been authorized by the signing authority or the like.

なお、マスタECU100に書き込まれる公開鍵証明書40cは、図4に示す構成例のうち更新権限情報以外の各要素を含む。   The public key certificate 40c written in master ECU 100 includes each element other than the update authority information in the configuration example shown in FIG.

[1.5 更新権限情報]
図5は、図3の公開鍵証明書に記載された更新権限情報の内容としてのレベル(つまり権限のレベル)と、ECUの機能の分類用の複数の機能種別との対応関係の一例を示す図である。
[1.5 Update authority information]
FIG. 5 shows an example of the correspondence between the level (that is, the authority level) of the update authority information described in the public key certificate of FIG. 3 and a plurality of function types for classifying ECU functions. FIG.

まず、ECUの機能種別について説明する。駆動系機能は、エンジン、モータ、燃料、電池、トランスミッション等の制御といった車両の走行に関連する機能である。駆動系機能の機能種別には、例えば、エンジン310に関わるECU400aが該当する。シャーシ系機能は、ブレーキ、ステアリング等の「曲がる」、「止まる」等といった車両の挙動等の制御に関連する機能である。シャーシ系機能の機能種別には、例えば、ブレーキ320に関わるECU400bが該当する。ボディ系機能は、ドアロック、エアコン、ライト、ウィンカー等といった車両の装備の制御に関連する機能である。ボディ系機能の機能種別には、例えば、ドア開閉センサ330に関わるECU400c及び窓開閉センサ340に関わるECU400dが該当する。また、安全快適機能は、自動ブレーキ、車線維持機能、車間距離維持機能、衝突防止機能、エアバッグ等といった自動的に安全で快適な運転を実現するための機能である。安全快適機能の機能種別には、エアバッグ350に関わるECU400eが該当する。ITS(Intelligent Transport Systems)系機能は、ETC(Electronic Toll Collection System)等の高度道路交通システムに対応した機能である。テレマティクス系機能は、移動体通信を用いたサービスに対応する機能である。インフォテインメント系機能は、カーナビゲーション、オーディオ等に関連したエンターテインメント機能である。インフォテインメント系機能の機能種別には、例えば、ヘッドユニット200に関わるECU400fが該当する。   First, the function types of the ECU will be described. The drive system function is a function related to running of the vehicle, such as control of an engine, a motor, a fuel, a battery, a transmission, and the like. For example, the ECU 400a related to the engine 310 corresponds to the function type of the drive system function. The chassis-related functions are functions related to control of vehicle behavior such as "turning" and "stopping" of brakes and steering. The function type of the chassis-related function corresponds to, for example, the ECU 400b related to the brake 320. The body function is a function related to control of vehicle equipment such as a door lock, an air conditioner, a light, and a turn signal. For example, the ECU 400c related to the door opening / closing sensor 330 and the ECU 400d related to the window opening / closing sensor 340 correspond to the function type of the body system function. The safety and comfort function is a function for automatically realizing safe and comfortable driving, such as an automatic brake, a lane keeping function, an inter-vehicle distance keeping function, a collision prevention function, and an airbag. The ECU 400e related to the airbag 350 corresponds to the function type of the safety and comfort function. The ITS (Intelligent Transport Systems) system function is a function corresponding to an intelligent transportation system such as an ETC (Electronic Toll Collection System). The telematics function is a function corresponding to a service using mobile communication. The infotainment function is an entertainment function related to car navigation, audio, and the like. The function type of the infotainment function corresponds to, for example, the ECU 400f relating to the head unit 200.

公開鍵証明書の署名主体である認証局等に認定された、更新権限情報の内容としての権限のレベルは、図5に例示する対応関係等に基づき、上述した複数の機能種別のうち1つ又は複数の機能種別を特定する。そして、その公開鍵証明書を付与された外部ツールは、更新権限情報のレベルにより特定されるその1つ又は複数の機能種別のいずれかに分類されるECUにそのECU内のデータ(ファームウェア、共有鍵)の更新を行わせる権限を、つまりファームウェア或いは共有鍵の更新用の更新メッセージを送信する権限を、有すると認定されていることになる。   The authority level as the content of the update authority information, which is authorized by the certificate authority or the like that is the signer of the public key certificate, is one of the above-described plurality of function types based on the correspondence relationship illustrated in FIG. Alternatively, a plurality of function types are specified. Then, the external tool provided with the public key certificate sends data (firmware, shared data) in the ECU to an ECU classified into one of the one or more function types specified by the level of the update authority information. Key) is authorized to be updated, that is, it is authorized to transmit an update message for updating the firmware or the shared key.

図5の例によれば、更新権限について最も高いレベル4から最も低いレベル1の4段階のいずれかのレベルを示す更新権限情報を記載した公開鍵証明書が、個々の外部ツールに付与される(つまり書き込まれる)ことになる。個々の外部ツールは、機能、構成等がそれぞれ相違し得る。このため、例えば、外部ツールが取り扱う対象となるECUの機能種別、外部ツールの機密性、信頼性、その外部ツールを製造する事業者の信頼性その他の各種事情を勘案して個々の外部ツールに対する更新権限情報を定め得る。なお、図5は、レベルの一例を示すに過ぎず、この例と異なるように、レベルの段階数、レベルと機能種別との対応関係等を定めても良い。また、ある複数のレベル(例えばレベル4及びレベル2)のそれぞれが同じ1つの機能種別と対応するような対応関係を定めても良い。また、機能種別の分類についても図5の例と異なるように定め得る。ここでは、更新権限情報において相対的に高いレベルは、それより低いレベルが特定する1つ又は複数の機能種別を包含した複数の機能種別を特定するもの、つまり高いレベルは低いレベルの権限を包含するものとして説明する。しかし、権限のレベル間において権限の包含関係がないように、レベルと機能種別との対応関係を定めても良い。但し、外部ツールに対して認定された権限のレベルが相対的に低い場合において、車両の走行、挙動等に関連しない一部のECU内のデータの更新だけを許可してその一部以外のECU内のデータの更新をさせないことは有用である。具体的には、外部ツールについて認められた権限のレベル(つまり更新権限情報の内容であるレベル)が3であれば、その外部ツールは、レベル3以下の全てのレベル(つまりレベル1〜レベル3)それぞれに対応する機能種別に分類される各ECUに対して更新メッセージを送信してECU内のデータの更新を実行させることが許可される。   According to the example of FIG. 5, a public key certificate describing update authority information indicating any one of four levels of update authority from the highest level 4 to the lowest level 1 is given to each external tool. (That is, written). Individual external tools may differ in function, configuration, and the like. For this reason, for example, the function type of the ECU to be handled by the external tool, the confidentiality and reliability of the external tool, the reliability of the manufacturer of the external tool, and other various circumstances are taken into consideration for each external tool. Update authority information can be defined. Note that FIG. 5 merely shows an example of the level, and the number of levels, the correspondence between the level and the function type, and the like may be determined differently from this example. Further, a correspondence may be determined such that each of a plurality of levels (for example, level 4 and level 2) corresponds to the same one function type. Also, the classification of the function type may be determined differently from the example of FIG. Here, a relatively higher level in the update authority information specifies a plurality of function types including one or more function types specified by lower levels, that is, a higher level includes a lower level authority. It will be described as what is done. However, the correspondence between the level and the function type may be determined so that there is no inclusion of the authority between the authority levels. However, when the level of authority authorized for the external tool is relatively low, only the updating of data in some ECUs that are not related to the running, behavior, etc. of the vehicle is permitted, and ECUs other than those are permitted. It is useful not to let the data in the inside be updated. Specifically, if the level of the authority granted to the external tool (that is, the level that is the content of the update authority information) is 3, the external tool performs all levels below level 3 (that is, level 1 to level 3). ) It is permitted to transmit an update message to each ECU classified into the corresponding function type to execute the update of the data in the ECU.

なお、車載ネットワークシステム10においてマスタECU100は、外部ツール30が診断ポート600に接続された場合に、権限のレベルを定める更新権限情報を外部ツール30から受信しこの更新権限情報に基づいて、外部ツール30が送信する更新メッセージに対して、更新を許可するか否かに係る判定を行う。マスタECU100は、この判定において、上述したレベルと機能種別との対応関係(図5参照)に基づいて定められたレベル情報1040を参照する。レベル情報1040については、図8を用いて後に説明する。   When the external tool 30 is connected to the diagnostic port 600, the master ECU 100 in the in-vehicle network system 10 receives update authority information that determines the authority level from the external tool 30, and based on the update authority information, A determination is made as to whether or not the update is permitted for the update message transmitted by 30. In this determination, master ECU 100 refers to level information 1040 determined based on the above-described correspondence between levels and function types (see FIG. 5). The level information 1040 will be described later with reference to FIG.

[1.6 共有鍵]
図6は、マスタECU100、ECU400a〜400fが保持する共有鍵を示す図である。上述した共有鍵60は、具体的には同図に示すように、全ECUで共有される共有鍵60aと、ECU400fとマスタECU100とで共有される共有鍵60bと、ECU400c、400dとマスタECU100とで共有される共有鍵60cと、ECU400a、400bとマスタECU100とで共有される共有鍵60dと、ECU400eとマスタECU100とで共有される共有鍵60eがある。
[1.6 Shared key]
FIG. 6 is a diagram showing a shared key held by master ECU 100 and ECUs 400a to 400f. Specifically, the shared key 60 described above includes a shared key 60a shared by all ECUs, a shared key 60b shared by the ECU 400f and the master ECU 100, ECUs 400c and 400d, and the master ECU 100, as shown in FIG. , A shared key 60d shared by the ECUs 400a and 400b and the master ECU 100, and a shared key 60e shared by the ECU 400e and the master ECU 100.

[1.7 マスタECU(更新管理装置)100の構成]
図7は、マスタECU100の構成図である。マスタECU100は、送受信部101と、鍵保持部102と、判定部103と、レベル情報保持部104と、フレーム送受信部160と、フレーム解釈部150と、受信ID判断部130と、受信IDリスト保持部140と、フレーム処理部110と、フレーム生成部120とを含んで構成される。これらの各構成要素は、機能的な構成要素であり、その各機能は、マスタECU100における通信回路、メモリに格納された制御プログラムを実行するプロセッサ或いはデジタル回路等により実現される。
[1.7 Configuration of Master ECU (Update Management Device) 100]
FIG. 7 is a configuration diagram of the master ECU 100. Master ECU 100 includes transmitting / receiving section 101, key holding section 102, determining section 103, level information holding section 104, frame transmitting / receiving section 160, frame interpreting section 150, receiving ID determining section 130, and receiving ID list holding. The configuration includes a unit 140, a frame processing unit 110, and a frame generation unit 120. Each of these components is a functional component, and each function is realized by a communication circuit in master ECU 100, a processor that executes a control program stored in a memory, a digital circuit, or the like.

送受信部101は、マスタECU100と外部ツール30(外部ツール30a、30b)との認証のためにマスタECU100の公開鍵証明書40cの送信及び外部ツール30からの公開鍵証明書(公開鍵証明書40a或いは公開鍵証明書40b)を受信する。また、送受信部101は、外部ツール30から診断ポート600を介してバス500dに対して送信されるCANプロトコルに従った更新メッセージを受信し、また、更新メッセージによる更新の結果の送信を行う。   The transmission / reception unit 101 transmits the public key certificate 40c of the master ECU 100 for authentication between the master ECU 100 and the external tool 30 (the external tools 30a and 30b) and the public key certificate (the public key certificate 40a) from the external tool 30. Alternatively, the public key certificate 40b) is received. The transmission / reception unit 101 also receives an update message according to the CAN protocol transmitted from the external tool 30 to the bus 500d via the diagnostic port 600, and transmits an update result using the update message.

鍵保持部102は、マスタECU100の公開鍵証明書40c、秘密鍵50c、共有鍵60a〜60eを保持する。なお、CANプロトコルに従ったデータフレームにおけるデータへの暗号処理としてMACを付与する場合に用いるMAC鍵を鍵保持部102に保持しても良い。また、外部ツール30等との間での通信に係る暗号処理に用いるセッション鍵を鍵保持部102に保持しても良い。セッション鍵はMACの生成にも利用され得る。   The key holding unit 102 holds the public key certificate 40c, the secret key 50c, and the shared keys 60a to 60e of the master ECU 100. Note that a MAC key used when MAC is added as encryption processing to data in a data frame according to the CAN protocol may be held in the key holding unit 102. Further, a session key used for encryption processing related to communication with the external tool 30 or the like may be held in the key holding unit 102. The session key can also be used to generate a MAC.

フレーム送受信部160は、バス500bに対して、CANプロトコルに従ったフレームを送受信する。つまり、ECU400a〜400fからのフレームを受信し、ECU400a〜400fへフレームを送信する。バス500bからフレームを1bitずつ受信し、フレーム解釈部150に伝達する。また、フレーム生成部120より通知を受けたフレームの内容をバス500bに1ビットずつ送信する。   The frame transmitting / receiving unit 160 transmits / receives a frame to / from the bus 500b according to the CAN protocol. That is, frames from the ECUs 400a to 400f are received and transmitted to the ECUs 400a to 400f. The frame is received one bit at a time from the bus 500b and transmitted to the frame interpreter 150. Also, the contents of the frame notified from the frame generation unit 120 are transmitted to the bus 500b bit by bit.

フレーム解釈部150は、フレーム送受信部160よりフレームの値を受け取り、CANプロトコルで規定されているフレームフォーマットにおける各フィールドにマッピングするよう解釈を行う。フレーム解釈部150は、IDフィールドと判断した値(メッセージID)を受信ID判断部130へ転送する。受信ID判断部130から通知される判定結果に応じて、IDフィールドの値と、IDフィールド以降に現れるデータフィールドとを、フレーム処理部110へ転送するか、フレームの受信を中止する(つまりそのフレームとしての解釈を中止する)かを決定する。また、CANプロトコルに則っていないフレームと判断した場合は、エラーフレームを送信するように、フレーム生成部120へ通知する。また、フレーム解釈部150は、エラーフレームを受信した場合、つまり受け取ったフレームにおける値からエラーフレームになっていると解釈した場合には、それ以降はそのフレームを破棄する、つまりフレームの解釈を中止する。   The frame interpreting unit 150 receives the value of the frame from the frame transmitting / receiving unit 160, and interprets it so as to map it to each field in the frame format specified by the CAN protocol. The frame interpretation unit 150 transfers the value (message ID) determined as the ID field to the reception ID determination unit 130. According to the determination result notified from the reception ID determination unit 130, the value of the ID field and the data field appearing after the ID field are transferred to the frame processing unit 110 or the reception of the frame is stopped (that is, the frame is stopped). To stop the interpretation). If the frame is determined not to conform to the CAN protocol, the frame generation unit 120 is notified to transmit an error frame. When the frame interpreting unit 150 receives an error frame, that is, when it interprets that the frame is an error frame based on the value in the received frame, it discards the frame thereafter, that is, stops interpreting the frame. I do.

受信ID判断部130は、フレーム解釈部150から通知されるIDフィールドの値を受け取り、受信IDリスト保持部140が保持しているメッセージIDのリストに従い、そのIDフィールド以降のフレームの各フィールドを受信するかどうかの判定を行う。この判定結果を、受信ID判断部130は、フレーム解釈部150へ通知する。また、受信ID判断部130は、フレーム解釈部150と同様に、判定部103に対しても、メッセージIDが受信すべきフレームのものであるかどうかの判定を行って判定結果を通知する。   The reception ID determination unit 130 receives the value of the ID field notified from the frame interpretation unit 150, and receives each field of the frame after the ID field according to the message ID list held by the reception ID list holding unit 140. It is determined whether or not to do. The reception ID determination unit 130 notifies the frame interpretation unit 150 of this determination result. Further, similarly to the frame interpretation unit 150, the reception ID determination unit 130 determines whether the message ID is for a frame to be received, and notifies the determination unit 103 of the determination result.

受信IDリスト保持部140は、マスタECU100が受信するメッセージIDのリストである受信IDリストを保持する。   The reception ID list holding unit 140 holds a reception ID list, which is a list of message IDs received by the master ECU 100.

フレーム生成部120は、フレーム解釈部150から通知されたエラーフレーム送信の要求に従い、エラーフレームを構成し、エラーフレームをフレーム送受信部160へ通知して送信させる。また、判定部103よりフレームの生成の指示を受けると、データへの暗号処理(例えばセッション鍵等に対応したMACの付加等)を施してフレームを構成し、フレーム送受信部160へ通知して送信させる。   The frame generation unit 120 composes an error frame in accordance with the error frame transmission request notified from the frame interpretation unit 150, and notifies the frame transmission / reception unit 160 of the error frame to transmit. Also, when receiving a frame generation instruction from the determination unit 103, the frame is configured by performing encryption processing on the data (for example, adding a MAC corresponding to a session key or the like) and notifying the frame transmission / reception unit 160 for transmission. Let it.

判定部103は、外部ツール30から受信した、更新権限情報を含む公開鍵証明書を検証することで、外部ツール30を認証する。判定部103が外部ツール30から受信した公開鍵証明書の検証に成功すると外部ツール30の認証に成功したことになる。なお、判定部103が公開鍵証明書の検証に成功したことは更新権限情報の検証に成功したことでもある。判定部103は、送受信部101により更新メッセージが受信された場合に、更新権限情報の検証が成功しており、かつ、その更新メッセージの送信が外部ツール30の権限範囲内であることを更新権限情報が示すか否かを判定することで、更新メッセージに対応した更新を許可するか否かの判定を行う。この判定は、受信した更新メッセージのメッセージIDと受信した公開鍵証明書に記載された更新権限情報が示すレベルとが、レベル情報保持部104が保持しているレベル情報1040(後述)に照らして適切に対応したものであるか否かを判別することにより行われる。判定部103は、外部ツール30によりなされた更新メッセージの送信が外部ツール30の権限範囲内であることを更新権限情報が示すと判定した場合(つまり許可される更新メッセージであると判定した場合)には、フレーム生成部120に、他のECUへの転送用(つまりバス500bへの送出用)にその(元の)更新メッセージに対応したフレームである新たな更新メッセージを生成するよう指示する。なお、フレーム生成部120が転送用に生成する新たな更新メッセージは、元の更新メッセージとメッセージIDは同じで更新メッセージのデータフィールド内におけるデータも実質的には同じであり、データに暗号処理を施す場合においてそのデータに施された暗号処理(例えばデータに付加されたMAC)が異なるものである。フレーム生成部120で生成された更新メッセージはフレーム送受信部160によりバス500bに送出される。これにより、外部ツール30からの更新権限情報の検証が成功しており、かつ、外部ツール30からの更新メッセージが許可される更新メッセージであると判定した場合にはマスタECU100によってその更新メッセージが他のECUへと(つまりバス500bへと)転送されることになる。また、判定部103は、外部ツール30からの共有鍵の更新用の更新メッセージが許可される更新メッセージであると判定した場合には、鍵保持部102に保持されている共有鍵を更新する。   The determining unit 103 authenticates the external tool 30 by verifying the public key certificate including the update authority information received from the external tool 30. If the determination unit 103 successfully verifies the public key certificate received from the external tool 30, it means that the external tool 30 has been successfully authenticated. Note that the success of the verification of the public key certificate by the determination unit 103 also means the success of the verification of the update authority information. When the transmission / reception unit 101 receives the update message, the determination unit 103 determines that the update authority information has been successfully verified and that the transmission of the update message is within the authority range of the external tool 30. By determining whether or not the information indicates, it is determined whether or not to permit the update corresponding to the update message. In this determination, the message ID of the received update message and the level indicated by the update authority information described in the received public key certificate are compared with the level information 1040 (described later) held by the level information holding unit 104. This is performed by determining whether or not the response is appropriate. The determination unit 103 determines that the update authority information indicates that the transmission of the update message made by the external tool 30 is within the authority range of the external tool 30 (that is, determines that the update message is a permitted update message). Instructs the frame generation unit 120 to generate a new update message that is a frame corresponding to the (original) update message for transfer to another ECU (that is, for transmission to the bus 500b). Note that the new update message generated for transfer by the frame generation unit 120 has the same message ID as the original update message and the data in the data field of the update message is substantially the same. When the data is applied, the encryption processing (for example, the MAC added to the data) applied to the data is different. The update message generated by the frame generation unit 120 is transmitted to the bus 500b by the frame transmission / reception unit 160. As a result, when the verification of the update authority information from the external tool 30 is successful and the update message from the external tool 30 is determined to be an allowed update message, the (Ie, to the bus 500b). When determining that the update message for updating the shared key from the external tool 30 is a permitted update message, the determination unit 103 updates the shared key held in the key holding unit 102.

フレーム処理部110は、バス500bから受信したフレームのデータに応じて予め定められた処理を行う。フレーム処理部110は、例えば、バス500bから更新メッセージによる各ECUでの更新の結果を示すフレームを受信した場合には、その更新の結果を内容とするメッセージ(フレーム)を生成して送受信部101に診断ポート600へ繋がるバス500dへと送出させる。   The frame processing unit 110 performs a predetermined process according to the data of the frame received from the bus 500b. When, for example, receiving a frame indicating the result of the update in each ECU by the update message from the bus 500b, the frame processing unit 110 generates a message (frame) containing the result of the update and transmits and receives the message (frame). To the bus 500d connected to the diagnostic port 600.

レベル情報保持部104は、レベル情報1040を保持する。   The level information holding unit 104 holds the level information 1040.

[1.8 レベル情報]
図8は、レベル情報保持部104が保持するレベル情報1040の一例を示す図である。
[1.8 Level information]
FIG. 8 is a diagram illustrating an example of the level information 1040 held by the level information holding unit 104.

レベル情報1040は、メッセージID1041とレベル1042とを対応付けた情報であり、判定部103において外部ツール30からの更新メッセージを許可するか否かの判定に用いられる。   The level information 1040 is information that associates the message ID 1041 with the level 1042, and is used by the determination unit 103 to determine whether to allow an update message from the external tool 30.

メッセージID1041は、外部ツール30から送信され得る更新メッセージのメッセージIDを示す。ここでは、ECUが保持する共有鍵の更新用の更新メッセージについてのメッセージIDとして、「0x100」〜「0x104」が定められており、ECUのファームウェアの更新用の更新メッセージについてのメッセージIDとして、「0x200」〜「0x206」が定められているものとして説明する。   The message ID 1041 indicates a message ID of an update message that can be transmitted from the external tool 30. Here, “0x100” to “0x104” are defined as the message IDs for the update message for updating the shared key held by the ECU, and “0x100” to “0x104” are set as the message IDs for the update message for updating the firmware of the ECU. Description will be made assuming that “0x200” to “0x206” are determined.

レベル1042は、対応するメッセージIDの更新メッセージを送信するために必要な権限のレベルを示す。このレベルは、更新権限情報の内容としてのレベルと呼応している。例えば、外部ツール30の公開鍵証明書に記載された更新権限情報が示すレベルの値が、レベル1042の値と同じかこれより高い権限を示す値を示せば、そのレベル1042の値と対応付けられたメッセージID1041の更新メッセージを送信する権限を外部ツール30が有することになる。逆に、外部ツール30の公開鍵証明書に記載された更新権限情報が示すレベルの値が、レベル1042の値より低い権限を示す値であれば、そのレベル1042と対応付けられたメッセージID1041の更新メッセージを送信する権限を外部ツール30が有さないことになる。   Level 1042 indicates the level of authority required to transmit the update message of the corresponding message ID. This level corresponds to the level as the content of the update authority information. For example, if the value of the level indicated by the update authority information described in the public key certificate of the external tool 30 indicates a value indicating an authority equal to or higher than the value of the level 1042, the value is associated with the value of the level 1042. The external tool 30 has authority to transmit the update message of the received message ID 1041. Conversely, if the value of the level indicated by the update authority information described in the public key certificate of the external tool 30 is a value indicating authority lower than the value of the level 1042, the message ID 1041 associated with the level 1042 The external tool 30 does not have the authority to transmit the update message.

図8に示すメッセージID「0x100」は、マスタECU100及びECU400a〜400fが保持している共有鍵60aの更新用の更新メッセージについてのメッセージIDである。レベル情報1040において、このメッセージID「0x100」に対応するレベル1042の値は、最も高い4と設定されている。この4は、共有鍵60aの更新の対象となる各ECUの機能種別に対応するレベルのうち最も高いレベル(具体的にはECU400eの機能種別である安全快適機能に対応するレベル)の値である(図5参照)。   The message ID “0x100” illustrated in FIG. 8 is a message ID for an update message for updating the shared key 60a held by the master ECU 100 and the ECUs 400a to 400f. In the level information 1040, the value of the level 1042 corresponding to the message ID “0x100” is set to 4, which is the highest. This value 4 is the highest level (specifically, the level corresponding to the safety and comfort function that is the function type of the ECU 400e) among the levels corresponding to the function types of the ECUs for which the shared key 60a is to be updated. (See FIG. 5).

メッセージID「0x101」は、マスタECU100及びECU400eが保持している共有鍵60eの更新用の更新メッセージについてのメッセージIDである。安全快適機能を有するECU400eに対応して、レベル1042の値は、4と設定されている。   The message ID “0x101” is a message ID for an update message for updating the shared key 60e held by the master ECU 100 and the ECU 400e. The value of the level 1042 is set to 4 corresponding to the ECU 400e having the safety and comfort function.

メッセージID「0x102」は、マスタECU100及びECU400a、400bが保持している共有鍵60dの更新用の更新メッセージについてのメッセージIDである。駆動系機能を有するECU400a及びシャーシ系機能を有するECU400bに対応して、レベル1042の値は、3と設定されている。   The message ID “0x102” is a message ID for an update message for updating the shared key 60d held by the master ECU 100 and the ECUs 400a and 400b. The value of the level 1042 is set to 3 corresponding to the ECU 400a having the drive system function and the ECU 400b having the chassis system function.

メッセージID「0x103」は、マスタECU100及びECU400c、400dが保持している共有鍵60cの更新用の更新メッセージについてのメッセージIDである。ボディ系機能を有するECU400c、400dに対応して、レベル1042の値は、2と設定されている。   The message ID “0x103” is a message ID for an update message for updating the shared key 60c held by the master ECU 100 and the ECUs 400c and 400d. The value of the level 1042 is set to 2 corresponding to the ECUs 400c and 400d having the body function.

メッセージID「0x104」は、マスタECU100及びECU400fが保持している共有鍵60bの更新用の更新メッセージについてのメッセージIDである。インフォテインメント系機能を有するECU400fに対応して、レベル1042の値は、1と設定されている。   The message ID “0x104” is a message ID for an update message for updating the shared key 60b held by the master ECU 100 and the ECU 400f. The value of the level 1042 is set to 1 corresponding to the ECU 400f having the infotainment function.

メッセージID「0x200」は、マスタECU100のファームウェアの更新用の更新メッセージについてのメッセージIDである。このメッセージIDに対応するレベル1042の値は、マスタECU100を特別に扱って、最高レベルの4と設定されている。   The message ID “0x200” is a message ID for an update message for updating the firmware of the master ECU 100. The value of the level 1042 corresponding to this message ID is set to the highest level of 4 by specially treating the master ECU 100.

メッセージID「0x201」は、ECU400eのファームウェアの更新用の更新メッセージについてのメッセージIDである。このメッセージIDに対応するレベル1042の値は、安全快適機能を有するECU400eに対応して、4と設定されている。   The message ID “0x201” is a message ID for an update message for updating the firmware of the ECU 400e. The value of the level 1042 corresponding to the message ID is set to 4 corresponding to the ECU 400e having the safety and comfort function.

メッセージID「0x202」は、ECU400bのファームウェアの更新用の更新メッセージについてのメッセージIDである。このメッセージIDに対応するレベル1042の値は、シャーシ系機能を有するECU400bに対応して、3と設定されている。   The message ID “0x202” is a message ID for an update message for updating the firmware of the ECU 400b. The value of the level 1042 corresponding to the message ID is set to 3 corresponding to the ECU 400b having the chassis function.

メッセージID「0x203」は、ECU400aのファームウェアの更新用の更新メッセージについてのメッセージIDである。このメッセージIDに対応するレベル1042の値は、駆動系機能を有するECU400aに対応して、3と設定されている。   The message ID “0x203” is a message ID for an update message for updating the firmware of the ECU 400a. The value of the level 1042 corresponding to the message ID is set to 3 corresponding to the ECU 400a having the drive system function.

メッセージID「0x204」は、ECU400cのファームウェアの更新用の更新メッセージについてのメッセージIDである。このメッセージIDに対応するレベル1042の値は、ボディ系機能を有するECU400cに対応して、2と設定されている。   The message ID “0x204” is a message ID for an update message for updating the firmware of the ECU 400c. The value of the level 1042 corresponding to the message ID is set to 2 corresponding to the ECU 400c having the body function.

メッセージID「0x205」は、ECU400dのファームウェアの更新用の更新メッセージについてのメッセージIDである。このメッセージIDに対応するレベル1042の値は、ボディ系機能を有するECU400dに対応して、2と設定されている。   The message ID “0x205” is a message ID for an update message for updating the firmware of the ECU 400d. The value of the level 1042 corresponding to the message ID is set to 2 corresponding to the ECU 400d having the body function.

メッセージID「0x206」は、ECU400fのファームウェアの更新用の更新メッセージについてのメッセージIDである。このメッセージIDに対応するレベル1042の値は、インフォテインメント系機能を有するECU400fに対応して、1と設定されている。   The message ID “0x206” is a message ID for an update message for updating the firmware of the ECU 400f. The value of the level 1042 corresponding to the message ID is set to 1 corresponding to the ECU 400f having the infotainment function.

[1.9 ECU400aの構成]
図9は、ECU400aの構成図である。ECU400aは、鍵保持部402と、フレーム送受信部460と、フレーム解釈部450と、受信ID判断部430と、受信IDリスト保持部440と、フレーム処理部410と、フレーム生成部420と、データ取得部470とを含んで構成される。これらの各構成要素は、機能的な構成要素であり、その各機能は、ECU400aにおける通信回路、メモリに格納された制御プログラムを実行するプロセッサ或いはデジタル回路等により実現される。なお、ECU400b〜400fも、ECU400aと基本的に同様の構成を備える。
[1.9 Configuration of ECU 400a]
FIG. 9 is a configuration diagram of the ECU 400a. The ECU 400a includes a key storage unit 402, a frame transmission / reception unit 460, a frame interpretation unit 450, a reception ID determination unit 430, a reception ID list storage unit 440, a frame processing unit 410, a frame generation unit 420, and a data acquisition unit. 470. Each of these components is a functional component, and each function is implemented by a communication circuit in the ECU 400a, a processor or a digital circuit that executes a control program stored in a memory, or the like. The ECUs 400b to 400f have basically the same configuration as the ECU 400a.

鍵保持部402は、図6に示した共有鍵を保持する。即ちECU400aの鍵保持部402は、共有鍵60a、60dを保持する。CANプロトコルに従ったデータフレームにおけるデータへの暗号処理としてMACを付与する場合に用いるMAC鍵を鍵保持部402に保持しても良い。また、他のECU等との間での通信に係る暗号処理に用いるセッション鍵を鍵保持部402に保持しても良い。セッション鍵はMACの生成にも利用され得る。   The key holding unit 402 holds the shared key shown in FIG. That is, the key holding unit 402 of the ECU 400a holds the shared keys 60a and 60d. A MAC key used when MAC is added as encryption processing to data in a data frame according to the CAN protocol may be held in the key holding unit 402. Further, a session key used for encryption processing related to communication with another ECU or the like may be stored in the key storage unit 402. The session key can also be used to generate a MAC.

フレーム送受信部460は、バス500aに対して、CANのプロトコルに従ったフレームを送受信する。バス500aからフレームを1bitずつ受信し、フレーム解釈部450に転送する。また、フレーム生成部420より通知を受けたフレームの内容をバス500aに送信する。   The frame transmission / reception unit 460 transmits / receives a frame to / from the bus 500a according to the CAN protocol. The frame is received one bit at a time from the bus 500 a and transferred to the frame interpreter 450. Further, the contents of the frame notified from the frame generation unit 420 are transmitted to the bus 500a.

フレーム解釈部450は、フレーム送受信部460よりフレームの値を受け取り、CANプロトコルにおける各フィールドにマッピングするよう解釈を行う。IDフィールドと判断した値は受信ID判断部430へ転送する。受信ID判断部430から通知される判定結果に応じて、IDフィールドの値(メッセージID)と、IDフィールド以降に現れるデータフィールドとを、フレーム処理部410へ転送するか、その判定結果を受けた以降においてフレームの受信を中止する(つまりそのフレームとしての解釈を中止する)かを決定する。また、CANプロトコルに則っていないフレームと判断した場合は、エラーフレームを送信するように、フレーム生成部420へ通知する。また、フレーム解釈部450は、エラーフレームを受信した場合、つまり受け取ったフレームにおける値からエラーフレームになっていると解釈した場合には、それ以降はそのフレームを破棄する、つまりフレームの解釈を中止する。   The frame interpreting section 450 receives the value of the frame from the frame transmitting / receiving section 460 and interprets it so as to map it to each field in the CAN protocol. The value determined as the ID field is transferred to the reception ID determination unit 430. According to the determination result notified from the reception ID determination unit 430, the value of the ID field (message ID) and the data field appearing after the ID field are transferred to the frame processing unit 410 or the determination result is received. Thereafter, it is determined whether the reception of the frame is stopped (that is, the interpretation as the frame is stopped). If the frame is determined not to conform to the CAN protocol, the frame generation unit 420 is notified to transmit an error frame. When an error frame is received, that is, when the frame interpreting unit 450 interprets that the value is an error frame based on the value in the received frame, the frame interpreting unit 450 discards the frame thereafter, that is, stops interpreting the frame. I do.

受信ID判断部430は、フレーム解釈部450から通知されるIDフィールドの値を受け取り、受信IDリスト保持部440が保持しているメッセージIDのリストに従い、そのIDフィールド以降のフレームの各フィールドを受信するかどうかの判定を行う。この判定結果を、受信ID判断部430は、フレーム解釈部450へ通知する。   The reception ID determination unit 430 receives the value of the ID field notified from the frame interpretation unit 450, and receives each field of the frame after the ID field according to the message ID list held by the reception ID list holding unit 440. It is determined whether or not to do. The reception ID determination unit 430 notifies the frame interpretation unit 450 of this determination result.

受信IDリスト保持部440は、ECU400aが受信するメッセージIDのリストである受信IDリスト(図10参照)を保持する。   The reception ID list holding unit 440 holds a reception ID list (see FIG. 10), which is a list of message IDs received by the ECU 400a.

フレーム処理部410は、受信したフレームのデータに応じてECU毎に異なる機能に係る処理を行う。例えば、エンジン310に接続されたECU400aは、エンジン310の回転速度と他のECUから受信したフレームのデータが示す車両の一部の状態との関係に応じて、予め定められた制御を行い得る。   The frame processing unit 410 performs a process related to a different function for each ECU according to the received frame data. For example, ECU 400a connected to engine 310 may perform predetermined control in accordance with the relationship between the rotational speed of engine 310 and the state of a part of the vehicle indicated by frame data received from another ECU.

データ取得部470は、ECUに繋がっている機器、センサの状態を示すデータを取得し、フレーム生成部420に通知する。   The data acquisition unit 470 acquires data indicating the state of the devices and sensors connected to the ECU, and notifies the frame generation unit 420 of the data.

フレーム生成部420は、フレーム解釈部450から通知されたエラーフレーム送信の要求に従い、エラーフレームを構成し、エラーフレームをフレーム送受信部460へ通知して送信させる。また、フレーム生成部420は、データ取得部470より通知されたデータに基づいて定めたデータフィールドの値に、予め定められたメッセージIDをつけてデータフレームを構成し、フレーム送受信部460へ通知して送信させる。なお、フレーム生成部420は、データフィールドの値に、MAC鍵或いはセッション鍵を用いて生成したMACを付加し得る。   The frame generation unit 420 composes an error frame in accordance with the error frame transmission request notified from the frame interpretation unit 450, and notifies the frame transmission / reception unit 460 of the error frame to transmit. Further, the frame generation unit 420 configures a data frame by adding a predetermined message ID to the value of the data field determined based on the data notified from the data acquisition unit 470, and notifies the frame transmission / reception unit 460 of the data frame. To send. Note that the frame generation unit 420 can add the MAC generated using the MAC key or the session key to the value of the data field.

[1.10 受信IDリスト]
図10は、ECU400aの受信IDリスト保持部440が保持する受信IDリスト900の一例を示す。
[1.10 Receive ID list]
FIG. 10 shows an example of the reception ID list 900 held by the reception ID list holding section 440 of the ECU 400a.

図10の例は、ECU400aが、メッセージID「0x102」が付された共有鍵の更新用の更新メッセージ、メッセージID「0x203」が付されたファームウェアの更新用の更新メッセージ等を受信することを示している。ECU400aが受信するメッセージ(フレーム)のメッセージIDは、「0x102」、「0x203」に限られないが、図10の例では特に更新メッセージのメッセージIDに注目して表している。   The example of FIG. 10 shows that the ECU 400a receives an update message for updating the shared key with the message ID “0x102”, an update message for updating the firmware with the message ID “0x203”, and the like. ing. The message ID of the message (frame) received by the ECU 400a is not limited to “0x102” and “0x203”, but in the example of FIG. 10, the message ID of the update message is particularly noted.

なお、マスタECU100の受信IDリスト保持部140が保持する受信IDリストも、受信IDリスト900と同様に、マスタECU100が受信可能なメッセージのメッセージIDを列挙した構成である。   Note that, similarly to the reception ID list 900, the reception ID list held by the reception ID list holding unit 140 of the master ECU 100 has a configuration in which message IDs of messages that can be received by the master ECU 100 are listed.

[1.11 共有鍵更新シーケンス]
以下、更新管理方法の一例として、外部ツール30aを診断ポート600に接続して、外部ツール30aから車載ネットワークシステム10におけるECUが保持する共有鍵を更新させる場合の動作(共有鍵更新シーケンス)について、図11及び図12を用いて説明する。
[1.11 Shared key update sequence]
Hereinafter, as an example of the update management method, an operation (shared key update sequence) when the external tool 30a is connected to the diagnostic port 600 and the external tool 30a updates the shared key held by the ECU in the vehicle-mounted network system 10 will be described. This will be described with reference to FIGS.

図11及び図12は、外部ツール30aとマスタECU100とECU400aとの間で行われる共有鍵更新シーケンスの一例を示す図である。ここでは、便宜上、外部ツール30の1つとしての外部ツール30a、及び、ECU400a〜400fのうちの1つであるECU400aに注目して説明する。また、駆動系機能及びシャーシ系機能を有する各ECUが保持する共有鍵を更新するために外部ツール30aが用いられる場面を想定して説明する。具体的には、駆動系機能を有するECU400a及びシャーシ系機能を有するECU400bのそれぞれが保持する共有鍵60dの更新のためのメッセージID「0x102」が付された更新メッセージが外部ツール30aから車載ネットワークシステム10へと送信されることになる。ECU400bの動作は、ECU400aの動作と同様であるため、ここでは説明を省略する。   11 and 12 are diagrams illustrating an example of a shared key update sequence performed between the external tool 30a, the master ECU 100, and the ECU 400a. Here, for convenience, the description will focus on the external tool 30a as one of the external tools 30 and the ECU 400a which is one of the ECUs 400a to 400f. Further, the description will be made on the assumption that the external tool 30a is used to update the shared key held by each ECU having the drive system function and the chassis system function. Specifically, an update message to which a message ID “0x102” for updating the shared key 60d held by each of the ECU 400a having the drive system function and the ECU 400b having the chassis system function is transmitted from the external tool 30a to the in-vehicle network system. 10 will be sent. The operation of the ECU 400b is the same as the operation of the ECU 400a, and the description is omitted here.

まず、マスタECU100にバス500dで繋がった診断ポート600に外部ツール30aが物理的に接続された状態で、外部ツール30aが、証明書(つまり外部ツール30aが保持する公開鍵証明書40a)をバス500dに送出することで、ECU100に対して通信接続のために認証要求を送信する(ステップS1001)。なお、外部ツール30aは、例えば、利用者の操作等に応じて車載ネットワークシステム10のECU内のデータ(共有鍵、ファームウェア)の更新用の更新メッセージを送信し得る。但し、更新メッセージによって更新が実現されるためには更新メッセージの送信に先行して、例えば利用者の操作等に応じて、認証要求(証明書)を送信する必要がある。   First, in a state where the external tool 30a is physically connected to the diagnostic port 600 connected to the master ECU 100 via the bus 500d, the external tool 30a transmits the certificate (that is, the public key certificate 40a held by the external tool 30a) to the bus. By transmitting the authentication request to the ECU 500, an authentication request is transmitted to the ECU 100 for communication connection (step S1001). The external tool 30a can transmit an update message for updating data (shared key, firmware) in the ECU of the in-vehicle network system 10 according to, for example, a user operation. However, in order for the update to be realized by the update message, it is necessary to transmit an authentication request (certificate) prior to the transmission of the update message, for example, in response to a user operation or the like.

マスタECU100の送受信部101が公開鍵証明書40aを受信して、判定部103において、公開鍵証明書40aを検証する(ステップS1002)。公開鍵証明書40aの検証については、例えば、認証局による署名を検証し、更に、チャレンジレスポンス(CR)認証方式で公開鍵証明書40aに記載された公開鍵と対応する秘密鍵を外部ツール30aが保持しているかについて確認する。CR認証方式では、例えば、マスタECU100は、乱数を外部ツール30aに送信し、外部ツール30aが乱数を秘密鍵で暗号化した結果である暗号化乱数をマスタECU100に返信すると、マスタECUは、公開鍵証明書40a内の公開鍵で暗号化乱数を復号し、最初に送信した乱数と等しいかを確認する。ステップS1002における検証に失敗すれば、マスタECU100は、エラー処理を行う(ステップS1003)。ステップS1003でのエラー処理により、外部ツール30aからの通信接続が認められなくなり、外部ツール30aは例えば更新メッセージを送信してECUのデータを更新することができなくなる。なお、マスタECU100は、エラー処理として外部ツール30aにエラーの旨のレスポンスを返しても良いし、返さなくても良い。   The transmitting / receiving unit 101 of the master ECU 100 receives the public key certificate 40a, and the determining unit 103 verifies the public key certificate 40a (step S1002). For verification of the public key certificate 40a, for example, a signature by a certificate authority is verified, and a private key corresponding to the public key described in the public key certificate 40a is challenged by a challenge response (CR) authentication method. Check if is retained. In the CR authentication method, for example, when the master ECU 100 transmits a random number to the external tool 30a and returns the encrypted random number, which is a result of encrypting the random number with the secret key, to the master ECU 100, the master ECU releases The encrypted random number is decrypted with the public key in the key certificate 40a, and it is confirmed whether the decrypted random number is equal to the first transmitted random number. If the verification in step S1002 fails, master ECU 100 performs error processing (step S1003). Due to the error processing in step S1003, communication connection from the external tool 30a is not recognized, and the external tool 30a cannot update the ECU data by transmitting, for example, an update message. The master ECU 100 may or may not return a response to the external tool 30a indicating an error as an error process.

ステップS1002における検証に成功すれば、マスタECU100は、外部ツール30aとの通信において暗号処理を実施するために用いるセッション鍵を、乱数を用いて生成する(ステップS1004)。例えば、更新メッセージ内のデータを暗号化する場合においては、セッション鍵は暗号化のための鍵として用いられ、また、更新メッセージ内のデータにMACを付加する場合には、セッション鍵はMACを生成するための鍵として用いられる。   If the verification in step S1002 succeeds, master ECU 100 generates a session key used for performing encryption processing in communication with external tool 30a using a random number (step S1004). For example, when encrypting data in an update message, the session key is used as a key for encryption, and when adding a MAC to the data in the update message, the session key generates a MAC. Used as a key to

ステップS1004に続いて、マスタECU100の送受信部101は、セッション鍵を外部ツール30aの公開鍵で暗号化して、暗号化の結果である暗号化セッション鍵と、マスタECU100の公開鍵証明書40cとを外部ツール30aへと送信する(ステップS1005)。   Subsequent to step S1004, the transmission / reception unit 101 of the master ECU 100 encrypts the session key with the public key of the external tool 30a, and transmits the encrypted session key that is the result of the encryption and the public key certificate 40c of the master ECU 100. The data is transmitted to the external tool 30a (step S1005).

外部ツール30aでは、マスタECU100の公開鍵証明書40cの検証を行う(ステップS1006)。検証に失敗すれば、エラー処理を行う(ステップS1007)。また、検証に成功すれば、外部ツール30aは、ステップS1004においてマスタECU100から送信されて受信した暗号化セッション鍵を、外部ツール30aの保持する秘密鍵で復号して、セッション鍵を取得する(ステップS1008)。   The external tool 30a verifies the public key certificate 40c of the master ECU 100 (step S1006). If the verification fails, error processing is performed (step S1007). If the verification is successful, the external tool 30a obtains the session key by decrypting the encrypted session key transmitted and received from the master ECU 100 in step S1004 with the secret key held by the external tool 30a (step S1004). S1008).

ステップS1008の次に、外部ツール30aは、メッセージID「0x102」が付された、共有鍵60dの更新用の更新メッセージを生成し、セッション鍵を用いて更新メッセージに暗号処理を実施する(ステップS1009)。更新メッセージへの暗号処理の例としては、データフィールドに、例えば共有鍵60dの更新に必要なデータ(例えばECU400aにおいて鍵付きハッシュ関数等により更新を行うこととした場合においてはその鍵となるデータ)を格納しそのデータを暗号化する或いはそのデータにMACを付加する等が挙げられる。また、共有鍵60dの更新にデータを必要としない場合であっても例えば更新メッセージの全体又は一部に対応したMACをデータフィールドに格納することも可能である。例えば、車載ネットワークシステム10において、更新メッセージに対応する暗号処理としてどのような処理を行うかについて、行うべき所定暗号処理(つまりセッション鍵を用いた所定暗号処理)を、予め規定しておく。そして、各ECUはその規定に従って所定暗号処理(例えばMACの付加)が適切に(つまりセッション鍵を用いた検証に成功するように)実施されている更新メッセージに対応して更新を行い、所定暗号処理が適切に実施されていなければその更新メッセージに対しては更新を抑止する。   After step S1008, the external tool 30a generates an update message for updating the shared key 60d to which the message ID “0x102” is attached, and performs an encryption process on the update message using the session key (step S1009) ). As an example of the encryption processing on the update message, data required for updating the shared key 60d, for example, data necessary for updating the shared key 60d (for example, data to be used as the key when the ECU 400a performs updating using a keyed hash function or the like) And encrypting the data or adding a MAC to the data. Further, even when data is not required for updating the shared key 60d, for example, the MAC corresponding to the whole or a part of the update message can be stored in the data field. For example, in the in-vehicle network system 10, a predetermined encryption process (that is, a predetermined encryption process using a session key) to be performed is defined in advance as to what process is to be performed as the encryption process corresponding to the update message. Then, each ECU performs an update corresponding to the update message in which the predetermined encryption processing (for example, the addition of the MAC) is appropriately performed (that is, the verification using the session key is successful) in accordance with the regulation, and the predetermined encryption processing is performed. If the processing has not been properly performed, the update of the update message is suppressed.

外部ツール30aは、ステップS1009で生成した更新メッセージをマスタECU100に送信する(ステップS1010)。   External tool 30a transmits the update message generated in step S1009 to master ECU 100 (step S1010).

ステップS1010で外部ツール30aが送信することでマスタECU100の送受信部101が受信したメッセージ(フレーム)のメッセージIDが受信すべきIDであるか否かを判定部103は、受信ID判断部130により判別する(ステップS1011)。共有鍵の更新用のメッセージID「0x100」〜「0x104」及びファームウェアの更新用のメッセージID「0x200」〜「0x206」は受信すべきIDであると判別される。ここでは、外部ツール30aが更新メッセージを送信することを想定して説明しているので、外部ツール30aからのメッセージ(フレーム)を更新メッセージと称しているが、実際には更新メッセージではないことも、あり得るため、ステップS1011で判別が行われる。つまり、外部ツール30aから送信されたメッセージ(フレーム)が、実際に更新メッセージであれば受信すべきと判別されることになる。なお、ここでは説明の便宜上、診断ポート600に接続された外部ツール30(例えば外部ツール30a等)からマスタECU100は、更新メッセージ以外のメッセージについてのメッセージIDを受信すべきIDとして取り扱わないこととしている。   The determination unit 103 determines whether the message ID of the message (frame) received by the transmission / reception unit 101 of the master ECU 100 by the transmission by the external tool 30a in step S1010 is an ID to be received by the reception ID determination unit 130. (Step S1011). The message IDs “0x100” to “0x104” for updating the shared key and the message IDs “0x200” to “0x206” for updating the firmware are determined to be IDs to be received. Here, since the description is made assuming that the external tool 30a transmits an update message, a message (frame) from the external tool 30a is referred to as an update message. Therefore, a determination is made in step S1011. That is, if the message (frame) transmitted from the external tool 30a is actually an update message, it is determined that it should be received. Here, for convenience of explanation, the master ECU 100 does not treat a message ID of a message other than an update message from the external tool 30 (for example, the external tool 30a) connected to the diagnostic port 600 as an ID to be received. .

ステップS1011において、送受信部101が受信したメッセージのメッセージIDが、受信すべきIDでないと判定した場合には、マスタECU100の判定部103は、そのメッセージIDのメッセージに係る処理を中止し、送受信部101ではIDフィールド以降の内容(データフィールド等)を受信せずに処理を終える(ステップS1012)。   In step S1011, if the message ID of the message received by the transmitting / receiving unit 101 is determined not to be an ID to be received, the determining unit 103 of the master ECU 100 stops the process related to the message of the message ID, and In 101, the process ends without receiving the contents (data field and the like) after the ID field (step S1012).

ステップS1011において、送受信部101が受信したメッセージのメッセージIDが、受信すべきIDであると判定した場合には、マスタECU100の判定部103は、受信したメッセージのメッセージID「0x102」と外部ツール30aの公開鍵証明書40aに記載された更新権限情報のレベルとが、レベル情報保持部104に保持されているレベル情報1040におけるメッセージID1041とレベル1042との対応関係と合致するか否かにより、受信したメッセージが、許可される更新メッセージであるか否かを判定する(ステップS1013)。即ち、判定部103は、外部ツール30aによる更新メッセージの送信が外部ツール30aの権限範囲内であることを更新権限情報が示すか否かをレベル情報1040に基づいて判定する。受信したメッセージが許可される更新メッセージでなければエラー処理を行う(ステップS1014)。ステップS1014でのエラー処理により、更新メッセージに対応した更新は抑止される。ここでは、公開鍵証明書40aの更新権限情報のレベルが3である(図3参照)とすると、メッセージID「0x102」の更新メッセージとの対応関係は、レベル情報1040が示す対応関係(図8参照)に合致するので、判定部103は、外部ツール30aから受信した更新メッセージが、許可される更新メッセージであると判定する。   In step S1011, if the message ID of the message received by the transmitting / receiving unit 101 is determined to be an ID to be received, the determination unit 103 of the master ECU 100 determines the message ID “0x102” of the received message and the external tool 30a. Depends on whether or not the level of the update authority information described in the public key certificate 40a matches the correspondence between the message ID 1041 and the level 1042 in the level information 1040 held in the level information holding unit 104. It is determined whether the received message is an allowed update message (step S1013). That is, the determination unit 103 determines, based on the level information 1040, whether or not the update authority information indicates that the transmission of the update message by the external tool 30a is within the authority range of the external tool 30a. If the received message is not a permitted update message, error processing is performed (step S1014). By the error processing in step S1014, the update corresponding to the update message is suppressed. Here, assuming that the level of the update authority information of the public key certificate 40a is 3 (see FIG. 3), the correspondence with the update message of the message ID “0x102” is the correspondence indicated by the level information 1040 (FIG. 8). Therefore, the determination unit 103 determines that the update message received from the external tool 30a is a permitted update message.

ステップS1013において、受信したメッセージの送信が外部ツール30aの権限範囲内であると判定した場合(つまり受信したメッセージが許可される更新メッセージであると判定した場合)には、判定部103は、フレーム生成部120へ転送用の更新メッセージを生成するよう指示する(ステップS1015)。これによりフレーム生成部120では、マスタECU100が外部ツール30aから受信した、元の更新メッセージに基づいて、バス500bへの転送用(つまり他のECUへの転送用)に新たな更新メッセージ(フレーム)を生成する。例えば、マスタECU100が外部ツール30aとの通信に用いるセッション鍵と、他のECU(少なくともバス500bに接続された各ECU)との通信に用いるセッション鍵とを異ならせている場合においては、フレーム生成部120は、元の更新メッセージに施された暗号処理が暗号化であれば復号を外部ツール30aとの通信用のセッション鍵を用いて行い、その処理の結果に他のECUとの通信に用いるセッション鍵を用いて暗号化を施すことで新たな更新メッセージを生成する。また、元の更新メッセージに施された暗号処理がMACの付加であれば、フレーム生成部120は、他のECUとの通信に用いるセッション鍵を用いてMACを生成して元の更新メッセージのMACを生成したMACで置き換えることで新たな更新メッセージを生成する。この場合において、元の更新メッセージのMACについて検証を行って検証に失敗した場合にエラー処理を行っても良い。また、例えば、マスタECU100が外部ツール30aとの通信に用いるセッション鍵と、他のECUとの通信に用いるセッション鍵とを同一にしている場合においては、フレーム生成部120は、元の更新メッセージと同一の新たな更新メッセージを生成する。   If it is determined in step S1013 that the transmission of the received message is within the authority range of the external tool 30a (that is, if it is determined that the received message is an allowed update message), the determination unit 103 sets the frame It instructs the generation unit 120 to generate an update message for transfer (step S1015). Thereby, in frame generating section 120, based on the original update message received by master ECU 100 from external tool 30a, a new update message (frame) for transfer to bus 500b (that is, for transfer to another ECU) is provided. Generate For example, when the session key used for communication with the external tool 30a by the master ECU 100 is different from the session key used for communication with another ECU (at least each ECU connected to the bus 500b), frame generation is performed. The unit 120 performs decryption using a session key for communication with the external tool 30a if the encryption processing performed on the original update message is encryption, and uses the result of the processing for communication with another ECU. A new update message is generated by performing encryption using the session key. If the encryption processing performed on the original update message is addition of a MAC, the frame generation unit 120 generates a MAC using a session key used for communication with another ECU, and generates the MAC of the original update message. Is replaced with the generated MAC to generate a new update message. In this case, the MAC of the original update message may be verified, and if the verification fails, error processing may be performed. Also, for example, when the master ECU 100 uses the same session key used for communication with the external tool 30a and the session key used for communication with another ECU, the frame generation unit 120 determines whether the original update message Generate the same new update message.

ステップS1015に続いて、マスタECU100のフレーム生成部120が生成した更新メッセージをフレーム送受信部160がバス500bに送出する(ステップS1016)。即ち、マスタECU100は、外部ツール30aから更新メッセージが送信された場合において、更新権限情報の検証(つまり公開鍵証明書の検証)が成功しており、かつ、更新メッセージの送信が外部ツール30aの権限範囲内であることを更新権限情報が示すときには、更新メッセージをバス500bに転送する。なお、更新権限情報の検証が失敗していたとき、又は、更新メッセージの送信が外部ツール30aの権限範囲内であることを更新権限情報が示さないときには、更新メッセージのバス500bへの転送は行われない。   Subsequent to step S1015, the frame transmission / reception unit 160 sends the update message generated by the frame generation unit 120 of the master ECU 100 to the bus 500b (step S1016). That is, when the update message is transmitted from external tool 30a, master ECU 100 determines that the update authority information has been successfully verified (that is, the public key certificate has been verified), and that the transmission of the update message has been performed by external tool 30a. When the update authority information indicates that the information is within the authority range, the update message is transferred to the bus 500b. When the verification of the update authority information has failed, or when the update authority information does not indicate that the transmission of the update message is within the authority range of the external tool 30a, the transfer of the update message to the bus 500b is performed. I can't.

マスタECU100によりバス500bに送出された更新メッセージは、ゲートウェイ300によりバス500a及びバス500cに転送される。これにより、ECU400a〜400fは、更新メッセージを受信可能になる。従って、あるメッセージIDの更新メッセージの送信が外部ツール30aの権限範囲内であることを更新権限情報が示すとマスタECU100が判定したときには、そのメッセージIDの更新メッセージを受信するように予め定められているECUにより、更新メッセージに対応した更新が実行され得る。   The update message sent to bus 500b by master ECU 100 is transferred by gateway 300 to buses 500a and 500c. Thus, the ECUs 400a to 400f can receive the update message. Therefore, when the master ECU 100 determines that the update authority information indicates that the transmission of the update message of a certain message ID is within the authority range of the external tool 30a, it is predetermined to receive the update message of the message ID. The update corresponding to the update message can be executed by the ECU.

ECU400a(図9参照)では、フレーム送受信部460により更新メッセージを受信し、フレーム解釈部450でそのメッセージの内容を解釈し、受信すべきIDがどうかを受信ID判断部430へ問い合わせる。受信ID判断部430は、受信IDリスト保持部440が保持している受信IDリストを参照し、受信したメッセージのIDフィールドの値が、受信すべきIDかどうかを判断する(ステップS1017)。受信ID判断部430が、ステップS1017において、フレーム送受信部460により受信されたメッセージのメッセージIDが、受信すべきIDでないと判定した場合には、フレーム解釈部450は、その受信されたメッセージに係る処理を中止し、フレーム送受信部460ではIDフィールド以降の内容を受信せずに処理を終える(ステップS1018)。   In the ECU 400a (see FIG. 9), the update message is received by the frame transmission / reception unit 460, the content of the message is interpreted by the frame interpretation unit 450, and an inquiry is made to the reception ID determination unit 430 as to whether there is an ID to be received. The reception ID determining unit 430 refers to the reception ID list stored in the reception ID list storage unit 440, and determines whether the value of the ID field of the received message is an ID to be received (step S1017). If the reception ID determination unit 430 determines in step S1017 that the message ID of the message received by the frame transmission / reception unit 460 is not an ID to be received, the frame interpretation unit 450 determines whether the received message is The processing is stopped, and the frame transmission / reception section 460 ends the processing without receiving the contents after the ID field (step S1018).

受信ID判断部430が、ステップS1017において、フレーム送受信部460により受信されたメッセージのIDフィールドの値が、受信すべきIDであると判断した場合は、ECU400aは、フレーム処理部410により、そのメッセージ(つまり更新メッセージ)に対応した処理(つまり共有鍵60dの更新)を実行する(ステップS1019)。フレーム処理部410では、現在、鍵保持部402が保持している共有鍵60dから、更新メッセージのデータフィールド内の鍵データを用いて鍵付きハッシュ関数により、更新後となる新たな共有鍵60dを生成する。更新には必ずしも鍵付きハッシュ関数を利用する必要はなく、他の例としては、鍵のないハッシュ関数(一方向性関数)を用いて元の共有鍵を新たな共有鍵に更新することが挙げられる。なお、ECU400aにおいて、更新メッセージに施された暗号処理(暗号化或いはMAC付加)に対応する処理(復号或いはMAC検証)を、セッション鍵を用いて行って更新メッセージの鍵データを取得する。   If the reception ID determination unit 430 determines in step S1017 that the value of the ID field of the message received by the frame transmission / reception unit 460 is the ID to be received, the ECU 400a sends the message to the frame processing unit 410. The process corresponding to the update message (that is, the update of the shared key 60d) is performed (step S1019). The frame processing unit 410 uses the keyed data in the data field of the update message to generate a new shared key 60d to be updated from the shared key 60d currently held by the key holding unit 402 by using a keyed hash function. Generate. It is not always necessary to use a hash function with a key for updating, and another example is to update an original shared key to a new shared key using a hash function without keys (one-way function). Can be In the ECU 400a, a process (decryption or MAC verification) corresponding to the encryption process (encryption or MAC addition) performed on the update message is performed using the session key to obtain key data of the update message.

ECU400aは、共有鍵60dの更新後に更新の結果を示すメッセージ(更新結果メッセージと称する)をマスタECU100に伝達されるようにバス500aに送出する(S1020)。なお、更新結果メッセージのメッセージIDは予め定められており、マスタECU100は更新結果メッセージのメッセージIDを受信IDリスト保持部140のリストに保持している。更新結果メッセージは、例えば更新を完了した旨(つまり更新成功の旨)を示す。なお、更新に際してエラーが生じたような場合(例えば鍵データのMAC検証に失敗した場合等)には更新結果メッセージが更新失敗の旨を示すようにしても良い。更新結果メッセージは、ゲートウェイ300によりバス500aからバス500bに転送される。   After updating shared key 60d, ECU 400a sends a message indicating the result of the update (referred to as an update result message) to bus 500a so as to be transmitted to master ECU 100 (S1020). Note that the message ID of the update result message is predetermined, and the master ECU 100 holds the message ID of the update result message in a list of the reception ID list holding unit 140. The update result message indicates, for example, that the update has been completed (that is, the update has been successful). When an error occurs during the update (for example, when the MAC verification of the key data fails), the update result message may indicate that the update has failed. The update result message is transferred from the bus 500a to the bus 500b by the gateway 300.

マスタECU100は、更新結果メッセージを受信すると、鍵保持部102が保持している共有鍵60d(図6参照)をECU400aと同様の方法で更新する(ステップS1021)。なお、マスタECU100は、例えばECU400aからの更新成功の旨を示す更新結果メッセージとECU400bからの更新成功の旨を示す更新結果メッセージとの両方を受けた場合に限って、鍵保持部102が保持している共有鍵60dを更新するようにしても良い。   Upon receiving the update result message, master ECU 100 updates shared key 60d (see FIG. 6) held by key holding unit 102 in the same manner as ECU 400a (step S1021). The master ECU 100 holds the key holding unit 102 only when receiving both the update result message indicating the update success from the ECU 400a and the update result message indicating the update success from the ECU 400b. The shared key 60d may be updated.

マスタECU100は、ステップS1020において受信した更新結果メッセージを、バス500dに送出することで診断ポート600を介して外部ツール30aに送信する(ステップS1022)。これにより、外部ツール30aでは更新結果メッセージを受信して、車載ネットワークシステム10において目的な更新が完了したこと等を知り、例えば更新の完了を利用者に報知(例えば外部ツール30aが表示装置を有していれば表示等)し得る。   Master ECU 100 transmits the update result message received in step S1020 to external tool 30a via diagnostic port 600 by transmitting the update result message to bus 500d (step S1022). As a result, the external tool 30a receives the update result message and knows that the target update has been completed in the in-vehicle network system 10, and notifies the user of the update completion (for example, the external tool 30a has a display device). Display, etc.).

以上、外部ツール30aが、ECU400a、400b及びマスタECU100のそれぞれが保持する共有鍵60dの更新用の更新メッセージを送信する例を示したが、他のECUが保持する共有鍵の更新用の更新メッセージを送信した場合、或いは、ECU内のファームウェアの更新用の更新メッセージを送信した場合においても、各装置は同様の動作を行う。なお、外部ツール30aは認証要求を1度送信した後において、各更新メッセージを逐次送信しても良い。この場合には、ステップS1001からステップS1008までの処理が一度実行された後に、外部ツール30aが各更新メッセージを送信する毎に、ステップS1009以降の処理が繰り返されるようになる。また、ECU内のファームウェアの更新用の更新メッセージは、例えば更新後のファームウェアの内容を特定するための情報を含み、更新メッセージの対象となるECUでは、その更新後のファームウェアの内容を特定するための情報に基づいてファームウェアを書き換える。ファームウェアは、例えば、ECU内のプログラム等のソフトウェア、プログラムで用いられるデータを含み、例えば、ECU内のプロセッサにおけるマイクロコードを含み得る。またファームウェアは、例えばECUがFPGA(Field Programmable Gate Array)等を含む場合において、回路構成用のデータを含み得る。また、ここでの説明では便宜上、共有鍵とファームウェアとは別々に扱ったが、ファームウェアが共有鍵を含むと扱っても良い。   As described above, the example in which the external tool 30a transmits the update message for updating the shared key 60d held by each of the ECUs 400a and 400b and the master ECU 100 has been described. However, the update message for updating the shared key held by other ECUs is shown. Is transmitted, or when an update message for updating the firmware in the ECU is transmitted, each device performs the same operation. After transmitting the authentication request once, the external tool 30a may sequentially transmit each update message. In this case, after the processing from step S1001 to step S1008 is executed once, the processing after step S1009 is repeated each time the external tool 30a transmits each update message. Further, the update message for updating the firmware in the ECU includes, for example, information for specifying the content of the updated firmware, and the target ECU of the update message specifies the content of the updated firmware. Rewrite the firmware based on the information of The firmware includes, for example, software such as a program in the ECU, data used in the program, and may include, for example, microcode in a processor in the ECU. Further, the firmware may include data for circuit configuration, for example, when the ECU includes an FPGA (Field Programmable Gate Array) or the like. In this description, the shared key and the firmware are handled separately for the sake of convenience, but the firmware may be handled as including the shared key.

[1.12 実施の形態1の効果]
実施の形態1に係る車載ネットワークシステム10では、診断ポート600に接続される外部ツール30が特定のECU内のデータを更新する更新メッセージの送信権限を有するか否か、つまり外部ツール30が特定のECU内のデータを更新する権限を有するか否かを、外部ツール30に対して認定された権限を示す更新権限情報が示す、ECUの機能種別に対応して定められたレベルに基づいて、判定している。これにより、不正な外部ツールによるECU内の共有鍵或いはファームウェアの更新を防ぐことができる。また。外部ツール毎に、例えば外部ツールの機密性、信頼性、外部ツールを扱う事業者の信頼性その他の各種事情に応じて、更新権限情報のレベルを異ならせて設定(及び認定)できる。レベルを変えた外部ツールを別々のメンテナンス業者等に対して配布することも可能となり、各種事情に応じて柔軟に更新権限を制限した運用が可能になる。例えば、機密性、信頼性等のセキュリティ確保が十分である外部ツールほど、高い権限のレベルを認定する等が可能となる。このように外部ツール毎に更新権限情報のレベルを設定できることは、外部ツールを用途等に応じて効率的に柔軟に設計及び製造するために、或いは、外部ツールの運用上のセキュリティ確保等を用途に応じて柔軟に行うために、有用となる。
[1.12 Effects of First Embodiment]
In the in-vehicle network system 10 according to the first embodiment, whether the external tool 30 connected to the diagnostic port 600 has the authority to transmit an update message for updating data in a specific ECU, that is, whether the external tool 30 Whether or not the user has the authority to update the data in the ECU is determined based on the level defined in accordance with the function type of the ECU indicated by the update authority information indicating the authority authorized to the external tool 30. doing. This can prevent the update of the shared key or the firmware in the ECU by an unauthorized external tool. Also. For each external tool, for example, the level of the update authority information can be set (and certified) in accordance with the confidentiality and reliability of the external tool, the reliability of the business operator handling the external tool, and other various circumstances. It is also possible to distribute external tools of different levels to different maintenance companies and the like, and it is possible to flexibly restrict the updating authority according to various circumstances. For example, an external tool with sufficient security such as confidentiality and reliability can recognize a higher authority level. The ability to set the level of the update authority information for each external tool in this way is used to efficiently and flexibly design and manufacture the external tool according to the application, or to ensure the security of the operation of the external tool. It will be useful to perform it flexibly according to.

(実施の形態2)
以下、実施の形態1で示した車載ネットワークシステム10を一部変形してなる車載ネットワークシステム10aについて説明する。
(Embodiment 2)
Hereinafter, an in-vehicle network system 10a obtained by partially modifying the in-vehicle network system 10 described in the first embodiment will be described.

実施の形態1に係る車載ネットワークシステム10では、診断ポート600に外部ツール30が接続された場合においてマスタECU100が、外部ツール30を認証して、外部ツール30からの更新メッセージが、更新権限情報が示す権限(レベル)の範囲内である場合に限って、外部ツール30にその更新メッセージでECU内のデータを更新することを許可した。   In the in-vehicle network system 10 according to the first embodiment, when the external tool 30 is connected to the diagnostic port 600, the master ECU 100 authenticates the external tool 30 and updates the update message from the external tool 30 with the update authority information. The external tool 30 is permitted to update the data in the ECU with the update message only when the authority (level) is within the range shown.

本実施の形態に係る車載ネットワークシステム10aでは、外部ツール30の更新メッセージを許可するか否かの判定において、レベルだけでなく車載ネットワークシステム10aを搭載している車両の状態、及び、車両における電池の残量の状態を参照する。本実施の形態に係る車載ネットワークシステム10aの構成は概ね実施の形態1で示した車載ネットワークシステム10(図1参照)と同様であり、以下、実施の形態1と同様のものについて同じ符号を用いる。   In the in-vehicle network system 10a according to the present embodiment, in determining whether or not to allow the update message of the external tool 30, not only the level but also the state of the vehicle equipped with the in-vehicle network system 10a and the battery in the vehicle Refer to the remaining battery status. The configuration of the in-vehicle network system 10a according to the present embodiment is substantially the same as that of the in-vehicle network system 10 (see FIG. 1) shown in the first embodiment, and the same reference numerals are used for the same components as those in the first embodiment. .

[2.1 車載ネットワークシステム10aの全体構成]
図13は、実施の形態2に係る車載ネットワークシステム10aの全体構成を示す図である。なお、同図には車載ネットワークシステム10aの他に、外部ツール30が示されている。
[2.1 Overall Configuration of In-Vehicle Network System 10a]
FIG. 13 is a diagram illustrating an overall configuration of the vehicle-mounted network system 10a according to the second embodiment. FIG. 2 shows an external tool 30 in addition to the vehicle-mounted network system 10a.

車載ネットワークシステム10aでは、車載ネットワークシステム10(図1)に対して、蓄電池800とECU400gとが追加されている。ここでは、実施の形態1と同様な構成要素の説明を省略する。   In the vehicle-mounted network system 10a, a storage battery 800 and an ECU 400g are added to the vehicle-mounted network system 10 (FIG. 1). Here, the description of the same components as those in the first embodiment will be omitted.

ECU400gは、バス500bと接続され、電池(蓄電池)800の充放電に係る制御を行い、蓄電池800の残量を取得して管理し、定期的に電池残量の状態を表すフレームをネットワーク(つまりバス500b)に送信している。   The ECU 400g is connected to the bus 500b, controls charging / discharging of the battery (storage battery) 800, acquires and manages the remaining amount of the storage battery 800, and periodically transmits a frame representing the state of the remaining battery to a network (that is, a network). To the bus 500b).

蓄電池800は、車載ネットワークシステム10における各ECUへ電力を供給する。   The storage battery 800 supplies electric power to each ECU in the in-vehicle network system 10.

[2.2 レベル情報]
図14は、実施の形態2におけるマスタECU100のレベル情報保持部104が保持するレベル情報2040の一例を示す図である。
[2.2 Level information]
FIG. 14 is a diagram illustrating an example of the level information 2040 held by the level information holding unit 104 of the master ECU 100 according to the second embodiment.

レベル情報2040は、メッセージID2014とレベル2042と電池残量条件2043と車両状態条件2044とを対応付けた情報であり、判定部103において外部ツール30からの更新メッセージを許可するか否かの判定に用いられる。メッセージID2041及びレベル2042は、実施の形態1で示したメッセージID1041及びレベル1042と同様である。電池残量条件2043は、更新メッセージを許可するために必要とされる電池の残量の条件を示し、例えば、電池の残量が更新に足りる程度に十分な量に設定され、具体例としては満充電の充電量を100%として充電50%以上の残量及び充電80%以上の残量のいずれかが設定される。また、車両状態条件2044は、更新メッセージを許可するために必要とされる車両状態の条件を示し、例えば停車状態(車両の速度がゼロとなっている状態)及びエンジンOFF状態(エンジン310を停止した状態)のいずれかが設定される。   The level information 2040 is information in which the message ID 2014, the level 2042, the battery remaining amount condition 2043, and the vehicle state condition 2044 are associated, and the determination unit 103 determines whether to permit an update message from the external tool 30. Used. The message ID 2041 and the level 2042 are the same as the message ID 1041 and the level 1042 shown in the first embodiment. The battery remaining amount condition 2043 indicates a condition of the remaining amount of the battery required to permit the update message. For example, the remaining amount of the battery is set to a sufficient amount so that the remaining amount of the battery is sufficient for updating. One of a remaining amount of 50% or more of charging and a remaining amount of 80% or more of charging is set assuming that the full charge amount is 100%. The vehicle state condition 2044 indicates a vehicle state condition required for permitting the update message, and includes, for example, a stopped state (a state where the vehicle speed is zero) and an engine OFF state (the engine 310 is stopped). Is set.

例えば、メッセージID「0x104」の共有鍵の更新用の更新メッセージは、更新権限情報のレベルが1又はそれ以上で、蓄電池800の電池残量が充電50%以上で、且つ、車両状態が停車状態であるときに許可されることを示している。また、メッセージID「0x201」のファームウェアの更新用の更新メッセージは、更新権限情報のレベルが4で、蓄電池800の電池残量が充電80%以上で、且つ、車両状態がエンジンOFF状態であるときに許可されることを示している。   For example, the update message for updating the shared key with the message ID “0x104” has an update authority information level of 1 or more, the remaining battery capacity of the storage battery 800 is 50% or more, and the vehicle state is the stopped state. Indicates that it is permitted. The update message for updating the firmware with the message ID “0x201” is when the level of the update authority information is 4, the battery level of the storage battery 800 is 80% or more, and the vehicle state is the engine OFF state. Is allowed.

[2.3 共有鍵更新シーケンス]
以下、更新管理方法の一例として、外部ツール30aを診断ポート600に接続して、外部ツール30aから車載ネットワークシステム10aにおけるECUが保持する共有鍵を更新させる場合の動作(共有鍵更新シーケンス)について、図15及び図16を用いて説明する。
[2.3 Shared key update sequence]
Hereinafter, as an example of the update management method, an operation (shared key update sequence) when the external tool 30a is connected to the diagnostic port 600 and the external tool 30a updates the shared key held by the ECU in the in-vehicle network system 10a will be described. This will be described with reference to FIGS.

図15及び図16は、外部ツール30aとマスタECU100とECU400aとの間で行われる共有鍵更新シーケンスの一例を示す図である。ここでは、便宜上、外部ツール30の1つとしての外部ツール30a、及び、ECU400a〜400gのうちの1つであるECU400aに注目して説明する。また、駆動系機能及びシャーシ系機能を有する各ECUが保持する共有鍵を更新するために外部ツール30aが用いられる場面を想定して説明する。具体的には、駆動系機能を有するECU400a及びシャーシ系機能を有するECU400bのそれぞれが保持する共有鍵60dの更新のためのメッセージID「0x102」が付された更新メッセージが外部ツール30aから車載ネットワークシステム10へと送信されることになる。ECU400bの動作は、ECU400aの動作と同様であるため、ここでは説明を省略する。また、ステップS2001からステップS2012とステップS2014からステップS2022との処理は、実施の形態1で示したステップS1001からステップS1012とステップS1014からステップS1022との処理(図11及び図12参照)と同等なので説明を省略し、ここでは、実施の形態1と異なるステップS2013a〜S2013cのみを説明する。   FIGS. 15 and 16 are diagrams illustrating an example of a shared key update sequence performed between the external tool 30a, the master ECU 100, and the ECU 400a. Here, for convenience, the description will focus on the external tool 30a as one of the external tools 30, and the ECU 400a which is one of the ECUs 400a to 400g. Further, the description will be made on the assumption that the external tool 30a is used to update the shared key held by each ECU having the drive system function and the chassis system function. Specifically, an update message to which a message ID “0x102” for updating the shared key 60d held by each of the ECU 400a having the drive system function and the ECU 400b having the chassis system function is transmitted from the external tool 30a to the in-vehicle network system. 10 will be sent. The operation of the ECU 400b is the same as the operation of the ECU 400a, and the description is omitted here. Also, the processing from step S2001 to step S2012 and step S2014 to step S2022 is equivalent to the processing from step S1001 to step S1012 and step S1014 to step S1022 shown in Embodiment 1 (see FIGS. 11 and 12). The description is omitted, and here, only steps S2013a to S2013c different from the first embodiment will be described.

ステップS2013aでは、マスタECU100の判定部103は、受信したメッセージのメッセージID「0x102」と外部ツール30aの公開鍵証明書40aに記載された更新権限情報のレベルとが、レベル情報保持部104に保持されているレベル情報2040におけるメッセージID2041とレベル2042との対応関係と合致するか否かにより、受信したメッセージが、適切な更新メッセージとして権限のレベルについての条件を満たすか否かを判定する。即ち、判定部103は、外部ツール30aによる更新メッセージの送信が外部ツール30aの権限範囲内であることを更新権限情報が示すか否かをレベル情報2040に基づいて判定する。受信したメッセージが権限のレベルについての条件を満たさない場合にはエラー処理を行う(ステップS2014)。ここでは、公開鍵証明書40aの更新権限情報のレベルが3である(図3参照)とすると、メッセージID「0x102」の更新メッセージとの対応関係は、レベル情報2040が示す対応関係(図14参照)に合致するので、判定部103は、外部ツール30aから受信した更新メッセージが、レベルの点で適切な更新メッセージであると判定し、次のステップS2013bへ処理を移す。   In step S2013a, the determination unit 103 of the master ECU 100 stores the message ID “0x102” of the received message and the level of the update authority information described in the public key certificate 40a of the external tool 30a in the level information storage unit 104. It is determined whether or not the received message satisfies the condition of the authority level as an appropriate update message based on whether or not the correspondence between the message ID 2041 and the level 2042 in the level information 2040 described above matches. That is, the determination unit 103 determines whether the update authority information indicates that the transmission of the update message by the external tool 30a is within the authority range of the external tool 30a, based on the level information 2040. If the received message does not satisfy the condition of the authority level, error processing is performed (step S2014). Here, assuming that the level of the update authority information of the public key certificate 40a is 3 (see FIG. 3), the correspondence with the update message of the message ID “0x102” is the correspondence indicated by the level information 2040 (FIG. 14). Therefore, the determination unit 103 determines that the update message received from the external tool 30a is an appropriate update message in terms of level, and shifts the processing to the next step S2013b.

ステップS2013bでは、判定部103は、蓄電池800の電池残量が条件を満たすか否かをチェックする。蓄電池800の電池残量を管理するECU400gが定期的に電池残量の状態を示すメッセージ(電池残量フレームと称する)を送信している場合において、マスタECU100は、ECU400gからの電池残量フレームをフレーム送受信部160で受信する。なお、マスタECU100の受信IDリスト保持部140が保持する受信IDリストには、ECU400gからの電池残量フレームのメッセージIDが含まれているものとする。判定部103は、ECU400gから受信した電池残量フレームが示す電池残量が、レベル情報保持部104に保持されているメッセージID2041に対応する電池残量条件2043を満たすか否かをチェックする。電池残量の条件が満たされていれば、次のステップS2013cへ処理を移す。電池残量の条件が満たされていない場合(つまりチェックの結果がNGである場合)には、エラー処理を行う(ステップS2014)。なお、ECU400gが定期的に電池残量の状態を示す電池残量フレームを送信しないこととしても良く、この場合には、ステップS2013bにおいてマスタECU100は、例えばECU400gに電池残量フレームの送信を依頼するフレームを送信することで、ECU400gから電池残量フレームを受信して、更新メッセージが受信された時(つまり現在)における電池残量の状態を取得しても良い。   In step S2013b, the determination unit 103 checks whether the remaining battery capacity of the storage battery 800 satisfies the condition. When ECU 400g that manages the remaining battery level of storage battery 800 periodically transmits a message indicating the state of the remaining battery level (referred to as a remaining battery level frame), master ECU 100 transmits the remaining battery level frame from ECU 400g. The data is received by the frame transmitting / receiving unit 160. It is assumed that the reception ID list held by reception ID list holding section 140 of master ECU 100 includes the message ID of the battery remaining amount frame from ECU 400g. The determination unit 103 checks whether the remaining battery level indicated by the remaining battery level frame received from the ECU 400g satisfies the remaining battery level condition 2043 corresponding to the message ID 2041 held in the level information holding unit 104. If the condition of the remaining battery level is satisfied, the process moves to the next step S2013c. If the condition of the remaining battery level is not satisfied (that is, if the check result is NG), error processing is performed (step S2014). Note that the ECU 400g may not periodically transmit the battery remaining amount frame indicating the state of the battery remaining amount. In this case, in step S2013b, the master ECU 100 requests the ECU 400g to transmit the battery remaining amount frame, for example. By transmitting the frame, the battery remaining amount frame may be received from the ECU 400g, and the state of the battery remaining amount at the time when the update message is received (that is, at the present time) may be acquired.

ステップS2013cでは、判定部103は、車両状態が条件を満たすか否かをチェックする。エンジン310に係るECU400aがエンジン状態や車速等の車両状態情報を示すメッセージ(車両状態フレームと称する)を定期的に送信している場合において、マスタECU100は、ECU400aからの車両状態フレームをフレーム送受信部160で受信する。なお、マスタECU100の受信IDリスト保持部140が保持する受信IDリストには、ECU400aからの車両状態フレームのメッセージIDが含まれているものとする。判定部103は、ECU400aから受信した車両状態フレームが示すエンジン状態、車速等の車両状態が、レベル情報保持部104に保持されているメッセージID2041に対応する車両状態条件2044を満たすか否かをチェックする。車両状態の条件が満たされていれば、判定部103は、外部ツール30aから受信した更新メッセージが許可されるものであると判定し、ステップS2015へと処理を移す。また、車両状態の条件が満たされていない場合(つまりチェックの結果がNGである場合)には、エラー処理を行う(ステップS2014)。なお、ECU400aが定期的に車両状態フレームを送信しないこととしても良く、この場合には、ステップS2013cにおいてマスタECU100は、例えばECU400aに車両状態フレームの送信を依頼するフレームを送信することで、ECU400aから車両状態フレームを受信して、更新メッセージが受信された時(つまり現在)における車両状態を取得しても良い。   In step S2013c, the determination unit 103 checks whether the vehicle state satisfies the condition. When ECU 400a related to engine 310 periodically transmits a message (referred to as a vehicle state frame) indicating vehicle state information such as an engine state and a vehicle speed, master ECU 100 transmits a vehicle state frame from ECU 400a to a frame transmission / reception unit. Receive at 160. It is assumed that the reception ID list held by reception ID list holding section 140 of master ECU 100 includes the message ID of the vehicle state frame from ECU 400a. The determination unit 103 checks whether the vehicle state such as the engine state and the vehicle speed indicated by the vehicle state frame received from the ECU 400a satisfies the vehicle state condition 2044 corresponding to the message ID 2041 held in the level information holding unit 104. I do. If the condition of the vehicle state is satisfied, the determination unit 103 determines that the update message received from the external tool 30a is permitted, and shifts the processing to step S2015. If the condition of the vehicle state is not satisfied (that is, if the result of the check is NG), error processing is performed (step S2014). The ECU 400a may not periodically transmit the vehicle state frame. In this case, in step S2013c, the master ECU 100 transmits a frame requesting the transmission of the vehicle state frame to the ECU 400a. The vehicle state frame at the time when the update message is received (that is, at the present time) may be obtained by receiving the vehicle state frame.

[2.4 実施の形態2の効果]
実施の形態2に係る車載ネットワークシステム10aでは、外部ツール30からの更新メッセージに係る処理(更新)を許可するか否かについて、権限のレベルだけでなく電池残量の状態及び車両状態がどのような場合に更新メッセージが送信されたかに応じて判定している。このため、実施の形態1に係る車載ネットワークシステム10の効果に加え、次の効果を有する。即ち、電池残量を確認することで、ECU内のデータ(共有鍵或いはファームウェア)の更新処理が途中で途切れることなく確実に完了させられる。また、車両状態を確認することで、例えば、車両の走行中等のECUの負荷が高くバストラフィックが増大するときに更新メッセージを転送して更新を行うことを回避でき、更新が成功する可能性を高められる。
[2.4 Effects of Second Embodiment]
In the in-vehicle network system 10a according to the second embodiment, as to whether or not to permit the processing (update) related to the update message from the external tool 30, depending on not only the authority level but also the state of the remaining battery level and the vehicle state. In such a case, the determination is made according to whether the update message has been transmitted. Therefore, in addition to the effects of the in-vehicle network system 10 according to the first embodiment, the following effects are provided. That is, by confirming the remaining battery level, the update process of the data (shared key or firmware) in the ECU can be surely completed without interruption. Also, by confirming the vehicle state, for example, when the load on the ECU is high and the bus traffic increases when the vehicle is running, for example, it is possible to avoid performing the update by transmitting the update message, thereby reducing the possibility of the update being successful. Enhanced.

(実施の形態3)
本実施の形態では、実施の形態1に係る車載ネットワークシステム10におけるマスタECU100を部分的に変形し、共有鍵の有効期限に係る報知を行えるようにした例について説明する。
(Embodiment 3)
In the present embodiment, an example will be described in which the master ECU 100 in the in-vehicle network system 10 according to the first embodiment is partially modified so as to be able to notify the expiration date of the shared key.

[3.1 マスタECU(更新管理装置)100aの構成]
図17は、マスタECU100aの構成図である。マスタECU100aは、実施の形態1で示したマスタECU100の構成要素に、共有鍵の有効期限をチェックするために、時刻情報取得部180と鍵更新確認部190とを加えた構成を有する。これらの各構成要素は、機能的な構成要素であり、その各機能は、マスタECU100aにおける通信回路、メモリに格納された制御プログラムを実行するプロセッサ或いはデジタル回路等により実現される。ここでは、実施の形態1で示した構成要素についての説明を省略する。
[3.1 Configuration of Master ECU (Update Management Device) 100a]
FIG. 17 is a configuration diagram of the master ECU 100a. Master ECU 100a has a configuration in which a time information acquisition unit 180 and a key update confirmation unit 190 are added to the components of master ECU 100 shown in the first embodiment to check the expiration date of the shared key. Each of these components is a functional component, and each function is realized by a communication circuit in master ECU 100a, a processor that executes a control program stored in a memory, a digital circuit, or the like. Here, the description of the components described in Embodiment 1 is omitted.

時刻情報取得部180は、例えばリアルタイムクロック等の計時機構で構成され、現在時刻(つまり現在の日時)を取得して鍵更新確認部190に逐次通知する。   The time information acquisition unit 180 is configured by a time measurement mechanism such as a real-time clock, acquires the current time (that is, the current date and time), and sequentially notifies the key update confirmation unit 190.

鍵更新確認部190は、時刻情報取得部180から通知された現在時刻と、鍵保持部102が保持している共有鍵について予め定めている有効期限を確認し、予めアラート通知タイミングとして設定されているタイミングを過ぎた時点(つまり有効期限の一定期間前)に、鍵更新アラートメッセージを、フレーム生成部120に生成させてフレーム送受信部160から送信させる。   The key update confirmation unit 190 confirms the current time notified from the time information acquisition unit 180 and the expiration date predetermined for the shared key held by the key holding unit 102, and is set in advance as an alert notification timing. At a point in time after the current time (that is, a certain period before the expiration date), the key update alert message is generated by the frame generation unit 120 and transmitted from the frame transmission / reception unit 160.

図18に、鍵保持部102が保持している共有鍵それぞれについて、共有鍵識別情報3310と有効期限3311とアラート通知タイミング3312とを対応付けた情報の一例を示す。共有鍵識別情報3310は、各共有鍵を区別する情報である。有効期限3311は、対応する共有鍵識別情報が指す共有鍵についてセキュリティの確保のために予め定められた有効期限を示す。アラート通知タイミング3312は、有効期限より先行して鍵更新を促すべきタイミングを示す。鍵更新確認部190は、この図18に示す情報を参照する。例えば、共有鍵60aであれば、有効期限の3ヶ月前から鍵更新アラートメッセージを送信し、共有鍵60dであれば、有効期限の1ヶ月前から鍵更新アラートメッセージを送信する。   FIG. 18 illustrates an example of information in which the shared key identification information 3310, the expiration date 3311, and the alert notification timing 3312 are associated with each other for the shared keys held by the key holding unit 102. The shared key identification information 3310 is information for distinguishing each shared key. The expiration date 3311 indicates a predetermined expiration date for ensuring security for the shared key indicated by the corresponding shared key identification information. The alert notification timing 3312 indicates a timing at which a key update should be prompted prior to the expiration date. The key update confirmation unit 190 refers to the information shown in FIG. For example, the shared key 60a transmits a key update alert message three months before the expiration date, and the shared key 60d transmits a key update alert message one month before the expiration date.

鍵更新アラートメッセージは、ヘッドユニット200に接続されたECU400fにより受信される。ECU400fは、鍵更新アラートメッセージを受信すると、共有鍵の有効期限が近付いている旨等を示す、共有鍵の更新を促す警告情報(画面)をヘッドユニット200の表示装置に表示する。   The key update alert message is received by ECU 400f connected to head unit 200. Upon receiving the key update alert message, ECU 400f displays, on the display device of head unit 200, warning information (screen) for urging the update of the shared key, indicating that the expiration date of the shared key is approaching.

[3.2 鍵更新アラートメッセージ]
図19は、共有鍵の有効期限が近付いた場合に、ヘッドユニット200の表示装置に表示される画面の一例を示す図である。
[3.2 Key update alert message]
FIG. 19 is a diagram illustrating an example of a screen displayed on the display device of the head unit 200 when the expiration date of the shared key is approaching.

図19の例では、画面3320は、現在日時とECUの共有鍵の有効期限とを含み、更に、共有鍵の更新を行うためのメンテナンス業者(この例ではディーラー)の連絡先、そのウェブサイトのURL(Uniform Resource Locator)を含む。また、画面3320は、ナビゲーションシステムにより目的地をディーラーの住所に設定する画面へ遷移するためのGUI(Graphical User Interface)のボタン3321を含む。なお、このディーラーの情報については、例えば販売時等において予めマスタECU100aに登録されていても良いし、テレマティクス系機能を有するECUを介して取得しても良い。   In the example of FIG. 19, the screen 3320 includes the current date and time and the expiration date of the shared key of the ECU, and further, the contact information of the maintenance company (dealer in this example) for updating the shared key, and the website of the website. It includes a URL (Uniform Resource Locator). The screen 3320 includes a GUI (Graphical User Interface) button 3321 for transitioning to a screen for setting the destination to the address of the dealer by the navigation system. The information of the dealer may be registered in advance in the master ECU 100a at the time of sale, for example, or may be acquired via an ECU having a telematics function.

例えば、図19に例示する画面3320を見た運転者が車両を運転して、ディーラー等のメンテナンス業者へ行けば、ディーラー等は、実施の形態1、2等で説明したように、外部ツール30を用いて車載ネットワークシステムにおけるECUが保持する共有鍵の更新を実行させ得る。   For example, if the driver who looks at the screen 3320 illustrated in FIG. 19 drives the vehicle and goes to a maintenance company such as a dealer, the dealer or the like can use the external tool 30 as described in the first and second embodiments. Can be used to update the shared key held by the ECU in the in-vehicle network system.

[3.3 実施の形態3の効果]
実施の形態3に係る車載ネットワークシステムにおいては、共有鍵の有効期限を管理し、有効期限が近付いた場合に、車両の運転者等に鍵更新を促すような警告情報(画面)をヘッドユニットの表示装置に表示する。これにより、ディーラー等でのメンテナンスを受けるべきことの警告等といった共有鍵に係るセキュリティを確保するための注意喚起が実現される。
[3.3 Effects of Third Embodiment]
In the in-vehicle network system according to the third embodiment, the expiration date of the shared key is managed, and when the expiration date is approaching, warning information (screen) prompting the driver of the vehicle to update the key is displayed on the head unit. Display on the display device. Thus, an alert for ensuring security related to the shared key, such as a warning that maintenance should be received at a dealer or the like, is realized.

(実施の形態4)
本実施の形態では、実施の形態1に係る車載ネットワークシステム10におけるマスタECU100を、更新結果メッセージに車両識別情報を付して外部ツール30へ送信するように変形し、外部ツール30がサーバ35と通信するようにした例について説明する。
(Embodiment 4)
In the present embodiment, the master ECU 100 in the in-vehicle network system 10 according to the first embodiment is modified so that the update result message is attached to the vehicle identification information and transmitted to the external tool 30, and the external tool 30 An example in which communication is performed will be described.

[4.1 サーバ]
外部ツール30と通信するサーバ35は、車載ネットワークシステム10が搭載される車両の外部に所在するコンピュータである。複数の車両それぞれに車載ネットワークシステム10が搭載されていることを前提として、サーバ35は、外部ツール30が、どの車両(つまり車載ネットワークシステム)に対して、どのような更新(ECU内のデータの更新)を行ったかを管理する。
[4.1 Server]
The server 35 that communicates with the external tool 30 is a computer located outside the vehicle on which the vehicle-mounted network system 10 is mounted. Assuming that the in-vehicle network system 10 is installed in each of the plurality of vehicles, the server 35 determines which update (data in the ECU is to be performed) for which vehicle (that is, the in-vehicle network system). Update).

[4.2 共有鍵更新シーケンス]
以下、本実施の形態での更新管理方法の一例として、サーバ35と通信する外部ツール30aを、ある車両の車載ネットワークシステム10における診断ポート600に接続して、外部ツール30aから車載ネットワークシステム10におけるECUが保持する共有鍵を更新させる場合の動作(共有鍵更新シーケンス)について、図20及び図21を用いて説明する。
[4.2 Shared key update sequence]
Hereinafter, as an example of the update management method in the present embodiment, an external tool 30a that communicates with the server 35 is connected to the diagnostic port 600 in the vehicle-mounted network system 10 of a certain vehicle, and the external tool 30a is connected to the vehicle-mounted network system 10 by the external tool 30a. The operation of updating the shared key held by the ECU (shared key update sequence) will be described with reference to FIGS.

図20及び図21は、サーバ35と通信する外部ツール30aとマスタECU100とECU400aとの間で行われる共有鍵更新シーケンスの一例を示す図である。ステップS3001からステップS3021までの処理は、実施の形態1で示したステップS1001からステップS1021までの処理(図11及び図12参照)と同等なので説明を省略し、ここでは、実施の形態1と異なるステップS3000a、S3000b、S3022、S3023及びS3024のみを説明する。   20 and 21 are diagrams illustrating an example of a shared key update sequence performed between the external tool 30a communicating with the server 35, the master ECU 100, and the ECU 400a. The processing from step S3001 to step S3021 is the same as the processing from step S1001 to step S1021 shown in the first embodiment (see FIGS. 11 and 12), and thus the description is omitted, and here, the processing is different from the first embodiment. Only steps S3000a, S3000b, S3022, S3023 and S3024 will be described.

ステップS3000aでは、外部ツール30aは、サーバ35に接続要求を出す。即ち外部ツール30aは、例えば予め登録されたID(例えばツールID)及びパスワードを用いたログイン要求をサーバ35に送信する。   In step S3000a, the external tool 30a issues a connection request to the server 35. That is, the external tool 30a transmits a login request using, for example, an ID (for example, a tool ID) and a password registered in advance to the server 35.

ステップS3000bでは、サーバ35は、外部ツール30aからの接続要求を受け、ID及びパスワードが予め登録されている情報と一致すればログイン処理を行って正常応答を返信する。   In step S3000b, the server 35 receives the connection request from the external tool 30a, and if the ID and the password match the information registered in advance, performs a login process and returns a normal response.

ステップS3000bの後において、外部ツール30a、マスタECU100及びECU400aは、実施の形態1で説明した通りに共有鍵の更新に係る処理を行う。これにより、ステップS3020では、マスタECU100がECU400aからの更新結果を示す更新結果メッセージを受信している。   After step S3000b, the external tool 30a, the master ECU 100, and the ECU 400a perform the process related to the update of the shared key as described in the first embodiment. Thus, in step S3020, master ECU 100 has received an update result message indicating the update result from ECU 400a.

ステップS3022では、マスタECU100は、ECU400aからの更新結果に加えて、車両識別情報を含めたメッセージである車両識別情報付き更新結果メッセージをバス500dに送出することで診断ポート600を介して外部ツール30aに送信する。これにより、外部ツール30aでは車両識別情報付き更新結果メッセージを受信する。車両識別情報は、この外部ツール30aが接続している車載ネットワークシステムを複数の車載ネットワークシステムの中で識別する情報であれば足り、例えばマスタECU100の公開鍵証明書40c(図3参照)等である。   In step S3022, master ECU 100 transmits, to bus 500d, an update result message with vehicle identification information, which is a message including vehicle identification information, in addition to the update result from ECU 400a, to external tool 30a via diagnostic port 600. Send to As a result, the external tool 30a receives the update result message with the vehicle identification information. The vehicle identification information only needs to be information that identifies the in-vehicle network system to which the external tool 30a is connected among a plurality of in-vehicle network systems. For example, the public key certificate 40c of the master ECU 100 (see FIG. 3) or the like is sufficient. is there.

ステップS3023では、外部ツール30aは、受信した車両識別情報付き更新結果メッセージが示す車両識別情報及び更新結果をサーバ35に送信する。   In step S3023, the external tool 30a transmits to the server 35 the vehicle identification information and the update result indicated by the received update result message with the vehicle identification information.

ステップS3024では、サーバ35は、受信した車両識別情報及び更新結果と、現在日時と、ログイン時に受信していたIDと対応付けてログ情報4000として保存する。   In step S3024, the server 35 stores the received vehicle identification information and update result, the current date and time, and the log information 4000 in association with the ID received at the time of login.

[4.3 診断ログ情報]
図22は、サーバ35が保存するログ情報4000の一例を示す図である。ログ情報4000は、車両識別情報4001と、外部ツールID4002と、更新メッセージのメッセージID4003と、日時4004と、更新結果4005とを含む。
[4.3 Diagnostic log information]
FIG. 22 is a diagram illustrating an example of the log information 4000 stored by the server 35. The log information 4000 includes vehicle identification information 4001, an external tool ID 4002, a message ID 4003 of an update message, a date and time 4004, and an update result 4005.

[4.4 実施の形態4の効果]
本実施の形態では、サーバ35が、ログ情報4000を保存し、どの車両がどの外部ツールによって更新されたか等の情報が残るので、メンテナンス状況の把握が可能となる。また、不正な外部ツールが発見された場合にその外部ツールによる影響範囲の特定のためにログ情報4000が利用できる。
[4.4 Effect of Fourth Embodiment]
In the present embodiment, the server 35 stores the log information 4000 and information such as which vehicle has been updated by which external tool remains, so that the maintenance status can be grasped. Further, when an unauthorized external tool is found, the log information 4000 can be used for specifying the range of influence by the external tool.

(他の実施の形態)
以上のように、本発明に係る技術の例示として実施の形態1〜4を説明した。しかしながら、本発明に係る技術は、これに限定されず、適宜、変更、置き換え、付加、省略等を行った実施の形態にも適用可能である。例えば、以下のような変形例も本発明の一実施態様に含まれる。
(Other embodiments)
As described above, the first to fourth embodiments have been described as examples of the technology according to the present invention. However, the technology according to the present invention is not limited to this, and can be applied to embodiments in which changes, replacements, additions, omissions, and the like are made as appropriate. For example, the following modifications are also included in an embodiment of the present invention.

(1)上記実施の形態で示した共有鍵は、機能を分類する機能種別により共有範囲を区別している例を示したが、これに限定されることはなく、マスタECUとその他の1又は複数のECUとが共有鍵を持ち合う単位は、車載ネットワークシステムにおいて任意に定め得る。例えば、車内ネットワークを複数のドメインに分けてドメイン毎に共有鍵を設定しても良い。その場合、更新のために必要な権限のレベルとしてドメインを区別してレベル情報を設定しても良い。また、上記実施の形態では、外部ツール30が、機能種別を踏まえて権限のレベルを設定された更新権限情報を含む公開鍵証明書を有する例を示したが、自動車メーカや車種に対応した更新の権限が設定された更新権限情報を含む公開鍵証明書を有しても良い。   (1) The shared key described in the above embodiment is an example in which the shared range is distinguished by the function type for classifying the function. However, the present invention is not limited to this. The unit with which the ECU has a shared key can be arbitrarily determined in the vehicle-mounted network system. For example, the in-vehicle network may be divided into a plurality of domains and a shared key may be set for each domain. In this case, the level information may be set to distinguish the domain as the level of authority required for updating. Further, in the above-described embodiment, an example is described in which the external tool 30 has the public key certificate including the update authority information in which the authority level is set based on the function type. May have a public key certificate including update authority information in which the authority is set.

(2)上記実施の形態では、共有鍵の更新は、現在各ECUが保持している共有鍵から鍵付きハッシュ関数を利用して新たな共有鍵を生成することで行うこととしたが、外部ツール30が新たな共有鍵自体を更新メッセージに含めて送信しても良い。この場合、共有鍵の値がCANの1フレーム内に収まらない場合は、複数フレームに分割して送信するようにしても良い。   (2) In the above embodiment, the shared key is updated by generating a new shared key from the shared key currently held by each ECU by using a hash function with a key. The tool 30 may transmit the new shared key itself in the update message. In this case, if the value of the shared key does not fit in one frame of CAN, the value may be divided into a plurality of frames and transmitted.

(3)上記実施の形態では、外部ツール30からECU内のデータ(共有鍵、ファームウェア等)を更新するための更新メッセージを送信する例を示したが、この他に故障診断用等のメッセージを送信し得る。更新メッセージ以外のメッセージについては、車載ネットワークシステム(例えばマスタECU)において、レベル情報に基づく権限の判定を行うことなく、メッセージに対応した処理をすることとしても良い。更に、故障診断用等のメッセージを含む任意のメッセージについて、車載ネットワークシステム(例えばマスタECU)においてそのメッセージの送信が外部ツール30に認められた権限範囲内であるかを権限のレベルを示す権限情報に基づいて判定することとしても良い。   (3) In the above-described embodiment, an example has been described in which an update message for updating data (shared key, firmware, and the like) in the ECU is transmitted from the external tool 30. In addition, a message for failure diagnosis and the like is transmitted. Can send. For a message other than the update message, the in-vehicle network system (for example, the master ECU) may perform a process corresponding to the message without performing the authority determination based on the level information. Further, for any message including a message for failure diagnosis or the like, authority information indicating the level of authority indicating whether transmission of the message is within the authority range authorized by the external tool 30 in the vehicle-mounted network system (for example, the master ECU). May be determined based on

(4)上記実施の形態では、権限のレベルを1から4に設定しているが、レベルは、4段階でなくても良く、それ以上、それ以下に設定するようにしても良い。   (4) In the above embodiment, the authority level is set from 1 to 4, but the level does not have to be four, and may be higher or lower.

(5)上記実施の形態で示した機能種別の分類の仕方は一例に過ぎず、例えばより詳細に細分化しても良い。機能種別を最も細かく分類して例えばECU毎にECU内のデータの更新に係る権限のレベルを設定しても良い。   (5) The method of classifying the function types described in the above-described embodiment is merely an example, and may be, for example, more detailed. The function type may be categorized most finely, and for example, the level of authority for updating data in the ECU may be set for each ECU.

(6)実施の形態2では、電池残量条件2043として蓄電池800の満充電に対する割合(パーセント)により区別する例を示したが、蓄電池800の電圧等で区別しても良い。また、車両の外部に所在する外部電源から蓄電池800へ充電中か否かを区別する条件を設定しても良い。これにより、例えば、一定の共有鍵、ファームウェアの更新を充電中に限って許可すること等が実現できる。   (6) In the second embodiment, an example is described in which the remaining battery condition 2043 is distinguished by the percentage (percentage) of the storage battery 800 with respect to full charge, but may be distinguished by the voltage of the storage battery 800 or the like. Further, a condition for distinguishing whether or not the storage battery 800 is being charged from an external power supply located outside the vehicle may be set. As a result, for example, it is possible to permit updating of a certain shared key and firmware only during charging.

(7)実施の形態3では、共有鍵の有効期限が近付いた場合に、鍵更新アラートメッセージに基づき鍵更新の有効期限が近付いている旨等を示す情報(画面)を表示する例を示したが、その情報を繰り返し或いは継続的に表示しても良いし、有効期限が切れた場合に警告を報知(表示等)するようにしても良い。   (7) In the third embodiment, an example is shown in which, when the expiration date of the shared key is approaching, information (screen) indicating that the expiration date of the key update is approaching is displayed based on the key update alert message. However, the information may be displayed repeatedly or continuously, or a warning (e.g., display) may be issued when the expiration date has expired.

(8)実施の形態3では、共有鍵の有効期限切れの確認のために、マスタECU100aの時刻情報取得部180が計時機構で現在時刻を取得する例を示したが、WiFi(登録商標)、携帯電話のキャリア網から現在時刻を示す時刻情報を取得しても、GPS(Global Positioning System)信号から時刻情報を取得しても良い。また、マスタECU100aが、他のECUから時刻情報を取得しても良い。   (8) In the third embodiment, an example has been described in which the time information acquisition unit 180 of the master ECU 100a acquires the current time by a timekeeping mechanism in order to check the expiration date of the shared key. The time information indicating the current time may be obtained from the telephone carrier network, or the time information may be obtained from a GPS (Global Positioning System) signal. Further, master ECU 100a may acquire time information from another ECU.

(9)上記実施の形態で示した外部ツール30は、更新メッセージを、サーバから受信することで取得して、診断ポート600を介してマスタECUに転送しても良い。   (9) The external tool 30 described in the above embodiment may acquire the update message by receiving it from the server and transfer the acquired update message to the master ECU via the diagnostic port 600.

(10)上記実施の形態では、外部ツール30とマスタECUとの間で認証を行っているが、OBD2に準拠したコネクタ等である診断ポート600に、認証を担う電子回路(例えばメモリ、プロセッサ等)等を付加し、診断ポート600において外部ツール30の認証を行うこととしても良い。この場合に診断ポート600により外部ツール30の認証が完了していれば、マスタECUは外部ツール30の認証を省略し得る。なお、診断ポート600により外部ツール30の認証が完了していても上記実施の形態で示したように外部ツール30とマスタECUとの間で認証を行っても良い。なお、診断ポート600を、OBD2に準拠したコネクタ等でなく、他のコネクタで実現しても良い。また、診断ポート600を、無線通信回路を含めて実現することで外部ツール30との間で無線通信により接続できるようにしても良い。   (10) In the above embodiment, the authentication is performed between the external tool 30 and the master ECU. However, an electronic circuit (for example, a memory, a processor, etc.) responsible for the authentication is connected to the diagnostic port 600 which is a connector or the like compliant with the OBD2. ) May be added to authenticate the external tool 30 at the diagnostic port 600. In this case, if the authentication of the external tool 30 has been completed by the diagnostic port 600, the master ECU may omit the authentication of the external tool 30. Even if the authentication of the external tool 30 has been completed by the diagnostic port 600, the authentication may be performed between the external tool 30 and the master ECU as described in the above embodiment. The diagnostic port 600 may be realized by another connector instead of a connector or the like compliant with OBD2. Further, the diagnosis port 600 may be realized by including a wireless communication circuit so that the diagnosis port 600 can be connected to the external tool 30 by wireless communication.

(11)実施の形態2では、更新メッセージを受信したときにマスタECU100が電池残量の状態及び車両状態をチェックする例を示したが、電池残量及び車両状態のいずれか一方のみをチェックすることとしても良い。また、更新権限情報が権限のレベルを示すのみならず、実施の形態2で示した電池残量条件、車両状態条件等といった更新権限についての条件をも示すこととしても良い。例えば、更新権限情報は、車両状態条件として車両の状態である停車状態、又は、エンジンを停止した状態を特定し、車両が、特定したその状態であるときに更新メッセージを送信することを少なくとも1つの条件としてECUに更新を行わせる権限を外部ツールが有することを表すこととしても良い。また、例えば、更新権限情報は、電池残量条件としてECUに電力を供給する電池の残量の状態を特定し、その電池が、特定したその電池残量を有する状態であるときに更新メッセージを送信することを少なくとも1つの条件としてECUに更新を行わせる権限を外部ツールが有することを表すこととしても良い。そして、例えば、マスタECU100は、レベル情報2040における電池残量条件2043及び車両状態条件2044の代わりに、更新権限情報が示す電池残量条件、車両状態条件に基づいてチェック(ステップS2013b、S2013c)を行うようにしても良い。これにより、外部ツールに対して、外部ツールの信頼性等に応じて、一定の条件を付した権限を認定して、その条件及び権限のレベルを示す更新権限情報を記載した公開鍵証明書を発行するような運用が可能になる。   (11) In the second embodiment, the example in which master ECU 100 checks the state of the remaining battery and the state of the vehicle when receiving the update message has been described, but only one of the state of the battery and the state of the vehicle is checked. It is good. Further, the update authority information may indicate not only the authority level, but also the update authority conditions such as the remaining battery condition and the vehicle state condition described in the second embodiment. For example, the update authority information specifies, as the vehicle state condition, a stopped state, which is the state of the vehicle, or a state in which the engine has been stopped, and at least one state that the vehicle transmits an update message when the vehicle is in the specified state. One condition may be that the external tool has the authority to cause the ECU to update. Also, for example, the update authority information specifies the state of the remaining battery level for supplying power to the ECU as the remaining battery level condition, and sends an update message when the battery has the specified remaining battery level. The transmission may be represented as at least one condition indicating that the external tool has the authority to cause the ECU to perform the update. Then, for example, master ECU 100 performs a check (steps S2013b and S2013c) based on the remaining battery condition and the vehicle condition indicated by the update authority information instead of remaining battery condition 2043 and vehicle condition 2044 in level information 2040. It may be performed. As a result, the authority with a certain condition is recognized for the external tool according to the reliability of the external tool, etc., and the public key certificate that describes the updated authority information indicating the condition and the level of the authority is obtained. Operation such as issuing is possible.

(12)上記実施の形態では、CANプロトコルにおけるデータフレームを標準IDフォーマットで記述しているが、拡張IDフォーマットで合っても良い。拡張IDフォーマットの場合には、標準IDフォーマットにおけるID位置のベースIDと、拡張IDとを合わせて29ビットでメッセージIDを表す。   (12) In the above embodiment, the data frame in the CAN protocol is described in the standard ID format, but may be in the extended ID format. In the case of the extended ID format, the message ID is represented by 29 bits including the base ID of the ID position in the standard ID format and the extended ID.

(13)上記実施の形態では、外部ツール30が接続される診断ポート600とマスタECUとを繋ぐバス500dには他のECUが接続されていない例を示したが、ECUを接続しても良い。但し、マスタECU以外でバス500dに接続されるECUはそのデータ(共有鍵、ファームウェア等)を、外部ツール30(例えばマスタECUによる認証に成功してセッション鍵を得た外部ツール30)が送信する更新メッセージにより更新され得る。このため、例えば、更新の権限のレベルとして最も低いレベルに対応する機能種別の機能を有するECU等に限ってバス500dに接続することが有用となる。   (13) In the above-described embodiment, an example has been described in which another ECU is not connected to the bus 500d that connects the diagnostic port 600 to which the external tool 30 is connected and the master ECU, but an ECU may be connected. . However, an ECU other than the master ECU and connected to the bus 500d transmits the data (shared key, firmware, etc.) by the external tool 30 (for example, the external tool 30 that has been successfully authenticated by the master ECU and obtained the session key). It can be updated by an update message. For this reason, for example, it is useful to connect to the bus 500d only for an ECU or the like having a function of a function type corresponding to the lowest level of update authority.

(14)上記実施の形態では、外部ツール30が、認められた権限のレベルを超えてECUに更新を指示する更新メッセージを送信した場合にマスタECUが、その更新メッセージが、許可される更新メッセージであるか否かを判定し(ステップS1013)、許可される更新メッセージでなければエラー処理を行って(ステップS1014)、更新メッセージに対応した更新を抑止することとした。しかし、マスタECU以外のECU(例えば更新メッセージによる更新の指示対象となるECU)が、外部ツール30の更新権限情報に基づいて、更新を実行するか抑止するかを切り替えるようにしても良い。即ち、車載ネットワークシステムのいずれかのECUにおいて、外部ツール30から更新メッセージが送信された場合において、更新権限情報の検証が成功し、かつ、更新メッセージの送信が外部ツール30の権限範囲内であることを更新権限情報が示すときには、更新メッセージに対応して1つ又は複数のECUにより更新を実行し、その検証が失敗したとき、又は、更新メッセージの送信が外部ツール30の権限範囲内であることを更新権限情報が示さないときには、1つ又は複数のECUによる更新メッセージに対応した更新を抑止するようにしても良い。なお、実施の形態で示したようにマスタECUが一括して更新メッセージの転送を行うか否かを切り替える方式は、効率面で有用である。また、ゲートウェイ300で転送先のバスに接続されたECUの機能種別或いはそのECUが受信可能なメッセージIDを管理することとし、ゲートウェイ300が、更新メッセージを受信した場合に、転送先のバスに接続されたECUの機能種別或いはそのECUが受信可能なメッセージIDに基づいて、不要な更新メッセージの転送を行わないようにしても良い。   (14) In the above embodiment, when the external tool 30 transmits an update message instructing the ECU to update beyond the level of the authorized authority, the master ECU determines that the update message is an allowed update message. Is determined (step S1013), and if the message is not an allowed update message, error processing is performed (step S1014), and the update corresponding to the update message is suppressed. However, an ECU other than the master ECU (for example, an ECU to be instructed to update by an update message) may switch whether to execute or inhibit the update based on the update authority information of the external tool 30. That is, in one of the ECUs of the in-vehicle network system, when the update message is transmitted from the external tool 30, the verification of the update authority information is successful, and the transmission of the update message is within the authority range of the external tool 30. When the update authority information indicates that, the update is executed by one or more ECUs in response to the update message, and when the verification fails, or the transmission of the update message is within the authority range of the external tool 30. When the update authority information does not indicate that, the update corresponding to the update message by one or a plurality of ECUs may be suppressed. It is to be noted that a method in which the master ECU switches whether or not to transfer update messages collectively as described in the embodiment is useful in terms of efficiency. The gateway 300 manages the function type of the ECU connected to the transfer destination bus or the message ID receivable by the ECU. When the gateway 300 receives the update message, the gateway 300 connects to the transfer destination bus. Unnecessary transfer of the update message may not be performed based on the function type of the ECU or the message ID that the ECU can receive.

(15)上記実施の形態で示したマスタECU100、100a、ECU400a等の機能構成は、一例に過ぎず、上述した機能構成とは異なる機能分割を行っても良い。例えば、マスタECU100、100aは、送受信部101の受信機能に相当する受信部、判定部103における公開鍵証明書(更新権限情報を含む公開鍵証明書)の検証を担当する検証部、判定部103の一部とフレーム生成部120の一部とフレーム送受信部160の一部とに相当して更新メッセージの送信に係る制御を行う転送部とを含むこととしても良い。この場合に、例えば、受信部は、診断ポート600に接続された外部ツール30から診断ポート600を介して送信される、外部ツール30の権限を示す更新権限情報、及び、1つ又は複数のECUが保持するデータの更新を指示する更新メッセージを受信する機能を担う。また、検証部は、受信部により受信された更新権限情報を検証する機能を担う。また、転送部は、受信部により更新メッセージが受信された場合において、検証部による検証が成功し、かつ、更新メッセージの送信が外部ツール30の権限範囲内であることを更新権限情報が示すときには、更新メッセージをバス500bに転送し、検証部による検証が失敗したとき、又は、更新メッセージの送信が外部ツール30の権限範囲内であることを更新権限情報が示さないときには、転送を抑止する機能を担う。また、プロセッサを有するマスタECU100、100aにおいてプロセッサに実行される制御プログラムは、マスタECU100、100aに例えば次の所定の更新管理処理を実行させるためのプログラムであっても良い。所定の更新管理処理は、診断ポートに接続された外部ツールから診断ポートを介して送信される、その外部ツールの権限を示す更新権限情報を受信する更新権限情報受信ステップと、更新権限情報受信ステップにおいて受信された更新権限情報を検証する検証ステップと、外部ツールから診断ポートを介して送信される更新メッセージを受信する更新メッセージ受信ステップと、更新メッセージ受信ステップで更新メッセージが受信された場合において、検証ステップでの検証が成功しており、かつ、その更新メッセージの送信が外部ツールの権限範囲内であることを更新権限情報が示すときには、更新メッセージをECUとの通信用のバスに転送し、検証ステップでの検証が失敗したとき、又は、その更新メッセージの送信が外部ツールの権限範囲内であることを更新権限情報が示さないときには、転送を抑止する転送制御ステップとを含む。   (15) The functional configuration of the master ECUs 100, 100a, the ECU 400a, and the like described in the above embodiment is merely an example, and a functional division different from the above-described functional configuration may be performed. For example, master ECUs 100 and 100a include a receiving unit corresponding to the receiving function of transmitting / receiving unit 101, a verifying unit responsible for verifying a public key certificate (a public key certificate including update authority information) in determining unit 103, and a determining unit 103. , A part of the frame generation unit 120, and a part of the frame transmission / reception unit 160, and may include a transfer unit that controls the transmission of the update message. In this case, for example, the receiving unit transmits update authority information indicating authority of the external tool 30 transmitted from the external tool 30 connected to the diagnostic port 600 via the diagnostic port 600, and one or more ECUs. Has a function of receiving an update message instructing the update of the data held by. Further, the verification unit has a function of verifying the update authority information received by the reception unit. In addition, when the update message is received by the receiving unit, when the verification by the verification unit succeeds and the update authority information indicates that the transmission of the update message is within the authority range of the external tool 30, the transfer unit transmits the update message. Function to transfer the update message to the bus 500b and, when the verification by the verification unit fails, or when the update authority information does not indicate that the transmission of the update message is within the authority range of the external tool 30, the transfer is inhibited. Carry. Further, the control program executed by the processors in master ECUs 100 and 100a having a processor may be a program for causing master ECUs 100 and 100a to execute, for example, the following predetermined update management process. The predetermined update management process includes an update right information receiving step for receiving update right information transmitted from an external tool connected to the diagnostic port via the diagnostic port and indicating the right of the external tool, and an update right information receiving step A verification step of verifying the update authority information received in the update message receiving step of receiving an update message transmitted from the external tool via the diagnostic port, and when the update message is received in the update message receiving step, When the verification in the verification step is successful and the update authority information indicates that the transmission of the update message is within the authority range of the external tool, the update message is transferred to a bus for communication with the ECU, When the verification in the verification step fails, or when the update message is sent by an external tool When the update authority information does not indicate that it is within the limited range, and a transfer control step of inhibiting the transfer.

(16)上記実施の形態におけるマスタECU及び他のECUは、例えば、プロセッサ、メモリ等のデジタル回路、アナログ回路、通信回路等を含む装置であることとしたが、ハードディスク装置、ディスプレイ、キーボード、マウス等の他のハードウェア構成要素を含んでいても良い。また、メモリに記憶された制御プログラムがプロセッサにより実行されてソフトウェア的に機能を実現する代わりに、専用のハードウェア(デジタル回路等)によりその機能を実現することとしても良い。   (16) The master ECU and the other ECUs in the above embodiment are devices including, for example, a digital circuit such as a processor and a memory, an analog circuit, a communication circuit, and the like. However, a hard disk device, a display, a keyboard, and a mouse Etc. may be included. Instead of the control program stored in the memory being executed by the processor to realize the function in software, the function may be realized by dedicated hardware (digital circuit or the like).

(17)上記実施の形態における各装置を構成する構成要素の一部又は全部は、1個のシステムLSI(Large Scale Integration:大規模集積回路)から構成されているとしても良い。システムLSIは、複数の構成部を1個のチップ上に集積して製造された超多機能LSIであり、具体的には、マイクロプロセッサ、ROM、RAM等を含んで構成されるコンピュータシステムである。前記RAMには、コンピュータプログラムが記録されている。前記マイクロプロセッサが、前記コンピュータプログラムに従って動作することにより、システムLSIは、その機能を達成する。また、上記各装置を構成する構成要素の各部は、個別に1チップ化されていても良いし、一部又は全部を含むように1チップ化されても良い。また、ここでは、システムLSIとしたが、集積度の違いにより、IC、LSI、スーパーLSI、ウルトラLSIと呼称されることもある。また、集積回路化の手法はLSIに限るものではなく、専用回路又は汎用プロセッサで実現しても良い。LSI製造後に、プログラムすることが可能なFPGAや、LSI内部の回路セルの接続や設定を再構成可能なリコンフィギュラブル・プロセッサを利用しても良い。さらには、半導体技術の進歩又は派生する別技術によりLSIに置き換わる集積回路化の技術が登場すれば、当然、その技術を用いて機能ブロックの集積化を行っても良い。バイオ技術の適用等が可能性としてあり得る。   (17) A part or all of the components constituting each device in the above embodiment may be constituted by one system LSI (Large Scale Integration: large scale integrated circuit). The system LSI is a super-multifunctional LSI manufactured by integrating a plurality of components on one chip, and specifically, is a computer system including a microprocessor, a ROM, a RAM, and the like. . The RAM stores a computer program. When the microprocessor operates according to the computer program, the system LSI achieves its function. In addition, each unit of the constituent elements constituting each of the above devices may be individually formed into one chip, or may be formed into one chip so as to include a part or the whole. Although the system LSI is used here, it may be called an IC, an LSI, a super LSI, or an ultra LSI depending on the degree of integration. Further, the method of circuit integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. After manufacturing the LSI, an FPGA that can be programmed or a reconfigurable processor that can reconfigure the connection and setting of circuit cells inside the LSI may be used. Furthermore, if an integrated circuit technology that replaces the LSI appears due to the progress of the semiconductor technology or another derivative technology, the functional blocks may be integrated using the technology. Application of biotechnology and the like are possible.

(18)上記各装置を構成する構成要素の一部又は全部は、各装置に脱着可能なICカード又は単体のモジュールから構成されているとしても良い。前記ICカード又は前記モジュールは、マイクロプロセッサ、ROM、RAM等から構成されるコンピュータシステムである。前記ICカード又は前記モジュールは、上記の超多機能LSIを含むとしても良い。マイクロプロセッサが、コンピュータプログラムに従って動作することにより、前記ICカード又は前記モジュールは、その機能を達成する。このICカード又はこのモジュールは、耐タンパ性を有するとしても良い。   (18) A part or all of the constituent elements constituting each of the above devices may be constituted by an IC card or a single module that is detachable from each device. The IC card or the module is a computer system including a microprocessor, a ROM, a RAM, and the like. The IC card or the module may include the above-mentioned super multifunctional LSI. When the microprocessor operates according to the computer program, the IC card or the module achieves its function. This IC card or this module may have tamper resistance.

(19)本発明の一態様としては、上記に示す共有鍵更新シーケンス等の更新管理方法であるとしても良い。また、これらの方法をコンピュータにより実現するコンピュータプログラムであるとしても良いし、前記コンピュータプログラムからなるデジタル信号であるとしても良い。また、本発明の一態様としては、前記コンピュータプログラム又は前記デジタル信号をコンピュータで読み取り可能な記録媒体、例えば、フレキシブルディスク、ハードディスク、CD−ROM、MO、DVD、DVD−ROM、DVD−RAM、BD(Blu-ray(登録商標) Disc)、半導体メモリ等に記録したものとしても良い。また、これらの記録媒体に記録されている前記デジタル信号であるとしても良い。また、本発明の一態様としては、前記コンピュータプログラム又は前記デジタル信号を、電気通信回線、無線又は有線通信回線、インターネットを代表とするネットワーク、データ放送等を経由して伝送するものとしても良い。また、本発明の一態様としては、マイクロプロセッサとメモリを備えたコンピュータシステムであって、前記メモリは、上記コンピュータプログラムを記録しており、前記マイクロプロセッサは、前記コンピュータプログラムに従って動作するとしても良い。また、前記プログラム若しくは前記デジタル信号を前記記録媒体に記録して移送することにより、又は、前記プログラム若しくは前記デジタル信号を前記ネットワーク等を経由して移送することにより、独立した他のコンピュータシステムにより実施するとしても良い。   (19) One aspect of the present invention may be an update management method such as the above-described shared key update sequence. Further, these methods may be a computer program that is realized by a computer, or may be a digital signal formed by the computer program. Further, as one embodiment of the present invention, a computer-readable recording medium for reading the computer program or the digital signal, for example, a flexible disk, a hard disk, a CD-ROM, an MO, a DVD, a DVD-ROM, a DVD-RAM, and a BD (Blu-ray (registered trademark) Disc), semiconductor memory, or the like. Further, the digital signal may be recorded on these recording media. In one embodiment of the present invention, the computer program or the digital signal may be transmitted via an electric communication line, a wireless or wired communication line, a network represented by the Internet, a data broadcast, or the like. One embodiment of the present invention is a computer system including a microprocessor and a memory, wherein the memory stores the computer program, and the microprocessor operates according to the computer program. . Further, the program or the digital signal is recorded on the recording medium and transferred, or the program or the digital signal is transferred via the network or the like, so that it is implemented by another independent computer system. You may do it.

(20)上記実施の形態及び上記変形例で示した各構成要素及び機能を任意に組み合わせることで実現される形態も本発明の範囲に含まれる。   (20) A mode realized by arbitrarily combining the components and functions described in the above-described embodiment and the above-described modified examples is also included in the scope of the present invention.

本発明は、車載ネットワークにおいて外部ツールからのECUのファームウェア等の更新を管理して、不正な書き換え等のリスクを軽減するために利用可能である。   INDUSTRIAL APPLICABILITY The present invention can be used to manage the update of firmware and the like of an ECU from an external tool in an in-vehicle network and reduce the risk of unauthorized rewriting and the like.

10,10a 車載ネットワークシステム
20 鍵発行機関
21 メーカ
30,30a,30b 外部ツール
35 サーバ
101 送受信部
102,402 鍵保持部
103 判定部
104 レベル情報保持部
110,410 フレーム処理部
120,420 フレーム生成部
130,430 受信ID判断部
140,440 受信IDリスト保持部
150,450 フレーム解釈部
160,460 フレーム送受信部
180 時刻情報取得部
190 鍵更新確認部
200 ヘッドユニット
300 ゲートウェイ
310 エンジン
320 ブレーキ
330 ドア開閉センサ
340 窓開閉センサ
350 エアバッグ
470 データ取得部
500a〜500d バス
600 診断ポート
800 蓄電池
10, 10a In-vehicle network system 20 Key issuing organization 21 Maker 30, 30a, 30b External tool 35 Server 101 Transmitter / receiver 102, 402 Key holding unit 103 Judging unit 104 Level information holding unit 110, 410 Frame processing unit 120, 420 Frame generation unit 130,430 Receiving ID judging unit 140,440 Receiving ID list holding unit 150,450 Frame interpreting unit 160,460 Frame transmitting / receiving unit 180 Time information acquiring unit 190 Key update confirming unit 200 Head unit 300 Gateway 310 Engine 320 Brake 330 Door opening / closing sensor 340 Window opening / closing sensor 350 Airbag 470 Data acquisition unit 500a to 500d Bus 600 Diagnostic port 800 Storage battery

Claims (12)

車載ネットワークシステムにおける更新管理装置で実行される更新管理方法であって、
前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、
前記更新管理装置は、
前記複数の電子ユニットのうちの1つの電子ユニットであり、
前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いる共有鍵と、前記共有鍵の有効期限とを保持し、
前記更新管理方法は、
前記外部ツールの権限を示す更新権限情報の検証を行い、
前記更新権限情報の検証が成功し、かつ、前記外部ツールから、前記共有鍵の更新を指示する更新メッセージを受信した場合に、前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定を行い、
(i)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記更新メッセージを前記ネットワークに転送し、
(ii)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないと判定したときには、前記転送を抑止し、
現在時刻が前記有効期限内であるかどうかを判断し、前記有効期限の一定時間前、又は、前記有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する
更新管理方法。
An update management method executed by an update management device in an in-vehicle network system,
The in-vehicle network system includes a plurality of electronic control units that communicate via a network, an external tool is connected,
The update management device,
One electronic unit of the plurality of electronic units;
Holding a shared key used for transmitting a first session key for encryption processing between the update management device and an electronic control unit other than the update management device, and an expiration date of the shared key;
The update management method includes:
Verify the update authority information indicating the authority of the external tool,
When the verification of the update authority information is successful, and the update message instructing the update of the shared key is received from the external tool, the transmission of the update message by the external tool is within the authority range of the external tool. Is determined whether or not
(I) when it is determined that the update authority information indicates that the transmission of the update message by the external tool is within the authority range of the external tool, the update message is transferred to the network;
(Ii) when it is determined that the update authority information does not indicate that the transmission of the update message by the external tool is within the authority range of the external tool, the transfer is suppressed;
Determining whether the current time is within the expiration date, and transmitting an alert message urging the shared key to be updated when a predetermined time before the expiration date or when the expiration date has passed; .
前記複数の電子制御ユニットは、Controller Area Network(CAN)プロトコルに従って通信し、
前記外部ツールは、CANプロトコルに従って前記更新メッセージを送信する
請求項1記載の更新管理方法。
The plurality of electronic control units communicate according to a Controller Area Network (CAN) protocol;
The update management method according to claim 1, wherein the external tool transmits the update message according to a CAN protocol.
前記外部ツールからの前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定は、前記更新メッセージのメッセージIDに基づいて、判定し、前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記メッセージIDを有する前記更新メッセージを受信するように定められている前記電子制御ユニットに対して前記更新を実行する
請求項2記載の更新管理方法。
The determination as to whether the transmission of the update message from the external tool is within the authority range of the external tool is made based on the message ID of the update message. When it is determined that the update authority information indicates that the update authority information is within the authority range, the update is performed on the electronic control unit that is determined to receive the update message having the message ID. Update management method described.
前記更新権限情報は、前記電子制御ユニットの分類用の複数の機能種別のうち1つ又は複数の機能種別を特定し、特定した当該1つ又は複数の機能種別のいずれかに分類される前記電子制御ユニットに前記更新を行わせる権限を前記外部ツールが有することを表し、
前記更新メッセージのメッセージIDに基づいて、前記メッセージIDを受信するように定められている前記電子制御ユニットの機能種別が、前記更新権限情報により特定される1つ又は複数の機能種別のいずれかと一致するか否かを判別することにより、前記判定を行う
請求項3記載の更新管理方法。
The update authority information specifies one or more function types among the plurality of function types for classification of the electronic control unit, and the electronic control unit classifies the electronic control unit into one of the specified one or more function types. Represents that the external tool has authority to cause the control unit to perform the update,
Based on the message ID of the update message, a function type of the electronic control unit determined to receive the message ID matches one of one or more function types specified by the update authority information. The update management method according to claim 3, wherein the determination is performed by determining whether to perform the update.
前記更新権限情報は、1つ又は複数の前記機能種別を特定するための複数のレベルのうち1つのレベルを示し、相対的に高いレベルは、相対的に低いレベルが特定する1つ又は複数の機能種別を包含した複数の機能種別を特定する
請求項4記載の更新管理方法。
The update authority information indicates one level of a plurality of levels for specifying one or a plurality of the function types, and a relatively high level indicates one or a plurality of levels specified by a relatively low level. The update management method according to claim 4, wherein a plurality of function types including the function types are specified.
前記車載ネットワークシステムを搭載する車両の状態が所定状態でないときには、前記更新メッセージの前記ネットワークへの転送を抑止する
請求項1記載の更新管理方法。
The update management method according to claim 1, wherein transfer of the update message to the network is suppressed when a state of a vehicle equipped with the on-vehicle network system is not a predetermined state.
前記車載ネットワークシステムにおける各電子制御ユニットに電力を供給する電池が所定電池残量を有さないときには、前記更新メッセージの前記ネットワークへの転送を抑止する
請求項1記載の更新管理方法。
The update management method according to claim 1, wherein transfer of the update message to the network is suppressed when a battery that supplies power to each electronic control unit in the in-vehicle network system does not have a predetermined remaining battery level.
(i)前記車載ネットワークシステムを、複数の車載ネットワークシステムの中で識別する識別情報と、(ii)前記更新メッセージの処理結果を示す結果情報とを前記外部ツールに送信する
請求項1記載の更新管理方法。
The update according to claim 1, wherein (i) transmitting identification information for identifying the in-vehicle network system among a plurality of in-vehicle network systems, and (ii) result information indicating a processing result of the update message to the external tool. Management method.
前記更新メッセージが指示する、前記電子制御ユニットが保持するデータの前記更新は、前記電子制御ユニットのファームウェアの更新である
請求項1記載の更新管理方法。
The update management method according to claim 1, wherein the update of the data held by the electronic control unit, which is indicated by the update message, is an update of firmware of the electronic control unit.
前記アラートメッセージは、ディスプレイを制御する電子制御ユニットに送信する、
請求項1記載の更新管理方法。
Sending the alert message to an electronic control unit controlling a display;
The update management method according to claim 1.
車載ネットワークシステムにおける更新管理装置であって、
前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、
前記更新管理装置は、
前記複数の電子ユニットのうちの1つの電子ユニットであり、
前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いられる共有鍵と、前記共有鍵の有効期限とを保持する保持部と、
前記外部ツールから前記外部ツールの権限を示す更新権限情報、及び、前記共有鍵の更新を指示する更新メッセージを、受信する受信部と、
前記受信部により受信された前記更新権限情報を検証する検証部と、
前記検証部による検証が成功し、前記受信部により前記更新メッセージが受信された場合において、(i)前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すときには、前記更新メッセージを前記ネットワークに転送し、(ii)当該更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないときには、前記転送を抑止する転送部と、
現在時刻が前記有効期限内であるかどうかを判断する判断部と、
前記有効期限の一定時間前、又は、有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する送信部とを備える
更新管理装置。
An update management device in an in-vehicle network system,
The in-vehicle network system includes a plurality of electronic control units that communicate via a network, an external tool is connected,
The update management device,
One electronic unit of the plurality of electronic units;
A shared key used for transmitting a first session key for encryption processing between the update management device and an electronic control unit other than the update management device, and a holding unit for holding an expiration date of the shared key;
Update authority information indicating the authority of the external tool from the external tool, and a receiving unit that receives an update message instructing the update of the shared key,
A verification unit that verifies the update authority information received by the reception unit,
When the verification by the verification unit is successful and the update message is received by the reception unit, (i) when the update authority information indicates that the transmission of the update message is within the authority range of the external tool, A transfer unit that transfers the update message to the network, and (ii) when the update authority information does not indicate that the transmission of the update message is within the authority range of the external tool, suppresses the transfer;
A determining unit for determining whether the current time is within the expiration date,
A transmission unit that transmits an alert message urging the shared key to be updated when the expiration date has passed a predetermined time or when the expiration date has passed.
車載ネットワークシステムにおける更新管理装置を制御するための制御プログラムであって、
前記車載ネットワークシステムは、ネットワークを介して通信を行う複数の電子制御ユニットを備え、外部ツールが接続され、
前記更新管理装置は、
前記複数の電子制御ユニットのうちの1つの前記電子制御ユニットであり、
前記更新管理装置と前記更新管理装置以外の電子制御ユニットとの間の暗号処理用の第1のセッション鍵の伝達に用いる共有鍵と、前記共有鍵の有効期限とを保持し、
前記制御プログラムは、
前記外部ツールの権限を示す更新権限情報の検証を行い、
前記更新権限情報の検証が成功し、かつ、前記外部ツールから、前記共有鍵の更新を指示する更新メッセージを受信した場合に、前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であるか否かの判定を行い、
(i)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示すと判定したときには、前記更新メッセージを前記ネットワークに転送し、
(ii)前記外部ツールによる前記更新メッセージの送信が前記外部ツールの権限範囲内であることを前記更新権限情報が示さないと判定したときには、前記転送を抑止し、
現在時刻が前記有効期限内であるかどうかを判断し、前記有効期限の一定時間前、又は、前記有効期限が過ぎている場合に、前記共有鍵の更新を促すアラートメッセージを送信する
制御プログラム。
A control program for controlling an update management device in an in-vehicle network system,
The in-vehicle network system includes a plurality of electronic control units that communicate via a network, an external tool is connected,
The update management device,
The electronic control unit of one of the plurality of electronic control units,
Holding a shared key used for transmitting a first session key for encryption processing between the update management device and an electronic control unit other than the update management device, and an expiration date of the shared key;
The control program includes:
Verify the update authority information indicating the authority of the external tool,
When the verification of the update authority information is successful, and when an update message instructing the update of the shared key is received from the external tool, the transmission of the update message by the external tool is within the authority range of the external tool. Is determined whether or not
(I) when it is determined that the update authority information indicates that the transmission of the update message by the external tool is within the authority range of the external tool, the update message is transferred to the network;
(Ii) when it is determined that the update authority information does not indicate that the transmission of the update message by the external tool is within the authority range of the external tool, the transfer is suppressed;
A control program that determines whether a current time is within the expiration date, and transmits an alert message urging the update of the shared key when a predetermined time before the expiration date or when the expiration date has passed.
JP2019204428A 2014-11-12 2019-11-12 Update management method, update management device and control program Active JP6835935B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201462078476P 2014-11-12 2014-11-12
US62/078,476 2014-11-12
JP2015187536 2015-09-24
JP2015187536 2015-09-24

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016558862A Division JP6618480B2 (en) 2014-11-12 2015-10-13 Update management method, update management system, and control program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2021016351A Division JP7116204B2 (en) 2014-11-12 2021-02-04 UPDATE MANAGEMENT METHOD, UPDATE MANAGEMENT DEVICE AND CONTROL PROGRAM

Publications (2)

Publication Number Publication Date
JP2020048203A true JP2020048203A (en) 2020-03-26
JP6835935B2 JP6835935B2 (en) 2021-02-24

Family

ID=69901864

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2019204428A Active JP6835935B2 (en) 2014-11-12 2019-11-12 Update management method, update management device and control program
JP2021016351A Active JP7116204B2 (en) 2014-11-12 2021-02-04 UPDATE MANAGEMENT METHOD, UPDATE MANAGEMENT DEVICE AND CONTROL PROGRAM

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2021016351A Active JP7116204B2 (en) 2014-11-12 2021-02-04 UPDATE MANAGEMENT METHOD, UPDATE MANAGEMENT DEVICE AND CONTROL PROGRAM

Country Status (1)

Country Link
JP (2) JP6835935B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114056257A (en) * 2020-07-30 2022-02-18 丰田自动车株式会社 Vehicle-mounted system
CN115118606A (en) * 2021-03-17 2022-09-27 阿自倍尔株式会社 Network configuration verification device and method
CN116054312A (en) * 2022-11-22 2023-05-02 江苏为恒智能科技有限公司 Authority control method for grading safety of battery energy storage system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003343133A (en) * 2002-03-20 2003-12-03 Matsushita Electric Ind Co Ltd System and device for digital key
WO2009147734A1 (en) * 2008-06-04 2009-12-10 株式会社ルネサステクノロジ Vehicle, maintenance device, maintenance service system, and maintenance service method
JP2010271952A (en) * 2009-05-21 2010-12-02 Toshiba Corp Data management device for distributed control system
JP2012103181A (en) * 2010-11-12 2012-05-31 Clarion Co Ltd Online updating method of on-vehicle device
JP2013141948A (en) * 2012-01-12 2013-07-22 Denso Corp Vehicle communication system
US20140074318A1 (en) * 2012-09-10 2014-03-13 Samsung Electronics Co. Ltd. Vehicle information processing system and method
JP2014168219A (en) * 2013-01-31 2014-09-11 Auto Network Gijutsu Kenkyusho:Kk Access limiting device, on-vehicle communication system and communication limiting method
KR101450166B1 (en) * 2014-01-23 2014-10-13 현대자동차주식회사 Method and apparatus for updating routing information in in-vehicle communication network

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002144983A (en) 2000-11-14 2002-05-22 Toyoda Mach Works Ltd Method and device for changing control software of vehicle control device
JP2004028000A (en) 2002-06-27 2004-01-29 Mitsubishi Electric Corp Memory rewriting device of on-vehicle ecu by communication
JP4931957B2 (en) 2009-04-23 2012-05-16 本田技研工業株式会社 Vehicle function management system
JP5218366B2 (en) 2009-10-07 2013-06-26 トヨタ自動車株式会社 Vehicle program update device
JP5605294B2 (en) 2011-04-15 2014-10-15 トヨタ自動車株式会社 Authentication system and authentication method
JP2013137729A (en) 2011-11-29 2013-07-11 Auto Network Gijutsu Kenkyusho:Kk Program rewriting system, control device, program distribution device, identification information storage device, and method for rewriting program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003343133A (en) * 2002-03-20 2003-12-03 Matsushita Electric Ind Co Ltd System and device for digital key
WO2009147734A1 (en) * 2008-06-04 2009-12-10 株式会社ルネサステクノロジ Vehicle, maintenance device, maintenance service system, and maintenance service method
JP2010271952A (en) * 2009-05-21 2010-12-02 Toshiba Corp Data management device for distributed control system
JP2012103181A (en) * 2010-11-12 2012-05-31 Clarion Co Ltd Online updating method of on-vehicle device
JP2013141948A (en) * 2012-01-12 2013-07-22 Denso Corp Vehicle communication system
US20140074318A1 (en) * 2012-09-10 2014-03-13 Samsung Electronics Co. Ltd. Vehicle information processing system and method
JP2014168219A (en) * 2013-01-31 2014-09-11 Auto Network Gijutsu Kenkyusho:Kk Access limiting device, on-vehicle communication system and communication limiting method
KR101450166B1 (en) * 2014-01-23 2014-10-13 현대자동차주식회사 Method and apparatus for updating routing information in in-vehicle communication network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114056257A (en) * 2020-07-30 2022-02-18 丰田自动车株式会社 Vehicle-mounted system
CN114056257B (en) * 2020-07-30 2024-03-15 丰田自动车株式会社 Vehicle-mounted system
CN115118606A (en) * 2021-03-17 2022-09-27 阿自倍尔株式会社 Network configuration verification device and method
CN115118606B (en) * 2021-03-17 2024-03-26 阿自倍尔株式会社 Network configuration verification device and method
CN116054312A (en) * 2022-11-22 2023-05-02 江苏为恒智能科技有限公司 Authority control method for grading safety of battery energy storage system

Also Published As

Publication number Publication date
JP2021082323A (en) 2021-05-27
JP7116204B2 (en) 2022-08-09
JP6835935B2 (en) 2021-02-24

Similar Documents

Publication Publication Date Title
JP7334312B2 (en) UPDATE MANAGEMENT METHOD, UPDATE MANAGEMENT DEVICE AND CONTROL PROGRAM
JP6873198B2 (en) Fraud detection rule update method, fraud detection electronic control unit and in-vehicle network system
JP7116204B2 (en) UPDATE MANAGEMENT METHOD, UPDATE MANAGEMENT DEVICE AND CONTROL PROGRAM
EP3403246B1 (en) A device and method for collecting user-based insurance data in vehicles
WO2017217070A1 (en) System, certification authority, vehicle-mounted computer, vehicle, public key certificate issuance method, and program
WO2016075869A1 (en) Key management method, vehicle-mounted network system and key management device
WO2009147734A1 (en) Vehicle, maintenance device, maintenance service system, and maintenance service method
WO2015080108A1 (en) Program update system and program update method
US20130212659A1 (en) Trusted connected vehicle systems and methods
JP6190443B2 (en) In-vehicle computer system, vehicle, management method, and computer program
US11182485B2 (en) In-vehicle apparatus for efficient reprogramming and controlling method thereof
JP7412506B2 (en) Fraud detection rule update method, fraud detection electronic control unit and in-vehicle network system
JP2018055566A (en) Maintenance device, maintenance method, and computer program
KR102436138B1 (en) Method and system for replacing vehicle parts using in-vehicle network based on vehicle ethernet
CN118018280A (en) Method, device, vehicle and storage medium for vehicle data transmission

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191112

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210204

R150 Certificate of patent or registration of utility model

Ref document number: 6835935

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150