JP2021015618A - On-vehicle update device, update processing program, and program update method - Google Patents

On-vehicle update device, update processing program, and program update method Download PDF

Info

Publication number
JP2021015618A
JP2021015618A JP2020173234A JP2020173234A JP2021015618A JP 2021015618 A JP2021015618 A JP 2021015618A JP 2020173234 A JP2020173234 A JP 2020173234A JP 2020173234 A JP2020173234 A JP 2020173234A JP 2021015618 A JP2021015618 A JP 2021015618A
Authority
JP
Japan
Prior art keywords
vehicle
update
storage unit
program
external server
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
JP2020173234A
Other languages
Japanese (ja)
Other versions
JP7331818B2 (en
Inventor
拓也 小林
Takuya Kobayashi
拓也 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Wiring Systems Ltd
AutoNetworks Technologies Ltd
Sumitomo Electric Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2019050057A external-priority patent/JP6780724B2/en
Application filed by Sumitomo Wiring Systems Ltd, AutoNetworks Technologies Ltd, Sumitomo Electric Industries Ltd filed Critical Sumitomo Wiring Systems Ltd
Priority to JP2020173234A priority Critical patent/JP7331818B2/en
Publication of JP2021015618A publication Critical patent/JP2021015618A/en
Application granted granted Critical
Publication of JP7331818B2 publication Critical patent/JP7331818B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide an on-vehicle update device capable of preventing storage capacity of a storage unit of an own device from becoming insufficient when updating a program of an on-vehicle control device.SOLUTION: An on-vehicle update device for acquiring an update program transmitted from an external server outside a vehicle, and performing a process for updating a program of an on-vehicle control device mounted on the vehicle, includes a storage unit and a control unit. The storage unit stores the update program and the control unit controls transmission of the update program to the on-vehicle control device to be updated. When acquiring the update program from the external server, the control unit transmits saved data stored in the storage unit to the external server or a vehicle control device not to be updated other than the vehicle control device to be updated, and stores at least a part of the update program acquired from the external server in the storage unit.SELECTED DRAWING: Figure 1

Description

本発明は、車載更新装置、更新処理プログラム及び、プログラムの更新方法に関する。 The present invention relates to an in-vehicle update device, an update processing program, and a program update method.

車両には、エンジン制御等のパワー・トレーン系、エアコン制御等のボディ系等の車載機器を制御するための車載ECU(Electronic Control Unit)が搭載されている。車載ECUは、MPU等の演算処理部、RAM等の書き換え可能な不揮発性の記憶部、及び他の車載ECUと通信するための通信部を含み、記憶部に記憶したプログラムを読み込んで実行することにより、車載機器の制御を行う。更に車両には、無線通信の機能を備えた中継装置が実装されており、中継装置を介して、車外のネットワークに接続されているプログラム提供装置と通信し、当該プログラム提供装置から車載ECUのプログラムをダウンロード(受信)し、当該車載ECUのプログラムを更新することができる(例えば特許文献1参照)。特許文献1の中継装置は、プログラム提供装置から受信した車載ECUのプログラムは、自装置の記憶部に記憶する。 The vehicle is equipped with an in-vehicle ECU (Electronic Control Unit) for controlling in-vehicle devices such as a power train system such as engine control and a body system such as air conditioner control. The in-vehicle ECU includes an arithmetic processing unit such as an MPU, a rewritable non-volatile storage unit such as a RAM, and a communication unit for communicating with another in-vehicle ECU, and reads and executes a program stored in the storage unit. Controls the in-vehicle device. Further, the vehicle is equipped with a relay device having a wireless communication function, which communicates with the program providing device connected to the network outside the vehicle via the relay device, and the program of the in-vehicle ECU is transmitted from the program providing device. Can be downloaded (received) to update the program of the in-vehicle ECU (see, for example, Patent Document 1). In the relay device of Patent Document 1, the program of the vehicle-mounted ECU received from the program providing device is stored in the storage unit of the own device.

特開2017−97851号公報JP-A-2017-97851

しかしながら、車載制御装置(車載ECU)のプログラムの更新を行うにあたり、複数のプログラムを取得する場合、又は単一のプログラムのファイルサイズが増加した場合等、プログラム提供装置から取得するプログラムのデータ総容量が増加するため、当該データ総容量が中継装置の記憶部の記憶容量を越えることが懸念される。 However, when updating the program of the in-vehicle control device (in-vehicle ECU), the total data capacity of the program acquired from the program providing device, such as when a plurality of programs are acquired or when the file size of a single program increases. Therefore, there is a concern that the total data capacity may exceed the storage capacity of the storage unit of the relay device.

本発明の目的は、車載制御装置のプログラムの更新を行うにあたり、自装置の記憶部の記憶容量が不足することを防止することができる車載更新装置を提供する。 An object of the present invention is to provide an in-vehicle update device capable of preventing the storage capacity of the storage unit of the own device from becoming insufficient when updating a program of the in-vehicle control device.

本開示の一態様に係る車載更新装置は、車外の外部サーバから送信される更新プログラムを取得し、車両に搭載される車載制御装置のプログラムを更新するための処理を行う車載更新装置であって、記憶部と制御部とを備え、前記記憶部は、前記更新プログラムが記憶されるものであり、前記制御部は、更新対象の車載制御装置への前記更新プログラムの送信を制御するものであり、前記制御部は、前記外部サーバから前記更新プログラムを取得する場合、前記記憶部に記憶されている退避データを、前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、前記記憶部に前記外部サーバから取得した前記更新プログラムの少なくとも一部を記憶する。 The in-vehicle update device according to one aspect of the present disclosure is an in-vehicle update device that acquires an update program transmitted from an external server outside the vehicle and performs a process for updating the program of the in-vehicle control device mounted on the vehicle. A storage unit and a control unit are provided, the storage unit stores the update program, and the control unit controls transmission of the update program to the in-vehicle control device to be updated. When the control unit acquires the update program from the external server, the save data stored in the storage unit is used for in-vehicle control of a non-update target other than the external server or the in-vehicle control device to be updated. It is transmitted to the device, and at least a part of the update program acquired from the external server is stored in the storage unit.

本開示の一態様に係る車載更新装置は、車外の外部サーバから送信される更新プログラムを取得し、車両に搭載される車載制御装置のプログラムを更新するための処理を行う車載更新装置であって、記憶部と制御部とを備え、前記記憶部は、前記更新プログラムが記憶されるものであり、前記制御部は、更新対象の車載制御装置への前記更新プログラムの送信を制御するものであり、前記制御部は、前記外部サーバから前記更新プログラムを取得する際、前記更新プログラムのデータ総容量が前記記憶部の空き容量よりも小さい場合、前記記憶部に前記外部サーバから取得した前記更新プログラムを記憶し、前記更新プログラムのデータ総容量が前記記憶部の空き容量以上である場合、前記記憶部に記憶されている退避データを、前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、前記記憶部にて退避データが記憶されている記憶領域に、前記更新プログラムを上書きする。 The in-vehicle update device according to one aspect of the present disclosure is an in-vehicle update device that acquires an update program transmitted from an external server outside the vehicle and performs a process for updating the program of the in-vehicle control device mounted on the vehicle. A storage unit and a control unit are provided, the storage unit stores the update program, and the control unit controls transmission of the update program to the in-vehicle control device to be updated. When the control unit acquires the update program from the external server, if the total data capacity of the update program is smaller than the free capacity of the storage unit, the update program acquired from the external server in the storage unit. When the total data capacity of the update program is equal to or greater than the free capacity of the storage unit, the saved data stored in the storage unit is not stored in the external server or the in-vehicle control device to be updated. It is transmitted to the in-vehicle control device to be updated, and the update program is overwritten in the storage area in which the saved data is stored in the storage unit.

本開示の一態様に係る車載更新装置は、車外の外部サーバから送信される更新プログラムを取得し、車両に搭載される車載制御装置のプログラムを更新するための処理を行う車載更新装置であって、記憶部と制御部とを備え、前記記憶部は、前記更新プログラムが記憶されるものであり、前記制御部は、更新対象の車載制御装置への前記更新プログラムの送信を制御するものであり、前記制御部は、前記外部サーバから前記更新プログラムを取得する際、前記更新プログラムのデータ総容量を導出し、前記更新プログラムのデータ総容量が前記記憶部の空き容量以上である場合、前記記憶部に記憶されている退避データを、自装置以外の記憶部に退避し、前記自装置以外の記憶部は、前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置の少なくともいずれかの記憶部を含む。 The in-vehicle update device according to one aspect of the present disclosure is an in-vehicle update device that acquires an update program transmitted from an external server outside the vehicle and performs a process for updating the program of the in-vehicle control device mounted on the vehicle. A storage unit and a control unit are provided, the storage unit stores the update program, and the control unit controls transmission of the update program to the in-vehicle control device to be updated. When the control unit acquires the update program from the external server, the control unit derives the total data capacity of the update program, and when the total data capacity of the update program is equal to or greater than the free capacity of the storage unit, the storage unit The saved data stored in the unit is saved in a storage unit other than the own device, and the storage unit other than the own device is the external server or the in-vehicle control device other than the in-vehicle control device to be updated. Includes at least one of the storage units of.

本開示の一態様によれば、車載制御装置のプログラムの更新を行うにあたり、自装置の記憶部の記憶容量が不足することを防止することができる車載更新装置を提供する。 According to one aspect of the present disclosure, there is provided an in-vehicle update device capable of preventing the storage capacity of the storage unit of the own device from becoming insufficient when updating the program of the in-vehicle control device.

図1は、実施形態1に係る車載更新システムの構成を例示する模式図である。FIG. 1 is a schematic diagram illustrating the configuration of the vehicle-mounted update system according to the first embodiment. 図2は、車載更新装置等の構成を例示するブロック図である。FIG. 2 is a block diagram illustrating the configuration of an in-vehicle update device and the like. 図3は、記憶部に記憶される退避データの一態様を例示する説明図である。FIG. 3 is an explanatory diagram illustrating one aspect of the saved data stored in the storage unit. 図4は、車載更新装置による更新の一態様を例示する説明図(シーケンス図)である。FIG. 4 is an explanatory diagram (sequence diagram) illustrating one mode of updating by the in-vehicle updating device. 図5は、車載更新装置の制御部の処理を例示するフローチャートである。FIG. 5 is a flowchart illustrating the processing of the control unit of the in-vehicle update device. 図6は、実施形態2に係る車載更新装置の制御部の処理を例示するフローチャートである。FIG. 6 is a flowchart illustrating the processing of the control unit of the vehicle-mounted update device according to the second embodiment.

[本開示の実施形態の説明]
最初に本開示の実施態様を列挙して説明する。また、以下に記載する実施形態の少なくとも一部を任意に組み合わせてもよい。
[Explanation of Embodiments of the present disclosure]
First, embodiments of the present disclosure will be listed and described. In addition, at least a part of the embodiments described below may be arbitrarily combined.

(1)本開示の一態様に係る車載更新装置は、車外の外部サーバから送信される更新プログラムを取得し、車両に搭載される車載制御装置のプログラムを更新するための処理を行う車載更新装置であって、記憶部と制御部とを備え、前記記憶部は、前記更新プログラムが記憶されるものであり、前記制御部は、更新対象の車載制御装置への前記更新プログラムの送信を制御するものであり、前記制御部は、前記外部サーバから前記更新プログラムを取得する場合、前記記憶部に記憶されている退避データのデータ種別に基づき、前記退避データを前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、送信した前記退避データが記憶されていた前記記憶部の領域に前記外部サーバから取得した前記更新プログラムの少なくとも一部を記憶する。 (1) The in-vehicle update device according to one aspect of the present disclosure is an in-vehicle update device that acquires an update program transmitted from an external server outside the vehicle and performs a process for updating the program of the in-vehicle control device mounted on the vehicle. A storage unit and a control unit are provided, and the storage unit stores the update program, and the control unit controls transmission of the update program to the in-vehicle control device to be updated. When the control unit acquires the update program from the external server, the control unit transfers the save data to the external server or the update target based on the data type of the save data stored in the storage unit. At least a part of the update program acquired from the external server is stored in the area of the storage unit in which the saved data transmitted by transmitting to a non-update target vehicle-mounted control device other than the vehicle-mounted control device is stored.

本態様にあたっては、制御部は、外部サーバから更新プログラムを取得する場合、記憶部に記憶されている退避データのデータ種別に基づき、退避データを外部サーバ、又は前記更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、送信した退避データが記憶されていた記憶部の領域に更新プログラムの少なくとも一部を記憶する。すなわち、制御部は、外部サーバから更新プログラムを取得する場合、自装置(車載更新装置)の記憶部の空き容量が、更新プログラムのデータ総容量よりも小さい場合であっても、更新プログラムの少なくとも一部を、送信した退避データが記憶されていた記憶部の領域に記憶することにより、更新プログラムの全てを記憶部に記憶することができる。更新プログラムの一部が、送信した退避データが記憶されていた領域に記憶された場合、退避データを送信する以前での記憶部の空き領域には、更新プログラムの残部が記憶される。又は、更新プログラムの全てが、送信した退避データが記憶されていた領域に記憶されるものであってもよい。従って、退避データが記憶されていた領域を、更新プログラムを記憶する領域として用いることで、車載更新装置の記憶部の記憶容量が不足することを防止でき、更に退避データのデータ種別に基づき、適切な送信先(退避先)に退避データを退避することができる。 In this embodiment, when the control unit acquires the update program from the external server, the control unit transfers the save data to the external server or the in-vehicle control device to be updated based on the data type of the save data stored in the storage unit. It is transmitted to the in-vehicle control device to be non-updated, and at least a part of the update program is stored in the storage area where the transmitted saved data is stored. That is, when the control unit acquires an update program from an external server, even if the free space in the storage unit of its own device (vehicle-mounted update device) is smaller than the total data capacity of the update program, at least the update program By storing a part in the area of the storage unit in which the transmitted saved data is stored, all of the update program can be stored in the storage unit. When a part of the update program is stored in the area where the transmitted backup data is stored, the remaining part of the update program is stored in the free area of the storage unit before the backup data is transmitted. Alternatively, all of the update programs may be stored in the area where the transmitted saved data is stored. Therefore, by using the area where the saved data is stored as the area for storing the update program, it is possible to prevent the storage capacity of the storage unit of the in-vehicle update device from becoming insufficient, and it is appropriate based on the data type of the saved data. Saved data can be saved to various destinations (save destinations).

(2)本開示の一態様に係る車載更新装置は、前記外部サーバに送信する退避データは、前記非更新対象の車載制御装置に送信する退避データよりも、自装置又は前記車両における重要度が低い。 (2) In the in-vehicle update device according to one aspect of the present disclosure, the evacuation data transmitted to the external server is more important in the own device or the vehicle than the evacuation data transmitted to the in-vehicle control device to be non-updated. Low.

本態様にあたっては、外部サーバに送信する退避データは、非更新対象の車載制御装置に送信する退避データよりも、自装置における重要度が低いため、重要度の高い退避データは、非更新対象の車載制御装置に送信されるものとなる。従って、非更新対象の車載制御装置は車両内に搭載されているため、例えば、外部サーバとの通信が困難な状況下となった場合であっても、中継装置は、非更新対象の車載制御装置に送信して退避した退避データを、当該非更新対象の車載制御装置から取得することができる。 In this embodiment, the evacuation data transmitted to the external server is less important in the own device than the evacuation data transmitted to the in-vehicle control device to be non-updated. Therefore, the highly important evacuation data is the non-update target. It will be transmitted to the in-vehicle control device. Therefore, since the in-vehicle control device to be non-updated is installed in the vehicle, for example, even in a situation where communication with an external server is difficult, the relay device can control the in-vehicle control to be non-updated. The saved data transmitted to the device and saved can be acquired from the non-updated in-vehicle control device.

(3)本開示の一態様に係る車載更新装置は、前記記憶部には、前記退避データのデータ種別夫々と重要度夫々とが関連付けて記憶されている。 (3) In the vehicle-mounted update device according to one aspect of the present disclosure, the data type and the importance of the saved data are stored in the storage unit in association with each other.

本態様にあたっては、記憶部には、退避データのデータ種別夫々と重要度夫々とが関連付けて記憶されているため、制御部は、効率的に退避データのデータ種別に基づき、当該退避データの送信先を導出することができる。 In this embodiment, since the storage unit stores the data type of the saved data and the importance of the saved data in association with each other, the control unit efficiently transmits the saved data based on the data type of the saved data. The destination can be derived.

(4)本開示の一態様に係る車載更新装置は、前記制御部は、前記更新プログラムを取得する前に前記更新プログラムのデータ総容量を前記外部サーバから取得し、前記記憶部の空き容量及び前記外部サーバに送信する退避データのデータ総容量の合計値が、前記更新プログラムのデータ総容量よりも小さい場合、前記外部サーバに送信する退避データ以外の退避データを前記非更新対象の車載制御装置に送信する。 (4) In the vehicle-mounted update device according to one aspect of the present disclosure, the control unit acquires the total data capacity of the update program from the external server before acquiring the update program, and the free capacity of the storage unit and the free capacity of the storage unit When the total value of the total data capacity of the backup data transmitted to the external server is smaller than the total data capacity of the update program, the backup data other than the backup data transmitted to the external server is stored in the non-update target in-vehicle control device. Send to.

本態様にあたっては、制御部は、現時点における記憶部の空き容量及び外部サーバに送信する退避データのデータ総容量の合計値が、更新プログラムのデータ総容量よりも小さい場合、外部サーバに送信する退避データ以外の退避データを非更新対象の車載制御装置に送信するため、中継装置と車載制御装置との通信経路の通信量が増加することを抑制することができる。 In this embodiment, when the total value of the free space of the storage unit and the total data capacity of the backup data to be transmitted to the external server at the present time is smaller than the total data capacity of the update program, the control unit transmits to the external server. Since the saved data other than the data is transmitted to the in-vehicle control device to be non-updated, it is possible to suppress an increase in the communication amount of the communication path between the relay device and the in-vehicle control device.

(5)本開示の一態様に係る車載更新装置は、前記制御部は、前記更新プログラムを取得する前に前記更新プログラムのデータ総容量を前記外部サーバから取得し、前記記憶部の空き容量、前記外部サーバに送信する退避データのデータ総容量及び前記非更新対象の車載制御装置に送信する退避データの合計値が、前記更新プログラムのデータ総容量よりも大きい場合、前記退避データのデータ種別に基づき、前記退避データを前記外部サーバ及び前記非更新対象の車載制御装置に送信する。 (5) In the in-vehicle update device according to one aspect of the present disclosure, the control unit acquires the total data capacity of the update program from the external server before acquiring the update program, and the free capacity of the storage unit, When the total value of the backup data transmitted to the external server and the total value of the backup data transmitted to the non-update target in-vehicle control device is larger than the total data capacity of the update program, the data type of the backup data is selected. Based on this, the saved data is transmitted to the external server and the non-updated in-vehicle control device.

本態様にあたっては、制御部は、時点における記憶部の空き容量、外部サーバに送信する退避データのデータ総容量及び非更新対象の車載制御装置に送信する退避データの合計値が、更新プログラムのデータ総容量以上の場合、退避データを外部サーバ及び非更新対象の車載制御装置に送信する。従って、退避データを送信することによって更新プログラムを記憶するための記憶部の領域が確保できる場合のみ、制御部は、退避データを送信し更新プログラムを取得するため、取得した更新プログラムを確実に記憶することができる。 In this embodiment, in the control unit, the free space of the storage unit at the time, the total data capacity of the backup data transmitted to the external server, and the total value of the backup data transmitted to the in-vehicle control device to be non-updated are the data of the update program. If the total capacity or more, the saved data is transmitted to the external server and the in-vehicle control device to be non-updated. Therefore, only when the area of the storage unit for storing the update program can be secured by transmitting the save data, the control unit transmits the save data and acquires the update program, so that the acquired update program is surely stored. can do.

(6)本開示の一態様に係る車載更新装置は、前記制御部は、前記外部サーバから前記更新プログラムの取得中に、前記退避データを前記外部サーバに送信し、前記更新プログラムの取得中における前記記憶部の空き容量が、所定値以下となった場合、前記外部サーバに送信する退避データ以外の退避データを前記非更新対象の車載制御装置に送信する。 (6) In the in-vehicle update device according to one aspect of the present disclosure, the control unit transmits the save data to the external server while the update program is being acquired from the external server, and the update program is being acquired. When the free space of the storage unit becomes equal to or less than a predetermined value, the saved data other than the saved data to be transmitted to the external server is transmitted to the in-vehicle control device to be non-updated.

本態様にあたっては、制御部は、外部サーバから更新プログラムの取得中に退避データを外部サーバに送信するため、更新プログラムの取得のための準備作業を不要とし、更新対象の車載制御装置の更新の一連の処理の所要時間を短縮することができる。 In this embodiment, since the control unit transmits the saved data from the external server to the external server while the update program is being acquired, the preparatory work for acquiring the update program is not required, and the in-vehicle control device to be updated is updated. The time required for a series of processes can be shortened.

(7)本開示の一態様に係る車載更新装置は、前記車両には、複数の前記車載制御装置が搭載されており、前記複数の車載制御装置夫々と通信するための車内通信部を複数個備え、前記制御部は、異なる前記車内通信部夫々に接続される前記非更新対象の車載制御装置夫々へ、前記退避データの送信を並行して行う。 (7) In the vehicle-mounted update device according to one aspect of the present disclosure, the vehicle is equipped with a plurality of the vehicle-mounted control devices, and a plurality of in-vehicle communication units for communicating with the plurality of vehicle-mounted control devices are provided. The control unit simultaneously transmits the saved data to each of the non-updated in-vehicle control devices connected to the different in-vehicle communication units.

本態様にあたっては、車載更新装置は複数の車内通信部を備え、制御部は、異なる車内通信部夫々に直接接続される非更新対象の車載制御装置夫々へ、退避データの送信を並行して行う。従って、制御部は、車内通信部夫々にて許容される通信量(帯域幅)を合算した通信量(帯域幅)を用いて、非更新対象の車載制御装置夫々へ退避データを送信することができ、当該送信のための所要時間を短縮することができる。 In this embodiment, the in-vehicle update device includes a plurality of in-vehicle communication units, and the control unit transmits the saved data in parallel to each of the non-update target in-vehicle control devices directly connected to the different in-vehicle communication units. .. Therefore, the control unit can transmit the saved data to each of the in-vehicle control devices to be non-updated by using the communication amount (bandwidth) which is the sum of the communication amounts (bandwidth) allowed by each in-vehicle communication unit. It is possible to shorten the time required for the transmission.

(8)本開示の一態様に係る更新処理プログラムは、コンピュータに、記憶部に記憶されている退避データのデータ種別に基づき、前記退避データを外部サーバ又は、車両に搭載される更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、送信した前記退避データが記憶されていた前記記憶部の領域に、前記外部サーバから取得した更新プログラムを記憶し、記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する処理を実行させる。 (8) The update processing program according to one aspect of the present disclosure transmits the saved data to an external server or an in-vehicle update target mounted on a vehicle based on the data type of the saved data stored in the storage unit in the computer. The update program acquired from the external server is stored in the area of the storage unit in which the saved data transmitted by transmitting to a non-update target in-vehicle control device other than the control device is stored, and the stored update program is stored. The process of transmitting to the in-vehicle control device to be updated is executed.

本態様にあたっては、コンピュータを、車載制御装置のプログラムの更新を行うにあたり、自装置の記憶部の記憶容量が不足することを防止することができる車載更新装置として機能させることができる。 In this embodiment, the computer can function as an in-vehicle update device that can prevent the storage capacity of the storage unit of the own device from becoming insufficient when updating the program of the in-vehicle control device.

(9)本開示の一態様に係るプログラムの更新方法は、記憶部に記憶されている退避データのデータ種別に基づき、前記退避データを外部サーバ又は、車両に搭載される更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、送信した前記退避データが記憶されていた前記記憶部の領域に、前記外部サーバから取得した更新プログラムを記憶し、記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する。 (9) The method of updating the program according to one aspect of the present disclosure is based on the data type of the saved data stored in the storage unit, and the saved data is stored in an external server or an in-vehicle control device to be updated mounted on the vehicle. The update program acquired from the external server is stored in the area of the storage unit in which the saved data transmitted and transmitted to the non-update target in-vehicle control device other than the above is stored, and the stored update program is updated. Send to the target in-vehicle control device.

本態様にあたっては、車載制御装置のプログラムの更新を行うにあたり、自装置の記憶部の記憶容量が不足することを防止することができるプログラムの更新方法を提供することができる。 In this embodiment, it is possible to provide a program updating method that can prevent the storage capacity of the storage unit of the own device from becoming insufficient when updating the program of the in-vehicle control device.

[本開示の実施形態の詳細]
本開示をその実施の形態を示す図面に基づいて具体的に説明する。本開示の実施形態に係る車載更新装置2を、以下に図面を参照しつつ説明する。なお、本開示はこれらの例示に限定されるものではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。
[Details of Embodiments of the present disclosure]
The present disclosure will be specifically described with reference to the drawings showing the embodiments thereof. The vehicle-mounted renewal device 2 according to the embodiment of the present disclosure will be described below with reference to the drawings. It should be noted that the present disclosure is not limited to these examples, and is indicated by the scope of claims, and is intended to include all modifications within the meaning and scope equivalent to the scope of claims.

(実施形態1)
以下、実施の形態について図面に基づいて説明する。図1は、実施形態1に係る車載更新システムの構成を例示する模式図である。図2は、車載更新装置等の構成を例示するブロック図である。車載更新システムSは、車両Cに搭載された車外通信装置1及び車載更新装置2を含み、車外ネットワークNを介して接続された外部サーバS1から取得したプログラム又はデータを、車両Cに搭載されている車載ECU3(Electronic Control Unit/車載制御装置)に送信する。
(Embodiment 1)
Hereinafter, embodiments will be described with reference to the drawings. FIG. 1 is a schematic diagram illustrating the configuration of the vehicle-mounted update system according to the first embodiment. FIG. 2 is a block diagram illustrating the configuration of an in-vehicle update device and the like. The vehicle-mounted update system S includes the vehicle-mounted communication device 1 and the vehicle-mounted update device 2 mounted on the vehicle C, and the program or data acquired from the external server S1 connected via the vehicle-mounted network N is mounted on the vehicle C. It transmits to the in-vehicle ECU 3 (Electronic Control Unit).

外部サーバS1と車載更新装置2との通信は車外通信装置1を介して行われ、車外通信装置1を介した外部サーバS1と車載更新装置2との間の帯域幅(通信速度/スループット)は、車載更新装置2と車載ECU3との間の帯域幅(通信速度/スループット)よりも、大きいものとなっている。従って、当該帯域幅の差異を吸収するため、車載更新装置2は、外部サーバS1から取得したプログラム等(更新プログラム)を、自装置の記憶部21に一旦記憶(キャッシュ)する。そして、車載更新装置2は、当該プログラム(更新プログラム)の一部データ又は全データを記憶部21に一旦記憶した後、当該プログラム等(更新プログラム)を車載ECU3に送信する。 Communication between the external server S1 and the vehicle-mounted updater 2 is performed via the vehicle-mounted communication device 1, and the bandwidth (communication speed / throughput) between the external server S1 and the vehicle-mounted updater 2 via the vehicle-mounted communication device 1 is , It is larger than the bandwidth (communication speed / throughput) between the vehicle-mounted update device 2 and the vehicle-mounted ECU 3. Therefore, in order to absorb the difference in the bandwidth, the in-vehicle update device 2 temporarily stores (caches) a program or the like (update program) acquired from the external server S1 in the storage unit 21 of its own device. Then, the in-vehicle update device 2 temporarily stores some data or all the data of the program (update program) in the storage unit 21, and then transmits the program or the like (update program) to the in-vehicle ECU 3.

外部サーバS1は、例えばインターネット又は公衆回線網等の車外ネットワークNに接続されているサーバ等のコンピュータであり、RAM(Random Access Memory)、ROM
(Read Only Memory)又はハードディスク等による記憶部S11を備え、車外のプログラム提供装置に相当する。外部サーバS1の記憶部S11には、車載ECU3の製造メーカ等によって作成された当該車載ECU3を制御するためのプログラム又はデータが保存されている。詳細は後述するが、外部サーバS1の記憶部S11には、車載更新装置2から送信された退避データが記憶される。当該プログラム又はデータは、更新プログラムとして、後述のごとく車両Cに送信され、車両Cに搭載されている車載ECU3のプログラム又はデータを更新するために用いられる。このように構成された外部サーバS1は、OTA(Over The Air)サーバとも称される。車両Cに搭載される車載ECU3は、外部サーバS1から無線通信により送信された更新プログラムを取得し、当該更新プログラムを実行するプログラムとして適用することにより、自ECUが実行するプログラムを更新(リプロ)することができる。
The external server S1 is a computer such as a server connected to an external network N such as the Internet or a public network, and is a RAM (Random Access Memory) or ROM.
(Read Only Memory) or a storage unit S11 using a hard disk or the like is provided, and corresponds to a program providing device outside the vehicle. In the storage unit S11 of the external server S1, a program or data for controlling the in-vehicle ECU 3 created by the manufacturer of the in-vehicle ECU 3 or the like is stored. Although the details will be described later, the saved data transmitted from the in-vehicle update device 2 is stored in the storage unit S11 of the external server S1. The program or data is transmitted to the vehicle C as an update program as described later, and is used to update the program or data of the vehicle-mounted ECU 3 mounted on the vehicle C. The external server S1 configured in this way is also referred to as an OTA (Over The Air) server. The in-vehicle ECU 3 mounted on the vehicle C acquires an update program transmitted by wireless communication from the external server S1 and applies it as a program for executing the update program to update the program executed by the own ECU (repro). can do.

以降、プログラムは、車載ECU3が処理を行うための制御構文等を含むプログラムコード及び、当該プログラムコードを実行するにあたり参照するデータが記載される外部ファイルを含むものとして説明する。更新プログラムの送信時において、これらプログラムコード及びデータが記載される外部ファイルは、例えば暗号化されたアーカイブファイルとして、外部サーバS1から送信される。 Hereinafter, the program will be described as including a program code including a control syntax and the like for the in-vehicle ECU 3 to perform processing, and an external file in which data to be referred to when executing the program code is described. At the time of transmitting the update program, the external file in which these program codes and data are described is transmitted from the external server S1 as, for example, an encrypted archive file.

車両Cには、車外通信装置1、車載更新装置2、表示装置5、及び種々の車載機器を制御するための複数の車載ECU3が搭載されている。車外通信装置1と車載更新装置2とは、例えばシリアルケーブル等のハーネスにより通信可能に接続されている。車載更新装置2及び車載ECU3は、CAN(Control Area Network/登録商標)又はEthernet(登録商標)等の通信プロトコルに対応した車内LAN4によって通信可能に接続されている。車内LAN4は、CAN又はEthernetに対応した通信線(CANバス又はEthernetケーブル)により構成され、これら通信線夫々により、車内LAN4はセグメント化される。 The vehicle C is equipped with an external communication device 1, an in-vehicle update device 2, a display device 5, and a plurality of in-vehicle ECUs 3 for controlling various in-vehicle devices. The out-of-vehicle communication device 1 and the in-vehicle update device 2 are communicably connected by a harness such as a serial cable. The in-vehicle update device 2 and the in-vehicle ECU 3 are communicably connected by an in-vehicle LAN 4 corresponding to a communication protocol such as CAN (Control Area Network / registered trademark) or Ethernet (registered trademark). The in-vehicle LAN 4 is composed of communication lines (CAN bus or Ethernet cable) corresponding to CAN or Ethernet, and the in-vehicle LAN 4 is segmented by each of these communication lines.

車外通信装置1は、車外通信部11及び、車載更新装置2と通信するための入出力I/F(インターフェイス)12を含む。車外通信部11は、3G、LTE、4G、WiFi等の移動体通信のプロトコルを用いて無線通信をするための通信装置であり、車外通信部11に接続されたアンテナ13を介して外部サーバS1とデータの送受信を行う。車外通信装置1と外部サーバとの通信は、例えば公衆回線網又はインターネット等の外部ネットワークを介して行われる。 The out-of-vehicle communication device 1 includes an out-of-vehicle communication unit 11 and an input / output I / F (interface) 12 for communicating with the in-vehicle update device 2. The out-of-vehicle communication unit 11 is a communication device for wireless communication using mobile communication protocols such as 3G, LTE, 4G, and WiFi, and is an external server S1 via an antenna 13 connected to the out-of-vehicle communication unit 11. And send and receive data. Communication between the external communication device 1 and the external server is performed via, for example, a public network or an external network such as the Internet.

入出力I/F12は、車載更新装置2と、例えばシリアル通信するための通信インターフェイスである。車外通信装置1と車載更新装置2とは、入出力I/F12及び入出力I/F12に接続されたシリアルケーブル等のハーネスを介して相互に通信する。本実施形態では、車外通信装置1は、車載更新装置2と別装置とし、入出力I/F12等によってこれら装置を通信可能に接続しているが、これに限定されない。車外通信装置1は、車載更新装置2の一構成部位として、車載更新装置2に内蔵されるものであってもよい。 The input / output I / F 12 is a communication interface for serial communication with the in-vehicle update device 2, for example. The out-of-vehicle communication device 1 and the in-vehicle update device 2 communicate with each other via harnesses such as a serial cable connected to the input / output I / F12 and the input / output I / F12. In the present embodiment, the vehicle-mounted communication device 1 is a separate device from the vehicle-mounted update device 2, and these devices are communicably connected by input / output I / F12 and the like, but the present invention is not limited to this. The vehicle-mounted communication device 1 may be built in the vehicle-mounted update device 2 as a component of the vehicle-mounted update device 2.

車載更新装置2は、制御部20、記憶部21及び車内通信部23を含む。車載更新装置2は、車外通信装置1が無線通信によって外部サーバS1から受信した更新プログラムを、車外通信装置1から取得し、車内LAN4を介して当該更新プログラムを所定の車載ECU3(更新対象の車載ECU3)に送信するように構成されている。車載更新装置2は、例えば、制御系の車載ECU3、安全系の車載ECU3及び、ボディ系の車載ECU3等の複数の系統のセグメントを統括し、これらセグメント間での車載ECU3同士の通信を中継するゲートウェイ(中継器)である。又は、車載更新装置2は、車両C全体をコントロールするボディECUの一機能部として構成されるものであってもよい。 The in-vehicle update device 2 includes a control unit 20, a storage unit 21, and an in-vehicle communication unit 23. The in-vehicle update device 2 acquires an update program received from the external server S1 by the in-vehicle communication device 1 by wireless communication from the in-vehicle communication device 1, and transfers the update program to a predetermined in-vehicle ECU 3 (in-vehicle to be updated) via the in-vehicle LAN 4. It is configured to transmit to the ECU 3). The in-vehicle update device 2 controls segments of a plurality of systems such as a control system in-vehicle ECU 3, a safety in-vehicle ECU 3, and a body-based in-vehicle ECU 3, and relays communication between the in-vehicle ECUs 3 between these segments. It is a gateway (repeater). Alternatively, the in-vehicle update device 2 may be configured as a functional unit of the body ECU that controls the entire vehicle C.

