JP2019009639A - On-vehicle communication system, on-vehicle relay device, and relay program - Google Patents

On-vehicle communication system, on-vehicle relay device, and relay program Download PDF

Info

Publication number
JP2019009639A
JP2019009639A JP2017124148A JP2017124148A JP2019009639A JP 2019009639 A JP2019009639 A JP 2019009639A JP 2017124148 A JP2017124148 A JP 2017124148A JP 2017124148 A JP2017124148 A JP 2017124148A JP 2019009639 A JP2019009639 A JP 2019009639A
Authority
JP
Japan
Prior art keywords
communication
vehicle
update
data
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017124148A
Other languages
Japanese (ja)
Inventor
剛史 紺谷
Takashi Konya
剛史 紺谷
梶田 治
Osamu Kajita
治 梶田
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.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Toyota Motor Corp
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
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 Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd, Toyota Motor Corp filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2017124148A priority Critical patent/JP2019009639A/en
Priority to PCT/JP2018/024123 priority patent/WO2019004173A1/en
Publication of JP2019009639A publication Critical patent/JP2019009639A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Stored Programmes (AREA)

Abstract

To provide an on-vehicle communication system, an on-vehicle relay device and a relay program, which can reduce a processing load of the on-vehicle relay device.SOLUTION: An on-vehicle communication system includes: a plurality of on-vehicle relay devices which relay communication between communication branch lines; one or a plurality of communication trunk lines which connects the plurality of on-vehicle relay devices; a plurality of communication branch lines connected to the on-vehicle relay devices; and one or a plurality of on-vehicle control devices connected to the communication branch lines. When a message, received from the on-vehicle control device through the self-communication branch line, is a message to be transmitted to an on-vehicle control device connected to a communication branch line other than the self-communication branch line, each on-vehicle relay device transmits the message to the other on-vehicle relay device through the communication trunk line. Further, the on-vehicle relay device transmits an update program or data, received from an update device which is connected to a vehicle connector, to the on-vehicle control device of an update target.SELECTED DRAWING: Figure 1

Description

本発明は、複数の車載制御装置間の通信を車載中継装置が中継する車載通信システム、並びに、このシステムに用いられる車載中継装置及び中継プログラムに関する。   The present invention relates to an in-vehicle communication system in which an in-vehicle relay device relays communication between a plurality of in-vehicle control devices, and an in-vehicle relay device and a relay program used in this system.

車両にはECU(Electronic Control Unit)などの車載制御装置が多数搭載されており、これらの装置が通信線を介して接続され、メッセージを送受信して情報交換を行うことで協調動作している。車両に搭載される制御装置の数が増大すると、1つの通信線に接続可能な装置数には上限があるため、車両に複数の通信線を配設し、複数の通信線をゲートウェイ(Gateway)などの車載中継装置に接続して、この車載中継装置が通信線間のメッセージを中継する構成とされることが多い。   The vehicle is equipped with a large number of on-board control devices such as an electronic control unit (ECU), and these devices are connected via a communication line, and operate cooperatively by exchanging information by transmitting and receiving messages. When the number of control devices mounted on a vehicle increases, there is an upper limit on the number of devices that can be connected to one communication line. Therefore, a plurality of communication lines are provided in a vehicle and a plurality of communication lines are connected to a gateway. In many cases, the in-vehicle relay device is configured to relay a message between communication lines.

また、車載制御装置はCPU(Central Processing Unit)又はMPU(Micro-Processing Unit)等の処理部がプログラムを実行することにより、種々の処理を行っている。例えばプログラムのバージョンアップ又は不具合修正等により、プログラムを更新する必要が生じる場合がある。プログラムの更新は、例えば更新用のプログラムを記憶している更新装置を車両に設けられたコネクタに接続し、更新装置から車載中継装置へ更新用のプログラムを送信し、車載中継装置が更新対象の車載制御装置へ更新用のプログラムを送信し、これを受信した車載制御装置が自身のメモリなどに記憶されたプログラムを書き換えることで行われる。   In addition, the in-vehicle control device performs various processes by a processing unit such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit) executing a program. For example, it may be necessary to update the program due to version upgrade or defect correction. For example, the update of the program is performed by connecting an update device storing an update program to a connector provided in the vehicle, transmitting the update program from the update device to the in-vehicle relay device, and the in-vehicle relay device being updated. An update program is transmitted to the in-vehicle control device, and the in-vehicle control device that receives the update program rewrites the program stored in its own memory or the like.

特許文献1においては、書換装置と複数の書換対象ECUとが同一バスで接続されたネットワーク構成において、書換装置が予め定められた特定のIDを使用して書換対象ECU全てに対して同時にデータを送信することで、並行でプログラムの書き換えを行い、書換時間を短縮するプログラム書換方法が提案されている。   In Patent Document 1, in a network configuration in which a rewrite device and a plurality of rewrite target ECUs are connected by the same bus, the rewrite device uses a specific ID that is determined in advance to simultaneously transmit data to all rewrite target ECUs. A program rewriting method has been proposed in which the program is rewritten in parallel to reduce the rewriting time.

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

近年では車両に搭載される車載制御装置の数が更に増加しており、車載中継装置によるメッセージ中継の処理負荷が増大するという問題がある。また車載制御装置のプログラムの書き換えを行う際には、車載中継装置の処理負荷が更に増大し、プログラムの書換処理に長い時間を要する虞がある。   In recent years, the number of in-vehicle control devices mounted on a vehicle has further increased, and there is a problem that the processing load of message relay by the in-vehicle relay device increases. Further, when rewriting the program of the in-vehicle control device, the processing load of the in-vehicle relay device further increases, and there is a possibility that a long time is required for the program rewrite processing.

本発明は、斯かる事情に鑑みてなされたものであって、その目的とするところは、車載中継装置の処理負荷を低減し得る車載通信システム、車載中継装置及び中継プログラムを提供することにある。   The present invention has been made in view of such circumstances, and an object thereof is to provide an in-vehicle communication system, an in-vehicle relay device, and a relay program that can reduce the processing load of the in-vehicle relay device. .

本発明に係る車載通信システムは、一又は複数の車載制御装置がそれぞれに接続された複数の通信支線が接続され、前記複数の通信支線間の通信を中継する複数の車載中継装置を備え、前記複数の車載中継装置は、一又は複数の通信幹線を介して接続され、前記複数の車載中継装置の各々は、メッセージ送信処理部を有し、前記メッセージ送信処理部は、自身の通信支線にて車載制御装置から受信したメッセージが、自身の通信支線以外の通信支線に接続された車載制御装置へ送信すべきメッセージである場合に、当該メッセージを受信すべき車載制御装置が接続された他の車載中継装置へ、前記通信幹線を介して前記メッセージを送信することを特徴とする。   An in-vehicle communication system according to the present invention includes a plurality of in-vehicle relay devices connected to a plurality of communication branch lines to which one or a plurality of in-vehicle control devices are connected, and relaying communication between the plurality of communication branch lines, The plurality of in-vehicle relay devices are connected via one or a plurality of communication trunk lines, each of the plurality of in-vehicle relay devices has a message transmission processing unit, and the message transmission processing unit is connected to its own communication branch line. When the message received from the in-vehicle control device is a message to be transmitted to the in-vehicle control device connected to a communication branch line other than its own communication branch line, the other in-vehicle device to which the in-vehicle control device to receive the message is connected The message is transmitted to the relay apparatus via the communication trunk line.

また、本発明に係る車載通信システムは、車両に設けられ、車両外の装置との間でデータの授受を行うデータ授受部と、前記データ授受部を介して、前記車載制御装置が記憶しているプログラム又はデータに対する更新用のプログラム又はデータを前記車載中継装置へ送信する更新装置とを備え、前記車載中継装置は、前記更新装置から受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信する更新用プログラム送信処理部を有することを特徴とする。   In addition, an in-vehicle communication system according to the present invention is provided in a vehicle and is stored in the in-vehicle control device via a data exchanging unit that exchanges data with an apparatus outside the vehicle, and the data exchanging unit. An update device that transmits a program or data for updating the program or data to the in-vehicle relay device, and the in-vehicle relay device updates the program or data for update received from the update device. And an update program transmission processing unit for transmitting to.

また、本発明に係る車載通信システムは、前記データ授受部が、前記更新装置が着脱可能に有線接続されるコネクタであることを特徴とする。   In the in-vehicle communication system according to the present invention, the data transfer unit is a connector to which the update device is detachably connected by wire.

また、本発明に係る車載通信システムは、前記データ授受部が、前記更新装置との間で無線通信を行う無線通信装置であることを特徴とする。   In the in-vehicle communication system according to the present invention, the data exchange unit is a wireless communication device that performs wireless communication with the update device.

また、本発明に係る車載通信システムは、前記データ授受部と前記複数の車載中継装置とを接続する通信線を備え、前記更新装置は、前記データ授受部及び前記通信線を介して前記複数の車載中継装置へ更新用のプログラム又はデータを送信することを特徴とする。   In addition, an in-vehicle communication system according to the present invention includes a communication line that connects the data transmission / reception unit and the plurality of in-vehicle relay devices, and the update device includes the plurality of the communication units via the data transmission / reception unit and the communication line. An update program or data is transmitted to the in-vehicle relay device.

また、本発明に係る車載通信システムは、各車載中継装置の前記更新用プログラム送信処理部は、自身の通信支線に接続された車載制御装置を更新対象とする更新用のプログラム又はデータを前記更新装置から前記データ授受部及び前記通信線を介して受信した場合に、受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信し、自身の通信支線に接続された車載制御装置以外を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを破棄することを特徴とする。   Further, in the in-vehicle communication system according to the present invention, the update program transmission processing unit of each in-vehicle relay device updates the update program or data for updating the in-vehicle control device connected to its own communication branch line. When received from the device via the data transfer unit and the communication line, the received update program or data is transmitted to the in-vehicle control device to be updated, and other than the in-vehicle control device connected to its own communication branch line When an update program or data to be updated is received, the received update program or data is discarded.

また、本発明に係る車載中継装置は、複数の通信線の間の通信を中継する車載中継装置において、車載制御装置が記憶しているプログラム又はデータに対する更新用のプログラム又はデータを更新装置から受信する受信部と、前記受信部が受信した更新用のプログラム又はデータを、前記通信線を介して更新対象の車載制御装置へ送信する更新用プログラム送信処理部とを備え、前記更新用プログラム送信処理部は、前記通信線に接続された車載制御装置を更新対象とする更新用のプログラム又はデータを前記受信部が受信した場合に、受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信し、前記通信線に接続された車載制御装置以外を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを破棄することを特徴とする。   The in-vehicle relay device according to the present invention receives a program or data for updating the program or data stored in the in-vehicle control device from the update device in the in-vehicle relay device that relays communication between a plurality of communication lines. And an update program transmission processing unit that transmits the update program or data received by the reception unit to the in-vehicle control device to be updated via the communication line, and the update program transmission process When the receiving unit receives an update program or data for updating the in-vehicle control device connected to the communication line, the unit transmits the received update program or data to the in-vehicle control device to be updated. When the update program or data for update other than the in-vehicle control device connected to the communication line is received, the received update Characterized by discarding programs or data.

