JPH11141393A - Memory rewriting device for controlling vehicle - Google Patents

Memory rewriting device for controlling vehicle

Info

Publication number
JPH11141393A
JPH11141393A JP9305528A JP30552897A JPH11141393A JP H11141393 A JPH11141393 A JP H11141393A JP 9305528 A JP9305528 A JP 9305528A JP 30552897 A JP30552897 A JP 30552897A JP H11141393 A JPH11141393 A JP H11141393A
Authority
JP
Japan
Prior art keywords
memory
abnormality
diagnosis result
control
rewriting
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
Application number
JP9305528A
Other languages
Japanese (ja)
Inventor
Shuichi Yoneyama
修一 米山
Yukihiro Ino
幸宏 猪野
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP9305528A priority Critical patent/JPH11141393A/en
Publication of JPH11141393A publication Critical patent/JPH11141393A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To eliminate diagnosis results having abnormality from being deleted and prevent a state not diagnosing a diagnostic system rightly by prohibiting the data rewrite for a control memory, when a diagnostic result having abnormality is stored in a memory target to be rewritten. SOLUTION: In a step 1, whether a rewrite demand signal of a control memory is received or not is judged. In forward to a step 2, a diagnostic result stored in the memory or a target to be rewritten is observed. If just one abnormality is found in the diagnostic results, it is forwarded to steps 4, 5, and after an output signal saying that there is abnormality in the diagnosis result is transmitted to an external tool, it is checked whether an output demand of the diagnosis result having abnormality is received or not. Then, it is forwarded to a step 6 and a rewrite prohibition signal is sent to the external tool. When the output demand of the diagnosis result having the abnormality is received from the external tool, it is forwarded to a step 7 and the diagnosis result having the abnormality is sent without any omission.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は車両に搭載したコ
ントロールユニットのメモリ書き換え装置に関する。
The present invention relates to a memory rewriting device for a control unit mounted on a vehicle.

【0002】[0002]

【従来の技術】CPU、メモリ、入出力装置から構成さ
れるコントロールユニットにおいて、従来、制御メモリ
の内容を変更するには、メモリ自体を交換する必要があ
ったが、近年、外部ツールにより電気的に消去および書
き込みが可能なメモリを使用することで、制御メモリの
交換を不要とし、コストの低減を可能としている(特開
平7−287605号公報参照)。
2. Description of the Related Art In a control unit composed of a CPU, a memory, and an input / output device, it has conventionally been necessary to replace the memory itself in order to change the contents of the control memory. By using a erasable and writable memory, it is not necessary to replace the control memory, and the cost can be reduced (see Japanese Patent Application Laid-Open No. 7-287605).

【0003】[0003]

【発明が解決しようとする課題】ところで、診断システ
ムを備える車両では、走行中にエンジン制御システムの
センサ、アクチュエータやワイヤーハーネスに異常が生
じた場合、異常箇所をコントロールユニットが診断して
メモリ(RAM)に記憶するとともに、異常警告ランプ
を点灯してドライバーに知らせたり、故障診断した内容
がイグニッションキースイッチをOFFにしても消去し
ないよう、必要に応じてバックアップメモリに記録して
いる。
By the way, in a vehicle equipped with a diagnostic system, if an abnormality occurs in a sensor, an actuator, or a wire harness of the engine control system during traveling, the control unit diagnoses the abnormality and stores it in a memory (RAM). ), The abnormality warning lamp is turned on to notify the driver, and the contents of the failure diagnosis are recorded in the backup memory as necessary so that they are not erased even if the ignition key switch is turned off.

【0004】また、北米のカリフォルニア州大気資源局
(CARB)から提出されたOBDI(On Board Dia
gnostics version I)では、排気を浄化する装置(O2
センサ、EGRバルブなど)の故障診断と、ドライバー
への警告表示を1988年モデル車から義務づけ、OB
DIIではさらに、三元触媒の浄化率モニタ、失火モニタ
など故障診断内容を拡大するとともに、SAE(Socie
ty of Automotive Enginieers)で規格化されたデー
タ通信方式で診断内容をモニタできるようにすることを
1994年モデル車から定めており、こうした要請を受
けて、OBDII対応の車両では、診断結果を診断コード
にしてメモリ(RAM)に格納している。
An OBDI (On Board Diameter) submitted by the California Bureau of Atmospheric Resources (CARB) in North America
In gnostics version I), a device for purifying exhaust gas (O2
Obligation for failure diagnosis of sensors, EGR valves, etc.) and warning display to the driver from 1988 model cars, OB
DII will further expand the content of failure diagnosis such as monitoring of the three-way catalyst's purification rate and misfire,
ty of Automotive Enginieers), a 1994 model car has specified that the contents of diagnosis can be monitored using a data communication method standardized by the Automobile Enginieers. And stored in a memory (RAM).