制御部20は、CPU(Central Processing Unit)又はMPU(Micro Processing Unit)等により構成してあり、記憶部21に予め記憶された制御プログラム及びデータを読み出して実行することにより、種々の制御処理及び演算処理等を行うようにしてある。 The control unit 20 is composed of a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or the like, and can perform various control processes by reading and executing a control program and data stored in advance in the storage unit 21. It is designed to perform arithmetic processing and the like.

記憶部21は、RAM(Random Access Memory)等の揮発性のメモリ素子又は、ROM
(Read Only Memory)、EEPROM(Electrically Erasable Programmable ROM)若しくはフラッシュメモリ等の不揮発性のメモリ素子により構成してあり、制御プログラム及び処理時に参照するデータがあらかじめ記憶してある。記憶部21に記憶された制御プログラムは、車載更新装置2が読み取り可能な記録媒体22から読み出された制御プログラムを記憶したものであってもよい。また、図示しない通信網に接続されている図示しない外部コンピュータから制御プログラムをダウンロードし、記憶部21に記憶させたものであってもよい。更に、記憶部21には、車両Cに搭載される全ての車載ECU3の構成情報(車両構成情報)、外部サーバS1から取得した更新プログラム、及び車載ECU3に更新プログラムを送信する際の進捗状況に関する情報(更新処理のログデータ)が、記憶される。更に、記憶部21には、車内LANに流れる通信のログデータ、車両における異常発生時に車内LANに流れている全データ(フリーズフレームデータ)を含む退避データが、記憶される。
The storage unit 21 is a volatile memory element such as a RAM (Random Access Memory) or a ROM.
It is composed of non-volatile memory elements such as (Read Only Memory), EEPROM (Electrically Erasable Programmable ROM), or flash memory, and the control program and data to be referred to during processing are stored in advance. The control program stored in the storage unit 21 may be one that stores the control program read from the recording medium 22 that can be read by the vehicle-mounted updater 2. Further, the control program may be downloaded from an external computer (not shown) connected to a communication network (not shown) and stored in the storage unit 21. Further, the storage unit 21 relates to the configuration information (vehicle configuration information) of all the vehicle-mounted ECUs 3 mounted on the vehicle C, the update program acquired from the external server S1, and the progress status when the update program is transmitted to the vehicle-mounted ECU 3. Information (log data of update process) is stored. Further, the storage unit 21 stores the log data of the communication flowing through the in-vehicle LAN and the saved data including all the data (freeze frame data) flowing in the in-vehicle LAN when an abnormality occurs in the vehicle.