また、本発明に係る中継プログラムは、複数の通信線の間の通信を中継する車載中継装置に、車載制御装置が記憶しているプログラム又はデータに対する更新用のプログラム又はデータを更新装置から受信し、前記通信線に接続された車載制御装置を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信し、前記通信線に接続された車載制御装置以外を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを破棄する処理を実行させることを特徴とする。   The relay program according to the present invention receives from the update device a program or data for updating the program or data stored in the in-vehicle control device to the in-vehicle relay device that relays communication between a plurality of communication lines. When the update program or data for updating the vehicle-mounted control device connected to the communication line is received, the received update program or data is transmitted to the vehicle-mounted control device for update, and the communication line When an update program or data that is an update target other than the vehicle-mounted control device connected to the PC is received, a process of discarding the received update program or data is executed.

本発明において車載通信システムは、複数の車載中継装置を備える。複数の車載中継装置は、一又は複数の通信幹線を介して接続され、各車載中継装置には複数の通信支線が接続され、各通信支線には一又は複数の車載制御装置が接続される。車載中継装置は、自身に接続された一の通信支線にて車載制御装置からのメッセージを受信し、受信したメッセージが自身に接続された他の通信支線に接続された車載制御装置へ送信すべきものである場合、このメッセージを他の通信支線へ中継する。また車載中継装置は、自身に接続された一の通信支線にて車載制御装置からのメッセージを受信し、受信したメッセージが自身に接続された通信支線以外の通信支線(即ち、他の車載中継装置に接続された通信支線)に接続された車載制御装置へ送信すべきものである場合、通信幹線を介してこのメッセージを他の車載中継装置へ送信する。これにより、メッセージ中継に係る処理負荷を複数の車載中継装置に分散することができ、各車載中継装置の処理負荷を低減することができる。   In the present invention, the in-vehicle communication system includes a plurality of in-vehicle relay devices. A plurality of in-vehicle relay devices are connected via one or a plurality of communication trunk lines, a plurality of communication branch lines are connected to each in-vehicle relay device, and one or a plurality of in-vehicle control devices are connected to each communication branch line. The in-vehicle relay device receives a message from the in-vehicle control device through one communication branch line connected to itself, and the received message should be transmitted to the in-vehicle control device connected to another communication branch line connected to itself. If so, the message is relayed to another communication branch line. The in-vehicle relay device receives a message from the in-vehicle control device through one communication branch line connected to itself, and the received message is a communication branch line other than the communication branch line connected to itself (that is, another in-vehicle relay device). If the message is to be transmitted to the in-vehicle control device connected to the communication branch line connected to), this message is transmitted to the other in-vehicle relay device via the communication trunk line. Thereby, the processing load concerning message relay can be distributed to a plurality of in-vehicle relay devices, and the processing load of each in-vehicle relay device can be reduced.

また本発明においては、車両外の装置との間でデータを授受するためのデータ授受部を車両に設け、車載制御装置の更新用のプログラム又はデータを有する更新装置がデータ授受部を介して車載中継装置へ更新用のプログラム又はデータを送信する。データ授受部は、例えば更新装置を有線接続するコネクタ、又は、更新装置との無線通信を行う無線通信装置等とすることができる。
更新装置から更新用のプログラム又はデータを受信した車載中継装置は、これを更新対象の車載制御装置へ送信することにより更新処理を行う。これにより車載制御装置は、車載中継装置から更新用のプログラム又はデータを受信してメモリの記憶内容を書き換えることで、プログラム又はデータを更新することができる。
In the present invention, the vehicle is provided with a data transmission / reception unit for transmitting / receiving data to / from a device outside the vehicle, and the update device having an update program or data for the in-vehicle control device is mounted on the vehicle via the data transmission / reception unit. An update program or data is transmitted to the relay device. The data transmission / reception unit may be, for example, a connector for connecting the update device by wire, or a wireless communication device for performing wireless communication with the update device.
The in-vehicle relay device that has received the update program or data from the update device performs update processing by transmitting it to the in-vehicle control device to be updated. Thus, the in-vehicle control device can update the program or data by receiving the update program or data from the in-vehicle relay device and rewriting the stored contents of the memory.

データ授受部と複数の車載中継装置のいずれか1つとを通信線で接続する構成とした場合、データ授受部に接続された一の車載中継装置に対して更新対象の車載制御装置が直接的に通信支線を介して接続されていなければ、一の車載中継装置は更新対象の車載制御装置が接続された他の車載中継装置へ更新用のプログラム又はデータを中継する必要がある。更新装置から更新対象の車載制御装置までに介在する車載中継装置の数が増加するほど、更新処理に要する時間が増大する虞がある。
そこで、車載中継装置を複数備える本発明の車載通信システムにおいては、データ授受部と複数の車載中継装置とを接続する通信線を設ける。更新装置から送信された更新用のプログラム又はデータは、データ授受部及び通信線を介して、複数の車載中継装置へ直接的に与えられる。更新対象の車載制御装置がいずれの車載中継装置に接続されていても、この車載中継装置へ更新装置から直接的に更新用のプログラム又はデータが与えられるため、更新装置から更新対象の車載制御装置までに介在する装置の数を低減でき、更新処理の時間が増大することを防止できる。
When the data exchange unit and any one of a plurality of in-vehicle relay devices are connected via a communication line, the in-vehicle control device to be updated is directly connected to one in-vehicle relay device connected to the data exchange unit. If not connected via a communication branch line, one in-vehicle relay device needs to relay an update program or data to another in-vehicle relay device to which the in-vehicle control device to be updated is connected. As the number of in-vehicle relay devices interposed from the update device to the in-vehicle control device to be updated increases, the time required for the update process may increase.
Therefore, in the in-vehicle communication system of the present invention including a plurality of in-vehicle relay devices, a communication line for connecting the data transfer unit and the plurality of in-vehicle relay devices is provided. The update program or data transmitted from the update device is directly given to the plurality of in-vehicle relay devices via the data transfer unit and the communication line. Even if the in-vehicle control device to be updated is connected to any in-vehicle relay device, an update program or data is directly given to the in-vehicle relay device from the update device. It is possible to reduce the number of apparatuses intervening until the update processing time is increased.

また本発明において車載中継装置は、データ授受部及び通信線を介して更新装置からの更新用のプログラム又はデータを受信した場合に、この更新用のプログラム又はデータが自身に接続された通信支線に接続された車載制御装置を更新対象とするものであるか否かを判定する。自身の通信支線に接続された車載制御装置を更新対象とする場合、車載中継装置は、更新装置から受信した更新用のプログラム又はデータを、通信支線を介して更新対象の車載制御装置へ送信する。これに対して自身の通信支線以外の通信支線(即ち、他の車載中継装置に接続された通信支線)に接続された車載制御装置を更新対象とする場合、車載中継装置は、更新用のプログラム又はデータを他の車載中継装置を送信することなく、破棄する。これらにより各車載中継装置は、自身の通信支線に接続された車載制御装置のみを更新処理の対象とすればよいため、更新処理に係る負荷を低減することができる。   In the present invention, when the in-vehicle relay device receives an update program or data from the update device via the data transfer unit and the communication line, the update program or data is connected to the communication branch line connected to itself. It is determined whether or not the connected in-vehicle control device is to be updated. When an in-vehicle control device connected to its own communication branch is an update target, the in-vehicle relay device transmits the update program or data received from the update device to the update-target in-vehicle control device via the communication branch. . On the other hand, when an in-vehicle controller connected to a communication branch other than its own communication branch (that is, a communication branch connected to another in-vehicle relay device) is an update target, the in-vehicle relay device is an update program. Alternatively, the data is discarded without transmitting the other in-vehicle relay device. Accordingly, each in-vehicle relay device only needs to set the in-vehicle control device connected to its own communication branch line as the target of the update process, and thus can reduce the load related to the update process.

本発明による場合は、複数の車載中継装置を備えて、車載制御装置間のメッセージの送受信を複数の車載中継装置を介して行う構成とすることにより、メッセージ中継に係る処理負荷を複数の車載中継装置に分散することができ、各車載中継装置の処理負荷を低減することができる。   According to the present invention, a plurality of in-vehicle relay devices are provided, and a message load between the in-vehicle control devices is configured to be transmitted and received through the plurality of in-vehicle relay devices, so that the processing load related to message relay is increased. It can be distributed to the devices, and the processing load of each in-vehicle relay device can be reduced.

本実施の形態に係る車載通信システムの構成を示す模式図である。It is a schematic diagram which shows the structure of the vehicle-mounted communication system which concerns on this Embodiment. ゲートウェイの構成を示すブロック図である。It is a block diagram which shows the structure of a gateway. ECUの構成を示すブロック図である。It is a block diagram which shows the structure of ECU. ゲートウェイが行う中継処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the relay process which a gateway performs. ゲートウェイが行う更新処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the update process which a gateway performs. 変形例に係る車載通信システムの構成を示す模式図である。It is a schematic diagram which shows the structure of the vehicle-mounted communication system which concerns on a modification. 変形例2に係る車載通信システムの構成を示す模式図である。It is a schematic diagram which shows the structure of the vehicle-mounted communication system which concerns on the modification 2. 変形例3に係る車載通信システムの構成を示す模式図である。It is a schematic diagram which shows the structure of the vehicle-mounted communication system which concerns on the modification 3.

<システム概要>
図1は、本実施の形態に係る車載通信システムの構成を示す模式図である。本実施の形態に係る車載通信システムは、車両1に搭載された複数のECU2が、通信幹線1a、通信支線1b及びゲートウェイ4を介してメッセージの送受信を行う構成である。詳しくは、車両1には2つのゲートウェイ4が搭載されており、この2つのゲートウェイ4は通信幹線1aを介して接続され、相互にメッセージの送受信を行うことができる。各ゲートウェイ4にはそれぞれ3つの通信支線1bが接続されており、各通信支線1bには複数のECU2がそれぞれ接続されている。各ECU2は、共通の通信支線1bに接続された他のECU2との間で、通信支線1bを介してメッセージを直接的に送受信することができる。またECU2は、共通の通信支線1bに接続されておらず且つ他の通信支線1bに接続された他のECU2との間で、ゲートウェイ4を介した間接的なメッセージ送受信を行うことができる。
<System overview>
FIG. 1 is a schematic diagram showing a configuration of an in-vehicle communication system according to the present embodiment. The in-vehicle communication system according to the present embodiment has a configuration in which a plurality of ECUs 2 mounted on a vehicle 1 transmit and receive messages via a communication trunk line 1a, a communication branch line 1b, and a gateway 4. Specifically, two gateways 4 are mounted on the vehicle 1, and the two gateways 4 are connected via the communication trunk line 1a and can transmit and receive messages to and from each other. Each communication branch line 1b is connected to each gateway 4, and a plurality of ECUs 2 are connected to each communication branch line 1b. Each ECU 2 can directly transmit / receive a message to / from another ECU 2 connected to the common communication branch line 1b via the communication branch line 1b. Further, the ECU 2 can perform indirect message transmission / reception via the gateway 4 with another ECU 2 that is not connected to the common communication branch line 1b and connected to another communication branch line 1b.