【0005】しかしながら、制御メモリの書き換えに際
してはメモリ全体を消去することが多いため、異常があ
る場合の診断結果が書き換えの対象となるメモリに格納
されているときはその異常がある場合の診断結果までが
消去されてしまい、消去したあとに新しい情報(異常が
あっても正常である場合の診断結果となる)が書き込ま
れたのでは、診断システムが正しく診断していないこと
になる。
However, when rewriting the control memory, the entire memory is often erased. Therefore, when the diagnostic result when there is an abnormality is stored in the memory to be rewritten, the diagnostic result when there is an abnormality is stored. However, if new information (a diagnostic result is obtained even when there is an abnormality) is written after the erase, it means that the diagnostic system has not correctly diagnosed.

【0006】そこで本発明は、制御メモリの書き換えに
際して診断結果を確認し、診断結果に異常がある場合は
書き換えを禁止することにより、診断システムが正しく
診断していない事態に陥らないようにすることを目的と
する。
Accordingly, the present invention is to prevent a diagnosis system from being diagnosed incorrectly by confirming a diagnosis result when rewriting a control memory and prohibiting rewriting when there is an abnormality in the diagnosis result. With the goal.

【0007】[0007]

【課題を解決するための手段】第1の発明は、外部ツー
ルにより電気的に消去および書き込み可能なメモリから
構成される制御メモリを搭載したコントロールユニット
と、外部ツールから制御メモリに対するデータ書き換え
の許可判定を行う手段とを備え、書き換え許可時にのみ
制御メモリに対するデータ書き換えが実行されるように
した車両制御用メモリ書き換え装置において、異常があ
る場合の診断結果が書き換えの対象となるメモリに格納
されているかどうかを判定する手段と、この判定結果よ
り異常がある場合の診断結果が書き換えの対象となるメ
モリに格納されているとき制御メモリに対するデータ書
き換えを禁止する手段とを備える。
According to a first aspect of the present invention, there is provided a control unit having a control memory including a memory electrically erasable and writable by an external tool, and permission of data rewriting to the control memory from the external tool. Means for performing a determination, in a vehicle control memory rewriting device in which data rewriting to the control memory is executed only when rewriting is permitted, a diagnosis result when there is an abnormality is stored in a memory to be rewritten. Means for judging whether there is an error or not, and means for prohibiting data rewriting to the control memory when a diagnosis result when there is an abnormality is stored in the memory to be rewritten.

【0008】第2の発明では、第1の発明において前記
判定結果より異常がある場合の診断結果が書き換えの対
象となるメモリに格納されているとき、その診断結果を
外部ツールに表示する。
According to a second aspect of the present invention, when a diagnostic result in the case where there is an abnormality based on the determination result in the first aspect is stored in a memory to be rewritten, the diagnostic result is displayed on an external tool.

【0009】第3の発明では、第1の発明において異常
がある場合の診断結果を消去したいという指示があると
きは制御メモリに対するデータ書き換えの禁止を解除し
て、制御メモリに対するデータ書き換えを行う。
In the third invention, when there is an instruction to erase the diagnosis result when there is an abnormality in the first invention, the prohibition of data rewriting for the control memory is released, and the data rewriting for the control memory is performed.

【0010】第4の発明では、第2の発明において異常
がある場合の診断結果を消去したいという指示があると
きは制御メモリに対するデータ書き換えの禁止を解除し
て、制御メモリに対するデータ書き換えを行う。
In the fourth invention, when there is an instruction to erase the diagnosis result when there is an abnormality in the second invention, the prohibition of data rewriting on the control memory is released and the data rewriting on the control memory is performed.

【0011】[0011]

