JP2003083155A - Memory writing system and method for electronic control unit, and general-purpose electronic control unit - Google Patents

Memory writing system and method for electronic control unit, and general-purpose electronic control unit

Info

Publication number
JP2003083155A
JP2003083155A JP2001277475A JP2001277475A JP2003083155A JP 2003083155 A JP2003083155 A JP 2003083155A JP 2001277475 A JP2001277475 A JP 2001277475A JP 2001277475 A JP2001277475 A JP 2001277475A JP 2003083155 A JP2003083155 A JP 2003083155A
Authority
JP
Japan
Prior art keywords
electronic control
data
control unit
control program
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.)
Pending
Application number
JP2001277475A
Other languages
Japanese (ja)
Inventor
Masahiro Iketani
正宏 池谷
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.)
Honda Motor Co Ltd
Original Assignee
Honda 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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2001277475A priority Critical patent/JP2003083155A/en
Publication of JP2003083155A publication Critical patent/JP2003083155A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a memory writing system for an electronic control unit capable of supplying various kinds of electronic control units, a method for writing the control program and data to a memory of the electronic control unit, and a general-purpose electronic control unit. SOLUTION: This system comprises a control program and data storing means 4 for storing the control program and data for every type of vehicle, a selecting means 1 for selecting the control program and data in accordance with the designated type of vehicle, and a writing means 5 for writing the selected control program and data to a rewritable memory of the electronic control unit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、電子制御装置のメ
モリへ車種ごとの制御プログラムおよびデータを書き込
むシステム、その方法および車種ごとの制御プログラム
およびデータを書き込むことのできる汎用の電子制御装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for writing a control program and data for each vehicle type in a memory of an electronic control device, a method thereof, and a general-purpose electronic control device capable of writing the control program and data for each vehicle type.

【0002】[0002]