ゲートウェイ4は、自身に接続された通信支線1bにてECU2からのメッセージを受信した場合、例えば予め記憶した中継テーブルなどに基づいて受信メッセージの中継の要否を判定すると共に、中継が必要なメッセージについては中継先を決定する。メッセージの中継先には、自身に接続された一又は複数の通信支線1bと、他のゲートウェイ4との間に接続された通信幹線1aとがあり得る。ゲートウェイ4は、受信メッセージが自身の通信支線1bに接続されたECU2に送信すべきメッセージである場合、当該通信支線1bへメッセージを送信する。またゲートウェイ4は、他のゲートウェイ4の通信支線1bに接続されたECU2に送信すべきメッセージである場合、通信幹線1aへメッセージを送信する。なおゲートウェイ4によるメッセージの中継先は1つである必要はなく、通信幹線1a及び通信支線1bの両方にメッセージを送信してもよい。   When the gateway 4 receives a message from the ECU 2 via the communication branch line 1b connected to the gateway 4, the gateway 4 determines whether or not the received message needs to be relayed based on, for example, a relay table stored in advance, and the message that needs to be relayed. Determine the relay destination. The message relay destination may include one or a plurality of communication branch lines 1 b connected to itself and a communication trunk line 1 a connected between the other gateways 4. When the received message is a message to be transmitted to the ECU 2 connected to its own communication branch line 1b, the gateway 4 transmits the message to the communication branch line 1b. When the gateway 4 is a message to be transmitted to the ECU 2 connected to the communication branch line 1b of the other gateway 4, the gateway 4 transmits a message to the communication trunk line 1a. The message relay destination by the gateway 4 does not have to be one, and the message may be transmitted to both the communication trunk line 1a and the communication branch line 1b.

また本実施の形態に係る車両1には、例えば車室の運転席近傍又はエンジンルーム内等の適所に、外部の装置を着脱可能に接続するためのコネクタ6が設けられている。コネクタ6は、接続された外部の装置との間でデータの授受を行うことができる。コネクタ6は、例えばダイアグコネクタなどの名称で呼ばれ得るものである。コネクタ6には、例えば通信ケーブル7aを介して更新装置7を着脱可能に接続することができる。また車両1内においてコネクタ6は、2つのゲートウェイ4にそれぞれ更新用通信線1cを介して接続されている。これによりコネクタに更新装置7が接続された場合、更新装置7が送信したメッセージは、コネクタ6及び更新用通信線1cを介して2つのゲートウェイ4にそれぞれ受信される。   In addition, the vehicle 1 according to the present embodiment is provided with a connector 6 for detachably connecting an external device, for example, in an appropriate place such as in the vicinity of the driver's seat in the passenger compartment or in the engine room. The connector 6 can exchange data with a connected external device. The connector 6 can be called by a name such as a diagnostic connector, for example. For example, the updating device 7 can be detachably connected to the connector 6 via a communication cable 7a. In the vehicle 1, the connector 6 is connected to two gateways 4 via update communication lines 1 c. Thus, when the update device 7 is connected to the connector, the message transmitted by the update device 7 is received by the two gateways 4 via the connector 6 and the update communication line 1c.

本実施の形態においてECU2は、例えばフラッシュメモリなどに記憶したプログラムをプロセッサが実行することによって、車両1の走行制御などの種々の処理を行うことができる。ECU2が記憶しているプログラム及びこれに伴うデータ等は、例えばバージョンアップ又は不具合修正等を目的として、更新を行う必要が生じる場合がある。更新装置7は、ECU2が記憶しているプログラム又はデータを更新する処理を行うための装置である。更新装置7は、例えば車両1のディーラ又は整備工場等に備えられる装置であり、車両1の整備などを行う作業者が持ち運ぶことが可能な装置である。更新装置7は、例えばサーバ装置(図示は省略する)などからECU2の更新用のプログラム又はデータ(以下、単に更新用プログラムという)をダウンロードして記憶しており、車両1のコネクタ6に通信ケーブル7aを介して接続された後、記憶した更新用プログラムを車両1へ送信する。   In the present embodiment, the ECU 2 can perform various processes such as travel control of the vehicle 1 by causing the processor to execute a program stored in, for example, a flash memory. The program stored in the ECU 2 and the data associated therewith may need to be updated, for example, for the purpose of version upgrade or defect correction. The update device 7 is a device for performing a process of updating a program or data stored in the ECU 2. The update device 7 is a device provided in, for example, a dealer of the vehicle 1 or a maintenance factory, and is a device that can be carried by an operator who performs maintenance of the vehicle 1 or the like. The update device 7 downloads and stores an update program or data (hereinafter simply referred to as an update program) of the ECU 2 from, for example, a server device (not shown), and the communication cable is connected to the connector 6 of the vehicle 1. After being connected via 7a, the stored update program is transmitted to the vehicle 1.

更新装置7から送信された更新用プログラムは、通信ケーブル7a、コネクタ6及び更新用通信線1cを介して2つのゲートウェイ4にて受信される。ゲートウェイ4は、受信した更新用プログラムが自身の通信支線1bに接続されたECU2の更新に用いるものであるか否かを判定する。例えば更新装置7は更新用プログラムと共にこれを用いて更新処理を行うべきECU2の識別情報等を送信する。ゲートウェイ4は、例えば自身の通信支線1bに接続されている全てのECU2の識別情報を記憶しており、記憶した識別情報の中に更新装置7から受信した更新用プログラムに付された識別情報と一致するものが存在するか否かに応じて、受信した更新用プログラムが自身の通信支線1bに接続されたECU2の更新に用いるものであるか否かを判定することができる。   The update program transmitted from the update device 7 is received by the two gateways 4 via the communication cable 7a, the connector 6, and the update communication line 1c. The gateway 4 determines whether or not the received update program is used for updating the ECU 2 connected to its own communication branch line 1b. For example, the update device 7 transmits the identification information of the ECU 2 to be updated using the update program. The gateway 4 stores, for example, the identification information of all ECUs 2 connected to its own communication branch line 1b, and the identification information attached to the update program received from the update device 7 in the stored identification information It can be determined whether or not the received update program is used for updating the ECU 2 connected to its own communication branch line 1b depending on whether or not there is a match.

ゲートウェイ4は、更新装置7から受信した更新用プログラムが自身の通信支線1bに接続されたECU2の更新に用いるものであると判定した場合、このECU2が接続されている通信支線1bに更新用プログラムを送信する。ゲートウェイ4から更新用プログラムを受信したECU2は、自身のメモリに記憶されたプログラムを、受信した更新用プログラムに書き換えることにより、プログラムを更新する。またゲートウェイ4は、更新装置7から受信した更新用プログラムが自身の通信支線1bに接続されたECU2の更新に用いるものでないと判定した場合、この更新用プログラムを破棄する。   When the gateway 4 determines that the update program received from the update device 7 is used to update the ECU 2 connected to its own communication branch line 1b, the gateway 4 updates the communication branch line 1b to which this ECU 2 is connected. Send. The ECU 2 that has received the update program from the gateway 4 updates the program by rewriting the program stored in its own memory with the received update program. When the gateway 4 determines that the update program received from the update device 7 is not used for updating the ECU 2 connected to its communication branch line 1b, the gateway 4 discards the update program.

なお本実施の形態において、車両1に搭載された複数のECU2は、それぞれ異なる機能を有し、異なる処理を行うものであって、ハードウェア的にもソフトウェア的にも異なる装置である。これに対して車両1に搭載された2つのゲートウェイ4は、ハードウェア的に全く同じ装置であってよく、同じ装置に対して動作に係る情報(例えばメッセージの中継先及び接続されているECU2の識別情報等の情報)を適宜に設定したものとすることができる。ただし2つのゲートウェイ4は、異なるハードウェア構成の装置を採用してもよい。   In the present embodiment, the plurality of ECUs 2 mounted on the vehicle 1 have different functions, perform different processes, and are different devices both in terms of hardware and software. On the other hand, the two gateways 4 mounted on the vehicle 1 may be the same device in terms of hardware, and information related to the operation (for example, the message relay destination and the connected ECU 2 of the ECU 2). Information such as identification information) can be set appropriately. However, the two gateways 4 may employ apparatuses having different hardware configurations.

<装置構成>
図2は、ゲートウェイ4の構成を示すブロック図である。本実施の形態に係るゲートウェイ4は、処理部41、ROM(Read Only Memory)42、RAM(Random Access Memory)43、第1通信部44、第2通信部45及び更新用通信部46等を備えて構成されている。処理部(プロセッサ)41は、例えばCPU又はMPU等の演算処理装置を用いて構成されており、ROM42に記憶されたプログラムを読み出して実行することにより、種々の演算処理及び制御処理等を行うことができる。本実施の形態において処理部41は、ROM42に記憶された中継プログラム42aを読み出して実行することにより、メッセージの中継処理及びECU2の更新処理等を行う。
<Device configuration>
FIG. 2 is a block diagram showing the configuration of the gateway 4. The gateway 4 according to the present embodiment includes a processing unit 41, a ROM (Read Only Memory) 42, a RAM (Random Access Memory) 43, a first communication unit 44, a second communication unit 45, an update communication unit 46, and the like. Configured. The processing unit (processor) 41 is configured using an arithmetic processing device such as a CPU or MPU, for example, and performs various arithmetic processing and control processing by reading and executing a program stored in the ROM 42. Can do. In the present embodiment, the processing unit 41 reads and executes the relay program 42a stored in the ROM 42, thereby performing message relay processing, ECU 2 update processing, and the like.