【発明の効果】第1の発明によれば、異常がある場合の
診断結果が、書き換えの対象となるメモリに格納されて
いるとき制御メモリに対するデータ書き換えを禁止する
ので、異常がある場合の診断結果までが消去されてしま
うことがなく、これによって、診断システムが正しく診
断していない事態になること防止できる。
According to the first aspect of the present invention, the rewriting of data in the control memory is prohibited when the diagnosis result in the case of an abnormality is stored in the memory to be rewritten. The result is not erased, thereby preventing a situation in which the diagnostic system does not correctly diagnose.

【0012】第2の発明では、外部ツールに表される異
常がある場合の診断結果をみることで、制御メモリに対
するデータ書き換えが禁止されることになった理由が明
確になる。
In the second invention, the reason why the data rewriting to the control memory is prohibited is clarified by looking at the diagnosis result when there is an abnormality represented by the external tool.

【0013】第3の発明では、診断結果に異常があるこ
とを理解した上での制御メモリのデータ書き換えが可能
になる。
According to the third aspect, it is possible to rewrite data in the control memory after understanding that there is an abnormality in the diagnosis result.

【0014】第4の発明では、異常がある場合の診断結
果の内容を理解した上での制御メモリのデータ書き換え
が可能になる。
According to the fourth aspect, it is possible to rewrite the data in the control memory after understanding the contents of the diagnosis result when there is an abnormality.

【0015】[0015]

【発明の実施の形態】図1はシステム構成を示し、1は
エンジン制御用コントロールユニット(以下ECMとい
う)である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a system configuration, and 1 is an engine control unit (hereinafter referred to as ECM).

【0016】CPU、メモリ、入出力装置から構成され
るECM1では、制御プログラムにしたがってCPUが
各種の制御を行う。たとえば、アイドル回転数を運転条
件に応じた目標値に自動的に制御するための機構とし
て、スロットルバルブをバイパスする補助空気通路に、
ECM1からの信号により駆動される補助空気弁を介装
し、ステップモータにより補助空気弁の開度を制御し、
アイドル回転数を目標値に一致するように制御する。
In the ECM 1 including a CPU, a memory, and an input / output device, the CPU performs various controls according to a control program. For example, as a mechanism for automatically controlling the idle speed to a target value according to the operating conditions, an auxiliary air passage bypassing the throttle valve is provided.
An auxiliary air valve driven by a signal from ECM1 is interposed, and the opening of the auxiliary air valve is controlled by a step motor.
The idle speed is controlled so as to match the target value.

【0017】ECM1ではまた、走行中にエンジン制御
システムのセンサ、アクチュエータやワイヤーハーネス
に異常が生じた場合、異常箇所を自己診断してその結果
をメモリに記憶するとともに、異常警告ランプを点灯し
てドライバーに知らせたり、故障診断した内容がイグニ
ッションキースイッチをOFFにしても消去しないよ
う、必要に応じてバックアップメモリに格納している。
OBDII対応の車両では、ECM1がOBDIIに適合し
た故障診断を行い、その診断結果を診断コードにしてメ
モリ(RAM)に格納する。
In the ECM 1, when an abnormality occurs in a sensor, an actuator, or a wire harness of the engine control system during traveling, the abnormality is self-diagnosed, the result is stored in a memory, and an abnormality warning lamp is turned on. The information is stored in the backup memory as needed so that the driver is notified or the contents of the fault diagnosis are not erased even if the ignition key switch is turned off.
In a vehicle compatible with OBDII, the ECM1 performs a failure diagnosis conforming to OBDII, and stores the diagnosis result in a memory (RAM) as a diagnosis code.

【0018】ところで、制御メモリをフラッシュメモリ
(電気的に消去および書き込み可能なメモリ)で構成す
ることで、制御プログラムをフラッシュメモリに書き込
んだ後に、アイドル回転数制御プログラム中にバグ(間
違い)を発見した場合に、図1に示したように、ECM
1に外部ツール2を接続し、外部ツール2より制御メモ
リの書き換えデータを送って、ECM1内部の制御メモ
リを書き換えることを可能とする。
By constructing the control memory with a flash memory (an electrically erasable and writable memory), a bug (error) is found in the idle speed control program after writing the control program in the flash memory. In this case, as shown in FIG.
An external tool 2 is connected to the ECM 1 and rewrite data of the control memory is sent from the external tool 2 to enable rewriting of the control memory inside the ECM 1.