記憶部21に記憶される車載ECU3夫々の構成情報(車両構成情報)例えば、車載ECU3の製造番号(シリアル番号)、ECU部番(型番)、Software部番、プログラムの現バージョン、旧バージョン、動作面数、動作面、MAC(Media Access Control)アドレス、IPアドレス、前回更新完了日時、リプロステータス及びVIN(車両識別番号)を含む。また、車載ECU3がCANによって接続される場合、車載ECU3の構成情報は、当該車載ECU3がメッセージを送信する際に用いる(含める)CAN−IDを含むものであってよい。これら車両構成情報は、個々の車載ECU3において重複しないように設定された連番等によるECU−IDに関連付けられて管理され、例えばテーブル形式のデータとして記憶部21に記憶される。制御部20は、車両の起動及び停止を行うIGスイッチがオン又はオフにされた場合等の所定のタイミングにて、定常的に車両Cに搭載されている全ての車載ECU3又は特定の車載ECU3から、車載ECU3夫々の構成情報を取得し、記憶部21に記憶する。又、車両構成情報には、車載ECU3夫々の記憶部31の記憶容量及び現時点における空き容量が含まれるものであってもよい。記憶部21に記憶されている車両構成情報に含まれる車載ECU3の製造番号(シリアル番号)、ECU部番(型番)、動作面数、動作面、記憶容量及び現時点における空き容量に基づいて、制御部20は、車載ECU3のハードウェア構成を認識し、当該車載ECU3の記憶部31の非動作面、記憶容量及び現時点における空き容量を導出することができる。 Configuration information (vehicle configuration information) of each in-vehicle ECU 3 stored in the storage unit 21, for example, the serial number (serial number), ECU part number (model number), Software part number, current version, old version, and operation of the in-vehicle ECU 3. Includes number of screens, operating plane, MAC (Media Access Control) address, IP address, last update completion date and time, repro status and VIN (Vehicle Identification Number). When the vehicle-mounted ECU 3 is connected by CAN, the configuration information of the vehicle-mounted ECU 3 may include a CAN-ID used (included) when the vehicle-mounted ECU 3 transmits a message. These vehicle configuration information are managed in association with ECU-IDs having serial numbers or the like set so as not to be duplicated in each in-vehicle ECU 3, and are stored in the storage unit 21 as, for example, table-type data. The control unit 20 is constantly mounted on the vehicle C from all the vehicle-mounted ECUs 3 or a specific vehicle-mounted ECU 3 at a predetermined timing such as when the IG switch for starting and stopping the vehicle is turned on or off. , The configuration information of each of the vehicle-mounted ECUs 3 is acquired and stored in the storage unit 21. Further, the vehicle configuration information may include the storage capacity of the storage unit 31 of each of the vehicle-mounted ECUs 3 and the free capacity at the present time. Control based on the serial number (serial number), ECU part number (model number), number of operating surfaces, operating surface, storage capacity, and free capacity of the vehicle-mounted ECU 3 included in the vehicle configuration information stored in the storage unit 21. The unit 20 recognizes the hardware configuration of the vehicle-mounted ECU 3 and can derive the non-operating surface, the storage capacity, and the current free capacity of the storage unit 31 of the vehicle-mounted ECU 3.

制御部20は、記憶部21に記憶されている制御プログラムを実行することにより、外部サーバS1から送信された更新プログラムを、車外通信装置1を介して取得する更新プログラム取得部に相当する。制御部20は、記憶部21に記憶されている制御プログラムを実行することにより、外部サーバS1から送信された更新情報(キャンペーンデータ)に基づき、外部サーバS1から取得する更新プログラムのデータ総容量を導出するデータ総容量導出部に相当する。制御部20は、記憶部21に記憶されている制御プログラムを実行することにより、外部サーバS1又は非更新対象の車載ECU3に送信することができる退避データの容量(退避可能データ容量)夫々を導出する退避データ容量導出部に相当する。制御部20は、記憶部21に記憶されている制御プログラムを実行することにより、導出した更新プログラムのデータ総容量と、現状における自装置の記憶部21の空き容量とに基づき、外部サーバS1又は非更新対象の車載ECU3への退避データの送信の要否を判定する判定部に相当する。制御部20は、記憶部21に記憶されている制御プログラムを実行することにより、判定部の判定結果に基づき退避データを外部サーバS1又は非更新対象の車載ECU3へ送信する退避データ送信部に相当する。制御部20は、記憶部21に記憶されている制御プログラムを実行することにより、外部サーバS1から取得した更新プログラムを、更新対象の車載ECU3に送信する更新プログラム送信部に相当する。 The control unit 20 corresponds to an update program acquisition unit that acquires an update program transmitted from the external server S1 via the external communication device 1 by executing a control program stored in the storage unit 21. The control unit 20 executes the control program stored in the storage unit 21 to obtain the total data capacity of the update program acquired from the external server S1 based on the update information (campaign data) transmitted from the external server S1. Corresponds to the total data capacity derivation unit to be derived. By executing the control program stored in the storage unit 21, the control unit 20 derives the amount of saved data (saveable data capacity) that can be transmitted to the external server S1 or the in-vehicle ECU 3 to be non-updated. Corresponds to the save data capacity derivation unit. The control unit 20 executes the control program stored in the storage unit 21, and based on the total data capacity of the derived update program and the free capacity of the storage unit 21 of the own device at present, the external server S1 or It corresponds to a determination unit that determines whether or not to transmit saved data to the in-vehicle ECU 3 to be non-updated. The control unit 20 corresponds to a save data transmission unit that transmits the save data to the external server S1 or the in-vehicle ECU 3 to be non-updated based on the determination result of the determination unit by executing the control program stored in the storage unit 21. To do. The control unit 20 corresponds to an update program transmission unit that transmits an update program acquired from the external server S1 to the vehicle-mounted ECU 3 to be updated by executing the control program stored in the storage unit 21.

車内通信部23は、CAN(Control Area Network)又はEthernet(登録商標)等の通信プロトコルを用いた入出力インターフェイスであり、制御部20は、車内通信部23を介して車内LAN4に接続されている車載ECU3又は他の中継装置等の車載機器と相互に通信する。車内通信部23は、複数個(図面上では3つ)設けられており、車内通信部23夫々に、車内LAN4を構成する通信線(CANバス又はEthernetケーブル)が接続されている。このように車内通信部23を複数個設けることにより、車内LAN4は複数個のセグメントに分けられ、各セグメント夫々に車載ECUを、当該車載ECUの機能(制御系機能、安全系機能、ボディ系機能)に応じて接続する。又は、車両Cが自動運転機能(認知系機能、判断系機能、操作系機能)を有する場合、車載ECU3は、当該車載ECU3の機能(認知系機能、判断系機能、操作系機能)に応じて各セグメントに接続されるものであってもよい。 The in-vehicle communication unit 23 is an input / output interface using a communication protocol such as CAN (Control Area Network) or Ethernet (registered trademark), and the control unit 20 is connected to the in-vehicle LAN 4 via the in-vehicle communication unit 23. It communicates with an in-vehicle device such as an in-vehicle ECU 3 or another relay device. A plurality of in-vehicle communication units 23 (three in the drawing) are provided, and communication lines (CAN bus or Ethernet cable) constituting the in-vehicle LAN 4 are connected to each of the in-vehicle communication units 23. By providing a plurality of in-vehicle communication units 23 in this way, the in-vehicle LAN 4 is divided into a plurality of segments, and an in-vehicle ECU is provided for each segment, and the functions of the in-vehicle ECU (control system function, safety system function, body system function). ) To connect. Alternatively, when the vehicle C has an automatic driving function (cognitive system function, judgment system function, operation system function), the vehicle-mounted ECU 3 responds to the function of the vehicle-mounted ECU 3 (cognitive system function, judgment system function, operation system function). It may be connected to each segment.

車載ECU3は、制御部30、記憶部31及び車内通信部32を含む。記憶部31は、RAM(Random Access Memory)等の揮発性のメモリ素子又は、ROM(Read Only Memory)、EEPROM(Electrically Erasable Programmable ROM)若しくはフラッシュメモリ等の不揮発性のメモリ素子により構成してあり、車載ECU3のプログラム又はデータが記憶されている。このプログラム又はデータが、車載更新装置2から送信される更新プログラムによって更新される対象である。 The in-vehicle ECU 3 includes a control unit 30, a storage unit 31, and an in-vehicle communication unit 32. The storage unit 31 is composed of a volatile memory element such as a RAM (Random Access Memory) or a non-volatile memory element such as a ROM (Read Only Memory), an EEPROM (Electrically Erasable Programmable ROM) or a flash memory. The program or data of the in-vehicle ECU 3 is stored. This program or data is the target to be updated by the update program transmitted from the vehicle-mounted update device 2.

記憶部31は、第1記憶領域(第1面)311及び第2記憶領域(第2面)312を含む。記憶部31には、現状において車載ECU3が実行(適用)しているプログラム(現バージョン)及び、現バージョンの以前に適用されていたプログラム(旧バージョン)の2つのプログラムが記憶されている。これら現バージョンのプログラムと、旧バージョンのプログラムとは、第1記憶領域311又は第2記憶領域312のいずれかの記憶領域に分かれて、記憶されている。すなわち、第1記憶領域311に現バージョンのプログラムが記憶されている場合、第2記憶領域312に旧バージョンのプログラムが記憶されている。第1記憶領域311に旧バージョンのプログラムが記憶されている場合、第2記憶領域312に現バージョンのプログラムが記憶されている。このように現バージョン及び旧バージョンの2つのプログラムを、所謂2面持ちとして記憶することにより、万が一現バージョンのプログラムに問題が生じた場合であっても、制御部30は、以前に適用して正常に動作していた旧バージョンのプログラムを読み込み実行する(切替える)ことで、車載ECU3(2面持ちの車載ECU3)の信頼性を担保することができる。 The storage unit 31 includes a first storage area (first surface) 311 and a second storage area (second surface) 312. The storage unit 31 stores two programs, a program currently executed (applied) by the in-vehicle ECU 3 (current version) and a program previously applied to the current version (old version). The current version of the program and the old version of the program are stored separately in either the first storage area 311 or the second storage area 312. That is, when the current version of the program is stored in the first storage area 311, the old version of the program is stored in the second storage area 312. When the old version program is stored in the first storage area 311, the current version program is stored in the second storage area 312. By storing the two programs of the current version and the old version as so-called two-sided programs in this way, even if a problem should occur in the program of the current version, the control unit 30 applies it before and is normal. The reliability of the in-vehicle ECU 3 (in-vehicle ECU 3 having two sides) can be ensured by reading and executing (switching) the program of the old version that was operating in.

記憶部31には、現バージョン及び旧バージョンの2つのプログラム夫々のバージョンに関する情報、及び現在実行(適用)しているプログラムが記憶されている領域(動作面)に関する情報が記憶されている。すなわち、現状において第1記憶領域(第1面)311に記憶されているプログラムを実行している場合、記憶部31には、動作面は第1記憶領域(第1面)311であると記憶される。現状において第2記憶領域(第2面)312に記憶されているプログラムを実行している場合、記憶部31には、動作面は第2記憶領域(第2面)312であると記憶される。記憶部31には、プログラム(現バージョン及び旧バージョン)のバージョン情報及び動作面に関する情報を含め、自ECUの構成情報と、車載更新装置2から更新プログラムを受信する際の進捗状況に関する情報とが、記憶される。 The storage unit 31 stores information on each version of the two programs, the current version and the old version, and information on the area (operating surface) in which the program currently being executed (applied) is stored. That is, when the program stored in the first storage area (first surface) 311 is being executed at present, the storage unit 31 stores that the operating surface is the first storage area (first surface) 311. Will be done. When the program stored in the second storage area (second surface) 312 is being executed at present, the storage unit 31 stores that the operating surface is the second storage area (second surface) 312. .. The storage unit 31 contains the configuration information of the own ECU and the information on the progress status when receiving the update program from the in-vehicle update device 2, including the version information and the information on the operation surface of the program (current version and the old version). , Will be remembered.

制御部30は、CPU(Central Processing Unit)又はMPU(Micro Processing Unit)等により構成してあり、記憶部31(動作面)に記憶されたプログラム及びデータを読み出し実行して制御処理等を行い、当該車載ECU3を含む車載機器又はアクチュエータ等が制御される。 The control unit 30 is composed of a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or the like, and reads and executes programs and data stored in the storage unit 31 (operating surface) to perform control processing and the like. An in-vehicle device or actuator including the in-vehicle ECU 3 is controlled.