ROM(ストレージ)42は、例えばフラッシュメモリ又はEEPROM(Electrically Erasable Programmable Read Only Memory)等のデータ書換可能な不揮発性のメモリ素子を用いて構成されている。ROM42は、処理部41が実行するプログラム及びこのプログラムの実行に必要なデータ等を記憶する。本実施の形態においてROM42は、処理部41が実行する中継プログラム42aと、処理部41の中継処理に必要な情報が設定された中継テーブル42bと、処理部41の更新処理に必要な情報が設定されたECU情報42cとを記憶している。中継テーブル42bは、例えばECU2間で送受信されるメッセージに付される識別情報と、この識別情報を有するメッセージを中継すべき通信線(通信幹線1a及び/又は通信支線1b)とを対応付けて記憶したものである。ECU情報42cは、このゲートウェイ4に接続された通信支線1bと、通信支線1bに接続されたECU2の識別情報とを対応付けて記憶したものである。ECU情報42cには、例えばECU2のプログラムのバージョン情報などを更に記憶してもよい。   The ROM (storage) 42 is configured by using a non-volatile memory element that can rewrite data, such as a flash memory or an EEPROM (Electrically Erasable Programmable Read Only Memory). The ROM 42 stores a program executed by the processing unit 41, data necessary for executing the program, and the like. In the present embodiment, the ROM 42 sets the relay program 42a executed by the processing unit 41, the relay table 42b in which information necessary for the relay processing of the processing unit 41 is set, and information necessary for the update processing of the processing unit 41. ECU information 42c is stored. The relay table 42b stores, for example, identification information attached to a message transmitted / received between the ECUs 2 and a communication line (communication trunk line 1a and / or communication branch line 1b) to which the message having the identification information is to be relayed. It is a thing. The ECU information 42c stores the communication branch line 1b connected to the gateway 4 and the identification information of the ECU 2 connected to the communication branch line 1b in association with each other. The ECU information 42c may further store, for example, program version information of the ECU 2.

RAM43は、例えばSRAM(Static Random Access Memory)又はDRAM(Dynamic Random Access Memory)等のデータ書換可能なメモリ素子を用いて構成されている。処理部41は、例えばECU2から受信した中継すべきメッセージをRAM43に一時的に記憶することができる。また処理部41は、更新装置7から受信した更新用プログラムをRAM43に一時的に記憶することができる。   The RAM 43 is configured by using a data rewritable memory element such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory). The processing unit 41 can temporarily store, for example, a message to be relayed received from the ECU 2 in the RAM 43. The processing unit 41 can temporarily store the update program received from the update device 7 in the RAM 43.

第1通信部44は、通信幹線1aが接続され、他のゲートウェイ4との間でメッセージの送受信を行う。第1通信部44は、例えばCAN(Controller Area Network)又はイーサネット(登録商標)等の通信プロトコルに従って、他のゲートウェイ4との間で通信を行う。例えばCANの通信プロトコルが採用されている場合、第1通信部44はCANコントローラなどのトランシーバIC(Integrated Circuit)を用いて構成され得る。第1通信部44は、処理部41からデジタルデータとして与えられる送信用のメッセージを電気信号に変換して通信幹線1aへ出力することによりメッセージを送信する。また第1通信部44は、通信幹線1aの電位をサンプリングして取得することによりメッセージを受信し、受信したメッセージを処理部41へ与える。   The first communication unit 44 is connected to the communication trunk line 1 a and transmits and receives messages to and from other gateways 4. The first communication unit 44 communicates with another gateway 4 according to a communication protocol such as CAN (Controller Area Network) or Ethernet (registered trademark). For example, when a CAN communication protocol is employed, the first communication unit 44 can be configured using a transceiver IC (Integrated Circuit) such as a CAN controller. The 1st communication part 44 transmits a message by converting the message for transmission given as digital data from the process part 41 into an electrical signal, and outputting it to the communication trunk line 1a. The first communication unit 44 receives a message by sampling and acquiring the potential of the communication trunk line 1 a, and gives the received message to the processing unit 41.

第2通信部45は、ゲートウェイ4に複数(図示の例では3つ)備えられている。第2通信部45は、それぞれ通信支線1bに接続され、通信支線1bに接続された一又は複数のECU2との間でメッセージの送受信を行う。第2通信部45は、例えばCAN又はイーサネット等の通信プロトコルに従って通信を行う。第2通信部45は、処理部41からデジタルデータとして与えられる送信用のメッセージを電気信号に変換して通信支線1bへ出力することによりメッセージを送信する。また第2通信部45は、通信支線1bの電位をサンプリングして取得することによりメッセージを受信し、受信したメッセージを処理部41へ与える。   A plurality of (three in the illustrated example) second communication units 45 are provided in the gateway 4. The 2nd communication part 45 is connected to the communication branch line 1b, respectively, and transmits / receives a message between one or some ECU2 connected to the communication branch line 1b. The second communication unit 45 performs communication according to a communication protocol such as CAN or Ethernet. The 2nd communication part 45 transmits a message by converting the message for transmission given as digital data from the processing part 41 into an electric signal, and outputting it to the communication branch line 1b. Further, the second communication unit 45 receives a message by sampling and acquiring the potential of the communication branch line 1 b, and gives the received message to the processing unit 41.

更新用通信部46は、更新用通信線1cが接続され、コネクタ6に接続された更新装置7などの外部装置との間でメッセージの送受信を行う。更新用通信部46は、例えばCAN、イーサネット又はUSB(Universal Serial Bus)等の通信プロトコルに従って、外部装置との間で通信を行う。更新用通信部46は、処理部41からデジタルデータとして与えられる送信用のメッセージを電気信号に変換して更新用通信線1cへ出力することによりメッセージを送信する。また更新用通信部46は、更新用通信線1cの電位をサンプリングして取得することによりメッセージを受信し、受信したメッセージを処理部41へ与える。   The update communication unit 46 is connected to the update communication line 1 c and transmits / receives a message to / from an external device such as the update device 7 connected to the connector 6. The update communication unit 46 communicates with an external device according to a communication protocol such as CAN, Ethernet, or USB (Universal Serial Bus). The update communication unit 46 transmits the message by converting the message for transmission given as digital data from the processing unit 41 into an electrical signal and outputting it to the update communication line 1c. Further, the update communication unit 46 receives a message by sampling and acquiring the potential of the update communication line 1c, and gives the received message to the processing unit 41.

なお、第1通信部44、第2通信部45及び更新用通信部46は、採用する通信プロトコルが同じであれば、同じ構成であってよく、区別される必要はない。例えば全てCANの通信プロトコルで通信を行うのであれば、第1通信部44、第2通信部45及び更新用通信部46は、いずれもCANコントローラなどを用いて構成され得る。この構成の場合、ゲートウェイ4は5つのCANコントローラが搭載され、これらは区別される必要はなく、通信幹線1aが接続されたものを第1通信部44とみなし、通信支線1bが接続されたものを第2通信部45とみなし、更新用通信線1cが接続されたものを更新用通信部46とみなせばよい。   Note that the first communication unit 44, the second communication unit 45, and the update communication unit 46 may have the same configuration as long as the same communication protocol is adopted, and need not be distinguished. For example, if all communication is performed using a CAN communication protocol, each of the first communication unit 44, the second communication unit 45, and the update communication unit 46 may be configured using a CAN controller or the like. In the case of this configuration, the gateway 4 is equipped with five CAN controllers, which do not need to be distinguished from each other, and are considered to be the first communication unit 44 connected to the communication trunk line 1a and connected to the communication branch line 1b. May be regarded as the second communication unit 45, and the update communication unit 46 connected to the update communication line 1c.

また本実施の形態に係るゲートウェイ4は、ROM42に記憶された中継プログラム42aを処理部41が読み出して実行することにより、中継処理部41a及び更新処理部41b等が処理部41にソフトウェア的な機能ブロックとして実現される。中継処理部41aは、ECU2の間のメッセージ送受信を中継する処理を行う。中継処理部41aは、通信支線1bを介して第2通信部45にてECU2からのメッセージを受信した場合、受信メッセージの中継の要否を判定すると共に、中継が必要であれば中継先を決定する処理を行う。また中継処理部41aは、通信幹線1aを介して第1通信部44にて他のゲートウェイ4からのメッセージを受信した場合、中継先を決定する処理を行う。   In the gateway 4 according to the present embodiment, the processing unit 41 reads and executes the relay program 42a stored in the ROM 42, so that the relay processing unit 41a, the update processing unit 41b, etc. Realized as a block. The relay processing unit 41a performs processing for relaying message transmission / reception between the ECUs 2. When the relay processing unit 41a receives a message from the ECU 2 at the second communication unit 45 via the communication branch line 1b, the relay processing unit 41a determines whether or not to relay the received message, and determines a relay destination if relaying is necessary. Perform the process. When the relay processing unit 41a receives a message from another gateway 4 at the first communication unit 44 via the communication trunk line 1a, the relay processing unit 41a performs processing for determining a relay destination.

このときに中継処理部41aは、受信メッセージに含まれる識別情報に基づいてROM42に記憶された中継テーブル42bを参照する。中継テーブル42bには、メッセージに付される識別情報と、この識別情報を有するメッセージの送信先となる通信幹線1a及び/又は通信支線1bとが対応付けて記憶されている。中継処理部41aは、例えば受信メッセージの識別情報が中継テーブル42bに登録されていない場合に中継が不要と判定し、中継テーブル42bに登録されている場合に中継が必要と判定することができる。受信メッセージの中継が必要である場合、中継処理部41aは、受信メッセージの識別情報に対応付けられた中継先の通信幹線1a及び/又は通信支線1bの情報を中継テーブル42bから取得する。中継処理部41aは、中継先の通信幹線1a及び/又は通信支線1bが接続された第1通信部44及び/又は第2通信部45へ受信メッセージを与えることによりこのメッセージを送信し、メッセージを中継する。   At this time, the relay processing unit 41a refers to the relay table 42b stored in the ROM 42 based on the identification information included in the received message. In the relay table 42b, the identification information attached to the message is stored in association with the communication trunk line 1a and / or the communication branch line 1b that is the transmission destination of the message having the identification information. For example, the relay processing unit 41a can determine that relaying is not necessary when the identification information of the received message is not registered in the relay table 42b, and can determine that relaying is necessary when it is registered in the relay table 42b. When it is necessary to relay the received message, the relay processing unit 41a acquires information about the communication trunk line 1a and / or the communication branch line 1b of the relay destination associated with the identification information of the received message from the relay table 42b. The relay processing unit 41a transmits this message by giving a received message to the first communication unit 44 and / or the second communication unit 45 to which the communication trunk line 1a and / or the communication branch line 1b of the relay destination is connected, Relay.

