JP2023174004A - Vehicle control apparatus and program update method - Google Patents
Vehicle control apparatus and program update method Download PDFInfo
- Publication number
- JP2023174004A JP2023174004A JP2022086595A JP2022086595A JP2023174004A JP 2023174004 A JP2023174004 A JP 2023174004A JP 2022086595 A JP2022086595 A JP 2022086595A JP 2022086595 A JP2022086595 A JP 2022086595A JP 2023174004 A JP2023174004 A JP 2023174004A
- Authority
- JP
- Japan
- Prior art keywords
- program
- communication path
- vehicle control
- communication
- control 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 abstract description 11
- 238000004891 communication Methods 0.000 claims abstract description 102
- 238000012790 confirmation Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
本発明は、車両制御装置に関し、特に、プログラム更新方法に関する。 The present invention relates to a vehicle control device, and particularly to a program update method.
自動車用の車両制御装置は、不揮発性メモリに書き込まれているプログラムを新しいプログラムに書き換えるプログラム更新を行うことがある。 A vehicle control device for an automobile may update a program written in a nonvolatile memory to a new program.
本技術分野の背景技術として、以下の先行技術がある。特許文献1(特開2014-139848号公報)には、電気的にデータの消去及び書き込みが可能な不揮発性メモリを備えた自動車用電子制御装置であって、外部から転送される書き込みデータのサイズが、前記不揮発性メモリの書き換え領域サイズの半分以下である場合に、転送された書き込みデータを一時的に保存し、複数の書き込みデータをまとめて前記書き換え領域サイズとして、前記不揮発性メモリに一括して書き込む自動車用電子制御装置が記載されている。 As background technology in this technical field, there is the following prior art. Patent Document 1 (Japanese Unexamined Patent Application Publication No. 2014-139848) discloses an electronic control device for an automobile equipped with a nonvolatile memory that can electrically erase and write data, and the size of written data transferred from the outside. is less than half of the rewrite area size of the non-volatile memory, the transferred write data is temporarily stored, and a plurality of write data are collectively stored in the non-volatile memory as the rewrite area size. An electronic control unit for automobiles that writes data is described.
近年、車載プログラムの規模が大きくなっており、車載プログラムの規模が大きくなるとプログラムアップデートに時間がかかるという問題がある。 In recent years, the scale of in-vehicle programs has increased, and as the scale of in-vehicle programs increases, there is a problem in that it takes time to update the programs.
そこで、本発明は、プログラムの更新を高速化する技術の提供を目的とする。 Therefore, an object of the present invention is to provide a technology for speeding up program updates.
本願において開示される発明の代表的な一例を示せば以下の通りである。すなわち、プログラムを実行する車両制御装置であって、前記プログラムを実行するプロセッサと、外部機器との間で第1通信経路での通信と前記第1通信経路より高速な第2通信経路での通信が可能な通信部と、前記第1通信経路用の第1通信プログラムを記憶する不揮発性メモリと、データを一時的に記憶する揮発性メモリと、を備え、前記プログラムを更新する際に、前記第2通信経路用の第2通信プログラムを前記外部機器から受信し、受信した前記第2通信プログラムを前記揮発性メモリに書き込み、前記第2通信プログラムを実行し、前記第2通信経路で前記不揮発性メモリに記憶された前記プログラムを書き換えることを特徴とする。 A typical example of the invention disclosed in this application is as follows. That is, a vehicle control device that executes a program, in which a processor that executes the program and an external device communicate through a first communication path and a second communication path that is faster than the first communication path. a communication unit capable of updating the program, a non-volatile memory that stores a first communication program for the first communication path, and a volatile memory that temporarily stores data; A second communication program for a second communication path is received from the external device, the received second communication program is written in the volatile memory, the second communication program is executed, and the non-volatile memory is The present invention is characterized in that the program stored in the physical memory is rewritten.
本発明の一態様によれば、プログラムの更新を高速化できる。前述した以外の課題、構成及び効果は、以下の実施例の説明によって明らかにされる。 According to one aspect of the present invention, it is possible to speed up program updates. Problems, configurations, and effects other than those described above will be made clear by the description of the following examples.
[実施例1]
以下、添付された図面を参照し、本発明を実施するための実施例について詳述する。
[Example 1]
Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the accompanying drawings.
図1は、本発明の実施例の車両制御装置200の構成を示す図である。
FIG. 1 is a diagram showing the configuration of a
本実施例の車両制御装置200は、プログラムアップデートするために外部機器100と接続されている。車両制御装置200は、プログラムを実行するプロセッサ250、電源遮断時にも記憶内容を保持可能な不揮発性メモリ210と、電源遮断時に記憶内容が保持されない揮発性メモリ220を有する。車両制御装置200は、第1通信経路110及び第2通信経路120で外部機器100と通信可能なハードウェアを有し、外部機器100と有線又は無線で接続されている。また、車両制御装置200は、第1通信経路中継装置230と第2通信経路中継装置240を有する。
The
このとき、第1通信経路110はCAN(登録商標)、第2通信経路120はEthernet(登録商標)であるとよいが、第2通信経路120の通信速度が第1通信経路110の通信速度より早ければ、他の通信経路でもよい。
At this time, the
車両制御装置200の不揮発性メモリ210には、起動プログラムBPと、車両を制御する第1アプリケーションプログラムAP1が格納される。第1アプリケーションプログラムAP1は、プログラムアップデートの対象である。起動プログラムBPは、第1通信経路110を利用可能とする初期化部と、第1通信経路110で通信する送受信部と、揮発性メモリ220にプログラムを書き込む書き込み部と、揮発性メモリ220に書き込まれたプログラムを確認する書き込み確認部と、揮発性メモリ220に書き込まれたプログラムを実行する揮発性メモリ実行部を有する。
The
車両制御装置200は、第1通信経路110からデータを受信するための第1通信経路中継装置230と、第2通信経路120からデータを受信するための第2通信経路中継装置240を有する。外部機器100は、第1通信経路110と第2通信経路120を介して通信するハードウェアを有する。
The
外部機器100には、書き換えプログラムWPと、プログラムアップデートに使用する第2アプリケーションプログラムAP2が格納される。書き換えプログラムWPは、第2通信経路初期化部、送受信部、不揮発性メモリ書き込み部、及び書き込み確認部を有する。書き換えプログラムWPは、不揮発性メモリ実行部を有してもよい。第2アプリケーションプログラムAP2は、車両制御装置200の不揮発性メモリ上のプログラムをアップデートするプログラムを有する。
The
図3に示すように、初期状態において、車両制御装置200の不揮発性メモリ210には、起動プログラムBPと第1アプリケーションプログラムAP1が書き込まれている。また、車両制御装置200は、第1通信経路110と第2通信経路120を用いて外部機器100と通信可能なハードウェアを搭載している。車両制御装置200の起動プログラムBPは、第1通信経路110で外部機器100と通信可能な通信プログラムを含んでおり、第2通信経路120で外部機器100と通信可能な通信プログラムを含んでいない。
As shown in FIG. 3, in an initial state, a startup program BP and a first application program AP1 are written in the
まず、図4に示すように、車両制御装置200は、起動プログラムBPを実行して、第1通信経路110で車両制御装置200と確認データを送受信し、第1通信経路110で車両制御装置200と通信可能なことを確認する。
First, as shown in FIG. 4, the
次に、図5に示すように、外部機器100は、第2通信経路120経由で通信可能な書き換えプログラムWPを第1通信経路110で車両制御装置200に送信する(図2のS10)。次に、車両制御装置200は、外部機器100から送信された書き換えプログラムWPを受信する(図2のS11)。次に、車両制御装置200は、受信した書き換えプログラムWPを揮発性メモリ220に格納する(図2のS12)。
Next, as shown in FIG. 5, the
次に、図6に示すように、外部機器100は、第1通信経路110でプログラムの確認コマンドを車両制御装置200に送信して、揮発性メモリ220に書き込まれた書き換えプログラムWPに欠損がないかを確認する(図2のS13)。
Next, as shown in FIG. 6, the
次に、図7に示すように、車両制御装置200は、揮発性メモリ220に書き換えプログラムWPが正常に書き込まれたことを確認した後、書き換えプログラムWPを実行する(図2のS14)。
Next, as shown in FIG. 7, the
次に、図8に示すように、外部機器100は、車両制御装置200から第2通信経路120で確認データを送受信して、第2通信経路120で車両制御装置200と通信可能なことを確認する(図2のS15)。次に、車両制御装置200は、外部機器100から正常にデータを受信すると、外部機器100に応答を送信した後、プログラムアップデートを開始する(図2のS16)。
Next, as shown in FIG. 8, the
次に、図9に示すように、外部機器100は、第2通信経路120で第2アプリケーションプログラムAP2を車両制御装置200に送信して、プログラムアップデートする。このとき、第2アプリケーションプログラムAP2を分割して、車両制御装置200に送信するとよい(図2のS17)。次に、車両制御装置200は、第2通信経路120で第2アプリケーションプログラムAP2を受信する。車両制御装置200は、受信した分割された第2アプリケーションプログラムAP2を揮発性メモリ220に格納する(図2のS18)。次に、車両制御装置200はプログラムアップデートを行う。不揮発性メモリ210上の第1アプリケーションプログラムAP1に対して、揮発性メモリ220に格納した第2アプリケーションプログラムAP2を上書きして、プログラムをアップデートする(図2のS19)。この処理を第2アプリケーションプログラムAP2の全てのアップデートが完了するまで繰り返す。
Next, as shown in FIG. 9, the
次に、図10に示すように、車両制御装置200は、第2アプリケーションプログラムAP2のアップデート完了後、アップデートしたプログラムの確認コマンドを第2通信経路120で受信すると、プログラムが正常に書き込まれているかを確認する(図2のS20)。次に、車両制御装置200は、正常にアップデートされた場合、書き込み完了応答を外部機器100に送信する(図2のS21)。正常にアップデートされていない場合、第2アプリケーションプログラムAP2を再度アップデートする。
Next, as shown in FIG. 10, after completing the update of the second application program AP2, the
次に、図11に示すように、車両制御装置200は、アップデート完了応答を送信後、揮発性メモリ220をリセットし、揮発性メモリ220に書き込まれている書き換えプログラムWPを消去する(図2のS22)。このため、車両制御装置200に搭載されるメモリ容量を増加せずに、書き換えプログラムWPを導入できる。このとき、図12に示すように、不揮発性メモリ210の起動プログラムBPに処理を移動して、起動プログラムBPを実行した後、車両制御装置200をリセットしてもよい。
Next, as shown in FIG. 11, after transmitting the update completion response, the
実施例1によれば、以下の効果を得ることができる。 According to Example 1, the following effects can be obtained.
プログラムが、高速な第2通信経路120で通信不可能で、低速な第1通信経路110だけで通信可能な場合、本実施例の方法では、第2通信経路120で通信可能な書き換えプログラムWPを車両制御装置200で実行可能とする。これにより、第2通信経路120でアップデートプログラムを転送でき、車両制御装置200のプログラムアップデート時間を短縮できる。
If the program cannot communicate through the high-speed
また、車両制御装置200の揮発性メモリ220に第2通信経路120で通信可能な書き換えプログラムWPを配置するため、プログラムアップデート後に車両制御装置200に書き換えプログラムWPを残さずに、書き換えプログラムWPを一時的に利用できる。よって、車両制御装置200に搭載するメモリ容量を増加せずに、車両制御装置200の機能を追加できる。
In addition, in order to arrange the rewrite program WP that can communicate via the
また、第1アプリケーションプログラムAP1だけでなく、起動プログラムBPもアップデートする場合、車両制御装置200は、起動プログラムBPの実行中に起動プログラムBPをアップデートできない。本実施例の方法では、車両制御装置200の揮発性メモリ上の書き換えプログラムWPでプログラムアップデート用のプログラムを実行するため、不揮発性メモリ210上の起動プログラムBPをアップデートできる。
Further, when updating not only the first application program AP1 but also the starting program BP, the
本実施例によって、第1通信経路110で通信可能なサイズに分割したデータを集約し、第2通信経路120で車両制御装置200に送信して、車両制御装置200のプログラムをアップデートするので、外部機器100側も、従来のアップデート支援ツールを変更することなくプログラムを高速にアップデートできる。
According to this embodiment, the data divided into communicable sizes through the
なお、本実施例では第1通信経路110をCAN、第2通信経路120をEthernetとして説明したが、他の第2通信経路120の通信速度が第1通信経路110の通信速度より早ければ、他の通信経路でもよい。例えば、第1通信経路110をCANとし、第2通信経路120をCAN-FDとしてもよい。また、第2通信経路120としてEthernetより高速な通信経路が導入された場合、第1通信経路110をEthernetとし、第2通信経路120を当該高速な通信経路としてもよい。
In this embodiment, the
なお、本実施例では外部機器100と車両制御装置200を有線で接続し、通信を行うと説明したが、他の通信経路でもよい。第1通信経路110と第2通信経路120で外部機器100と車両制御装置200が無線で通信してもよい。
In this embodiment, it has been explained that the
以上に説明したように、本発明の車両制御装置200は、プログラムを更新する際に、第2通信経路用の第2通信プログラム(書き換えプログラムWP)を外部機器100から受信し、受信した第2通信プログラムを揮発性メモリ220に書き込み、第2通信プログラムを実行し、第2通信経路120で不揮発性メモリ210に記憶されたアプリケーションプログラムAP1を書き換えるので、第2通信経路120による通信機能を有するが、第1通信経路110でプログラム更新を行う車両制御装置200に、第2通信経路120での更新プログラム転送機能を追加でき、プログラムを高速にアップデートできる。
As explained above, when updating the program, the
なお、本発明は前述した実施例に限定されるものではなく、添付した特許請求の範囲の趣旨内における様々な変形例及び同等の構成が含まれる。例えば、前述した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに本発明は限定されない。また、ある実施例の構成の一部を他の実施例の構成に置き換えてもよい。また、ある実施例の構成に他の実施例の構成を加えてもよい。また、各実施例の構成の一部について、他の構成の追加・削除・置換をしてもよい。 Note that the present invention is not limited to the embodiments described above, and includes various modifications and equivalent configurations within the scope of the appended claims. For example, the embodiments described above have been described in detail to explain the present invention in an easy-to-understand manner, and the present invention is not necessarily limited to having all the configurations described. Further, a part of the configuration of one embodiment may be replaced with the configuration of another embodiment. Further, the configuration of one embodiment may be added to the configuration of another embodiment. Further, other configurations may be added, deleted, or replaced with a part of the configuration of each embodiment.
また、前述した各構成、機能、処理部、処理手段等は、それらの一部又は全部を、例えば集積回路で設計する等により、ハードウェアで実現してもよく、プロセッサがそれぞれの機能を実現するプログラムを解釈し実行することにより、ソフトウェアで実現してもよい。 Further, each of the above-mentioned configurations, functions, processing units, processing means, etc. may be realized in part or in whole by hardware, for example by designing an integrated circuit, and a processor realizes each function. It may also be realized by software by interpreting and executing a program.
各機能を実現するプログラム、テーブル、ファイル等の情報は、メモリ、ハードディスク、SSD(Solid State Drive)等の記憶装置、又は、ICカード、SDカード、DVD等の記録媒体に格納することができる。 Information such as programs, tables, files, etc. that realize each function can be stored in a storage device such as a memory, a hard disk, or an SSD (Solid State Drive), or a recording medium such as an IC card, an SD card, or a DVD.
また、制御線や情報線は説明上必要と考えられるものを示しており、実装上必要な全ての制御線や情報線を示しているとは限らない。実際には、ほとんど全ての構成が相互に接続されていると考えてよい。 Furthermore, the control lines and information lines shown are those considered necessary for explanation, and do not necessarily show all the control lines and information lines necessary for implementation. In reality, almost all configurations can be considered interconnected.
100 外部機器
110 第1通信経路
120 第2通信経路
200 車両制御装置
210 不揮発性メモリ
220 揮発性メモリ
230 第1通信経路中継装置
240 第2通信経路中継装置
BP 起動プログラム
WP 書き換えプログラム
AP1 第1アプリケーションプログラム
AP2 第2アプリケーションプログラム
100
Claims (4)
前記プログラムを実行するプロセッサと、
外部機器との間で第1通信経路での通信と前記第1通信経路より高速な第2通信経路での通信が可能な通信部と、
前記第1通信経路用の第1通信プログラムを記憶する不揮発性メモリと、
データを一時的に記憶する揮発性メモリと、を備え、
前記プログラムを更新する際に、前記第2通信経路用の第2通信プログラムを前記外部機器から受信し、
受信した前記第2通信プログラムを前記揮発性メモリに書き込み、
前記第2通信プログラムを実行し、前記第2通信経路で前記不揮発性メモリに記憶された前記プログラムを書き換えることを特徴とする車両制御装置。 A vehicle control device that executes a program,
a processor that executes the program;
a communication unit capable of communicating with an external device through a first communication path and a second communication path faster than the first communication path;
a nonvolatile memory that stores a first communication program for the first communication path;
Equipped with volatile memory that temporarily stores data,
when updating the program, receiving a second communication program for the second communication path from the external device;
writing the received second communication program into the volatile memory;
A vehicle control device that executes the second communication program and rewrites the program stored in the nonvolatile memory through the second communication path.
前記第2通信プログラムを実行し、前記第2通信経路で通信可能か確認することを特徴とする車両制御装置。 The vehicle control device according to claim 1,
A vehicle control device that executes the second communication program and checks whether communication is possible through the second communication path.
前記プログラムの更新完了後に前記揮発性メモリ上の前記第2通信プログラムを消去することを特徴とする車両制御装置。 The vehicle control device according to claim 1,
A vehicle control device characterized in that the second communication program on the volatile memory is erased after the update of the program is completed.
前記車両制御装置は、前記プログラムを実行するプロセッサと、外部機器との間で第1通信経路での通信と前記第1通信経路より高速な第2通信経路での通信が可能な通信部と、前記第1通信経路用の第1通信プログラムを記憶する不揮発性メモリと、データを一時的に記憶する揮発性メモリと、を有し、
前記プログラム更新方法は、
前記車両制御装置が、前記プログラムを更新する際に、前記第2通信経路用の第2通信プログラムを前記外部機器から受信し、
前記車両制御装置が、受信した前記第2通信プログラムを前記揮発性メモリ上に書き込み、
前記車両制御装置が、前記第2通信プログラムを実行し、前記第2通信経路で前記不揮発性メモリに記憶された前記プログラムを書き換えることを特徴とするプログラム更新方法。 A program update method for updating a program executed in a vehicle control device, the method comprising:
The vehicle control device includes a processor that executes the program and a communication unit capable of communicating with an external device through a first communication path and a second communication path faster than the first communication path; a nonvolatile memory that stores a first communication program for the first communication path; and a volatile memory that temporarily stores data;
The program update method is as follows:
The vehicle control device receives a second communication program for the second communication path from the external device when updating the program;
the vehicle control device writes the received second communication program onto the volatile memory;
A program update method characterized in that the vehicle control device executes the second communication program and rewrites the program stored in the nonvolatile memory via the second communication path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022086595A JP2023174004A (en) | 2022-05-27 | 2022-05-27 | Vehicle control apparatus and program update method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022086595A JP2023174004A (en) | 2022-05-27 | 2022-05-27 | Vehicle control apparatus and program update method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023174004A true JP2023174004A (en) | 2023-12-07 |
Family
ID=89031216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022086595A Pending JP2023174004A (en) | 2022-05-27 | 2022-05-27 | Vehicle control apparatus and program update method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023174004A (en) |
-
2022
- 2022-05-27 JP JP2022086595A patent/JP2023174004A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3200077B1 (en) | Vehicle control device, reprogramming system | |
TWI442228B (en) | Storage device wear leveling | |
US20070214309A1 (en) | Nonvolatile storage device and data writing method thereof | |
US20080250188A1 (en) | Memory Controller, Nonvolatile Storage, Nonvolatile Storage System, and Memory Control Method | |
JP4315488B2 (en) | Data storage device, data processing device, data processing system and data processing method | |
US10475516B2 (en) | Data storage device and data erasing method wherein after erasing process, predetermined value is written to indicate completion of said erasing method | |
TW201727472A (en) | Data storing method and system thereof | |
JPWO2010013445A1 (en) | Nonvolatile storage device, host device, nonvolatile storage system, data recording method, and program | |
CN110402428B (en) | In-vehicle control device and program update software | |
CN111026427A (en) | Remote online upgrading method for embedded system containing CPU and FPGA | |
CN101025711B (en) | Apparatus and method for controlling flash memory | |
CN111813432A (en) | FPGA configuration upgrading method and FPGA platform | |
JP6447469B2 (en) | Rewriting system | |
JP2023174004A (en) | Vehicle control apparatus and program update method | |
CN115599424A (en) | Method for remotely updating FPGA (field programmable Gate array) firmware by adopting CPU (Central processing Unit) | |
JP4127307B2 (en) | Data storage device, data processing system, data processing method, and data processing device | |
US10261899B2 (en) | Method, device and system for data processing using dedicated mapping between logical and physical addresses | |
CN113515082A (en) | Polling communication method and device | |
US20220204008A1 (en) | Arithmetic processing device, vehicle control device, and update method | |
US20230143921A1 (en) | Electronic control system, storage medium storing data structure of software package, and storage medium storing computer program | |
CN107025062B (en) | Data storage method and system thereof | |
JP2023075443A (en) | On-vehicle electronic control device and data initialization method | |
WO2023203768A1 (en) | Electronic control device and writing control method | |
CN110018785B (en) | Method for executing data reading and writing in data migration between volumes and electronic device | |
JPH10198568A (en) | Device and method for flash memory writing |