車載ECU3の制御部30は、車載更新装置2から送信される更新プログラムを、車内通信部32を介して受信し、当該更新プログラムを取得する。従って、車載ECU3の制御部30は、外部サーバS1から送信された更新プログラムを、車外通信装置1及び車載更新装置2を介して取得する。制御部30は、取得した更新プログラムを、動作面でない記憶領域(第1記憶領域311又は第2記憶領域312)に記憶する。すなわち、制御部30は、車載更新装置2から送信された更新プログラムを取得するにあたり、当該取得の準備処理として、動作面でない記憶領域(非動作面)に記憶されているプログラムを削除する。通常、動作面でない記憶領域に記憶されているプログラムは、現バージョンのプログラムの以前に実行された旧バージョンのプログラムであるため、車載ECU3における車載装置への制御機能を停止させることなく、当該旧バージョンを削除することができる。制御部30は、動作面でない記憶領域(非動作面)に記憶されている旧バージョンのプログラムを削除し、車載更新装置2から送信された更新プログラムを、当該非動作面に記憶する。 The control unit 30 of the in-vehicle ECU 3 receives the update program transmitted from the in-vehicle update device 2 via the in-vehicle communication unit 32, and acquires the update program. Therefore, the control unit 30 of the vehicle-mounted ECU 3 acquires the update program transmitted from the external server S1 via the vehicle-mounted communication device 1 and the vehicle-mounted update device 2. The control unit 30 stores the acquired update program in a storage area (first storage area 311 or second storage area 312) that is not an operating surface. That is, when acquiring the update program transmitted from the vehicle-mounted update device 2, the control unit 30 deletes the program stored in the storage area (non-operating surface) other than the operating surface as a preparatory process for the acquisition. Normally, the program stored in the storage area other than the operation surface is an old version of the program that was executed before the current version of the program, so that the old version of the program is not stopped without stopping the control function of the in-vehicle ECU 3 for the in-vehicle device. You can remove the version. The control unit 30 deletes the old version program stored in the storage area (non-operating surface) that is not the operating surface, and stores the update program transmitted from the vehicle-mounted update device 2 in the non-operating surface.

車載ECU3の制御部30は、更新プログラムの受信を正常終了した後、動作面の切替えを行い、受信した更新プログラムを現バージョンのプログラムとして適用して実行する。車載ECU3の制御部30は、更新プログラムの受信を正常終了し、動作面の切替えを正常に行った場合、プログラムの更新が完了(正常終了)したことを記憶部31に記憶し、更に車載更新装置2に送信(通知)する。動作面の切替えが正常に行われた場合、制御部30は、プログラムの更新が完了(正常終了)したと判定するため、当該判定の精度を担保することができる。 After normally completing the reception of the update program, the control unit 30 of the in-vehicle ECU 3 switches the operation surface, applies the received update program as the current version of the program, and executes the program. When the control unit 30 of the in-vehicle ECU 3 normally ends the reception of the update program and switches the operation surface normally, the control unit 30 stores in the storage unit 31 that the program update is completed (normal end), and further in-vehicle update. Send (notify) to device 2. When the operation surface is switched normally, the control unit 30 determines that the update of the program is completed (normally terminated), so that the accuracy of the determination can be guaranteed.

又は、車載ECU3の制御部30は、更新プログラムの受信を正常終了し動作面の切替えを行った後、当該車載ECU3の機能に基づいた自己診断処理を行う。車載ECU3の機能に基づいた自己診断処理を行うための自己診断処理プログラムは、車載ECU3夫々の記憶部に31に予め記憶されている。又は、自己診断処理プログラムは、更新プログラムに含まれ、更新プログラムと一緒に車載更新装置2から送信されるものであってもよい。 Alternatively, the control unit 30 of the in-vehicle ECU 3 normally ends the reception of the update program, switches the operation surface, and then performs the self-diagnosis process based on the function of the in-vehicle ECU 3. The self-diagnosis processing program for performing the self-diagnosis processing based on the function of the vehicle-mounted ECU 3 is stored in advance in 31 in the storage unit of each of the vehicle-mounted ECU 3. Alternatively, the self-diagnosis processing program may be included in the update program and transmitted from the in-vehicle update device 2 together with the update program.

制御部30は、切替えた更新プログラムに対する自己診断処理の結果が正常である場合、プログラムの更新が完了(正常終了)したことを記憶部31に記憶し、更に車載更新装置2に送信(通知)してもよい。自己診断処理の結果が正常である場合、制御部30は、プログラムの更新が完了(正常終了)したと判定するため、当該判定の精度を更に向上させることができる。 When the result of the self-diagnosis process for the switched update program is normal, the control unit 30 stores in the storage unit 31 that the program update is completed (normal end), and further transmits (notifies) to the in-vehicle update device 2. You may. When the result of the self-diagnosis process is normal, the control unit 30 determines that the update of the program is completed (normally completed), so that the accuracy of the determination can be further improved.

又は、車載ECU3の制御部30は、更新プログラムの受信を正常終了し動作面の切替えを行う前に、非動作面の記憶領域に記憶されている更新プログラムに対し、自己診断処理を行い、更新プログラムに対する自己診断処理の結果が正常である場合、プログラムの更新が完了(正常終了)したことを記憶部31に記憶し、更に車載更新装置2に送信(通知)する。更新プログラムの受信を正常終了し動作面の切替えを行う前、すなわち更新プログラムを適用する前に、制御部30は、非動作面の記憶領域に記憶されている更新プログラムに対し自己診断処理を行うため、車載ECU3が現在実行している車載装置に対する制御機能の動作に影響を与えることなく、更新プログラムによる更新の正否について判定することができる。 Alternatively, the control unit 30 of the in-vehicle ECU 3 performs self-diagnosis processing on the update program stored in the storage area of the non-operating surface and updates the update program before normally ending the reception of the update program and switching the operating surface. When the result of the self-diagnosis process for the program is normal, the storage unit 31 stores that the update of the program is completed (normal end), and further transmits (notifies) to the in-vehicle update device 2. Before the reception of the update program is normally completed and the operation surface is switched, that is, before the update program is applied, the control unit 30 performs a self-diagnosis process on the update program stored in the storage area of the non-operation surface. Therefore, the correctness of the update by the update program can be determined without affecting the operation of the control function for the vehicle-mounted device currently being executed by the vehicle-mounted ECU 3.

車載ECU3の制御部30は、更新プログラムへの切替えが失敗した場合、又は更新プログラムに対する自己診断処理の結果が異常である場合、ロールバック処理、すなわち更新プログラムの前バージョン(旧バージョン)のプログラムが記憶されている非動作面の記憶領域を、動作面の記憶領域として切替え(ロールバック)、当該前バージョンのプログラムを実行(適用)する。車載ECU3の制御部30は、更新プログラムへの切替えが失敗した場合、又は更新プログラムに対する自己診断処理の結果が異常である場合、更新が失敗(異常終了)したことを記憶部31に記憶し、更に車載更新装置2に送信(通知)してもよい。 When the control unit 30 of the in-vehicle ECU 3 fails to switch to the update program, or when the result of the self-diagnosis process for the update program is abnormal, the rollback process, that is, the program of the previous version (old version) of the update program is executed. The stored non-operating surface storage area is switched (rolled back) as the operating surface storage area, and the previous version of the program is executed (applied). The control unit 30 of the in-vehicle ECU 3 stores in the storage unit 31 that the update has failed (abnormal termination) when the switching to the update program fails or the result of the self-diagnosis process for the update program is abnormal. Further, it may be transmitted (notified) to the in-vehicle update device 2.

更新プログラムの前バージョンのプログラムは、更新プログラムが送信される際に実行していたプログラムであるため、動作実績を有するプログラムである。従って、制御部30は、更新プログラムの更新に失敗した場合であっても、ロールバック処理を行うことにより、動作実績を有するプログラムに戻して(動作面を切替え)、当該プログラムを実行するため、車載装置に対する制御機能を継続することができる。 The program of the previous version of the update program is a program that has an operation record because it is the program that was executed when the update program was transmitted. Therefore, even if the update program fails to be updated, the control unit 30 returns to the program having the operation record (switches the operation surface) by performing the rollback process, and executes the program. The control function for the in-vehicle device can be continued.

車載ECU3の制御部30による更新プログラムによる更新の成否の判定は、当該更新プログラムへの切替え(動作面の切替え)又は自己診断処理の結果に基づき判定するものとしたが、これに限定されない。車載ECU3の制御部30は、更新プログラムに切替え当該更新プログラムを実行した後、例えば、所定期間の経過、車両Cの累積動作時間、トリップ回数、又は運転距離等が所定値以上となるまでの間に、当該更新プログラムに起因する異常を検知しなかった場合、更新は成功したと判定してもよい。 The determination of success or failure of the update by the update program by the control unit 30 of the in-vehicle ECU 3 is determined based on the result of switching to the update program (switching of the operation surface) or the self-diagnosis process, but the determination is not limited thereto. After switching to the update program and executing the update program, the control unit 30 of the vehicle-mounted ECU 3 waits for, for example, the elapse of a predetermined period, the cumulative operating time of the vehicle C, the number of trips, the driving distance, and the like to exceed a predetermined value. In addition, if an abnormality caused by the update program is not detected, it may be determined that the update was successful.

表示装置5は、例えばカーナビゲーションのディスプレイ等のHMI(Human Machine Interface)装置である。表示装置5は、車載更新装置2の入出力I/F24とシリアルケーブル等のハーネスにより通信可能に接続されている。表示装置5には、車載更新装置2の制御部20から入出力I/F24を介して出力されたデータ又は情報が表示される。表示装置5と車載更新装置2との接続形態は、入出力I/F24等による接続形態に限定されず、表示装置5と車載更新装置2とは、車内LAN4を介した接続形態であってもよい。 The display device 5 is an HMI (Human Machine Interface) device such as a car navigation display. The display device 5 is communicably connected to the input / output I / F 24 of the vehicle-mounted update device 2 by a harness such as a serial cable. The display device 5 displays data or information output from the control unit 20 of the vehicle-mounted update device 2 via the input / output I / F 24. The connection form between the display device 5 and the in-vehicle update device 2 is not limited to the connection form by the input / output I / F24 or the like, and the display device 5 and the in-vehicle update device 2 may be connected via the in-vehicle LAN 4. Good.

図3は、記憶部21に記憶される退避データの一態様を例示する説明図である。図3においては、退避データとして外部サーバS1又は車載ECU3に送信される各種データに対し、当該データの重要度、データ種別及び送信先となる退避場所(送信先)を設定したデータを表形式(テーブル形式)で例示したものである。 FIG. 3 is an explanatory diagram illustrating one aspect of the saved data stored in the storage unit 21. In FIG. 3, for various data transmitted to the external server S1 or the in-vehicle ECU 3 as save data, data in which the importance of the data, the data type, and the save location (destination) to be the destination are set is displayed in a table format (). It is illustrated in table format).

車載更新装置2の記憶部21には、上述のごとく、自装置の制御を行うための制御プログラム又はデータに加え、車載ECU3夫々から取得した車載構成情報、及び車載ECU3の更新処理に関する更新プログラムが記憶されている。更に、車載更新装置2の記憶部21には、車両Cの動作状態に関する各種ログデータ、すなわち動作状態を示す情報が時系列のデータとして記憶されている。 As described above, in the storage unit 21 of the vehicle-mounted update device 2, in addition to the control program or data for controlling the own device, the vehicle-mounted configuration information acquired from each of the vehicle-mounted ECUs 3 and the update program related to the update process of the vehicle-mounted ECU 3 are stored. It is remembered. Further, the storage unit 21 of the vehicle-mounted update device 2 stores various log data regarding the operating state of the vehicle C, that is, information indicating the operating state as time-series data.

車載更新装置2が外部サーバS1又は非更新対象に車載ECU3に送信する退避データは、主には車両Cの動作状態に関する各種ログデータにより構成される。図3に示すごとく、退避データとして取り扱われる各種ログデータは、例えばフリーズフレームデータ、更新処理のログデータ及び通信のログデータを含む。 The evacuation data transmitted by the vehicle-mounted update device 2 to the external server S1 or the non-update target to the vehicle-mounted ECU 3 is mainly composed of various log data relating to the operating state of the vehicle C. As shown in FIG. 3, various log data treated as saved data include, for example, freeze frame data, update processing log data, and communication log data.

車載更新装置2の制御部20は、車載ECU3間の通信の中継制御をするにあたり、これら車載ECU3夫々から送信されたデータを受信し、当該データに含まれる故障異常コードを抽出し、記憶部21に記憶する。車載更新装置2の制御部20は、制御プログラムを実行することにより、例えば、自装置の自己診断機能(OBD/On-board diagnostics)を発揮し、自己診断の診断結果に基づき出力した故障異常コードを自装置の動作状態に関するログデータとして、記憶部21に記憶する。車載更新装置2の制御部20は、これら故障異常コードを記憶した場合、その時点において車内LAN4に流れているCANメッセージ又はイーサネットフレーム等のデータを取得し、当該データをフリーズフレームデータとして記憶部21に記憶する。車載更新装置2の制御部20は、更新対象の車載ECU3に更新プログラムを送信し、当該車載ECU3の更新処理(リプロ処理)を行った際の処理履歴を更新処理のログデータとして記憶部21に記憶する。車載更新装置2の制御部20は、車載ECU3間の通信の中継制御をするにあたり、各セグメントにおける単位時間あたりの送受信データ量、トラフィック量、各メッセージ種別の送受信数等の通信のログデータを記憶部21に記憶する。 The control unit 20 of the vehicle-mounted update device 2 receives data transmitted from each of the vehicle-mounted ECUs 3 when performing relay control of communication between the vehicle-mounted ECUs 3, extracts a failure abnormality code included in the data, and stores the storage unit 21. Remember in. By executing the control program, the control unit 20 of the in-vehicle update device 2 exerts, for example, the self-diagnosis function (OBD / On-board diagnostics) of the own device, and outputs a failure abnormality code based on the diagnosis result of the self-diagnosis. Is stored in the storage unit 21 as log data related to the operating state of the own device. When the control unit 20 of the in-vehicle update device 2 stores these failure / abnormality codes, it acquires data such as a CAN message or an Ethernet frame flowing in the in-vehicle LAN4 at that time, and stores the data as freeze frame data in the storage unit 21. Remember in. The control unit 20 of the vehicle-mounted update device 2 transmits an update program to the vehicle-mounted ECU 3 to be updated, and stores the processing history when the vehicle-mounted ECU 3 is updated (repro-processed) as log data of the update process in the storage unit 21. Remember. The control unit 20 of the in-vehicle update device 2 stores communication log data such as the amount of transmission / reception data per unit time, the amount of traffic, and the number of transmissions / receptions of each message type in each segment when performing relay control of communication between the in-vehicle ECU 3. It is stored in the part 21.

車載更新装置2の記憶部21に記憶された各種ログデータ等による退避データは、車載更新装置2の使用又は車両Cの走行等に対する重要度が設定されており、当該重要度に基づき、送信先(退避場所)が決定されている。重要度が低度の退避データは外部サーバS1に送信され、重要度が中度の退避データは非更新対象の車載ECU3に送信される。すなわち、外部サーバS1に送信される退避データは、非更新対象の車載ECU3に送信される退避データよりも、車載更新装置2又は車両Cにとって、重要度が低いデータとなる。このように車載更新装置2又は車両Cにとって重要度が比較的に高い退避データを、車両C内(自車内)に退避することにより、当該退避データを確実に保存することができる。 The evacuation data of various log data and the like stored in the storage unit 21 of the in-vehicle update device 2 is set to the importance for the use of the in-vehicle update device 2 or the running of the vehicle C, and the transmission destination is based on the importance. (Evacuation location) has been decided. The evacuation data of low importance is transmitted to the external server S1, and the evacuation data of medium importance is transmitted to the in-vehicle ECU 3 to be non-updated. That is, the saved data transmitted to the external server S1 is less important to the vehicle-mounted update device 2 or the vehicle C than the saved data transmitted to the vehicle-mounted ECU 3 to be non-updated. By saving the saved data, which is relatively important for the vehicle-mounted update device 2 or the vehicle C, into the vehicle C (inside the own vehicle) in this way, the saved data can be reliably saved.

車両Cの動作状態に関する各種ログデータであっても、例えば故障異常コード、セキュリティ情報等の車載更新装置2を使用するにあたり重要なデータは、退避不可のデータとして、外部サーバS1又は非更新対象に車載ECU3への送信を禁止するものであってもよい。 Even if it is various log data related to the operating state of the vehicle C, important data for using the in-vehicle update device 2 such as a failure abnormality code and security information is set as non-saveable data to the external server S1 or a non-update target. Transmission to the in-vehicle ECU 3 may be prohibited.

退避データは、車両Cの動作状態に関する各種ログデータであるとして説明したが、これに限定されない。車載更新装置2の制御部20は、自装置の記憶部21に記憶されている種々データにおいて、当該データの重要度に基づき、外部サーバS1又は非更新対象の車載ECU3のいずれかの退避場所(送信先の装置)へ、当該データを退避データとして送信し、退避するものであってもよい。 Although the saved data has been described as being various log data related to the operating state of the vehicle C, the evacuation data is not limited to this. The control unit 20 of the in-vehicle update device 2 has a storage location of either the external server S1 or the in-vehicle ECU 3 to be non-updated based on the importance of the various data stored in the storage unit 21 of the own device. The data may be transmitted as saved data to the destination device) and saved.