更新処理部41bは、ECU2のプログラムを更新する処理を行う。更新処理部41bは、コネクタ6に通信ケーブル7aを介して更新装置7が接続された場合に、更新用通信部46にて更新装置7との通信を行い、更新装置7が正当な装置であるか否かを判断するための認証処理などを行う。更新装置7が正当な装置であると判断した後、更新処理部41bは、更新装置7が送信する更新用プログラムを更新用通信部46にて受信し、受信した更新用プログラムをRAM43に一時的に記憶する。またこのときに更新装置7は、更新用プログラムと共に、この更新用プログラムを用いてプログラムを更新すべきECU2の識別情報などをゲートウェイ4へ送信する。ECU2の識別情報は、例えばECU2の型番又は製造番号等の情報とすることができ、必ずしもECU2毎に一意的に付される識別情報である必要はなく、同じ装置には同じ値が設定される情報であってよい。ゲートウェイ4のROM42に記憶されるECU情報42cには、ゲートウェイ4に接続された通信支線1bに接続されたECU2について、ECU2の識別情報と、このECU2がいずれの通信支線1bに接続されているかの情報とが対応付けて記憶されている。更新処理部41bは、更新用プログラムと共に与えられた更新対象のECU2の識別情報に基づいてROM42のECU情報42cを参照し、更新用プログラムの送信先を決定する。更新処理部41bは、RAM43から更新用プログラムを読み出して、更新対象のECU2が接続された通信支線1bに接続された第2通信部45へ更新用プログラムを与える。これにより更新用プログラムは第2通信部45にて更新対象のECU2へ送信され、これを受信したECU2は自身のメモリに記憶されたプログラムを、受信した更新用プログラムに置き換えることによって、プログラムを更新する。   The update processing unit 41b performs processing for updating the program of the ECU 2. When the update device 7 is connected to the connector 6 via the communication cable 7a, the update processing unit 41b communicates with the update device 7 in the update communication unit 46, and the update device 7 is a valid device. Authentication processing is performed to determine whether or not. After determining that the update device 7 is a valid device, the update processing unit 41 b receives the update program transmitted by the update device 7 at the update communication unit 46 and temporarily stores the received update program in the RAM 43. To remember. At this time, the updating device 7 transmits to the gateway 4 identification information of the ECU 2 whose program is to be updated using the updating program together with the updating program. The identification information of the ECU 2 can be, for example, information such as the model number or manufacturing number of the ECU 2, and is not necessarily identification information uniquely given to each ECU 2, and the same value is set for the same device. It may be information. The ECU information 42c stored in the ROM 42 of the gateway 4 includes the identification information of the ECU 2 and the communication branch 1b to which the ECU 2 is connected for the ECU 2 connected to the communication branch 1b connected to the gateway 4. Information is stored in association with each other. The update processing unit 41b refers to the ECU information 42c in the ROM 42 based on the identification information of the ECU 2 to be updated given together with the update program, and determines the transmission destination of the update program. The update processing unit 41b reads the update program from the RAM 43, and gives the update program to the second communication unit 45 connected to the communication branch line 1b to which the ECU 2 to be updated is connected. Accordingly, the update program is transmitted to the ECU 2 to be updated by the second communication unit 45, and the ECU 2 that receives the update program updates the program by replacing the program stored in its own memory with the received update program. To do.

図3は、ECU2の構成を示すブロック図である。なお本図においては、車両1に搭載された複数のECU2に共通する通信機能及びプログラム更新機能に関する機能ブロックを抜き出して図示しており、各ECU2に個別の制御機能などに関する機能ブロックについては図示を省略してある。本実施の形態に係るECU2は、処理部21、フラッシュメモリ22、RAM23及び通信部24等を備えて構成されている。処理部21は、CPU又はMPU等の演算処理装置を用いて構成されており、フラッシュメモリ22に記憶されたプログラム22aを読み出して実行することにより、種々の演算処理及び制御処理等を行う。   FIG. 3 is a block diagram showing a configuration of the ECU 2. In the figure, functional blocks relating to communication functions and program updating functions common to a plurality of ECUs 2 mounted on the vehicle 1 are extracted and illustrated, and functional blocks relating to individual control functions and the like are illustrated in each ECU 2. It is omitted. The ECU 2 according to the present embodiment includes a processing unit 21, a flash memory 22, a RAM 23, a communication unit 24, and the like. The processing unit 21 is configured using an arithmetic processing device such as a CPU or MPU, and performs various arithmetic processing and control processing by reading and executing the program 22a stored in the flash memory 22.

フラッシュメモリ22は、データ書換可能な不揮発性のメモリ素子であり、処理部21が実行するプログラム22a及びこのプログラム22aの実行に必要なデータ(図示は省略する)等を記憶している。プログラム22aは、ECU2毎に特有の制御処理などを処理部21に行わせるプログラムであり、例えばバージョンアップ又は不具合修正等により更新が必要となる場合がある。RAM23は、SRAM又はDRAM等のデータ書換可能なメモリ素子を用いて構成されており、処理部21の処理過程で発生したデータなどを一時的に記憶する。通信部24は、通信支線1bが接続されており、通信支線1bを介して他のECU2又はゲートウェイ4等との間でメッセージの送受信を行う。   The flash memory 22 is a non-volatile memory element that can rewrite data, and stores a program 22a executed by the processing unit 21 and data (not shown) necessary for executing the program 22a. The program 22a is a program for causing the processing unit 21 to perform a control process peculiar to each ECU 2, and may need to be updated due to version upgrade or defect correction, for example. The RAM 23 is configured by using a data rewritable memory element such as SRAM or DRAM, and temporarily stores data generated during the processing of the processing unit 21. The communication unit 24 is connected to the communication branch line 1b, and transmits / receives a message to / from another ECU 2 or the gateway 4 through the communication branch line 1b.

また本実施の形態に係るECU2は、処理部21に更新処理部21aが設けられている。更新処理部21aは、ソフトウェア的な機能ブロック又はハードウェア的な機能ブロックのいずれであってもよい。ただし更新処理部21aは、ソフトウェア的な機能ブロックである場合、プログラム22aとは別のプログラムを処理部21が実行することにより実現される。更新処理部21aは、通信部24にて受信した更新用プログラムを用いて、フラッシュメモリ22に記憶されたプログラム22aを書き換える処理を行う。   Further, in the ECU 2 according to the present embodiment, an update processing unit 21 a is provided in the processing unit 21. The update processing unit 21a may be either a software function block or a hardware function block. However, when the update processing unit 21a is a software functional block, the update processing unit 21a is realized by the processing unit 21 executing a program different from the program 22a. The update processing unit 21 a performs a process of rewriting the program 22 a stored in the flash memory 22 using the update program received by the communication unit 24.

更新処理部21aは、更新装置7が送信し、ゲートウェイ4が中継することによって、通信支線1bを介して通信部24にて受信された更新用プログラムを、RAM23に一時的に記憶する。更新用プログラムの受信を完了した後、更新処理部21aは、RAM23に記憶した更新用プログラムを、フラッシュメモリ22に記憶されたプログラム22aに対して上書きすることによって、プログラム22aを更新用プログラムに置き換える。フラッシュメモリ22に対する更新用プログラムの書き込みが終了した後、更新処理部21aは、ECU2を再起動するなどの処理を行うことにより、フラッシュメモリ22に書き込んだプログラム22aを処理部21に実行させる。   The update processing unit 21a temporarily stores in the RAM 23 the update program received by the communication unit 24 via the communication branch line 1b, transmitted by the update device 7 and relayed by the gateway 4. After completing the reception of the update program, the update processing unit 21a replaces the program 22a with the update program by overwriting the update program stored in the RAM 23 with respect to the program 22a stored in the flash memory 22. . After the writing of the update program to the flash memory 22 is completed, the update processing unit 21a causes the processing unit 21 to execute the program 22a written to the flash memory 22 by performing processing such as restarting the ECU 2.

<処理手順>
図4は、ゲートウェイ4が行う中継処理の手順を示すフローチャートである。本実施の形態に係るゲートウェイ4の処理部41の中継処理部41aは、第1通信部44又は第2通信部45にてメッセージを受信したか否かを判定する(ステップS1)。メッセージを受信していない場合(S1:NO)、中継処理部41aは、メッセージを受信するまで待機する。メッセージを受信した場合(S1:YES)、中継処理部41aは、メッセージに含まれる識別情報を取得する(ステップS2)。中継処理部41aは、取得した識別情報に基づいて、ROM42に記憶された中継テーブル42bを参照し(ステップS3)、この受信メッセージの中継の要否及び中継先を調べる。
<Processing procedure>
FIG. 4 is a flowchart illustrating a procedure of relay processing performed by the gateway 4. The relay processing unit 41a of the processing unit 41 of the gateway 4 according to the present embodiment determines whether or not a message has been received by the first communication unit 44 or the second communication unit 45 (step S1). When no message is received (S1: NO), the relay processing unit 41a waits until a message is received. When the message is received (S1: YES), the relay processing unit 41a acquires the identification information included in the message (step S2). Based on the acquired identification information, the relay processing unit 41a refers to the relay table 42b stored in the ROM 42 (step S3), and checks whether or not the received message is relayed and the relay destination.

ステップS3の処理結果に基づいて中継処理部41aは、受信したメッセージを自範囲、即ち自らに接続された通信支線1bに接続された一又は複数のECU2に対して中継する必要があるか否かを判定する(ステップS4)。受信メッセージを自範囲に中継する必要があると判定した場合(S4:YES)、中継処理部41aは、中継先の通信支線1bが接続された第2通信部45へ受信メッセージを与えることにより、このメッセージを第2通信部45から送信し(ステップS5)、ステップS6へ処理を進める。受信メッセージを自範囲に中継する必要がないと判定した場合(S4:NO)、中継処理部41aは、ステップS6へ処理を進める。   Whether or not the relay processing unit 41a needs to relay the received message to one or a plurality of ECUs 2 connected to the communication branch line 1b connected to itself based on the processing result of step S3. Is determined (step S4). When it is determined that the received message needs to be relayed to its own range (S4: YES), the relay processing unit 41a gives the received message to the second communication unit 45 to which the communication branch line 1b of the relay destination is connected. This message is transmitted from the second communication unit 45 (step S5), and the process proceeds to step S6. If it is determined that it is not necessary to relay the received message to its own range (S4: NO), the relay processing unit 41a advances the process to step S6.

次いで中継処理部41aは、受信したメッセージを他範囲、即ち他のゲートウェイ4に接続された通信支線1bに接続された一又は複数のECU2に対して中継する必要があるか否かを判定する(ステップS6)。受信メッセージを他範囲に中継する必要があると判定した場合(S6:YES)、中継処理部41aは、第1通信部44へ受信メッセージを与えることにより、このメッセージを第1通信部44から送信し(ステップS7)、処理を終了する。受信メッセージを他範囲に中継する必要がないと判定した場合(S6:NO)、中継処理部41aは、処理を終了する。   Next, the relay processing unit 41a determines whether or not it is necessary to relay the received message to another range, that is, to one or a plurality of ECUs 2 connected to the communication branch line 1b connected to another gateway 4 ( Step S6). When it is determined that the received message needs to be relayed to another range (S6: YES), the relay processing unit 41a transmits the message from the first communication unit 44 by giving the received message to the first communication unit 44. (Step S7), and the process ends. When it is determined that it is not necessary to relay the received message to another range (S6: NO), the relay processing unit 41a ends the process.

