JP6765343B2 - Rewriting system, rewriting device and computer - Google Patents
Rewriting system, rewriting device and computer Download PDFInfo
- Publication number
- JP6765343B2 JP6765343B2 JP2017105450A JP2017105450A JP6765343B2 JP 6765343 B2 JP6765343 B2 JP 6765343B2 JP 2017105450 A JP2017105450 A JP 2017105450A JP 2017105450 A JP2017105450 A JP 2017105450A JP 6765343 B2 JP6765343 B2 JP 6765343B2
- Authority
- JP
- Japan
- Prior art keywords
- area
- stored
- data
- rewriting
- program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000000034 method Methods 0.000 description 41
- 238000004891 communication Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Description
本発明は、書換えシステム、書換え装置及びコンピュータに関する。 The present invention relates to a rewriting system, a rewriting device and a computer.
最近の自動車には、エンジン制御や走行制御、ナビゲーションや情報通信などのために、ECU(コンピュータ)が搭載されている。自動車における情報処理の高度化・多様化により、車載用のソフトウェアの改良、新規開発が盛んに行われており、車両販売後のプログラムのバージョンアップを考慮する必要が出てきている。 Recent automobiles are equipped with an ECU (computer) for engine control, running control, navigation, information communication, and the like. Due to the sophistication and diversification of information processing in automobiles, in-vehicle software is being actively improved and newly developed, and it is becoming necessary to consider upgrading the program after the vehicle is sold.
特許文献1には、車両制御用のプログラム等の書き換えを行う技術が記載されている。
ここで、上述した技術では、書換えに当たって、書き換えずにそのまま残す内容と、書き換える内容とをリンクさせて、全内容をECUに書き込むこととなっているため、書き換え時間が長くなりがちとなる問題がある。 Here, in the above-mentioned technology, when rewriting, since the content to be left as it is without being rewritten and the content to be rewritten are linked and the entire content is written to the ECU, there is a problem that the rewriting time tends to be long. is there.
本発明は、以上の背景に鑑みてなされたものであり、書き換え時間を短縮できる書換えシステム、当該書換えシステムに用いられる書換え装置及びコンピュータを提供することを目的としている。 The present invention has been made in view of the above background, and an object of the present invention is to provide a rewriting system capable of shortening the rewriting time, a rewriting device used in the rewriting system, and a computer.
本発明の第1の態様である書換えシステムは、メモリを有するコンピュータと、前記メモリに記憶されている記憶内容の書換えデータについて、少なくとも前記コンピュータへの送信を行う書換え装置と、を備えた書換えシステムであって、前記コンピュータにおける前記メモリが、書換え対象となる記憶内容が記憶される書換え対象エリアと、書換え対象とならない記憶内容が記憶される書換え対象外エリアと、を有し、前記書換え装置が、前記メモリにおける前記書換え対象エリアの記憶内容のみを対象として当該記憶内容の書換えデータを前記コンピュータに送信し、前記書換え対象エリアが、1つ以上のプログラムが記憶されるプログラムエリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される変数が記憶される変数エリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される設定値が記憶される設定値エリアと、を有しており、前記書換え装置は、前記プログラムエリアに記憶されているプログラム、前記変数エリアに記憶されている変数、及び前記設定値エリアに記憶されている設定値、のうち任意の1つ以上のデータを選択して当該1つ以上のデータの書換えデータを、前記1つ以上のデータが、前記プログラムエリア、前記変数エリア、及び前記設定値エリアのうちの何れのエリアに記憶されているかをエリア単位で表すアドレスデータを含ませて、1つのエリアに対応するデータ単位で送信するものであり、複数のエリアのデータを書き換えるべく該当データを組み合わせて送信する場合であっても前記データ単位で送信を行う。 The rewriting system according to the first aspect of the present invention is a rewriting system including a computer having a memory and a rewriting device for transmitting at least the rewriting data of the stored contents stored in the memory to the computer. The memory in the computer has a rewrite target area in which stored contents to be rewritten are stored and a non-rewrite target area in which stored contents not to be rewritten are stored. , The rewriting data of the stored contents is transmitted to the computer only for the stored contents of the rewriting target area in the memory, and the rewriting target area is a program area in which one or more programs are stored, and the one. A variable area in which variables used in processing are stored for each of the above programs, and a setting value in which setting values used in processing are stored for each of the one or more programs. The rewriting device has an area, and the rewriting device is arbitrary of a program stored in the program area, a variable stored in the variable area, and a set value stored in the set value area. One or more data of the above is selected, and the rewriting data of the one or more data is stored in any of the program area, the variable area, and the set value area. It includes address data that indicates whether or not it is done in area units, and it is transmitted in data units corresponding to one area, even when the corresponding data is combined and transmitted in order to rewrite the data in multiple areas. Transmission is performed in the data unit .
本発明の第2の態様である書換え装置は、コンピュータが有するメモリに記憶された記憶内容の書換えデータについて、少なくとも前記コンピュータへの送信を行う書換え装置であって、前記メモリが、書換え対象となる記憶内容が記憶される書換え対象エリアと、書換え対象とならない記憶内容が記憶される書換え対象外エリアと、を有し、前記メモリにおける前記書換え対象エリアの記憶内容のみを対象として当該記憶内容の書換えデータを前記コンピュータに送信し、前記書換え対象エリアが、1つ以上のプログラムが記憶されるプログラムエリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される変数が記憶される変数エリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される設定値が記憶される設定値エリアと、を有しており、前記プログラムエリアに記憶されているプログラム、前記変数エリアに記憶されている変数、及び前記設定値エリアに記憶されている設定値、のうち任意の1つ以上のデータを選択して当該1つ以上のデータの書換えデータを、前記1つ以上のデータが、前記プログラムエリア、前記変数エリア、及び前記設定値エリアのうちの何れのエリアに記憶されているかをエリア単位で表すアドレスデータを含ませて、1つのエリアに対応するデータ単位で送信するものであり、複数のエリアのデータを書き換えるべく該当データを組み合わせて送信する場合であっても前記データ単位で送信を行う。 The rewriting device according to the second aspect of the present invention is a rewriting device that transmits at least the rewriting data of the stored contents stored in the memory of the computer to the computer, and the memory is the target of rewriting. It has a rewrite target area where the stored contents are stored and a rewrite target area where the stored contents that are not the rewrite target are stored, and the rewritten contents are rewritten only for the stored contents of the rewrite target area in the memory. Data is transmitted to the computer, and the rewrite target area stores a program area in which one or more programs are stored and a variable used in processing for each of the one or more programs. Each of the variable area and the one or more programs has a set value area in which the set value used in processing is stored, and the program stored in the program area, said. Select any one or more data from the variables stored in the variable area and the set values stored in the set value area, and rewrite the one or more data to the one or more. Data is transmitted in data units corresponding to one area, including address data indicating which area of the program area, the variable area, and the set value area is stored in each area. Even when the corresponding data is combined and transmitted in order to rewrite the data in a plurality of areas, the data is transmitted in the data unit .
本発明の第3の態様であるコンピュータは、メモリを有し、当該メモリの記憶内容の書換えデータについて、少なくとも書換え装置から受信するコンピュータであって、前記メモリが、書換え対象となる記憶内容が記憶される書換え対象エリアと、書換え対象とならない記憶内容が記憶される書換え対象外エリアと、を有し、前記書換え対象エリアが、1つ以上のプログラムが記憶されるプログラムエリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される変数が記憶される変数エリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される設定値が記憶される設定値エリアと、を有しており、前記プログラムエリアに記憶されているプログラム、前記変数エリアに記憶されている変数、及び前記設定値エリアに記憶されている設定値、のうちから選択された任意の1つ以上のデータの書換えデータを、前記1つ以上のデータが、前記プログラムエリア、前記変数エリア、及び前記設定値エリアのうちの何れのエリアに記憶されているかをエリア単位で表すアドレスデータを含んだ状態で、1つのエリアに対応するデータ単位で受信し、当該データ単位での前記書換え対象エリアの書換えを、前記アドレスデータを参照して行うものであり、複数のエリアのデータを書き換えるべく該当データが組み合わされて送信される場合であっても前記データ単位で受信を行う。 The computer according to the third aspect of the present invention is a computer that has a memory and receives at least the rewriting data of the stored contents of the memory from the rewriting device, and the memory stores the stored contents to be rewritten. The rewrite target area has a rewrite target area and a non-rewrite target area in which stored contents that are not rewrite targets are stored, and the rewrite target area includes a program area in which one or more programs are stored and the one or more. A variable area in which variables used in processing are stored for each of the programs, and a setting value area in which setting values used in processing are stored for each of the one or more programs. And, any one selected from the program stored in the program area, the variable stored in the variable area, and the set value stored in the set value area. Rewriting data of one or more data includes address data indicating in each area which of the program area, the variable area, and the set value area the one or more data is stored. In this state, it is received in the data unit corresponding to one area, and the rewriting target area in the data unit is rewritten with reference to the address data, and it corresponds to rewriting the data in a plurality of areas. Even when data is combined and transmitted, reception is performed in the data unit.
以上説明したように第1、第2及び第3の態様によれば、コンピュータが有するメモリにおける書換え対象エリアの記憶内容のみについて書換えデータが送信されることから、書き換え時間を短縮できる。 As described above, according to the first, second, and third aspects, since the rewriting data is transmitted only for the stored contents of the rewriting target area in the memory of the computer, the rewriting time can be shortened.
第1、第2及び第3の態様によれば、書換え対象エリアの記憶内容について、書換え装置が選択したデータのみについて書換えデータが送信されることから、書き換え時間を一層短縮できる。 According to the first, second and third aspects, the rewriting time can be further shortened because the rewriting data is transmitted only for the data selected by the rewriting device for the stored contents of the rewriting target area.
以下、本発明の一実施形態を、図1及び図2に基づいて説明する。図1は、本発明の書換えシステムの一実施形態を示すブロック図である。図2は、図1に示すECUのフラッシュROMの構成を示すブロック図である。 Hereinafter, an embodiment of the present invention will be described with reference to FIGS. 1 and 2. FIG. 1 is a block diagram showing an embodiment of the rewriting system of the present invention. FIG. 2 is a block diagram showing a configuration of the flash ROM of the ECU shown in FIG.
本発明の書換えシステム1は、複数のECU(コンピュータ)10と、これらECU10のプログラムを書換えるための書換え装置20と、を備えている。複数のECU10は、車両の各部に配置され、通信ライン30により互いに通信可能に接続されている。本実施形態では、複数のECU10は、通信ライン30によりバス接続され、互いに通信可能に接続されている。通信ライン30には、上記書換え装置20を着脱自在に接続するための接続部40が設けられている。
The
複数のECU10はそれぞれ、インタフェース(以下、I/F)11と、入力回路12と、出力回路13と、マイクロコンピュータ(以下マイコン)14と、を有している。I/F11は、他のECU10及び書換え装置20と通信を行うための通信インタフェースである。本実施形態では、I/F11は、各種通信(CAN、LIN、その他通信方式)に対応した信号の入出力が可能なインタフェースである。
Each of the plurality of
入力回路12は、ローカルスイッチ(以下、ローカルSW)50からの信号が入力される回路である。図1では、入力回路12には、ローカルSW50からの信号のみ入力されているが、これに限ったものではなく、他に各種センサの出力をA/D変換したAD入力やPWM入力などが入力されていてもよい。
The
出力回路13は、バルブ61やモータ62などの負荷が接続される回路である。図1では、出力回路13には、バルブ61とモータ62しか接続されていないが、これに限ったものではなく、車両に搭載された負荷が接続されていればよい。
The
マイコン14は、CPU(Central Processing Unit)14Aと、フラッシュROM(Read Only Memory)14Bと、RAM(Random Access Memory)14Cと、から構成されている。CPU14Aは、ECU10全体の制御を司り、処理プログラムに従って各種の処理を行う。フラッシュROM14B(メモリ)は、CPU14Aが行う処理のプログラム等を格納するメモリである。RAM14Cは、CPU14Aでの各種の処理過程で利用するワークエリア、各種データを格納するデータ記憶エリアなどを有するメモリである。
The
フラッシュROM14Bは、図2に示すように、書換え対象外エリアA1と、書換え対象エリアA2と、の2つのエリアが形成されている。
As shown in FIG. 2, the
書換え対象外エリアA1には、書換え対象とならない記憶内容(プログラムや変数や設定値)が記憶されている。本実施形態では、書換え対象外エリアA1内には、基本制御プログラムエリアA11と、通信制御プログラムエリアA12と、変数エリアA13と、設定値エリアA14と、書換えプログラムエリアA15と、が形成されている。 In the area A1 not subject to rewriting, stored contents (programs, variables, setting values) that are not subject to rewriting are stored. In the present embodiment, the basic control program area A11, the communication control program area A12, the variable area A13, the set value area A14, and the rewrite program area A15 are formed in the area A1 not subject to rewriting. ..
基本制御プログラムエリアA11には、各種プログラムを周期的に実行するための基本プログラムが記憶されている。通信制御プログラムエリアA12には、CANやLINなどの通信処理を実行するための通信プログラムが記憶されている。変数エリアA13には、エリア内の各プログラムを実行する上で必要な変数が記憶されている。設定値エリアA14には、エリア内の各プログラムを実行する上で必要な設定値(閾値や最小値、最大値、条件分岐に使用する値、カウンター値、初期値等)が記憶されている。書換えプログラムエリアA15には、書換え対象エリアA2の書換え処理を実行するための書換えプログラムが記憶されている。 In the basic control program area A11, a basic program for periodically executing various programs is stored. In the communication control program area A12, a communication program for executing communication processing such as CAN and LIN is stored. In the variable area A13, variables necessary for executing each program in the area are stored. In the set value area A14, set values (threshold value, minimum value, maximum value, value used for conditional branching, counter value, initial value, etc.) necessary for executing each program in the area are stored. The rewrite program area A15 stores a rewrite program for executing the rewrite process of the rewrite target area A2.
書換え対象エリアA2は、書換え対象となる記憶内容が記憶されている。本実施形態では、書換え対象エリアA2は、プログラムエリアA21と、変数エリアA22と、設定値エリアA23と、の3つのエリアが形成されている。 In the rewrite target area A2, the stored contents to be rewritten are stored. In the present embodiment, the rewrite target area A2 is formed with three areas, a program area A21, a variable area A22, and a set value area A23.
プログラムエリアA21は、入力判定制御プログラムエリアA211と、ベースアプリ制御プログラムエリアA212と、特殊アプリ制御プログラムエリアA213と、出力判定制御プログラムエリアA214と、が形成されている。 The program area A21 is formed with an input determination control program area A211, a base application control program area A212, a special application control program area A213, and an output determination control program area A214.
入力判定制御プログラムエリアA211には、I/F11を介した通信、入力回路12を介した入力の入力判定処理を実行するための入力判定プログラムが記憶されている。ベースアプリ制御プログラムエリアA212には、入力判定処理の結果に応じた負荷ON/OFF判定処理を実行するためのベースアプリプログラムが記憶されている。特殊アプリ制御プログラムエリアA213には、負荷のON/OFF判定処理を実行する上で、単純な入力判定処理以外の処理が必要な場合に使用される特殊アプリプログラムが記憶されている。
In the input determination control program area A211, an input determination program for executing communication via the I /
ここで、特殊アプリプログラムとしては、出力回路13からPWM出力する際の周波数やオンデューティ比の設定処理、入力されたアナログデータを使用した計算処理、閾値や最小値、最大値等の固定値を利用した処理、数個の入力判定処理結果の組み合わせにより負荷のON/OFF判定がされる処理、入力判定処理結果により数個の負荷のON/OFFが判定される処理を実行するためのプログラム等が挙げられる。
Here, as a special application program, setting processing of frequency and on-duty ratio when PWM output is performed from
また、出力判定制御プログラムエリアA214には、負荷のON/OFF判定処理の結果に応じた出力判定処理を実行するための出力判定プログラムが記憶されている。 Further, in the output determination control program area A214, an output determination program for executing the output determination process according to the result of the load ON / OFF determination process is stored.
変数エリアA22は、入力判定制御変数エリアA221と、ベースアプリ制御変数エリアA222と、特殊アプリ制御変数エリアA223と、出力判定制御変数エリアA224と、が形成されている。 The variable area A22 is formed with an input determination control variable area A221, a base application control variable area A222, a special application control variable area A223, and an output determination control variable area A224.
入力判定制御変数エリアA221には、上記入力判定プログラムに従って入力判定処理を実行するために必要な変数が記憶されている。ベースアプリ制御変数エリアA222には、上記ベースアプリプログラムに従って負荷ON/OFF判定処理を実行するために必要な変数が記憶されている。特殊アプリ制御変数エリアA223には、上記特殊アプリ制御プログラムに従って処理を実行するために必要な変数が記憶されている。出力判定制御変数エリアA224には、上記出力判定プログラムに従って出力判定処理を実行するために必要な変数が記憶されている。 In the input determination control variable area A221, variables necessary for executing the input determination process according to the input determination program are stored. In the base application control variable area A222, variables necessary for executing the load ON / OFF determination process according to the base application program are stored. In the special application control variable area A223, variables necessary for executing processing according to the special application control program are stored. In the output determination control variable area A224, variables necessary for executing the output determination process according to the output determination program are stored.
設定値エリアA23は、入力判定制御設定値エリアA231と、ベースアプリ制御設定値エリアA232と、特殊アプリ制御設定値エリアA233と、出力判定制御設定値エリアA234と、が形成されている。 The setting value area A23 includes an input determination control setting value area A231, a base application control setting value area A232, a special application control setting value area A233, and an output determination control setting value area A234.
入力判定制御設定値エリアA231には、上記入力判定プログラムに従って入力判定処理を実行するために必要な設定値が記憶されている。ベースアプリ制御設定値エリアA232には、上記ベースアプリプログラムに従って負荷ON/OFF判定処理を実行するために必要な設定値が記憶されている。特殊アプリ制御設定値エリアA233には、上記特殊アプリ制御プログラムに従って処理を実行するために必要な設定値が記憶されている。出力判定制御設定値エリアA234には、上記出力判定プログラムに従って出力判定処理を実行するために必要な設定値が記憶されている。 In the input determination control setting value area A231, a setting value necessary for executing the input determination process according to the input determination program is stored. In the base application control setting value area A232, a setting value necessary for executing the load ON / OFF determination process according to the base application program is stored. In the special application control setting value area A233, the setting values necessary for executing the process according to the special application control program are stored. In the output determination control setting value area A234, setting values necessary for executing the output determination process according to the output determination program are stored.
書換え装置20は、図示しないマイコンを備えている。マイコンは、周知のCPU、ROM、RAMを有している。書換え装置20は図示しない記憶装置を有し、記憶装置内に複数の書換えデータが格納されている。複数の書換えデータにはそれぞれ、フラッシュROM14Bのエリアを示すアドレスデータが含まれる。このアドレスデータを確認することで、その書換えデータを書き込むエリアが、プログラムエリアA21、変数エリアA22、及び設定値エリアA23のうちの何れのエリアであるかがわかる。
The rewriting
また、記憶装置には、書換えデータ毎に、書換え対象となるECU10のID(識別情
報)が記憶されている。これにより、書換えデータをどのECU10宛に送信すればよい
かが分かる。
Further, the storage device stores the ID (identification information) of the
次に、上述した構成の書換えシステム1の動作について図3のフローチャートを参照して以下説明する。
Next, the operation of the
図3は、図1及び図2に示されている書換えシステムの動作を表したフローチャートである。 FIG. 3 is a flowchart showing the operation of the rewriting system shown in FIGS. 1 and 2.
このフローチャートで表される処理では、まず、作業者が、通信ライン30に設けた接続部40に書換え装置20を接続する(S11)。書換え装置20のCPU(以下、単に書換え装置20と略記)は、通信ライン30への接続に応じて書換え処理を開始する。
In the process represented by this flowchart, the operator first connects the
また、作業者は、書換え対象となるECU10のローカルSW50を操作して、各ECU10に書換え信号を入力する。各ECU10のCPU14A(以下、単にECU10と略記)は、電源供給に応じて処理を開始する。ECU10は、ローカルSW50から書換え信号が入力されると(ステップS21でY)、書換え処理を起動して(ステップS22)、処理を終了する。
Further, the operator operates the local SW50 of the
一方、ECU10は、ローカルSW50から書換え信号が入力されていなければ(ステップS21でN)、通常処理を起動して(ステップS23)、処理を終了する。
On the other hand, if the rewrite signal is not input from the local SW50 (N in step S21), the
書換え処理(ステップS22)において、ECU10は、書換え要求を送信する(ステップS221)。書換え装置20は、書換え処理を実行してから所定時間以内にECU10からの書換え要求が受信できないと(ステップS12でN)、書換えを中止して(ステップS13)、書換え処理を終了する。
In the rewriting process (step S22), the
書換え装置20は、書換え処理を実行してから所定時間以内にECU10からの書換え要求を受信すると(ステップS12でY)、図示しない記憶装置内に書き込まれた書換えデータを読み出す。そして、書換え装置20は、書換え要求を送信したECU10にその書換えデータを送信する(ステップS14)。
When the
このとき、本実施形態では、新規にECU10を登載するときには、書換え装置20は、書換え対象エリアA2の全てを対象とした書換えデータを読み出して送信する。また、駆動負荷の変更や追加等による仕様変更時には、プログラムエリアA21における該当プログラムエリア、変数エリアA22における該当変数エリア、設定値エリアA23における該当設定値エリア、を対象とした書換えデータを読み出して送信する。また、何れかのプログラムの処理に使用する判定値や閾値、ソフトウェアフィルタ回数やタイマのカウンター値等といった変数や設定値の変更時には、書換え装置20は次のような書換えデータを読み出して送信する。即ち、この場合には、書換え装置20は、変数エリアA22における該当変数エリアや設定値エリアA23における該当設定値エリアを対象とした書換えデータを読み出して送信する。このように、書換え装置20は、プログラムエリアA21のプログラム、変数エリアA22の変数、及び設定値エリアA23の設定値、のうち任意の1つ以上のデータを書き換えるべく該当データを読み出して書換えデータとして送信する。また、この際には、複数のエリアのデータを書き換えるべく該当データを組み合わせて読み出して送信することも可能となっている。また、本実施形態では、書換え装置20は、選択して読み出した書換えデータを、1つのエリアに対応するデータ単位で送信する。
At this time, in the present embodiment, when the
一方、ECU10は、書換え要求を送信した後(ステップS221)、所定時間内に書換えデータを受信したか否かを判定する(ステップS222)。
On the other hand, after transmitting the rewrite request (step S221), the
所定時間内に書換えデータを受信できない場合(ステップS221でN)、ECU10は書換え処理を終了する(ステップS223)。これに対して、書換えデータを受信した場合には(ステップS222でY)、ECU10は、受信した書換えデータに含まれるアドレスデータに対応するフラッシュROM14Bの該当エリアを消去する(ステップS224)。
If the rewrite data cannot be received within the predetermined time (N in step S221), the
上述したように、書換え装置20は、書換え対象を状況に応じて任意に選択して書換えデータを送信する。ステップS224では、書換え装置20において選択されて送信されてきた書換えデータに含まれるアドレスデータに対応するエリアがデータ単位で消去される。
As described above, the rewriting
次に、ECU10は、フラッシュROM14Bの消去が成功したか否かを判定する(ス
テップS225)。ステップS225において、ECU10は、該当エリアを読み出し、1が書き込まれていれば消去成功、0が書き込まれていれば消去失敗と判定する。ECU10は、該当フラッシュROM14Bのエリア消去が成功しなければ(ステップS225でN)、書換え処理を終了する(ステップS223)。
Next, the
一方、ECU10は、該当フラッシュROM14Bのエリア消去が成功すると(ステップS225でY)、該当エリアに受信した書換えデータを書き込むことにより、データを書き換える(ステップS226)。次に、ECU10は、書換えが成功したか否かを判定するために該当エリアを読み出す(ステップS227)。続いて、ECU10は、該当エリアから読み出したデータが、受信した書換えデータと同じであれば書換え成功、異なれば書換え失敗と判定する(ステップS228)。
On the other hand, when the area erasure of the
このステップS228により、ECU10は、書換え成功または失敗の判断を行う。ECU10は、書換えが失敗であれば(ステップS228でN)、書換え処理を終了する(ステップS223)。
In step S228, the
一方、書換えが成功であれば(ステップS228でY)、ECU10は、該当エリアからの読出しデータを書換え装置に送信し(ステップS229)、ステップS222に処理が戻って次の書換えデータの受信に備える。尚、2回目以降のステップS222では、ECU10は、読出しデータを送信してから所定時間内に書換えデータを受信したか否かを判定する。
On the other hand, if the rewriting is successful (Y in step S228), the
書換え装置20は、書換えデータを送信した後(ステップS14)、所定時間内に読出しデータを受信したか否かを判定する(ステップS15)。
After transmitting the rewriting data (step S14), the rewriting
所定時間内に読出しデータを受信できない場合(ステップS15でN)、書換え装置20は書換え処理を終了する(ステップS13)。これに対して、読出しデータを受信した場合には(ステップS15でY)、ECU10側で書換えが成功したか否かの判定を、送信した書換えデータと、受信した読出しデータと、の比較により行う(ステップS16)。
If the read data cannot be received within the predetermined time (N in step S15), the rewriting
ステップS16において、書換え装置20は、受信した読出しデータが、送信した書換えデータと同じであれば書換え成功、異なれば書換え失敗と判定する。書換え装置20は、書換えが失敗であれば(ステップS16でN)、書換え処理を終了する(ステップS13)。一方、書換えが成功であれば(ステップS16でY)、書換え装置20は、全書換えデータの送信が終了したか否かを判定する(ステップS17)。全書換えデータの送信が終了した場合には(ステップS17でY)、書換え処理を終了する。
In step S16, the rewriting
他方、未送信の書換えデータが残っていた場合には(ステップS17でN)、処理がステップS14に戻って、次の書換えデータの送信を行う。 On the other hand, if untransmitted rewriting data remains (N in step S17), the process returns to step S14 to transmit the next rewriting data.
以上に説明した本実施形態の書換えシステム1、書換え装置20、及びECU10によれば、ECU10が有するフラッシュROM14Bにおける書換え対象エリアA2の記憶内容のみを書き換えることから、書き換え時間を短縮できる。
According to the
また、本実施形態によれば、書換え対象エリアA2の記憶内容について、書換え装置20が選択したデータのみを書き換えることから、書き換え時間を一層短縮できることとなっている。
Further, according to the present embodiment, since only the data selected by the rewriting
尚、以上に説明した実施形態は代表的な形態を示したに過ぎず、この実施形態に限定されるものではない。即ち、骨子を逸脱しない範囲で上述した書換えシステム、書換え装置、及びコンピュータを種々変形して実施することができる。かかる変形によってもなお上述の書換えシステム、書換え装置、及びコンピュータにおける本質的な構成を具備する限り、勿論、範疇に含まれるものである。 It should be noted that the embodiments described above are merely representative embodiments, and are not limited to these embodiments. That is, the above-mentioned rewriting system, rewriting device, and computer can be variously modified and implemented without departing from the gist. Such modifications are, of course, included in the category as long as they still have the essential configurations of the rewriting system, rewriting device, and computer described above.
例えば、上述した実施形態では、本発明にいうメモリを有するコンピュータの一例として、フラッシュROM14Bを有するECU10が例示されている。しかしながら、本発明にいうメモリを有するコンピュータは、これに限るものではなく、その具体的な態様を問うものではない。
For example, in the above-described embodiment, the
また、上述した実施形態では、本発明にいう書換え対象外エリアの記憶内容の各一例として、基本制御プログラム、通信制御プログラム、各プログラムを実行する上で必要な変数、及び設定値が例示されている。また、本発明にいう書換え対象エリアの記憶内容の各一例として、入力判定制御プログラム、ベースアプリ制御プログラム、特殊アプリ制御プログラム、各プログラムを実行する上で必要な変数、及び設定値が例示されている。しかしながら、本発明にいう書換え対象外エリアの記憶内容や、本発明にいう書換え対象エリアの記憶内容は、これらに限るものではなく、適宜に設定し得るものである。 Further, in the above-described embodiment, a basic control program, a communication control program, variables necessary for executing each program, and set values are exemplified as examples of the stored contents of the area not subject to rewriting according to the present invention. There is. Further, as an example of each of the stored contents of the rewrite target area referred to in the present invention, an input determination control program, a base application control program, a special application control program, variables necessary for executing each program, and set values are exemplified. There is. However, the storage content of the rewriting target area referred to in the present invention and the storage content of the rewriting target area referred to in the present invention are not limited to these, and can be appropriately set.
また、上述した実施形態では、本発明にいう書換え装置の一例として、書換え対象エリアA2の記憶内容のうち、状況に応じて選択した任意の1つ以上のデータを選択して書き換えのためにECU10に送信する書換え装置20が例示されている。しかしながら、本発明にいう書換え装置はこれに限るものではなく、例えば状況の如何に関わらす書換え対象エリアA2の記憶内容の全てを送信するもの等であってもよい。ただし、1つ以上のデータを選択して送信することで、書き換え時間を一層短縮できることは上述した通りである。
Further, in the above-described embodiment, as an example of the rewriting device according to the present invention, the
また、上述した実施形態では、本発明にいう書換えシステムの一例として、書換え装置20が書換えデータを送信し、ECU10が書換えデータを受信して書換えを行う書換え視システム1が例示されている。しかしながら、本発明にいう書換えシステムはこれに限るものではなく、書換え装置20が書換えについても行うシステムであってもよい。
Further, in the above-described embodiment, as an example of the rewriting system according to the present invention, the rewriting
1 書換えシステム
10 ECU(コンピュータ)
14B フラッシュROM(メモリ)
20 書換え装置
A1 書換え対象外エリア
A2 書換え対象エリア
A21 プログラムエリア
A22 変数エリア
A23 設定値エリア
1 Rewriting
14B flash ROM (memory)
20 Rewriting device A1 Area not subject to rewriting A2 Area subject to rewriting A21 Program area A22 Variable area A23 Set value area
Claims (3)
前記コンピュータにおける前記メモリが、書換え対象となる記憶内容が記憶される書換え対象エリアと、書換え対象とならない記憶内容が記憶される書換え対象外エリアと、を有し、
前記書換え装置が、前記メモリにおける前記書換え対象エリアの記憶内容のみを対象として当該記憶内容の書換えデータを前記コンピュータに送信し、
前記書換え対象エリアが、1つ以上のプログラムが記憶されるプログラムエリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される変数が記憶される変数エリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される設定値が記憶される設定値エリアと、を有しており、
前記書換え装置は、前記プログラムエリアに記憶されているプログラム、前記変数エリアに記憶されている変数、及び前記設定値エリアに記憶されている設定値、のうち任意の1つ以上のデータを選択して当該1つ以上のデータの書換えデータを、前記1つ以上のデータが、前記プログラムエリア、前記変数エリア、及び前記設定値エリアのうちの何れのエリアに記憶されているかをエリア単位で表すアドレスデータを含ませて、1つのエリアに対応するデータ単位で送信するものであり、複数のエリアのデータを書き換えるべく該当データを組み合わせて送信する場合であっても前記データ単位で送信を行うことを特徴とする書換えシステム。 A rewriting system including a computer having a memory and a rewriting device for transmitting at least the rewriting data of the stored contents stored in the memory to the computer.
The memory in the computer has a rewrite target area in which the stored contents to be rewritten are stored and a non-rewrite target area in which the stored contents not to be rewritten are stored.
The rewriting device transmits rewriting data of the stored contents to the computer only for the stored contents of the rewritten target area in the memory.
The rewrite target area includes a program area in which one or more programs are stored, a variable area in which variables used in processing are stored for each of the one or more programs, and one or more of the above. Each of the programs of the above has a setting value area in which the setting value used for processing is stored.
The rewriting device selects any one or more data from a program stored in the program area, a variable stored in the variable area, and a set value stored in the set value area. An address indicating in an area unit which of the program area, the variable area, and the set value area the rewriting data of the one or more data is stored. The data is included and transmitted in the data unit corresponding to one area, and even when the corresponding data is combined and transmitted in order to rewrite the data in a plurality of areas, the transmission is performed in the data unit. A featured rewriting system.
前記メモリが、書換え対象となる記憶内容が記憶される書換え対象エリアと、書換え対象とならない記憶内容が記憶される書換え対象外エリアと、を有し、
前記メモリにおける前記書換え対象エリアの記憶内容のみを対象として当該記憶内容の書換えデータを前記コンピュータに送信し、
前記書換え対象エリアが、1つ以上のプログラムが記憶されるプログラムエリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される変数が記憶される変数エリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される設定値が記憶される設定値エリアと、を有しており、
前記プログラムエリアに記憶されているプログラム、前記変数エリアに記憶されている変数、及び前記設定値エリアに記憶されている設定値、のうち任意の1つ以上のデータを選択して当該1つ以上のデータの書換えデータを、前記1つ以上のデータが、前記プログラムエリア、前記変数エリア、及び前記設定値エリアのうちの何れのエリアに記憶されているかをエリア単位で表すアドレスデータを含ませて、1つのエリアに対応するデータ単位で送信するものであり、複数のエリアのデータを書き換えるべく該当データを組み合わせて送信する場合であっても前記データ単位で送信を行うことを特徴とする書換え装置。 A rewriting device that transmits at least the rewriting data of the stored contents stored in the memory of the computer to the computer.
The memory has a rewrite target area in which the stored contents to be rewritten are stored, and a non-rewrite target area in which the stored contents not to be rewritten are stored.
Rewriting data of the stored contents is transmitted to the computer only for the stored contents of the rewritten target area in the memory.
The rewrite target area includes a program area in which one or more programs are stored, a variable area in which variables used in processing are stored for each of the one or more programs, and one or more of the above. Each of the programs of the above has a setting value area in which the setting value used for processing is stored.
Select any one or more data from the program stored in the program area, the variable stored in the variable area, and the set value stored in the set value area, and the one or more. The rewriting data of the above data includes address data indicating in each area which of the program area, the variable area, and the set value area the one or more data is stored. A rewriting device that transmits in data units corresponding to one area, and transmits in the data units even when the corresponding data are combined and transmitted in order to rewrite the data in a plurality of areas. ..
前記メモリが、書換え対象となる記憶内容が記憶される書換え対象エリアと、書換え対象とならない記憶内容が記憶される書換え対象外エリアと、を有し、
前記書換え対象エリアが、1つ以上のプログラムが記憶されるプログラムエリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される変数が記憶される変数エリアと、前記1つ以上のプログラムのそれぞれ毎に、処理の上で使用される設定値が記憶される設定値エリアと、を有しており、
前記プログラムエリアに記憶されているプログラム、前記変数エリアに記憶されている変数、及び前記設定値エリアに記憶されている設定値、のうちから選択された任意の1つ以上のデータの書換えデータを、前記1つ以上のデータが、前記プログラムエリア、前記変数エリア、及び前記設定値エリアのうちの何れのエリアに記憶されているかをエリア単位で表すアドレスデータを含んだ状態で、1つのエリアに対応するデータ単位で受信し、当該データ単位での前記書換え対象エリアの書換えを、前記アドレスデータを参照して行うものであり、複数のエリアのデータを書き換えるべく該当データが組み合わされて送信される場合であっても前記データ単位で受信を行うことを特徴とするコンピュータ。 A computer that has a memory and receives at least the rewriting data of the stored contents of the memory from the rewriting device.
The memory has a rewrite target area in which the stored contents to be rewritten are stored, and a non-rewrite target area in which the stored contents not to be rewritten are stored.
The rewrite target area includes a program area in which one or more programs are stored, a variable area in which variables used in processing are stored for each of the one or more programs, and one or more of the above. Each of the programs of the above has a setting value area in which the setting value used for processing is stored.
Rewrite data of any one or more data selected from the program stored in the program area, the variable stored in the variable area, and the set value stored in the set value area. In one area, including address data indicating in each area which of the program area, the variable area, and the set value area the one or more data is stored. It is received in the corresponding data unit, and the rewriting of the rewriting target area in the data unit is performed with reference to the address data , and the corresponding data is combined and transmitted in order to rewrite the data in a plurality of areas. A computer characterized in that data is received even in the case .
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017105450A JP6765343B2 (en) | 2017-05-29 | 2017-05-29 | Rewriting system, rewriting device and computer |
US15/924,645 US10936236B2 (en) | 2017-04-12 | 2018-03-19 | Rewriting system, rewriting device and computer |
DE102018205395.2A DE102018205395B4 (en) | 2017-04-12 | 2018-04-10 | Rewriting system, rewriting device and computer |
CN201810325925.1A CN108762770B (en) | 2017-04-12 | 2018-04-12 | Rewriting system, rewriting apparatus, and computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017105450A JP6765343B2 (en) | 2017-05-29 | 2017-05-29 | Rewriting system, rewriting device and computer |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2018200599A JP2018200599A (en) | 2018-12-20 |
JP6765343B2 true JP6765343B2 (en) | 2020-10-07 |
Family
ID=64668131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017105450A Active JP6765343B2 (en) | 2017-04-12 | 2017-05-29 | Rewriting system, rewriting device and computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6765343B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7023588B2 (en) | 2019-05-23 | 2022-02-22 | 矢崎総業株式会社 | Data rewriting method and data rewriting system |
CN112083943A (en) * | 2020-09-07 | 2020-12-15 | 欧科佳(上海)汽车电子设备有限公司 | Method for independently flashing ECU in batches |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003104138A (en) * | 2001-10-01 | 2003-04-09 | Honda Motor Co Ltd | System for monitoring vehicle control device for rewriting of data |
JP3623481B2 (en) * | 2002-01-11 | 2005-02-23 | 本田技研工業株式会社 | Vehicle control apparatus for controlling rewriting of nonvolatile memory |
JP2003276528A (en) * | 2002-03-26 | 2003-10-02 | Denso Corp | Electronic control device for vehicle |
JP2004287712A (en) * | 2003-03-20 | 2004-10-14 | Denso Corp | Electronic device |
JP4692231B2 (en) * | 2005-11-04 | 2011-06-01 | 株式会社デンソー | Electronic control device for vehicle |
JP4938721B2 (en) * | 2008-04-11 | 2012-05-23 | 日本特殊陶業株式会社 | Gas sensor degradation signal generator |
JP6094523B2 (en) * | 2014-04-25 | 2017-03-15 | トヨタ自動車株式会社 | Program rewriting method |
-
2017
- 2017-05-29 JP JP2017105450A patent/JP6765343B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2018200599A (en) | 2018-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10591884B2 (en) | Controller and control program updating method | |
CN106681766B (en) | Remote firmware upgrade control method and system | |
CN106020875B (en) | Firmware update management method and device of embedded terminal | |
CN111124440A (en) | Chip software burning method, chip software burning data processing method and device | |
CN110083628B (en) | Addressing method and device for Electronic Control Unit (ECU) of vehicle | |
JP6765343B2 (en) | Rewriting system, rewriting device and computer | |
US10296322B2 (en) | Controller and control program updating method | |
US20130117739A1 (en) | Electronic Tool for Automatically Programming a Plurality of Control Modules in a Vehicle On-Board Computer System | |
US10936236B2 (en) | Rewriting system, rewriting device and computer | |
US8042104B2 (en) | Method and system for sending a rewrite control program to a control unit | |
CN105045671A (en) | Method and device for upgrading systems of intelligent terminals | |
EP3923139B1 (en) | Electronic control device and method for using non-volatile memory | |
JP2003172199A (en) | Program rewriting system for vehicular electronic control unit | |
US8458730B2 (en) | Multi-level driver configuration | |
CN106708569B (en) | Hot loading method and device for VOBC configuration file in over-the-line train | |
CN107172610B (en) | GSM network self-adaption method and device and electronic equipment | |
JP2018180869A (en) | Rewrite system, rewrite device and computer | |
CN105278993A (en) | Linux system based drive module upgrading method and apparatus | |
JP6912954B2 (en) | Rewriting system and computer | |
JP2000207194A (en) | Method for writing data into nonvolatile memory inside on-vehicle electronic unit | |
JP6854706B2 (en) | Computer and rewriting system | |
CN106548311B (en) | Inventory management setting system | |
KR101569001B1 (en) | System for configurating fpga data and method therefor | |
JP7349522B1 (en) | Computing equipment and programs | |
CN112989440B (en) | Chip, processor driving method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20180323 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20180815 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20181119 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190918 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20191105 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20191203 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20200526 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200703 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20200714 |
|
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: 20200908 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200915 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6765343 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |