JP4960545B2 - MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM - Google Patents

MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM Download PDF

Info

Publication number
JP4960545B2
JP4960545B2 JP2000343438A JP2000343438A JP4960545B2 JP 4960545 B2 JP4960545 B2 JP 4960545B2 JP 2000343438 A JP2000343438 A JP 2000343438A JP 2000343438 A JP2000343438 A JP 2000343438A JP 4960545 B2 JP4960545 B2 JP 4960545B2
Authority
JP
Japan
Prior art keywords
write target
memory
communication
write
writing
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.)
Expired - Lifetime
Application number
JP2000343438A
Other languages
Japanese (ja)
Other versions
JP2002149433A (en
Inventor
吉秀 中村
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.)
Yazaki Corp
Original Assignee
Yazaki Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yazaki Corp filed Critical Yazaki Corp
Priority to JP2000343438A priority Critical patent/JP4960545B2/en
Publication of JP2002149433A publication Critical patent/JP2002149433A/en
Application granted granted Critical
Publication of JP4960545B2 publication Critical patent/JP4960545B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)
  • Microcomputers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ネットワーク上にある演算装置のメモリに対して書き込みを行うメモリ書込装置に係り、特に演算装置の通信速度を予め変更してからメモリへ書き込み処理を行うことによって、通信エラーを減らすとともに高速な書込処理を行うことのできるメモリ書込装置に関する。