図4は、車載更新装置2による更新の一態様を例示する説明図(シーケンス図)である。図4において、車載更新装置2が、更新プログラムを外部サーバS1から取得する際、自装置の記憶部21に記憶されている退避データを、外部サーバS1又は非更新対象の車載ECU3に送信して、当該退避データを退避する処理に関し、外部サーバS1及び車載ECU3の処理を含むシーケンス図を用いて説明する。 FIG. 4 is an explanatory diagram (sequence diagram) illustrating one mode of updating by the in-vehicle updating device 2. In FIG. 4, when the vehicle-mounted update device 2 acquires the update program from the external server S1, the saved data stored in the storage unit 21 of the own device is transmitted to the external server S1 or the vehicle-mounted ECU 3 to be non-updated. The process of saving the saved data will be described with reference to a sequence diagram including the processes of the external server S1 and the in-vehicle ECU 3.

車載更新装置2は、更新情報(キャンペーン情報)を取得する(S1)。車載更新装置2は、例えば定常的、定期的に又は、車両Cを起動するIGスイッチがオンにされた場合、外部サーバS1にアクセスし、自車に搭載される車載ECU3の更新の要否に関する更新情報の有無を確認し、更新情報があれば当該更新情報を外部サーバS1から取得する。当該更新情報には、例えば、更新対象の車載ECU3の型番、プログラムのバージョン、プログラムを含むアーカイブファイルのファイル名及びサイズに関する情報が含まれる。当該更新情報には、車載更新装置2から外部サーバS1に送信することができる退避データの最大容量を含むものであってもよい。当該退避データの最大容量とは、車載更新装置2が退避データを保存場所として利用することができる外部サーバS1の記憶部S11の記憶領域のサイズ(クォータ)を意味する。 The in-vehicle update device 2 acquires update information (campaign information) (S1). The in-vehicle update device 2 accesses the external server S1, for example, constantly, periodically, or when the IG switch for activating the vehicle C is turned on, and relates to the necessity of updating the in-vehicle ECU 3 mounted on the own vehicle. The existence of the update information is confirmed, and if there is the update information, the update information is acquired from the external server S1. The update information includes, for example, information on the model number of the vehicle-mounted ECU 3 to be updated, the version of the program, the file name and size of the archive file including the program. The update information may include the maximum capacity of saved data that can be transmitted from the vehicle-mounted update device 2 to the external server S1. The maximum capacity of the saved data means the size (quota) of the storage area of the storage unit S11 of the external server S1 in which the vehicle-mounted update device 2 can use the saved data as a storage location.

車載更新装置2は、更新プログラムのデータ総容量を導出する(S2)。車載更新装置2は、取得した更新情報に基づき、更新プログラムのデータ総容量を導出する。更新プログラムが複数のファイルにより構成されている場合、更新プログラムのデータ総容量は、当該複数のファイルのサイズ(データ容量)の合計値であることは、言うまでもない。 The in-vehicle update device 2 derives the total data capacity of the update program (S2). The in-vehicle update device 2 derives the total data capacity of the update program based on the acquired update information. Needless to say, when the update program is composed of a plurality of files, the total data capacity of the update program is the total value of the sizes (data capacity) of the plurality of files.

車載更新装置2は、外部サーバS1に退避データを送信する(S3)。車載更新装置2は、記憶部21を参照し、外部サーバS1に送信して退避することができる重要度の退避データを特定し、当該特定した退避データを外部サーバS1に送信する。当該特定は、図3に示すような、退避データのデータ種別を示すテーブルを参照して行うものであってもよい。 The in-vehicle update device 2 transmits the saved data to the external server S1 (S3). The in-vehicle update device 2 refers to the storage unit 21, specifies the save data of importance that can be transmitted to the external server S1 and saves the data, and transmits the specified save data to the external server S1. The identification may be performed by referring to a table showing the data type of the saved data as shown in FIG.

車載更新装置2は、非更新対象の車載ECU3に退避データを送信する(S4)。車載更新装置2は、記憶部21に記憶してある車載構成情報を参照し、退避データの送信先となる非更新対象の車載ECU3を特定する。車載更新装置2は、例えば、2面持ちの車載ECU3を抽出し、かつロールバック処理が不要であり非動作面に記憶されている前バージョンのプログラムを削除することができる車載ECU3を、退避データの送信先となる非更新対象の車載ECU3として特定するものであってもよい。車載更新装置2は、退避データの送信先として、単一の非更新対象の車載ECU3を特定するものに限定されず、複数の非更新対象の車載ECU3(非更新対象の車載ECU3群)を特定するものであってもよい。 The vehicle-mounted update device 2 transmits the saved data to the vehicle-mounted ECU 3 to be non-updated (S4). The vehicle-mounted update device 2 refers to the vehicle-mounted configuration information stored in the storage unit 21 and identifies the vehicle-mounted ECU 3 to be non-updated, which is the transmission destination of the saved data. The in-vehicle update device 2 can, for example, extract the in-vehicle ECU 3 having two sides and delete the previous version of the program stored in the non-operating surface without the need for rollback processing. It may be specified as a non-update target in-vehicle ECU 3 as a transmission destination. The in-vehicle update device 2 is not limited to specifying a single non-update target in-vehicle ECU 3 as a transmission destination of the saved data, and specifies a plurality of non-update target in-vehicle ECUs 3 (non-update target in-vehicle ECU 3 group). It may be something to do.

車載更新装置2は、複数の車載ECU3を非更新対象の車載ECU3群として特定する場合、これら複数の非更新対象の車載ECU3夫々は、異なる車内通信部23に接続されていることが望ましい。退避データの送信先となる非更新対象の車載ECU3夫々を、異なる車内通信部23に接続することにより、車載ECU3夫々は別個のセグメントに接続されるものなる。従って、車載更新装置2は、異なる車内通信部23に接続される車載ECU3夫々へ、退避データを送信する処理を並行して行った場合であっても、各車載ECU3が接続されるセグメントのトラフィックが増加することを抑制し、効率的に退避データを各車載ECU3に送信することができる。 When the vehicle-mounted update device 2 specifies a plurality of vehicle-mounted ECUs 3 as a group of vehicle-mounted ECUs 3 to be non-updated, it is desirable that each of the plurality of vehicle-mounted ECUs 3 to be non-updated is connected to different in-vehicle communication units 23. By connecting the non-updated vehicle-mounted ECUs 3 to which the saved data is transmitted to different in-vehicle communication units 23, the vehicle-mounted ECUs 3 are connected to different segments. Therefore, even if the vehicle-mounted update device 2 performs the process of transmitting the evacuation data to the vehicle-mounted ECUs 3 connected to the different vehicle-mounted communication units 23 in parallel, the traffic of the segment to which each vehicle-mounted ECU 3 is connected is performed. Can be suppressed and the saved data can be efficiently transmitted to each in-vehicle ECU 3.

車載更新装置2は、記憶部21を参照し、非更新対象の車載ECU3に送信して退避することができる重要度の退避データを特定し、当該特定した退避データを非更新対象の車載ECU3に送信する。上述のごとく、非更新対象の車載ECU3に送信して退避することができる退避データは、外部サーバS1に送信して退避することができる退避データよりも、車載更新装置2又は車両Cにとって重要度が高いデータである。 The in-vehicle update device 2 refers to the storage unit 21, specifies the save data of importance that can be transmitted to the in-vehicle ECU 3 to be non-updated, and saves the specified save data to the in-vehicle ECU 3 to be non-updated. Send. As described above, the save data that can be transmitted to the non-update target vehicle-mounted ECU 3 and saved is more important to the vehicle-mounted update device 2 or the vehicle C than the save data that can be transmitted to the external server S1 and saved. Is high data.

外部サーバS1への送信及び非更新対象の車載ECU3への送信は、順次に行われる場合に限定されず、車載更新装置2は、外部サーバS1及び非更新対象の車載ECU3に対し、退避データ夫々を並行して送信するものであってもよい。 The transmission to the external server S1 and the transmission to the non-update target in-vehicle ECU 3 are not limited to the case where the transmission is sequentially performed, and the in-vehicle update device 2 sends back data to the external server S1 and the non-update target in-vehicle ECU 3, respectively. May be transmitted in parallel.

外部サーバS1は、自装置の記憶部S11に退避データを記憶する(S5)。非更新対象の車載ECU3は、自装置の記憶部31(非動作面の記憶領域)に退避データを記憶する(S6)。外部サーバS1及び非更新対象の車載ECU3が、車載更新装置2から送信された退避データを記憶することにより、これら退避データの退避が完了するものとなる。車載更新装置2から送信された全ての退避データの記憶を完了した外部サーバS1及び非更新対象の車載ECU3は、送信された退避データの退避が完了した旨に関する情報を、車載更新装置2に出力(送信、通知)するものであってもよい。 The external server S1 stores the saved data in the storage unit S11 of the own device (S5). The vehicle-mounted ECU 3 to be non-updated stores the saved data in the storage unit 31 (storage area of the non-operating surface) of the own device (S6). When the external server S1 and the in-vehicle ECU 3 to be non-updated store the evacuation data transmitted from the in-vehicle update device 2, the evacuation of these evacuation data is completed. The external server S1 that has completed the storage of all the saved data transmitted from the in-vehicle update device 2 and the in-vehicle ECU 3 to be non-updated output information regarding the completion of the saved saved data transmitted to the in-vehicle update device 2. It may be (send, notify).

車載更新装置2は、外部サーバS1又は非更新対象の車載ECU3に送信した退避データを削除する(S7)。外部サーバS1又は、外部サーバS1及び非更新対象の車載ECU3への退避データの送信を完了した車載更新装置2は、当該送信を完了した退避データを削除する。当該退避データを削除することにより、車載更新装置2の記憶部21における空き容量を増加させることができる。 The vehicle-mounted update device 2 deletes the saved data transmitted to the external server S1 or the vehicle-mounted ECU 3 to be non-updated (S7). The vehicle-mounted update device 2 that has completed the transmission of the saved data to the external server S1 or the external server S1 and the vehicle-mounted ECU 3 to be non-updated deletes the saved data that has completed the transmission. By deleting the saved data, the free capacity in the storage unit 21 of the in-vehicle update device 2 can be increased.

車載更新装置2は、更新プログラムを取得し(S8)、送信した退避データが記憶されていた記憶領域に記憶する(S9)。車載更新装置2は、退避データを削除することにより確保した空き領域(記憶領域)又は、退避データを削除することにより確保した空き領域及び退避データを削除する前の空き領域に、外部サーバS1から取得(受信)した更新プログラムを記憶する。更新プログラムを記憶する記憶領域は、退避データを削除することにより確保した空き領域としたが、これに限定されない。車載更新装置2は、退避データを削除することなく、退避データが記憶されている記憶領域に、更新プログラムを上書きして記憶するものであってもよい。 The in-vehicle update device 2 acquires the update program (S8) and stores the transmitted saved data in the storage area (S9). The in-vehicle update device 2 sends the free area (storage area) secured by deleting the saved data, the free area secured by deleting the saved data, and the free area before deleting the saved data from the external server S1. Memorize the acquired (received) update program. The storage area for storing the update program is a free area secured by deleting the saved data, but the storage area is not limited to this. The in-vehicle update device 2 may overwrite and store the update program in the storage area in which the save data is stored without deleting the save data.

車載更新装置2は、更新プログラムを更新対象の車載ECU3に送信する(S10)。車載更新装置2は、自装置の記憶部21に記憶されている更新プログラムを更新対象の車載ECU3に送信し、以降、当該更新対象の車載ECU3に対し、更新処理を開始するための更新処理開始信号を出力するものであってもよい。 The vehicle-mounted update device 2 transmits the update program to the vehicle-mounted ECU 3 to be updated (S10). The in-vehicle update device 2 transmits the update program stored in the storage unit 21 of the own device to the in-vehicle ECU 3 to be updated, and thereafter, starts the update process for starting the update process for the in-vehicle ECU 3 to be updated. It may output a signal.

更新対象の車載ECU3は、更新プログラムを記憶部31の非動作面に記憶し(S11)、所定のタイミングで更新プログラムへの切替を実施する。更新対象の車載ECU3は、更新プログラムへの切替を実施し、更新処理(リプロ処理)が完了した場合、更新処理の完了に関する情報を車載更新装置2に出力(送信、通知)するものであってもよい。 The in-vehicle ECU 3 to be updated stores the update program in the non-operating surface of the storage unit 31 (S11), and switches to the update program at a predetermined timing. The in-vehicle ECU 3 to be updated executes switching to the update program, and when the update process (repro process) is completed, outputs (transmits, notifies) information regarding the completion of the update process to the in-vehicle update device 2. May be good.

車載更新装置2は、記憶部21に記憶した更新プログラムを削除する(S12)。車載更新装置2は、送信が完了した後、又は更新対象の車載ECU3から更新処理の完了に関する情報を取得(受信)した場合、更新プログラムを削除する。 The in-vehicle update device 2 deletes the update program stored in the storage unit 21 (S12). The in-vehicle update device 2 deletes the update program after the transmission is completed or when the in-vehicle ECU 3 to be updated acquires (receives) information regarding the completion of the update process.

車載更新装置2は、外部サーバS1及び更新対象の車載ECU3から退避したデータを取得する(S13,14)。車載更新装置2は、更新プログラムの削除により確保した記憶部21の空き領域に、退避先となった外部サーバS1、又は外部サーバS1及び非更新対象の車載ECU3から取得した退避データを記憶する。 The vehicle-mounted update device 2 acquires data saved from the external server S1 and the vehicle-mounted ECU 3 to be updated (S13, 14). The in-vehicle update device 2 stores the evacuation data acquired from the external server S1 or the external server S1 as the evacuation destination and the in-vehicle ECU 3 to be non-updated in the free area of the storage unit 21 secured by deleting the update program.

図5は、車載更新装置2の制御部20の処理を例示するフローチャートである。車載更新装置2の制御部20は、車両Cが起動状態(IGスイッチがオン)又は、停止状態(IGスイッチがオフ)であっても車載更新装置2の蓄電装置(図示せず)の充電量が所定値以上である場合、車外通信装置1を介して定常的又は定期的にプログラム提供装置と通信し、以下の処理を行う。 FIG. 5 is a flowchart illustrating the processing of the control unit 20 of the vehicle-mounted update device 2. The control unit 20 of the vehicle-mounted update device 2 charges the power storage device (not shown) of the vehicle-mounted update device 2 even when the vehicle C is in the activated state (IG switch is on) or stopped (IG switch is off). When is greater than or equal to a predetermined value, the program is steadily or periodically communicated with the program providing device via the external communication device 1 to perform the following processing.

車載更新装置2の制御部20は、更新情報を取得する(S101)。制御部20は、車外通信装置1を介して外部サーバS1と定期的に通信して更新情報の有無を確認し、更新情報があれば、外部サーバS1から取得する。 The control unit 20 of the in-vehicle update device 2 acquires the update information (S101). The control unit 20 periodically communicates with the external server S1 via the external communication device 1 to check for the presence or absence of updated information, and if there is updated information, acquires the updated information from the external server S1.

車載更新装置2の制御部20は、更新プログラムのデータ総容量を導出する(S102)。制御部20は、例えば、取得した更新情報に含まれる更新プログラムのデータ総容量を抽出し、当該データ総容量を導出する。 The control unit 20 of the in-vehicle update device 2 derives the total data capacity of the update program (S102). The control unit 20 extracts, for example, the total data capacity of the update program included in the acquired update information, and derives the total data capacity.

車載更新装置2の制御部20は、データ総容量は、記憶部21の空き容量よりも小さいか否かを判定する(S103)。制御部20は、自装置の記憶部21の空き容量を確認し、導出したデータ総容量と、空き容量とを比較し、データ総容量は、記憶部21の空き容量よりも小さいか否かを判定する。 The control unit 20 of the vehicle-mounted update device 2 determines whether or not the total data capacity is smaller than the free capacity of the storage unit 21 (S103). The control unit 20 confirms the free space of the storage unit 21 of the own device, compares the derived total data capacity with the free capacity, and determines whether the total data capacity is smaller than the free capacity of the storage unit 21. judge.

データ総容量が記憶部21の空き容量よりも小さい場合(S103:YES)、車載更新装置2の制御部20は、更新プログラムを取得し、記憶する(S104)。取得する更新プログラムのデータ総容量が記憶部21の空き容量よりも小さい場合、退避データを削除することなく、制御部20は、当該更新プログラムを記憶(保存)することができる。 When the total data capacity is smaller than the free space of the storage unit 21 (S103: YES), the control unit 20 of the vehicle-mounted update device 2 acquires and stores the update program (S104). When the total data capacity of the update program to be acquired is smaller than the free capacity of the storage unit 21, the control unit 20 can store (save) the update program without deleting the saved data.

車載更新装置2の制御部20は、更新プログラムを更新対象の車載ECU3に送信する
(S105)。更新プログラムを取得(受信)した更新対象の車載ECU3は、所定のタイミングで当該更新プログラムを適用し、更新処理を実行する。
The control unit 20 of the vehicle-mounted update device 2 transmits the update program to the vehicle-mounted ECU 3 to be updated (S105). The vehicle-mounted ECU 3 to be updated, which has acquired (received) the update program, applies the update program at a predetermined timing and executes the update process.

