JP2014113952A - In-vehicle system - Google Patents

In-vehicle system Download PDF

Info

Publication number
JP2014113952A
JP2014113952A JP2012270499A JP2012270499A JP2014113952A JP 2014113952 A JP2014113952 A JP 2014113952A JP 2012270499 A JP2012270499 A JP 2012270499A JP 2012270499 A JP2012270499 A JP 2012270499A JP 2014113952 A JP2014113952 A JP 2014113952A
Authority
JP
Japan
Prior art keywords
ecu
gateway
electronic control
information
communication path
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
JP2012270499A
Other languages
Japanese (ja)
Other versions
JP5884716B2 (en
Inventor
Hiroya Ando
博哉 安藤
Nobuyuki Nakagawa
信之 中川
Yuta Ochiai
勇太 落合
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.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2012270499A priority Critical patent/JP5884716B2/en
Publication of JP2014113952A publication Critical patent/JP2014113952A/en
Application granted granted Critical
Publication of JP5884716B2 publication Critical patent/JP5884716B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an in-vehicle system which secures a communication path for stable update if an update source device updates software of an update device through a plurality of networks.SOLUTION: An in-vehicle system 500 which is connected to a plurality of networks 1 to 4 connected with an electronic control device 14 through a relay device 12 comprises structure reproduction means 42 for reproducing a network structure on the basis of the electronic control device list linked to the relay device, and communication path determination means 43 for determining a communication path capable of transmitting software from the first electronic control device to the second electronic control device on the basis of communication path determination information and the network structure to transmit software of an update device through the communication path.

Description

本発明は、1つ以上の電子制御装置が接続されたネットワークが中継装置を介して複数個接続された車載システムに関する。   The present invention relates to an in-vehicle system in which a plurality of networks to which one or more electronic control devices are connected are connected via a relay device.

車両には多くのECU(Electronic Control Unit)が搭載されている。ECUの不揮発メモリにはソフトウェアが記憶されているが、他の多くの組み込みソフトウェアと同様に、機能を向上させるなどの理由でソフトウェアが書き換えられる場合がある。ソフトウェアの書き換えが途中で中断すると機器の起動が困難になるため、従来から書き換えの中断に対応するための技術が考えられている(例えば、特許文献1参照。)。特許文献1には、差分データによりソフトウェアを書き換える携帯端末であって、電源異常からの復旧時に、書き換え処理中情報が記録されていた場合に書き換え中のブロック番号と対象ソフトウェア情報を読み出してソフトウェア配信サーバに送信し、書き換え中以降のブロック番号のソフトウェアから書き換え処理を再開する携帯端末が開示されている。   Many ECUs (Electronic Control Units) are mounted on the vehicle. Although software is stored in the nonvolatile memory of the ECU, as with many other embedded software, the software may be rewritten for reasons such as improving functions. If the software rewrite is interrupted in the middle, it becomes difficult to start up the device. Conventionally, a technique for dealing with the interruption of the rewrite has been considered (for example, see Patent Document 1). Patent Document 1 discloses a mobile terminal that rewrites software using difference data, and when rewriting processing information is recorded at the time of recovery from a power failure, the block number being rewritten and target software information are read and software distribution is performed. There has been disclosed a portable terminal that transmits to a server and restarts the rewriting process from software having a block number after rewriting.

特開2005−078502号公報JP 2005-078502 A

しかしながら、以下のような理由で、車両のECUには特許文献1のような技術は適用しにくい。車両に搭載されるECUは数が多いため、車両では、階層的に構築された複数のLANに各ECUが所属する構成になっている。ソフトウェアの書き換え対象となるECUが下位の階層のLANに所属している場合、書き換えを行う上位層のECUは、階層を辿って書き換え対象のECUと通信する。しかし、書き換え対象のECUに電源異常が生じていなくても、経路上のECUに電源異常が生じる場合があり、書き換えを行うECUや書き換え対象のECUはその電源異常を把握できない。この場合、電源異常が生じたため、書き換え対象のECUは書き換え途中のプログラムの場所等を記憶することなく、突然、書き換えが停止してしまう。   However, for the following reasons, it is difficult to apply the technique as disclosed in Patent Document 1 to a vehicle ECU. Since there are many ECUs mounted on a vehicle, each ECU belongs to a plurality of hierarchically constructed LANs. When the ECU to be rewritten belongs to a lower-level LAN, the upper-layer ECU that performs rewriting traces the hierarchy and communicates with the ECU to be rewritten. However, even if there is no power supply abnormality in the ECU to be rewritten, a power supply abnormality may occur in the ECU on the route, and the ECU that performs rewriting or the ECU that is to be rewritten cannot grasp the power supply abnormality. In this case, since the power supply abnormality has occurred, the rewriting target ECU suddenly stops rewriting without storing the location of the program being rewritten.

したがって、書き換え対象のECUの電源異常を考慮するだけでは車両のECUのソフトウェアを安定して書き換えることは困難である。   Therefore, it is difficult to stably rewrite the ECU software of the vehicle only by considering the power supply abnormality of the ECU to be rewritten.

本発明は、上記課題に鑑み、更新元の機器が複数のネットワークを介して更新機器のソフトウェアを書き換える場合に、安定して書き換えが可能な通信経路を確保する車載システムを提供することを目的とする。   An object of the present invention is to provide an in-vehicle system that secures a communication path that can be stably rewritten when an update source device rewrites software of an update device via a plurality of networks. To do.

本発明は、1つ以上の電子制御装置が接続されたネットワークが中継装置を介して階層的に接続された車載システムにおいて、ソフトウェアを外部から取得する第1の電子制御装置と、前記第1の電子制御装置と異なるネットワークに接続され、ソフトウェアを記憶する第2の電子制御装置と、を有し、前記中継装置は、予め定められた側のネットワークに接続された他の中継装置の通信経路決定情報(例えば、電源状態情報、消費電力情報)を記憶した通信経路決定情報記憶手段と、前記側のネットワークに流れるデータを監視して該ネットワークに接続された前記他の中継装置を含む電子制御装置の電子制御装置リストを作成する識別情報作成手段と、前記第1の電子制御装置側のネットワークに、当該中継装置が記憶する前記通信経路決定情報と当該中継装置が作成し当該中継装置に対応づけられた前記電子制御装置リストを送信し、及び、前記側のネットワークに接続された前記他の中継装置から受信した前記通信経路決定情報と前記電子制御装置リストを転送する情報送信手段と、を有し、前記第1の電子制御装置は、前記中継装置から、前記通信経路決定情報と前記中継装置に対応づけられた前記電子制御装置リストを受信する情報受信手段と、前記中継装置に対応づけられた前記電子制御装置リストに基づきネットワーク構造を再現する構造再現手段と、前記通信経路決定情報及び前記ネットワーク構造に基づきに基づき、当該第1の電子制御装置から前記第2の電子制御装置までソフトウェアを送信可能な通信経路を決定する通信経路決定手段と、を有することを特徴とする。   The present invention relates to a first electronic control device that obtains software from the outside in an in-vehicle system in which a network to which one or more electronic control devices are connected is hierarchically connected via a relay device, and the first A second electronic control unit connected to a network different from the electronic control unit and storing software, and the relay unit determines a communication path of another relay unit connected to a predetermined network An electronic control device including communication path determination information storage means storing information (for example, power status information, power consumption information), and the other relay device connected to the network by monitoring data flowing in the network on the side Identification information creating means for creating the electronic control device list, and the communication path stored in the relay device in the network on the first electronic control device side And the communication path determination information received from the other relay device connected to the network on the side, and the electronic control device list created by the relay device and associated with the relay device. Information transmitting means for transferring the electronic control device list, wherein the first electronic control device receives the communication path determination information and the electronic control device list associated with the relay device from the relay device. Information receiving means for receiving information, structure reproducing means for reproducing the network structure based on the electronic control device list associated with the relay device, and based on the communication path determination information and the network structure, the first Communication path determination means for determining a communication path through which software can be transmitted from the electronic control apparatus to the second electronic control apparatus. And butterflies.

更新元の機器が複数のネットワークを介して更新機器のソフトウェアを更新する場合に、安定して更新が可能な通信経路を確保する車載システムを提供することができる。   When the update source device updates the software of the update device via a plurality of networks, it is possible to provide an in-vehicle system that secures a communication path that can be stably updated.

本実施例のECUのソフトウェアの書き換え方法を説明する図の一例である。It is an example of the figure explaining the rewriting method of the software of ECU of a present Example. 外部から車両100のECUのソフトウェアを書き換えるための構成例を説明する図の一例である。It is an example of the figure explaining the structural example for rewriting the software of ECU of the vehicle 100 from the outside. 車載ネットワークの概略構成図の一例を示す。An example of a schematic block diagram of a vehicle-mounted network is shown. ゲートウェイECU1〜4、書き換え対象ECU及びECUの機能ブロック図の一例である。It is an example of the functional block diagram of gateway ECU1-4, rewriting object ECU, and ECU. 電源状態情報、配下ECU情報の一例を示す図である。It is a figure which shows an example of power supply status information and subordinate ECU information. 経路の決定について説明する図の一例である。It is an example of the figure explaining determination of a path | route. ゲートウェイECU1がソフトウェアを更新する手順を示すフローチャート図の一例である。It is an example of the flowchart figure which shows the procedure in which gateway ECU1 updates software. ゲートウェイECU1〜4、書き換え対象ECU及びECUの機能ブロック図の一例である(実施例2)。It is an example of the functional block diagram of gateway ECU1-4, rewriting object ECU, and ECU (Example 2). 消費電力情報の一例を示す図である。It is a figure which shows an example of power consumption information. 消費電力に基づきゲートウェイECU1からオートクルーズECUまでの通信経路の決定方法について説明する図の一例である。It is an example of the figure explaining the determination method of the communication path from gateway ECU1 to auto-cruise ECU based on power consumption. 車載ネットワークがソフトウェアを更新する手順を示すフローチャート図の一例を示す。An example of the flowchart figure which shows the procedure in which a vehicle-mounted network updates software is shown.

以下、本発明を実施するための形態について図面を参照しながら説明する。しかしながら、本発明の技術的範囲が本実施の形態に限定されるものではない。   Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to this embodiment.

図1は、本実施例のECUのソフトウェアの書き換え方法を説明する図の一例である。書き換えECU(Electronic Control Unit)は、他のECUのソフトウェアの書き換えを判断、制御するECUである。
(i) 各ECU1〜4とゲートウェイECU1〜3(書き換えECU以外のECU)は矢印で示すように、自機が通信可能な電源状態を、所属するLAN1〜3に送信する。各LAN1〜3にはゲートウェイECU1〜3が接続されているので、ゲートウェイECU1〜3は通信可能な電源状態と共に、配下のECUを特定する。
(ii) 各ゲートウェイECU1〜3は自己よりも上位の階層のLANに、収集した通信可能な電源状態と配下ECU情報を送信する。最終的に書き換えECUは全てのECUの通信可能な電源状態と各ゲートウェイECU1〜3の配下ECU情報を取得する。
(iii) そして、書き換えECUは書き換え対象ECU(例えばECU3)のソフトウェアの書き換えを行う際、車両の現在の電源状態で通信可能なゲートウェイECU1〜3を判断して、ECU3までの通信経路を決定する。そしてこの通信経路でソフトウェアを書き換える。
FIG. 1 is an example of a diagram illustrating a software rewriting method of the ECU according to the present embodiment. The rewriting ECU (Electronic Control Unit) is an ECU that determines and controls rewriting of software of another ECU.
(i) Each of the ECUs 1 to 4 and the gateway ECUs 1 to 3 (ECUs other than the rewriting ECU) transmit, to the LANs 1 to 3 to which they belong, as shown by arrows, the power supply state with which the own device can communicate. Since the gateway ECUs 1 to 3 are connected to the LANs 1 to 3, the gateway ECUs 1 to 3 specify subordinate ECUs together with a communicable power supply state.
(ii) Each of the gateway ECUs 1 to 3 transmits the collected communicable power supply state and subordinate ECU information to the LAN in a higher hierarchy than itself. Finally, the rewritten ECU acquires the power state in which all the ECUs can communicate and the subordinate ECU information of the gateway ECUs 1 to 3.
(iii) Then, when rewriting the software of the rewriting target ECU (for example, ECU 3), the rewriting ECU determines the gateway ECUs 1 to 3 that can communicate in the current power state of the vehicle, and determines the communication path to the ECU 3. . The software is rewritten on this communication path.

例えば、現在、ACC(アクセサリー)という電源状態の場合、書き換えECUはACCで通信可能なゲートウェイECU(図ではゲートウェイECU3とゲートウェイECU2)を経路としてLAN3のECU3のソフトウェアを書き換える。   For example, when the power supply state is ACC (accessory) at present, the rewriting ECU rewrites the software of the ECU 3 of the LAN 3 through the gateway ECU (gateway ECU 3 and gateway ECU 2 in the figure) that can communicate with the ACC as a route.

したがって、本実施例の書き換え方法によれば、車載ネットワークのように複数のLANが階層的に構成され複数のLANを経由してソフトウェアの書き換えが行われる場合でも、常に電源状態の安定した経路を選択できるため、正常に書き換えを行うことが可能になる。   Therefore, according to the rewriting method of the present embodiment, even when a plurality of LANs are hierarchically configured as in an in-vehicle network and software is rewritten via the plurality of LANs, a stable path in the power supply state is always provided. Since it can be selected, rewriting can be performed normally.

なお、本実施例の階層とは、複数のLANがゲートウェイECUで接続されており、ゲートウェイECUに書き換えECUの側のネットワークが設定されていることをいう。ソフトウェアが送信される側を上流側とすると、ゲートウェイECUから見て書き換えECUが所属するLANの側が上流側、書き換え対象のECUが所属するLANの側(複数あってもよい)が下流側である。また、本実施例では、ゲートウェイECUから見て下流のLANに所属するECUを"配下のECU"と称する場合がある。   In addition, the hierarchy of a present Example means that the some LAN is connected by gateway ECU, and the network by the side of rewriting ECU is set to gateway ECU. Assuming that the software transmission side is the upstream side, the LAN side to which the rewriting ECU belongs as viewed from the gateway ECU is the upstream side, and the LAN side (a plurality of LANs) to which the ECU to be rewritten belongs is the downstream side. . In this embodiment, an ECU belonging to a downstream LAN as viewed from the gateway ECU may be referred to as a “subordinate ECU”.

〔構成例〕
図2は、外部から車両100のECUのソフトウェアを書き換えるための構成例を説明する図の一例である。ECUはエンジンなどの各種の車載装置を制御する制御装置で、電子制御装置と呼ばれることもある。図2(a)は車載ネットワークに有線で接続された書き換えツール200から書き換えECUがソフトウェアを取得し書き換え対象のECUのソフトウェアを書き換える構成例を示す。図2(b)はネットワーク300を介して送信されたソフトウェアを車両100が受信し書き換えECUが書き換え対象のECUのソフトウェアを書き換える構成例を示す。
[Configuration example]
FIG. 2 is an example of a diagram illustrating a configuration example for rewriting the ECU software of the vehicle 100 from the outside. The ECU is a control device that controls various on-vehicle devices such as an engine, and is sometimes called an electronic control device. FIG. 2A shows a configuration example in which the rewriting ECU acquires software from the rewriting tool 200 connected to the in-vehicle network by wire and rewrites the software of the ECU to be rewritten. FIG. 2B shows a configuration example in which the vehicle 100 receives the software transmitted via the network 300 and the rewriting ECU rewrites the software of the ECU to be rewritten.

車両100の例えば運転席には書き換えツール200を接続するためのコネクタが配置されている。コネクタの形状や電気信号は規格で定められており、ソフトウェアの書き換え以外にも故障診断に使用される。このような規格には、OBD(On-Board Diagnostics)、WWH−OBD(World Wide Harmonized-OBD)、KWP(Keyword Protocol)、UDS(Unified Diagnostic Services)等がある。また、コネクタはOBDコネクタ(OBD-IIコネクタ)、DLCコネクタ、故障診断コネクタなどと呼ばれている。書き換えツール200はLANに直接、接続され他のECUと同様にLANを流れるCAN(Controller Area Network)フレームを受信したり、LANにCANフレームを送信することができる。   For example, a connector for connecting the rewriting tool 200 is disposed in the driver's seat of the vehicle 100. The shape of the connector and electrical signals are defined by the standard, and are used for fault diagnosis in addition to rewriting software. Such standards include OBD (On-Board Diagnostics), WWH-OBD (World Wide Harmonized-OBD), KWP (Keyword Protocol), UDS (Unified Diagnostic Services), and the like. The connector is called an OBD connector (OBD-II connector), a DLC connector, a failure diagnosis connector, or the like. The rewriting tool 200 is directly connected to the LAN and can receive a CAN (Controller Area Network) frame that flows through the LAN like other ECUs, or can transmit a CAN frame to the LAN.

なお、車両100と書き換えツール200は有線で接続しなければならないわけではなく、無線LANやBluetooth(登録商標)などの無線で接続されてもよい。また、CANによる車載ネットワークは一例であり、Lin(Local Interconnect Network)、FlexRay、イーサネット(登録商標)などでもよい。   Note that the vehicle 100 and the rewriting tool 200 do not have to be connected by wire, and may be connected wirelessly such as a wireless LAN or Bluetooth (registered trademark). An in-vehicle network using CAN is an example, and may be Lin (Local Interconnect Network), FlexRay, Ethernet (registered trademark), or the like.

充電ステーションから車両100のECUのソフトウェアを書き換える場合、車外からアクセス可能な充電用コネクタ(例えば、CHAdeMO、Combined Charging System)に充電ステーションが接続される。しかしながら、ソフトウェアの書き換えに関する構成は図2(a)(b)のいずれか又はその組み合わせで実現可能である。   When rewriting the ECU software of the vehicle 100 from the charging station, the charging station is connected to a charging connector (for example, CHAdeMO, Combined Charging System) accessible from outside the vehicle. However, the configuration related to software rewriting can be realized by any one or a combination of FIGS. 2 (a) and 2 (b).

また、図2(b)では、サーバ400と車両100がネットワーク300を介して通信可能に接続される。ネットワーク300は、主に無線通信部分と有線通信部分とを有している。無線通信部分は例えば携帯電話網、無線LAN網、WiMAX網などであり、有線通信部分は例えばプロバイダが運営する光ファイバやADSLなどで構築されたインターネット又は施設内のLANである。   In FIG. 2B, the server 400 and the vehicle 100 are connected via a network 300 so that they can communicate with each other. The network 300 mainly has a wireless communication portion and a wired communication portion. The wireless communication part is, for example, a mobile phone network, a wireless LAN network, a WiMAX network, and the like, and the wired communication part is, for example, the Internet constructed by an optical fiber or ADSL operated by a provider, or a LAN in a facility.

サーバ400はメーカの開発者などがアップロードしたソフトウェアを記憶している。サーバ400は車両と通信した際に車種を判断してアップデートが必要であると判断すると、更新用のソフトウェアを車両100に送信する。   The server 400 stores software uploaded by a manufacturer developer or the like. When the server 400 determines the vehicle type and determines that an update is necessary when communicating with the vehicle, the server 400 transmits update software to the vehicle 100.

書き換えツール200や充電ステーション又はネットワーク経由のいずれでソフトウェアが車両100に供給されても、車両側の書き換えECUがソフトウェアを書き換える手順は同様である。   Regardless of whether the software is supplied to the vehicle 100 via the rewriting tool 200, the charging station, or the network, the procedure for the rewriting ECU on the vehicle side to rewrite the software is the same.

図3(a)は車載ネットワークの概略構成図の一例を、図3(b)はゲートウェイECU3のハードウェア構成図の一例を示す。この車載ネットワーク500は、4つのLAN1〜3を有し階層構造を形成している。LAN1の下位層にLAN2が配置され、また、LAN1の下位層にLAN3が、LAN3の下位層にLAN2が配置されている。すなわち、LAN2はLAN1とLAN3の下位層のLANである。車載ネットワーク500はゲートウェイECU11(以下、ゲートウェイECU1という)と3つのゲートウェイECU12(以下、ゲートウェイECU2〜4という)を有している。ゲートウェイECU1〜4は一方のLANから他方のLANにCANフレーム等を中継するので中継装置と呼ばれることもある。   FIG. 3A shows an example of a schematic configuration diagram of the in-vehicle network, and FIG. 3B shows an example of a hardware configuration diagram of the gateway ECU 3. This in-vehicle network 500 has four LANs 1 to 3 and forms a hierarchical structure. LAN2 is arranged in the lower layer of LAN1, LAN3 is arranged in the lower layer of LAN1, and LAN2 is arranged in the lower layer of LAN3. That is, LAN2 is a lower layer LAN of LAN1 and LAN3. The in-vehicle network 500 includes a gateway ECU 11 (hereinafter referred to as gateway ECU 1) and three gateway ECUs 12 (hereinafter referred to as gateway ECUs 2 to 4). Since the gateway ECUs 1 to 4 relay a CAN frame or the like from one LAN to the other LAN, they are sometimes called relay devices.

LAN1にはゲートウェイECU1〜3、及び、DLCコネクタ15を介して書き換えツール200が接続されている。更新用のソフトウェアはサーバ(ソフト配信センタ)400又は書き換えツール200からゲートウェイECU1に送信される。LAN2にはゲートウェイECU2、4、書き換え対象ECU13及びECU14(エンジンECU、メータECU、カメラECU、及び、オートクルーズECU)が接続されている。ゲートウェイECU1〜4以外のECU14は一例でありどのようなECUでもよい。LAN3にはゲートウェイECU3、4及びECU14(ブレーキECU及びパワステECU)が接続されている。   The rewriting tool 200 is connected to the LAN 1 via the gateway ECUs 1 to 3 and the DLC connector 15. The update software is transmitted from the server (software distribution center) 400 or the rewriting tool 200 to the gateway ECU 1. Gateway ECUs 2 and 4, rewrite target ECUs 13 and ECUs 14 (engine ECU, meter ECU, camera ECU, and auto cruise ECU) are connected to LAN 2. The ECUs 14 other than the gateway ECUs 1 to 4 are merely examples, and any ECU may be used. Gateway ECUs 3 and 4 and ECU 14 (brake ECU and power steering ECU) are connected to LAN 3.

ゲートウェイECU1(書き換えECUに相当する)は書き換え対象ECU13のソフトウェアの書き換えを行う。本実施例では、ゲートウェイECU1に近い側を上位層とする。ゲートウェイECU1は、書き換えツール200と同じLANに接続されている必要はない。   The gateway ECU 1 (corresponding to the rewriting ECU) rewrites the software of the rewriting target ECU 13. In the present embodiment, the side closer to the gateway ECU 1 is the upper layer. The gateway ECU 1 does not need to be connected to the same LAN as the rewriting tool 200.

各LANの間はゲートウェイECU1〜4により接続されている。このようにLANを分割するのは主にバス負荷を分散するためである。ゲートウェイECU1〜4は一方のLANに接続されたECUが送信するCANフレームを監視し、それが他方のLANに転送する必要があるCANフレームの場合、他方のLANに転送する。これにより、各ECUは所属していないLANを流れるCANフレームを受信することができる。   The LANs are connected by gateway ECUs 1 to 4. The reason for dividing the LAN in this way is mainly to distribute the bus load. The gateway ECUs 1 to 4 monitor the CAN frame transmitted from the ECU connected to one LAN, and if it is a CAN frame that needs to be transferred to the other LAN, transfer it to the other LAN. Thereby, each ECU can receive the CAN frame which flows through LAN which does not belong.

ゲートウェイECU3は図3(b)に示すハードウェア構成を有するが、ゲートウェイECU1,2,4及び各ECUも同様のハードウェア構成(一般的なマイコンと同等の構成)を有している。すなわち、CPU、RAM、ROM等と、CAN通信のためのCANコントローラ及びトランシーバを有している。ゲートウェイECU1〜4は接続先のLANの数だけCANコントローラ及びトランシーバを有している。   The gateway ECU 3 has the hardware configuration shown in FIG. 3B, but the gateway ECUs 1, 2, 4 and each ECU also have the same hardware configuration (a configuration equivalent to a general microcomputer). That is, it has a CPU, RAM, ROM, etc., and a CAN controller and transceiver for CAN communication. The gateway ECUs 1 to 4 have CAN controllers and transceivers as many as the number of connection destination LANs.

ゲートウェイECU1〜4のCPUは、ROMに記憶されたプログラムをRAMに展開し、データの転送処理を行う。また、ECU14のCPUは、ROMに記憶されたプログラムをRAMに展開し、センサによる信号の検出、演算、アクチュエータなどの制御を行う。データの送信時、ECU14のCPUはCANコントローラに送信を指示する。CANコントローラは指示された又は予め定められているデータIDをRAMに記憶された送信データに付与してトランシーバに送出する。また、データの受信時、CANコントローラはCANバスを流れるフレームのデータIDを監視して受信するか否かを判定し、受信した場合はCPUに通知する。   The CPUs of the gateway ECUs 1 to 4 expand the program stored in the ROM to the RAM and perform data transfer processing. Further, the CPU of the ECU 14 develops a program stored in the ROM in the RAM, and performs signal detection, calculation, actuator control, and the like by the sensor. At the time of data transmission, the CPU of the ECU 14 instructs the CAN controller to transmit. The CAN controller assigns the designated or predetermined data ID to the transmission data stored in the RAM and sends it to the transceiver. When receiving data, the CAN controller determines whether or not to receive the data ID of the frame flowing through the CAN bus, and notifies the CPU if it is received.

トランシーバは、データの送信時には論理データの"1"又は"0"がドミナントレベル又はレセッシブレベルになるように2本のCANバスの差動電圧を制御する。データの受信時は2本のCANバスの間に所定レベル以上の電位差がある場合はローレベルの信号をCANコントローラに出力し、そうでなければハイレベルの信号を出力する。   The transceiver controls the differential voltage of the two CAN buses so that logical data “1” or “0” becomes a dominant level or a recessive level when transmitting data. When data is received, if there is a potential difference of a predetermined level or more between the two CAN buses, a low level signal is output to the CAN controller, otherwise a high level signal is output.

なお、機能統合によりゲートウェイECU1〜4が通常のECU14の機能を有する場合がある。この場合、ゲートウェイECU1〜4はゲートウェイとしての機能だけでなく、アクチュエータを制御するなどのECU14と同等の機能を有する。したがって、本実施例ではECU14とゲートウェイECU1〜4を区別しているが、ゲートウェイECU1〜4はECU14の一態様に過ぎない。   Note that the gateway ECUs 1 to 4 may have the functions of the normal ECU 14 due to the function integration. In this case, the gateway ECUs 1 to 4 have not only a function as a gateway but also a function equivalent to the ECU 14 such as controlling an actuator. Therefore, although ECU14 and gateway ECU1-4 are distinguished in a present Example, gateway ECU1-4 is only one aspect | mode of ECU14.

〔ソフトウェア更新の不都合〕
このような構成の車載ネットワーク500におけるソフトウェア更新の不都合について説明する。車両装備は車両毎に異なるのが一般的であり、例えばカメラECUがない車両ではオートクルーズECUはLAN3に所属することがある。このオートクルーズECUのソフトウェアを書き換えたい場合、LAN3に所属する場合とLAN2に所属する場合があるため、車種によってゲートウェイECU1からオートクルーズECUまでの経路が異なることになる。また、ゲートウェイECU1は異なる車種の車両に搭載されうるものである。
[Inconvenience of software update]
The inconvenience of software update in the in-vehicle network 500 having such a configuration will be described. The vehicle equipment is generally different for each vehicle. For example, in a vehicle without a camera ECU, the auto cruise ECU may belong to the LAN 3. When it is desired to rewrite the software of the auto cruise ECU, the route from the gateway ECU 1 to the auto cruise ECU differs depending on the vehicle type because it may belong to the LAN 3 and may belong to the LAN 2. The gateway ECU 1 can be mounted on vehicles of different vehicle types.

また、ゲートウェイECU2〜4は電源状態によって通信を行うか否かが異なる。電源状態とは、内燃機関を動力とする車両ではOFF、ACC、IG_ONであり、ハイブリッド車ではOFF、ACC、IG_ON、Ready_ONである。また、電気自動車ではIG−ONという状態がない。例えば、走行時に使用されるエンジンECU、ブレーキECUやオートクルーズECUはACCでは通信する必要性が少なく、パワステECUはACCで通信するかどうかは車両によって異なる。ゲートウェイECUは上流又は下流のLANに所属するECUが通信しなければCANフレームを転送する必要がなく、通信経路として機能しなくなる(例えばスリープモードになる)。すなわち、ゲートウェイECU2〜4は電源状態によって通信を行うか否かが変動しうる。また、電源状態に変化がなくても、最後のECU14が通信を終了すれば、ゲートウェイECU2〜4も転送処理を終了する場合がある。   Further, the gateway ECUs 2 to 4 differ depending on the power supply state. The power state is OFF, ACC, IG_ON for a vehicle powered by an internal combustion engine, and OFF, ACC, IG_ON, Ready_ON for a hybrid vehicle. Moreover, there is no state of IG-ON in an electric vehicle. For example, an engine ECU, a brake ECU, and an auto cruise ECU that are used at the time of traveling need not communicate with each other in the ACC, and whether the power steering ECU communicates with the ACC depends on the vehicle. If the ECU belonging to the upstream or downstream LAN does not communicate, the gateway ECU does not need to transfer the CAN frame and does not function as a communication path (for example, enters the sleep mode). That is, whether or not the gateway ECUs 2 to 4 perform communication may vary depending on the power supply state. Even if the power state does not change, the gateway ECUs 2 to 4 may also end the transfer process if the last ECU 14 ends the communication.

このため、ゲートウェイECU1は例えばオートクルーズECUの書き換え中、現状の電源状態で通信状態が安定しているのか否かを判定できず、ソフトウェアの書き換えを開始してよいか否かを判定できなった。換言すると、ゲートウェイECU1は書き換え中に通信状態が常に安定している通信経路を判断できなかった。   For this reason, for example, during rewriting of the auto cruise ECU, the gateway ECU 1 cannot determine whether or not the communication state is stable in the current power supply state and cannot determine whether or not software rewriting can be started. . In other words, the gateway ECU 1 cannot determine a communication path in which the communication state is always stable during rewriting.

〔機能構成例〕
図4は、ゲートウェイECU1〜4、書き換え対象ECU13及びECU14の機能ブロック図の一例を示す。ゲートウェイECU2〜4の機能は同じでよいので1つだけ示している。また、各ECUの機能は同じでよいので代表して書き換え対象ECU13の機能を示している。
[Function configuration example]
FIG. 4 shows an example of a functional block diagram of the gateway ECUs 1 to 4, the rewrite target ECU 13 and the ECU 14. Since the functions of the gateway ECUs 2 to 4 may be the same, only one is shown. Further, since the functions of the respective ECUs may be the same, the functions of the rewrite target ECU 13 are representatively shown.

<書き換え対象ECU、ECU>
書き換え対象ECU13はACC又はIG_ONで起動すると予め定められたCANフレームを送信する。本実施例では、電源状態送信部21がCANフレームに常に電源状態情報を含めるか、又は、電源状態送信部21が明示的に(例えば周期的に)電源状態情報を所属するLANに送信する。CANフレームには電源状態情報を識別するためのデータIDが含まれる。
<ECU to be rewritten, ECU>
The rewrite target ECU 13 transmits a predetermined CAN frame when activated by ACC or IG_ON. In the present embodiment, the power supply state transmission unit 21 always includes the power supply state information in the CAN frame, or the power supply state transmission unit 21 explicitly (for example, periodically) transmits the power supply state information to the LAN to which it belongs. The CAN frame includes a data ID for identifying the power state information.

図5(a)は電源状態情報の一例を示す図である。電源状態とデータIDが含まれている。電源状態は書き換え対象ECU13がCANフレームを通信する車両の電源状態である。図のように「IG_ON,ACC」の場合、書き換え対象ECU13はIG_ON又はACCでCANフレームを送信可能である。データIDは書き換え対象ECU13が送信するCANフレームを一意に識別するための識別情報である。他のECU14が送信する電源状態情報は重複しない別々のデータIDが付与されている。書き換え対象ECU13又はECU14が異なる種類のCANフレームを送信する場合があるので、データIDがそのままECUの識別情報とはならない。このため、ゲートウェイECU2〜4は記憶部35に、データIDとECU識別情報を対応づけるデータID/ECU識別情報テーブルを有している。ゲートウェイECU2〜4はデータIDからECU14を特定できる。また、書き換え対象ECU13又はECU14は電源状態情報にECUの識別情報を含めてもよい。   FIG. 5A is a diagram illustrating an example of the power state information. The power status and data ID are included. The power supply state is a power supply state of the vehicle in which the rewrite target ECU 13 communicates the CAN frame. In the case of “IG_ON, ACC” as shown in the figure, the rewrite target ECU 13 can transmit a CAN frame by IG_ON or ACC. The data ID is identification information for uniquely identifying the CAN frame transmitted by the rewrite target ECU 13. Different data IDs that are not duplicated are assigned to the power supply state information transmitted by other ECUs 14. Since the ECU 13 or the ECU 14 to be rewritten may transmit different types of CAN frames, the data ID does not become the ECU identification information as it is. For this reason, the gateway ECUs 2 to 4 have a data ID / ECU identification information table that associates the data ID with the ECU identification information in the storage unit 35. The gateway ECUs 2 to 4 can identify the ECU 14 from the data ID. Further, the rewrite target ECU 13 or the ECU 14 may include ECU identification information in the power supply state information.

ソフトウェア受信部22はゲートウェイECU2〜4のいずれかから更新用のソフトウェアを受信する。ソフトウェア書き換え部23はソフトウェア記憶部24に記憶されているソフトウェアを更新用のソフトウェアで書き換える。   The software receiver 22 receives update software from any of the gateway ECUs 2 to 4. The software rewriting unit 23 rewrites software stored in the software storage unit 24 with software for update.

<ゲートウェイECU>
まず、ゲートウェイECU2〜4も同じく電源状態送信部34を有している。電源状態送信部34の機能は書き換え対象ECU13、ECU14と同様である。ゲートウェイECU2〜4の電源状態受信部31は、下位層のLANに送信される電源状態情報を受信し、記憶部35に記憶する。配下ECU情報作成部32は電源状態情報を使用して配下ECU情報を作成する。配下ECU情報はゲートウェイECU1〜4の配下にある(下位層のLANに所属する)ECUのリストである。配下ECU情報は、データIDから特定したECU識別情報を重複しないように集めることで作成できる。
<Gateway ECU>
First, the gateway ECUs 2 to 4 also have the power supply state transmission unit 34. The function of the power supply state transmission unit 34 is the same as that of the rewrite target ECU 13 and ECU 14. The power supply state reception units 31 of the gateway ECUs 2 to 4 receive the power supply state information transmitted to the lower-layer LAN and store it in the storage unit 35. The subordinate ECU information creation unit 32 creates subordinate ECU information using the power supply state information. The subordinate ECU information is a list of ECUs subordinate to the gateway ECUs 1 to 4 (belonging to the lower layer LAN). The subordinate ECU information can be created by collecting the ECU identification information specified from the data ID so as not to overlap.

図5(b)〜(d)は配下ECU情報の一例を示す図である。配下ECU情報を作成したゲートウェイECU2〜4の識別情報(図ではゲートウェイECU2〜4そのもの)に対応づけて1つ以上のECU識別情報が含まれる。また、ゲートウェイECU3の配下にはさらにゲートウェイECU4が所属しているので、ゲートウェイECU3の配下ECU情報にはゲートウェイECU4の配下ECU情報が紐づけられる。   FIGS. 5B to 5D are diagrams illustrating an example of subordinate ECU information. One or more pieces of ECU identification information are included in association with identification information (gateway ECUs 2 to 4 themselves in the figure) of gateway ECUs 2 to 4 that have created subordinate ECU information. Since the gateway ECU 4 further belongs to the gateway ECU 3, the subordinate ECU information of the gateway ECU 4 is linked to the subordinate ECU information of the gateway ECU 3.

図3の構成例では、図5(b)に示すように、ゲートウェイECU2の配下ECU情報作成部32は書き換え対象ECU13、エンジンECU、メータECU、カメラECU、及び、オートクルーズECUの5つのECU識別情報を配下ECU情報とする。図5(c)に示すように、ゲートウェイECU4の配下ECU情報作成部32についても同様である。また、ゲートウェイECU3の配下にはゲートウェイECU4が所属しているので、ゲートウェイECU3の配下ECU情報は、ブレーキECU、パワステECU及びゲートウェイECU4、及び、ゲートウェイECU4に紐づけられたゲートウェイECU4が送信した配下ECU情報である。   In the configuration example of FIG. 3, as shown in FIG. 5B, the subordinate ECU information creation unit 32 of the gateway ECU 2 includes five ECU identifications of the rewrite target ECU 13, engine ECU, meter ECU, camera ECU, and auto cruise ECU. The information is subordinate ECU information. The same applies to the subordinate ECU information creation unit 32 of the gateway ECU 4 as shown in FIG. Also, since the gateway ECU 4 belongs to the gateway ECU 3, the subordinate ECU information of the gateway ECU 3 is transmitted from the brake ECU, the power steering ECU and the gateway ECU 4, and the gateway ECU 4 associated with the gateway ECU 4. Information.

ゲートウェイECU2〜4のECU情報送信部33は、上位層のLANに下位層のLANから受信した電源状態情報と配下ECU情報を送信する。これにより上位層のゲートウェイECUは、下位層の全てのゲートウェイECUの配下ECU情報及び配下のゲートウェイECUとECUの電源状態情報を取得できる。   The ECU information transmission unit 33 of the gateway ECUs 2 to 4 transmits the power status information and subordinate ECU information received from the lower layer LAN to the upper layer LAN. As a result, the upper-layer gateway ECU can acquire the subordinate ECU information of all the lower-layer gateway ECUs and the power state information of the subordinate gateway ECUs and ECUs.

ゲートウェイECU2〜4のソフトウェア中継部36は、ゲートウェイECU1が決定した通信経路に従って、ゲートウェイECU1から書き換え対象ECU13に更新用のソフトウェアを中継する。   The software relay unit 36 of the gateway ECUs 2 to 4 relays the update software from the gateway ECU 1 to the rewrite target ECU 13 according to the communication path determined by the gateway ECU 1.

<ゲートウェイECU1(書き換えECU)>
ゲートウェイECU1はソフトウェアの書き換えを制御するECUである。ゲートウェイECU1のECU情報収集部41はゲートウェイECU2〜4から電源状態情報と配下ECU情報を受信する。LAN構成再現部42は配下ECU情報から車載ネットワーク500のLAN構成を再現する。すなわち、ゲートウェイECU2とゲートウェイECU3が電源状態情報を送信することでLAN1にはゲートウェイECU2、3が接続されていることを検出する。また、ゲートウェイECU2が送信する配下ECU情報からゲートウェイECU2にはLAN2が接続されており、LAN2に書き換え対象ECU13、エンジンECU、メータECU、カメラECU、及び、オートクルーズECUが接続されていることを検出する。
<Gateway ECU 1 (Rewrite ECU)>
The gateway ECU 1 is an ECU that controls rewriting of software. The ECU information collection unit 41 of the gateway ECU 1 receives power state information and subordinate ECU information from the gateway ECUs 2 to 4. The LAN configuration reproduction unit 42 reproduces the LAN configuration of the in-vehicle network 500 from the subordinate ECU information. That is, the gateway ECU 2 and the gateway ECU 3 transmit the power supply state information to detect that the gateway ECUs 2 and 3 are connected to the LAN 1. Further, it is detected from the subordinate ECU information transmitted by the gateway ECU 2 that the LAN 2 is connected to the gateway ECU 2, and the rewrite target ECU 13, the engine ECU, the meter ECU, the camera ECU, and the auto cruise ECU are connected to the LAN 2. To do.

また、ゲートウェイECU3が送信する配下ECU情報からゲートウェイECU3にはLAN3が接続されており、LAN3にブレーキECU、パワステECU、ゲートウェイECU4が接続されていることを検出する。また、ゲートウェイECU4に紐づけられたゲートウェイECU4の配下ECU情報からゲートウェイECU4にはLAN2が接続されており、LAN2に書き換え対象ECU13、エンジンECU、メータECU、カメラECU、及び、オートクルーズECUが接続されていることを検出する。   Further, the subordinate ECU information transmitted by the gateway ECU 3 detects that the LAN 3 is connected to the gateway ECU 3 and that the brake ECU, the power steering ECU, and the gateway ECU 4 are connected to the LAN 3. Further, the LAN 2 is connected to the gateway ECU 4 based on the subordinate ECU information of the gateway ECU 4 linked to the gateway ECU 4, and the rewrite target ECU 13, the engine ECU, the meter ECU, the camera ECU, and the auto cruise ECU are connected to the LAN 2. Detect that

さらに、LAN2に所属するECUが完全に一致するので、ゲートウェイECU2の配下のLANとゲートウェイECU4の配下のLANとが同一のLANであることを検出する。このようにしてLAN構成を再現できる。   Furthermore, since the ECUs belonging to the LAN 2 completely match, it is detected that the LAN under the gateway ECU 2 and the LAN under the gateway ECU 4 are the same LAN. In this way, the LAN configuration can be reproduced.

外部通信部44は、書き換えツール200がLAN1に送信した更新用のソフトウェアを受信する。または、例えばDCM(Data Communication Module)と呼ばれる車両専用の通信装置やユーザが携帯している携帯端末の通信機能を利用してサーバ400から更新用のソフトウェアを受信する。外部通信部44は少なくともいずれか一方の機能を有する。   The external communication unit 44 receives the update software transmitted from the rewrite tool 200 to the LAN 1. Alternatively, for example, update software is received from the server 400 by using a communication device of a vehicle-dedicated communication device called DCM (Data Communication Module) or a mobile terminal carried by the user. The external communication unit 44 has at least one function.

経路決定部43は電源状態情報とLAN構成から更新用のソフトウェアを送信する通信経路を決定する。   The route determination unit 43 determines a communication route for transmitting update software from the power supply state information and the LAN configuration.

図6(a)は経路の決定について説明する図の一例である。現在の電源状態がACCであるとする。また、ゲートウェイECU2が通信可能な電源状態はACC、ゲートウェイECU3が通信可能な電源状態はIG_ONである。また、書き換え対象ECU13はACCで通信可能である。この場合、経路決定部43はゲートウェイECU3を経由する通信は困難であると判定し、ゲートウェイECU2を経由する経路をソフトウェアを送信する通信経路に決定する。   FIG. 6A is an example of a diagram for explaining determination of a route. Assume that the current power state is ACC. The power state in which the gateway ECU 2 can communicate is ACC, and the power state in which the gateway ECU 3 can communicate is IG_ON. The rewrite target ECU 13 can communicate with the ACC. In this case, the route determination unit 43 determines that communication via the gateway ECU 3 is difficult, and determines the route via the gateway ECU 2 as a communication route for transmitting software.

図6(b)は経路の決定について説明する図の一例である。同様に現在の電源状態がACCであるが、ゲートウェイECU2が通信可能な電源状態はIG_ONであり、ゲートウェイECU3が通信可能な電源状態はACCである。この場合、経路決定部43はゲートウェイECU2を経由する通信は困難であると判定し、ゲートウェイECU3、4を経由する経路をソフトウェアを送信する通信経路に決定する。   FIG. 6B is an example of a diagram for explaining determination of a route. Similarly, the current power state is ACC, but the power state in which the gateway ECU 2 can communicate is IG_ON, and the power state in which the gateway ECU 3 can communicate is ACC. In this case, the route determination unit 43 determines that communication via the gateway ECU 2 is difficult, and determines the route via the gateway ECUs 3 and 4 as a communication route for transmitting software.

図6(c)は経路の決定について説明する図の一例である。同様に現在の電源状態がACCであるが、ゲートウェイECU2〜4はいずれも通信可能な電源状態がACCである。この場合、ゲートウェイECU2を経由しても、ゲートウェイECU3,4を経由しても書き換え対象ECU13にソフトウェアを送信することができる。このような場合、経路決定部43はホップ数(経由するゲートウェイECUの数)が少ない経路を、ソフトウェアを送信する通信経路に決定する。経由するゲートウェイECUの数が少ないことで、電源状態がより安定することが期待できる。また、実施例2で説明するように消費電力が最も少ない経路を、ソフトウェアを送信する経路に決定してもよい。   FIG. 6C is an example of a diagram for explaining determination of a route. Similarly, the current power supply state is ACC, but the gateway ECUs 2 to 4 have a communicable power supply state ACC. In this case, the software can be transmitted to the rewrite target ECU 13 via the gateway ECU 2 or the gateway ECUs 3 and 4. In such a case, the route determination unit 43 determines a route with a small number of hops (the number of gateway ECUs through) as a communication route for transmitting software. Since the number of gateway ECUs that pass through is small, it can be expected that the power supply state is more stable. Further, as described in the second embodiment, a path with the least power consumption may be determined as a path for transmitting software.

図4に戻り、ソフトウェア送信部45は経路決定部43が決定した通信経路で書き換え対象ECU13までソフトウェアを送信する。通信プロトコルが送信先のECUを指定できるものであれば、ソフトウェアと共に経路情報を送信すれば、下位層のゲートウェイECUが次々と指定されたゲートウェイECUを指定して、書き換え対象ECU13にソフトウェアを送信できる。   Returning to FIG. 4, the software transmission unit 45 transmits the software to the rewrite target ECU 13 through the communication path determined by the path determination unit 43. If the communication protocol can specify the destination ECU, if the route information is transmitted together with the software, the gateway ECU in the lower layer can specify the gateway ECU specified one after another, and the software can be transmitted to the rewrite target ECU 13 .

CANプロトコルのように送信先のECUを指定できない場合、CANフレームのデータフィールドに通信経路情報を含めておく。例えば、経路決定部43がゲートウェイECU3、ゲートウェイECU4、書き換え対象ECU13を通信経路に決定した場合、次のように通信経路を制御する。
(i)ゲートウェイECU1は各ゲートウェイECU2〜4が受信することが定められているデータIDを付与して、更新用のソフトウェアと共にCANフレームのDATAフィールドに「1→3→4→書き換えECU」という通信経路情報を含めてCANフレームを送信する。
(ii)各ゲートウェイECU2〜4は全てがCANフレームを受信して、自身が経路に指定されているか否かを判定する。
(iii)経路に指定されたゲートウェイECU3は通信経路情報に従って、同様に、下位層のLANに更新用のソフトウェアと通信経路情報を送信する。
(iv)経路に指定されていないゲートウェイECU2はCANフレームを受信しても、通信経路情報に自機がないことを確認すると何もしない。
When the destination ECU cannot be specified as in the CAN protocol, communication path information is included in the data field of the CAN frame. For example, when the route determination unit 43 determines the gateway ECU 3, the gateway ECU 4, and the rewrite target ECU 13 as communication routes, the communication route is controlled as follows.
(i) The gateway ECU 1 assigns a data ID determined to be received by each of the gateway ECUs 2 to 4, and communicates “1 → 3 → 4 → rewrite ECU” in the DATA field of the CAN frame together with the update software. A CAN frame is transmitted including route information.
(ii) All the gateway ECUs 2 to 4 receive the CAN frame and determine whether or not they are designated as routes.
(iii) The gateway ECU 3 designated as the route similarly transmits the update software and the communication route information to the lower-layer LAN according to the communication route information.
(iv) Even if the gateway ECU 2 not designated as a route receives the CAN frame, it does nothing if it confirms that the communication route information does not include its own device.

なお、ソフトウェア送信部45は、通信経路のゲートウェイECU2〜4に書き換えが終わるまで通信を維持するように指示する。これにより、通信経路情報に登録されているゲートウェイECU2〜4は仮に電源状態が変わっても、ソフトウェア送信部45から送信完了の通知を受信するまで通信を維持することができる。   The software transmission unit 45 instructs the gateway ECUs 2 to 4 on the communication path to maintain communication until rewriting is completed. Thus, even if the power supply state changes, the gateway ECUs 2 to 4 registered in the communication path information can maintain communication until a notification of transmission completion is received from the software transmission unit 45.

〔動作手順〕
図7は、ゲートウェイECU1がソフトウェアを更新する手順を示すフローチャート図の一例を示す。なお、各ECUの電源状態送信部21は自機の電源状態を所属するLANに送信している。
[Operation procedure]
FIG. 7 shows an example of a flowchart showing a procedure in which the gateway ECU 1 updates the software. In addition, the power supply state transmission part 21 of each ECU is transmitting the power supply state of the own machine to LAN which belongs.

ゲートウェイECU1〜4は、自機の接続しているLANに接続しているECU14及び配下のゲートウェイECUから電源状態情報を受信し記憶部35に記憶する(S10)。   The gateway ECUs 1 to 4 receive the power state information from the ECU 14 connected to the LAN to which the gateway ECU 1 is connected and the subordinate gateway ECU and store them in the storage unit 35 (S10).

ゲートウェイECU2の配下ECU情報作成部32は電源状態情報からLAN2の配下ECU情報を作成し、ECU情報送信部33はゲートウェイECU1にLAN2の配下ECU情報を送信する(S20−1)。また、LAN2に所属するECUの電源状態情報と自機の電源状態情報をゲートウェイECU1に送信する。   The subordinate ECU information creation unit 32 of the gateway ECU 2 creates subordinate ECU information of the LAN2 from the power supply state information, and the ECU information transmission unit 33 transmits the subordinate ECU information of the LAN2 to the gateway ECU1 (S20-1). In addition, the power status information of the ECU belonging to the LAN 2 and the power status information of the own machine are transmitted to the gateway ECU 1.

ゲートウェイECU4の配下ECU情報作成部32は電源状態情報からLAN2の配下ECU情報を作成し、ECU情報送信部33はゲートウェイECU3にLAN2の配下ECU情報を送信する(S20−2)。また、LAN2に所属するECUの電源状態情報と自機の電源状態情報をゲートウェイECU3に送信する。   The subordinate ECU information creating unit 32 of the gateway ECU 4 creates subordinate ECU information of the LAN2 from the power supply state information, and the ECU information transmitting unit 33 transmits the subordinate ECU information of the LAN2 to the gateway ECU3 (S20-2). Moreover, the power status information of the ECU belonging to the LAN 2 and the power status information of the own machine are transmitted to the gateway ECU 3.

ゲートウェイECU3の配下ECU情報作成部32は電源状態情報からLAN3の配下ECU情報を作成し、ECU情報送信部33はゲートウェイECU1にLAN3の配下ECU情報を送信する(S20−3)。LAN3の配下ECU情報にはLAN2の配下ECU情報が含まれる。また、LAN3に所属するECUの電源状態情報と自機の電源状態情報をゲートウェイECU3に送信する。   The subordinate ECU information creation unit 32 of the gateway ECU 3 creates subordinate ECU information of the LAN3 from the power supply state information, and the ECU information transmission unit 33 transmits the subordinate ECU information of the LAN3 to the gateway ECU1 (S20-3). The subordinate ECU information of LAN3 includes subordinate ECU information of LAN2. Moreover, the power status information of the ECU belonging to the LAN 3 and the power status information of the own machine are transmitted to the gateway ECU 3.

ゲートウェイECU1のLAN構成再現部42は、各配下ECU情報から車載ネットワーク500のLAN構成を再現し、各階層のECU14及びゲートウェイECU2〜4の通信可能な電源状態を特定する(S30)。   The LAN configuration reproduction unit 42 of the gateway ECU 1 reproduces the LAN configuration of the in-vehicle network 500 from each subordinate ECU information, and identifies the power supply state in which the ECU 14 and the gateway ECUs 2 to 4 in each hierarchy can communicate (S30).

ここで、書き換えツール200又はサーバ400が更新用のソフトウェアを配信し、外部通信部44がそれを受信する(S40)。ゲートウェイECU1が受信する情報には書き換え対象のECUを指示する情報が含まれる。   Here, the rewriting tool 200 or the server 400 distributes the update software, and the external communication unit 44 receives it (S40). The information received by the gateway ECU 1 includes information indicating the ECU to be rewritten.

経路決定部43は書き換え対象ECU13、現在の車両の電源状態、及び、LAN構成から、通信可能な通信経路を決定する(S50)。   The route determination unit 43 determines a communicable communication route from the ECU 13 to be rewritten, the current power supply state of the vehicle, and the LAN configuration (S50).

ソフトウェア送信部45は通信経路のゲートウェイECUに書き換え開始を指示し、また、書き換えが完了するまで通信を維持するよう指示する(S60)。   The software transmission unit 45 instructs the gateway ECU of the communication path to start rewriting, and also instructs to maintain communication until the rewriting is completed (S60).

以上説明したように、本実施例の書き換え方法によれば、車載ネットワークのように複数のLANが階層的に構成され複数のLANを経由してソフトウェアを書き換える場合、常に電源状態の安定した経路を選択できるため、正常に書き換えを行うことが可能になる。   As described above, according to the rewriting method of the present embodiment, when a plurality of LANs are hierarchically configured as in an in-vehicle network and software is rewritten via the plurality of LANs, a route with a stable power supply state is always provided. Since it can be selected, rewriting can be performed normally.

〔各ECUが電源状態情報を送信することの代替処理〕
本実施例では各ECUが電源状態情報をLANに送信すると説明したが、各ECUが電源状態情報を送信しなくても、ゲートウェイECU2〜4は各ECU14が通信可能な電源状態を検出することができる。
[Alternative processing for each ECU to transmit power status information]
In the present embodiment, it has been described that each ECU transmits power state information to the LAN. However, even if each ECU does not transmit power state information, the gateway ECUs 2 to 4 may detect a power state in which each ECU 14 can communicate. it can.

CANフレームにはデータ内容を識別するためのデータIDが含まれている。ゲートウェイECU2〜4は、記憶部35にデータID/ECU識別情報テーブルを記憶している。また、本代替処理では、ゲートウェイECU2〜4は、記憶部35に、初期状態としてデータIDと通信可能な車両の電源状態の対応関係情報を保持しているものとする。   The CAN frame includes a data ID for identifying data contents. The gateway ECUs 2 to 4 store a data ID / ECU identification information table in the storage unit 35. In this alternative process, it is assumed that the gateway ECUs 2 to 4 hold the correspondence information of the power state of the vehicle that can communicate with the data ID as the initial state in the storage unit 35.

したがって、CANフレームのデータIDとCANフレームを受信した時の車両の電源状態で、上記の対応関係情報を更新することができる。また、データID/ECU識別情報テーブルに基づき、対応関係情報のデータIDからECU識別情報を特定することで、各ECU14が通信可能な電源状態を特定することができる。   Therefore, the above correspondence information can be updated with the data ID of the CAN frame and the power state of the vehicle when the CAN frame is received. Further, by specifying the ECU identification information from the data ID of the correspondence information based on the data ID / ECU identification information table, it is possible to specify the power supply state in which each ECU 14 can communicate.

このような構成によれば、ゲートウェイECU2〜4が電源状態情報をECU14から取得しなくても、ゲートウェイECU2〜4は各ECU14の通信可能な電源状態を把握可能である。   According to such a configuration, even if the gateway ECUs 2 to 4 do not acquire the power supply state information from the ECU 14, the gateway ECUs 2 to 4 can grasp the power supply state in which each ECU 14 can communicate.

例えば、初期状態として、データID=100番のCANフレームはIG_ONとOFFの両方で送信されるという対応関係情報が保持されている。また、エンジンECUがデータID=100番のCANフレームを送信している。データID=100番のCANフレームを送信するのが、エンジンECUであることはデータID/ECU識別情報テーブルにより特定される。ゲートウェイECU2はIG_ON及びOFFの両方でデータID=100番のCANフレームを受信した場合、ゲートウェイECU2はこの車両のエンジンECUはIG_ON及びOFFの両方で通信可能であることを記憶する。また、別のエンジンで、ゲートウェイECU2はIG_ONでのみデータID=100番のCANフレームを受信した場合、この車両のエンジンECUはIG_ONでのみ通信可能であることを記憶する。   For example, as an initial state, correspondence information that a CAN frame with data ID = 100 is transmitted by both IG_ON and OFF is held. Further, the engine ECU transmits a CAN frame with data ID = 100. It is specified by the data ID / ECU identification information table that the engine ECU transmits the CAN frame of data ID = 100. When the gateway ECU 2 receives the CAN frame with the data ID = 100 in both IG_ON and OFF, the gateway ECU 2 stores that the engine ECU of this vehicle can communicate with both IG_ON and OFF. In another engine, when the gateway ECU 2 receives a CAN frame with data ID = 100 only when IG_ON, the engine ECU of this vehicle stores that communication is possible only when IG_ON.

このように、各ECUが通信可能な電源状態を送信しなくてもゲートウェイECU2〜4は各ECUの通信可能な電源状態を検出できる。ECU14は通常と同じCANフレームを送信すればよいので、実質的にゲートウェイECU1〜4は各ECU14の通信可能な電源状態を記憶しているのと同様である。   As described above, the gateway ECUs 2 to 4 can detect the communicable power state of each ECU without transmitting the communicable power state of each ECU. Since ECU14 should just transmit the same CAN frame as usual, gateway ECU1-4 is the same as having memorize | stored the power supply state which each ECU14 can communicate.

プラグインハイブリッド車や電気自動車は、充電中にソフトの書き換えが行われる場合がある。充電中はできるだけ消費電力を削減して早期に充電を完了させるため、充電に必要な最小限のECUのみが最小限の処理を行っている。すなわち、充電に不要なECUは制御を停止しているか電源状態はOFFである。   For plug-in hybrid vehicles and electric vehicles, software may be rewritten during charging. During charging, only the minimum ECU required for charging performs the minimum processing in order to reduce power consumption as much as possible and complete charging at an early stage. That is, the ECU unnecessary for charging has stopped control or the power supply state is OFF.

しかしながら、充電中にソフト書き換え要求が発生した場合、階層構造の車載ネットワーク500では書き換え対象ECU13までの通信経路に多くのゲートウェイECUが存在し、そのゲートウェイECUが起動する必要がある。この結果、ソフトウェアの書き換え中はバッテリーの充電効率が低下し(消費電力が多くなる)、充電時間が長くなってしまう。   However, when a soft rewrite request is generated during charging, in the in-vehicle network 500 having a hierarchical structure, many gateway ECUs exist in the communication path to the rewrite target ECU 13, and the gateway ECU needs to be activated. As a result, during rewriting of the software, the charging efficiency of the battery decreases (power consumption increases), and the charging time becomes long.

そこで、本実施例では、ゲートウェイECU1が最も消費電力が少なくなる通信経路を決定し、該通信経路のゲートウェイECU2〜4を起動させ、ソフトウェアの書き換えを行うソフトウェアの書き換え方法について説明する。   Therefore, in the present embodiment, a software rewriting method is described in which the gateway ECU 1 determines a communication path that consumes the least amount of power, activates the gateway ECUs 2 to 4 of the communication path, and rewrites software.

図8は、ゲートウェイECU1〜4、書き換え対象ECU13及びECU14の機能ブロック図の一例を示す。機能ブロック図は実施例1の図4とほぼ同様であるが、以下の点で異なっている。
・各ECUの消費電力送信部25及びゲートウェイECU2〜4の消費電力送信部37は、電源状態情報ではなく消費電力情報を送信する。図9は本実施例の消費電力情報の一例を示す図である。データIDと消費電力が含まれている。なお、ゲートウェイECU2〜4以外の各ECU14が消費電力を送信することは必ずしも必須ではないが、送信することで後述するように通信経路の詳細な制御が可能になる。
・ゲートウェイECU1の経路決定部43は、書き換え対象ECU13までの通信経路に存在するゲートウェイECU2〜4を起動した際の消費電力が最小になるように通信経路を決定する。
・ソフトウェア送信部45は通信経路のゲートウェイECU2〜4が起動していない場合、ソフトウェアの書き換えを指示することで起動させ、ソフトウェアを通信経路のゲートウェイECU2〜4に送信する。
FIG. 8 shows an example of a functional block diagram of the gateway ECUs 1 to 4, the rewrite target ECU 13 and the ECU 14. The functional block diagram is substantially the same as FIG. 4 of the first embodiment, but differs in the following points.
The power consumption transmission unit 25 of each ECU and the power consumption transmission unit 37 of the gateway ECUs 2 to 4 transmit power consumption information instead of power state information. FIG. 9 is a diagram illustrating an example of power consumption information according to the present embodiment. Data ID and power consumption are included. Note that it is not always necessary for each ECU 14 other than the gateway ECUs 2 to 4 to transmit the power consumption, but the transmission allows detailed control of the communication path as described later.
The route determination unit 43 of the gateway ECU 1 determines the communication route so that the power consumption when the gateway ECUs 2 to 4 existing in the communication route to the rewrite target ECU 13 are activated is minimized.
When the communication path gateway ECUs 2 to 4 are not activated, the software transmission unit 45 is activated by instructing rewriting of the software, and transmits the software to the communication path gateway ECUs 2 to 4.

なお、本実施例のように充電中のソフトウェアの書き換えでは、ゲートウェイECU2〜4とECU14はOFFという前提なのでゲートウェイECU2〜4とECU14は通信可能な電源状態をゲートウェイECU2〜4送信しなくてよい。   In the rewriting of the software during charging as in the present embodiment, the gateway ECUs 2 to 4 and the ECU 14 are assumed to be OFF, so the gateway ECUs 2 to 4 and the ECU 14 do not have to transmit the communicable power supply state to the gateway ECUs 2 to 4.

また、電源状態情報と同様に、ゲートウェイECU2〜4は予め各ECU14の消費電力情報を記憶していてもよい。   Similarly to the power state information, the gateway ECUs 2 to 4 may store power consumption information of each ECU 14 in advance.

〔消費電力の算出方法〕
図10(a)は、消費電力に基づきゲートウェイECU1からオートクルーズECUまでの通信経路の決定方法について説明する図の一例である。ゲートウェイECU1はゲートウェイECU2〜4から以下の消費電力を受信している。
ゲートウェイECU2: 100〔mA〕
ゲートウェイECU3: 50〔mA〕
ゲートウェイECU4: 200〔mA〕
ゲートウェイECU1からオートクルーズECUまで候補となる通信経路は2つある。
(i) 経路1
ゲートウェイECU1→ゲートウェイECU3→ゲートウェイECU4→オートクルーズECU
合計消費電力=50+200=250〔mA〕
(ii)経路2
ゲートウェイECU1→ゲートウェイECU2→オートクルーズECU
合計消費電力=100〔mA〕
以上から、経路決定部43はゲートウェイECU2を経由する(ii)経路2を通信経路に決定する。
[Calculation method of power consumption]
FIG. 10A is an example of a diagram illustrating a method for determining a communication path from the gateway ECU 1 to the auto cruise ECU based on power consumption. The gateway ECU 1 receives the following power consumption from the gateway ECUs 2 to 4.
Gateway ECU 2: 100 [mA]
Gateway ECU3: 50 [mA]
Gateway ECU 4: 200 [mA]
There are two candidate communication paths from the gateway ECU 1 to the auto cruise ECU.
(i) Route 1
Gateway ECU1 → Gateway ECU3 → Gateway ECU4 → Auto cruise ECU
Total power consumption = 50 + 200 = 250 [mA]
(ii) Path 2
Gateway ECU1 → Gateway ECU2 → Auto cruise ECU
Total power consumption = 100 [mA]
From the above, the route determination unit 43 determines the route 2 via the gateway ECU 2 (ii) as a communication route.

<算出例2>
図10(b)は、消費電力に基づきゲートウェイECU1からオートクルーズECUまでの通信経路の決定方法について説明する図の一例である。この図は、経由するゲートウェイECUの数の大小と消費電力の大小が一致しない例を示している。ゲートウェイECU2がメータ機能を有する場合、メーターパネルの消費電力が大きいため、例えば以下のような合計消費電力になる。
ゲートウェイECU2: 200〔mA〕
ゲートウェイECU3: 50〔mA〕
ゲートウェイECU4: 100〔mA〕
(i)経路1 合計消費電力=50+100=150〔mA〕
(ii)経路2 合計消費電力=200〔mA〕
経路決定部43はゲートウェイECU3,4を経由する(i)を通信経路に決定する。このように、通信経路で経由されるゲートウェイECUの数が多い方が、合計消費電力が少なくなることは決して少なくなく、本実施例の経路の決定方法が有効であることが分かる。
<Calculation Example 2>
FIG. 10B is an example of a diagram illustrating a method for determining a communication path from the gateway ECU 1 to the auto cruise ECU based on power consumption. This figure shows an example in which the number of gateway ECUs that pass through does not match the power consumption. When the gateway ECU 2 has a meter function, the power consumption of the meter panel is large, and the total power consumption is as follows, for example.
Gateway ECU 2: 200 [mA]
Gateway ECU3: 50 [mA]
Gateway ECU 4: 100 [mA]
(i) Route 1 Total power consumption = 50 + 100 = 150 [mA]
(ii) Path 2 Total power consumption = 200 [mA]
The route determination unit 43 determines (i) that passes through the gateway ECUs 3 and 4 as a communication route. Thus, it can be seen that the greater the number of gateway ECUs that are routed through the communication path, the lower the total power consumption, and the route determination method of this embodiment is more effective.

<算出例3>
図10(c)は、消費電力に基づきゲートウェイECU1からオートクルーズECUまでの通信経路の決定方法について説明する図の一例である。ソフトウェアの書き換え時には、ゲートウェイECUだけでなくECU14を起動させる場合がある。例えば、充電状態をユーザに知らせるため、ナビECUや室内照明点灯のためのランプECUを起動する場合がある。この場合、CANプロトコルのスリープ/ウェイクアップ機能により、ナビECU又はランプECUと同じLANに所属するECU14が起動される。
<Calculation Example 3>
FIG. 10C is an example of a diagram illustrating a method for determining a communication path from the gateway ECU 1 to the auto cruise ECU based on power consumption. When the software is rewritten, not only the gateway ECU but also the ECU 14 may be activated. For example, in order to inform the user of the state of charge, there are cases where a navigation ECU or a lamp ECU for lighting an interior lighting is activated. In this case, the ECU 14 belonging to the same LAN as the navigation ECU or the lamp ECU is activated by the sleep / wake-up function of the CAN protocol.

したがって、この場合、ソフトウェアの書き換えに消費される消費電力はゲートウェイECUと起動されるECU14との合計となる。図9(c)では、ソフトウェアの書き換えのためにゲートウェイECU4を起動する際、LAN2に所属するブレーキECUとナビECUが起動されるものとする。この場合の合計消費電力は以下のようになる。
ゲートウェイECU2: 200〔mA〕
ゲートウェイECU3: 50〔mA〕
ゲートウェイECU4: 100〔mA〕
ブレーキECU : 100〔mA〕
ナビECU : 100〔mA〕
(i)経路1 合計消費電力=50+100+100+100=350〔mA〕
(ii)経路2 合計消費電力=200+100+100+100=500〔mA〕
経路決定部43はゲートウェイECU3,4を経由する(i)経路1を通信経路に決定する。このように、本実施例の経路の決定方法ではソフトウェアの書き換え時の実際の消費電力を考慮して消費電力が最も少なくなるように通信経路を決定できる。
Therefore, in this case, the power consumption consumed for rewriting the software is the sum of the gateway ECU and the activated ECU 14. In FIG. 9C, when the gateway ECU 4 is activated for rewriting software, the brake ECU and the navigation ECU belonging to the LAN 2 are activated. The total power consumption in this case is as follows.
Gateway ECU 2: 200 [mA]
Gateway ECU3: 50 [mA]
Gateway ECU 4: 100 [mA]
Brake ECU: 100 [mA]
Navi ECU: 100 [mA]
(i) Route 1 Total power consumption = 50 + 100 + 100 + 100 = 350 [mA]
(ii) Path 2 Total power consumption = 200 + 100 + 100 + 100 = 500 [mA]
The route determination unit 43 determines (i) route 1 passing through the gateway ECUs 3 and 4 as a communication route. As described above, in the route determination method according to the present embodiment, the communication route can be determined so that the power consumption is minimized in consideration of the actual power consumption when the software is rewritten.

〔動作手順〕
図11は、車載ネットワーク500がソフトウェアを更新する手順を示すフローチャート図の一例を示す。なお、各ECUの消費電力送信部25は自機の消費電力情報を所属するLANに送信している。
ゲートウェイECU1〜4は、自機の接続しているLANに接続しているECU14及び配下のゲートウェイECUから消費電力情報を受信し記憶部35に記憶する(S110)。
[Operation procedure]
FIG. 11 shows an example of a flowchart showing a procedure for updating software in the in-vehicle network 500. In addition, the power consumption transmission part 25 of each ECU is transmitting the power consumption information of an own machine to LAN which belongs.
The gateway ECUs 1 to 4 receive the power consumption information from the ECU 14 connected to the LAN to which the gateway ECU is connected and the subordinate gateway ECU and store them in the storage unit 35 (S110).

ゲートウェイECU2の配下ECU情報作成部32は消費電力情報からLAN2の配下ECU情報を作成し、ECU情報送信部33はゲートウェイECU1にLAN2の配下ECU情報を送信する(S20−1)。また、LAN2に所属するECUの消費電力情報と自機の消費電力情報をゲートウェイECU1に送信する。   The subordinate ECU information creation unit 32 of the gateway ECU 2 creates subordinate ECU information of the LAN2 from the power consumption information, and the ECU information transmission unit 33 transmits the subordinate ECU information of the LAN2 to the gateway ECU1 (S20-1). In addition, the power consumption information of the ECU belonging to the LAN 2 and the power consumption information of the own machine are transmitted to the gateway ECU 1.

ゲートウェイECU4の配下ECU情報作成部32は消費電力情報からLAN2の配下ECU情報を作成し、ECU情報送信部33はゲートウェイECU3にLAN2の配下ECU情報を送信する(S20−2)。また、LAN2に所属するECUの消費電力情報と自機の消費電力情報をゲートウェイECU3に送信する。   The subordinate ECU information creation unit 32 of the gateway ECU 4 creates subordinate ECU information of the LAN2 from the power consumption information, and the ECU information transmission unit 33 transmits the subordinate ECU information of the LAN2 to the gateway ECU3 (S20-2). Further, the power consumption information of the ECU belonging to the LAN 2 and the power consumption information of the own machine are transmitted to the gateway ECU 3.

ゲートウェイECU3の配下ECU情報作成部32は消費電力情報からLAN3の配下ECU情報を作成し、ECU情報送信部33はゲートウェイECU1にLAN3の配下ECU情報を送信する(S20−3)。LAN3の配下ECU情報にはLAN2の配下ECU情報が含まれる。また、LAN3に所属するECUの消費電力情報と自機の消費電力情報をゲートウェイECU3に送信する。   The subordinate ECU information creation unit 32 of the gateway ECU 3 creates subordinate ECU information of the LAN3 from the power consumption information, and the ECU information transmission unit 33 transmits the subordinate ECU information of the LAN3 to the gateway ECU1 (S20-3). The subordinate ECU information of LAN3 includes subordinate ECU information of LAN2. In addition, the power consumption information of the ECU belonging to the LAN 3 and the power consumption information of the own machine are transmitted to the gateway ECU 3.

ゲートウェイECU1のLAN構成再現部42は、車載ネットワーク500のLAN構成を再現し、各階層のECUの消費電力情報を記憶する(S130)。   The LAN configuration reproduction unit 42 of the gateway ECU 1 reproduces the LAN configuration of the in-vehicle network 500 and stores the power consumption information of the ECUs in each hierarchy (S130).

ここで、書き換えツール200又はサーバ400が更新用のソフトウェアを配信し、外部通信部44がそれを受信する(S140)。ゲートウェイECU1が受信する情報には書き換え対象のECUを指示する情報が含まれる。   Here, the rewriting tool 200 or the server 400 distributes the update software, and the external communication unit 44 receives it (S140). The information received by the gateway ECU 1 includes information indicating the ECU to be rewritten.

経路決定部43は書き換え対象ECU13、ゲートウェイECU2〜4とECU14の消費電力情報、及び、LAN構成から、消費電力が最小になる通信経路を決定する(S150)。   The route determination unit 43 determines a communication route that minimizes power consumption from the power consumption information of the ECU 13 to be rewritten, the gateway ECUs 2 to 4 and the ECU 14, and the LAN configuration (S150).

ソフトウェア送信部45は通信経路のゲートウェイECUに書き換え開始を指示することで起動させ、また、書き換えが完了するまで通信を維持するよう指示する(S160)。   The software transmission unit 45 is activated by instructing the gateway ECU of the communication path to start rewriting, and instructs to maintain communication until the rewriting is completed (S160).

以上のように、本実施例のゲートウェイECU1は、ゲートウェイECU2〜4の消費電力及びソフトウェアの書き換え時に起動するECU14の消費電力を考慮して、最も消費電力が少なくなる通信経路を決定できる。よって、ソフトウェアの書き換えを行っても早期に充電を完了させることができる。   As described above, the gateway ECU 1 of the present embodiment can determine the communication path that consumes the least amount of power in consideration of the power consumption of the gateway ECUs 2 to 4 and the power consumption of the ECU 14 that is activated when the software is rewritten. Therefore, even if the software is rewritten, the charging can be completed at an early stage.

11 ゲートウェイECU(書き換えECU)
12 ゲートウェイECU
13 書き換え対象ECU
14 ECU
100 車両
200 書き換えツール
500 車載ネットワーク
11 Gateway ECU (Rewrite ECU)
12 Gateway ECU
13 ECU to be rewritten
14 ECU
100 vehicle 200 rewriting tool 500 vehicle-mounted network

Claims (7)

1つ以上の電子制御装置が接続されたネットワークが中継装置を介して階層的に接続された車載システムにおいて、
ソフトウェアを外部から取得する第1の電子制御装置と、
前記第1の電子制御装置と異なるネットワークに接続され、ソフトウェアを記憶する第2の電子制御装置と、を有し、
前記中継装置は、予め定められた側のネットワークに接続された他の中継装置の通信経路決定情報を記憶した通信経路決定情報記憶手段と、
前記側のネットワークに流れるデータを監視して該ネットワークに接続された前記他の中継装置を含む電子制御装置の電子制御装置リストを作成する識別情報作成手段と、
前記第1の電子制御装置側のネットワークに、当該中継装置が記憶する前記通信経路決定情報と当該中継装置が作成し当該中継装置に対応づけられた前記電子制御装置リストを送信し、及び、前記側のネットワークに接続された前記他の中継装置から受信した前記通信経路決定情報と前記電子制御装置リストを転送する情報送信手段と、を有し、
前記第1の電子制御装置は、前記中継装置から、前記通信経路決定情報と前記中継装置に対応づけられた前記電子制御装置リストを受信する情報受信手段と、
前記中継装置に対応づけられた前記電子制御装置リストに基づきネットワーク構造を再現する構造再現手段と、
前記通信経路決定情報及び前記ネットワーク構造に基づき、当該第1の電子制御装置から前記第2の電子制御装置までソフトウェアを送信可能な通信経路を決定する通信経路決定手段と、を有することを特徴とする車載システム。
In an in-vehicle system in which a network to which one or more electronic control devices are connected is hierarchically connected via a relay device,
A first electronic control unit for obtaining software from outside;
A second electronic control unit that is connected to a different network from the first electronic control unit and stores software;
The relay device includes a communication route determination information storage unit that stores communication route determination information of another relay device connected to a predetermined network.
Identification information creating means for monitoring data flowing in the network on the side and creating an electronic control device list of an electronic control device including the other relay device connected to the network;
Transmitting the communication path determination information stored in the relay device and the electronic control device list created by the relay device and associated with the relay device to the network on the first electronic control device side; and Information transmission means for transferring the communication path determination information received from the other relay device connected to the side network and the electronic control device list,
The first electronic control device receives information from the relay device, the communication path determination information and the electronic control device list associated with the relay device;
A structure reproduction means for reproducing a network structure based on the electronic control device list associated with the relay device;
Communication path determining means for determining a communication path capable of transmitting software from the first electronic control unit to the second electronic control unit based on the communication path determination information and the network structure; In-vehicle system.
前記通信経路決定情報は前記中継装置が通信可能な車両の電源状態情報であり、
前記通信経路決定手段は、現在の車両の電源状態で通信可能な前記ネットワーク構造上の前記中継装置を前記電源状態情報に基づき特定し、特定した1つ以上の前記中継装置を経由する経路をソフトウェアを送信する前記通信経路に決定する、
ことを特徴とする請求項1記載の車載システム。
The communication path determination information is power state information of a vehicle with which the relay device can communicate,
The communication path determination means identifies the relay apparatus on the network structure that can communicate with the current power supply state of the vehicle based on the power supply state information, and sets a route through the specified one or more relay apparatuses as software. Determining the communication path to transmit
The in-vehicle system according to claim 1.
前記通信経路決定情報は前記中継装置の消費電力情報であり、
前記通信経路決定手段は、前記消費電力情報に基づき、前記通信経路の候補となる経路の合計消費電力を算出し、前記合計消費電力が最も小さくなる経路をソフトウェアを送信する前記通信経路に決定する、
ことを特徴とする請求項1記載の車載システム。
The communication path determination information is power consumption information of the relay device,
The communication path determination means calculates the total power consumption of the paths that are candidates for the communication path based on the power consumption information, and determines the path with the smallest total power consumption as the communication path for transmitting software. ,
The in-vehicle system according to claim 1.
前記中継装置は、他の中継装置を含め、前記側のネットワークに接続された電子制御装置から通信可能な車両の前記電源状態情報を受信し、前記通信経路決定情報として前記通信経路決定情報記憶手段に登録する、
ことを特徴とする請求項2記載の車載システム。
The relay device receives the power state information of vehicles capable of communication from electronic control devices connected to the network on the side including other relay devices, and the communication route determination information storage means as the communication route determination information Register with,
The in-vehicle system according to claim 2.
前記中継装置は、他の中継装置を含め、前記側のネットワークに接続された電子制御装置から前記消費電力情報を受信し、前記通信経路決定情報として前記通信経路決定情報記憶手段に登録する、
ことを特徴とする請求項3記載の車載システム。
The relay device receives the power consumption information from the electronic control device connected to the network on the side including other relay devices, and registers the communication route determination information in the communication route determination information storage unit.
The in-vehicle system according to claim 3.
当該第1の電子制御装置から前記第2の電子制御装置までソフトウェアを送信可能な経路が複数ある場合、前記通信経路決定手段は中継される前記中継装置の数が最も少ない経路を前記通信経路に決定する、
ことを特徴とする請求項1又は2記載の車載システム。
When there are a plurality of paths through which software can be transmitted from the first electronic control apparatus to the second electronic control apparatus, the communication path determination means sets the path having the smallest number of relay apparatuses to be relayed as the communication path. decide,
The in-vehicle system according to claim 1 or 2.
前記通信経路決定手段は、通信経路にある全ての前記中継装置の前記合計消費電力に、ソフトウェアが更新中であることを知らせる所定の電子制御装置及び前記所定の電子制御装置と同じネットワークに所属する全ての電子制御装置の消費電力を加えて前記合計消費電力を算出し、前記合計消費電力が最も小さくなる経路をソフトウェアを送信する前記通信経路に決定する、
ことを特徴とする請求項3記載の車載システム。
The communication path determination means belongs to the same network as the predetermined electronic control apparatus and the predetermined electronic control apparatus that notify the total power consumption of all the relay apparatuses in the communication path that software is being updated. Calculating the total power consumption by adding the power consumption of all electronic control units, and determining the communication path for transmitting software to the path with the smallest total power consumption;
The in-vehicle system according to claim 3.
JP2012270499A 2012-12-11 2012-12-11 In-vehicle system Active JP5884716B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012270499A JP5884716B2 (en) 2012-12-11 2012-12-11 In-vehicle system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012270499A JP5884716B2 (en) 2012-12-11 2012-12-11 In-vehicle system

Publications (2)

Publication Number Publication Date
JP2014113952A true JP2014113952A (en) 2014-06-26
JP5884716B2 JP5884716B2 (en) 2016-03-15

Family

ID=51170438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012270499A Active JP5884716B2 (en) 2012-12-11 2012-12-11 In-vehicle system

Country Status (1)

Country Link
JP (1) JP5884716B2 (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016116075A (en) * 2014-12-15 2016-06-23 トヨタ自動車株式会社 On-vehicle communication system
JP2017220091A (en) * 2016-06-09 2017-12-14 株式会社デンソー In-vehicle device
JP6323968B1 (en) * 2017-08-08 2018-05-16 三菱日立パワーシステムズインダストリー株式会社 Vehicle maintenance tools
WO2018101144A1 (en) * 2016-11-30 2018-06-07 日立工機株式会社 Hot or cold storage
WO2019035261A1 (en) * 2017-08-16 2019-02-21 住友電気工業株式会社 Control device, control method and computer program
WO2019208624A1 (en) * 2018-04-25 2019-10-31 日本電気通信システム株式会社 In-vehicle communication device, communication system in vehicle, communication method and program
WO2020032117A1 (en) * 2018-08-10 2020-02-13 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
JP2020028121A (en) * 2018-08-10 2020-02-20 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
WO2020145334A1 (en) * 2019-01-10 2020-07-16 日本電気通信システム株式会社 Vehicle control device, vehicle network designing device, communication method, and program
JP2020120225A (en) * 2019-01-22 2020-08-06 日本電気通信システム株式会社 Network control device and method, and program
JP2021013139A (en) * 2019-07-09 2021-02-04 トヨタ自動車株式会社 In-vehicle network system
WO2021106604A1 (en) * 2019-11-28 2021-06-03 株式会社オートネットワーク技術研究所 In-vehicle relay device, program, and relay method
DE102021121239A1 (en) 2020-08-18 2022-02-24 Yazaki Corporation Moving body mounted communication system and communication system
WO2023195460A1 (en) * 2022-04-04 2023-10-12 株式会社オートネットワーク技術研究所 In-vehicle apparatus, computer program, and program updating method
JP7443820B2 (en) 2020-02-27 2024-03-06 マツダ株式会社 In-vehicle equipment control device and vehicle control system
WO2024090224A1 (en) * 2022-10-28 2024-05-02 株式会社オートネットワーク技術研究所 Update management device, in-vehicle system, control method, and computer program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108454538A (en) * 2017-02-17 2018-08-28 联合汽车电子有限公司 Vehicle Electronic Control Unit updating system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003204344A (en) * 2002-01-07 2003-07-18 Mitsubishi Electric Corp Vehicle information multiplex transmission system and method for multiplexing and transmitting vehicle information
JP2007228232A (en) * 2006-02-23 2007-09-06 Auto Network Gijutsu Kenkyusho:Kk On-vehicle lan system, electronic control unit, and relay connection unit
JP2010028614A (en) * 2008-07-23 2010-02-04 Nec System Technologies Ltd Relay device, path determination method, and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003204344A (en) * 2002-01-07 2003-07-18 Mitsubishi Electric Corp Vehicle information multiplex transmission system and method for multiplexing and transmitting vehicle information
JP2007228232A (en) * 2006-02-23 2007-09-06 Auto Network Gijutsu Kenkyusho:Kk On-vehicle lan system, electronic control unit, and relay connection unit
JP2010028614A (en) * 2008-07-23 2010-02-04 Nec System Technologies Ltd Relay device, path determination method, and program

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016116075A (en) * 2014-12-15 2016-06-23 トヨタ自動車株式会社 On-vehicle communication system
JP2017220091A (en) * 2016-06-09 2017-12-14 株式会社デンソー In-vehicle device
CN109313592A (en) * 2016-06-09 2019-02-05 株式会社电装 Vehicle device
JPWO2018101144A1 (en) * 2016-11-30 2019-08-08 工機ホールディングス株式会社 Thermal insulation or cold storage
WO2018101144A1 (en) * 2016-11-30 2018-06-07 日立工機株式会社 Hot or cold storage
JP2019031191A (en) * 2017-08-08 2019-02-28 三菱日立パワーシステムズインダストリー株式会社 Vehicle maintenance tool
JP6323968B1 (en) * 2017-08-08 2018-05-16 三菱日立パワーシステムズインダストリー株式会社 Vehicle maintenance tools
WO2019035261A1 (en) * 2017-08-16 2019-02-21 住友電気工業株式会社 Control device, control method and computer program
JP2019036855A (en) * 2017-08-16 2019-03-07 住友電気工業株式会社 Control device, control method, and computer program
US11704104B2 (en) 2017-08-16 2023-07-18 Sumitomo Electric Industries, Ltd. Control apparatus, control method, and computer program
CN111034132A (en) * 2017-08-16 2020-04-17 住友电气工业株式会社 Control apparatus, control method, and computer program
WO2019208624A1 (en) * 2018-04-25 2019-10-31 日本電気通信システム株式会社 In-vehicle communication device, communication system in vehicle, communication method and program
US11510130B2 (en) 2018-04-25 2022-11-22 Nec Communication Systems, Ltd. Car-loaded communication apparatus, in-car communication system, communication method and program
JP7028511B2 (en) 2018-04-25 2022-03-02 日本電気通信システム株式会社 In-vehicle communication device, in-vehicle communication system, communication method and program
JPWO2019208624A1 (en) * 2018-04-25 2021-04-22 日本電気通信システム株式会社 In-vehicle communication devices, in-vehicle communication systems, communication methods and programs
CN112640368A (en) * 2018-08-10 2021-04-09 株式会社电装 Vehicle host device, update data distribution control method, update data distribution control program, and specification data structure
WO2020032117A1 (en) * 2018-08-10 2020-02-13 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
CN112640368B (en) * 2018-08-10 2023-02-28 株式会社电装 Vehicle host device, update data distribution control method, update data distribution control program, and specification data structure
JP2020028121A (en) * 2018-08-10 2020-02-20 株式会社デンソー Vehicle master device, update data delivery control method, update data delivery control program, and data structure of specifications data
JP7024765B2 (en) 2018-08-10 2022-02-24 株式会社デンソー Vehicle master device, update data distribution control method, and update data distribution control program
WO2020145334A1 (en) * 2019-01-10 2020-07-16 日本電気通信システム株式会社 Vehicle control device, vehicle network designing device, communication method, and program
JP7311167B2 (en) 2019-01-10 2023-07-19 日本電気通信システム株式会社 VEHICLE CONTROL DEVICE, VEHICLE NETWORK DESIGN DEVICE, COMMUNICATION METHOD AND PROGRAM
JPWO2020145334A1 (en) * 2019-01-10 2021-11-25 日本電気通信システム株式会社 Vehicle control device, vehicle network design device, communication method and program
JP7207824B2 (en) 2019-01-22 2023-01-18 日本電気通信システム株式会社 Network control device, method and program
JP2020120225A (en) * 2019-01-22 2020-08-06 日本電気通信システム株式会社 Network control device and method, and program
JP7120171B2 (en) 2019-07-09 2022-08-17 トヨタ自動車株式会社 In-vehicle network system
JP2021013139A (en) * 2019-07-09 2021-02-04 トヨタ自動車株式会社 In-vehicle network system
US20220415097A1 (en) * 2019-11-28 2022-12-29 Autonetworks Technologies, Ltd. Vehicle-mounted relay apparatus, program, and reply method
JP2021087138A (en) * 2019-11-28 2021-06-03 株式会社オートネットワーク技術研究所 On-vehicle relay device, program, and relay method
WO2021106604A1 (en) * 2019-11-28 2021-06-03 株式会社オートネットワーク技術研究所 In-vehicle relay device, program, and relay method
JP7443820B2 (en) 2020-02-27 2024-03-06 マツダ株式会社 In-vehicle equipment control device and vehicle control system
DE102021121239A1 (en) 2020-08-18 2022-02-24 Yazaki Corporation Moving body mounted communication system and communication system
US11546009B2 (en) 2020-08-18 2023-01-03 Yazaki Corporation Moving body-mounted communication system and communication system
WO2023195460A1 (en) * 2022-04-04 2023-10-12 株式会社オートネットワーク技術研究所 In-vehicle apparatus, computer program, and program updating method
WO2024090224A1 (en) * 2022-10-28 2024-05-02 株式会社オートネットワーク技術研究所 Update management device, in-vehicle system, control method, and computer program

Also Published As

Publication number Publication date
JP5884716B2 (en) 2016-03-15

Similar Documents

Publication Publication Date Title
JP5884716B2 (en) In-vehicle system
US11380107B2 (en) Power and data center (PDC) for automotive applications
JP5741496B2 (en) In-vehicle communication system
JP3151831B2 (en) Vehicle information communication device and vehicle information communication system
US9639344B2 (en) Telematics update software compatibility
JP6414568B2 (en) Vehicle equipment
CN108369505B (en) Control apparatus, program update method, and computer program
JP5741480B2 (en) Communication system, relay device, and power supply control method
US10367889B2 (en) Smart routing for on-vehicle telematics protocol
KR101450166B1 (en) Method and apparatus for updating routing information in in-vehicle communication network
US11647077B2 (en) VIN ESN signed commands and vehicle level local web of trust
JP2018078396A (en) On-vehicle network system
JP2013107453A (en) Failure diagnosis system and diagnosis assist device constituting the same
WO2021043660A1 (en) Electrical architecture for service-oriented vehicle diagnostics
CN113498041A (en) Pre-mobile device and vehicle profile pairing
US20220415097A1 (en) Vehicle-mounted relay apparatus, program, and reply method
JP2007228232A (en) On-vehicle lan system, electronic control unit, and relay connection unit
CN116634531A (en) Dormancy awakening method, system and device
US8605698B2 (en) Vehicle with mobile router
JP2008172353A (en) In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method
JP2014083917A (en) Battery condition monitoring system for vehicle
JP2008227591A (en) On-vehicle relay connection unit
CN112136106A (en) Electronic control device and session establishment program
JP6172754B2 (en) Communication apparatus and communication method
JP2017114406A (en) Network system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150902

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150908

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151006

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160125

R151 Written notification of patent or utility model registration

Ref document number: 5884716

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151