【0002】
【従来の技術】
従来のメモリへの書込装置としては、例えば特開平10−111863号公報に開示されているメモリ書換システムがある。
【0003】
図3に示すように、従来のメモリ書換システム101は、自動車に搭載されて内燃機関型エンジンの制御を行うエンジン制御装置(以下、ECUという)102と、このECU102に内蔵されたエンジン制御用のプログラムやデータを書き換えたり、新規に書き込む際にECU102に接続されるメモリ書換装置103とから構成されている。
【0004】
さらに、ECU102は、エンジンの運転状態を検出する様々なセンサからの信号を入力して波形処理する入力回路106と、入力回路106からのセンサ信号に基づき、エンジンを制御するための様々な処理を実行するシングルチップマイクロコンピュータ(以下、マイコンという)108と、マイコン108からの制御信号に基づき、エンジンに取り付けられたインジェクタ(燃料噴射弁)やイグナイタ等のアクチュエータへ駆動信号を出力する出力回路110とを備えている。
【0005】
そして、マイコン108には、プログラムに従い動作するCPU118と、CPU118を動作させるために必要なプログラム及びデータを格納する不揮発性のROM120と、CPU118の演算結果等を一時格納するRAM122と、前記入力回路106等からの信号を受けると共に、出力回路110に制御信号を出力するためのI/O124と、メモリ書換装置103との間でシリアルデータ通信を行うための通信回路125とが備えられている。
【0006】
ここで、ROM120としては、電気的にデータの書き換え(詳しくは消去及び書き込み)が可能なフラッシュROM120aと、データの書き換えが不能なマスクROM120bとを備えている。
【0007】
一方、メモリ書換装置103は、ECU102側のマイコン108にフラッシュROM120aの書き換えを行わせるための処理を実行するCPU,ROM,RAM等を内蔵したマイコン130と、ECU102へ送信する書換制御プログラム(詳しくは、書換制御プログラムを構成するプログラムコード及び書換制御プログラムの実行時に参照されるデータ)が格納された第1のROM134と、ECU102へ送信すべき書込データ(即ち、フラッシュROM120aに書き込むべき新たな制御プログラム及び制御データを構成するデータ)が格納された第2のROM136と、作業者が当該メモリ書換装置103に様々な指示入力を行うための入力装置137とを備えている。
【0008】
そして、このように構成されたメモリ書換システム101において、ECU102のマイコン108(CPU118)は、リセット直後に、マスクROM120b内のブートプログラムを起動し、メモリ書換装置103が接続されていない通常時には、そのブートプログラムによってフラッシュROM120a内のエンジン制御プログラム(エンジン制御用の制御プログラム)をコールして、エンジンの制御を行う。
【0009】
また、マイコン108は、ブートプログラムを起動した際に、書換モードであると判定すると、フラッシュROM120a内の制御プログラムをコールすることなく、メモリ書換装置103から送信されて来る書換制御プログラムを受信してRAM122に格納し、その書換制御プログラムをコールしてRAM122上で実行することにより、フラッシュROM120a内に格納されている現在の制御プログラム及び制御データを、その後メモリ書換装置103から送信されて来る書込データ(新たな制御プログラム及び制御データを構成するデータ)に書き換える処理を行う。
【0010】
【発明が解決しようとする課題】
しかしながら、上述したメモリ書換システム101では、書き込み制御プログラム(ブートプログラム)内に通信速度の変更処理が含まれていたので、ネットワーク上に複数のECUが存在する場合でも書込対象となったECUの通信速度が変更されるだけであった。
【0011】
したがって、ネットワーク上に複数のECUが存在する場合には、ネットワーク上の他のECUの通信速度が変更されないために通信エラーが生じるという問題点があった。
【0012】
また、高速通信ネットワークのECUと、低速通信ネットワークのECUとが同時に存在する場合に、従来のメモリ書換システム101では、高速通信ネットワーク上のECUに対して書き込み処理を行った後に、通信速度を低速に変更してから低速通信ネットワーク上のECUに対して書き込みを行っていた。
【0013】
したがって、通信速度が異なるネットワーク上にあるECUのメモリを書き換えるためには、長時間を要するという問題点があった。
【0014】
本発明は上記事情に鑑みてなされたものであり、その目的は、ネットワーク上に複数の書込対象メモリが存在する場合でも、通信エラーがなく、高速な書き込み処理を行うことのできるメモリ書込装置を提供することにある。
【0015】
【課題を解決するための手段】
上記目的を達成するために、請求項1に記載の発明であるメモリ書込装置は、電子的に書き込み可能な書込対象メモリを具備する書込対象演算装置がネットワーク上に複数存在するときに、前記書込対象メモリへの書き込みを行うメモリ書込装置であって、演算装置を通常通信停止状態にする信号であるready信号をすべての前記書込対象演算装置に同時に送信して前記書込対象演算装置のすべてを通常通信停止状態にする通常通信停止手段と、この通常通信停止手段により送信された前記ready信号によって、前記書込対象演算装置のすべてが通常通信停止状態であるか否かを確認する通信状態確認手段と、この通信状態確認手段によりすべての前記書込対象演算装置が通常通信停止状態であると確認されたときには、前記書込対象演算装置の通信速度を変更させる信号であるchange信号をすべての前記書込対象演算装置に同時に送信してすべての前記書込対象演算装置の通信速度を同一の速度に変更させる通信速度変更手段と、この通信速度変更手段により送信された前記change信号の返送信号をすべての前記書込対象演算装置から受信したときには、前記書込対象メモリに対して書き込み処理を行うメモリ書込手段とを含むことを特徴とする。
【0016】
この請求項1の発明によれば、ネットワーク上に複数の書込対象演算装置が存在する場合でも、通信エラーがなく、高速に書込対象メモリへの書き込み処理を行うことができる。
【0017】
請求項2に記載の発明であるメモリ書込方法は、電子的に書き込み可能な書込対象メモリを具備する書込対象演算装置がネットワーク上に複数存在するときに、前記書込対象メモリへの書き込みを行うメモリ書込方法であって、演算装置を通常通信停止状態にする信号であるready信号をすべての前記書込対象演算装置に同時に送信して前記書込対象演算装置のすべてを通常通信停止状態にする通常通信停止ステップと、この通常通信停止ステップにより送信された前記ready信号によって、前記書込対象演算装置のすべてが通常通信停止状態であるか否かを確認する通信状態確認ステップと、この通信状態確認ステップによりすべての前記書込対象演算装置が通常通信停止状態であると確認されたときには、前記書込対象演算装置の通信速度を変更させる信号であるchange信号をすべての前記書込対象演算装置に同時に送信してすべての前記書込対象演算装置の通信速度を同一の速度に変更させる通信速度変更ステップと、この通信速度変更ステップにより送信された前記change信号の返送信号をすべての前記書込対象演算装置から受信したときには、前記書込対象メモリに対して書き込み処理を行うメモリ書込ステップとを含むことを特徴とする。
【0018】
この請求項2の発明によれば、ネットワーク上に複数の書込対象演算装置が存在する場合でも、通信エラーがなく、高速に書込対象メモリへの書き込み処理を行うことができる。
【0019】
請求項3に記載の発明であるメモリ書込プログラムを記録した記録媒体は、電子的に書き込み可能な書込対象メモリを具備する書込対象演算装置がネットワーク上に複数存在するときに、前記書込対象メモリへの書き込みを行うメモリ書込プログラムを記録した記録媒体であって、演算装置を通常通信停止状態にする信号であるready信号をすべての前記書込対象演算装置に同時に送信して前記書込対象演算装置のすべてを通常通信停止状態にする通常通信停止処理と、この通常通信停止処理により送信された前記ready信号によって、前記書込対象演算装置のすべてが通常通信停止状態であるか否かを確認する通信状態確認処理と、この通信状態確認処理によりすべての前記書込対象演算装置が通常通信停止状態であると確認されたときには、前記書込対象演算装置の通信速度を変更させる信号であるchange信号をすべての前記書込対象演算装置に同時に送信してすべての前記書込対象演算装置の通信速度を同一の速度に変更させる通信速度変更処理と、この通信速度変更処理により送信された前記change信号の返送信号をすべての前記書込対象演算装置から受信したときには、前記書込対象メモリに対して書き込み処理を行うメモリ書込処理とを含むことを特徴とする。
【0020】
この請求項3の発明によれば、ネットワーク上に複数の書込対象演算装置が存在する場合でも、通信エラーがなく、高速に書込対象メモリへの書き込み処理を行うことができる。
【0021】
【発明の実施の形態】
以下、本発明の一実施形態を図面に基づいて説明する。
【0022】
まず、図1は本実施形態のメモリ書込装置によってメモリへの書き込みが行われるメモリ書込システムのブロック図である。ここでは、書き込みの対象である書込対象メモリとしてフラッシュメモリを例として説明し、さらにそのフラッシュメモリを具備する書込対象演算装置の一例としてエンジン制御装置(以下ECUと略す)を例にして説明する。
【0023】
図1に示すように、メモリへの書き込み処理を行うメモリ書込装置1は、書き込み処理が行われる際にネットワークであるバス2に接続され、このバス2には複数のECU3A、3B、・・・、3Nが接続されている。
【0024】
ここで、メモリ書込装置1は、ECUを通常通信停止状態にする信号であるready信号をすべてのECU3A、3B、・・・、3Nに送信する通常通信停止手段11と、この通常通信停止手段11により送信されたready信号によって、ECUのすべてが通常通信停止状態であるか否かを確認する通信状態確認手段12と、この通信状態確認手段12によりすべてのECU3A、3B、・・・、3Nが通常通信停止状態であると確認されたときには、ECUの通信速度を変更させる信号であるchange信号をすべてのECU3A、3B、・・・、3Nに送信する通信速度変更手段13と、この通信速度変更手段13により送信されたchange信号の返送信号をすべてのECU3A、3B、・・・、3Nから受信したときには、フラッシュメモリ17A、17B、・・・、17Nに対して書き込み処理を行うメモリ書込手段14とを含んでいる。
【0025】
なお、メモリ書込装置1は、各種の処理を行うためのCPUと、この処理の命令を記憶する記憶手段とを含む通常のコンピュータシステムによって構成され、メモリ書込装置1で行われる各処理の命令やタイミング制約は記憶手段に保持されており、必要に応じてCPUにロードされ、実行がなされる。
【0026】
また、ECU3A、3B、・・・、3Nは、エンジンの運転状態を検出するさまざまなセンサからの信号が入力されて波形処理を行う入力回路や、エンジンに取り付けられたインジェクタ等のアクチュエータへ駆動信号を出力する出力回路などをそれぞれ具備しており、さらにエンジンを制御するためのさまざまな処理を実行するためのマイクロコンピュータ(以下、マイコンという)15A、15B、・・・、15Nをそれぞれ具備している。
【0027】
そして、マイコン15A、15B、・・・、15Nは、プログラムに従い動作する通常のCPU16A、16B、・・・、16Nと、CPU16がそれぞれ動作するために必要なプログラム及びデータを格納するフラッシュメモリ17A、17B、・・・、17Nと、CPU16の演算結果等を一時格納するRAM18A、18B、・・・、18Nとをそれぞれ含んでおり、フラッシュメモリ17A、17B、・・・、17Nに対してメモリ書込装置1による書き込みが行われる。
【0028】
ただし、メモリ書込装置1の書き込みの対象となる書込対象メモリは、フラッシュメモリに限られるものではなく、電子的に書き込み可能なメモリであればよい。
【0029】
次に、図2に基づいて本実施形態のメモリ書込装置1による書込対象メモリへの書き込み処理を説明する。
【0030】
まず、メモリ書込装置1がバス2に接続されて初期設定が行われると(S201)、メモリ書込装置1は通常モードで動作している各ECU3A、3B、・・・、3Nに対して、通常モードを停止させるための信号であるready信号をブロードキャスト方式で送信する(S202)。
【0031】
このready信号を受信した各ECU3A、3B、・・・、3Nは速やかに通常モードを終了して通常通信停止状態となる(S203)。
【0032】
一方、メモリ書込装置1ではready信号を送信すると、バスモニタ状態に移行して割り込み処理等によるバスラインのチェックを所定時間実行する(S204)。このとき、まだ通常モードで動作しているECUがあるか否かを判断し(S205)、通常モードで動作しているECUがあるときにはステップS202に戻って再度ready信号を送信する(S202)。
【0033】
また、すべてのECUが通常通信停止状態であることが確認されたら、メモリ書込装置1は通信速度を変更するための信号であるchange信号を各ECU3A、3B、・・・、3Nに対してブロードキャスト方式で送信するとともに(S206)、メモリ書込装置1の通信速度もchange信号で送信した通信速度に変更して高速化する(S207)。例えば、20kbpsの通信速度を100kbpsに高速化する。
【0034】
そして、各ECU3A、3B、・・・、3Nはchange信号を受信すると、change信号に記録された通信速度に変更して高速化し(S208)、さらにchange信号のレスポンスとなるchange response信号を返送するとともに(S209)、書き込み処理が行われる状態に遷移する(S210)。ただし、change response信号は同期を合わせるために100msなどの設定時間経過後に送信する。
【0035】
そして、メモリ書込装置1はすべてのECU3A、3B、・・・、3Nからchange response信号を受信したか否かを判断し(S211)、change response信号をすべてのECUから受信することができずに、メモリ書込装置1を含め通信速度が高速化されないECUがある場合には書込対象であるフラッシュメモリ17への書き込みに関する処理は行われず、パワーオンリセット(S212)後に、ステップS201に戻って同様の処理を再び行うことになる。
【0036】
また、メモリ書込装置1がすべてのECU3A、3B、・・・、3Nからchange response信号を受信しているときには、各ECUのフラッシュメモリに対して書き込みに関する処理を行い(S213)、本実施形態のメモリ書込装置1によるメモリへの書き込み処理は終了する。
【0037】
このように、本実施形態のメモリ書込装置1は、通信速度の変更処理をブートプログラム内の書き込み処理に含めて制御するのではなく、書き込み処理を行う前にすべてのECUの通信速度を予め高速化してしまうので、メモリ書込装置1と各ECUとの通信速度が一致せずに通信エラーが発生することを防止できる。
【0038】
さらに、本実施形態のメモリ書込装置1は、異なる通信速度のネットワーク上にあるECUに対して書き込みを行う場合でも、予めすべてのECUの通信速度を高速化しておくので、高速ネットワークに書込処理を行った後に通信速度を切り換えて低速ネットワークに書込処理を行う必要がなくなり、高速な書き込み処理を行うことができる。
【0039】
なお、上述したメモリ書込装置1の各処理を実現するためのプログラムは記録媒体に保存することができ、この記録媒体をコンピュータシステムによって読み込ませることにより、前記プログラムを実行してコンピュータを制御しながら上述したメモリ書込装置1の各処理を実現することができる。ここで、前記記録媒体とは、メモリ装置、磁気ディスク装置、光ディスク装置等、プログラムを記録することができるような装置が含まれる。
【0040】
【発明の効果】
以上説明したように、本発明のメモリ書込装置によれば、ネットワーク上に複数の演算装置が存在する場合でも、通信エラーがなく、高速にメモリへの書き込み処理を行うことができる。
【図面の簡単な説明】
【図1】本発明のメモリ書込システムの一実施形態の構成を示すブロック図である。
【図2】図1に示すメモリ書込システムによる書込対象メモリへの書き込み処理を説明するためのフローチャートである。
【図3】従来のメモリ書換システムの構成を示すブロック図である。
【符号の説明】
1 メモリ書込装置
2 バス
3A、3B、・・・、3N ECU
11 通常通信停止手段
12 通信状態確認手段
13 通信速度変更手段
14 メモリ書込手段
15A、15B、・・・、15N マイコン
16A、16B、・・・、16N CPU
17A、17B、・・・、17N フラッシュメモリ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a memory writing device that writes data to a memory of an arithmetic device on a network, and in particular, reduces communication errors by performing a write process on the memory after changing the communication speed of the arithmetic device in advance. The present invention also relates to a memory writing apparatus capable of performing high-speed writing processing.
[0002]
[Prior art]
As a conventional memory writing device, for example, there is a memory rewriting system disclosed in Japanese Patent Laid-Open No. 10-111863.
[0003]
As shown in FIG. 3, a conventional memory rewriting system 101 includes an engine control device (hereinafter referred to as an ECU) 102 that controls an internal combustion engine and is installed in an automobile, and an engine control device built in the ECU 102. The memory rewriting device 103 is connected to the ECU 102 when a program or data is rewritten or newly written.
[0004]
Further, the ECU 102 inputs signals from various sensors that detect the operating state of the engine and performs waveform processing, and performs various processes for controlling the engine based on the sensor signals from the input circuit 106. A single-chip microcomputer (hereinafter referred to as a microcomputer) 108 to be executed, and an output circuit 110 for outputting a drive signal to an actuator (fuel injection valve) or an igniter attached to the engine based on a control signal from the microcomputer 108 It has.
[0005]
The microcomputer 108 includes a CPU 118 that operates according to a program, a nonvolatile ROM 120 that stores programs and data necessary for operating the CPU 118, a RAM 122 that temporarily stores calculation results of the CPU 118, and the input circuit 106. In addition, an I / O 124 for receiving a signal from the above and outputting a control signal to the output circuit 110 and a communication circuit 125 for performing serial data communication with the memory rewriting device 103 are provided.
[0006]
Here, the ROM 120 includes a flash ROM 120a capable of electrically rewriting data (specifically, erasing and writing) and a mask ROM 120b incapable of rewriting data.
[0007]
On the other hand, the memory rewriting device 103 includes a microcomputer 130 having a built-in CPU, ROM, RAM, and the like for executing processing for causing the microcomputer 108 on the ECU 102 side to rewrite the flash ROM 120a, and a rewrite control program to be transmitted to the ECU 102 (in detail). The first ROM 134 storing the program code constituting the rewrite control program and the data to be referred to when the rewrite control program is executed, and the write data to be transmitted to the ECU 102 (that is, new control to be written to the flash ROM 120a) A second ROM 136 in which data constituting a program and control data are stored, and an input device 137 for an operator to input various instructions to the memory rewriting device 103.
[0008]
In the memory rewriting system 101 configured as described above, the microcomputer 108 (CPU 118) of the ECU 102 activates the boot program in the mask ROM 120b immediately after the reset, and at normal times when the memory rewriting device 103 is not connected. The engine control program (control program for engine control) in the flash ROM 120a is called by the boot program to control the engine.
[0009]
If the microcomputer 108 determines that the rewrite mode is set when the boot program is activated, the microcomputer 108 receives the rewrite control program transmitted from the memory rewrite device 103 without calling the control program in the flash ROM 120a. The current control program and control data stored in the flash ROM 120a are stored in the RAM 122, and executed on the RAM 122 by calling the rewrite control program. A process of rewriting the data (new control program and data constituting the control data) is performed.
[0010]
[Problems to be solved by the invention]
However, in the above-described memory rewriting system 101, the write control program (boot program) includes a communication speed change process, so even when there are multiple ECUs on the network, The communication speed was only changed.
[0011]
Therefore, when there are a plurality of ECUs on the network, there is a problem that a communication error occurs because the communication speed of other ECUs on the network is not changed.
[0012]
In addition, when the ECU of the high-speed communication network and the ECU of the low-speed communication network exist at the same time, the conventional memory rewriting system 101 reduces the communication speed after performing the writing process on the ECU on the high-speed communication network. Since then, writing to the ECU on the low-speed communication network was performed.
[0013]
Therefore, there is a problem that it takes a long time to rewrite the memory of the ECU on the networks having different communication speeds.
[0014]
The present invention has been made in view of the above circumstances, and an object of the present invention is to perform memory writing that can perform a high-speed writing process without a communication error even when a plurality of write target memories exist on the network. To provide an apparatus.
[0015]
[Means for Solving the Problems]
In order to achieve the above object, the memory writing device according to the first aspect of the present invention is provided when a plurality of write target arithmetic devices each having a write target memory that is electronically writable exist on a network. A memory writing device for writing to the write target memory, wherein a ready signal, which is a signal for bringing the arithmetic device into a normal communication stop state, is simultaneously transmitted to all the write target arithmetic devices to perform the writing a normal communication stopping means for all of the target computing device in the normal communication stop state, by the ready signal transmitted by the normal communication stop means, all of the write target computing device whether the normal communication stopped state Communication state confirmation means for confirming the communication state confirmation means, and when the communication state confirmation means confirms that all the write target arithmetic devices are in the normal communication stopped state, the write pair And all of said write target computing device to simultaneously transmit communication speed changing means for changing the communication speed to the same speed for all the write target computing device change signal is a signal for changing the communication speed of the computing device And a memory writing means for performing a writing process on the write target memory when receiving a return signal of the change signal transmitted by the communication speed changing means from all the write target arithmetic devices. It is characterized by.
[0016]
According to the first aspect of the present invention, even when there are a plurality of write target arithmetic devices on the network, there is no communication error, and the write process to the write target memory can be performed at high speed.
[0017]
According to a second aspect of the present invention, there is provided a memory writing method according to a second aspect of the present invention, wherein when there are a plurality of write target arithmetic devices each having a write target memory that can be written electronically on the network, A memory writing method for performing writing, wherein a ready signal, which is a signal for putting an arithmetic device into a normal communication stop state, is simultaneously transmitted to all the write target arithmetic devices , and all of the write target arithmetic devices are in normal communication A normal communication stop step for making a stop state, and a communication state check step for checking whether all of the write target arithmetic devices are in a normal communication stop state based on the ready signal transmitted in the normal communication stop step; When it is confirmed in this communication state confirmation step that all the write target arithmetic devices are in a normal communication stopped state, the write target arithmetic device And changing the communication speed step of changing the communication speed of all of said write target computing unit by transmitting at the same time the change signal is a signal for changing the communication speed for all of the write target computing device at the same speed, the communication A memory writing step of performing a writing process on the write target memory when receiving a return signal of the change signal transmitted in the speed changing step from all of the write target arithmetic devices. To do.
[0018]
According to the second aspect of the present invention, even when there are a plurality of write target arithmetic devices on the network, there is no communication error, and the write process to the write target memory can be performed at high speed.
[0019]
According to a third aspect of the present invention, there is provided a recording medium on which a memory writing program is recorded, when there are a plurality of write target arithmetic devices including a write target memory that can be written electronically on a network. A recording medium in which a memory writing program for writing into a memory to be embedded is recorded, and a ready signal, which is a signal for bringing the arithmetic device into a normal communication stop state, is simultaneously transmitted to all of the write target arithmetic devices to Whether or not all of the write target arithmetic devices are in the normal communication stop state by the normal communication stop processing for setting all the write target arithmetic devices in the normal communication stop state and the ready signal transmitted by the normal communication stop processing. Communication state confirmation processing for confirming whether or not, and this communication state confirmation processing confirms that all the write target arithmetic devices are in a normal communication stopped state. Sometimes, change the speed of all of the write target computing unit by transmitting at the same time the change signal is a signal for changing the communication speed for all of the write target computing device of the write target computing device at the same rate A communication speed change process to be performed, and when a return signal of the change signal transmitted by the communication speed change process is received from all the write target arithmetic devices, a memory book for performing a write process on the write target memory Including the processing.
[0020]
According to the third aspect of the present invention, even when there are a plurality of write target arithmetic units on the network, there is no communication error, and the write process to the write target memory can be performed at high speed.
[0021]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0022]
First, FIG. 1 is a block diagram of a memory writing system in which writing to a memory is performed by the memory writing device of the present embodiment. Here, a flash memory will be described as an example of a write target memory that is a target of writing, and an engine control device (hereinafter abbreviated as an ECU) will be described as an example of a write target arithmetic device equipped with the flash memory. To do.
[0023]
As shown in FIG. 1, a memory writing device 1 that performs a writing process to a memory is connected to a bus 2 that is a network when the writing process is performed, and a plurality of ECUs 3A, 3B,.・ 3N is connected.
[0024]
Here, the memory writing device 1 includes a normal communication stopping unit 11 that transmits a ready signal, which is a signal for stopping the ECU to a normal communication state, to all the ECUs 3A, 3B,. 3N, communication state confirmation means 12 for confirming whether or not all of the ECUs are in a normal communication stop state by the ready signal transmitted by 11, and all the ECUs 3A, 3B,. Is confirmed to be in the normal communication stop state, the communication speed changing means 13 for transmitting a change signal, which is a signal for changing the communication speed of the ECU, to all the ECUs 3A, 3B,. When the return signal of the change signal transmitted by the changing means 13 is received from all the ECUs 3A, 3B,..., 3N Flash memory 17A, 17B, ···, and a memory writing unit 14 that writes processing to 17N.
[0025]
The memory writing device 1 is constituted by a normal computer system including a CPU for performing various processes and a storage means for storing instructions for the processing, and each processing performed in the memory writing device 1 is performed. Instructions and timing constraints are held in the storage means, and are loaded into the CPU and executed as necessary.
[0026]
The ECUs 3A, 3B,..., 3N drive signals to input circuits that perform waveform processing by inputting signals from various sensors that detect the operating state of the engine, and actuators such as injectors attached to the engine. , 15N, and 15N, 15B,..., 15N for executing various processes for controlling the engine. Yes.
[0027]
The microcomputers 15A, 15B,..., 15N include normal CPUs 16A, 16B,..., 16N that operate according to programs, and flash memories 17A that store programs and data necessary for the CPU 16 to operate. , 17N and RAMs 18A, 18B,..., 18N for temporarily storing the calculation results of the CPU 16, etc., respectively, and the memory write to the flash memories 17A, 17B,. The writing by the inserting device 1 is performed.
[0028]
However, the write target memory to be written to by the memory writing device 1 is not limited to the flash memory, and may be any electronically writable memory.
[0029]
Next, a writing process to the write target memory by the memory writing device 1 of the present embodiment will be described based on FIG.
[0030]
First, when the memory writing device 1 is connected to the bus 2 and initialization is performed (S201), the memory writing device 1 is connected to each ECU 3A, 3B,..., 3N operating in the normal mode. Then, a ready signal, which is a signal for stopping the normal mode, is transmitted by the broadcast method (S202).
[0031]
The ECUs 3A, 3B,..., 3N that have received this ready signal immediately end the normal mode and enter a normal communication stopped state (S203).
[0032]
On the other hand, when the ready signal is transmitted, the memory writing device 1 shifts to the bus monitor state and executes a bus line check by interrupt processing or the like for a predetermined time (S204). At this time, it is determined whether or not there is an ECU still operating in the normal mode (S205), and when there is an ECU operating in the normal mode, the process returns to step S202 to transmit a ready signal again (S202).
[0033]
When it is confirmed that all the ECUs are in the normal communication stopped state, the memory writing device 1 sends a change signal, which is a signal for changing the communication speed, to each of the ECUs 3A, 3B,. While transmitting by the broadcast method (S206), the communication speed of the memory writing device 1 is also changed to the communication speed transmitted by the change signal to increase the speed (S207). For example, the communication speed of 20 kbps is increased to 100 kbps.
[0034]
When the ECU 3A, 3B,..., 3N receive the change signal, the ECU 3A changes the communication speed recorded in the change signal to increase the speed (S208), and returns a change response signal that is a response to the change signal. At the same time (S209), a transition is made to a state in which write processing is performed (S210). However, the change response signal is transmitted after a set time such as 100 ms elapses in order to synchronize.
[0035]
Then, the memory writing device 1 determines whether or not the change response signal has been received from all the ECUs 3A, 3B,..., 3N (S211), and cannot receive the change response signal from all the ECUs. In addition, when there is an ECU whose communication speed is not increased including the memory writing device 1, the processing related to writing to the flash memory 17 to be written is not performed, and after power-on reset (S 212), the process returns to step S 201. The same processing is performed again.
[0036]
Further, when the memory writing device 1 receives a change response signal from all the ECUs 3A, 3B,..., 3N, a process related to writing is performed on the flash memory of each ECU (S213), and this embodiment The memory writing process by the memory writing device 1 ends.
[0037]
As described above, the memory writing device 1 of the present embodiment does not control the communication speed changing process in the writing process in the boot program, but controls the communication speeds of all ECUs in advance before performing the writing process. Since the speed is increased, it is possible to prevent a communication error from occurring because the communication speed between the memory writing device 1 and each ECU does not match.
[0038]
Further, the memory writing device 1 of the present embodiment increases the communication speed of all ECUs in advance even when writing to ECUs on networks with different communication speeds. It is not necessary to switch the communication speed after processing and perform writing processing to the low-speed network, so that high-speed writing processing can be performed.
[0039]
Note that a program for realizing each process of the memory writing device 1 described above can be stored in a recording medium. By reading the recording medium by a computer system, the program is executed to control the computer. However, each process of the memory writing device 1 described above can be realized. Here, the recording medium includes a device capable of recording a program, such as a memory device, a magnetic disk device, and an optical disk device.
[0040]
【Effect of the invention】
As described above, according to the memory writing device of the present invention, even when there are a plurality of arithmetic devices on the network, there is no communication error, and writing processing to the memory can be performed at high speed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an embodiment of a memory writing system of the present invention.
FIG. 2 is a flowchart for explaining a write process to a write target memory by the memory writing system shown in FIG. 1;
FIG. 3 is a block diagram showing a configuration of a conventional memory rewriting system.
[Explanation of symbols]
1 Memory writing device 2 Buses 3A, 3B,..., 3N ECU
11 Normal communication stop means 12 Communication state confirmation means 13 Communication speed change means 14 Memory writing means 15A, 15B,..., 15N Microcomputers 16A, 16B,.
17A, 17B,..., 17N Flash memory