データ総容量が記憶部21の空き容量よりも小さくない場合(S103:NO)、すなわちデータ総容量が記憶部21の空き容量よりも大きい場合、車載更新装置2の制御部20は、データ総容量は記憶部21の空き容量及び外部サーバS1に退避できる容量の合計値よりも小さいか否かを判定する(S106)。制御部20は、例えば、取得した更新情報に含まれる外部サーバS1における使用可能な記憶領域の容量(外部サーバS1に送信することができる退避データの最大容量)を抽出する。又は、制御部20は、外部サーバS1と通信し、外部サーバS1における使用可能な記憶領域の容量を取得するものであってもよい。制御部20は、当該外部サーバS1における使用可能な記憶領域の容量を、外部サーバS1に退避できる容量として、記憶部21の空き容量及び外部サーバS1に退避できる容量の合計値を算出し、データ総容量と比較する。 When the total data capacity is not smaller than the free capacity of the storage unit 21 (S103: NO), that is, when the total data capacity is larger than the free capacity of the storage unit 21, the control unit 20 of the vehicle-mounted update device 2 has the total data capacity. Determines whether or not it is smaller than the total value of the free capacity of the storage unit 21 and the capacity that can be saved in the external server S1 (S106). The control unit 20 extracts, for example, the capacity of the usable storage area in the external server S1 (the maximum capacity of the saved data that can be transmitted to the external server S1) included in the acquired update information. Alternatively, the control unit 20 may communicate with the external server S1 to acquire the capacity of the usable storage area in the external server S1. The control unit 20 calculates the total value of the free capacity of the storage unit 21 and the capacity that can be saved in the external server S1 as the capacity of the usable storage area in the external server S1 as the capacity that can be saved in the external server S1. Compare with total capacity.

データ総容量は記憶部21の空き容量及び外部サーバS1に退避できる容量の合計値よりも小さい場合(S106:YES)、車載更新装置2の制御部20は、退避データを外部サーバS1に送信し、削除する(S107)。更新プログラムのデータ総容量が、記憶部21の空き容量及び外部サーバS1に退避できる容量の合計値よりも小さい場合、非更新対象の車載ECU3に退避データを送信することは不要である。従って、制御部20は、退避データを外部サーバS1に送信し、送信が完了した退避データを削除する。 When the total data capacity is smaller than the total value of the free capacity of the storage unit 21 and the capacity that can be saved in the external server S1 (S106: YES), the control unit 20 of the vehicle-mounted update device 2 transmits the saved data to the external server S1. , Delete (S107). When the total data capacity of the update program is smaller than the total value of the free capacity of the storage unit 21 and the capacity that can be saved in the external server S1, it is not necessary to transmit the saved data to the in-vehicle ECU 3 to be non-updated. Therefore, the control unit 20 transmits the saved data to the external server S1 and deletes the saved data for which the transmission has been completed.

データ総容量が記憶部21の空き容量及び外部サーバS1に退避できる容量の合計値よりも小さくない場合(S106:NO)、車載更新装置2の制御部20は、データ総容量は、記憶部21の空き容量、外部サーバS1及び非更新対象の車載ECU3への退避量の合計値よりも小さいか否かを判定する(S1061)。データ総容量が記憶部21の空き容量及び外部サーバS1に退避できる容量の合計値よりも小さくない場合、すなわちデータ総容量が記憶部21の空き容量及び外部サーバS1に退避できる容量の合計値よりも大きい場合、外部サーバS1に送信した退避データを削除しても、更新プログラムの全データを記憶するための記憶領域を確保できない。そこで、制御部20は、例えば、記憶部21に記憶してある車載構成情報を参照し、退避データの送信先として利用できる2面持ちの非更新対象の車載ECU3を特定する。制御部20は、単数又は複数の非更新対象の車載ECU3を特定してもよい。制御部20は、車載構成情報を参照し、又は特定した非更新対象の車載ECU3夫々と通信することにより、非更新対象の車載ECU3夫々の非動作面の記憶部31の記憶容量を取得する。制御部20は、取得した記憶容量夫々の合計値に基づき、非更新対象の車載ECU3への退避量の合計値を算出し、データ総容量と比較する。 When the total data capacity is not smaller than the total value of the free capacity of the storage unit 21 and the capacity that can be saved in the external server S1 (S106: NO), the control unit 20 of the in-vehicle update device 2 determines that the total data capacity is the storage unit 21. It is determined whether or not it is smaller than the total value of the free space of the external server S1 and the amount of evacuation to the in-vehicle ECU 3 to be non-updated (S1061). When the total data capacity is not smaller than the total value of the free capacity of the storage unit 21 and the capacity that can be saved in the external server S1, that is, the total data capacity is equal to the total value of the free capacity of the storage unit 21 and the capacity that can be saved in the external server S1. If is also large, even if the saved data transmitted to the external server S1 is deleted, a storage area for storing all the data of the update program cannot be secured. Therefore, the control unit 20 refers to, for example, the vehicle-mounted configuration information stored in the storage unit 21 to specify a two-sided non-updated vehicle-mounted ECU 3 that can be used as a transmission destination of the saved data. The control unit 20 may specify one or more in-vehicle ECUs 3 to be non-updated. The control unit 20 acquires the storage capacity of the non-operating surface storage unit 31 of each of the non-updated vehicle-mounted ECUs 3 by referring to the vehicle-mounted configuration information or communicating with the specified non-updated vehicle-mounted ECUs 3. The control unit 20 calculates the total value of the amount of evacuation to the in-vehicle ECU 3 to be non-updated based on the total value of each acquired storage capacity, and compares it with the total data capacity.

データ総容量は、記憶部21の空き容量、外部サーバS1及び非更新対象の車載ECU3への退避量の合計値よりも小さい場合(S1061:YES)、車載更新装置2の制御部20は、退避データを外部サーバS1及び非更新対象の車載ECU3に送信し、削除する(S1062)。更新プログラムのデータ総容量が、記憶部21の空き容量、外部サーバS1及び非更新対象の車載ECU3への退避量の合計値よりも小さい場合、外部サーバS1及び非更新対象の車載ECU3へ退避データを退避(送信し、削除)することにより、更新プログラムの全データを記憶するための記憶領域を確保できる。 When the total data capacity is smaller than the total value of the free space of the storage unit 21 and the amount of data saved to the external server S1 and the vehicle-mounted ECU 3 to be non-updated (S1061: YES), the control unit 20 of the vehicle-mounted update device 2 saves data. The data is transmitted to the external server S1 and the in-vehicle ECU 3 to be non-updated, and deleted (S1062). When the total data capacity of the update program is smaller than the total value of the free space of the storage unit 21 and the amount of data saved to the external server S1 and the non-updated in-vehicle ECU 3, the saved data to the external server S1 and the non-updated in-vehicle ECU 3 By saving (transmitting and deleting) the data, a storage area for storing all the data of the update program can be secured.

データ総容量が、記憶部21の空き容量、外部サーバS1及び非更新対象の車載ECU3への退避量の合計値よりも小さくない場合(S1061:NO)、車載更新装置2の制御部20は、更新プログラムを取得し更新対象の車載ECU3に送信する一連の処理を終了(中止)する。更新プログラムのデータ総容量が、記憶部21の空き容量、外部サーバS1及び非更新対象の車載ECU3への退避量の合計値よりも小さくない場合、すなわちデータ総容量が当該合計値よりも大きい場合、退避データの記憶領域を用いても、更新プログラムの全データを記憶するための記憶領域を確保できない。従って、制御部20は、更新プログラムを取得及び当該更新プログラムを更新対象の車載ECU3に送信する一連の処理を中止する。制御部20は、当該一連の処理を中止した旨に関する情報を記憶部21に記憶し、外部サーバS1、表示装置5又は双方に出力するものであってもよい。更新プログラムの取得等に関する一連の処理を中止した旨に関する情報を、車両Cの操作者又は外部サーバS1の管理者に報知することができる。 When the total data capacity is not smaller than the total value of the free space of the storage unit 21 and the amount of evacuation to the external server S1 and the in-vehicle ECU 3 to be non-updated (S1061: NO), the control unit 20 of the in-vehicle update device 2 determines. The series of processes for acquiring the update program and transmitting it to the in-vehicle ECU 3 to be updated is terminated (cancelled). When the total data capacity of the update program is not smaller than the total value of the free space of the storage unit 21, the amount saved to the external server S1 and the in-vehicle ECU 3 to be non-updated, that is, when the total data capacity is larger than the total value. , Even if the storage area of the saved data is used, the storage area for storing all the data of the update program cannot be secured. Therefore, the control unit 20 cancels a series of processes for acquiring the update program and transmitting the update program to the vehicle-mounted ECU 3 to be updated. The control unit 20 may store information regarding the cancellation of the series of processes in the storage unit 21 and output the information to the external server S1, the display device 5, or both. Information regarding the cancellation of a series of processes related to the acquisition of the update program and the like can be notified to the operator of the vehicle C or the administrator of the external server S1.

車載更新装置2の制御部20は、S107又はS1062の処理の実行後、S104の処理と同様に更新プログラムを取得し、記憶する(S108)。更新プログラムが記憶される記憶部21の領域は、送信した退避データが記憶されていた領域又は、退避データを送信する前の空き領域(S103の処理における空き容量に対応する空き領域)及び送信した退避データが記憶されていた領域となる。すなわち、制御部20は、更新プログラムの少なくとも一部又は全部を、送信した退避データが記憶されていた領域に記憶する。 After executing the process of S107 or S1062, the control unit 20 of the vehicle-mounted update device 2 acquires and stores the update program in the same manner as the process of S104 (S108). The area of the storage unit 21 in which the update program is stored is the area in which the transmitted backup data is stored, the free area before the backup data is transmitted (the free area corresponding to the free capacity in the processing of S103), and the transmission. This is the area where the saved data was stored. That is, the control unit 20 stores at least a part or all of the update program in the area where the transmitted saved data is stored.

車載更新装置2の制御部20は、S105の処理と同様に更新プログラムを更新対象の車載ECU3に送信する(S109)。 The control unit 20 of the vehicle-mounted update device 2 transmits the update program to the vehicle-mounted ECU 3 to be updated in the same manner as the process of S105 (S109).

車載更新装置2の制御部20は、更新プログラムを削除する(S110)。車載更新装置2の制御部20は、送信した退避データを取得する(S111)。制御部20は、更新プログラムを削除することにより確保した記憶部21の空き領域に、外部サーバS1又は、外部サーバS1及び非更新対象の車載ECU3に送信(退避)した退避データを記憶することができる。 The control unit 20 of the in-vehicle update device 2 deletes the update program (S110). The control unit 20 of the in-vehicle update device 2 acquires the transmitted save data (S111). The control unit 20 can store the saved data transmitted (saved) to the external server S1, the external server S1 and the vehicle-mounted ECU 3 to be non-updated in the free area of the storage unit 21 secured by deleting the update program. it can.

車載更新装置2の制御部20は、S105又はS111の処理を行った後、本フローチャートの処理を終了する。又は、制御部20は、S105又はS111の処理を行った後、再度S101の処理を実行すべくループ処理を行うものであってもよい。 The control unit 20 of the in-vehicle update device 2 finishes the process of this flowchart after performing the process of S105 or S111. Alternatively, the control unit 20 may perform the loop processing in order to execute the processing of S101 again after performing the processing of S105 or S111.

車載更新装置2の制御部20は、本フローチャートの処理における判定(S103、S106、S1061)に関する判定結果を記憶部21に記憶し、表示装置5又は外部サーバS1に出力し、これら情報を車両Cの操作者又は外部サーバS1の管理者に報知するものであってもよい。 The control unit 20 of the vehicle-mounted update device 2 stores the determination result regarding the determination (S103, S106, S1061) in the processing of this flowchart in the storage unit 21, outputs the determination result to the display device 5 or the external server S1, and outputs the information to the vehicle C. The operator or the administrator of the external server S1 may be notified.

本実施形態において、車載更新装置2の制御部20は、一連の各処理を行うものとして記載したが、これに限定されない。車載更新装置2の制御部20は、例えば車載ECU3又は外部サーバS1等の車載更新装置2以外の装置との間でプロセス間通信又はリダイレクト処理を行い、これら装置と協働して当該各処理を行うものであってもよい。又は、車載更新装置2の制御部20は、自装置に含まれるFPGA又はASIC等の回路により構成されるハードウェア処理部と協働して当該各処理を行うものであってもよい。 In the present embodiment, the control unit 20 of the in-vehicle update device 2 is described as performing each series of processes, but the present invention is not limited to this. The control unit 20 of the in-vehicle update device 2 performs interprocess communication or redirect processing with a device other than the in-vehicle update device 2 such as the in-vehicle ECU 3 or the external server S1, and performs each process in cooperation with these devices. It may be what you do. Alternatively, the control unit 20 of the in-vehicle update device 2 may perform each of the processes in cooperation with a hardware processing unit composed of circuits such as FPGA or ASIC included in the own device.

車載更新装置2は、外部サーバS1から更新プログラムを取得する際、記憶部21の空き領域の容量が、更新プログラムのデータ総容量よりも小さい場合であっても、記憶部21に記憶されている退避データを外部サーバS1又は非更新対象の車載ECU3に送信して退避することにより、更新プログラムを記憶することができる。従って、車載更新装置2に含まれる記憶部21の記憶容量が増大することを抑制し、記憶部21を構成するための部品コストを低減することができる。 When the in-vehicle update device 2 acquires the update program from the external server S1, the in-vehicle update device 2 is stored in the storage unit 21 even when the capacity of the free area of the storage unit 21 is smaller than the total data capacity of the update program. The update program can be stored by transmitting the save data to the external server S1 or the in-vehicle ECU 3 to be non-updated and saving the data. Therefore, it is possible to suppress an increase in the storage capacity of the storage unit 21 included in the vehicle-mounted update device 2 and reduce the cost of parts for forming the storage unit 21.

車載更新装置2は、退避データを外部サーバS1又は非更新対象の車載ECU3に送信して退避する際、退避データの重要度に応じて、送信先を決定する。外部サーバS1に送信する退避データの重要度は、非更新対象の車載ECU3に送信する退避データの重要度よりも低いため、重要度が比較的に高い退避データは、自車両C内となる非更新対象の車載ECU3に送信されるものとなり、確実な保存を図ることができる。 When the vehicle-mounted update device 2 transmits the saved data to the external server S1 or the vehicle-mounted ECU 3 to be non-updated and saves the data, the vehicle-mounted update device 2 determines the transmission destination according to the importance of the saved data. Since the importance of the saved data transmitted to the external server S1 is lower than the importance of the saved data transmitted to the in-vehicle ECU 3 to be non-updated, the saved data having a relatively high importance is not in the own vehicle C. It will be transmitted to the in-vehicle ECU 3 to be updated, and reliable storage can be achieved.

車載更新装置2の記憶部21の空き容量を確保するにあたり、まずは優先度が比較的に低い退避データを外部サーバS1に送信するため、重要度が比較的に高い退避データを不必要に退避することを抑制することができる。 In order to secure the free space of the storage unit 21 of the in-vehicle update device 2, first, since the save data having a relatively low priority is transmitted to the external server S1, the save data having a relatively high importance is unnecessarily saved. Can be suppressed.

車載更新装置2は、退避データの送信先として複数の非更新対象の車載ECU3と特定し、当該複数の非更新対象の車載ECU3夫々は、異なる車内通信部23に接続され、異なるセグメントに接続される。従って、車載更新装置2が、これら複数の非更新対象の車載ECU3夫々に同時に退避データを送信する、すなわちこれら車載ECU3夫々へ送信処理を並行して行う場合であっても、特定のセグメントのトラフィックが増加することを抑制し、当該送信処理を短時間で行うことができる。異なる車内通信部23に接続された車載ECU3夫々へ送信処理を並行して行うことにより、これら通信部及びセグメントにて決定される個々の帯域幅(送信速度)の合計値を、車載更新装置2から車載ECU3夫々へ送信する際の実質的な帯域幅として使用することができる。 The in-vehicle update device 2 identifies a plurality of non-update target in-vehicle ECUs 3 as transmission destinations of the saved data, and the plurality of non-update target in-vehicle ECUs 3 are connected to different in-vehicle communication units 23 and connected to different segments. To. Therefore, even when the vehicle-mounted update device 2 simultaneously transmits the save data to each of the plurality of non-updated vehicle-mounted ECUs 3, that is, the transmission process is performed in parallel to each of the vehicle-mounted ECUs 3, the traffic of a specific segment Can be suppressed and the transmission process can be performed in a short time. By performing transmission processing in parallel to each of the in-vehicle ECUs 3 connected to different in-vehicle communication units 23, the total value of the individual bandwidths (transmission speeds) determined by these communication units and segments is calculated by the in-vehicle update device 2 Can be used as a substantial bandwidth when transmitting from to each of the in-vehicle ECUs 3.