【0019】制御メモリの書き換えのための外部ツール
2も、ECM1と同様、CPU、メモリ、入出力装置か
ら構成され、制御メモリ書き換えデータ(バグを除いた
後の制御プログラム)が搭載されている。外部ツール2
は制御メモリの書き換え時に通信線を介してECM1に
接続され、図2に示すようにして制御メモリの書き換え
が行われる。ECM1、外部ツール2とも通信装置を有
しており、両者はシリアル通信によりデータのやりとり
が行われる。
Similarly to the ECM 1, the external tool 2 for rewriting the control memory is also composed of a CPU, a memory, and an input / output device, and is loaded with control memory rewrite data (a control program after removing bugs). External tool 2
Is connected to the ECM1 via the communication line when the control memory is rewritten, and the control memory is rewritten as shown in FIG. Both the ECM 1 and the external tool 2 have communication devices, and both exchange data by serial communication.

【0020】この制御メモリの書き換えは、ECM1を
車両から取り外すことなく、エンジンを停止したまま、
エンジンキースイッチをONにした状態で行う。
This rewriting of the control memory can be performed without removing the ECM 1 from the vehicle while keeping the engine stopped.
This is performed with the engine key switch turned on.

【0021】この場合に、異常がある場合の診断結果が
書き換えの対象となるメモリに格納されているときはそ
の異常のある場合の診断結果までが消去されてしまい、
新しい情報(初期化により診断結果が正常になる)が書
き込まれたのでは、診断システムが正しく診断されてい
ないことになる。
In this case, when the diagnosis result in the case where there is an abnormality is stored in the memory to be rewritten, the diagnosis result up to the case where there is an abnormality is erased.
If new information (a diagnostic result becomes normal by initialization) is written, the diagnostic system is not correctly diagnosed.

【0022】これに対処するため本発明の第1実施例で
は、異常がある場合の診断結果が書き換えの対象となる
メモリに格納されているとき、書き換え禁止信号を外部
ツール2に送信するとともに、その異常がある診断結果
を外部ツール2に表示させる。
In order to cope with this, in the first embodiment of the present invention, when a diagnosis result when there is an abnormality is stored in a memory to be rewritten, a rewrite inhibition signal is transmitted to the external tool 2 and The diagnosis result having the abnormality is displayed on the external tool 2.

【0023】この制御について、さらに詳しく説明す
る。
This control will be described in more detail.

【0024】いま図2は、外部ツール2とECM1のあ
いだの信号のやり取りを表した通信シーケンスである。
FIG. 2 is a communication sequence showing the exchange of signals between the external tool 2 and the ECM 1.

【0025】制御メモリの書き換えに際してはまずEC
M1との間でセキュリティ通信を行う。セキュリティ通
信は、制御メモリを含めた各種のメモリを、市場でメー
カーやディーラーの関係者以外の者が簡単に書き換える
ことができないようにメモリの書き換えを実施する前に
行う暗号のやりとりのことである。具体的には、外部ツ
ール2より書き換え防止解除要求をECM1に向けて送
り、これが正規の要求であれば、これを受けたECM1
より書き換え防止解除を送り返すことでセキュリティ通
信が終了し、ECM1がアンロック状態(つまり書き換
え防止が解除された状態)となる。
When rewriting the control memory, first,
Security communication is performed with M1. Security communication is the exchange of cryptography before rewriting memory so that it is not easy for anyone other than manufacturers and dealers in the market to rewrite various types of memory, including control memory. . Specifically, the external tool 2 sends a rewrite prevention release request to the ECM 1, and if this is a legitimate request, the ECM 1
The security communication is terminated by sending back the rewrite prevention release, and the ECM 1 is unlocked (that is, the rewrite prevention is released).

【0026】なお、正規の外部ツールでないときは、暗
号のやりとりが成立しないためECM1がアンロック状
態となることはなくロック状態(書き換え防止状態)の
ままである。
When the external tool is not a legitimate external tool, the exchange of encryption is not established, so that the ECM 1 does not enter the unlocked state but remains in the locked state (rewrite preventing state).

【0027】セキュリティ通信が終了すると、続けて外
部ツール2より制御メモリの書き換え要求をECM1に
送る。この外部ツール2からの要求を受けてECM1で
は制御メモリ書き換え要求の受信および書き換え処理を
行う。
When the security communication is completed, the external tool 2 sends a request for rewriting the control memory to the ECM 1. In response to the request from the external tool 2, the ECM 1 receives a control memory rewrite request and performs a rewrite process.

