JP2024048008A - Electronic control device and software update method - Google Patents
Electronic control device and software update method Download PDFInfo
- Publication number
- JP2024048008A JP2024048008A JP2022153827A JP2022153827A JP2024048008A JP 2024048008 A JP2024048008 A JP 2024048008A JP 2022153827 A JP2022153827 A JP 2022153827A JP 2022153827 A JP2022153827 A JP 2022153827A JP 2024048008 A JP2024048008 A JP 2024048008A
- Authority
- JP
- Japan
- Prior art keywords
- software
- update
- area
- written
- storage device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 60
- 230000008569 process Effects 0.000 claims description 48
- 230000006870 function Effects 0.000 claims description 45
- 230000010365 information processing Effects 0.000 claims description 27
- 238000004891 communication Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 6
- 238000001514 detection method Methods 0.000 description 4
- 238000002360 preparation method Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
【課題】アクチュエータを制御するECUとして、記憶装置の記憶容量が比較的小さいECUを採用できるようにすること。【解決手段】制動ECU60は、ソフトウェアを記憶する記憶装置62と、ソフトウェアを実行することによってアクチュエータ11を制御する実行装置61とを備えている。記憶装置62の領域のうち、第1機能を実現するための第1ソフトウェアが書き込まれた領域を第1記憶領域とし、第2機能を実現するための第2ソフトウェアが書き込まれた領域を第2記憶領域とし、何れのソフトウェアも書き込まれていない領域をブランク領域とする。実行装置61は、第1ソフトウェアを更新する場合、更新用の第1ソフトウェアをブランク領域に書き込み、その後、更新前の第1ソフトウェアを記憶装置62から消去する。【選択図】図1[Problem] To make it possible to employ an ECU with a storage device having a relatively small storage capacity as an ECU that controls an actuator. [Solution] A brake ECU 60 includes a storage device 62 that stores software, and an execution device 61 that controls an actuator 11 by executing the software. Of the areas of the storage device 62, an area in which first software for realizing a first function has been written is referred to as a first storage area, an area in which second software for realizing a second function has been written is referred to as a second storage area, and an area in which no software has been written is referred to as a blank area. When updating the first software, the execution device 61 writes the first software for update into the blank area, and then erases the pre-update first software from the storage device 62. [Selected Figure] Figure 1
Description
本発明は、アクチュエータを作動させることによって車両で発生する制動力を調整する電子制御装置と、同電子制御装置の記憶装置のソフトウェアを更新するソフトウェア更新方法とに関する。 The present invention relates to an electronic control device that adjusts the braking force generated in a vehicle by operating an actuator, and a software update method that updates the software in the storage device of the electronic control device.
特許文献1は、電子制御装置を備える車載システムを開示している。当該電子制御装置は、実行装置と、実行装置によって実行されるソフトウェアを記憶する第1記憶部と、第2記憶部とを有している。上記のシステムは、第1記憶部のソフトウェアを更新する機能を有している。具体的には、上記のシステムでは、車外のデータセンタから無線通信によって新バージョンのソフトウェアが取得されると、第1記憶部に記憶されていたソフトウェアが、旧バージョンのソフトウェアとして第2記憶部に保存される。その上で、上記の新バージョンのソフトウェアが、第1記憶部に書き込まれる。 Patent Document 1 discloses an in-vehicle system equipped with an electronic control device. The electronic control device has an execution device, a first storage unit that stores software executed by the execution device, and a second storage unit. The above system has a function of updating the software in the first storage unit. Specifically, in the above system, when a new version of software is obtained from a data center outside the vehicle via wireless communication, the software stored in the first storage unit is saved in the second storage unit as the old version of the software. The new version of the software is then written to the first storage unit.
なお、第1記憶部への新バージョンのソフトウェアに何らかの問題が発生した場合、第2記憶部に保存されていた旧バージョンのソフトウェアが、第1記憶部に書き込まれる。 If any problem occurs with the new version of the software in the first storage unit, the old version of the software stored in the second storage unit will be written to the first storage unit.
第1記憶部のソフトウェアを更新する場合には、当該ソフトウェアの全てが第2記憶部に書き込まれる。そのため、第2記憶部の記憶容量を第1記憶部と同程度にする必要がある。すなわち、記憶装置の記憶容量が比較的大きい電子制御装置が必要となってしまう。 When updating the software in the first storage unit, all of that software is written to the second storage unit. Therefore, it is necessary to make the memory capacity of the second storage unit approximately the same as that of the first storage unit. In other words, an electronic control device with a storage device with a relatively large memory capacity is required.
上記課題を解決するための電子制御装置は、車両で制動力を発生させるべく作動するアクチュエータと、前記車両の外部から無線通信を介して前記アクチュエータを制御するためのソフトウェアを取得する情報処理装置と、を備える前記車両に設けられ、前記情報処理装置とは車内ネットワークを介して通信可能であるとともに、複数の機能を前記車両で実現させるべく前記アクチュエータを作動させる装置である。この電子制御装置は、ソフトウェアを記憶する記憶装置と、当該記憶装置のソフトウェアを実行することによって前記アクチュエータを制御する実行装置と、を備えている。前記複数の機能のうち、第1機能を実現するための第1ソフトウェアが書き込まれた前記記憶装置の領域を第1記憶領域とし、第2機能を実現するための第2ソフトウェアが書き込まれた前記記憶装置の領域を第2記憶領域とし、何れのソフトウェアも書き込まれていない前記記憶装置の領域をブランク領域とする。このとき、前記実行装置は、前記記憶装置の前記第1ソフトウェアを、前記車両の外部から前記情報処理装置が取得した更新用の第1ソフトウェアに更新する場合、前記更新用の第1ソフトウェアを前記ブランク領域に書き込む更新処理と、前記更新処理の実行後に、更新前の前記第1ソフトウェアを前記記憶装置から消去することにより、当該記憶装置の領域のうち、前記更新前の第1ソフトウェアが書き込まれていた領域を前記ブランク領域とし、前記更新用の第1ソフトウェアが書き込まれている領域を前記第1記憶領域とするリセット処理と、を実行する。 The electronic control device for solving the above problem is provided in a vehicle that includes an actuator that operates to generate a braking force in the vehicle and an information processing device that acquires software for controlling the actuator from outside the vehicle via wireless communication, and is capable of communicating with the information processing device via an in-vehicle network and operates the actuator to realize a plurality of functions in the vehicle. The electronic control device includes a storage device that stores software, and an execution device that controls the actuator by executing the software in the storage device. Of the plurality of functions, an area of the storage device in which first software for realizing a first function is written is referred to as a first storage area, an area of the storage device in which second software for realizing a second function is written is referred to as a second storage area, and an area of the storage device in which no software is written is referred to as a blank area. In this case, when the execution device updates the first software in the storage device to first software for updating acquired by the information processing device from outside the vehicle, the execution device executes an update process in which the first software for updating is written to the blank area, and a reset process in which, after the update process is executed, the first software before the update is erased from the storage device, thereby setting the area of the storage device where the first software before the update was written as the blank area, and setting the area where the first software for updating is written as the first storage area.
上記電子制御装置では、記憶装置のソフトウェアを機能単位で更新できる。そのため、記憶容量が比較的大きいブランク領域を用意しなくてもよい。したがって、アクチュエータを制御する電子制御装置として、記憶装置の記憶容量が比較的小さい電子制御装置を採用できる。 In the electronic control device, the software in the storage device can be updated on a function-by-function basis. This means that there is no need to prepare a blank area with a relatively large storage capacity. Therefore, an electronic control device with a storage device with a relatively small storage capacity can be used as the electronic control device that controls the actuator.
上記課題を解決するためのソフトウェア更新方法は、アクチュエータを作動させることによって車両で発生する制動力を調整する電子制御装置が備える記憶装置のソフトウェアを更新する方法である。前記電子制御装置は、複数の機能を前記車両で実現させるべく前記アクチュエータを作動させるものである。前記複数の機能のうち、第1機能を実現するための第1ソフトウェアが書き込まれた前記記憶装置の領域を第1記憶領域とし、第2機能を実現するための第2ソフトウェアが書き込まれた前記記憶装置の領域を第2記憶領域とし、何れのソフトウェアも書き込まれていない前記記憶装置の領域をブランク領域とする。前記ソフトウェア更新方法は、前記車両に設けられた情報処理装置が、前記車両の外部のデータセンタから無線通信を介して更新用の前記第1ソフトウェアを取得している状況下で、前記電子制御装置の実行装置が、当該更新用の第1ソフトウェアを前記ブランク領域に書き込む更新ステップと、前記更新ステップの実行後に、前記実行装置が、更新前の前記第1ソフトウェアを前記記憶装置から消去することにより、当該記憶装置の領域のうち、前記更新前の第1ソフトウェアが書き込まれていた領域を前記ブランク領域とし、前記更新用の第1ソフトウェアが書き込まれている領域を前記第1記憶領域とするリセットステップと、を有する。 The software update method for solving the above problem is a method for updating software in a storage device provided in an electronic control device that adjusts a braking force generated in a vehicle by operating an actuator. The electronic control device operates the actuator to realize a plurality of functions in the vehicle. An area of the storage device in which a first software for realizing a first function of the plurality of functions is written is defined as a first storage area, an area of the storage device in which a second software for realizing a second function is written is defined as a second storage area, and an area of the storage device in which no software is written is defined as a blank area. The software update method includes an update step in which an execution device of the electronic control device writes the first software for update to the blank area under a situation in which an information processing device provided in the vehicle acquires the first software for update from a data center outside the vehicle via wireless communication, and a reset step in which, after the execution of the update step, the execution device erases the first software before the update from the storage device, thereby setting the area of the storage device in which the first software before the update was written as the blank area and the area in which the first software for update is written as the first storage area.
上記ソフトウェア更新方法では、複数のステップを順番に実行することにより、記憶装置のソフトウェアを機能単位で更新できる。そのため、記憶装置の記憶容量の比較的小さい電子制御装置が備える記憶装置のソフトウェアを更新できる。 The above software update method allows software in a storage device to be updated on a function-by-function basis by executing multiple steps in sequence. This makes it possible to update software in a storage device installed in an electronic control device with a relatively small storage capacity.
以下、電子制御装置及びソフトウェア更新方法の一実施形態を図1~図7に従って説明する。本明細書では、電子制御装置を「ECU」と記載する。「ECU」は「Electronic Control Unit」の略記である。 Below, an embodiment of an electronic control device and a software update method will be described with reference to Figs. 1 to 7. In this specification, the electronic control device is referred to as "ECU." "ECU" is an abbreviation of "Electronic Control Unit."
図1は、車両10と、車両10の外部に設けられているデータセンタ100とを図示している。
<データセンタ>
データセンタ100は、車外ネットワーク200を介して車両10と各種の情報の送受信ができるように構成されている。すなわち、データセンタ100は、無線通信によって車両10と各種情報の送受信を行う。
FIG. 1 illustrates a
<Data Center>
The
詳しくは後述するが、車両10は複数のECUを備えている。複数のECUのうちの何れかのECUの記憶装置のソフトウェアを更新するための更新用ソフトウェアが用意できた場合、データセンタ100は、車外ネットワーク200を介して当該更新用ソフトウェアを車両10に送信する。なお、車載の複数のECUのうち、ソフトウェアを更新するECUを「更新対象ECU」という。
As will be described in more detail later, the
<車両>
車両10は、通信装置20と情報処理装置30とを備えている。通信装置20は、データセンタ100との情報を送受信するための車両側のインターフェースである。
<Vehicles>
The
情報処理装置30は、ローカルネットワーク41を介して通信装置20と通信できるように構成されている。ローカルネットワーク41は、情報処理装置30と通信装置20との間のみで情報の送受信を行うためのネットワークである。
The
情報処理装置30は、実行装置31と、記憶装置32と、格納装置33とを備えている。例えば、実行装置31はCPUであり、記憶装置32は不揮発性のメモリであり、格納装置33は揮発性のメモリである。記憶装置32は、実行装置31によって実行されるソフトウェアを記憶している。格納装置33は、通信装置20からローカルネットワーク41を介して送信された情報を一時的に格納する。すなわち、データセンタ100が、更新対象ECUを特定する情報及び更新用ソフトウェアを車両10に送信すると、通信装置20が、データセンタ100が送信した情報を受信する。そして、通信装置20は、受信した情報を、ローカルネットワーク41を介して情報処理装置30に送信する。すると、情報処理装置30の実行装置31は、ローカルネットワーク41を介して受信した情報、すなわち更新対象ECUを特定する情報及び更新用ソフトウェアを格納装置33に記憶させる。
The
車両10は、グローバルネットワーク42を介して情報処理装置30と通信可能に構成された複数のECUを備えている。複数のECUのうちの1つのECUは、車両10で発生する制動力を調整する制動ECU60である。複数のECUは、制動ECU60以外の他のECU50も含んでいる。グローバルネットワーク42が、情報処理装置30と制動ECU60との間で情報の送受信を行わせる「車内ネットワーク」に対応する。例えば、グローバルネットワーク42はCANバスである。CANは「Controller Area Network」の略記である。
The
車両10は、制動ECU60の制御対象であるアクチュエータ11を備えている。アクチュエータ11は、車両10で制動力を発生させるべく作動する。
車両10は、車両10の走行状態を検出する検出系15を備えている。検出系15は、検出結果に応じた信号を制動ECU60に出力する。検出系15は複数のセンサ151を有している。複数のセンサは、例えば、車輪速センサ、加速度センサ及びヨーレートセンサを含んでいる。
The
The
<制動ECU>
制動ECU60は、実行装置61と、記憶装置62と、格納装置63とを備えている。例えば、実行装置61はCPUであり、記憶装置62は不揮発性のメモリであり、格納装置63は揮発性のメモリである。記憶装置62には、アクチュエータ11を制御するためのソフトウェアが記憶される。実行装置61は、記憶装置62のソフトウェアを実行することによってアクチュエータ11を制御する。
<Braking ECU>
The
制動ECU60は、複数の機能を車両10で実現させるべくアクチュエータ11を作動させることができる。ここでいう「機能」は、車両10の安全性を確保するための機能である。こうした機能は、例えば、アンチロックブレーキ制御、横滑り抑制制御、プリクラッシュセーフティなどである。制動ECU60が車両10で実現できる機能の数をN個とする。この場合、Nは3以上の整数である。
The
図2に示すように、記憶装置62は、第1記憶部62Aと第2記憶部62Bとを有している。第1記憶部62Aには、ソフトウェアとして、制動ECU60のオペレーションシステムが記憶されている。
As shown in FIG. 2, the
第2記憶部62Bには、N個の機能毎のソフトウェアが記憶される。すなわち、N個の機能のうち、第1機能を実現させるためのソフトウェアを第1ソフトウェアとし、第2機能を実現させるためのソフトウェアを第2ソフトウェアとし、第3機能を実現させるためのソフトウェアを第3ソフトウェアとし、第N機能を実現させるためのソフトウェアを第Nソフトウェアとする。
The
図2に示すように、第2記憶部62Bは、N+1個の記憶領域に等分割されている。すなわち、N+1個の記憶領域の記憶容量は全て同じである。
N+1個の記憶領域のうち、第1ソフトウェアが書き込まれた領域が、第1記憶領域621である。第2ソフトウェアが書き込まれた領域が、第2記憶領域622である。第3ソフトウェアが書き込まれた領域が、第3記憶領域623である。そして、第Nソフトウェアが書き込まれた領域が、第N記憶領域62Nである。一方、N+1個の記憶領域のうち、1つの記憶領域には、何れのソフトウェアも書き込まれていない。何れのソフトウェアも書き込まれていない記憶領域がブランク領域62Xである。
2, the
Of the N+1 storage areas, the area into which the first software has been written is the
本明細書でいう「何れのソフトウェアも書き込まれていない記憶領域」とは、機能を実現させるためのソフトウェアが1種類も書き込まれていない記憶領域である。例えば、ブランク領域62Xには、プログラムコードが何ら記述されていない。
In this specification, a "storage area in which no software has been written" refers to a storage area in which no software for implementing any function has been written. For example, no program code is written in
実行装置61は、第1ソフトウェアを実行することによって第1機能を実現させるべくアクチュエータ11を制御できる。実行装置61は、第Nソフトウェアを実行することによって第N機能を実現させるべくアクチュエータ11を制御できる。
The
制動ECU60を備える車両10は、制動ECU60の記憶装置62の第2記憶部62Bのソフトウェアを更新する機能を有している。具体的には、車両10は、機能毎にソフトウェアを更新させることができる。
The
<更新準備処理>
図3は、情報処理装置30の実行装置31が実行する更新準備処理を示す処理ルーチンを図示している。更新準備処理は、制動ECU60の第2記憶部62BのN個のソフトウェアの何れかを更新させる際に実行装置31が実行する一連の処理である。実行装置31は、第2記憶部62Bのソフトウェアを更新することを車両10の所有者が許可している場合に本処理ルーチンを実行する。
<Update preparation process>
3 illustrates a processing routine showing the update preparation processing executed by the
ステップS11において、実行装置31は、制動ECU60向けの更新用ソフトウェアをデータセンタ100から取得したか否かを判定する。実行装置31は、制動ECU60向けの更新用ソフトウェアを取得した場合(S11:YES)、処理をステップS13に移行する。一方、実行装置31は、制動ECU60向けの更新用ソフトウェアを取得していない場合(S11:NO)、本処理ルーチンを一旦終了する。
In step S11, the
ステップS13において、実行装置31は、制動ECU60の第2記憶部62Bのソフトウェアを更新することを許可する旨を、グローバルネットワーク42を介して制動ECU60に通知する。次のステップS15において、実行装置31は、格納装置33に記憶されている更新用の第Mソフトウェアを、グローバルネットワーク42を介して制動ECU60に送信する。「M」は、1からNまでの正の整数の何れかである。例えば、Mが1である場合、実行装置31は、更新用の第1ソフトウェアを、グローバルネットワーク42を介して制動ECU60に送信する。
In step S13, the
なお、制動ECU60では、情報処理装置30から送信された更新用の第Mソフトウェアが自身の格納装置63に格納される。制動ECU60において第Mソフトウェアの更新が完了すると、制動ECU60は、ソフトウェアの更新が完了した旨の通知を、グローバルネットワーク42を介して情報処理装置30に送信する。そのため、実行装置31は、当該通知を受信したか否かを基に、第Mソフトウェアの更新が完了したか否かを判定できる。
The
ステップS17において、実行装置31は、第Mソフトウェアの更新が完了したか否かを判定する。実行装置31は、ソフトウェアの更新が完了したと判定した場合(S17:YES)、処理をステップS19に移行する。一方、実行装置31は、ソフトウェアの更新が完了していないと判定した場合(S17:NO)、更新が完了したと判定するまでステップS17の判定を繰り返し実行する。
In step S17, the
なお、第2記憶部62Bのソフトウェアを正常に更新できる場合もあれば、第2記憶部62Bのソフトウェアを正常に更新できない場合もある。ステップS17では、実行装置31は、何れの場合であっても第2記憶部62Bのソフトウェアの更新が完了したと判定し、処理をステップS19に移行する。
Note that there are cases where the software in the
ステップS19において、実行装置31は、第Mソフトウェアの更新が完了した旨を車両10の所有者に通知する。その後、実行装置31は本処理ルーチンを一旦終了する。
<ソフトウェアの更新方法>
図4を参照し、制動ECU60の第2記憶部62Bの第Mソフトウェアを更新する際に制動ECU60の実行装置61が実行する処理ルーチンを説明する。実行装置61は、情報処理装置30から更新用の第Mソフトウェアが送信される場合に本処理ルーチンを実行する。
In step S19, the
<How to update software>
4, a processing routine executed by the
ステップS31において、実行装置61は、N個の機能の中から、今回の更新対象となる機能を特定する。例えば、情報処理装置30から更新用の第1ソフトウェアが送信される場合は、第1機能が更新対象の機能である。実行装置61は、更新対象となる機能を特定すると、処理をステップS33に移行する。
In step S31, the
ステップS33において、実行装置61は、記憶装置62の第2記憶部62Bの複数の記憶領域の中から、ブランク領域62Xを特定する。次のステップS35において、実行装置61は、格納装置63に格納された更新用の第Mソフトウェアをブランク領域62Xに書き込む。本実施形態では、ステップS33で実行される処理が「更新処理」に対応する。また、ステップS33が「更新ステップ」に対応する。実行装置61は、ブランク領域62Xへの更新用の第Mソフトウェアの書き込みを完了させると、処理をステップS37に移行する。
In step S33, the
ステップS37において、実行装置61は、更新用の第Mソフトウェアが記憶装置62に正常に書き込まれたか否かを判定するチェック処理を実行する。すなわち、実行装置61は、更新処理の実行後にチェック処理を実行する。例えば、実行装置61は、チェック処理として、ベリファイチェックを実行する。なお、第Mソフトウェアが正常に更新されたか否かを判定できるのであれば、ベリファイチェック以外の手法をチェック処理として採用してもよい。例えば、チェック処理として、チェックサムを採用してもよい。実行装置61は、チェック処理を終了すると、処理をステップS39に移行する。
In step S37, the
ステップS39において、実行装置61は、チェック処理を実行した結果を基に、更新用の第Mソフトウェアが正常に書き込まれたか否かを判定する。実行装置61は、更新用の第Mソフトウェアが正常に書き込まれたと判定した場合(S39:YES)、処理をステップS41に移行する。一方、実行装置61は、更新用の第Mソフトウェアが正常に書き込まれていないと判定した場合(S39:NO)、処理をステップS43に移行する。
In step S39, the
ステップS41において、実行装置61は、リセット処理を実行する。リセット処理において、実行装置61は、記憶装置62の第2記憶部62Bから更新前の第Mソフトウェアを消去する。そして、実行装置61は、第2記憶部62Bの複数の記憶領域のうち、更新前の第Mソフトウェアが書き込まれていた領域をブランク領域62Xとし、更新用の第Mソフトウェアが書き込まれている領域を第M記憶領域62Mとする。本実施形態では、ステップS41が「リセットステップ」に対応する。その後、実行装置61は本処理ルーチンを終了する。
In step S41, the
ステップS43において、実行装置61は、第2記憶部62Bから更新用の第Mソフトウェアを消去する。そして、実行装置61は、更新前の第Mソフトウェアが第2記憶部62Bに記憶された状態を保持する。その後、実行装置31は本処理ルーチンを終了する。
In step S43, the
<本実施形態の作用及び効果>
図5~図7を参照し、第Mソフトウェアを更新する場合の作用を説明する。ここでは、第1ソフトウェアを更新する場合を一例として説明する。
<Actions and Effects of the Present Embodiment>
5 to 7, the operation of updating the Mth software will be described below, taking the operation of updating the first software as an example.
図5は、第1ソフトウェアの更新が開始される前の第2記憶部62Bの状態を模式的に示している。第1ソフトウェアを更新する場合、図6に示すように、更新処理が実行されることにより、その時点のブランク領域62Xに更新用の第1ソフトウェアが書き込まれる。
Figure 5 shows a schematic diagram of the state of the
ブランク領域62Xに更新用の第1ソフトウェアが書き込まれると、チェック処理が実行される。チェック処理の結果、更新用の第1ソフトウェアが正常に書き込まれたと判定されると、リセット処理が実行される。これにより、第2記憶部62Bから更新前の第1ソフトウェアが消去される。すると、図7に示すように、第2記憶部62Bの複数の領域のうち、更新前の第1ソフトウェアが書き込まれていた領域がブランク領域62Xになる。また、更新用の第1ソフトウェアが書き込まれている領域が第1記憶領域621になる。
When the first software for update is written to the
そのため、第1ソフトウェアの更新の完了後において第1機能を車両10で実現させる場合、実行装置61は、新たな第1記憶領域621の第1ソフトウェアを実行することによってアクチュエータ11を制御することになる。
Therefore, when the first function is to be realized in the
なお、複数の機能のうち、第1機能以外の機能を実現するためのソフトウェアを更新する手法は、第1ソフトウェアを更新する方法と同じである。そのため、第1ソフトウェア以外の他のソフトウェアを更新する場合の作用を割愛する。 The method for updating software to realize functions other than the first function among the multiple functions is the same as the method for updating the first software. Therefore, the action of updating software other than the first software will be omitted.
本実施形態では、以下に示す効果を得ることができる。
(1)制動ECU60では、第2記憶部62Bのソフトウェアを機能単位で更新できる。そのため、制動ECU60の記憶装置62に、記憶容量が比較的大きいブランク領域を用意しなくてもよい。したがって、アクチュエータ11を制御する制動ECU60として、記憶装置の記憶容量が比較的小さいECUを採用できる。
In this embodiment, the following effects can be obtained.
(1) In the
(2)制動ECU60では、更新用の第Mソフトウェアを第2記憶部62Bに書き込むと、チェック処理が実行される。そして、チェック処理によって更新用の第Mソフトウェアが正常に書き込まれたと判定されると、上記のリセット処理が実行される。一方、更新用の第Mソフトウェアが正常に書き込まれていないと判定されると、リセット処理が実行されない。具体的には、第2記憶部62Bから更新用の第Mソフトウェアが消去される。その上で、更新前の第Mソフトウェアが第2記憶部62Bに記憶された状態が保持される。そのため、第Mソフトウェアの更新が失敗した後でも、実行装置61は、更新前の第Mソフトウェアを実行することにより、第M機能を車両10で実現させるべくアクチュエータ11を制御できる。
(2) In the
(3)上述したソフトウェア更新方法では、複数のステップを順番に実行することにより、記憶装置のソフトウェアを機能単位で更新できる。そのため、記憶装置の記憶容量の比較的小さいECUが備える記憶装置のソフトウェアを更新できる。 (3) In the above-described software update method, the software of the storage device can be updated on a function-by-function basis by executing multiple steps in sequence. This makes it possible to update the software of a storage device provided in an ECU with a relatively small storage capacity.
<変更例>
上記実施形態は、以下のように変更して実施することができる。上記実施形態及び以下の変更例は、技術的に矛盾しない範囲で互いに組み合わせて実施することができる。
<Example of change>
The above embodiment can be modified as follows: The above embodiment and the following modifications can be combined with each other to the extent that no technical contradiction occurs.
・更新用の第Mソフトウェアを第2記憶部62Bに正常に書き込むことができることが担保できるのであれば、制動ECU60の実行装置61は、更新処理の実行後にチェック処理を実行しなくてもよい。この場合、実行装置61は、更新処理によって更新用の第Mソフトウェアを第2記憶部62Bに書き込んだ後にリセット処理を実行するとよい。
- If it can be guaranteed that the Mth software for update can be written normally to the
・第2記憶部62Bを区分けする記憶領域の数は、N+1個よりも多くてもよい。
・車両10に設けられる制御システムは、グローバルネットワーク42を介して情報処理装置30と通信できるECUを少なくとも1つ備えていればよい。ここでいう「制御システム」は、通信装置20と、情報処理装置30と、情報処理装置30とグローバルネットワーク42を介して通信できる少なくとも1つのECUとを備えたものである。
The number of storage areas into which the
The control system provided in the
・ECUは、CPUとROMとを備えて、ソフトウェア処理を実行するものに限らない。すなわち、ECUは、以下(a)~(c)の何れかの構成であればよい。
(a)ECUは、コンピュータプログラムに従って各種処理を実行する一つ以上のプロセッサを備えている。プロセッサは、CPU並びに、RAM及びROMなどのメモリを含んでいる。メモリは、処理をCPUに実行させるように構成されたプログラムコード又は指令を格納している。メモリ、すなわちコンピュータ可読媒体は、汎用又は専用のコンピュータでアクセスできるあらゆる利用可能な媒体を含んでいる。
The ECU is not limited to an ECU that includes a CPU and a ROM and executes software processing. In other words, the ECU may have any one of the following configurations (a) to (c):
(a) The ECU includes one or more processors that execute various processes according to a computer program. The processor includes a CPU and memory such as RAM and ROM. The memory stores program codes or instructions that are configured to cause the CPU to execute processes. Memory, i.e., computer-readable media, includes any available media that can be accessed by a general-purpose or special-purpose computer.
(b)ECUは、各種処理を実行する一つ以上の専用のハードウェア回路を備えている。専用のハードウェア回路としては、例えば、特定用途向け集積回路、すなわちASIC又はFPGAを挙げることができる。なお、ASICは、「Application Specific Integrated Circuit」の略記であり、FPGAは、「Field Programmable Gate Array」の略記である。 (b) The ECU has one or more dedicated hardware circuits that perform various processes. Examples of dedicated hardware circuits include application specific integrated circuits, i.e., ASICs or FPGAs. Note that ASIC is an abbreviation for "Application Specific Integrated Circuit" and FPGA is an abbreviation for "Field Programmable Gate Array."
(c)ECUは、各種処理の一部をコンピュータプログラムに従って実行するプロセッサと、各種処理のうちの残りの処理を実行する専用のハードウェア回路とを備えている。
なお、本明細書において使用される「少なくとも1つ」という表現は、所望の選択肢の「1つ以上」を意味する。一例として、本明細書において使用される「少なくとも1つ」という表現は、選択肢の数が2つであれば「1つの選択肢のみ」又は「2つの選択肢の双方」を意味する。他の例として、本明細書において使用される「少なくとも1つ」という表現は、選択肢の数が3つ以上であれば「1つの選択肢のみ」又は「2つ以上の任意の選択肢の組み合わせ」を意味する。
(c) The ECU includes a processor that executes some of the various processes in accordance with a computer program, and a dedicated hardware circuit that executes the remaining processes among the various processes.
The term "at least one" used in this specification means "one or more" of the desired options. As an example, the term "at least one" used in this specification means "only one option" or "both of two options" if the number of options is two. As another example, the term "at least one" used in this specification means "only one option" or "any combination of two or more options" if the number of options is three or more.
<他の技術的思想>
上記実施形態及び変更例から把握できる技術的思想を付記として記載する。
(付記1)前記実行装置は、
前記記憶装置の前記第2ソフトウェアを、前記車両の外部から前記情報処理装置が取得した更新用の第2ソフトウェアに更新する場合、
前記更新処理において、前記更新用の第2ソフトウェアを前記ブランク領域に書き込み、
前記リセット処理において、更新前の前記第2ソフトウェアを前記記憶装置から消去することにより、当該記憶装置の領域のうち、前記更新前の第2ソフトウェアが書き込まれていた領域を前記ブランク領域とし、前記更新用の第2ソフトウェアが書き込まれている領域を前記第2記憶領域とすることが好ましい。
<Other technical ideas>
The technical ideas that can be understood from the above-described embodiment and modified examples will be described as supplementary notes.
(Supplementary Note 1) The execution device is
When updating the second software of the storage device to update second software acquired by the information processing device from outside the vehicle,
In the update process, the second software for update is written into the blank area;
In the reset process, it is preferable that the second software before the update is erased from the storage device, so that the area of the storage device in which the second software before the update was written becomes the blank area, and the area in which the second software for the update is written becomes the second storage area.
(付記2)前記電子制御装置が実現可能な機能の数をN個としたとき、
前記記憶装置は、オペレーションシステムが記憶される第1記憶部と、第2記憶部と、を有し、
前記第2記憶部は、N+1個の前記記憶領域に等分割されており、
N+1個の前記記憶領域のうちの1つが、前記ブランク領域として機能し、
前記ブランク領域以外のN個の前記記憶領域が、前記第1記憶領域と前記第2記憶領域と、を含むことが好ましい。
(Note 2) When the number of functions that the electronic control device can realize is N,
The storage device includes a first storage unit in which an operation system is stored, and a second storage unit;
The second storage unit is equally divided into N+1 storage areas,
One of the N+1 storage areas functions as the blank area;
It is preferable that the N storage areas other than the blank area include the first storage area and the second storage area.
10…車両
11…アクチュエータ
30…情報処理装置
42…グローバルネットワーク(車内ネットワークの一例)
60…制動ECU(電子制御装置の一例)
61…実行装置
62…記憶装置
621~62N…記憶領域
62X…ブランク領域
62A…第1記憶部
62B…第2記憶部
100…データセンタ
10: vehicle 11: actuator 30: information processing device 42: global network (an example of an in-vehicle network)
60... Brake ECU (an example of an electronic control device)
61: Execution device 62:
Claims (3)
ソフトウェアを記憶する記憶装置と、当該記憶装置のソフトウェアを実行することによって前記アクチュエータを制御する実行装置と、を備え、
前記複数の機能のうち、第1機能を実現するための第1ソフトウェアが書き込まれた前記記憶装置の領域を第1記憶領域とし、第2機能を実現するための第2ソフトウェアが書き込まれた前記記憶装置の領域を第2記憶領域とし、何れのソフトウェアも書き込まれていない前記記憶装置の領域をブランク領域とし、
前記実行装置は、
前記記憶装置の前記第1ソフトウェアを、前記車両の外部から前記情報処理装置が取得した更新用の第1ソフトウェアに更新する場合、
前記更新用の第1ソフトウェアを前記ブランク領域に書き込む更新処理と、
前記更新処理の実行後に、更新前の前記第1ソフトウェアを前記記憶装置から消去することにより、当該記憶装置の領域のうち、前記更新前の第1ソフトウェアが書き込まれていた領域を前記ブランク領域とし、前記更新用の第1ソフトウェアが書き込まれている領域を前記第1記憶領域とするリセット処理と、を実行する
電子制御装置。 An electronic control device is provided in a vehicle, the electronic control device including an actuator that operates to generate a braking force in the vehicle, and an information processing device that acquires software for controlling the actuator from outside the vehicle via wireless communication, the electronic control device being capable of communicating with the information processing device via an in-vehicle network, and the electronic control device operating the actuator to realize a plurality of functions in the vehicle,
a storage device that stores software; and an execution device that controls the actuator by executing the software in the storage device;
an area of the storage device in which a first software for realizing a first function of the plurality of functions is written is defined as a first storage area, an area of the storage device in which a second software for realizing a second function is written is defined as a second storage area, and an area of the storage device in which no software is written is defined as a blank area;
The execution device is
When updating the first software of the storage device to an update first software acquired by the information processing device from outside the vehicle,
an update process for writing the first software for update into the blank area;
and executing a reset process in which, after the update process is executed, the first software before the update is erased from the storage device, thereby making the area of the storage device in which the first software before the update was written the blank area, and making the area in which the first software for the update is written the first storage area.
前記更新処理の実行後において、前記更新用の第1ソフトウェアが前記記憶装置に正常に書き込まれたか否かを判定するチェック処理と、
前記チェック処理で前記更新用の第1ソフトウェアが正常に書き込まれたと判定した場合に、前記リセット処理を実行し、
前記チェック処理で前記更新用の第1ソフトウェアが正常に書き込まれていないと判定した場合に、前記記憶装置から当該更新用の第1ソフトウェアを消去し、前記更新前の第1ソフトウェアが前記記憶装置に書き込まれた状態を保持する
請求項1に記載の電子制御装置。 The execution device is
a check process for determining whether the first software for updating has been properly written to the storage device after the update process is performed;
executing the reset process when it is determined in the check process that the first software for update has been written normally;
2. The electronic control device according to claim 1, wherein, if the check process determines that the first software for update has not been written correctly, the first software for update is erased from the storage device, and the state in which the first software before the update is written in the storage device is maintained.
前記電子制御装置は、複数の機能を前記車両で実現させるべく前記アクチュエータを作動させるものであり、
前記複数の機能のうち、第1機能を実現するための第1ソフトウェアが書き込まれた前記記憶装置の領域を第1記憶領域とし、第2機能を実現するための第2ソフトウェアが書き込まれた前記記憶装置の領域を第2記憶領域とし、何れのソフトウェアも書き込まれていない前記記憶装置の領域をブランク領域とし、
前記車両に設けられた情報処理装置が、前記車両の外部のデータセンタから無線通信を介して更新用の前記第1ソフトウェアを取得している状況下で、
前記電子制御装置の実行装置が、当該更新用の第1ソフトウェアを前記ブランク領域に書き込む更新ステップと、
前記更新ステップの実行後に、前記実行装置が、更新前の前記第1ソフトウェアを前記記憶装置から消去することにより、当該記憶装置の領域のうち、前記更新前の第1ソフトウェアが書き込まれていた領域を前記ブランク領域とし、前記更新用の第1ソフトウェアが書き込まれている領域を前記第1記憶領域とするリセットステップと、を有する
ソフトウェア更新方法。 1. A software updating method for updating software of a storage device included in an electronic control device that adjusts a braking force generated in a vehicle by operating an actuator, comprising:
the electronic control device operates the actuators to realize a plurality of functions in the vehicle;
an area of the storage device in which a first software for realizing a first function of the plurality of functions is written is defined as a first storage area, an area of the storage device in which a second software for realizing a second function is written is defined as a second storage area, and an area of the storage device in which no software is written is defined as a blank area;
In a state where an information processing device provided in the vehicle acquires the first software for update from a data center outside the vehicle via wireless communication,
an update step in which an execution device of the electronic control device writes the first software for the update into the blank area;
and a reset step in which, after execution of the update step, the executing device erases the first software before the update from the storage device, thereby making the area of the storage device where the first software before the update was written the blank area, and making the area where the first software for update is written the first storage area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022153827A JP2024048008A (en) | 2022-09-27 | 2022-09-27 | Electronic control device and software update method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022153827A JP2024048008A (en) | 2022-09-27 | 2022-09-27 | Electronic control device and software update method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2024048008A true JP2024048008A (en) | 2024-04-08 |
Family
ID=90606680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022153827A Pending JP2024048008A (en) | 2022-09-27 | 2022-09-27 | Electronic control device and software update method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2024048008A (en) |
-
2022
- 2022-09-27 JP JP2022153827A patent/JP2024048008A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10678454B2 (en) | Vehicle information communication system | |
US20220244945A1 (en) | Vehicle controller, program updating method, and non-transitory storage medium that stores program for updating program | |
CN110244958B (en) | Method and device for updating calibration data of a vehicle | |
CN113383390A (en) | Electronic control device and program update method | |
WO2018189975A1 (en) | Relay apparatus, transfer method, and computer program | |
CN115136122A (en) | Host device, data distribution system, and update control program | |
JP2023168511A (en) | Control device, method, program and vehicle | |
CN110879714B (en) | Apparatus and computer-readable storage medium for providing update of vehicle | |
US20220063646A1 (en) | Onboard device, information generating method, non-transitory storage medium, and vehicle | |
CN111788810A (en) | Control system for a motor vehicle, method for operating a control system and motor vehicle having such a control system | |
US20230336356A1 (en) | Data storage device, data storage method, and non-transitory computer readable storage medium | |
JP2024048008A (en) | Electronic control device and software update method | |
US20220391192A1 (en) | Ota master, center, system, method, non-transitory storage medium, and vehicle | |
WO2024062898A1 (en) | Brake control device, and software updating method | |
US20220244946A1 (en) | Ota master, update control method, non-transitory storage medium, and vehicle | |
EP3961379A1 (en) | Software update device, software update method, non-transitory storage medium, and vehicle | |
US11995429B2 (en) | Software update device, update control method, non-transitory storage medium, and server | |
WO2024062897A1 (en) | Control system and software update method | |
JP7484814B2 (en) | Vehicle electronic control device and update program | |
JP7464013B2 (en) | Center, OTA master, method, program, and vehicle | |
US20220405083A1 (en) | Ota master, system, method, non-transitory storage medium, and vehicle | |
WO2024070483A1 (en) | Control system | |
US20220391193A1 (en) | Ota master, system, method, non-transitory storage medium, and vehicle | |
US20220405080A1 (en) | Ota master, system, method, non-transitory storage medium, and vehicle | |
KR20220023203A (en) | Software reprogramming method and apparatus providing the same |