(実施形態2)
図6は、実施形態2に係る車載更新装置2の制御部20の処理を例示するフローチャートである。実施形態2に係る車載更新装置2の制御部20は、外部サーバS1から更新プログラムの取得中に退避データを外部サーバS1に送信し、現時点における記憶部21の空き容量が所定値以下となった場合、外部サーバS1に送信する退避データ以外の退避データを非更新対象の車載制御装置に送信する点で実施形態1と異なる。
(Embodiment 2)
FIG. 6 is a flowchart illustrating the processing of the control unit 20 of the vehicle-mounted update device 2 according to the second embodiment. The control unit 20 of the vehicle-mounted update device 2 according to the second embodiment transmits the saved data from the external server S1 to the external server S1 while acquiring the update program, and the free space of the storage unit 21 at the present time becomes a predetermined value or less. This case is different from the first embodiment in that the saved data other than the saved data to be transmitted to the external server S1 is transmitted to the in-vehicle control device to be non-updated.

実施形態2の車載更新装置2の制御部20は、実施形態1の車載更新装置2の制御部20と同様に車両Cが起動状態(IGスイッチがオン)又は、停止状態(IGスイッチがオフ)であっても車載更新装置2の蓄電装置(図示せず)の充電量が所定値以上である場合、車外通信装置1を介して定常的又は定期的にプログラム提供装置と通信し、以下の処理を行う。 In the control unit 20 of the vehicle-mounted update device 2 of the second embodiment, the vehicle C is in the activated state (IG switch is on) or stopped (IG switch is off) as in the control unit 20 of the vehicle-mounted update device 2 of the first embodiment. Even so, when the charge amount of the power storage device (not shown) of the in-vehicle update device 2 is equal to or higher than a predetermined value, the program providing device is constantly or periodically communicated via the external communication device 1 to perform the following processing. I do.

車載更新装置2の制御部20は、実施形態1の処理(S101、S102、S103)と同様に、S201、S202及びS203の処理を行う。 The control unit 20 of the vehicle-mounted update device 2 performs the processes of S201, S202, and S203 in the same manner as the processes of the first embodiment (S101, S102, S103).

データ総容量が記憶部21の空き容量よりも小さい場合(S203:YES)、車載更新装置2の制御部20は、実施形態1の処理(S104,S105)と同様に、車載更新装置2の制御部20は、更新プログラムを取得及び記憶し(S204)、更新プログラムを更新対象の車載ECU3に送信する(S205)。 When the total data capacity is smaller than the free capacity of the storage unit 21 (S203: YES), the control unit 20 of the vehicle-mounted update device 2 controls the vehicle-mounted update device 2 as in the process of the first embodiment (S104, S105). The unit 20 acquires and stores the update program (S204), and transmits the update program to the vehicle-mounted ECU 3 to be updated (S205).

データ総容量が記憶部21の空き容量よりも小さくない場合(S203:NO)、車載更新装置2の制御部20は、更新プログラムを取得し、記憶する(S206)。制御部20は、実施形態1の処理(S108)と同様に、S206の処理を行う。更に、車載更新装置2の制御部20は、退避データをサーバに送信し、削除する(S207)。制御部20は、実施形態1の処理(S107)と同様に、S207の処理を行う。更に、車載更新装置2の制御部20は、更新プログラムの取得中における現時点での記憶部21の空き容量は、所定値以下か否かの判定を行う(S208)。車載更新装置2の制御部20は、データ総容量が記憶部21の空き容量よりも小さくない場合、すなわちデータ総容量が記憶部21の空き容量よりも大きい場合、S206、S207及びS208の処理を並行して行う。 When the total data capacity is not smaller than the free capacity of the storage unit 21 (S203: NO), the control unit 20 of the vehicle-mounted update device 2 acquires and stores the update program (S206). The control unit 20 performs the process of S206 in the same manner as the process of the first embodiment (S108). Further, the control unit 20 of the vehicle-mounted update device 2 transmits the saved data to the server and deletes it (S207). The control unit 20 performs the process of S207 in the same manner as the process of the first embodiment (S107). Further, the control unit 20 of the vehicle-mounted update device 2 determines whether or not the free space of the storage unit 21 at the present time during the acquisition of the update program is equal to or less than a predetermined value (S208). The control unit 20 of the vehicle-mounted update device 2 performs processing of S206, S207, and S208 when the total data capacity is not smaller than the free space of the storage unit 21, that is, when the total data capacity is larger than the free space of the storage unit 21. Do it in parallel.

制御部20は、これらS206、S207及びS208の処理を並行して行うにあたり、例えば、メインプロセスからサブプロセスを2つ発生させ、これら3つのプロセスにおいてプロセス間通信を行うことにより、処理の同期を図るものであってもよい。制御部20が複数のCPU又はコアにより構成されるマルチCPU又はマルチコアである場合、制御部20は、これら3つを別個のCPU又はコアで実行させるものであってもよい。 When the control unit 20 performs the processes of S206, S207, and S208 in parallel, for example, two sub-processes are generated from the main process, and interprocess communication is performed in these three processes to synchronize the processes. It may be a plan. When the control unit 20 is a multi-CPU or multi-core composed of a plurality of CPUs or cores, the control unit 20 may execute these three by separate CPUs or cores.

外部サーバS1からの更新プログラムの取得、すなわち外部サーバS1からの更新プログラムの送信(転送、ダウンロード)は、当該更新プログラムのファイルが所定のサイズに分割されたブロック単位で行われる。従って、更新プログラムの取得の処理が開始された後、時刻の経過に伴って、取得したブロックの数は増加し、これらブロック夫々のデータサイズの合計値、すなわち取得途中の更新プログラムのデータ量は増加し、記憶部21の空き領域が減少する。 The acquisition of the update program from the external server S1, that is, the transmission (transfer, download) of the update program from the external server S1 is performed in block units in which the file of the update program is divided into a predetermined size. Therefore, after the process of acquiring the update program is started, the number of acquired blocks increases with the passage of time, and the total value of the data sizes of each of these blocks, that is, the amount of data of the update program being acquired is The number increases, and the free area of the storage unit 21 decreases.

外部サーバS1に送信する退避データは、個々のログデータを記憶する際に生成された複数のファイルから構成されている。車載更新装置2の制御部20は、退避データを構成する複数のファイル夫々を、順次に外部サーバS1に送信し、送信が完了したファイルを順次に削除する。従って、退避データの外部サーバS1への送信が開始された後、時刻の経過に伴って、送信が完了したファイルを順次に削除することにより、記憶部21の空き領域が増加する。 The saved data transmitted to the external server S1 is composed of a plurality of files generated when storing individual log data. The control unit 20 of the in-vehicle update device 2 sequentially transmits each of the plurality of files constituting the saved data to the external server S1, and sequentially deletes the transmitted files. Therefore, after the transmission of the saved data to the external server S1 is started, the free area of the storage unit 21 is increased by sequentially deleting the files for which the transmission has been completed with the passage of time.

車載更新装置2の制御部20は、更新プログラムの取得及び退避データの送信を並行処理することにより、更新プログラムの取得による記憶部21の空き領域が減少しても、送信が完了した退避データのファイルを削除することによって、更新プログラムを記憶するための記憶領域を確保することができる。しかしながら、外部サーバS1における使用可能な記憶領域の容量に制限があり、又は外部サーバS1に送信できる重要度が比較的に低い退避データの総容量が、更新プログラムの総容量よりも小さい場合など、外部サーバS1への退避だけでは、更新プログラムを記憶するための記憶領域を確保することができない場合がある。そこで、車載更新装置2の制御部20は、自装置の記憶部21における現時点の空き容量を確認する処理を、更新プログラムの取得及び退避データの送信の処理に並行して継続的に実行する。すなわち、制御部20は、更新プログラムの取得及び退避データの送信の処理の実行中において、記憶部21の空き容量を監視する処理を行う。 The control unit 20 of the in-vehicle update device 2 processes the acquisition of the update program and the transmission of the saved data in parallel, so that even if the free area of the storage unit 21 due to the acquisition of the update program is reduced, the saved data whose transmission is completed By deleting the file, a storage area for storing the update program can be secured. However, when the capacity of the usable storage area in the external server S1 is limited, or the total capacity of the saved data that can be transmitted to the external server S1 is relatively low in importance, the total capacity of the saved data is smaller than the total capacity of the update program. It may not be possible to secure a storage area for storing the update program only by saving to the external server S1. Therefore, the control unit 20 of the in-vehicle update device 2 continuously executes the process of confirming the current free space in the storage unit 21 of the own device in parallel with the process of acquiring the update program and transmitting the saved data. That is, the control unit 20 performs a process of monitoring the free space of the storage unit 21 during the process of acquiring the update program and transmitting the saved data.

車載更新装置2の制御部20は、記憶部21の空き容量を継続的に監視し、現時点の記憶部21の空き容量が所定値以下でない場合(S208:NO)、再度S208の処理を実行することにより、記憶部21の空き容量を監視及び所定値以下となったかの判定する処理を継続する。 The control unit 20 of the vehicle-mounted update device 2 continuously monitors the free space of the storage unit 21, and if the free space of the storage unit 21 at the present time is not equal to or less than a predetermined value (S208: NO), the process of S208 is executed again. As a result, the process of monitoring the free space of the storage unit 21 and determining whether or not the value is equal to or less than the predetermined value is continued.

車載更新装置2の制御部20は、記憶部21の空き容量を継続的に監視し、現時点の記憶部21の空き容量が所定値以下となった場合(S208:YES)、制御部20は、実施形態1の処理(S1062)と同様に退避データを非更新対象の車載ECU3に送信し、送信が完了した退避データを削除する(S209)。所定値とは、例えば車載更新装置2の記憶部21の記憶容量に対する割合で決定され、当該記憶容量の10%として決定することができ、当該所定値は、車載更新装置2の記憶部21に記憶されている。又は、制御部20は、当該所定値を例えば100Mbyteとして、記憶部21に記憶してもよい。 The control unit 20 of the in-vehicle update device 2 continuously monitors the free space of the storage unit 21, and when the free space of the storage unit 21 at the present time becomes equal to or less than a predetermined value (S208: YES), the control unit 20 determines. Similar to the process of the first embodiment (S1062), the saved data is transmitted to the vehicle-mounted ECU 3 to be non-updated, and the saved data for which the transmission is completed is deleted (S209). The predetermined value is determined, for example, as a ratio to the storage capacity of the storage unit 21 of the vehicle-mounted update device 2, and can be determined as 10% of the storage capacity. The predetermined value is determined by the storage unit 21 of the vehicle-mounted update device 2. It is remembered. Alternatively, the control unit 20 may store the predetermined value in the storage unit 21 as, for example, 100 Mbyte.

車載更新装置2の制御部20は、S206、S207及びS209の処理の実行後、実施形態1の処理(S109,S110、S111)と同様に、S210、S211及びS212の処理を行う。S208の処理において、現時点の記憶部21の空き容量が所定値以下でない状態(S208:NO)が継続した場合、制御部20は、S208の処理(記憶部21の空き容量を監視及び判定)を継続(ループ処理)するものとなる。これに対し、制御部20は、更新プログラムの全データ(全ブロック)を取得して記憶部21に記憶した後、S208の処理を中断(S208の処理を行うサブプロセスを終了)させるものであってもよい。 After executing the processes of S206, S207 and S209, the control unit 20 of the vehicle-mounted update device 2 performs the processes of S210, S211 and S212 in the same manner as the processes of the first embodiment (S109, S110, S111). In the processing of S208, if the state in which the free space of the storage unit 21 at the present time is not equal to or less than a predetermined value (S208: NO) continues, the control unit 20 performs the processing of S208 (monitoring and determining the free space of the storage unit 21). It will continue (loop processing). On the other hand, the control unit 20 acquires all the data (all blocks) of the update program, stores them in the storage unit 21, and then suspends the processing of S208 (terminates the subprocess that performs the processing of S208). You may.

車載更新装置2の制御部20は、実施形態1と同様に、S205又はS212の処理を行った後、本フローチャートの処理を終了する。又は、制御部20は、S205又はS212の処理を行った後、再度S201の処理を実行すべくループ処理を行うものであってもよい。 The control unit 20 of the in-vehicle update device 2 finishes the process of this flowchart after performing the process of S205 or S212 as in the first embodiment. Alternatively, the control unit 20 may perform the loop processing in order to execute the processing of S201 again after performing the processing of S205 or S212.

車載更新装置2の制御部20は、本フローチャートの処理における判定(S203、S208)に関する判定結果を記憶部21に記憶し、表示装置5又は外部サーバS1に出力し、これら情報を車両Cの操作者又は外部サーバS1の管理者に報知するものであってもよい。 The control unit 20 of the in-vehicle update device 2 stores the determination result regarding the determination (S203, S208) in the processing of this flowchart in the storage unit 21, outputs the determination result to the display device 5 or the external server S1, and outputs this information to the operation of the vehicle C. It may notify the person or the administrator of the external server S1.

車載更新装置2は、外部サーバS1から更新プログラムの取得中に退避データを外部サーバS1に送信、すなわち更新プログラムの取得する処理及び退避データを外部サーバS1に送信する処理を並行(並行処理)して行う。従って、更新プログラムの取得のための準備作業を不要とし、更新対象の車載ECU3の更新の一連の処理の所要時間を短縮することができる。 The in-vehicle update device 2 transmits the save data to the external server S1 while the update program is being acquired from the external server S1, that is, the process of acquiring the update program and the process of transmitting the save data to the external server S1 in parallel (parallel processing). To do. Therefore, the preparatory work for acquiring the update program is unnecessary, and the time required for a series of processes for updating the in-vehicle ECU 3 to be updated can be shortened.

車載更新装置2は、更に記憶部21の空き容量を監視する処理も、更新プログラムの取得する処理及び退避データを外部サーバS1に送信する処理に並行して行い、かつ当該空き容量に基づき非更新対象の車載ECU3に退避データへの送信の要否を判定する。そして、非更新対象の車載ECU3に退避データへの送信が要と判定した場合、車載更新装置2は、更新プログラムの取得する処理、退避データを外部サーバS1に送信する処理、及び退避データを非更新対象の車載ECU3に送信する処理を並行して行う。従って、更新プログラムを取得するにあたり、当該更新プログラムを記憶するための領域を確保するための時間を短縮することができる。 The in-vehicle update device 2 also performs a process of monitoring the free space of the storage unit 21 in parallel with a process of acquiring the update program and a process of transmitting the saved data to the external server S1, and is not updated based on the free space. It is determined whether or not it is necessary to transmit the saved data to the target vehicle-mounted ECU 3. Then, when it is determined that transmission to the saved data is necessary for the vehicle-mounted ECU 3 to be non-updated, the vehicle-mounted update device 2 does not perform the process of acquiring the update program, the process of transmitting the saved data to the external server S1, and the saved data. The process of transmitting to the in-vehicle ECU 3 to be updated is performed in parallel. Therefore, when acquiring the update program, it is possible to shorten the time for securing the area for storing the update program.

今回開示された実施形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本開示の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。 The embodiments disclosed this time should be considered as exemplary in all respects and not restrictive. The scope of the present disclosure is indicated by the scope of claims, not the above-mentioned meaning, and is intended to include all modifications within the meaning and scope equivalent to the scope of claims.

C 車両
S 車載更新システム
S1 外部サーバ
S11 記憶部
1 車外通信装置
11 車外通信部
12 入出力I/F
13 アンテナ
2 車載更新装置
20 制御部
21 記憶部
22 記録媒体
23 車内通信部
24 入出力I/F
3 車載ECU(車載制御装置)
30 制御部
31 記憶部
311 第1記憶領域(第1面)
312 第2記憶領域(第2面)
32 車内通信部
4 車内LAN
5 表示装置
C Vehicle S In-vehicle update system S1 External server S11 Storage unit 1 External communication device 11 External communication unit 12 Input / output I / F
13 Antenna 2 In-vehicle update device 20 Control unit 21 Storage unit 22 Recording medium 23 In-vehicle communication unit 24 Input / output I / F
3 In-vehicle ECU (in-vehicle control device)
30 Control unit 31 Storage unit 311 First storage area (first surface)
312 Second storage area (second surface)
32 In-vehicle communication unit 4 In-vehicle LAN
5 Display device

Claims (16)