【0028】このECM1での処理を図3のフローチャ
ートにしたがって説明する。
The processing in the ECM 1 will be described with reference to the flowchart of FIG.

【0029】図3において、まずステップ1では制御メ
モリの書き換え要求信号を受信しているかどうか判断す
る。書き換え要求信号を受信していれば、ステップ2に
進み、書き換えの対象となっているメモリに格納されて
いる診断結果をみる。診断結果に異常がなければ、ステ
ップ3に進み、従来と同様に書き換え許可信号を外部ツ
ール2に向けて送信する。
In FIG. 3, first, at step 1, it is determined whether or not a rewrite request signal for the control memory has been received. If a rewrite request signal has been received, the process proceeds to step 2 to check the diagnostic result stored in the memory to be rewritten. If there is no abnormality in the diagnosis result, the process proceeds to step 3, and a rewrite permission signal is transmitted to the external tool 2 as in the conventional case.

【0030】一方、診断結果に一つでも異常があるとき
は、ステップ2よりステップ4、5に進み、診断結果に
以上があるむねの出力信号を外部ツール2に向けて送信
したあと、異常がある場合の診断結果の出力要求を受信
しているかどうかをみる。ステップ1において書き換え
要求信号を受信した直後は診断結果出力要求が出ていな
いので、ステップ6に進み、書き換え禁止信号を外部ツ
ール2に送信する。これに対して、異常がある場合の診
断結果の出力要求を外部ツール2より受信したときは、
ステップ7に進み、異常がある場合の診断結果を漏れな
く送信する。説明を飛ばしたステップ8は後述する。
On the other hand, if there is any abnormality in the diagnosis result, the process proceeds from step 2 to steps 4 and 5, and after transmitting a target output signal having the diagnosis result to the external tool 2, the abnormality is detected. Check whether a request to output a diagnostic result in a certain case has been received. Immediately after receiving the rewrite request signal in step 1, the request for outputting the diagnosis result is not issued. On the other hand, when a request for output of a diagnosis result in the case of an abnormality is received from the external tool 2,
Proceeding to step 7, the diagnosis result when there is an abnormality is transmitted without omission. Step 8, which has been skipped, will be described later.

【0031】次に、外部ツール2で実行される制御メモ
リの書き換え許可信号の受信および所定の処理につい
て、図4のフローチャートに基づいて説明する。
Next, the reception of the rewrite permission signal of the control memory and the predetermined processing executed by the external tool 2 will be described with reference to the flowchart of FIG.

【0032】図4において、まずステップ11において
制御メモリの書き換え許可信号をECM1より受信して
いるかどうかをみる。書き換え許可信号を受信している
ときは、ステップ12に進み、従来と同様に書き換えデ
ータをECM1に向け送信する。
In FIG. 4, first, at step 11, it is checked whether or not a rewrite permission signal for the control memory has been received from the ECM1. If the rewrite permission signal has been received, the process proceeds to step 12, and the rewrite data is transmitted to the ECM 1 as in the related art.

【0033】ECM1では制御メモリの書き換えデータ
を受信すると、制御メモリを書き換え、たとえば前記し
たアイドル回転数制御についていえば、この書き換えに
よって、間違いを訂正した後の制御プログラム全体がE
CM1の制御メモリに格納される。
When the ECM 1 receives the rewrite data of the control memory, it rewrites the control memory. For example, in the case of the idle speed control described above, the entire control program after correcting the error by this rewrite becomes E
It is stored in the control memory of CM1.

【0034】書き換えが終了したら、アンロック状態よ
りロック状態に切り換え、書き換えの終了を外部ツール
2に送り返す。外部ツール2ではこの送信を受けて、制
御メモリの書き換えが終了したことを確認し、通信シー
ケンスは終わりとなる。
When the rewriting is completed, the state is switched from the unlocked state to the locked state, and the end of the rewriting is sent back to the external tool 2. In response to this transmission, the external tool 2 confirms that the rewriting of the control memory has been completed, and the communication sequence ends.

【0035】一方、書き換え許可信号を受信していない
ときは、ステップ13、14に進み、制御メモリの書き
換え禁止信号を受信しているかどうか、異常がある場合
の診断結果を受信しているかどうかを判断する。
On the other hand, when the rewrite permission signal has not been received, the process proceeds to steps 13 and 14 to determine whether the rewrite prohibition signal of the control memory has been received, and whether the diagnosis result in the case of abnormality has been received. to decide.