図5は、ゲートウェイ4が行う更新処理の手順を示すフローチャートである。本実施の形態に係るゲートウェイ4の処理部41の更新処理部41bは、更新用通信部46にてコネクタ6に接続された更新装置7から更新用プログラムを受信したか否かを判定する(ステップS11)。更新用プログラムを受信していない場合(S11:NO)、更新処理部41bは、更新用プログラムを受信するまで待機する。更新用プログラムを受信した場合(S11:YES)、更新処理部41bは、更新用プログラムをRAM43に記憶する(ステップS12)。次いで更新処理部41bは、更新用プログラムと共に更新装置7から受信した更新対象に関する情報、即ちこの更新用プログラムを書き込むべきECU2の識別情報などの情報を取得する(ステップS13)。更新処理部41bは、取得した更新対象の情報に基づいて、ROM42に記憶されたECU情報42cを参照し(ステップS14)、受信した更新用プログラムの送信先を調べる。   FIG. 5 is a flowchart showing the procedure of the update process performed by the gateway 4. The update processing unit 41b of the processing unit 41 of the gateway 4 according to the present embodiment determines whether or not the update communication unit 46 has received an update program from the update device 7 connected to the connector 6 (step). S11). When the update program is not received (S11: NO), the update processing unit 41b stands by until the update program is received. When the update program is received (S11: YES), the update processing unit 41b stores the update program in the RAM 43 (step S12). Next, the update processing unit 41b acquires information on the update target received from the update device 7 together with the update program, that is, information such as identification information of the ECU 2 to which the update program is to be written (step S13). The update processing unit 41b refers to the ECU information 42c stored in the ROM 42 based on the acquired update target information (step S14), and checks the transmission destination of the received update program.

ステップS14の処理結果に基づいて更新処理部41bは、受信した更新用プログラムを自範囲、即ち自らに接続された通信支線1bに接続されたECU2に対して更新用プログラムを送信する必要があるか否かを判定する(ステップS15)。更新用プログラムを自範囲のECU2へ送信する必要があると判定した場合(S15:YES)、更新処理部41bは、送信先の通信支線1bが接続された第2通信部45へ更新用プログラムを与えることにより、この更新用プログラムを第2通信部45から送信し(ステップS16)、処理を終了する。また更新用プログラムを自範囲のECU2へ送信する必要がないと判定した場合(S15:NO)、更新処理部41bは、更新処理を行うことなく、RAM43に記憶した更新用プログラムを破棄し(ステップS17)、処理を終了する。   Whether the update processing unit 41b needs to transmit the received update program to its own range, that is, to the ECU 2 connected to the communication branch line 1b connected to itself based on the processing result of step S14. It is determined whether or not (step S15). When it is determined that it is necessary to transmit the update program to the ECU 2 in its own range (S15: YES), the update processing unit 41b sends the update program to the second communication unit 45 to which the communication branch line 1b of the transmission destination is connected. By giving this, the update program is transmitted from the second communication unit 45 (step S16), and the process is terminated. If it is determined that it is not necessary to transmit the update program to the ECU 2 in its own range (S15: NO), the update processing unit 41b discards the update program stored in the RAM 43 without performing the update process (step S15). S17), the process is terminated.

<まとめ>
以上の構成の本実施の形態に係る車載通信システムは、通信支線1b間のメッセージを中継するゲートウェイ4を2つ備える。2つのゲートウェイ4は通信幹線1aを介して接続され、各ゲートウェイ4には複数の通信支線1bが接続され、各通信支線1bには一又は複数のECU2が接続される。ゲートウェイ4は、自身に接続された一の通信支線1bにてECU2からのメッセージを受信し、受信したメッセージが自身に接続された他の通信支線1bに接続されたECU2へ送信すべきものである場合、このメッセージを他の通信支線1bへ中継する。またゲートウェイ4は、受信したメッセージが自身に接続された通信支線1b以外の通信支線1b(即ち、他のゲートウェイ4に接続された通信支線1b)に接続されたECU2へ送信すべきものである場合、通信幹線1aを介してこのメッセージを他のゲートウェイ4へ送信する。これにより、メッセージ中継に係る処理負荷を複数のゲートウェイ4に分散することができ、各ゲートウェイ4の処理負荷を低減することができる。
<Summary>
The in-vehicle communication system according to the present embodiment having the above configuration includes two gateways 4 that relay messages between the communication branch lines 1b. The two gateways 4 are connected via a communication trunk line 1a. A plurality of communication branch lines 1b are connected to each gateway 4, and one or a plurality of ECUs 2 are connected to each communication branch line 1b. When the gateway 4 receives a message from the ECU 2 on one communication branch line 1b connected to the gateway 4 and the received message is to be transmitted to the ECU 2 connected to another communication branch line 1b connected to the gateway 4 The message is relayed to the other communication branch line 1b. When the gateway 4 is to transmit the received message to the ECU 2 connected to the communication branch 1b other than the communication branch 1b connected to the gateway 4 (that is, the communication branch 1b connected to the other gateway 4), This message is transmitted to the other gateway 4 via the communication trunk line 1a. Thereby, the processing load concerning message relay can be distributed to the plurality of gateways 4, and the processing load of each gateway 4 can be reduced.

また本実施の形態に係る車載通信システムは、ECU2の更新用プログラムを有する更新装置7を車両1のコネクタ6に接続し、更新装置7からコネクタ6を介してゲートウェイ4へ更新用プログラムを送信する。更新装置7から更新用プログラムを受信したゲートウェイ4は、これを更新対象のECU2へ送信することにより更新処理を行う。これによりECU2は、ゲートウェイ4から更新用プログラムを受信してフラッシュメモリ22のプログラム22aを書き換えることで、プログラム22aを更新することができる。   The in-vehicle communication system according to the present embodiment connects the update device 7 having the update program for the ECU 2 to the connector 6 of the vehicle 1, and transmits the update program from the update device 7 to the gateway 4 via the connector 6. . The gateway 4 that has received the update program from the update device 7 performs the update process by transmitting it to the ECU 2 to be updated. Thereby, the ECU 2 can update the program 22 a by receiving the update program from the gateway 4 and rewriting the program 22 a in the flash memory 22.

例えばコネクタ6と2つのゲートウェイ4のいずれか一方とを更新用通信線で接続する構成とした場合、コネクタ6に接続された一方のゲートウェイ4に更新対象のECU2が直接的に通信支線1bを介して接続されていなければ、一方のゲートウェイ4は更新対象のECU2が接続された他方のゲートウェイ4へ更新用プログラムを中継する必要がある。更新装置7から更新対象のECU2までに介在するゲートウェイ4の数が増加するほど、更新処理に要する時間が増大する虞がある。   For example, when the connector 6 and either one of the two gateways 4 are connected by an update communication line, the ECU 2 to be updated is directly connected to the gateway 4 connected to the connector 6 via the communication branch line 1b. If not connected, one gateway 4 needs to relay the update program to the other gateway 4 to which the ECU 2 to be updated is connected. As the number of gateways 4 interposed from the update device 7 to the ECU 2 to be updated increases, the time required for the update process may increase.

そこで本実施の形態に係る車載通信システムでは、コネクタ6と2つのゲートウェイ4とを接続する更新用通信線1cを設ける。コネクタ6に接続された更新装置7から送信された更新用プログラムは、コネクタ6及び更新用通信線1cを介して2つのゲートウェイ4へそれぞれ直接的に与えられる。更新対象のECU2がいずれのゲートウェイ4に接続されていても、このゲートウェイ4へ更新装置7から直接的に更新用プログラムが与えられるため、更新装置7から更新対象のECU2までに介在するゲートウェイ4の数を1つとすることができ、更新処理の時間が増大することを防止できる。   Therefore, in the in-vehicle communication system according to the present embodiment, an update communication line 1c that connects the connector 6 and the two gateways 4 is provided. The update program transmitted from the update device 7 connected to the connector 6 is directly given to the two gateways 4 via the connector 6 and the update communication line 1c. Regardless of which gateway 4 the update target ECU 2 is connected to, the update program 7 is directly given to the gateway 4 from the update device 7, so that the gateway 4 interposed from the update device 7 to the update target ECU 2 The number can be one, and an increase in update processing time can be prevented.

またゲートウェイ4は、コネクタ6及び更新用通信線1cを介して更新装置7からの更新用プログラムを受信した場合に、この更新用プログラムが自身に接続された通信支線1bに接続されたECU2を更新対象とするものであるか否かを判定する。自身の通信支線1bに接続されたECU2を更新対象とする場合、ゲートウェイ4は、更新装置7から受信した更新用プログラムを、通信支線1bを介して更新対象のECU2へ送信する。これに対して、自身の通信支線1b以外の通信支線1b(即ち、他のゲートウェイ4に接続された通信支線1b)に接続されたECU2を更新対象とする場合、ゲートウェイ4は、更新用プログラムを他のゲートウェイ4へ送信することなく、破棄する。これらにより各ゲートウェイ4は、自身の通信支線1bに接続されたECU2のみを更新処理の対象とすればよいため、更新処理に係る負荷を低減することができる。   When the gateway 4 receives the update program from the update device 7 via the connector 6 and the update communication line 1c, the gateway 4 updates the ECU 2 connected to the communication branch line 1b connected to itself. It is determined whether or not it is a target. When the ECU 2 connected to its own communication branch line 1b is to be updated, the gateway 4 transmits the update program received from the update device 7 to the ECU 2 to be updated via the communication branch line 1b. On the other hand, when the ECU 2 connected to the communication branch 1b other than its own communication branch 1b (that is, the communication branch 1b connected to the other gateway 4) is to be updated, the gateway 4 updates the update program. Discard without sending to other gateways 4. As a result, each gateway 4 only needs to set the ECU 2 connected to its own communication branch line 1b as the target of the update process, and therefore the load related to the update process can be reduced.