車外の外部サーバから送信される更新プログラムを取得し、車両に搭載される車載制御装置のプログラムを更新するための処理を行う車載更新装置であって、記憶部と制御部とを備え、
前記記憶部は、前記更新プログラムが記憶されるものであり、
前記制御部は、更新対象の車載制御装置への前記更新プログラムの送信を制御するものであり、
前記制御部は、
前記外部サーバから前記更新プログラムを取得する場合、前記記憶部に記憶されている退避データを、前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、
前記記憶部に前記外部サーバから取得した前記更新プログラムの少なくとも一部を記憶する
車載更新装置。
It is an in-vehicle update device that acquires an update program transmitted from an external server outside the vehicle and performs processing for updating the program of the in-vehicle control device mounted on the vehicle, and includes a storage unit and a control unit.
The storage unit stores the update program and stores the update program.
The control unit controls transmission of the update program to the in-vehicle control device to be updated.
The control unit
When the update program is acquired from the external server, the saved data stored in the storage unit is transmitted to the external server or a non-update target vehicle control device other than the update target vehicle control device.
An in-vehicle update device that stores at least a part of the update program acquired from the external server in the storage unit.
前記制御部は、前記更新プログラムのデータ総容量が前記記憶部の空き容量よりも大きい場合、前記記憶部に記憶されている退避データを、前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置に送信する
請求項1に記載の車載更新装置。
When the total data capacity of the update program is larger than the free capacity of the storage unit, the control unit uses the saved data stored in the storage unit other than the external server or the in-vehicle control device to be updated. The vehicle-mounted renewal device according to claim 1, which is transmitted to a non-renewal target vehicle-mounted control device.
車外の外部サーバから送信される更新プログラムを取得し、車両に搭載される車載制御装置のプログラムを更新するための処理を行う車載更新装置であって、記憶部と制御部とを備え、
前記記憶部は、前記更新プログラムが記憶されるものであり、
前記制御部は、更新対象の車載制御装置への前記更新プログラムの送信を制御するものであり、
前記制御部は、前記外部サーバから前記更新プログラムを取得する際、
前記更新プログラムのデータ総容量が前記記憶部の空き容量よりも小さい場合、前記記憶部に前記外部サーバから取得した前記更新プログラムを記憶し、
前記更新プログラムのデータ総容量が前記記憶部の空き容量以上である場合、
前記記憶部に記憶されている退避データを、前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、
前記記憶部にて退避データが記憶されている記憶領域に、前記更新プログラムを上書きする
車載更新装置。
It is an in-vehicle update device that acquires an update program transmitted from an external server outside the vehicle and performs processing for updating the program of the in-vehicle control device mounted on the vehicle, and includes a storage unit and a control unit.
The storage unit stores the update program and stores the update program.
The control unit controls transmission of the update program to the in-vehicle control device to be updated.
When the control unit acquires the update program from the external server, the control unit
When the total data capacity of the update program is smaller than the free space of the storage unit, the update program acquired from the external server is stored in the storage unit.
When the total data capacity of the update program is equal to or greater than the free space of the storage unit
The saved data stored in the storage unit is transmitted to the external server or a non-update target vehicle control device other than the update target vehicle control device.
An in-vehicle update device that overwrites the update program in a storage area in which saved data is stored in the storage unit.
車外の外部サーバから送信される更新プログラムを取得し、車両に搭載される車載制御装置のプログラムを更新するための処理を行う車載更新装置であって、記憶部と制御部とを備え、
前記記憶部は、前記更新プログラムが記憶されるものであり、
前記制御部は、更新対象の車載制御装置への前記更新プログラムの送信を制御するものであり、
前記制御部は、
前記外部サーバから前記更新プログラムを取得する際、前記更新プログラムのデータ総容量を導出し、
前記更新プログラムのデータ総容量が前記記憶部の空き容量以上である場合、前記記憶部に記憶されている退避データを、自装置以外の記憶部に退避し、
前記自装置以外の記憶部は、前記外部サーバ又は、前記更新対象の車載制御装置以外の非更新対象の車載制御装置の少なくともいずれかの記憶部を含む
車載更新装置。
It is an in-vehicle update device that acquires an update program transmitted from an external server outside the vehicle and performs processing for updating the program of the in-vehicle control device mounted on the vehicle, and includes a storage unit and a control unit.
The storage unit stores the update program and stores the update program.
The control unit controls transmission of the update program to the in-vehicle control device to be updated.
The control unit
When acquiring the update program from the external server, the total data capacity of the update program is derived.
When the total data capacity of the update program is equal to or greater than the free capacity of the storage unit, the saved data stored in the storage unit is saved in a storage unit other than the own device.
The storage unit other than the own device is an in-vehicle update device including at least one storage unit of the external server or at least one of the non-update target in-vehicle control devices other than the update target in-vehicle control device.
前記外部サーバに送信する退避データは、前記非更新対象の車載制御装置に送信する退避データよりも、自装置又は前記車両における重要度が低い
請求項1から請求項4のいずれか1項に記載の車載更新装置。
The save data transmitted to the external server is described in any one of claims 1 to 4, which is less important in the own device or the vehicle than the save data transmitted to the in-vehicle control device to be non-updated. In-vehicle update device.
前記記憶部には、前記退避データのデータ種別夫々と重要度夫々とが関連付けて記憶されている
請求項5に記載の車載更新装置。
The vehicle-mounted update device according to claim 5, wherein the data type and importance of the saved data are stored in the storage unit in association with each other.
前記制御部は、
前記更新プログラムを取得する前に前記更新プログラムのデータ総容量を前記外部サーバから取得し、
前記記憶部の空き容量及び前記外部サーバに送信する退避データのデータ総容量の合計値が、前記更新プログラムのデータ総容量よりも小さい場合、前記外部サーバに送信する退避データ以外の退避データを前記非更新対象の車載制御装置に送信する
請求項1から請求項6のいずれか1項に記載の車載更新装置。
The control unit
Before acquiring the update program, the total data capacity of the update program is acquired from the external server.
When the total value of the free space of the storage unit and the total data capacity of the backup data transmitted to the external server is smaller than the total data capacity of the update program, the backup data other than the backup data transmitted to the external server is used. The vehicle-mounted renewal device according to any one of claims 1 to 6, which is transmitted to a non-renewable vehicle-mounted control device.
前記制御部は、
前記更新プログラムを取得する前に前記更新プログラムのデータ総容量を前記外部サーバから取得し、
前記記憶部の空き容量、前記外部サーバに送信する退避データのデータ総容量及び前記非更新対象の車載制御装置に送信する退避データの合計値が、前記更新プログラムのデータ総容量よりも大きい場合、前記退避データのデータ種別に基づき、前記退避データを前記外部サーバ及び前記非更新対象の車載制御装置に送信する
請求項1から請求項7のいずれか1項に記載の車載更新装置。
The control unit
Before acquiring the update program, the total data capacity of the update program is acquired from the external server.
When the total value of the free space of the storage unit, the total data capacity of the backup data transmitted to the external server, and the backup data transmitted to the non-update target in-vehicle control device is larger than the total data capacity of the update program. The vehicle-mounted update device according to any one of claims 1 to 7, which transmits the saved data to the external server and the vehicle-mounted control device to be non-updated based on the data type of the saved data.
前記制御部は、
前記外部サーバから前記更新プログラムの取得中に、前記退避データを前記外部サーバに送信し、
前記更新プログラムの取得中における前記記憶部の空き容量が、所定値以下となった場合、前記外部サーバに送信する退避データ以外の退避データを前記非更新対象の車載制御装置に送信する
請求項1から請求項8のいずれか1項に記載の車載更新装置。
The control unit
While acquiring the update program from the external server, the saved data is transmitted to the external server.
1. When the free space of the storage unit during acquisition of the update program becomes equal to or less than a predetermined value, save data other than the save data to be transmitted to the external server is transmitted to the in-vehicle control device to be non-updated. The vehicle-mounted renewal device according to any one of claims 8.
前記車両には、複数の前記車載制御装置が搭載されており、
前記複数の車載制御装置夫々と通信するための車内通信部を複数個備え、
前記制御部は、異なる前記車内通信部夫々に接続される前記非更新対象の車載制御装置夫々へ、前記退避データの送信を並行して行う
請求項1から請求項9のいずれか1項に記載の車載更新装置。
The vehicle is equipped with a plurality of the in-vehicle control devices.
A plurality of in-vehicle communication units for communicating with each of the plurality of in-vehicle control devices are provided.
The one according to any one of claims 1 to 9, wherein the control unit transmits the saved data in parallel to each of the non-updated in-vehicle control devices connected to different in-vehicle communication units. In-vehicle update device.
外部サーバから更新プログラムを取得する場合、記憶部に記憶されている退避データを、外部サーバ又は、更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、
前記記憶部に前記外部サーバから取得した前記更新プログラムの少なくとも一部を記憶し、
記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する
プログラムの更新方法。
When acquiring an update program from an external server, the saved data stored in the storage unit is transmitted to the external server or a non-update target vehicle control device other than the update target vehicle control device.
At least a part of the update program acquired from the external server is stored in the storage unit.
A method of updating a program for transmitting the stored update program to the in-vehicle control device to be updated.
外部サーバから更新プログラムを取得する際、
前記更新プログラムのデータ総容量が記憶部の空き容量よりも小さい場合、前記記憶部に前記外部サーバから取得した前記更新プログラムを記憶し、
前記更新プログラムのデータ総容量が前記記憶部の空き容量以上である場合、
前記記憶部に記憶されている退避データを、前記外部サーバ又は、更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、
前記記憶部にて退避データが記憶されている記憶領域に前記更新プログラムを上書きし、
記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する
プログラムの更新方法。
When getting updates from an external server
When the total data capacity of the update program is smaller than the free space of the storage unit, the update program acquired from the external server is stored in the storage unit.
When the total data capacity of the update program is equal to or greater than the free space of the storage unit
The saved data stored in the storage unit is transmitted to the external server or a non-update target vehicle control device other than the update target vehicle control device.
The update program is overwritten in the storage area in which the saved data is stored in the storage unit.
A method of updating a program for transmitting the stored update program to the in-vehicle control device to be updated.
外部サーバから更新プログラムを取得する際、前記更新プログラムのデータ総容量を導出し、
前記更新プログラムのデータ総容量が記憶部の空き容量以上である場合、前記記憶部に記憶されている退避データを、自装置以外の記憶部に退避し、
前記自装置以外の記憶部は、前記外部サーバ又は、更新対象の車載制御装置以外の非更新対象の車載制御装置の少なくともいずれかの記憶部を含み、
記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する
プログラムの更新方法。
When acquiring an update program from an external server, the total data capacity of the update program is derived.
When the total data capacity of the update program is equal to or greater than the free capacity of the storage unit, the saved data stored in the storage unit is saved in a storage unit other than the own device.
The storage unit other than the own device includes at least one storage unit of the external server or a non-update target in-vehicle control device other than the update target in-vehicle control device.
A method of updating a program for transmitting the stored update program to the in-vehicle control device to be updated.
コンピュータに、
外部サーバから更新プログラムを取得する場合、記憶部に記憶されている退避データを、外部サーバ又は、更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、
前記記憶部に前記外部サーバから取得した前記更新プログラムの少なくとも一部を記憶し、
記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する
処理を実行させるための更新処理プログラム。
On the computer
When acquiring an update program from an external server, the saved data stored in the storage unit is transmitted to the external server or a non-update target vehicle control device other than the update target vehicle control device.
At least a part of the update program acquired from the external server is stored in the storage unit.
An update processing program for executing a process of transmitting the stored update program to the in-vehicle control device to be updated.
コンピュータに、
外部サーバから更新プログラムを取得する際、
前記更新プログラムのデータ総容量が記憶部の空き容量よりも小さい場合、前記記憶部に前記外部サーバから取得した前記更新プログラムを記憶し、
前記更新プログラムのデータ総容量が前記記憶部の空き容量以上である場合、
前記記憶部に記憶されている退避データを、前記外部サーバ又は、更新対象の車載制御装置以外の非更新対象の車載制御装置に送信し、
前記記憶部にて退避データが記憶されている記憶領域に前記更新プログラムを上書きし、
記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する
処理を実行させるための更新処理プログラム。
On the computer
When getting updates from an external server
When the total data capacity of the update program is smaller than the free space of the storage unit, the update program acquired from the external server is stored in the storage unit.
When the total data capacity of the update program is equal to or greater than the free space of the storage unit
The saved data stored in the storage unit is transmitted to the external server or a non-update target vehicle control device other than the update target vehicle control device.
The update program is overwritten in the storage area in which the saved data is stored in the storage unit.
An update processing program for executing a process of transmitting the stored update program to the in-vehicle control device to be updated.
コンピュータに、
外部サーバから更新プログラムを取得する際、前記更新プログラムのデータ総容量を導出し、
前記更新プログラムのデータ総容量が記憶部の空き容量以上である場合、前記記憶部に記憶されている退避データを、自装置以外の記憶部に退避し、
前記自装置以外の記憶部は、前記外部サーバ又は、更新対象の車載制御装置以外の非更新対象の車載制御装置の少なくともいずれかの記憶部を含み、
記憶した前記更新プログラムを前記更新対象の車載制御装置へ送信する
処理を実行させるための更新処理プログラム。
On the computer
When acquiring an update program from an external server, the total data capacity of the update program is derived.
When the total data capacity of the update program is equal to or greater than the free capacity of the storage unit, the saved data stored in the storage unit is saved in a storage unit other than the own device.
The storage unit other than the own device includes at least one storage unit of the external server or a non-update target in-vehicle control device other than the update target in-vehicle control device.
An update processing program for executing a process of transmitting the stored update program to the in-vehicle control device to be updated.
JP2020173234A 2019-03-18 2020-10-14 In-vehicle update device, update processing program, and program update method Active JP7331818B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020173234A JP7331818B2 (en) 2019-03-18 2020-10-14 In-vehicle update device, update processing program, and program update method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019050057A JP6780724B2 (en) 2019-03-18 2019-03-18 In-vehicle update device, update processing program, and program update method
JP2020173234A JP7331818B2 (en) 2019-03-18 2020-10-14 In-vehicle update device, update processing program, and program update method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019050057A Division JP6780724B2 (en) 2019-03-18 2019-03-18 In-vehicle update device, update processing program, and program update method

Publications (2)

Publication Number Publication Date
JP2021015618A true JP2021015618A (en) 2021-02-12
JP7331818B2 JP7331818B2 (en) 2023-08-23

Family

ID=87576984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020173234A Active JP7331818B2 (en) 2019-03-18 2020-10-14 In-vehicle update device, update processing program, and program update method

Country Status (1)

Country Link
JP (1) JP7331818B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022239549A1 (en) * 2021-05-14 2022-11-17 オムロン株式会社 Version management method, version management program, and version management system
WO2023136127A1 (en) * 2022-01-12 2023-07-20 株式会社オートネットワーク技術研究所 Relay device, program, and method for updating program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09171459A (en) * 1995-12-20 1997-06-30 Denso Corp Electronic control equipment
JP2004199490A (en) * 2002-12-19 2004-07-15 Komatsu Ltd Rewriting control device of onboard program
JP2017157003A (en) * 2016-03-02 2017-09-07 住友電気工業株式会社 System, method, and computer program for updating programs
JP2018079768A (en) * 2016-11-15 2018-05-24 トヨタ自動車株式会社 Update data storage system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09171459A (en) * 1995-12-20 1997-06-30 Denso Corp Electronic control equipment
JP2004199490A (en) * 2002-12-19 2004-07-15 Komatsu Ltd Rewriting control device of onboard program
JP2017157003A (en) * 2016-03-02 2017-09-07 住友電気工業株式会社 System, method, and computer program for updating programs
JP2018079768A (en) * 2016-11-15 2018-05-24 トヨタ自動車株式会社 Update data storage system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022239549A1 (en) * 2021-05-14 2022-11-17 オムロン株式会社 Version management method, version management program, and version management system
WO2023136127A1 (en) * 2022-01-12 2023-07-20 株式会社オートネットワーク技術研究所 Relay device, program, and method for updating program

Also Published As

Publication number Publication date
JP7331818B2 (en) 2023-08-23

Similar Documents

Publication Publication Date Title
JP6780724B2 (en) In-vehicle update device, update processing program, and program update method
WO2018025685A1 (en) On-board update device, on-board update system, and communication device update method
WO2020080273A1 (en) In-vehicle update device, update processing program, and program update method
US20210397433A1 (en) On-board update device, update processing program, program update method, and on-board update system
US11061659B2 (en) Control apparatus, transfer method, and computer program
JP7192415B2 (en) Program update system and update processing program
WO2019116896A1 (en) On-vehicle update device, program, and program or data update method
WO2020179592A1 (en) Vehicle-mounted updating device, update processing program, and program updating method
JP2021015618A (en) On-vehicle update device, update processing program, and program update method
US11126422B2 (en) Program update system, control system, mobile body, program update method, recording medium
US20040122537A1 (en) Rewrite control apparatus for onboard program
WO2020183897A1 (en) Replacement device, replacement control program, and replacement method
JP4264254B2 (en) In-vehicle program rewrite control system
JP4487007B2 (en) In-vehicle program rewrite control system
JP7310570B2 (en) In-vehicle update device, program, and program update method
JP7184855B2 (en) SOFTWARE UPDATE DEVICE, SOFTWARE UPDATE METHOD
JP4026495B2 (en) Server switching control device
WO2023063068A1 (en) In-vehicle device, program, and method for updating program
JP2004199491A (en) Rewriting control device of onboard program
WO2023136127A1 (en) Relay device, program, and method for updating program
WO2023106072A1 (en) In-vehicle device, program, method for updating program, and in-vehicle updating system
WO2023171307A1 (en) In-vehicle device, program, and program updating method
WO2023195460A1 (en) In-vehicle apparatus, computer program, and program updating method
WO2019221118A1 (en) Electronic control unit and session establishment program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230228

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230411

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230724

R150 Certificate of patent or registration of utility model

Ref document number: 7331818

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150