【従来の技術】1980年代前半より、マイクロコンピ
ュータを含むプロセッサを利用した電子制御装置(Elec
tronic Control Unit, ECU)によって車両の電子制御が
行なわれている。電子制御装置は、燃料噴射制御、オー
トマチック車の変速制御、自己診断などを行なう。電子
制御装置は、たとえば、燃料噴射制御において、クラン
ク角センサ、吸気圧力センサ、吸気温度センサ、O
ンサなどのセンサ入力に基いて、制御演算を行ない、フ
ューエルインジェクタ、イグナイタなどのアクチュエー
タに対して制御出力を送る。
2. Description of the Related Art Since the early 1980s, an electronic control unit (Elec
Electronic control of the vehicle is performed by the tronic control unit (ECU). The electronic control unit performs fuel injection control, shift control of an automatic vehicle, self-diagnosis, and the like. In the fuel injection control, for example, the electronic control unit performs a control calculation based on sensor inputs such as a crank angle sensor, an intake pressure sensor, an intake temperature sensor, an O 2 sensor, and controls actuators such as a fuel injector and an igniter. Send control output.

【0003】電子制御装置は、制御演算を行なうプロセ
ッサ(CPU)、プロセッサに接続された入力装置、出
力装置、ROMおよびRAMを含む。入力装置は、セン
サからの入力を取りこむ。出力装置は、アクチュエータ
に対して制御出力を送る。ROMは、制御プログラムお
よびデータを格納する。RAMは、制御演算のための一
時的な記憶のために使用される。
The electronic control unit includes a processor (CPU) for performing control calculation, an input device connected to the processor, an output device, a ROM and a RAM. The input device takes in the input from the sensor. The output device sends a control output to the actuator. The ROM stores control programs and data. RAM is used for temporary storage for control operations.

【0004】ところで、このような車両の電子制御装置
は、車種ごとに異なったものが使用されることがある。
特に、古い仕様の電子制御装置は、メモリの記憶容量の
制約などから、年代別、車種別、仕様別に様々な種類の
ものが使用されている。このため、古い車種の補修用部
品として、自動車会社は、様々な種類の電子制御装置の
在庫を確保する必要があった。
By the way, such an electronic control device for a vehicle may be different for each vehicle type.
In particular, various types of old-type electronic control devices are used according to age, vehicle type, and specifications due to restrictions on memory storage capacity. Therefore, as a repair part for an old vehicle type, an automobile company needs to secure an inventory of various types of electronic control devices.

【0005】ところが、電子部品の小型化、高性能化は
急速に進んでいるので、古い電子制御装置の部品には入
手が困難なものも多い。また、大洪水などの災害で大量
に補修用電子部品が必要となった場合には、対応が困難
となる場合がある。
However, since miniaturization and high performance of electronic parts are rapidly progressing, many parts of old electronic control devices are difficult to obtain. Further, when a large amount of repair electronic parts are required due to a disaster such as a large flood, it may be difficult to deal with the problem.

【0006】一方、たとえば、特開平6−27261号
公報には、市場でのトラブル発生時に、エンジン制御装
置本体を交換することなしに、ROM内容を簡単に書き
換えるエンジン制御装置を供給するために、電気的にデ
ータの書き換えが可能な不揮発性メモリに制御用のプロ
グラムおよびデータを格納しておき、制御プログラムや
データを後で書き換えるものが開示されている。
On the other hand, for example, in Japanese Patent Laid-Open No. 6-27261, in order to supply an engine control device for easily rewriting the ROM contents without replacing the engine control device body when a trouble occurs in the market, It is disclosed that a control program and data are stored in an electrically rewritable nonvolatile memory and the control program and data are rewritten later.

【0007】また、特開平8−319880号公報に
は、車種ごとに異なる制御用データの量が増加した場合
においても、大容量で高価なメモリを使用することな
く、1種類のマイクロコンピュータで複数の車種に対応
するために、EEPROMにオンボードで車種コードを
書き込み、EEPROMから車種コードを読み出して異
なった制御を行なう車両の制御方法が開示されている。
Further, in Japanese Unexamined Patent Publication No. 8-319880, even when the amount of control data that differs for each vehicle type increases, a plurality of microcomputers of one type can be used without using a large-capacity and expensive memory. In order to cope with the vehicle type, the vehicle type code is written on-board the EEPROM and the vehicle type code is read from the EEPROM to perform different control.

【0008】しかしながら、従来技術には、たとえば補
修用部品としての汎用的な電子制御装置の書き込みに関
するものはない。
However, the prior art does not relate to writing of a general-purpose electronic control unit as a repair part, for example.

【0009】[0009]

【発明が解決しようとする課題】本発明は上記の問題に
鑑みてなされたものであり、様々な種類の電子制御装置
を供給することのできる電子制御装置のメモリ書き込み
システム、電子制御装置のメモリへ制御プログラムおよ
びデータを書きこむための方法および汎用の電子制御装
置を提供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and a memory writing system for an electronic control device and a memory for the electronic control device capable of supplying various types of electronic control devices. It is an object of the present invention to provide a method for writing a control program and data and a general-purpose electronic control device.

【0010】[0010]

【課題を解決するための手段】本発明の、電子制御装置
のメモリ書き込みシステムは、車種ごとの制御プログラ
ムおよびデータを記憶する制御プログラム・データ記憶
手段と、指定された車種にしたがって、制御プログラム
およびデータを選択する選択手段と、選択された制御プ
ログラムおよびデータを電子制御装置の書き換え可能メ
モリへ書き込む書き込み手段とを備える。
According to the present invention, there is provided a memory writing system for an electronic control unit, a control program / data storage means for storing a control program and data for each vehicle type, and a control program and a data storage means according to a designated vehicle type. A selection means for selecting data and a writing means for writing the selected control program and data in a rewritable memory of the electronic control unit are provided.

【0011】本発明の、電子制御装置の書き換え可能メ
モリへ制御プログラムおよびデータを書き込むための方
法は、指定された車種にしたがって、選択手段が、車種
ごとの制御プログラムおよびデータを記憶する制御プロ
グラム・データ記憶手段から指定された車種の制御プロ
グラムおよびデータを選択するステップと、書き込み手
段が、選択された制御プログラムおよびデータを電子制
御装置の書き換え可能メモリへ書き込むステップとを含
む。
According to the method for writing a control program and data in a rewritable memory of an electronic control unit according to the present invention, a selecting means stores a control program and data for each vehicle type in accordance with a designated vehicle type. The method includes a step of selecting a control program and data of a designated vehicle type from the data storage means, and a step of writing the selected control program and data in a rewritable memory of the electronic control unit.

【0012】したがって、制御プログラム・データ記憶
手段から指定された車種の制御プログラムおよびデータ
を選択し、選択された制御プログラムおよびデータを電
子制御装置の書き換え可能メモリへ書き込むことによっ
て、汎用的な電子制御装置を使用して様々な車種に対応
することができる。
Therefore, by selecting the control program and data of the designated vehicle type from the control program / data storage means and writing the selected control program and data in the rewritable memory of the electronic control unit, general-purpose electronic control is performed. The device can be used to accommodate various vehicle types.

【0013】自動車会社は、古い車種の補修のために古
い部品の在庫を保管する必要がなくなる。また、出荷前
に書き込みを行なうようにすれば、汎用的な電子制御装
置を、制御プログラムおよびデータを格納する前の状態
で保管しておけばよく、多種類の在庫を保管する必要が
なくなる。
The car company no longer needs to keep an inventory of old parts for repairing old car models. Further, if the writing is performed before shipping, it is sufficient to store the general-purpose electronic control device in the state before storing the control program and data, and it is not necessary to store many kinds of inventory.

【0014】本発明の実施態様によれば、データが電子
制御装置の種類を識別するためのコードを含む。したが
って、電子制御装置の書き換え可能メモリへ制御プログ
ラムおよびデータを書き込む前に、当該コードに基いて
電子制御装置が制御プログラムおよびデータに対応する
ものか否かを判断することができる。このため、電子制
御装置と制御プログラムおよびデータとが対応しないこ
とによるトラブルを防止し、選択された制御プログラム
およびデータを電子制御装置の書き換え可能メモリへ安
全、確実に書き込むことができる。
According to an embodiment of the present invention, the data includes a code for identifying the type of electronic control unit. Therefore, before writing the control program and the data in the rewritable memory of the electronic control unit, it is possible to judge whether or not the electronic control unit corresponds to the control program and the data based on the code. Therefore, it is possible to prevent troubles caused by the electronic control unit not corresponding to the control program and the data, and to write the selected control program and data in the rewritable memory of the electronic control unit safely and surely.

【0015】本発明の他の実施態様によれば、データが
電子制御装置を指定された車種の車両に取り付けるため
のアダプタの種類を識別するためのコードを含む。した
がって、電子制御装置に接続されたアダプタと制御プロ
グラムおよびデータとが対応しないことによるトラブル
を防止し、選択された制御プログラムおよびデータを、
アダプタが接続された電子制御装置の書き換え可能メモ
リへ安全、確実に書き込むことができる。
According to another embodiment of the present invention, the data includes a code for identifying the type of adapter for mounting the electronic control unit on a vehicle of a designated vehicle type. Therefore, it is possible to prevent troubles caused by the correspondence between the adapter connected to the electronic control unit and the control program and data, and to prevent the selected control program and data from
It is possible to write safely and surely in the rewritable memory of the electronic control unit to which the adapter is connected.

【0016】本発明の他の実施態様によれば、データが
車種を識別するためのコードを含む。車種を識別するた
めのコードを電子制御装置の種類を識別するためのコー
ドまたはアダプタの種類を識別するためのコードと同様
に使用することにより、選択された制御プログラムおよ
びデータを、電子制御装置の書き換え可能メモリへ安
全、確実に書き込むことができる。
According to another embodiment of the present invention, the data includes a code for identifying the vehicle type. By using the code for identifying the vehicle type in the same manner as the code for identifying the type of the electronic control unit or the code for identifying the type of the adapter, the selected control program and data are stored in the electronic control unit. Safe and reliable writing to rewritable memory.

【0017】本発明の汎用の電子制御装置は、車種ごと
の制御プログラムおよびデータを記憶するための書き換
え可能メモリを含み、当該データは、当該車種の車両に
取り付けるためのアダプタの種類を識別するためのコー
ドを含む。
The general-purpose electronic control unit of the present invention includes a rewritable memory for storing a control program and data for each vehicle type, the data being for identifying the type of adapter to be installed in the vehicle of the vehicle type. Including the code.

【0018】したがって、汎用的な電子制御装置に含ま
れる制御プログラムおよびデータと汎用的な電子制御装
置に接続されるアダプタとの対応が保証される。
Therefore, the correspondence between the control program and data included in the general-purpose electronic control device and the adapter connected to the general-purpose electronic control device is guaranteed.

【0019】[0019]

【発明の実施の形態】図1Aは、本発明の電子制御装置
のメモリ書き込みシステムの構成の一例を示す。図1B
は、電子制御装置の構成の一例を示す。図1Aにおい
て、1は、指定された車種にしたがって、制御プログラ
ムおよびデータを選択する選択手段である。4は、車種
ごとの制御プログラムおよびデータを記憶する制御プロ
グラム・データ記憶手段であり、選択手段1は、制御プ
ログラム・データ記憶手段4に記憶されたものから制御
プログラムおよびデータを選択する。選択手段1は、制
御プログラム・データ記憶手段4を管理する機能を備え
たコンピュータである。制御プログラム・データ記憶手
段4は、車種ごとの制御プログラムおよびデータを車種
によって検索できるようなデータベースとして記憶して
もよい。2は、インタフェース手段であり、キーボード
およびディスプレイの形として、オペレータが車種の指
定を行なえるようにしてもよい。また、通信インタフェ
ースとして他のコンピュータと接続し、当該他のコンピ
ュータから車種の指定の指示を受け取るようにしてもよ
い。
1A shows an example of the configuration of a memory writing system of an electronic control unit according to the present invention. Figure 1B
Shows an example of the configuration of the electronic control unit. In FIG. 1A, reference numeral 1 is a selection means for selecting a control program and data according to a designated vehicle type. Reference numeral 4 denotes a control program / data storage unit that stores a control program and data for each vehicle type, and the selection unit 1 selects a control program and data from those stored in the control program / data storage unit 4. The selection unit 1 is a computer having a function of managing the control program / data storage unit 4. The control program / data storage unit 4 may store the control program and data for each vehicle type as a database that can be searched by the vehicle type. Reference numeral 2 denotes an interface means, which may be in the form of a keyboard and a display so that the operator can specify the vehicle type. Further, it may be connected to another computer as a communication interface and receive an instruction for designating a vehicle type from the other computer.

【0020】5は、選択手段1によって選択された制御
プログラムおよびデータを電子制御装置のメモリへ書き
こむ書き込み手段である。上記選択手段を構成するコン
ピュータの機能の一部として構成してもよいが、図1A
のように独立したプロセッサとして構成してもよい。そ
の場合には、書き込み手段5は、広域ネットワーク(W
AN)、ローカルエリアネットワーク(LAN)などの
通信網3を介して選択手段1とデータを交換するように
構成してもよい。書き込み手段5は、インタフェース手
段6、通信インタフェース手段7およびメモリ8と接続
される。インタフェース手段6は、たとえば、簡単な表
示設定機能を備えたパネルまたは、キーボードおよびデ
ィスプレイであってもよい。通信インタフェース手段7
は、電子制御装置(ECU)15との通信を行なう。メ
モリ8は、書き込みのために選択手段1によって選択さ
れ、書き込み手段5に送られた制御プログラムおよびデ
ータを記憶する。
Reference numeral 5 is a writing means for writing the control program and data selected by the selecting means 1 into the memory of the electronic control unit. Although it may be configured as a part of the function of the computer that constitutes the selecting means, FIG.
Alternatively, it may be configured as an independent processor. In that case, the writing means 5 uses the wide area network (W
Data may be exchanged with the selection unit 1 via a communication network 3 such as an AN) or a local area network (LAN). The writing unit 5 is connected to the interface unit 6, the communication interface unit 7, and the memory 8. The interface means 6 may be, for example, a panel having a simple display setting function, or a keyboard and a display. Communication interface means 7
Communicates with the electronic control unit (ECU) 15. The memory 8 stores the control program and data selected by the selection means 1 for writing and sent to the writing means 5.

【0021】図1Bにおいて、電子制御装置15は、プ
ロセッサ(CPU)10を中心として、これに接続され
た、通信インタフェース手段9、入出力装置11、書き
換え可能メモリ12、マスクROM13およびRAM1
4を含む。通信インタフェース手段9は、書き込み手段
5の通信インタフェース手段7と接続されて書き込み手
段との通信を行なう。通信は、たとえば、シリアルデー
タ伝送による。入出力装置11は、各種センサからの入
力を受け取り、各種アクチュエータへ制御出力を送る。
書き換え可能メモリ12は、電気的にデータの消去およ
び書き込みが可能な不揮発性メモリであり、たとえば、
EEPROM,フラッシュメモリなどで構成され、書き
込み手段5によって制御プログラムおよびデータが書き
込まれる。マスクROM13は、書き換え不能な不揮発
性メモリであり、車種によって変わることのないブート
・プログラムなどが格納される。RAM14は、プロセ
ッサ10による演算結果などを一時的に格納する。
In FIG. 1B, an electronic control unit 15 is mainly composed of a processor (CPU) 10 and connected to it, a communication interface unit 9, an input / output unit 11, a rewritable memory 12, a mask ROM 13 and a RAM 1.
Including 4. The communication interface unit 9 is connected to the communication interface unit 7 of the writing unit 5 to communicate with the writing unit. Communication is by serial data transmission, for example. The input / output device 11 receives inputs from various sensors and sends control outputs to various actuators.
The rewritable memory 12 is a non-volatile memory in which data can be electrically erased and written.
It is composed of an EEPROM, a flash memory and the like, and the control means and the data are written by the writing means 5. The mask ROM 13 is a non-rewritable non-volatile memory and stores a boot program etc. which does not change depending on the vehicle type. The RAM 14 temporarily stores the calculation result by the processor 10.

【0022】本発明において、電子制御装置15は、複
数の車種の制御プログラムおよびデータを書きこむこと
ができる汎用的なものが使用される。しかしながら、従
来の電子制御装置は、車種ごとにさまざまなものが使用
されており、車両と接続される入出力装置の仕様も様々
である。したがって、従来の電子制御装置の補修部品と
して本発明の電子制御装置を使用する場合には、車両と
接続するためのアダプタを使用する必要がある。アダプ
タは、汎用的な電子制御装置を様々な車種の車両に接続
するために車種ごとに異なる。すなわち、車種ごとのア
ダプタを使用することにより、汎用的な電子制御装置を
様々な車種の車両に使用することができるようになる。
アダプタは、汎用的な電子制御装置の入力および出力接
点を車両側の対応する接点へ接続できるような機能をも
ち、且つ、汎用的な電子制御装置を車両側に機械的に組
み合わせるような構成のものであればよい。このため、
汎用的な電子制御装置は、従来の電子制御装置より小型
であることが好ましいが、電子部品の集積化・小型化は
急速に進んでいるので、従来より小型の電子制御装置を
作成するのは容易である。
In the present invention, as the electronic control unit 15, a general-purpose unit capable of writing control programs and data for a plurality of vehicle types is used. However, various conventional electronic control devices are used for each vehicle type, and specifications of input / output devices connected to the vehicle are also various. Therefore, when the electronic control device of the present invention is used as a repair part of a conventional electronic control device, it is necessary to use an adapter for connecting to a vehicle. The adapter is different for each vehicle type in order to connect the general-purpose electronic control device to vehicles of various vehicle types. That is, by using the adapter for each vehicle type, the general-purpose electronic control device can be used for vehicles of various vehicle types.
The adapter has a function of connecting the input and output contacts of the general-purpose electronic control device to the corresponding contacts on the vehicle side, and is configured to mechanically combine the general-purpose electronic control device with the vehicle side. Anything will do. For this reason,
A general-purpose electronic control device is preferably smaller than a conventional electronic control device, but since integration and miniaturization of electronic components is rapidly progressing, it is necessary to create a smaller electronic control device than before. It's easy.

【0023】電子制御装置の通常使用時のプロセッサ1
0による動作は以下のとおりである。車両のイグニッシ
ョンスイッチがオンされ、図示しない電源から電圧が供
給されると、マスクROM13内のブート・プログラム
が起動される。ブート・プログラムによって書き換え可
能メモリ内12内の制御プログラムがコールされる。制
御プログラムによって、入出力装置11からのセンサ入
力に基いて制御演算が行なわれる。この際、演算結果な
どを一時的に記憶するためにRAM14が使用される。
制御演算の結果としての制御出力が入出力装置11を介
してアクチュエータへ送られる。
The processor 1 during normal use of the electronic control unit
The operation by 0 is as follows. When the ignition switch of the vehicle is turned on and a voltage is supplied from a power source (not shown), the boot program in the mask ROM 13 is started. The boot program calls the control program in the rewritable memory 12. A control calculation is performed by the control program based on the sensor input from the input / output device 11. At this time, the RAM 14 is used to temporarily store the calculation result and the like.
The control output as a result of the control calculation is sent to the actuator via the input / output device 11.

【0024】つぎに、本発明の電子制御装置のメモリ書
き込みシステムの動作を、図2を参照しながら説明す
る。この動作は、たとえば補修用部品として電子制御装
置を出荷する前に行なわれるのが好ましい。ステップS
210において、インタフェース手段2からの入力に基
いて、選択手段1が制御プログラムおよびデータを書き
こむ車種を決定する。ステップS220において、選択
手段1は、制御プログラム・データ記憶手段4の内容を
検索して当該決定された車種の制御プログラムおよびデ
ータが制御プログラム・データ記憶手段4に記憶されて
いるか否かを判断する。制御プログラム・データ記憶手
段4において、制御プログラムおよびデータを、車種を
キーとするデータベースとして構成しておけば容易に検
索することができる。当該決定された車種の制御プログ
ラムおよびデータが制御プログラム・データ記憶手段4
に記憶されていない場合には、書き込みは終了する。記
憶されている場合には、ステップS230において、選
択手段1は、当該決定された車種の制御プログラムおよ
びデータを制御プログラム・データ記憶手段4から選択
し、たとえば、ネットワーク3を介して書き込み手段5
へ送る。
Next, the operation of the memory writing system of the electronic control unit of the present invention will be described with reference to FIG. This operation is preferably performed, for example, before shipping the electronic control unit as a repair part. Step S
At 210, based on the input from the interface means 2, the selection means 1 determines the vehicle type in which the control program and data are written. In step S220, the selection unit 1 searches the contents of the control program / data storage unit 4 and determines whether or not the control program and data of the determined vehicle type are stored in the control program / data storage unit 4. . If the control program and data are constructed in the control program / data storage means 4 as a database with the vehicle type as a key, they can be easily searched. The control program and data of the determined vehicle type are the control program / data storage means 4.
If not stored in, the writing ends. If it is stored, in step S230, the selection unit 1 selects the control program and data of the determined vehicle type from the control program / data storage unit 4, and, for example, the writing unit 5 via the network 3.
Send to.

【0025】つぎに、書き込み手段5は、ステップS2
40において、書き込み対象の電子制御装置の種類が、
書き込もうとしている制御プログラムおよびデータと合
うかどうかを判断する。これは、制御プログラムおよび
データは、制御を実行する電子制御装置の種類を前提と
して作成されており、特定の電子制御装置上で実行され
る必要があるからである。本発明では、従来のものと比
較して汎用的な電子制御装置が使用されるが、その場合
でも複数の電子制御装置が使用されることが考えられ
る。このため、電子制御装置を識別する必要がなお存在
する。上記の判断は、書き込まれるデータの中に含まれ
る電子制御装置の種類を識別するためのコードに基いて
行なわれる。
Next, the writing means 5 carries out step S2.
In 40, the type of the electronic control device to be written is
Determine if it matches the control program and data you are trying to write. This is because the control program and data are created on the assumption of the type of electronic control device that executes control, and need to be executed on a specific electronic control device. In the present invention, a general-purpose electronic control device is used as compared with the conventional one, but even in that case, it is conceivable that a plurality of electronic control devices are used. For this reason, there still exists a need to identify electronic control units. The above judgment is made based on the code for identifying the type of the electronic control unit included in the written data.

【0026】ステップS240の詳細な動作について、
図3を参照しながら説明する。ステップS310におい
て、書き込み手段5は、通信インタフェース手段7を介
して電子制御装置15に対して、電子制御装置15の種
類を識別するためのコードを要求する。電子制御装置1
5は、自身を識別するためのコードをマスクROM13
中に記憶しており、要求に応じてこのコードを、通信イ
ンタフェース手段9を介して書き込み手段5へ送る。ス
テップS320において、書きこみ手段5は、電子制御
装置15のコードを受け取る。ステップS330におい
て書き込み手段5は、指定された車種のデータのコード
と電子制御装置15から受け取ったコードとが一致する
かどうかを判断する。一致しない場合には、ステップS
340において、インタフェース手段6によって「不一
致」の表示を行ない、書き込みを行なわずに終了する。
一致する場合には、ステップS250へ進む。
Regarding the detailed operation of step S240,
This will be described with reference to FIG. In step S310, the writing unit 5 requests the code for identifying the type of the electronic control unit 15 from the electronic control unit 15 via the communication interface unit 7. Electronic control unit 1
A mask ROM 13 stores a code for identifying itself.
This code, which is stored in the memory, is sent to the writing means 5 via the communication interface means 9 upon request. In step S320, the writing means 5 receives the code of the electronic control unit 15. In step S330, the writing unit 5 determines whether the code of the data of the designated vehicle type and the code received from the electronic control unit 15 match. If they do not match, step S
At 340, "mismatch" is displayed by the interface means 6, and the process ends without writing.
If they match, the process proceeds to step S250.

【0027】ここで留意すべきことは、制御プログラム
およびデータと対応する電子制御装置との一致が確認さ
れた後に制御プログラムおよびデータが電子制御装置に
書き込まれることである。これによって、制御プログラ
ムおよびデータと電子制御装置との不一致によるトラブ
ルが防止される。また、出荷の直前に書き込みを行なう
ようにすれば、汎用的な電子制御装置のみを保管すれば
よく、多種類の電子制御装置の在庫を保管する必要がな
い。
It should be noted here that the control program and the data are written to the electronic control unit after the matching of the control program and the data with the corresponding electronic control unit is confirmed. This prevents troubles caused by the mismatch between the control program and data and the electronic control unit. Further, if writing is performed just before shipping, only a general-purpose electronic control device needs to be stored, and it is not necessary to store a stock of various types of electronic control devices.

【0028】つぎに、電子制御装置15に車種ごとのア
ダプタが取りつけられている場合の追加的な詳細な動作
について、図4を参照しながら説明する。図3のステッ
プS330の動作の後に以下の動作が行なわれる。ステ
ップS410において、書き込み手段5は、通信インタ
フェース手段7を介して電子制御装置15に対して、ア
ダプタの種類を識別するための情報を要求する。電子制
御装置15は、接続されているアダプタの種類を識別す
るための情報を、通信インタフェース手段9を介して書
き込み手段5へ送る。ステップS420において、書き
こみ手段5は、電子制御装置15に接続されているアダ
プタの種類を識別するための情報を受け取る。ステップ
S430において書き込み手段5は、指定された車種の
データのアダプタを識別するためのコードによるアダプ
タの種類と電子制御装置15から受け取った接続されて
いるアダプタの種類とが一致するかどうかを判断する。
一致しない場合には、ステップS440において、イン
タフェース手段6によって「不一致」の表示を行ない、
書き込みを行なわずに終了する。一致する場合には、ス
テップS250へ進む。
Next, an additional detailed operation in the case where an adapter for each vehicle type is attached to the electronic control unit 15 will be described with reference to FIG. The following operation is performed after the operation of step S330 in FIG. In step S410, the writing unit 5 requests information for identifying the type of adapter from the electronic control unit 15 via the communication interface unit 7. The electronic control unit 15 sends information for identifying the type of the connected adapter to the writing unit 5 via the communication interface unit 9. In step S420, the writing unit 5 receives information for identifying the type of adapter connected to the electronic control unit 15. In step S430, the writing unit 5 determines whether or not the type of the adapter by the code for identifying the adapter of the data of the designated vehicle type and the type of the connected adapter received from the electronic control unit 15 match. .
If they do not match, the interface means 6 displays "mismatch" in step S440,
Exit without writing. If they match, the process proceeds to step S250.

【0029】ここで電子制御装置15が、接続されたア
ダプタの種類を識別するための情報をどのように取得す
るかについて説明する。たとえば、アダプタに複数のピ
ンを設け、電子制御装置15に当該ピンを受ける複数の
受け口を設ける。受け口は、接点を備え、ピンが挿入さ
れた場合には、接点がオンとなるように構成する。接点
のオン、オフは、電子制御装置15に設けた検出回路1
11(図1B)によって公知の方法により電気的に検出
する。たとえば、定電圧源と接点を介して電圧検出回路
を接続し、電圧の有無により接点のオン、オフを検出す
るようにしてもよい。アダプタの種類ごとにピンの有無
を変えることにより、接点のオン、オフを検出すること
によりアダプタの種類を識別することが可能となる。ピ
ンの形や長さを変えることにより、ピンごとに複数の接
点をオン、オフするように構成してもよい。接点を5個
設けることにより、31種類のアダプタを識別すること
ができる。ピンの有無の代わりにコネクタの導通部分と
非導通部分とを使用してもよい。
Here, how the electronic control unit 15 acquires the information for identifying the type of the connected adapter will be described. For example, the adapter is provided with a plurality of pins, and the electronic control unit 15 is provided with a plurality of receptacles for receiving the pins. The receptacle is provided with contacts, and the contacts are turned on when the pin is inserted. ON / OFF of the contact is detected by the detection circuit 1 provided in the electronic control unit 15.
11 (FIG. 1B) by a known method. For example, a voltage detection circuit may be connected to a constant voltage source via a contact, and ON / OFF of the contact may be detected depending on the presence / absence of voltage. By changing the presence or absence of a pin for each type of adapter, it is possible to identify the type of adapter by detecting the on / off state of the contact. A plurality of contacts may be turned on and off for each pin by changing the shape and length of the pin. By providing five contacts, 31 types of adapters can be identified. Instead of the presence or absence of the pins, the conductive portion and the non-conductive portion of the connector may be used.

【0030】アダプタの種類の識別は、上記以外の方法
によって行なうこともできる。たとえば、アダプタに磁
気データを記憶させ、この部分を電子制御装置15が接
続後に読み取るようにしてもよい。また、アダプタにI
Cチップを設け、電子制御装置15のプロセッサが、入
出力装置11または他のインタフェースを介して当該I
Cチップと情報を交換するようにしてもよい。
The type of adapter can be identified by a method other than the above. For example, magnetic data may be stored in the adapter, and this portion may be read by the electronic control unit 15 after the connection. In addition, I
A C chip is provided so that the processor of the electronic control unit 15 can operate the I / O device 11 or another interface to
Information may be exchanged with the C chip.

【0031】ここで留意すべきことは、制御プログラム
およびデータと対応する電子制御装置のアダプタとの一
致が確認された後に制御プログラムおよびデータが電子
制御装置に書き込まれることである。これによって、制
御プログラムおよびデータと電子制御装置のアダプタと
の不一致によるトラブルが防止される。
It should be noted here that the control program and data are written to the electronic control unit after the matching of the control program and data with the corresponding adapter of the electronic control unit is confirmed. This prevents troubles caused by the mismatch between the control program and data and the adapter of the electronic control unit.

【0032】また、書き込み手段5に代わって、電子制
御装置15自身が、接続されたアダプタの種類は、自身
の書き換え可能メモリ12に既に書き込まれたデータに
含まれるアダプタの種類を識別するためのコードと対応
するか否かを判断するようにしてもよい。判断の結果
を、通信インタフェース手段9および7を介して書き込
み手段5に送り、インタフェース手段6で表示するよう
にしてもよい。また、電子制御装置15自身による判断
の結果を入出力装置11へ出力し、この出力を適当な装
置を接続して検出するようにしてもよい。
Further, in place of the writing means 5, the electronic control unit 15 itself identifies the type of the connected adapter, which is included in the data already written in the rewritable memory 12 of the electronic control unit 15 itself. It may be determined whether or not the code corresponds. The judgment result may be sent to the writing means 5 via the communication interface means 9 and 7 and displayed by the interface means 6. Alternatively, the result of the judgment by the electronic control unit 15 itself may be output to the input / output unit 11, and the output may be detected by connecting an appropriate unit.

【0033】この場合には、書き込み手段5は、アダプ
タの種類の識別の判断には使用しない。また、制御プロ
グラムおよびデータの電子制御装置15への書き込み後
に、電子制御装置15が判断を行なう。
In this case, the writing means 5 is not used to judge the type of the adapter. After writing the control program and data to the electronic control unit 15, the electronic control unit 15 makes a judgment.

【0034】なお、データが、電子制御装置の種類を識
別するコードまたはアダプタの種類を識別するコードの
代わりに、または当該コードに加えて、車種を識別する
ためのコードを含むようにしてもよい。
The data may include a code for identifying the vehicle type instead of or in addition to the code for identifying the type of electronic control device or the code for identifying the type of adapter.

【0035】[0035]

【発明の効果】本発明によれば、汎用的な電子制御装置
を使用して様々な車種に対応することができる。
According to the present invention, various vehicle types can be supported by using a general-purpose electronic control device.

【0036】自動車会社は、古い車種の補修のために古
い部品の在庫を保管する必要がなくなる。また、出荷前
に書き込みを行なうようにすれば、汎用的な電子制御装
置を、制御プログラムおよびデータを格納する前の状態
で保管しておけばよく、多種類の在庫を保管する必要が
なくなる。
The car company no longer needs to keep an inventory of old parts to repair old models. Further, if the writing is performed before shipping, it is sufficient to store the general-purpose electronic control device in the state before storing the control program and data, and it is not necessary to store many kinds of inventory.

【0037】本発明の実施態様によれば、電子制御装置
と制御プログラムおよびデータとが対応しないことによ
るトラブルを防止し、選択された制御プログラムおよび
データを電子制御装置の書き換え可能メモリへ安全、確
実に書き込むことができる。
According to the embodiment of the present invention, troubles caused by the non-correspondence between the electronic control unit and the control program and data are prevented, and the selected control program and data are safely and securely stored in the rewritable memory of the electronic control unit. Can be written on.

【0038】本発明の他の実施態様によれば、電子制御
装置に接続されたアダプタと制御プログラムおよびデー
タとが対応しないことによるトラブルを防止し、選択さ
れた制御プログラムおよびデータを、アダプタが接続さ
れた電子制御装置の書き換え可能メモリへ安全、確実に
書き込むことができる。
According to another embodiment of the present invention, a trouble caused by a mismatch between the adapter connected to the electronic control unit and the control program and data is prevented, and the selected control program and data are connected by the adapter. It is possible to safely and surely write to the rewritable memory of the electronic control unit.

【0039】本発明によれば、汎用的な電子制御装置に
含まれる制御プログラムおよびデータと汎用的な電子制
御装置に接続されるアダプタとの対応が保証される。
According to the present invention, the correspondence between the control program and data included in the general-purpose electronic control device and the adapter connected to the general-purpose electronic control device is guaranteed.

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

【図1A】本発明の電子制御装置のメモリ書き込みシス
テムの構成の一例の概要を示す。
FIG. 1A shows an outline of an example of a configuration of a memory writing system of an electronic control unit of the present invention.

【図1B】本発明の電子制御装置の構成の一例の概要を
示す。
FIG. 1B shows an outline of an example of a configuration of an electronic control device of the present invention.

【図2】本発明の電子制御装置のメモリへ制御プログラ
ムおよびデータを書き込む方法の処理の流れの一態様を
示す。
FIG. 2 shows an aspect of a processing flow of a method of writing a control program and data in a memory of an electronic control unit of the present invention.

【図3】本発明の電子制御装置の種類を識別する処理の
流れの一態様を示す。
FIG. 3 shows an embodiment of a flow of processing for identifying the type of electronic control device according to the present invention.

【図4】本発明のアダプタの種類を識別する処理の流れ
の一態様を示す。
FIG. 4 shows one aspect of a flow of processing for identifying the type of adapter of the present invention.

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

1 選択手段 2、6 インタフェース手段 3 通信網 4 制御プログラム・データ記憶手段 5 書き込み手段 10 プロセッサ(CPU) 11 入出力装置 12 書き換え可能メモリ 13 マスクROM 14 RAM 15 電子制御装置(ECU) 1 selection means 2.6 Interface means 3 communication network 4 Control program / data storage means 5 Writing means 10 Processor (CPU) 11 I / O device 12 rewritable memory 13 Mask ROM 14 RAM 15 Electronic control unit (ECU)

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 電子制御装置のメモリ書き込みシステム
であって、車種ごとの制御プログラムおよびデータを記
憶する制御プログラム・データ記憶手段と、 指定された車種にしたがって、制御プログラムおよびデ
ータを選択する選択手段と、 選択された制御プログラムおよびデータを電子制御装置
の書き換え可能メモリへ書き込む書き込み手段とを備え
た電子制御装置の書き換え可能メモリ書き込みシステ
ム。
1. A memory writing system for an electronic control unit, comprising: a control program / data storage means for storing a control program and data for each vehicle type; and a selection means for selecting a control program and data according to a designated vehicle type. A rewritable memory writing system for an electronic control device, comprising: a writing means for writing the selected control program and data into a rewritable memory of the electronic control device.
【請求項2】 前記データが電子制御装置の種類を識別
するためのコードを含む請求項1に記載のシステム。
2. The system of claim 1, wherein the data includes a code to identify the type of electronic controller.
【請求項3】 前記データが電子制御装置を指定された
車種の車両に取り付けるためのアダプタの種類を識別す
るためのコードを含む請求項1または2に記載のシステ
ム。
3. The system according to claim 1, wherein the data includes a code for identifying a type of an adapter for mounting the electronic control unit on a vehicle of a designated vehicle type.
【請求項4】 前記データが車種を識別するためのコー
ドを含む請求項1から3のいずれか一項に記載のシステ
ム。
4. The system according to claim 1, wherein the data includes a code for identifying a vehicle type.
【請求項5】 電子制御装置の書き換え可能メモリへ制
御プログラムおよびデータを書き込むための方法であっ
て、 指定された車種にしたがって、選択手段が、車種ごとの
制御プログラムおよびデータを記憶する制御プログラム
・データ記憶手段から指定された車種の制御プログラム
およびデータを選択するステップと、 書き込み手段が、選択された制御プログラムおよびデー
タを電子制御装置の書き換え可能メモリへ書き込むステ
ップとを含む、電子制御装置の書き換え可能メモリへ制
御プログラムおよびデータを書きこむための方法。
5. A method for writing a control program and data to a rewritable memory of an electronic control unit, wherein the selection means stores a control program and data for each vehicle type according to a designated vehicle type. Rewriting of the electronic control unit, including a step of selecting the control program and data of the specified vehicle type from the data storage means, and a step of writing the selected control program and data into the rewritable memory of the electronic control device by the writing means. For writing control programs and data to a feasible memory.
【請求項6】 前記データが電子制御装置の種類を識別
するためのコードを含み、書き込み手段が、電子制御装
置の書き換え可能メモリへ制御プログラムおよびデータ
を書きこむステップの前に、当該コードに基いて電子制
御装置が前記制御プログラムおよびデータに対応するも
のか否かを判断するステップをさらに含む請求項5に記
載の方法。
6. The data includes a code for identifying the type of electronic control unit, and the writing means is based on the code before the step of writing the control program and data into a rewritable memory of the electronic control unit. The method according to claim 5, further comprising the step of determining whether an electronic control device corresponds to the control program and data.
【請求項7】 前記データが電子制御装置を指定された
車種の車両に取り付けるためのアダプタの種類を識別す
るためのコードを含み、書き込み手段が、電子制御装置
の書き換え可能メモリへ制御プログラムおよびデータを
書きこむステップの前に、当該コードに基いてアダプタ
が前記制御プログラムおよびデータに対応するものか否
かを判断するステップをさらに含む請求項5または6に
記載の方法。
7. The data includes a code for identifying a type of an adapter for mounting the electronic control unit on a vehicle of a designated vehicle type, and the writing means stores a control program and data in a rewritable memory of the electronic control unit. The method according to claim 5 or 6, further comprising the step of determining whether the adapter corresponds to the control program and data based on the code before the step of writing.
【請求項8】 前記データが車種を識別するためのコー
ドを含む請求項5から7のいずれか一項に記載の方法。
8. The method according to claim 5, wherein the data includes a code for identifying a vehicle type.
【請求項9】 汎用の電子制御装置であって、車種ごと
の制御プログラムおよびデータを記憶するための書き換
え可能メモリを含み、当該データは、当該車種の車両に
取り付けるためのアダプタの種類を識別するためのコー
ドを含む汎用の電子制御装置。
9. A general-purpose electronic control device, comprising a rewritable memory for storing a control program and data for each vehicle type, the data identifying the type of adapter to be installed in a vehicle of the vehicle type. General-purpose electronic control unit containing code for
JP2001277475A 2001-09-13 2001-09-13 Memory writing system and method for electronic control unit, and general-purpose electronic control unit Pending JP2003083155A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001277475A JP2003083155A (en) 2001-09-13 2001-09-13 Memory writing system and method for electronic control unit, and general-purpose electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001277475A JP2003083155A (en) 2001-09-13 2001-09-13 Memory writing system and method for electronic control unit, and general-purpose electronic control unit

Publications (1)

Publication Number Publication Date
JP2003083155A true JP2003083155A (en) 2003-03-19

Family

ID=19101994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001277475A Pending JP2003083155A (en) 2001-09-13 2001-09-13 Memory writing system and method for electronic control unit, and general-purpose electronic control unit

Country Status (1)

Country Link
JP (1) JP2003083155A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010260441A (en) * 2009-05-07 2010-11-18 Yanmar Co Ltd Control apparatus installed on working vehicle
JP2013126802A (en) * 2011-12-16 2013-06-27 Toyota Motor Corp Method for downloading application software to on-board device, and the on-board device
JP2017191545A (en) * 2016-04-15 2017-10-19 株式会社デンソー Electronic control device for vehicle

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010260441A (en) * 2009-05-07 2010-11-18 Yanmar Co Ltd Control apparatus installed on working vehicle
JP2013126802A (en) * 2011-12-16 2013-06-27 Toyota Motor Corp Method for downloading application software to on-board device, and the on-board device
JP2017191545A (en) * 2016-04-15 2017-10-19 株式会社デンソー Electronic control device for vehicle

Similar Documents

Publication Publication Date Title
JP3550834B2 (en) Memory rewriting system for vehicle electronic control unit, vehicle electronic control unit and memory rewriting device
US6249848B1 (en) Memory writing device for an electronic device
US4402057A (en) Method of and apparatus for ensuring correct operation of a microcomputer in the event of power outage
US8565962B2 (en) Rewriting system for a vehicle
US20030163664A1 (en) Method and apparatus for updating a distributed program
US6401163B1 (en) Apparatus and method for rewriting data from volatile memory to nonvolatile memory
JP2007126024A (en) Vehicular electronic control device
US6842858B2 (en) Mechanism for updating firmware of an electronic device
JPH10253505A (en) Vehicle diagnosing method and device therefor
US5933595A (en) Computer apparatus having electrically rewritable nonvolatile memory, and nonvolatile semiconductor memory
JPH1136973A (en) Vehicle contorl device
JP2009262676A (en) Electronic control device
US7203581B2 (en) Electronic control unit for controlling updating of data in non-volatile memory
CN110809755A (en) Electronic control system
EP2020497B1 (en) Electronic control unit
JP2003083155A (en) Memory writing system and method for electronic control unit, and general-purpose electronic control unit
JP4066499B2 (en) Electronic control device, electronic control system, and conformity determination method
JP3219999B2 (en) Fault diagnosis device
JPH1136974A (en) Controller for vehicle
JP2009026183A (en) Electronic control apparatus for automobile
US6490663B1 (en) Electronic control apparatus having rewritable nonvolatile memory
US20050034034A1 (en) Control device with rewriteable control data
JPH09171459A (en) Electronic control equipment
JP2002303203A (en) Vehicle control device, and method for assembling the same
JP2002323990A (en) Electronic controller and method for initializing nonvolatile memory

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070828

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070919

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080415