Claims (3)

電子的に書き込み可能な書込対象メモリを具備する書込対象演算装置がネットワーク上に複数存在するときに、前記書込対象メモリへの書き込みを行うメモリ書込装置であって、
演算装置を通常通信停止状態にする信号であるready信号をすべての前記書込対象演算装置に同時に送信して前記書込対象演算装置のすべてを通常通信停止状態にする通常通信停止手段と、
この通常通信停止手段により送信された前記ready信号によって、前記書込対象演算装置のすべてが通常通信停止状態であるか否かを確認する通信状態確認手段と、
この通信状態確認手段によりすべての前記書込対象演算装置が通常通信停止状態であると確認されたときには、前記書込対象演算装置の通信速度を変更させる信号であるchange信号をすべての前記書込対象演算装置に同時に送信してすべての前記書込対象演算装置の通信速度を同一の速度に変更させる通信速度変更手段と、
この通信速度変更手段により送信された前記change信号の返送信号をすべての前記書込対象演算装置から受信したときには、前記書込対象メモリに対して書き込み処理を行うメモリ書込手段と
を含むことを特徴とするメモリ書込装置。
A memory writing device that performs writing to the write target memory when there are a plurality of write target arithmetic devices provided with the electronically writable write target memory on the network,
Normal communication stopping means for simultaneously transmitting a ready signal, which is a signal for setting the arithmetic device to a normal communication stop state, to all the write target arithmetic devices to place all of the write target arithmetic devices in a normal communication stop state;
Communication state confirmation means for confirming whether or not all of the write target arithmetic devices are in a normal communication stopped state by the ready signal transmitted by the normal communication stopping means;
When it is confirmed by the communication state confirmation means that all the write target arithmetic devices are in a normal communication stopped state, a change signal that is a signal for changing the communication speed of the write target arithmetic device is sent to all the write operations. Communication speed changing means for simultaneously transmitting to the target arithmetic device and changing the communication speed of all the write target arithmetic devices to the same speed ;
A memory writing unit that performs a writing process on the write target memory when receiving a return signal of the change signal transmitted by the communication speed changing unit from all the write target arithmetic units. A memory writing device.
電子的に書き込み可能な書込対象メモリを具備する書込対象演算装置がネットワーク上に複数存在するときに、前記書込対象メモリへの書き込みを行うメモリ書込方法であって、
演算装置を通常通信停止状態にする信号であるready信号をすべての前記書込対象演算装置に同時に送信して前記書込対象演算装置のすべてを通常通信停止状態にする通常通信停止ステップと、
この通常通信停止ステップにより送信された前記ready信号によって、前記書込対象演算装置のすべてが通常通信停止状態であるか否かを確認する通信状態確認ステップと、
この通信状態確認ステップによりすべての前記書込対象演算装置が通常通信停止状態であると確認されたときには、前記書込対象演算装置の通信速度を変更させる信号であるchange信号をすべての前記書込対象演算装置に同時に送信してすべての前記書込対象演算装置の通信速度を同一の速度に変更させる通信速度変更ステップと、
この通信速度変更ステップにより送信された前記change信号の返送信号をすべての前記書込対象演算装置から受信したときには、前記書込対象メモリに対して書き込み処理を行うメモリ書込ステップと
を含むことを特徴とするメモリ書込方法。
A memory writing method for performing writing to the write target memory when there are a plurality of write target arithmetic devices provided with the electronically writable write target memory on a network,
A normal communication stop step of simultaneously sending a ready signal, which is a signal for setting the arithmetic device to a normal communication stop state, to all the write target arithmetic devices to make all of the write target arithmetic devices a normal communication stop state;
A communication state confirmation step for confirming whether or not all of the write target arithmetic devices are in a normal communication stop state by the ready signal transmitted in the normal communication stop step;
When it is confirmed in this communication state confirmation step that all the write target arithmetic devices are in a normal communication stopped state, a change signal that is a signal for changing the communication speed of the write target arithmetic device is sent to all the write operations. A communication speed change step for simultaneously transmitting to the target arithmetic device and changing the communication speed of all the write target arithmetic devices to the same speed ;
And a memory writing step of performing a writing process on the write target memory when receiving a return signal of the change signal transmitted in the communication speed changing step from all the write target arithmetic devices. A memory writing method.
電子的に書き込み可能な書込対象メモリを具備する書込対象演算装置がネットワーク上に複数存在するときに、前記書込対象メモリへの書き込みを行うメモリ書込プログラムを記録した記録媒体であって、
演算装置を通常通信停止状態にする信号であるready信号をすべての前記書込対象演算装置に同時に送信して前記書込対象演算装置のすべてを通常通信停止状態にする通常通信停止処理と、
この通常通信停止処理により送信された前記ready信号によって、前記書込対象演算装置のすべてが通常通信停止状態であるか否かを確認する通信状態確認処理と、
この通信状態確認処理によりすべての前記書込対象演算装置が通常通信停止状態であると確認されたときには、前記書込対象演算装置の通信速度を変更させる信号であるchange信号をすべての前記書込対象演算装置に同時に送信してすべての前記書込対象演算装置の通信速度を同一の速度に変更させる通信速度変更処理と、
この通信速度変更処理により送信された前記change信号の返送信号をすべての前記書込対象演算装置から受信したときには、前記書込対象メモリに対して書き込み処理を行うメモリ書込処理と
を含むことを特徴とするメモリ書込プログラムを記録した記録媒体。
A recording medium that records a memory writing program for writing to a write target memory when there are a plurality of write target arithmetic devices having a write target memory that is electronically writable on the network. ,
An arithmetic unit and a normal communication stop process a ready signal by sending all of the write target computing device simultaneously for normal communication stop state all the write target computing device is a signal to the normal communication stop state,
A communication state confirmation process for confirming whether or not all of the write target arithmetic devices are in a normal communication stop state by the ready signal transmitted by the normal communication stop process;
When it is confirmed that all the write target arithmetic devices are in a normal communication stop state by this communication state confirmation processing, a change signal that is a signal for changing the communication speed of the write target arithmetic device is sent to all the write operations. A communication speed change process for simultaneously transmitting to the target arithmetic device and changing the communication speed of all the write target arithmetic devices to the same speed ;
And a memory write process for performing a write process on the write target memory when receiving a return signal of the change signal transmitted by the communication speed changing process from all the write target arithmetic units. A recording medium on which a memory writing program is recorded.
JP2000343438A 2000-11-10 2000-11-10 MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM Expired - Lifetime JP4960545B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000343438A JP4960545B2 (en) 2000-11-10 2000-11-10 MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000343438A JP4960545B2 (en) 2000-11-10 2000-11-10 MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM

Publications (2)

Publication Number Publication Date
JP2002149433A JP2002149433A (en) 2002-05-24
JP4960545B2 true JP4960545B2 (en) 2012-06-27

Family

ID=18817805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000343438A Expired - Lifetime JP4960545B2 (en) 2000-11-10 2000-11-10 MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM

Country Status (1)

Country Link
JP (1) JP4960545B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005337017A (en) * 2004-05-24 2005-12-08 Mitsubishi Electric Corp Electronic control device for vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3635903B2 (en) * 1997-12-15 2005-04-06 三菱電機株式会社 Programmable controller
JPH11175331A (en) * 1997-12-15 1999-07-02 Denso Corp Rom rewritting method for lan system for vehicle, and on-vehicle controller
JPH11316676A (en) * 1998-05-06 1999-11-16 Seiko Epson Corp Data processor and control method therefor
JP3575300B2 (en) * 1998-11-12 2004-10-13 トヨタ自動車株式会社 Mobile computer

Also Published As

Publication number Publication date
JP2002149433A (en) 2002-05-24

Similar Documents

Publication Publication Date Title
JP4136359B2 (en) Microcomputer
US8140216B2 (en) Method of detecting manipulation of a programmable memory device of a digital controller
US6401163B1 (en) Apparatus and method for rewriting data from volatile memory to nonvolatile memory
JP3578638B2 (en) Diagnostic device for microcomputer memory
JP7091486B2 (en) Electronic control device, security verification method for electronic control device
JP2001123874A (en) Program rewrite system or memory rewriting system for electronic control device
JP4960545B2 (en) MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM
JP2002041367A (en) Vehicle controller
JP2001297009A (en) Rewriting system for vehicle controller
JP3915411B2 (en) Electronic control device for vehicle
JP3937598B2 (en) Electronic control unit
JPH11141391A (en) Controller for automobile
JP6887277B2 (en) Electronic control device for automobiles
JP4615699B2 (en) Memory rewrite security system
JPH08153397A (en) Eeprom data rewrite controller
JP2003271420A (en) Electronic control device
JP2002047998A (en) Controller for vehicle
JP2009090940A (en) Updating device of vehicle control program
JPH07210215A (en) Data check method for eeprom
JPH10283172A (en) Flash rom data rewrite system
JP3444295B2 (en) Electronic control unit for vehicle engine
JP2002149432A (en) Control data update management device for vehicle controller
JPH1097419A (en) Memory write device for electronic device
JP3947643B2 (en) Data control device
WO2024087234A1 (en) Method and apparatus for updating software, and intelligent device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070605

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100617

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100706

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100903

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110630

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20110705

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20111007

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120323

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150330

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4960545

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term