【0036】この結果、書き換え禁止信号を受信してお
り、かつ異常がある場合の診断結果を受信していないと
きは、ステップ15に進み、異常がある場合の診断結果
の出力をECM1に要求し、異常がある場合の診断結果
を受信したときは、ステップ16に進み、異常がある場
合の診断結果を漏れなく外部ツール2の表示装置に表示
する。説明を飛ばしたステップ17、18、19は後述
する。
As a result, if the rewrite prohibition signal has been received and the diagnosis result in the case where there is an abnormality has not been received, the process proceeds to step 15 and the output of the diagnosis result in the case where there is an abnormality is requested to the ECM 1. When the result of the diagnosis when there is an abnormality is received, the process proceeds to step 16 and the result of the diagnosis when there is an abnormality is displayed on the display device of the external tool 2 without omission. Steps 17, 18, and 19 for which the description has been skipped will be described later.

【0037】このように、メモリ書き換えを実行するた
めのセキュリティ通信確立後、外部ツール2からの書き
換え要求信号をECM1が受信した場合に、異常がある
場合の診断結果が書き換えの対象となるメモリに格納さ
れているかどうかを確認し、異常がある場合の診断結果
が格納されているときには、書き換え禁止信号を外部ツ
ール2に送信し、この信号を受信した外部ツールに異常
がある場合の診断結果の出力要求をECM1に対して出
させ、ECM1から送られてくる異常がある場合の診断
結果を外部ツール2上に表示させるようにしたので、制
御メモリの書き換え時に、異常がある場合の診断結果ま
でが消去されてしまうことがなく、これによって、診断
システムが正しく診断していない事態になること防止す
ることができる。
As described above, when the ECM 1 receives the rewrite request signal from the external tool 2 after the security communication for executing the memory rewrite is established, the diagnosis result when there is an abnormality is stored in the memory to be rewritten. It is checked whether or not the data is stored. If the diagnosis result is stored when there is an abnormality, a rewrite prohibition signal is transmitted to the external tool 2. Since an output request is issued to the ECM 1 and the diagnosis result sent from the ECM 1 when there is an abnormality is displayed on the external tool 2, when the control memory is rewritten, up to the diagnosis result when there is an abnormality. Is not erased, thereby preventing a situation in which the diagnostic system does not correctly diagnose.

【0038】ただし、異常のある場合の診断結果を外部
ツールで確認した後であれば、制御メモリの書き換えを
行いたい場合がある。
However, after confirming the diagnosis result in the case of abnormality with an external tool, there is a case where it is desired to rewrite the control memory.

【0039】これに応えるため、図4においてステップ
17、18、19を、また図3においてステップ8を追
加している。つまり、外部ツール側では、異常がある場
合の診断結果を受信していても、その診断結果を消去し
たいとする指示があるときは、図4のステップ17より
ステップ18、19へと進み、制御メモリの書き換え禁
止解除信号をECM1に送信するとともに、診断結果を
非表示とする。一方、ECM1側では、診断結果に異常
のある場合であってもこの書き換え禁止解除信号を受信
したときは、制御メモリの書き換えを行うため、図3の
ステップ2、8よりステップ3に進み、書き換え許可信
号を外部ツールに向け送信する。
In order to respond to this, steps 17, 18, and 19 are added in FIG. 4 and step 8 is added in FIG. In other words, even if the external tool has received the diagnosis result when there is an abnormality, and there is an instruction to delete the diagnosis result, the process proceeds from step 17 to steps 18 and 19 in FIG. The memory rewrite inhibition release signal is transmitted to the ECM1, and the diagnosis result is not displayed. On the other hand, on the ECM 1 side, even if there is an abnormality in the diagnosis result, when this rewrite inhibition release signal is received, the control memory is rewritten, so that the process proceeds from step 2 and step 8 in FIG. Send the permission signal to the external tool.

【0040】これによって、異常がある場合の診断結果
の内容を理解した上での制御メモリのデータ書き換えが
可能になる。
This makes it possible to rewrite data in the control memory after understanding the contents of the diagnosis result when there is an abnormality.