なお本実施の形態においては、図1に示すように、車載通信システムが2つのゲートウェイ4を備え、各ゲートウェイ4に3つの通信支線1bが接続された構成を例に説明を行ったが、これらのシステム構成は一例であって、これに限るものではない。車載通信システムは、2つ以上のゲートウェイ4を備えていればよい。ゲートウェイ4には少なくとも1つの通信支線1bが接続されていればよい。また通信支線1bに接続される車載制御装置をECU2としたが、これに限るものではなく、ECU2以外の装置であってもよい。またゲートウェイ4及びECU2がCANの通信プロトコルに従って通信を行う構成としたが、これに限るものではなく、例えばFlexRay又はイーサネット等のプロトコルに従って通信を行う構成としてよく、バス型ではない通信プロトコルを採用する場合には、本実施の形態に係る車載通信システムの構成を適宜に変更してよい。   In the present embodiment, as shown in FIG. 1, the in-vehicle communication system includes two gateways 4 and the configuration in which three communication branch lines 1b are connected to each gateway 4 is described as an example. This system configuration is an example, and the present invention is not limited to this. The in-vehicle communication system only needs to include two or more gateways 4. The gateway 4 may be connected to at least one communication branch line 1b. Moreover, although the vehicle-mounted control apparatus connected to the communication branch line 1b was set to ECU2, it is not restricted to this, Devices other than ECU2 may be used. Further, the gateway 4 and the ECU 2 are configured to perform communication according to the CAN communication protocol. However, the present invention is not limited to this. For example, the communication may be performed according to a protocol such as FlexRay or Ethernet, and a communication protocol that is not a bus type is adopted. In that case, the configuration of the in-vehicle communication system according to the present embodiment may be changed as appropriate.

またコネクタ6は、ダイアグコネクタとしたが、これに限るものではなく、例えばUSB(Universal Serial Bus)などの他のプロトコルに応じたコネクタであってよい。またコネクタ6及び2つのゲートウェイ4を接続する更新用通信線1cは、バス型の通信線として構成されるのであれば、通信幹線1aと共通化してもよい。即ちコネクタ6を通信幹線1aに接続する構成としてもよい。   The connector 6 is a diagnostic connector, but is not limited to this, and may be a connector according to another protocol such as USB (Universal Serial Bus). The update communication line 1c connecting the connector 6 and the two gateways 4 may be shared with the communication trunk line 1a as long as it is configured as a bus-type communication line. That is, the connector 6 may be connected to the communication trunk line 1a.

(変形例1)
図6は、変形例に係る車載通信システムの構成を示す模式図である。変形例に係る車載通信システムは4つのゲートウェイ4を備えている。4つのゲートウェイ4は、3つの通信幹線1aを介して直列的に接続されている。即ち、第1のゲートウェイ4及び第2のゲートウェイ4が1つの通信幹線1aを介して接続され、第2のゲートウェイ4及び第3のゲートウェイ4が1つの通信幹線1aを介して接続され、第3のゲートウェイ4及び第4のゲートウェイ4が1つの通信幹線1aを介して接続されている。ただし4つのゲートウェイ4を1つの通信幹線1aにバス接続する構成としてもよい。各ゲートウェイ4には3つの通信支線1bがそれぞれ接続されており、各通信支線1bには一又は複数のECU2(図6において図示は省略する)が接続される。
(Modification 1)
FIG. 6 is a schematic diagram illustrating a configuration of an in-vehicle communication system according to a modification. The in-vehicle communication system according to the modification includes four gateways 4. The four gateways 4 are connected in series via the three communication trunk lines 1a. That is, the first gateway 4 and the second gateway 4 are connected via one communication trunk line 1a, the second gateway 4 and the third gateway 4 are connected via one communication trunk line 1a, and the third The gateway 4 and the fourth gateway 4 are connected via one communication trunk line 1a. However, four gateways 4 may be connected to one communication trunk line 1a by bus. Each gateway 4 is connected to three communication branch lines 1b, and one or a plurality of ECUs 2 (not shown in FIG. 6) are connected to each communication branch line 1b.

車両1に設けられたコネクタ6と、4つのゲートウェイ4とは、更新用通信線1cを介して接続されている。更新用通信線1cは、バス型の通信線として設けられており、例えば一端がコネクタ6に接続され、他端が4つに分岐してゲートウェイ4にそれぞれ接続されている。これによりコネクタ6に通信ケーブル7aを介して接続された更新装置7から送信された更新用プログラムは、4つのゲートウェイ4にてそれぞれ受信される。ゲートウェイ4は、受信した更新用プログラムが自身の通信支線1bに接続されたECU2のためのものである場合に、この更新用プログラムをいずれかの通信支線1bから更新対象のECU2へ送信する。   The connector 6 provided in the vehicle 1 and the four gateways 4 are connected via the update communication line 1c. The update communication line 1c is provided as a bus-type communication line. For example, one end is connected to the connector 6, and the other end is branched into four and connected to the gateway 4. As a result, the update programs transmitted from the update device 7 connected to the connector 6 via the communication cable 7a are received by the four gateways 4, respectively. When the received update program is for the ECU 2 connected to its own communication branch line 1b, the gateway 4 transmits the update program from any one of the communication branch lines 1b to the ECU 2 to be updated.

(変形例2)
図7は、変形例2に係る車載通信システムの構成を示す模式図である。変形例2に係る車載通信システムは、コネクタ6に接続された更新装置7と車両1に搭載されたゲートウェイ4との通信に、CANなどのバス型の通信線を用いる通信プロトコルではなく、例えばイーサネットなどのスター型の通信線を用いる通信プロトコルを採用した構成である。このため変形例2に係る車載通信システムでは、コネクタ6及び2つのゲートウェイ4の間に、HUB1dが介在する。即ち、第1のゲートウェイ4は第1の更新用通信線1cを介してHUB1dに接続され、第2のゲートウェイ4は第2の更新用通信線1cを介してHUB1dに接続され、コネクタ6は第3の更新用通信線1cを介してHUB1dに接続されている。
(Modification 2)
FIG. 7 is a schematic diagram illustrating a configuration of the in-vehicle communication system according to the second modification. The in-vehicle communication system according to the modified example 2 is not a communication protocol that uses a bus-type communication line such as CAN for communication between the update device 7 connected to the connector 6 and the gateway 4 mounted on the vehicle 1. This is a configuration that employs a communication protocol that uses a star-type communication line. For this reason, in the in-vehicle communication system according to the modified example 2, the HUB 1d is interposed between the connector 6 and the two gateways 4. That is, the first gateway 4 is connected to the HUB 1d via the first update communication line 1c, the second gateway 4 is connected to the HUB 1d via the second update communication line 1c, and the connector 6 is 3 is connected to the HUB 1d via the update communication line 1c.

HUB1dは、更新用通信線1c間のメッセージを中継する機能を有しており、一の更新用通信線1cにて受信したメッセージを、他の更新用通信線1cから送信する。これによりコネクタ6に接続された更新装置7から送信された更新用プログラムは、コネクタ6及びHUB1dを経て2つのゲートウェイ4にてそれぞれ受信される。   The HUB 1d has a function of relaying a message between the update communication lines 1c, and transmits a message received on one update communication line 1c from another update communication line 1c. Accordingly, the update program transmitted from the update device 7 connected to the connector 6 is received by the two gateways 4 via the connector 6 and the HUB 1d.

(変形例3)
図8は、変形例3に係る車載通信システムの構成を示す模式図である。変形例3に係る車載通信システムは、図1に示す車載通信システムのコネクタ6に代えて、無線通信装置106を車両1に設けた構成である。また変形例3に係る車載通信システムの更新装置107は、通信ケーブル7aを介した有線通信を行うのではなく、無線通信を行うことによって車両1の無線通信装置106との間でデータを授受する。
(Modification 3)
FIG. 8 is a schematic diagram illustrating a configuration of the in-vehicle communication system according to the third modification. The in-vehicle communication system according to Modification 3 has a configuration in which a wireless communication device 106 is provided in the vehicle 1 instead of the connector 6 of the in-vehicle communication system shown in FIG. Moreover, the update device 107 of the in-vehicle communication system according to the modified example 3 transmits / receives data to / from the wireless communication device 106 of the vehicle 1 by performing wireless communication instead of performing wired communication via the communication cable 7a. .

無線通信装置106は、例えば携帯電話通信網、無線LAN(Local Area Network)又はBluetooth(登録商標)等の無線ネットワークを介して、車両1の内外に存在する更新装置107などの他の装置との間で無線信号を介した通信を行う装置である。無線通信装置106は、更新用通信線1cを介して2つのゲートウェイ4に接続されている。無線通信装置106は、更新装置107から無線通信により受信した更新用プログラムを、更新用通信線1cを介して2つのゲートウェイ4へ送信する。   The wireless communication device 106 communicates with other devices such as the update device 107 existing inside and outside the vehicle 1 via a wireless network such as a mobile phone communication network, a wireless LAN (Local Area Network), or Bluetooth (registered trademark). It is a device that performs communication via a wireless signal. The wireless communication device 106 is connected to the two gateways 4 via the update communication line 1c. The wireless communication device 106 transmits the update program received from the update device 107 by wireless communication to the two gateways 4 via the update communication line 1c.

無線通信装置106を介して更新装置107から更新用プログラムを受信したゲートウェイ4は、この更新用プログラムが自身の通信支線1bに接続されたECU2の更新に用いるものであると判定した場合、このECU2が接続されている通信支線1bに更新用プログラムを送信する。またゲートウェイ4は、更新装置107から受信した更新用プログラムが自身の通信支線1bに接続されたECU2の更新に用いるものでないと判定した場合、この更新用プログラムを破棄する。   When the gateway 4 that has received the update program from the update device 107 via the wireless communication device 106 determines that the update program is used for updating the ECU 2 connected to its own communication branch line 1b, the ECU 2 The update program is transmitted to the communication branch line 1b to which is connected. When the gateway 4 determines that the update program received from the update device 107 is not used for updating the ECU 2 connected to its own communication branch line 1b, the gateway 4 discards the update program.

1 車両
1a 通信幹線
1b 通信支線
1c 更新用通信線
1d HUB
2 ECU(車載制御装置)
4 ゲートウェイ(車載中継装置)
6 コネクタ(データ授受部)
7 更新装置
7a 通信ケーブル
21 処理部
21a 更新処理部
22 フラッシュメモリ
22a プログラム
23 RAM
24 通信部
41 処理部
41a 中継処理部(メッセージ送信処理部)
41b 更新処理部(更新用プログラム送信処理部)
42 ROM
42a 中継プログラム
42b 中継テーブル
42c ECU情報
43 RAM
44 第1通信部
45 第2通信部
46 更新用通信部(受信部)
106 無線通信装置(データ授受部)
107 更新装置
1 Vehicle 1a Communication trunk line 1b Communication branch line 1c Communication line for renewal 1d HUB
2 ECU (on-vehicle controller)
4 Gateway (on-vehicle relay device)
6 Connector (Data exchange section)
7 Update Device 7a Communication Cable 21 Processing Unit 21a Update Processing Unit 22 Flash Memory 22a Program 23 RAM
24 communication unit 41 processing unit 41a relay processing unit (message transmission processing unit)
41b Update processing unit (update program transmission processing unit)
42 ROM
42a Relay program 42b Relay table 42c ECU information 43 RAM
44 1st communication part 45 2nd communication part 46 Communication part for update (receiving part)
106 Wireless communication device (data exchange unit)
107 Update device