【0041】実施形態では、ECM1が診断を行い、そ
の診断結果を書き換えの対象となるメモリに格納してい
る場合で説明したが、オートマチックトランスミッショ
ン制御用コントロールユニットがトランスミッション制
御に関する診断を行い、その診断結果を書き換えの対象
となるメモリに格納している場合にも本発明を適用する
ことができる。さらに、コントロールユニットはこれら
に限られるものでなく、所定のコントロールユニットが
所定の制御に関する診断を行い、その診断結果を書き換
えの対象となるメモリに格納している場合であれば本発
明の適用があることはいうまでもない。
In the embodiment, the case where the ECM 1 makes a diagnosis and the diagnosis result is stored in the memory to be rewritten has been described. However, the automatic transmission control control unit makes a diagnosis concerning the transmission control, and the diagnosis is performed. The present invention can be applied to a case where the result is stored in a memory to be rewritten. Furthermore, the control unit is not limited to these, and the present invention can be applied if a predetermined control unit performs a diagnosis related to a predetermined control and the diagnosis result is stored in a memory to be rewritten. Needless to say, there is.

【図面の簡単な説明】[Brief description of the drawings]

【図1】第1実施形態の制御システム図である。FIG. 1 is a control system diagram of a first embodiment.

【図2】第1実施形態の通信シーケンス図である。FIG. 2 is a communication sequence diagram of the first embodiment.

【図3】制御メモリ書き換え要求の受信時処理を説明す
るためのフローチャートである。
FIG. 3 is a flowchart illustrating a process at the time of receiving a control memory rewrite request.

【図4】制御メモリ書き換え許可の受信時処理を説明す
るためのフローチャートである。
FIG. 4 is a flowchart illustrating a process at the time of receiving a control memory rewrite permission.

【符号の説明】[Explanation of symbols]

1 ECM 2 外部ツール 1 ECM 2 External tool

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】外部ツールにより電気的に消去および書き
込み可能なメモリから構成される制御メモリを搭載した
コントロールユニットと、外部ツールから制御メモリに
対するデータ書き換えの許可判定を行う手段とを備え、
書き換え許可時にのみ制御メモリに対するデータ書き換
えが実行されるようにした車両制御用メモリ書き換え装
置において、異常がある場合の診断結果が書き換えの対
象となるメモリに格納されているかどうかを判定する手
段と、この判定結果より異常がある場合の診断結果が書
き換えの対象となるメモリに格納されているとき制御メ
モリに対するデータ書き換えを禁止する手段とを備えた
ことを特徴とする車両制御用メモリ書き換え装置。
A control unit having a control memory including a memory electrically erasable and writable by an external tool; and a means for determining permission of rewriting data in the control memory from the external tool,
In a vehicle control memory rewriting device in which data rewriting to a control memory is performed only when rewriting is permitted, a means for determining whether a diagnosis result when there is an abnormality is stored in a memory to be rewritten, Means for prohibiting rewriting of data in the control memory when a diagnosis result when there is an abnormality from the determination result is stored in a memory to be rewritten.
【請求項2】前記判定結果より異常がある場合の診断結
果が書き換えの対象となるメモリに格納されていると
き、その診断結果を外部ツールに表示することを特徴と
する請求項1に記載の車両制御用メモリ書き換え装置。
2. The method according to claim 1, wherein when a diagnosis result when there is an abnormality based on the determination result is stored in a memory to be rewritten, the diagnosis result is displayed on an external tool. Memory rewriting device for vehicle control.
【請求項3】異常がある場合の診断結果を消去したいと
いう指示があるときは制御メモリに対するデータ書き換
えの禁止を解除して、制御メモリに対するデータ書き換
えを行うことを特徴とする請求項1に記載の車両制御用
メモリ書き換え装置。
3. The method according to claim 1, wherein when there is an instruction to erase the diagnosis result when there is an abnormality, the prohibition of data rewriting on the control memory is released and the data rewriting on the control memory is performed. Vehicle rewrite device for vehicle control.
【請求項4】異常がある場合の診断結果を消去したいと
いう指示があるときは制御メモリに対するデータ書き換
えの禁止を解除して、制御メモリに対するデータ書き換
えを行うことを特徴とする請求項2に記載の車両制御用
メモリ書き換え装置。
4. The method according to claim 2, wherein when there is an instruction to delete the diagnosis result when there is an abnormality, the prohibition of data rewriting on the control memory is released and the data rewriting on the control memory is performed. Vehicle rewrite device for vehicle control.
JP9305528A 1997-11-07 1997-11-07 Memory rewriting device for controlling vehicle Pending JPH11141393A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9305528A JPH11141393A (en) 1997-11-07 1997-11-07 Memory rewriting device for controlling vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9305528A JPH11141393A (en) 1997-11-07 1997-11-07 Memory rewriting device for controlling vehicle

Publications (1)

Publication Number Publication Date
JPH11141393A true JPH11141393A (en) 1999-05-25

Family

ID=17946243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9305528A Pending JPH11141393A (en) 1997-11-07 1997-11-07 Memory rewriting device for controlling vehicle

Country Status (1)

Country Link
JP (1) JPH11141393A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010001021A (en) * 2007-08-03 2010-01-07 Denso Corp Electronic control device
JP2010143404A (en) * 2008-12-18 2010-07-01 Suzuki Motor Corp Vehicle communication control device
US7788005B2 (en) 2007-08-03 2010-08-31 Denso Corporation Electronic control system and method for vehicle diagnosis
JP2014154024A (en) * 2013-02-12 2014-08-25 Denso Corp Vehicle control data storage device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0610756A (en) * 1992-06-25 1994-01-18 Fujitsu Ten Ltd Electronic control device
JPH0666196A (en) * 1992-08-11 1994-03-08 Nippondenso Co Ltd Self-diagnosis device for vehicle
JPH0932627A (en) * 1995-07-19 1997-02-04 Kokusan Denki Co Ltd Control data rewriting method and device for control device of internal combustion engine
JPH09288573A (en) * 1996-04-23 1997-11-04 Mitsubishi Electric Corp On-vehicle controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0610756A (en) * 1992-06-25 1994-01-18 Fujitsu Ten Ltd Electronic control device
JPH0666196A (en) * 1992-08-11 1994-03-08 Nippondenso Co Ltd Self-diagnosis device for vehicle
JPH0932627A (en) * 1995-07-19 1997-02-04 Kokusan Denki Co Ltd Control data rewriting method and device for control device of internal combustion engine
JPH09288573A (en) * 1996-04-23 1997-11-04 Mitsubishi Electric Corp On-vehicle controller

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010001021A (en) * 2007-08-03 2010-01-07 Denso Corp Electronic control device
US7788005B2 (en) 2007-08-03 2010-08-31 Denso Corporation Electronic control system and method for vehicle diagnosis
US8412405B2 (en) 2007-08-03 2013-04-02 Denso Corporation Electronic control system and method for vehicle diagnosis
JP2010143404A (en) * 2008-12-18 2010-07-01 Suzuki Motor Corp Vehicle communication control device
JP2014154024A (en) * 2013-02-12 2014-08-25 Denso Corp Vehicle control data storage device

Similar Documents

Publication Publication Date Title
JP4399987B2 (en) Fail-safe system for vehicle integrated control
JP3822658B2 (en) Control device
JP4450185B2 (en) Electronic control unit
JP4539757B2 (en) Electronic control unit
JP5505493B2 (en) Electronic control system and electronic control device
JP2007198939A (en) Vehicle failure diagnosis device
JP3969278B2 (en) Electronic control unit
US20060218340A1 (en) Data validity determining method for flash EEPROM and electronic control system
JP3726295B2 (en) Vehicle control device
JP4001088B2 (en) Electronic control unit
JP3883842B2 (en) Electronic control device for vehicle
JP4475345B2 (en) Electronic control unit
JP3817855B2 (en) Electronic control device
JPH11141393A (en) Memory rewriting device for controlling vehicle
JPH11175331A (en) Rom rewritting method for lan system for vehicle, and on-vehicle controller
JP3496484B2 (en) Memory rewriting device for vehicle control
JP4007038B2 (en) Electronic control device for vehicle
US20080161991A1 (en) Vehicular Electronic Control Apparatus and Control Specification Setting Method for Same
JP2004136701A (en) Vehicular electronic control device, electronic control unit, program and recording medium
JP2006224892A (en) Electronic control device for vehicle
JP2004142511A (en) Electronic control device for vehicle, electronic control unit, program, and recording medium
JPH1120576A (en) Memory writing method of control device for automobile and control device for automobile
JP4294287B2 (en) Engine control device with immobilizer system
JP2003276528A (en) Electronic control device for vehicle
JP2002187505A (en) On-vehicle system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040608