Claims (8)

一又は複数の車載制御装置がそれぞれに接続された複数の通信支線が接続され、前記複数の通信支線間の通信を中継する複数の車載中継装置を備え、
前記複数の車載中継装置は、一又は複数の通信幹線を介して接続され、
前記複数の車載中継装置の各々は、メッセージ送信処理部を有し、
前記メッセージ送信処理部は、自身の通信支線にて車載制御装置から受信したメッセージが、自身の通信支線以外の通信支線に接続された車載制御装置へ送信すべきメッセージである場合に、当該メッセージを受信すべき車載制御装置が接続された他の車載中継装置へ、前記通信幹線を介して前記メッセージを送信すること
を特徴とする車載通信システム。
A plurality of communication branch lines to which one or a plurality of in-vehicle control devices are respectively connected, and a plurality of in-vehicle relay devices that relay communication between the plurality of communication branch lines;
The plurality of in-vehicle relay devices are connected via one or a plurality of communication trunk lines,
Each of the plurality of in-vehicle relay devices has a message transmission processing unit,
The message transmission processing unit, when the message received from the in-vehicle control device in its own communication branch line is a message to be transmitted to the in-vehicle control device connected to a communication branch line other than its own communication branch line, the message An in-vehicle communication system characterized by transmitting the message via the communication trunk line to another in-vehicle relay device to which an in-vehicle control device to be received is connected.
車両に設けられ、車両外の装置との間でデータの授受を行うデータ授受部と、
前記データ授受部を介して、前記車載制御装置が記憶しているプログラム又はデータに対する更新用のプログラム又はデータを前記車載中継装置へ送信する更新装置と
を備え、
前記車載中継装置は、前記更新装置から受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信する更新用プログラム送信処理部を有すること
を特徴とする請求項1に記載の車載通信システム。
A data transmission / reception unit that is provided in the vehicle and exchanges data with a device outside the vehicle;
An update device that transmits an update program or data for the program or data stored in the in-vehicle control device to the in-vehicle relay device via the data transfer unit, and
The in-vehicle communication system according to claim 1, wherein the in-vehicle relay device includes an update program transmission processing unit that transmits an update program or data received from the update device to an in-vehicle control device to be updated. .
前記データ授受部は、前記更新装置が着脱可能に有線接続されるコネクタであること
を特徴とする請求項2に記載の車載通信システム。
The in-vehicle communication system according to claim 2, wherein the data transfer unit is a connector to which the update device is detachably connected by wire.
前記データ授受部は、前記更新装置との間で無線通信を行う無線通信装置であること
を特徴とする請求項2に記載の車載通信システム。
The in-vehicle communication system according to claim 2, wherein the data exchange unit is a wireless communication device that performs wireless communication with the update device.
前記データ授受部と前記複数の車載中継装置とを接続する通信線を備え、
前記更新装置は、前記データ授受部及び前記通信線を介して前記複数の車載中継装置へ更新用のプログラム又はデータを送信すること
を特徴とする請求項2乃至請求項4のいずれか1つに記載の車載通信システム。
A communication line for connecting the data transfer unit and the plurality of in-vehicle relay devices;
The update device transmits an update program or data to the plurality of in-vehicle relay devices via the data transfer unit and the communication line. The in-vehicle communication system described.
各車載中継装置の前記更新用プログラム送信処理部は、
自身の通信支線に接続された車載制御装置を更新対象とする更新用のプログラム又はデータを前記更新装置から前記データ授受部及び前記通信線を介して受信した場合に、受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信し、
自身の通信支線に接続された車載制御装置以外を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを破棄すること
を特徴とする請求項5に記載の車載通信システム。
The update program transmission processing unit of each in-vehicle relay device is
When an update program or data for updating an in-vehicle control device connected to its own communication branch line is received from the update device via the data transfer unit and the communication line, the received update program or Send the data to the in-vehicle controller to be updated,
6. The received update program or data is discarded when an update program or data other than an in-vehicle control device connected to its own communication branch line is received. In-vehicle communication system.
複数の通信線の間の通信を中継する車載中継装置において、
車載制御装置が記憶しているプログラム又はデータに対する更新用のプログラム又はデータを更新装置から受信する受信部と、
前記受信部が受信した更新用のプログラム又はデータを、前記通信線を介して更新対象の車載制御装置へ送信する更新用プログラム送信処理部と
を備え、
前記更新用プログラム送信処理部は、
前記通信線に接続された車載制御装置を更新対象とする更新用のプログラム又はデータを前記受信部が受信した場合に、受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信し、
前記通信線に接続された車載制御装置以外を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを破棄すること
を特徴とする車載中継装置。
In an in-vehicle relay device that relays communication between multiple communication lines,
A receiving unit for receiving a program or data for updating a program or data stored in the in-vehicle control device from the updating device;
An update program transmission processing unit that transmits the update program or data received by the reception unit to the in-vehicle control device to be updated via the communication line, and
The update program transmission processing unit includes:
When the receiving unit receives an update program or data for updating an in-vehicle control device connected to the communication line, the received update program or data is transmitted to the in-vehicle control device for update,
An in-vehicle relay device that discards the received update program or data when receiving an update program or data other than the in-vehicle control device connected to the communication line.
複数の通信線の間の通信を中継する車載中継装置に、
車載制御装置が記憶しているプログラム又はデータに対する更新用のプログラム又はデータを更新装置から受信し、
前記通信線に接続された車載制御装置を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを更新対象の車載制御装置へ送信し、
前記通信線に接続された車載制御装置以外を更新対象とする更新用のプログラム又はデータを受信した場合に、受信した更新用のプログラム又はデータを破棄する処理を実行させることを特徴とする中継プログラム。
For in-vehicle relay devices that relay communications between multiple communication lines,
An update program or data for the program or data stored in the in-vehicle control device is received from the update device,
When receiving an update program or data for updating an in-vehicle control device connected to the communication line, the received update program or data is transmitted to the in-vehicle control device for update,
A relay program that, when receiving an update program or data other than an in-vehicle control device connected to the communication line, performs processing to discard the received update program or data .
JP2017124148A 2017-06-26 2017-06-26 On-vehicle communication system, on-vehicle relay device, and relay program Pending JP2019009639A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2017124148A JP2019009639A (en) 2017-06-26 2017-06-26 On-vehicle communication system, on-vehicle relay device, and relay program
PCT/JP2018/024123 WO2019004173A1 (en) 2017-06-26 2018-06-26 In-vehicle communication system, in-vehicle relay device, and relay program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017124148A JP2019009639A (en) 2017-06-26 2017-06-26 On-vehicle communication system, on-vehicle relay device, and relay program

Publications (1)

Publication Number Publication Date
JP2019009639A true JP2019009639A (en) 2019-01-17

Family

ID=64743000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017124148A Pending JP2019009639A (en) 2017-06-26 2017-06-26 On-vehicle communication system, on-vehicle relay device, and relay program

Country Status (2)

Country Link
JP (1) JP2019009639A (en)
WO (1) WO2019004173A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021068605A (en) * 2019-10-24 2021-04-30 パナソニックIpマネジメント株式会社 Induction heating cooker
CN114902307A (en) * 2020-01-21 2022-08-12 株式会社自动网络技术研究所 In-vehicle wireless communication device, wireless communication system, wireless communication device, and vehicle control method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7230636B2 (en) 2019-03-27 2023-03-01 株式会社オートネットワーク技術研究所 In-vehicle communication system and in-vehicle repeater
JP7230760B2 (en) 2019-09-30 2023-03-01 トヨタ自動車株式会社 Relay device and external device
JP2021145162A (en) * 2020-03-10 2021-09-24 本田技研工業株式会社 Communication control system
CN115051975A (en) * 2021-02-26 2022-09-13 威马智慧出行科技(上海)股份有限公司 ECU remote upgrading method based on vehicle-mounted Ethernet

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4942261B2 (en) * 2001-07-31 2012-05-30 株式会社デンソー Vehicle relay device and in-vehicle communication system
JP6413260B2 (en) * 2014-02-28 2018-10-31 沖電気工業株式会社 Wireless communication apparatus and wireless communication system
JP6435925B2 (en) * 2015-03-04 2018-12-12 株式会社デンソー Service providing system, ECU, and external device
JP6281535B2 (en) * 2015-07-23 2018-02-21 株式会社デンソー Relay device, ECU, and in-vehicle system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021068605A (en) * 2019-10-24 2021-04-30 パナソニックIpマネジメント株式会社 Induction heating cooker
CN114902307A (en) * 2020-01-21 2022-08-12 株式会社自动网络技术研究所 In-vehicle wireless communication device, wireless communication system, wireless communication device, and vehicle control method

Also Published As

Publication number Publication date
WO2019004173A1 (en) 2019-01-03

Similar Documents

Publication Publication Date Title
JP2019009639A (en) On-vehicle communication system, on-vehicle relay device, and relay program
WO2018079385A1 (en) Vehicle-mounted device determination system and information collecting device
WO2014148003A1 (en) Program rewrite system for onboard electronic control device and onboard relay device
US11354112B2 (en) On-board update device, update process method, and update process program
JP7192415B2 (en) Program update system and update processing program
JP5500153B2 (en) Vehicle communication device and vehicle data communication system using the vehicle communication device
WO2014057643A1 (en) Relay device
JP2010258990A (en) Control system and control program updating method
JP5672275B2 (en) Network system
WO2018088505A1 (en) In-vehicle update system, in-vehicle update apparatus, and gateway
JP6060782B2 (en) Relay device
WO2010004765A1 (en) Relay apparatuses, communication system, and communication method
US11340888B2 (en) Relay device and external device
US10250434B2 (en) Electronic control apparatus
CN115336233B (en) In-vehicle relay device, information processing method, and program
JP7310570B2 (en) In-vehicle update device, program, and program update method
JP2002026924A (en) Data repeater and multiplex communication system
WO2014007067A1 (en) Communication system, relay apparatus and communication apparatus
WO2019221058A1 (en) Vehicle-mounted relay device, communication system, bus determination method, and computer program
JP2019202605A (en) On-vehicle communication device and communication method
JP7211189B2 (en) Update processing system and update processing method
CN114128222A (en) Relay device system
JP7081415B2 (en) Communication equipment, communication methods, and communication programs
JP2014015142A (en) In-vehicle control system
JP6900254B2 (en) In-vehicle network relay device and relay method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180625

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20180625

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20180625

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180703