JP2006221274A - Electronic control device for vehicle and rewriting method of control program - Google Patents

Electronic control device for vehicle and rewriting method of control program Download PDF

Info

Publication number
JP2006221274A
JP2006221274A JP2005032032A JP2005032032A JP2006221274A JP 2006221274 A JP2006221274 A JP 2006221274A JP 2005032032 A JP2005032032 A JP 2005032032A JP 2005032032 A JP2005032032 A JP 2005032032A JP 2006221274 A JP2006221274 A JP 2006221274A
Authority
JP
Japan
Prior art keywords
program
rewriting
identification code
electronic control
external tool
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
JP2005032032A
Other languages
Japanese (ja)
Inventor
Mayumi Horikawa
まゆみ 堀川
Kazuyuki Okuda
和之 奥田
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2005032032A priority Critical patent/JP2006221274A/en
Publication of JP2006221274A publication Critical patent/JP2006221274A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic control device for a vehicle and a rewriting method of a control program capable of performing suitable rewrite of the program without requiring modification and addition of a program for transfer to an external tool even when rewriting the control program using an identification code providing information needed for the external tool. <P>SOLUTION: In the electronic control device for the vehicle, the identification code to be acquired by the electronic control device 10 in response to a request for acquisition is transferred between the electronic control device 10 and the external tool T when rewriting the control program P1, and at least a part of the control program P1 (including control data) is rewritten using a program WP1 for rewriting that is transmitted from the external tool T based on transfer of the identification code. At this time, acquisition of the identification code is performed under execution of an identification code acquiring program P12 which is transferred from the external tool T. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

この発明は、各種車載装置(車載機器等)を制御する車両用電子制御装置に関し、特に外部ツールを用いて行われる制御プログラムの書換えに際して有益な車両用電子制御装置、およびその制御プログラムの書換え方法に関する。   The present invention relates to a vehicle electronic control device that controls various vehicle-mounted devices (vehicle-mounted devices and the like), and more particularly to a vehicle electronic control device useful for rewriting a control program performed using an external tool, and a method for rewriting the control program. About.

近年、車両、特に各種車載機器の高機能化に伴い、例えばエンジンの運転を制御する電子制御装置をはじめ、変速機や空調装置、照明装置、ドア、ミラー等々を制御する数多くの電子制御装置が車両に搭載されている。これら電子制御装置は、制御対象に対応する制御プログラムを不揮発性のメモリに記憶させるかたちで保持し、この制御プログラムに含まれる制御データと共にセンサ等を通じて取り込まれるデータ等を用いて上記制御プログラムを実行する。そうしてこの実行に基づく制御として、各制御対象に対して所望とされる制御が行われることになる。   In recent years, with the enhancement of functions of vehicles, particularly various in-vehicle devices, for example, electronic control devices that control engine operation, as well as many electronic control devices that control transmissions, air conditioners, lighting devices, doors, mirrors, etc. Installed in the vehicle. These electronic control devices hold a control program corresponding to an object to be controlled in a non-volatile memory, and execute the control program using data taken in through a sensor together with control data included in the control program. To do. Thus, as control based on this execution, desired control is performed on each control target.

こうした電子制御装置にあって、上記制御プログラムのバージョンアップや修正等を行う場合には、例えば外部ツールから提供されるプログラム(書換え用プログラム)を用いて同制御プログラムの内容(制御データ等も含む)を書き換える必要が生じる。しかしながら、この種の電子制御装置に搭載されるマイクロコンピュータはその種類が1つではなく、例えばROMやRAM等の各種メモリに対するアクセス方法、または各メモリやバス幅等のサイズ、さらにはその他の構成等で分類されている。このため、その搭載にあたっては、要求される仕様等に応じて複数種のマイクロコンピュータの中から当該電子制御装置に搭載すべき1つが選択されることになる。また一方、制御プログラムの書換え(修正や更新)に用いられる上記書換え用プログラムは、通常、当該装置に搭載されるマイクロコンピュータの種類別に専用に用意される。このため、これに対応しない書換え用プログラムが当該電子制御装置に転送されてくるようなことがあると、制御プログラムの内容が誤って書き換えられたり、消去されたりすることが懸念される。   In such an electronic control device, when upgrading or correcting the control program, the contents of the control program (including control data and the like) are used, for example, using a program (program for rewriting) provided from an external tool. ) Needs to be rewritten. However, the type of microcomputer mounted on this type of electronic control device is not limited to one. For example, the access method to various memories such as ROM and RAM, the size of each memory and bus width, and other configurations. And so on. For this reason, in mounting, one to be mounted on the electronic control unit is selected from a plurality of types of microcomputers according to required specifications. On the other hand, the rewriting program used for rewriting (correcting or updating) the control program is usually prepared for each type of microcomputer installed in the apparatus. For this reason, there is a concern that the contents of the control program may be erroneously rewritten or erased if a rewriting program that does not correspond to this is transferred to the electronic control device.

こうした実情から、従来、例えば特許文献1に記載のような電子制御装置およびその制御プログラムの書換え方法が提案されている。すなわちこの装置は、書換え対象とする制御プログラムと共に当該装置に係る適宜の識別コードを、不揮発性のメモリ(ここではフラッシュメモリ)に記憶させるかたちで保持している。こうした構成にあって、上記制御プログラムの書換えを行う場合には、まず、所定の操作に基づいて外部ツールから発せられる要求信号を、当該電子制御装置が受信する。次いで、この要求信号を受信した当該装置が、同信号に応答するかたちで上記不揮発メモリに格納されている識別コードを外部ツールへ送信する。そして、この識別コードを受け取った外部ツールが、同コードに基づき、書換え用プログラムを当該電子制御装置へ送信するか否か、を判断する。このように、この装置においては、識別コードを用いて自らに搭載されるマイクロコンピュータの種類を外部ツールへ知らせることにより、同ツールに用意されている書換え用プログラムがこれに対応しないときには、その書換え用プログラムが当該装置へ転送されないようになっている。こうして不正な書換えやデータ消去等が未然に防がれている。
米国特許第5,278,759号
Under such circumstances, conventionally, for example, an electronic control device as described in Patent Document 1 and a method for rewriting the control program have been proposed. In other words, this apparatus holds a control program to be rewritten and an appropriate identification code related to the apparatus in a form of being stored in a non-volatile memory (here, a flash memory). In such a configuration, when rewriting the control program, first, the electronic control unit receives a request signal issued from an external tool based on a predetermined operation. Next, the device that has received the request signal transmits the identification code stored in the nonvolatile memory to the external tool in response to the signal. Then, the external tool that has received the identification code determines whether or not to transmit the rewriting program to the electronic control device based on the code. As described above, in this apparatus, by using an identification code to inform an external tool of the type of microcomputer mounted on the device, when the rewriting program prepared in the tool does not support this, the rewriting is performed. Program is not transferred to the device. In this way, unauthorized rewriting and data erasure are prevented in advance.
US Pat. No. 5,278,759

また従来、書換え用プログラムの選択は、例えば車両の品番ごと、換言すればマイクロコンピュータの種類ごとに対応表などを作ってこれに基づき作業者が多くのプログラムの中から当該書換えに必要とされる書換え用プログラムを選択するようにして行われている。しかしながら、このような方法では、書換え用プログラムの数(種類)が増えてくるとその管理が非常に複雑になる上、作業者自身によって人為的に書換え用プログラムが選択されることになるため、信頼性に欠けるといった問題がある。   Conventionally, the selection of a rewriting program is made, for example, by creating a correspondence table for each product number of the vehicle, in other words, for each type of microcomputer, and based on this, an operator is required for the rewriting from many programs. This is done by selecting a rewriting program. However, in such a method, as the number (type) of rewriting programs increases, the management becomes very complicated, and the rewriting programs are artificially selected by the workers themselves. There is a problem of lack of reliability.

そこでこうした問題を解消すべく、同じく識別コードを用いるものとして、当該装置に搭載される可能性のあるマイクロコンピュータの種類の別に各々対応する書換え用プログラム(例えば専用、あるいは最適のプログラム)を外部ツールに用意し、その中から適宜のプログラムを自動選択する制御プログラムの書換え方法が考えられる。図5に、こうした方法に用いられる電子制御装置および外部ツールの一例についてその概略構成を模式的に示す。   Therefore, in order to solve these problems, it is assumed that the identification code is also used, and a rewriting program (for example, a dedicated program or an optimum program) corresponding to each type of microcomputer that may be mounted on the device is used as an external tool. A control program rewriting method for automatically selecting an appropriate program from among them is conceivable. FIG. 5 schematically shows a schematic configuration of an example of an electronic control device and an external tool used in such a method.

同図5に示されるように、この電子制御装置30にはマイクロコンピュータM3が搭載されており、このマイクロコンピュータM3は、大きくは、図示しないCPU(中央処理装置)や、例えばフラッシュメモリ等からなる不揮発性メモリ31、さらには例えばRAM(ランダムアクセスメモリ)からなる作業用のメモリ32等を備えて構成されている。そして、この電子制御装置30は、車載装置を制御するための制御プログラム(APL:アプリケーション)P3と共に、自らに搭載されているマイクロコンピュータM3の種類に対応する識別コードID3(ここではAとする)も、上記不揮発性メモリ31に記憶させるかたちで保持している。さらにこれに加えて、同不揮発性メモリ31には、主に外部ツールTとの間での通信に用いられる対外部ツール転送用プログラム(インターフェース手段)P31も格納されており、同プログラムP31の一部として、識別コード取得プログラムP32が設けられている。   As shown in FIG. 5, the electronic control unit 30 is equipped with a microcomputer M3. The microcomputer M3 is mainly composed of a CPU (central processing unit) not shown, for example, a flash memory or the like. A nonvolatile memory 31 and a working memory 32 made up of, for example, a RAM (Random Access Memory) are provided. The electronic control device 30 has an identification code ID3 (A here) corresponding to the type of the microcomputer M3 mounted on the electronic control device 30 together with a control program (APL: application) P3 for controlling the in-vehicle device. Are also stored in the nonvolatile memory 31. In addition to this, the nonvolatile memory 31 also stores an external tool transfer program (interface means) P31 mainly used for communication with the external tool T. As part, an identification code acquisition program P32 is provided.

一方、外部ツールTは、この電子制御装置30に不揮発に保持されている上記制御プログラムP3を書き換える際に用いられるもので、これを操作することによって同プログラム(制御データも含む)P3の書換えが行われる。そしてこの外部ツールTにおいては、電子制御装置30との通信を管理する制御プログラムTPと、同装置30に搭載される可能性のあるマイクロコンピュータの種類別に各々対応する書換え用プログラムWP1およびWP2とが、適宜の記憶装置(図示略)に記憶保持されている。なおここで、書換え用プログラムWP1およびWP2は、それぞれ識別コードの種類(AおよびB)別に関連付けされている。   On the other hand, the external tool T is used when rewriting the control program P3 held in the electronic control device 30 in a nonvolatile manner. By operating this, the program (including control data) P3 can be rewritten. Done. In this external tool T, a control program TP for managing communication with the electronic control device 30 and rewrite programs WP1 and WP2 corresponding to the types of microcomputers that may be mounted on the device 30 are provided. And stored in an appropriate storage device (not shown). Here, the rewriting programs WP1 and WP2 are associated with each type of identification code (A and B).

こうした構成にあって、上記制御プログラム(制御データも含む)P3の書換えを行う際には、まず、所定の操作に基づいて制御プログラムTPが実行されて上記外部ツールTから発せられる要求信号(取得要求)を、当該電子制御装置30が受信する。そして、この要求信号(取得要求)を受信した電子制御装置30が、同信号を対外部ツール転送用プログラムP31に基づき処理し、上記識別コード取得プログラムP32の実行のもとに、上記不揮発性メモリ31から識別コードID3を読み出してこれを応答信号の一部として外部ツールTへ送信する。次いで、この識別コードID3を受け取った外部ツールTが、自らの保持している書換え用プログラムWP1およびWP2の中から同識別コードID3(A)に対応する書換え用プログラム(ここでは書換え用プログラムWP1)を判別、選択し、これを電子制御装置30へ向けて転送する。そうして外部ツールTから送られてくる書換え用プログラムWP1が上記作業用メモリ32に格納されてこれが同メモリ32上で実行されることにより、当該電子制御装置30にて上記不揮発に保持される制御プログラムP3の書換え(修正や更新)が行われることになる。   In such a configuration, when the control program (including control data) P3 is rewritten, first, the control program TP is executed based on a predetermined operation and a request signal (acquired) issued from the external tool T is acquired. Request) is received by the electronic control unit 30. Then, the electronic control unit 30 that has received this request signal (acquisition request) processes the signal based on the external tool transfer program P31, and executes the identification code acquisition program P32 to execute the non-volatile memory. The identification code ID3 is read from 31 and transmitted to the external tool T as part of the response signal. Next, the external tool T that has received the identification code ID3 rewrites the rewrite program corresponding to the identification code ID3 (A) from the rewrite programs WP1 and WP2 held by the external tool T (here, the rewrite program WP1). Is selected and transferred to the electronic control unit 30. Then, the rewriting program WP1 sent from the external tool T is stored in the working memory 32 and is executed on the memory 32, whereby the electronic control unit 30 holds the nonvolatile data. The control program P3 is rewritten (corrected or updated).

このように、この電子制御装置30においては、外部ツールTにより、当該電子制御装置30に搭載されるマイクロコンピュータM3の種類に対応する書換え用プログラムWP1が提供されて、この書換え用プログラムWP1の実行のもとに、上記不揮発性メモリ31に格納されている制御プログラムP3の内容(制御データも含む)が書き換えられる。すなわち、こうした書換え方法によれば、各識別コードに対応する書換え用プログラムを外部ツールに予め用意しておくことで、いかなるマイクロコンピュータが採用されようともこれに柔軟に対応して適切なプログラムの書換えが行われるようになる。   As described above, in the electronic control device 30, the external tool T provides the rewriting program WP1 corresponding to the type of the microcomputer M3 mounted on the electronic control device 30, and the execution of the rewriting program WP1. The contents (including the control data) of the control program P3 stored in the nonvolatile memory 31 are rewritten. In other words, according to such a rewriting method, a rewriting program corresponding to each identification code is prepared in an external tool in advance, so that any microcomputer can be flexibly adapted to rewriting an appropriate program. Will be done.

以上説明したように、識別コードを用いることで、同コードに基づき書換え用プログラムの転送を中止して不正な書換えやデータ消去等を未然に防いだり、あるいは外部ツールに用意されたプログラムの中から当該電子制御装置に搭載されているマイクロコンピュータの種類に対応する書換え用プログラムを自動的に選択したりすることが可能になる。しかしながら、こうした識別コードを利用するものでは、識別コードを取得するためのプログラム(図5に例示した装置でいえば識別コード取得プログラムP32)が必要になる。ところが車載電子制御装置を開発する当初においては、このような識別コードを用いることが想定されていなかったため、ほとんどの対外部ツール転送用プログラム(図5)には、こうした識別コードを取得するためのプログラムが実装されていない。しかも安全面での配慮から、同対外部ツール転送用プログラムに対し変更や追加を実施することができない実情にある。   As explained above, by using the identification code, transfer of the rewriting program is stopped based on the code to prevent unauthorized rewriting and data erasure, or from programs prepared in an external tool. It becomes possible to automatically select a rewriting program corresponding to the type of microcomputer mounted on the electronic control unit. However, in order to use such an identification code, a program for acquiring the identification code (identification code acquisition program P32 in the case of the apparatus illustrated in FIG. 5) is required. However, since it was not assumed that such an identification code was used at the beginning of the development of an in-vehicle electronic control device, most external tool transfer programs (FIG. 5) are for obtaining such an identification code. The program is not implemented. Moreover, due to safety considerations, there is a situation where changes and additions cannot be made to the external tool transfer program.

この発明は、こうした実情に鑑みてなされたものであり、外部ツールへ必要な情報を提供する識別コードを用いて制御プログラムの書換えを行う場合であれ、対外部ツール転送用プログラムの変更や追加を伴うことなく好適なプログラムの書換えを行うことのできる車両用電子制御装置および制御プログラムの書換え方法を提供することを目的とする。   The present invention has been made in view of such circumstances, and even when the control program is rewritten using an identification code that provides necessary information to an external tool, the external tool transfer program can be changed or added. An object of the present invention is to provide a vehicular electronic control device and a control program rewriting method capable of rewriting a suitable program without accompanying.

こうした目的を達成すべく、請求項1に記載の発明では、車載装置を制御するための制御プログラムを不揮発に保持し、同制御プログラムの書換えに際しては、取得要求に応じて当該電子制御装置に係る識別コードを取得し、該取得される識別コードの授受に基づいて外部ツールから送られてくる書換え用のプログラムを用いて前記制御プログラムの少なくとも一部を書き換える車両用電子制御装置として、前記識別コードの取得が、前記外部ツールから送られてくる識別コード取得プログラムの実行のもとに行われる構成とする。   In order to achieve such an object, in the invention described in claim 1, a control program for controlling the in-vehicle device is held in a non-volatile manner, and when the control program is rewritten, the electronic control device is in accordance with an acquisition request. The identification code as an electronic control device for a vehicle that acquires an identification code and rewrites at least a part of the control program by using a rewriting program sent from an external tool based on the exchange of the acquired identification code Is obtained under the execution of the identification code acquisition program sent from the external tool.

また、請求項11に記載の発明では、車両用電子制御装置に不揮発に記憶保持されている車載装置の制御プログラムを書き換えるに際して、取得要求に応じて前記車両用電子制御装置にて取得される当該電子制御装置に係る識別コードが同電子制御装置と外部ツールとの間で授受され、この識別コードの授受に基づいて前記外部ツールから送られてくる書換え用のプログラムを用いて前記制御プログラムの少なくとも一部を書き換える制御プログラムの書換え方法として、前記識別コードの取得が、前記外部ツールから送られてくる識別コード取得プログラムの実行のもとに行われるようにする。   In the invention according to claim 11, when rewriting the control program for the in-vehicle device that is stored in a nonvolatile manner in the vehicle electronic control device, the vehicle electronic control device is acquired in response to the acquisition request. An identification code related to the electronic control device is exchanged between the electronic control device and an external tool, and at least of the control program using a rewrite program sent from the external tool based on the exchange of the identification code As a rewriting method of the control program for rewriting a part, the acquisition of the identification code is performed under the execution of the identification code acquisition program sent from the external tool.

このような構成あるいは方法によれば、電子制御装置側に識別コード取得プログラムを予め用意しておかなくとも、上記外部ツールから送られてくる識別コード取得プログラムの実行のもとに、書換え対象とする制御プログラムを保持する上記電子制御装置にて識別コードが取得されるようになる。そうしてこの識別コードを用いることで、同コードに基づき書換え用プログラムの転送を中止して不正な書換えやデータ消去等を未然に防いだり、あるいは外部ツールに用意されたプログラムの中から当該電子制御装置に搭載されているマイクロコンピュータの種類に対応する書換え用プログラムを自動的に選択したりすることなどが可能になることは前述したとおりである。すなわち、上記構成あるいは方法によれば、外部ツールに対して必要な情報を提供する識別コードを用いて制御プログラム(制御データも含む)の書換えを行う場合であれ、対外部ツール転送用プログラムの変更や追加を伴うことなく好適なプログラムの書換えを行うことができるようになる。   According to such a configuration or method, even if the identification code acquisition program is not prepared in advance on the electronic control device side, the rewrite target is determined based on the execution of the identification code acquisition program sent from the external tool. The identification code is acquired by the electronic control unit holding the control program to be executed. By using this identification code, the transfer of the rewriting program is canceled based on the code to prevent unauthorized rewriting and data erasure, or the electronic program can be read from a program prepared in an external tool. As described above, it is possible to automatically select a rewriting program corresponding to the type of microcomputer installed in the control device. That is, according to the above configuration or method, even when the control program (including control data) is rewritten using an identification code that provides necessary information to the external tool, the external tool transfer program is changed. It becomes possible to rewrite a suitable program without any additional operation.

また、請求項2あるいは12に記載の発明では、上記請求項1に記載の装置あるいは請求項11に記載の方法において、前記書換え用のプログラムが、前記識別コードが適正であることを条件に前記外部ツールから送られてくるようにする。   In the invention according to claim 2 or 12, in the apparatus according to claim 1 or the method according to claim 11, the rewriting program is provided on the condition that the identification code is appropriate. Be sent from an external tool.

こうした構成あるいは方法においては、上記外部ツールが、書換え対象とする制御プログラムを保持する上記電子制御装置から受け取った識別コードの適性、例えば予め定められたコードと一致するか否か等を判断して、同制御プログラムを書き換える際に必要となる書換え用プログラムを送信するか否かを決定する。このため、同識別コードに基づき書換え用プログラムの転送を中止して不正な書換えやデータ消去等を未然に防ぐことなどができるようになる。   In such a configuration or method, the external tool determines the suitability of the identification code received from the electronic control device holding the control program to be rewritten, for example, whether or not it matches a predetermined code. Then, it is determined whether or not to transmit a rewriting program necessary for rewriting the control program. For this reason, the transfer of the rewriting program can be stopped based on the identification code to prevent unauthorized rewriting and data erasure.

また、請求項3あるいは13に記載の発明では、上記請求項1に記載の装置あるいは請求項11に記載の方法において、前記識別コードを、前記外部ツールに用意されている複数種の書換え用のプログラムのうちに必要とする前記書換え用のプログラムを判別するものとする。   Further, in the invention according to claim 3 or 13, in the apparatus according to claim 1 or the method according to claim 11, the identification code is used for a plurality of types of rewriting prepared in the external tool. It is assumed that the rewriting program required among the programs is determined.

こうした構成あるいは方法においては、上記外部ツールが、保持している複数種の書換え用プログラムの中から識別コードに対応する書換え用プログラムを選択してそれを識別コードに対する応答として上記電子制御装置へ向けて送信する。このため、各識別コードに対応する書換え用プログラムを外部ツールに予め用意しておくことで、例えば当該電子制御装置に搭載されるマイクロコンピュータの種類等に最適な(例えば専用の)書換え用プログラムをその中から選んで、あるいはその中に最適な書換え用プログラムがなければそのプログラムの転送を中止して、当該プログラムの書換え(修正や更新)をより好適なかたちで行うことができるようになる。   In such a configuration or method, the external tool selects a rewriting program corresponding to the identification code from among a plurality of types of rewriting programs held and directs it to the electronic control device as a response to the identification code. To send. For this reason, by preparing a rewriting program corresponding to each identification code in an external tool in advance, for example, an optimal (for example, dedicated) rewriting program for the type of microcomputer mounted on the electronic control device can be obtained. If one of the programs is selected or there is no optimum rewriting program, the transfer of the program is stopped, and the program can be rewritten (corrected or updated) in a more suitable form.

また、請求項4あるいは14に記載の発明では、上記請求項1に記載の装置あるいは請求項11に記載の方法において、前記識別コードを、前記外部ツールに設けられた記憶装置のアドレス指定をもって、同記憶装置に記憶されている複数種のプログラムの中から必要とする前記書換え用のプログラムを判別、選択するものとする。   Further, in the invention according to claim 4 or 14, in the apparatus according to claim 1 or the method according to claim 11, the identification code is set by addressing a storage device provided in the external tool, It is assumed that the necessary rewriting program is determined and selected from a plurality of types of programs stored in the storage device.

このように前記識別コードを、アドレス指定をもって複数種のプログラムの中から必要とする書換え用プログラムを判別、選択するものとすれば、同一の記憶装置に複数種のプログラムが記憶されている場合であれ、当該プログラムの書換え(修正や更新)に必要とされる書換え用プログラムが自動的に判別、選択されるようになる。このため、多様な機種をもつ車両用電子制御装置にあっても、外部ツールに適宜のプログラム構成で複数種のプログラムを用意することによってそれら電子制御装置に柔軟に対応することが可能になり、ひいては当該プログラムの書換え(修正や更新)がその対象とする機種に適したかたちで行われるようになる。   As described above, when the identification code is determined and selected from a plurality of types of programs by addressing, a plurality of types of programs are stored in the same storage device. Anyway, a rewriting program required for rewriting (correcting or updating) the program is automatically identified and selected. For this reason, even in a vehicular electronic control device having various models, it is possible to flexibly support these electronic control devices by preparing a plurality of types of programs with an appropriate program configuration in an external tool, As a result, rewriting (modification and update) of the program is performed in a form suitable for the target model.

そして、この請求項4に記載の装置あるいは請求項14に記載の方法を前提として、請求項5あるいは15に記載の発明では、前記外部ツールから送られてくる書換え用のプログラムとは別の書換え用のプログラムをさらに前記電子制御装置に用意し、前記制御プログラムの書換えを、これら書換え用のプログラムの協働のもとに行うようにする。   Based on the apparatus according to claim 4 or the method according to claim 14, in the invention according to claim 5 or 15, rewriting different from the rewriting program sent from the external tool is performed. Is further prepared in the electronic control unit, and the control program is rewritten in cooperation with these rewriting programs.

このように、当該書換えに用いる書換え用プログラムの一部をその書換えの対象とする制御プログラムを保持する電子制御装置側に予め用意しておけば、上記外部ツールからの供給によって得るべき書換え用プログラムの情報量(データ量)は自ずと少なくなる。すなわちこれにより、外部ツール側に用意しておくべき書換え用プログラムの情報量も少なくて済むようになり、同ツールにおける記憶領域の確保が容易になるとともに、同ツールに保持される各種プログラムの構成の簡素化が図られるようになる。   As described above, if a part of the rewriting program used for the rewriting is prepared in advance on the electronic control device side that holds the control program to be rewritten, the rewriting program to be obtained by the supply from the external tool. The amount of information (data amount) is naturally reduced. In other words, the amount of information of the rewriting program that should be prepared on the external tool side can be reduced, the storage area in the tool can be easily secured, and various programs stored in the tool can be configured. Can be simplified.

また、請求項6あるいは16に記載の発明では、特にここで、前記外部ツールから送られてくる書換え用のプログラムを、前記制御プログラムの書換えに際して特にデータ通信に係る処理を担うものとする。   In the invention described in claim 6 or 16, particularly, the rewriting program sent from the external tool is particularly responsible for processing related to data communication when the control program is rewritten.

通常、プログラムの書換え(修正や更新)に際して用いられる書換え用プログラムは、大きくは、当該書換えに係る具体的な処理内容を指示する制御部(書換え用制御プログラム)と、特にデータ通信に係る処理を担う通信部(書換え用通信プログラム)とに分けられる。そしてこのうち、特にデータ通信に係る処理を担う書換え用通信プログラムは、当該電子制御装置に搭載されるマイクロコンピュータの種類などによらず、複数種の電子制御装置において共通に用いられるものである。このため、自己の機種に対応する書換え用制御プログラムを保持する電子制御装置に対しては、上記構成あるいは方法のように、各種装置に共通に用いられる書換え用通信プログラムだけを外部ツールにより供給すれば足りる。すなわち上記構成あるいは方法によれば、この種の電子制御装置の書換え用制御プログラムの分だけ外部ツールの記憶領域を空けて、複数種の電子制御装置に対応することを可能としながら前記外部ツールにおける記憶領域(未使用領域)の拡大を図ることができるようになる。   In general, a rewriting program used for rewriting (modifying or updating) a program mainly includes a control unit (rewriting control program) for instructing specific processing contents related to the rewriting, and particularly processing related to data communication. It is divided into the communication section (communication program for rewriting) to bear. Of these, the rewrite communication program, which is particularly responsible for processing related to data communication, is commonly used in a plurality of types of electronic control devices regardless of the type of microcomputer mounted on the electronic control device. For this reason, only the rewrite communication program that is commonly used for various devices is supplied from an external tool to the electronic control device that holds the rewrite control program corresponding to its model. It's enough. That is, according to the above-described configuration or method, the external tool storage area can be freed up by the rewrite control program of this type of electronic control device, and the external tool can be used for a plurality of types of electronic control devices. The storage area (unused area) can be expanded.

またこのとき、請求項17に記載の発明によるように、前記外部ツールに設けられた記憶装置に、前記制御プログラムの書換えに際して特にデータ通信に係る処理を担うプログラム(書換え用通信プログラム)と、前記制御プログラムの書換えに際して当該書換えに係る具体的な処理内容を指示するプログラム(書換え用制御プログラム)とを格納しておき、前記識別コードによるアドレス指定をもって、前記必要とする書換え用のプログラムとしてこれら2種類のプログラムのうちのいずれか1つもしくは両方が選択されるようにすれば、対象とする装置が識別コードによって判別され、同コードに基づくアドレス指定をもってそれに適した書換え用のプログラムが選択されるようになる。すなわち、対象とする装置が自己の機種に対応する書換え用のプログラム(より正確には書換え用制御プログラム)を保持する電子制御装置であっても、またこれを保持しない電子制御装置であっても、対象とする各装置へ適切な書換え用プログラムが提供されるようになる。   At this time, according to the invention described in claim 17, the storage device provided in the external tool stores a program (communication program for rewriting) particularly responsible for processing related to data communication when the control program is rewritten. When a control program is rewritten, a program (rewrite control program) for instructing specific processing contents related to the rewrite is stored, and these two rewrite programs as the necessary rewrite programs are designated by addressing with the identification code. If one or both of the types of programs are selected, the target device is determined by the identification code, and a rewriting program suitable for the device is selected by addressing based on the code. It becomes like this. That is, even if the target device is an electronic control device that holds a rewrite program (more precisely, a rewrite control program) corresponding to its model, or an electronic control device that does not hold this program Thus, an appropriate rewriting program is provided to each target device.

また、請求項1〜6のいずれか一項に記載の装置あるいは請求項11〜17のいずれか一項に記載の方法において、前記識別コードの取得に関しては、例えば請求項7あるいは18に記載の発明によるように、
・前記識別コードを、前記識別コード取得プログラムの実行に基づき生成、取得されるものとする。
あるいは請求項8あるいは19に記載の発明によるように、
・前記識別コードを、適宜の記憶手段に記憶されるかたちで前記電子制御装置に保持されるものとし、前記識別コードの取得を、前記識別コード取得プログラムの実行に基づき前記記憶手段から同識別コードが読み出されるかたちで行うようにする。
といった態様をもってこれを行うことが、この種の車両用電子制御装置あるいは制御プログラムの書換え方法として特に有効である。
Moreover, in the apparatus as described in any one of Claims 1-6, or the method as described in any one of Claims 11-17, regarding acquisition of the said identification code, for example, as described in Claim 7 or 18. As in the invention,
The identification code is generated and acquired based on execution of the identification code acquisition program.
Alternatively, as in the invention according to claim 8 or 19,
The identification code is stored in the electronic control device in a form stored in an appropriate storage unit, and the identification code is acquired from the storage unit based on execution of the identification code acquisition program. To be read out.
This is particularly effective as a rewriting method for this type of vehicle electronic control device or control program.

また、請求項9あるいは20に記載の発明では、請求項1〜8のいずれか一項に記載の装置あるいは請求項11〜19のいずれか一項に記載の方法において、前記識別コードを、前記電子制御装置に搭載されているマイクロコンピュータの種類を識別するものとする。   Moreover, in invention of Claim 9 or 20, in the apparatus as described in any one of Claims 1-8, or the method as described in any one of Claims 11-19, the said identification code is the said. The type of microcomputer mounted on the electronic control device shall be identified.

前述したように、通常、制御プログラムの書換え(修正や更新)に用いられる上記書換え用プログラムは、当該電子制御装置に搭載されるマイクロコンピュータの種類別に専用に用意される。このため、これに対応しない書換え用プログラムが当該電子制御装置に転送されてくるようなことがあると、制御プログラムの内容が誤って書き換えられたり、消去されたりすることが懸念される。また、こうした書換え用プログラムを選択する際にも、従来、書換え用プログラムの数(種類)が増えてくるとその管理が非常に複雑になる、あるいは作業者自身によって人為的に書換え用プログラムが選択されることにより信頼性に欠ける、等々の問題が生じている。   As described above, the rewriting program used for rewriting (correcting or updating) the control program is usually prepared for each type of microcomputer installed in the electronic control device. For this reason, there is a concern that the contents of the control program may be erroneously rewritten or erased if a rewriting program that does not correspond to this is transferred to the electronic control device. In addition, when such a rewriting program is selected, the management becomes very complicated as the number (type) of rewriting programs increases, or the rewriting program is selected manually by the operator himself / herself. This causes problems such as lack of reliability.

この点、上記構成あるいは方法によれば、識別コードを用いることで、同コードに基づき当該電子制御装置に搭載されているマイクロコンピュータの種類に対応しない書換え用プログラムの転送を中止して不正な書換えやデータ消去等を未然に防いだり、あるいは外部ツールに用意されたプログラムの中から当該電子制御装置に搭載されているマイクロコンピュータの種類に最適な書換え用プログラムを自動的に選択したりすることが可能になる。   In this regard, according to the above configuration or method, by using an identification code, transfer of a rewriting program that does not correspond to the type of microcomputer mounted on the electronic control device is canceled based on the code, and illegal rewriting is performed. Or data erasure, etc., or automatically select the optimal rewriting program for the type of microcomputer installed in the electronic control unit from the programs prepared in the external tool. It becomes possible.

また、請求項10あるいは21に記載の発明では、請求項1〜9のいずれか一項に記載の装置あるいは請求項11〜20のいずれか一項に記載の方法において、前記識別コード取得プログラムが、前記電子制御装置から発行される認証キーと前記外部ツールにて発行される認証キーとを照合して互いに合致していることを条件に前記外部ツールから送られてくる構成あるいは方法とする。   Further, in the invention according to claim 10 or 21, in the apparatus according to any one of claims 1 to 9 or the method according to any one of claims 11 to 20, the identification code acquisition program is The authentication key issued from the electronic control unit and the authentication key issued by the external tool are collated, and the configuration or method is sent from the external tool on condition that they match each other.

このように、外部ツールを通じて当該電子制御装置に保持される制御プログラム(制御データも含む)を書き換えるに際し、同外部ツールによる電子制御装置へのアクセスをより高いセキュリティレベルをもって許可するようにすれば、当該電子制御装置に保持される制御プログラムに対する不正な書換えは好適に予防されるようになる。   In this way, when rewriting a control program (including control data) held in the electronic control device through the external tool, if access to the electronic control device by the external tool is permitted with a higher security level, Unauthorized rewriting of the control program held in the electronic control device is preferably prevented.

(第1の実施の形態)
以下、この発明に係る車両用電子制御装置およびその制御プログラムの書換え方法を具体化した第1の実施の形態について説明する。なお、ここでは一例として、車両に搭載されたエンジンの運転を制御する電子制御装置についてこの発明を具体化する。
(First embodiment)
Hereinafter, a first embodiment in which a vehicular electronic control device and a control program rewriting method according to the present invention are embodied will be described. As an example, the present invention is embodied in an electronic control device that controls the operation of an engine mounted on a vehicle.

まず、図1を参照しつつ、この実施の形態に係る車両用電子制御装置、並びに同装置と通信可能に接続される外部ツールの構成の概略について説明する。なお、この外部ツールは、車両のエンジンルーム等、適宜の箇所に設けられているコネクタを介して車両に搭載されている各種電子制御装置と電気的に接続されて、それら各電子制御装置の設定や制御情報の閲覧、さらには制御プログラム(制御データも含む)の書換え(修正や更新)等を行う際に用いられる機器である。そして、この実施の形態に係る電子制御装置に実装された制御プログラムの書換えも、この外部ツールを通じて行われるようになっている。   First, with reference to FIG. 1, the outline of the structure of the vehicle electronic control apparatus which concerns on this embodiment, and the external tool connected so as to be communicable with the apparatus is demonstrated. The external tool is electrically connected to various electronic control devices mounted on the vehicle via connectors provided at appropriate places such as an engine room of the vehicle, and settings of these electronic control devices are made. This is a device used when browsing control information and rewriting (correcting or updating) a control program (including control data). The rewriting of the control program mounted on the electronic control device according to this embodiment is also performed through this external tool.

同図1に示されるように、この電子制御装置10にはマイクロコンピュータM1が搭載されており、このマイクロコンピュータM1は、大きくは、図示しないCPU(中央処理装置)や、例えばフラッシュメモリ等からなる不揮発性メモリ11、さらには例えばRAM(ランダムアクセスメモリ)からなる作業用のメモリ12等を備えて構成されている。そして、この電子制御装置10は、車載装置(ここではエンジン)を制御するための制御プログラム(APL:アプリケーション)P1を上記不揮発性メモリ11に記憶させるかたちで保持している。またさらに、この不揮発性メモリ11には、主に外部ツールTとの間での通信に用いられる対外部ツール転送用プログラム(インターフェース手段)P11が、その書換えを禁止された状態で、すなわち読み取ることのみ可能な状態で格納されている。   As shown in FIG. 1, the electronic control device 10 is equipped with a microcomputer M1, which is mainly composed of a CPU (central processing unit) (not shown), for example, a flash memory or the like. A nonvolatile memory 11 and a working memory 12 such as a RAM (Random Access Memory) are provided. The electronic control device 10 holds a control program (APL: application) P1 for controlling the in-vehicle device (here, the engine) in the form of being stored in the nonvolatile memory 11. Furthermore, the non-volatile memory 11 is read by an external tool transfer program (interface means) P11 mainly used for communication with the external tool T in a state where rewriting thereof is prohibited. Stored only in a possible state.

一方、外部ツールTは、先に詳述したように、上記電子制御装置10に不揮発に保持されている制御プログラムP1を書き換える際などに用いられるものであり、これを操作することによって同制御プログラム(制御データも含む)P1の書換えが行われる。そしてこの外部ツールTにおいては、対象とする各電子制御装置との間の通信を管理する制御プログラムTPや、それら電子制御装置に搭載される可能性のあるマイクロコンピュータの種類(ここでは2種類)の別に各々対応する(ここでは専用の)書換え用プログラムWP1およびWP2が、適宜の記憶装置(図示略)に記憶保持されている。また、この実施の形態においては、これら書換え用プログラムWP1およびWP2に加えてさらに、識別コードを取得する際に用いられる識別コード取得プログラムP12も、この図示しない記憶装置に格納されている。なおここで、書換え用プログラムWP1およびWP2は、それぞれ識別コードの種類(AおよびB)別に関連付けされている。また具体的には、これら書換え用プログラムWP1およびWP2は各々、制御プログラムの書換えに際して当該書換えに係る具体的な処理内容を指示する書換え用制御プログラムWP1aおよびWP2aと、制御プログラムの書換えに際して特にデータ通信に係る処理を担う書換え用通信プログラムWP1bおよびWP2bとにより構成されている。   On the other hand, as described in detail above, the external tool T is used when rewriting the control program P1 held in the electronic control device 10 in a non-volatile manner. By operating this, the control program P1 is used. P1 is rewritten (including control data). In the external tool T, the control program TP for managing communication with each target electronic control device and the types of microcomputers that can be mounted on the electronic control devices (two types here) In addition, rewriting programs WP1 and WP2 corresponding to each (dedicated here) are stored and held in an appropriate storage device (not shown). In this embodiment, in addition to these rewriting programs WP1 and WP2, an identification code acquisition program P12 used for acquiring an identification code is also stored in this storage device (not shown). Here, the rewriting programs WP1 and WP2 are associated with each type of identification code (A and B). More specifically, each of the rewriting programs WP1 and WP2 includes a rewriting control program WP1a and WP2a for instructing specific processing contents related to the rewriting when the control program is rewritten, and a data communication particularly when the control program is rewritten. The communication programs for rewriting WP1b and WP2b responsible for the processing related to the above.

次に、図2および図3を併せ参照して、これら電子制御装置10および外部ツールTによる制御プログラムの書換え方法の一態様について説明する。なお、図2は電子制御装置10の処理手順を示すフローチャート、また図3は外部ツールTの処理手順を示すフローチャートである。   Next, referring to FIG. 2 and FIG. 3 together, an aspect of a rewriting method of the control program by the electronic control device 10 and the external tool T will be described. 2 is a flowchart showing a processing procedure of the electronic control apparatus 10, and FIG. 3 is a flowchart showing a processing procedure of the external tool T.

図2に示すように、上記制御プログラム(制御データも含む)P1の書換えを行うにあたっては、まず、電子制御装置10において、同装置のモードがプログラム書換えモードになっているか否かが判断される(ステップS101)。一般に、この種の電子制御装置は複数のモードをもっており、通常時には、例えばAPLモードとして、上記制御プログラムP1に含まれる制御データと共にセンサ等を通じて取り込まれるデータ等を用いて、同制御プログラムP1の実行に基づいて制御対象とする車載装置(ここではエンジン)を制御している。そうして上記制御プログラムP1の書換えを行う際には、例えば作業者によるコマンド入力等を通じて当該電子制御装置10のモードがプログラム書換えモードに変更される。このステップS101では、こうしたモードの変更を検知すべく、常に電子制御装置10のモードがプログラム書換えモードであるか否かが判断されている。さらに詳しくは、この判断は上記対外部ツール転送用プログラムP11の実行のもとに行われて、より具体的には、例えば作業用メモリ12の所定領域が上記制御プログラムP1で埋まっているか否かをみることによって行われる。そうして、同領域が空であればプログラム書換えモード、またそうでなければAPLモードと判断されて、その都度、プログラムカウンタが対応する値に変更される。   As shown in FIG. 2, when rewriting the control program (including control data) P1, first, the electronic control device 10 determines whether or not the mode of the device is the program rewriting mode. (Step S101). In general, this type of electronic control apparatus has a plurality of modes. In normal times, for example, as an APL mode, the control program P1 is executed using data taken in through a sensor or the like together with control data included in the control program P1. The vehicle-mounted device (engine here) is controlled based on Thus, when the control program P1 is rewritten, the mode of the electronic control device 10 is changed to the program rewrite mode through, for example, a command input by an operator. In step S101, it is always determined whether or not the mode of the electronic control device 10 is the program rewriting mode in order to detect such a change in mode. More specifically, this determination is made based on the execution of the external tool transfer program P11. More specifically, for example, whether or not a predetermined area of the work memory 12 is filled with the control program P1. It is done by watching. Then, if the area is empty, it is determined that the program rewrite mode is used, and if not, the APL mode is determined, and the program counter is changed to a corresponding value each time.

そうして、このステップS101でプログラム書換えモードになっていると判断されると、これに続くステップS102において当該電子制御装置10は、外部ツールTからのキー要求を待つ状態になる。   If it is determined in this step S101 that the program rewriting mode is set, the electronic control device 10 waits for a key request from the external tool T in the subsequent step S102.

一方、外部ツールT側では、図3に示すように、例えば作業者による所定の操作に基づいて制御プログラムTPが実行されて上記キー要求待ち状態にある電子制御装置10に対してキー要求が発せられる(ステップS201)。そしてこれに続くステップS202において、今度は外部ツールTが待ち状態になる。   On the other hand, on the side of the external tool T, as shown in FIG. 3, for example, a control program TP is executed based on a predetermined operation by an operator and a key request is issued to the electronic control device 10 in the key request waiting state. (Step S201). In the subsequent step S202, the external tool T is now in a waiting state.

そして電子制御装置10は、この外部ツールTからのキー要求を受信すると、次にステップS103(図2)の処理として、自己の認証キー(第1のキー)を適宜の方法(例えば記憶装置からの読み出し、あるいは適宜の演算処理に基づく生成など)により取得してこれを外部ツールTへ送信する。そしてこれに続くステップS104で、同電子制御装置10は再び待ち状態になる。   When the electronic control device 10 receives the key request from the external tool T, the electronic control device 10 then assigns its own authentication key (first key) from an appropriate method (for example, from the storage device) as the processing of step S103 (FIG. 2). Or by generation based on appropriate arithmetic processing) and transmits it to the external tool T. In subsequent step S104, the electronic control unit 10 is again in a waiting state.

また一方、外部ツールTは、この認証キー(第1のキー)を受信すると、次にステップS203(図3)の処理として、自己の認証キー(第2のキー)を作成するとともに、これを電子制御装置10へ送信する。そして、これに続くステップS204で、再び待ち状態となる。   On the other hand, when the external tool T receives this authentication key (first key), it creates its own authentication key (second key) as the process of step S203 (FIG. 3). Transmit to the electronic control unit 10. Then, in the subsequent step S204, the process waits again.

次に、この認証キー(第2のキー)を受信した電子制御装置10が、ステップS105(図2)において、対外部ツール転送用プログラムP11の実行のもとに両者の認証キー(第1および第2のキー)を照合して互いに合致しているか否かを判定し、その判定結果(照合結果)を外部ツールTへ送信する。そして、これに続くステップS106で、再び電子制御装置10が待ち状態になる。   Next, the electronic control unit 10 that has received this authentication key (second key), in step S105 (FIG. 2), executes both authentication keys (first and second keys) under the execution of the external tool transfer program P11. The second key) is collated to determine whether or not they match each other, and the determination result (collation result) is transmitted to the external tool T. In subsequent step S106, the electronic control device 10 again enters a waiting state.

また外部ツールTは、ステップS204(図3)において、受け取った判定結果(照合結果)の良否を判定して、問題なければ、すなわち両者の認証キーが合致していればステップS205へと進む。そして外部ツールTは、このステップS205において、上記識別コード取得プログラムP12(図1)を電子制御装置10の作業用メモリ12へ向けて転送することになる。   Further, the external tool T determines whether the received determination result (collation result) is good or bad in step S204 (FIG. 3). If there is no problem, that is, if both authentication keys match, the process proceeds to step S205. In step S205, the external tool T transfers the identification code acquisition program P12 (FIG. 1) toward the work memory 12 of the electronic control device 10.

このように、この実施の形態においては、識別コード取得プログラムP12が、電子制御装置10から発行される認証キー(第1のキー)と外部ツールTにて発行される認証キー(第2のキー)とを照合して互いに合致していることを条件に外部ツールTから送られてくるようになっている。こうしてセキュリティレベルを高めることにより、上記制御プログラムP1に対する不正な書換えの予防が図られている。   As described above, in this embodiment, the identification code acquisition program P12 has the authentication key (first key) issued from the electronic control device 10 and the authentication key (second key) issued by the external tool T. ) And are sent from the external tool T on condition that they match each other. By increasing the security level in this way, illegal rewriting of the control program P1 is prevented.

さらに外部ツールTは、これに続くステップS206(図3)において、制御プログラムTP(図1)の実行のもとに発せられる要求信号(取得要求)を、電子制御装置10へ向けて送信する。   Further, the external tool T transmits a request signal (acquisition request) issued under the execution of the control program TP (FIG. 1) to the electronic control unit 10 in the subsequent step S206 (FIG. 3).

また一方、電子制御装置10は、作業用メモリ12(図1)への上記識別コード取得プログラムP12の転送が完了すると、ステップS107(図2)の処理として、同プログラムP12を作業用メモリ12上で実行して自身に搭載されているマイクロコンピュータM1の種類に対応する識別コード(ここではAとする)を生成、取得する。この際、識別コードの生成には、例えばマイクロコンピュータM1のCPU(図示略)に用意されているマイクロコンピュータの種類を示すポート等が利用される。そうして続くステップS108で外部ツールTからの上記要求信号(取得要求)を待っていてこれを受信すると、次のステップS109において、先のステップS107にて取得した識別コードを応答信号の一部として外部ツールTへ送信する。   On the other hand, when the transfer of the identification code acquisition program P12 to the work memory 12 (FIG. 1) is completed, the electronic control unit 10 loads the program P12 on the work memory 12 as a process of step S107 (FIG. 2). To generate and acquire an identification code (here, A) corresponding to the type of the microcomputer M1 mounted on itself. At this time, for example, a port indicating the type of microcomputer prepared in the CPU (not shown) of the microcomputer M1 is used for generating the identification code. In step S108, when the request signal (acquisition request) from the external tool T is waited for and received, in step S109, the identification code acquired in the previous step S107 is used as a part of the response signal. To the external tool T.

そして外部ツールTは、ステップS207(図3)にて待っていた識別コードを受け取ると、続くステップS208〜S210において、自らが保持している書換え用プログラムWP1およびWP2(図1)の中から同識別コード(A)に対応する書換え用プログラムを判別、選択する。すなわち、まずステップS208において、電子制御装置10の識別コードが「A」であると判断されると、続くステップS209において、同コードに対応する書換え用プログラムWP1が選択されて、次のステップS211の処理として、この書換え用プログラムWP1が電子制御装置10へ向けて転送される。そうしてこの転送をもって、外部ツールTの一連の処理(図3)が終了することになる。なお、同図3に示されるように、先のステップS202、S204、S207で待っているときに予め定められた時間を経過(タイムアウト)したり、あるいはステップS208で、受け取った識別コードが想定されている識別コード以外のものと判定されたりした場合も、この一連の処理は終了することになる。ただしこの場合は、その処理の終了に先立ち、NG(No Good=異常)処理として、適宜の処理(例えばNG情報の保存等)が行われるようになっている(ステップS212)。   When the external tool T receives the identification code waiting in step S207 (FIG. 3), in the subsequent steps S208 to S210, the external tool T selects the same from the rewriting programs WP1 and WP2 (FIG. 1) held by itself. A rewriting program corresponding to the identification code (A) is discriminated and selected. That is, first, in step S208, when it is determined that the identification code of the electronic control device 10 is “A”, in the subsequent step S209, the rewriting program WP1 corresponding to the code is selected, and in the next step S211. As a process, the rewriting program WP1 is transferred to the electronic control unit 10. Then, with this transfer, a series of processes (FIG. 3) of the external tool T is completed. As shown in FIG. 3, a predetermined time elapses (timeout) when waiting in the previous steps S202, S204, and S207, or the received identification code is assumed in step S208. Even when it is determined that the identification code is other than the identification code, the series of processing ends. However, in this case, prior to the end of the process, an appropriate process (for example, storage of NG information) is performed as an NG (No Good = abnormal) process (step S212).

一方、電子制御装置10は、こうして送られてくる書換え用プログラムWP1を、ステップS110(図2)にて作業用メモリ12に格納するとともに、これを同メモリ12上で起動(ステップS111)して、続くステップS112で、同プログラムWP1の実行のもとに、制御プログラム(制御データも含む)P1の書換えを行う。そうしてこの書換えが無事に終わると、これに続くステップS113の処理として、WDC(ウォッチドッククリア)の停止やCPUのリセット等といった適宜の前処理を行った後、CPUを再起動する。そしてこの再起動をもって、電子制御装置10の一連の処理(図2)も終了することになる。なお、同図2に示されるように、先のステップS102、S104、S106、S108、S110で待っているときに予め定められた時間を経過(タイムアウト)した場合も、この一連の処理は終了することになる。   On the other hand, the electronic control unit 10 stores the rewriting program WP1 sent in this way in the work memory 12 in step S110 (FIG. 2), and activates it on the memory 12 (step S111). In subsequent step S112, the control program (including control data) P1 is rewritten under the execution of the program WP1. When this rewriting is completed successfully, the CPU is restarted after performing appropriate preprocessing such as WDC (watchdog clear) stop or CPU reset as processing in step S113. And with this restart, a series of processes (FIG. 2) of the electronic control apparatus 10 will also be complete | finished. As shown in FIG. 2, this series of processing ends even when a predetermined time elapses (timeout) while waiting in the previous steps S102, S104, S106, S108, and S110. It will be.

このように、この電子制御装置10においては、外部ツールTにより、当該電子制御装置10に搭載されるマイクロコンピュータM1の種類に対応する書換え用プログラムWP1が提供されて、この書換え用プログラムWP1の実行のもとに、不揮発性メモリ11に格納されている制御プログラムP1の内容(制御データも含む)が書き換えられる。しかもここでは、識別コードの取得が、外部ツールTから送られてくる識別コード取得プログラムP12の実行のもとに行われる。こうした書換え方法によれば、電子制御装置10側に識別コード取得プログラムP12を予め用意しておかなくとも、すなわち対外部ツール転送用プログラムP11の変更や追加を伴うことなく、外部ツールTから送られてくる識別コード取得プログラムP12の実行により上記識別コードの取得が可能になる。すなわち、当該電子制御装置10に搭載されている不揮発性メモリ11を変更(交換)することなく、外部ツールT内のプログラムの変更のみで多様な電子制御装置の機種(より正確にはこれに搭載されるマイクロコンピュータ)の種類にも対応することができるようになる。そうして、各識別コードに対応する書換え用プログラムWP1およびWP2を外部ツールTに予め用意しておくことで、いかなるマイクロコンピュータが採用されようともこれに柔軟に対応して適切なプログラムの書換えが行われることになる。   As described above, in the electronic control device 10, the external tool T provides the rewriting program WP1 corresponding to the type of the microcomputer M1 mounted on the electronic control device 10, and the execution of the rewriting program WP1. The contents (including control data) of the control program P1 stored in the nonvolatile memory 11 are rewritten. In addition, here, the acquisition of the identification code is performed under the execution of the identification code acquisition program P12 sent from the external tool T. According to such a rewriting method, the identification code acquisition program P12 is not prepared on the electronic control device 10 side in advance, that is, sent from the external tool T without changing or adding the external tool transfer program P11. The identification code can be acquired by executing the identification code acquisition program P12. That is, various electronic control device models (more precisely, mounted on this) can be obtained by changing the program in the external tool T without changing (replacement) the nonvolatile memory 11 mounted on the electronic control device 10. It becomes possible to deal with the types of microcomputers. Thus, by preparing the rewriting programs WP1 and WP2 corresponding to the respective identification codes in the external tool T in advance, it is possible to flexibly cope with any microcomputer and adopt appropriate program rewriting. Will be done.

以上説明したように、この実施の形態に係る車両用電子制御装置およびその制御プログラムの書換え方法によれば、以下のような多くの優れた効果が得られるようになる。
(1)制御プログラムP1を書き換えるに際して、取得要求に応じて電子制御装置10にて取得される識別コードが同電子制御装置10と外部ツールTとの間で授受され、この識別コードの授受に基づいて外部ツールTから送られてくる書換え用のプログラムWP1を用いて制御プログラムP1の少なくとも一部(制御データも含む)を書き換える。こうした車両用電子制御装置およびその制御プログラムの書換え方法として、識別コードの取得が、外部ツールTから送られてくる識別コード取得プログラムP12の実行のもとに行われるようにした。これにより、対外部ツール転送用プログラムP11の変更や追加を伴うことなく、識別コードを用いて好適なプログラムの書換えを行うことができるようになる。
As described above, according to the vehicle electronic control device and the control program rewriting method thereof according to this embodiment, the following many excellent effects can be obtained.
(1) When the control program P1 is rewritten, an identification code acquired by the electronic control device 10 in response to an acquisition request is exchanged between the electronic control device 10 and the external tool T. Based on the exchange of the identification code Then, at least a part of the control program P1 (including control data) is rewritten using the rewriting program WP1 sent from the external tool T. As such a vehicular electronic control device and a method for rewriting the control program, the acquisition of the identification code is performed under the execution of the identification code acquisition program P12 sent from the external tool T. As a result, a suitable program can be rewritten using the identification code without changing or adding the external tool transfer program P11.

(2)当該電子制御装置10に搭載されるマイクロコンピュータM1の種類に最適な(ここでは専用の)書換え用プログラムを同識別コードに基づき、判別、選択し、また用意された書換え用プログラムの中に最適なものがなければ、すなわち識別コードが適正でなければそのプログラムの転送を中止するようにした。こうすることで、当該電子制御装置10に搭載されているマイクロコンピュータM1の種類に対応する書換え用プログラムが自動的に選択されるようになり、ひいてはその選択の信頼性が大きく高められるようになる。さらに、書換え用プログラムの転送中止をもって不正な書換えやデータ消去等が未然に防がれるようにもなる。   (2) Based on the identification code, a rewriting program optimal for the type of the microcomputer M1 installed in the electronic control device 10 is identified and selected, and the rewriting program prepared If there is no optimal one, that is, if the identification code is not proper, the transfer of the program is stopped. By doing so, the rewriting program corresponding to the type of the microcomputer M1 mounted on the electronic control device 10 is automatically selected, and as a result, the reliability of the selection is greatly enhanced. . In addition, when the transfer of the rewriting program is stopped, unauthorized rewriting and data erasure can be prevented in advance.

(3)またこの識別コードを、当該電子制御装置10に搭載されているマイクロコンピュータM1の種類を識別するものとしたことで、実用上特に重要な課題が解決されることになる。すなわち、この実施の形態に係る装置あるいは方法によれば、今実際に生じている問題、例えば書換え用プログラムの数(種類)が増えてくるとその管理が非常に複雑になる、あるいは作業者自身によって人為的に書換え用プログラムが選択されることにより信頼性に欠ける等といった問題が解消されることにもなる。   (3) Since this identification code identifies the type of the microcomputer M1 mounted on the electronic control device 10, a particularly important problem in practical use is solved. That is, according to the apparatus or method according to the present embodiment, the problem that is actually occurring, for example, when the number (type) of rewriting programs increases, the management becomes very complicated, or the operator himself Therefore, problems such as lack of reliability can be solved by artificially selecting a rewriting program.

(4)さらにこの識別コードを、識別コード取得プログラムP12の実行に基づき生成、取得されるものとした。これにより、予め記憶装置等に保管しておかなくとも、同識別コードを必要なときに取得することができるようになる。またこの識別コードは、例えばCPUに用意されたポートレベルを読み取ることで容易に生成することができる。   (4) Further, this identification code is generated and acquired based on the execution of the identification code acquisition program P12. As a result, the identification code can be acquired when necessary without being stored in a storage device or the like in advance. The identification code can be easily generated by reading the port level prepared in the CPU, for example.

(5)上記識別コード取得プログラムP12は、電子制御装置10から発行される認証キー(第1のキー)と外部ツールTにて発行される認証キー(第2のキー)とを照合して互いに合致していることを条件に外部ツールTから送られてくるようにした。このように、外部ツールTを通じて実行される制御プログラム(制御データも含む)P1の書換えに際して、外部ツールTによる電子制御装置10へのアクセスをより高いセキュリティレベルをもって許可するようにすることで、制御プログラムP1に対する不正な書換えは好適に予防されるようになる。   (5) The identification code acquisition program P12 collates the authentication key (first key) issued from the electronic control device 10 with the authentication key (second key) issued by the external tool T, and It was made to be sent from the external tool T on condition that they match. As described above, when the control program (including control data) P1 executed through the external tool T is rewritten, the access to the electronic control device 10 by the external tool T is permitted with a higher security level. Unauthorized rewriting of the program P1 is preferably prevented.

(第2の実施の形態)
次に、図4を併せ参照して、この発明に係る車両用電子制御装置およびその制御プログラムの書換え方法を具体化した第2の実施の形態について説明する。なおここでは、この第2の実施の形態に係る装置と先の第1の実施の形態の装置(図1)とを対比しつつ、主に両者の違いについて詳述する。
(Second Embodiment)
Next, with reference to FIG. 4, a second embodiment of the vehicle electronic control device and the control program rewriting method according to the present invention will be described. Here, the difference between the apparatus according to the second embodiment and the apparatus according to the first embodiment (FIG. 1) will be mainly described in detail.

まず、図4を参照しつつ、この実施の形態に係る車両用電子制御装置および外部ツールの構成の概略について説明する。なお、この図4に示す電子制御装置10は、先の第1の実施の形態の電子制御装置10(図1)である。また、この実施の形態に係る電子制御装置20は、基本的には、第1の実施の形態の電子制御装置10に準じた構成をもっているため、この図4には主に相違点を示す。   First, an outline of the configuration of the vehicle electronic control device and the external tool according to this embodiment will be described with reference to FIG. The electronic control device 10 shown in FIG. 4 is the electronic control device 10 (FIG. 1) of the first embodiment. The electronic control device 20 according to this embodiment basically has a configuration similar to that of the electronic control device 10 according to the first embodiment, and therefore FIG. 4 mainly shows the differences.

同図4に示すように、この電子制御装置20もマイクロコンピュータM2を有して構成されている。また、このマイクロコンピュータM2が、大きくは、図示しないCPU(中央処理装置)や不揮発性メモリ、さらには例えばRAMからなる作業用のメモリ22等を備えて構成されていることも第1の実施の形態の装置と同様である。すなわちここでも、上記不揮発性メモリには、車載装置(ここではエンジン)を制御するための制御プログラムや、対外部ツール転送用プログラム(インターフェース手段)等が格納されている。ただしこの実施の形態においては、これに加えてさらに、例えばマスクROM(リードオンリーメモリ)からなる不揮発性メモリ21が設けられている。そうして、この実施の形態に係る電子制御装置20は、この不揮発性メモリ21に記憶させるかたちで、自身に搭載されているマイクロコンピュータM2の種類に対応する書換え用プログラムの、特に書換えに係る具体的な処理内容を指示する部分である書換え用制御プログラムWP2aを保持している。   As shown in FIG. 4, the electronic control unit 20 also includes a microcomputer M2. Further, the microcomputer M2 is mainly configured to include a CPU (central processing unit) (not shown), a non-volatile memory, and a working memory 22 such as a RAM. It is the same as that of the apparatus of a form. That is, also in this case, the nonvolatile memory stores a control program for controlling the in-vehicle device (here, the engine), an external tool transfer program (interface means), and the like. However, in this embodiment, in addition to this, a nonvolatile memory 21 made of, for example, a mask ROM (read-only memory) is provided. Thus, the electronic control unit 20 according to this embodiment stores the data in the nonvolatile memory 21 and relates to the rewriting program corresponding to the type of the microcomputer M2 mounted on the electronic control device 20 itself. A rewrite control program WP2a, which is a part for instructing specific processing contents, is held.

一方、外部ツールTは、対象とする各電子制御装置(ここでは電子制御装置10および20)との間の通信を管理する制御プログラムTPや、複数種のプログラムからなるプログラムP等を、適宜の記憶装置(図示略)に保持している。ここで、プログラムPは、大きくは、
(a)識別コードを取得する際に用いられる識別コード取得プログラムP12。
(b)電子制御装置10に搭載されているマイクロコンピュータM1の種類に対応する書換え用プログラムの、特に書換えに係る具体的な処理内容を指示する部分である書換え用制御プログラムWP1a。
(c)電子制御装置10および20のいずれにおいても用いられる書換え用プログラムで、制御プログラムの書換えに際しては特にデータ通信に係る処理を担う書換え用共通通信プログラムWP3。
によって構成されている。そして、作業用メモリ(例えばRAM)に読み出されるときには、1つのメモリ領域(例えばFFFF0000〜FFFFFFFF)にこれらプログラムがひと続きになって読み出されるようになっている。またここでも、上記書換え用制御プログラムWP1aに対しては、電子制御装置10の識別コード(A)が関連付けされている。
On the other hand, the external tool T appropriately controls a control program TP for managing communication with each target electronic control device (in this case, the electronic control devices 10 and 20), a program P including a plurality of types of programs, and the like. It is held in a storage device (not shown). Here, the program P is roughly
(A) An identification code acquisition program P12 used when acquiring an identification code.
(B) A rewriting control program WP1a which is a part for instructing a specific processing content related to rewriting of the rewriting program corresponding to the type of the microcomputer M1 mounted on the electronic control unit 10.
(C) A rewriting common communication program WP3, which is a rewriting program used in both of the electronic control devices 10 and 20, and is particularly responsible for processing related to data communication when the control program is rewritten.
It is constituted by. Then, when the program is read out to the working memory (for example, RAM), these programs are continuously read into one memory area (for example, FFFF0000 to FFFFFFFF). Also in this case, the identification code (A) of the electronic control device 10 is associated with the rewrite control program WP1a.

次に、これら電子制御装置10および20、並びに外部ツールTによる制御プログラムの書換え方法の一態様について説明する。なお、先の第1の実施の形態と同様である部分についてはその説明を割愛する。   Next, an aspect of a rewriting method of the control program by the electronic control devices 10 and 20 and the external tool T will be described. Note that the description of the same parts as those in the first embodiment is omitted.

この実施の形態においても、識別コード取得プログラムP12は、電子制御装置10や電子制御装置20から発行される認証キーと外部ツールTにて発行される認証キーとを照合して互いに合致していることを条件に各電子制御装置へ送られるようになっている。すなわち、この実施の形態に係る電子制御装置20についてその制御プログラムの書換えを行う場合も、上記認証の後に、外部ツールTから当該電子制御装置20の作業用メモリ22の所定領域(ここでは領域FFFF0000〜FFFF3000)へ識別コード取得プログラムP12が送られることになる。そしてこの次に、同メモリ22へ書換え用のプログラムが格納されることも同様である。ただしここでは、書換え用制御プログラムWP2aが、外部ツールTからではなく、電子制御装置20が自ら備える不揮発性メモリ21から読み出されて(ダウンロードされて)、作業用メモリ22の所定領域(ここでは領域FFFF3000〜FFFF8000)へと格納される。   Also in this embodiment, the identification code acquisition program P12 matches the authentication key issued from the electronic control device 10 or the electronic control device 20 with the authentication key issued by the external tool T, and matches each other. This is sent to each electronic control unit on condition. That is, even when the control program of the electronic control device 20 according to this embodiment is rewritten, after the authentication, a predetermined region (here, region FFFF0000) of the work memory 22 of the electronic control device 20 is transmitted from the external tool T. To FFFF3000), the identification code acquisition program P12 is sent. Next, the rewriting program is stored in the memory 22 in the same manner. However, here, the rewrite control program WP2a is not read from the external tool T, but is read (downloaded) from the non-volatile memory 21 provided in the electronic control device 20, and a predetermined area (here, the work memory 22) Region FFFF3000 to FFFF8000).

そして次に、第1の実施の形態と同様、識別コード取得プログラムP12の実行のもとに取得された識別コード(ここではB)が電子制御装置20から外部ツールTへと送られる。ただしここでは、これを受け取った外部ツールTが、この識別コード(B)に基づくアドレスの指定によって、上記プログラムPの中から必要とする書換え用のプログラム、すなわち書換え用共通通信プログラムWP3を判別、選択する。具体的には、その識別コード(B)に割り当てられたアドレス、すなわち同プログラムWP3の記憶されている領域に対応するアドレス(ここではFFFF8000〜FFFFFFFF)を指定することによって、外部ツールTの作業用メモリ上に読み出されたプログラムPの中から書換え用共通通信プログラムWP3が選択される。   Next, as in the first embodiment, the identification code (B here) acquired under the execution of the identification code acquisition program P12 is sent from the electronic control unit 20 to the external tool T. However, here, the external tool T that has received this discriminates the rewriting program required from the program P, that is, the rewriting common communication program WP3, by designating the address based on the identification code (B). select. Specifically, by specifying the address assigned to the identification code (B), that is, the address corresponding to the area where the program WP3 is stored (in this case, FFFF8000 to FFFFFFFF), the work for the external tool T is performed. The rewriting common communication program WP3 is selected from the programs P read out on the memory.

そうして、この選択された書換え用共通通信プログラムWP3が作業用メモリ22へ送信されることにより、漸く制御部および通信部の両者が揃い、同作業用メモリ22上に1つの書換え用のプログラムが形成される。そして、これが同メモリ22上で実行されることにより、上記書換え用のプログラムWP2aおよびWP3の協働のもとに、この電子制御装置20に不揮発に保持されている制御プログラム(制御データも含む)の書換えが行われることになる。   Then, the selected rewrite common communication program WP3 is transmitted to the work memory 22, so that both the control unit and the communication unit are gradually gathered, and one rewrite program is stored in the work memory 22. Is formed. When this is executed on the memory 22, the control program (including control data) held in a non-volatile manner in the electronic control unit 20 in cooperation with the rewriting programs WP2a and WP3. Will be rewritten.

次に、同じ外部ツールTを用いて電子制御装置10の制御プログラムの書換えを行う場合について説明する。すなわちこの場合も、上記認証の後、外部ツールTから電子制御装置10の作業用メモリ12の所定領域(ここでは領域FFFF0000〜FFFF3000)へ識別コード取得プログラムP12が送られる。そして次に、同メモリ12へ書換え用のプログラムが格納されることになる。   Next, a case where the control program of the electronic control device 10 is rewritten using the same external tool T will be described. That is, also in this case, after the authentication, the identification code acquisition program P12 is sent from the external tool T to a predetermined area (here, the area FFFF0000 to FFFF3000) of the work memory 12 of the electronic control device 10. Next, a rewriting program is stored in the memory 12.

そしてこの場合も、電子制御装置10の識別コード(ここではA)を受け取った外部ツールTが、この識別コード(A)に基づくアドレスの指定によって、上記プログラムPの中から必要とする書換え用のプログラム、すなわち書換え用制御プログラムWP1aおよび書換え用共通通信プログラムWP3を判別、選択する。具体的には、その識別コード(A)に割り当てられたアドレス、すなわちそれらプログラムWP1aおよびWP3の記憶領域に対応するアドレス(ここではFFFF3000〜FFFFFFFF)を指定することによって、外部ツールTの作業用メモリ上に読み出されたプログラムPの中からそれらプログラムWP1aおよびWP3が選択される。そうして、これら書換え用のプログラムWP1aおよびWP3が作業用メモリ12上で実行されることにより、この電子制御装置10に不揮発に保持されている制御プログラム(制御データも含む)の書換えが行われることになる。   In this case as well, the external tool T that has received the identification code (A in this case) of the electronic control device 10 uses the rewriting required from the program P by designating an address based on the identification code (A). The programs, that is, the rewrite control program WP1a and the rewrite common communication program WP3 are discriminated and selected. Specifically, by specifying the address assigned to the identification code (A), that is, the address corresponding to the storage area of the programs WP1a and WP3 (here, FFFF3000 to FFFFFFFF), the working memory of the external tool T The programs WP1a and WP3 are selected from the programs P read out above. Then, when these rewriting programs WP1a and WP3 are executed on the work memory 12, the control program (including control data) held in the electronic control unit 10 in a nonvolatile manner is rewritten. It will be.

このように、この実施の形態においては、識別コードの取得が、外部ツールTから送られてくる識別コード取得プログラムP12の実行のもとに行われることに加え、さらに、外部ツールTから送られてくる書換え用のプログラムWP3とは別の書換え用のプログラムWP2aを当該電子制御装置20に用意した。そうして、当該電子制御装置20に不揮発に保持されている制御プログラムの書換えを、これら書換え用のプログラムWP2aおよびWP3の協働のもとに行うようにした。これにより、外部ツールTに電子制御装置20の書換え用制御プログラムWP2aを用意する必要はなくなり、同外部ツールTにおける記憶領域の確保が容易になるとともに、同外部ツールTに保持される各種プログラムの構成の簡素化が図られるようになる。また、外部ツールTから送られてくる書換え用のプログラムを、制御プログラムの書換えに際して特にデータ通信に係る処理を担う書換え用共通通信プログラムWP3にしたことにより、こうして外部ツールTにおける記憶領域の確保を容易としながらも、複数種の電子制御装置(ここでは電子制御装置10および20)に対応することが可能となる。   Thus, in this embodiment, the acquisition of the identification code is performed under the execution of the identification code acquisition program P12 sent from the external tool T, and further sent from the external tool T. A rewriting program WP2a different from the incoming rewriting program WP3 is prepared in the electronic control unit 20. Thus, rewriting of the control program held in the electronic control unit 20 in a nonvolatile manner is performed in cooperation with these rewriting programs WP2a and WP3. As a result, it is not necessary to prepare the rewrite control program WP2a for the electronic control device 20 in the external tool T, it becomes easy to secure a storage area in the external tool T, and various programs held in the external tool T The structure can be simplified. In addition, the rewriting program sent from the external tool T is changed to the rewriting common communication program WP3 which is particularly responsible for processing related to data communication when the control program is rewritten, thus ensuring the storage area in the external tool T. Although easy, it is possible to cope with a plurality of types of electronic control devices (in this case, the electronic control devices 10 and 20).

以上説明したように、この実施の形態に係る車両用電子制御装置およびその制御プログラムの書換え方法によれば、第1の実施の形態による前記(1)〜(5)の効果と同様の効果もしくはそれに準じた効果に加え、さらに次のような効果も得られるようになる。   As described above, according to the vehicle electronic control device and the control program rewriting method thereof according to this embodiment, the same effects as the effects (1) to (5) according to the first embodiment or In addition to the similar effects, the following effects can be obtained.

(6)車両用電子制御装置およびその制御プログラムの書換え方法として、上記識別コードを、外部ツールTに設けられた記憶装置(ここでは作業用メモリ)のアドレス指定をもって、同記憶装置に読み出された複数種のプログラム(プログラムP)の中から必要とする書換え用のプログラムを判別、選択するものとした。これにより、同一の記憶装置(ここでは作業用メモリ)に記憶されている複数種のプログラムの中から、当該プログラムの書換え(修正や更新)に必要とされる書換え用プログラムが自動的に判別、選択されるようになる。このため、多様な機種をもつ車両用電子制御装置(ここでは特にマイクロコンピュータの種類)にあっても、外部ツールTに複数種のプログラム(ここでいうプログラムP)を用意することによってそれら電子制御装置に柔軟に対応することが可能になり、ひいては当該プログラムの書換えがその対象とする機種に適したかたちで行われるようになる。   (6) As a method for rewriting the vehicle electronic control device and its control program, the identification code is read into the storage device with the address designation of the storage device (working memory here) provided in the external tool T. In addition, a necessary rewriting program is identified and selected from a plurality of types of programs (program P). As a result, a rewriting program required for rewriting (correcting or updating) the program is automatically determined from a plurality of types of programs stored in the same storage device (working memory here). Will be selected. For this reason, even if there are various types of vehicle electronic control devices (in particular, the type of microcomputer in this case), by preparing a plurality of types of programs (here, program P) in the external tool T, these electronic controls It becomes possible to flexibly cope with the apparatus, and as a result, rewriting of the program is performed in a form suitable for the target model.

(7)外部ツールTから送られてくる書換え用のプログラムWP3とは別の書換え用のプログラムWP2aをさらに当該電子制御装置20に用意し、同電子制御装置20に不揮発に保持されている制御プログラムの書換えを、これら書換え用のプログラムWP2aおよびWP3の協働のもとに行うようにした。これにより、外部ツールT側に用意しておくべき書換え用プログラムの情報量(データ量)が少なくて済むようになり、同外部ツールTにおける記憶領域の確保が容易になるとともに、同外部ツールTに保持される各種プログラムの構成の簡素化が図られるようになる。   (7) A rewriting program WP2a different from the rewriting program WP3 sent from the external tool T is further prepared in the electronic control device 20, and the control program held in the electronic control device 20 in a nonvolatile manner Is rewritten in cooperation with these rewriting programs WP2a and WP3. As a result, the amount of information (data amount) of the rewriting program to be prepared on the external tool T side can be reduced, the storage area in the external tool T can be easily secured, and the external tool T The configuration of various programs held in the program can be simplified.

(8)さらにここで、外部ツールTから送られてくる書換え用のプログラムを、制御プログラムの書換えに際して特にデータ通信に係る処理を担う書換え用共通通信プログラムWP3とした。これにより、複数種の電子制御装置(ここでは電子制御装置10および20)に対応することを可能としながらも、電子制御装置20の書換え用制御プログラムWP2aの分だけ外部ツールTの記憶領域を空けて同外部ツールTにおける記憶領域(未使用領域)の拡大を図ることができるようになる。   (8) Further, here, the rewriting program sent from the external tool T is a rewriting common communication program WP3 which is particularly responsible for processing related to data communication when the control program is rewritten. As a result, it is possible to deal with a plurality of types of electronic control devices (here, the electronic control devices 10 and 20), but the storage area of the external tool T is freed up by the rewrite control program WP2a of the electronic control device 20. Thus, the storage area (unused area) in the external tool T can be expanded.

(9)またこのとき、外部ツールTに設けられた記憶装置(ここでは作業用メモリ)には、制御プログラムの書換えに際して特にデータ通信に係る処理を担う書換え用共通通信プログラムWP3と、制御プログラムの書換えに際して当該書換えに係る具体的な処理内容を指示する書換え用制御プログラムWP1aとを読み出しておく。そうして、識別コード(AまたはB)によるアドレス指定をもって、書換え用のプログラムとしてこれら2種類のプログラムのうちのいずれか1つもしくは両方が選択されるようにした。具体的には、電子制御装置10に対応する識別コード(A)のときは、これら書換え用制御プログラムWP1aおよび書換え用共通通信プログラムWP3の両方が、また電子制御装置20に対応する識別コード(B)のときは書換え用共通通信プログラムWP3だけが選択されるようにした。これにより、対象とする装置が識別コードによって判別され、同コードに基づくアドレス指定をもって、対象とする各装置に適した書換え用のプログラムが選択されるようになる。すなわち、作業用メモリ22に書換え用制御プログラムWP2aをダウンロードして同メモリ22上でこれを実行する機能を備える電子制御装置20であっても、またこうした機能をもたない電子制御装置10であっても、これら対象とする各装置へ適切な書換え用プログラムが提供されるようになる。   (9) At this time, the storage device (in this case, the working memory) provided in the external tool T includes a rewrite common communication program WP3 that is particularly responsible for processing related to data communication when the control program is rewritten, and the control program At the time of rewriting, a rewriting control program WP1a for instructing specific processing contents related to the rewriting is read out. Thus, one or both of these two types of programs are selected as the rewriting program by addressing with the identification code (A or B). Specifically, in the case of the identification code (A) corresponding to the electronic control device 10, both the rewrite control program WP1a and the rewrite common communication program WP3 are also identified by the identification code (B ), Only the rewrite common communication program WP3 is selected. As a result, the target device is determined by the identification code, and a rewriting program suitable for each target device is selected by addressing based on the code. That is, even if the electronic control device 20 has a function of downloading the rewrite control program WP2a to the working memory 22 and executing it on the memory 22, the electronic control device 10 does not have such a function. However, an appropriate rewriting program is provided to each of these target devices.

(他の実施の形態)
なお、上記各実施の形態は、以下の態様をもって実施することもできる。
・上記第2の実施の形態においては、外部ツールTの作業用メモリにプログラムPを読み出してから同メモリ上のアドレスを指定することによってこのプログラムPの中から必要とする書換え用のプログラムを判別、選択するようにした。しかしながら、このアドレス指定が作業用のメモリ上で行われることは必須ではなく、例えば他の記憶装置(ハードディスク等)に記憶されている状態でこのアドレスの指定が行われる構成もしくは方法であっても、前記(6)の効果と同様の効果もしくはそれに準じた効果は得られるようになる。
(Other embodiments)
In addition, each said embodiment can also be implemented with the following aspects.
In the second embodiment, the program P is read from the working memory of the external tool T and then an address on the memory is designated to determine a rewriting program required from the program P. , So that you can choose. However, it is not essential that this address designation is performed on the working memory. For example, even in a configuration or method in which this address designation is performed in a state where it is stored in another storage device (hard disk or the like). Thus, an effect similar to or equivalent to the effect of (6) can be obtained.

・上記各実施の形態では、電子制御装置10もしくは20から発行される認証キーと外部ツールTにて発行される認証キーとを照合して互いに合致していることを条件に、上記識別コード取得プログラムP12が外部ツールTから送られてくるようにした。しかしながら、これは必須ではなく、セキュリティレベルが十分に確保されれば、こうした照合を行う必要はない。   In each of the above embodiments, the identification code is acquired on the condition that the authentication key issued from the electronic control device 10 or 20 and the authentication key issued by the external tool T are matched with each other. The program P12 is sent from the external tool T. However, this is not essential and there is no need to perform such verification if the security level is sufficiently secured.

・上記各実施の形態では、識別コードを、識別コード取得プログラムP12の実行に基づき生成、取得されるものとした。しかしながらこれも必須ではなく、例えば図5に例示した装置のように、この識別コードを適宜の記憶装置(記憶手段)に格納しておき、上記識別コード取得プログラムP12の実行に基づきその記憶装置から同コードが読み出される構成あるいは方法としてもよい。   In each of the above embodiments, the identification code is generated and acquired based on the execution of the identification code acquisition program P12. However, this is not essential. For example, as in the apparatus illustrated in FIG. 5, this identification code is stored in an appropriate storage device (storage means), and from the storage device based on the execution of the identification code acquisition program P12. A configuration or a method for reading out the code may be used.

・上記各実施の形態では、対象とする電子制御装置に搭載されているマイクロコンピュータの種類を識別する識別コードを採用し、そのマイクロコンピュータの種類に最適な書換え用プログラムを同コードに基づき判別、選択し、また外部ツールに用意された書換え用プログラムの中に最適なものがなければそのプログラムの転送を中止するようにした。しかしながら、これを適宜に変更した場合も前記(2)の効果に準じた効果は得られるようになる。例えば、外部ツールに用意されている複数種の書換え用のプログラムのうちに必要とする書換え用のプログラムを判別する識別コードを用いるようにすれば、少なくとも電子制御装置に搭載されているマイクロコンピュータの種類に対応する書換え用プログラムが自動的に選択されるようになり、その選択の信頼性は高められるようになる。また、識別コードが適正であることを条件に必要とする書換え用のプログラムが外部ツールから送られてくるようにすれば、少なくとも同識別コードに基づき正しくない書換え用プログラムの転送を中止することは可能になり、不正な書換えやデータ消去等を未然に防ぐことができるようになる。   In each of the above embodiments, an identification code for identifying the type of microcomputer mounted on the target electronic control device is adopted, and an optimum rewriting program for the type of microcomputer is determined based on the code. If there is no optimal rewriting program prepared in the external tool, transfer of the program is stopped. However, even when this is changed as appropriate, an effect according to the effect (2) can be obtained. For example, if an identification code for identifying a necessary rewriting program among a plurality of types of rewriting programs prepared in an external tool is used, at least the microcomputer mounted in the electronic control unit The rewriting program corresponding to the type is automatically selected, and the reliability of the selection is improved. Also, if a rewriting program that is required on condition that the identification code is correct is sent from an external tool, at least the transfer of the incorrect rewriting program based on the identification code cannot be stopped. This makes it possible to prevent unauthorized rewriting and data erasure.

・上記各実施の形態では、識別コードとして、対象とする電子制御装置に搭載されているマイクロコンピュータの種類を識別するものを採用した。しかしこれも必須ではなく、この識別コードは当該車両用電子制御装置に係るものであれば何を識別するものであってもよく、その範囲でこの発明は同様に適用することができる。   In each of the above embodiments, an identification code that identifies the type of microcomputer mounted on the target electronic control device is employed. However, this is not essential, and this identification code may identify anything as long as it relates to the vehicle electronic control device, and the present invention can be similarly applied within that range.

・上記各実施の形態において、制御プログラムを格納する不揮発性メモリ(例えば不揮発性メモリ11)の種類は任意であり、例えばマスクROM等も適宜採用することができる。要するに制御プログラムを不揮発に保持する電子制御装置であれば、この発明は同様に適用することができる。   In each of the above embodiments, the type of the nonvolatile memory (for example, the nonvolatile memory 11) for storing the control program is arbitrary, and for example, a mask ROM or the like can be appropriately employed. In short, the present invention can be similarly applied to any electronic control device that holds the control program in a nonvolatile manner.

・結局のところ、識別コードの取得が、外部ツールから送られてくる識別コード取得プログラムの実行のもとに行われる構成あるいは方法とすることで、識別コードを用いてプログラムの書換えを行う場合であれ、対外部ツール転送用プログラムの変更や追加を伴うことなく好適なプログラムの書換えを行うという所期の目的は達成されることになる。   ・ After all, when the ID code is acquired using a configuration or method that is executed under the execution of the ID code acquisition program sent from an external tool, the program is rewritten using the ID code. Anyway, the intended purpose of rewriting a suitable program without changing or adding the external tool transfer program will be achieved.

この発明に係る車両用電子制御装置およびその制御プログラムの書換え方法の第1の実施の形態について、当該車両用電子制御装置およびその制御プログラムの書換えに際して用いられる外部ツールの構成の概略を模式的に示すブロック図。About the first embodiment of the vehicle electronic control device and the control program rewriting method thereof according to the present invention, the outline of the configuration of the external electronic tool used for rewriting the vehicle electronic control device and the control program is schematically shown. FIG. 同実施の形態に係る制御プログラムの書換え方法について、上記車両用電子制御装置の処理手順を示すフローチャート。The flowchart which shows the process sequence of the said vehicle electronic control apparatus about the rewriting method of the control program which concerns on the embodiment. 同実施の形態に係る制御プログラムの書換え方法について、上記外部ツールの処理手順を示すフローチャート。The flowchart which shows the process sequence of the said external tool about the rewriting method of the control program which concerns on the embodiment. この発明に係る車両用電子制御装置およびその制御プログラムの書換え方法の第2の実施の形態について、当該車両用電子制御装置およびその制御プログラムの書換えに際して用いられる外部ツールの構成の概略を模式的に示すブロック図。About the second embodiment of the vehicular electronic control device and its control program rewriting method according to the present invention, the outline of the configuration of the external electronic tool used for rewriting the vehicular electronic control device and its control program is schematically shown. FIG. 従来の車両用電子制御装置およびその制御プログラムの書換え方法の一例について、当該車両用電子制御装置およびその制御プログラムの書換えに際して用いられる外部ツールの構成の概略を模式的に示すブロック図。The block diagram which shows typically the outline of a structure of the external tool used at the time of rewriting of the said electronic control apparatus for vehicles, and its control program about an example of the rewriting method of the conventional electronic control apparatus for vehicles and its control program.

符号の説明Explanation of symbols

10、20…電子制御装置(車両用電子制御装置)、11、21…不揮発性メモリ、12、22…メモリ(作業用メモリ)、M1、M2…マイクロコンピュータ、T…外部ツール。   DESCRIPTION OF SYMBOLS 10, 20 ... Electronic control apparatus (electronic control apparatus for vehicles), 11, 21 ... Nonvolatile memory, 12, 22 ... Memory (working memory), M1, M2 ... Microcomputer, T ... External tool.

Claims (21)

車載装置を制御するための制御プログラムを不揮発に保持し、同制御プログラムの書換えに際しては、取得要求に応じて当該電子制御装置に係る識別コードを取得し、該取得される識別コードの授受に基づいて外部ツールから送られてくる書換え用のプログラムを用いて前記制御プログラムの少なくとも一部を書き換える車両用電子制御装置において、
前記識別コードの取得が、前記外部ツールから送られてくる識別コード取得プログラムの実行のもとに行われる
ことを特徴とする車両用電子制御装置。
A control program for controlling the in-vehicle device is held in a nonvolatile manner, and upon rewriting the control program, an identification code related to the electronic control device is acquired in response to an acquisition request, and the acquired identification code is exchanged In the vehicle electronic control device for rewriting at least a part of the control program using a rewriting program sent from an external tool
The vehicle electronic control device, wherein the identification code is acquired under execution of an identification code acquisition program sent from the external tool.
前記書換え用のプログラムは、前記識別コードが適正であることを条件に前記外部ツールから送られてくる
請求項1に記載の車両用電子制御装置。
The vehicle electronic control device according to claim 1, wherein the rewriting program is sent from the external tool on condition that the identification code is proper.
前記識別コードは、前記外部ツールに用意されている複数種の書換え用のプログラムのうちに、必要とする前記書換え用のプログラムを判別するものである
請求項1に記載の車両用電子制御装置。
The vehicle electronic control device according to claim 1, wherein the identification code is used to determine a necessary rewriting program among a plurality of types of rewriting programs prepared in the external tool.
前記識別コードは、前記外部ツールに設けられた記憶装置のアドレス指定をもって、同記憶装置に記憶されている複数種のプログラムの中から必要とする前記書換え用のプログラムを判別、選択するものである
請求項1に記載の車両用電子制御装置。
The identification code is for identifying and selecting the rewriting program required from among a plurality of types of programs stored in the storage device by addressing the storage device provided in the external tool. The vehicle electronic control device according to claim 1.
請求項4に記載の車両用電子制御装置において、
前記外部ツールから送られてくる書換え用のプログラムとは別の書換え用のプログラムをさらに不揮発に保持し、前記制御プログラムの書換えを、これら書換え用のプログラムの協働のもとに行う
ことを特徴とする車両用電子制御装置。
In the vehicle electronic control device according to claim 4,
A rewriting program different from the rewriting program sent from the external tool is further held in a non-volatile manner, and the control program is rewritten in cooperation with these rewriting programs. An electronic control device for a vehicle.
前記外部ツールから送られてくる書換え用のプログラムは、前記制御プログラムの書換えに際して特にデータ通信に係る処理を担うものである
請求項5に記載の車両用電子制御装置。
The vehicular electronic control device according to claim 5, wherein the rewriting program sent from the external tool is responsible for processing related to data communication especially when the control program is rewritten.
前記識別コードは、前記識別コード取得プログラムの実行に基づき生成、取得される
請求項1〜6のいずれか一項に記載の車両用電子制御装置。
The vehicular electronic control device according to claim 1, wherein the identification code is generated and acquired based on execution of the identification code acquisition program.
前記識別コードは適宜の記憶手段に記憶されるかたちで当該電子制御装置に保持され、前記識別コードの取得は、前記識別コード取得プログラムの実行に基づき前記記憶手段から同識別コードが読み出されるかたちで行われる
請求項1〜6のいずれか一項に記載の車両用電子制御装置。
The identification code is stored in the electronic control device in the form of being stored in an appropriate storage means, and the identification code is acquired by reading the identification code from the storage means based on the execution of the identification code acquisition program. The electronic control device for vehicles according to any one of claims 1 to 6.
前記識別コードは、当該電子制御装置に搭載されているマイクロコンピュータの種類を識別するものである
請求項1〜8のいずれか一項に記載の車両用電子制御装置。
The vehicular electronic control device according to any one of claims 1 to 8, wherein the identification code identifies a type of a microcomputer mounted on the electronic control device.
前記識別コード取得プログラムは、当該電子制御装置から発行される認証キーと前記外部ツールにて発行される認証キーとを照合して互いに合致していることを条件に前記外部ツールから送られてくる
請求項1〜9のいずれか一項に記載の車両用電子制御装置。
The identification code acquisition program is sent from the external tool on condition that the authentication key issued from the electronic control unit and the authentication key issued by the external tool are matched and matched. The electronic control apparatus for vehicles as described in any one of Claims 1-9.
車両用電子制御装置に不揮発に記憶保持されている車載装置の制御プログラムを書き換えるに際して、取得要求に応じて前記車両用電子制御装置にて取得される当該電子制御装置に係る識別コードが同電子制御装置と外部ツールとの間で授受され、この識別コードの授受に基づいて前記外部ツールから送られてくる書換え用のプログラムを用いて前記制御プログラムの少なくとも一部を書き換える制御プログラムの書換え方法において、
前記識別コードの取得が、前記外部ツールから送られてくる識別コード取得プログラムの実行のもとに行われる
ことを特徴とする制御プログラムの書換え方法。
When rewriting an in-vehicle device control program stored in a nonvolatile manner in a vehicle electronic control device, an identification code related to the electronic control device acquired by the vehicle electronic control device in response to an acquisition request is In a control program rewriting method for rewriting at least part of the control program using a rewriting program sent and received between the apparatus and an external tool and sent from the external tool based on the exchange of the identification code,
The method for rewriting a control program, wherein the acquisition of the identification code is performed under the execution of an identification code acquisition program sent from the external tool.
前記書換え用のプログラムは、前記識別コードが適正であることを条件に前記外部ツールから送られてくる
請求項11に記載の制御プログラムの書換え方法。
The control program rewriting method according to claim 11, wherein the rewriting program is sent from the external tool on condition that the identification code is appropriate.
前記識別コードは、前記外部ツールに用意されている複数種の書換え用のプログラムのうちに、必要とする前記書換え用のプログラムを判別するものである
請求項11に記載の制御プログラムの書換え方法。
The control program rewriting method according to claim 11, wherein the identification code is used to determine a necessary rewriting program among a plurality of types of rewriting programs prepared in the external tool.
前記識別コードは、前記外部ツールに設けられた記憶装置のアドレス指定をもって、同記憶装置に記憶されている複数種のプログラムの中から必要とする前記書換え用のプログラムを判別、選択するものである
請求項11に記載の制御プログラムの書換え方法。
The identification code is for identifying and selecting the rewriting program required from among a plurality of types of programs stored in the storage device by addressing the storage device provided in the external tool. The method for rewriting a control program according to claim 11.
請求項14に記載の制御プログラムの書換え方法において、
前記外部ツールから送られてくる書換え用のプログラムとは別の書換え用のプログラムをさらに前記電子制御装置に用意し、前記制御プログラムの書換えを、これら書換え用のプログラムの協働のもとに行う
ことを特徴とする制御プログラムの書換え方法。
In the rewriting method of the control program according to claim 14,
A rewriting program different from the rewriting program sent from the external tool is further prepared in the electronic control unit, and the control program is rewritten in cooperation with these rewriting programs. A method for rewriting a control program.
前記外部ツールから送られてくる書換え用のプログラムは、前記制御プログラムの書換えに際して特にデータ通信に係る処理を担うものである
請求項15に記載の制御プログラムの書換え方法。
The rewrite program for a control program according to claim 15, wherein the rewrite program sent from the external tool is responsible for processing related to data communication in particular when the control program is rewritten.
前記外部ツールに設けられた記憶装置には、前記制御プログラムの書換えに際して特にデータ通信に係る処理を担うプログラムと、前記制御プログラムの書換えに際して当該書換えに係る具体的な処理内容を指示するプログラムとが格納され、前記識別コードによるアドレス指定をもって、前記必要とする書換え用のプログラムとしてこれら2種類のプログラムのうちのいずれか1つもしくは両方が選択される
請求項16に記載の制御プログラムの書換え方法。
In the storage device provided in the external tool, there are a program that is particularly responsible for processing related to data communication when the control program is rewritten, and a program that instructs specific processing contents related to the rewriting when the control program is rewritten. The control program rewriting method according to claim 16, wherein one or both of the two types of programs are selected as the necessary rewriting program by storing and specifying the address by the identification code.
前記識別コードは、前記識別コード取得プログラムの実行に基づき生成、取得される
請求項11〜17のいずれか一項に記載の制御プログラムの書換え方法。
The control program rewriting method according to any one of claims 11 to 17, wherein the identification code is generated and acquired based on execution of the identification code acquisition program.
前記識別コードは適宜の記憶手段に記憶されるかたちで前記電子制御装置に保持され、前記識別コードの取得は、前記識別コード取得プログラムの実行に基づき前記記憶手段から同識別コードが読み出されるかたちで行われる
請求項11〜17のいずれか一項に記載の制御プログラムの書換え方法。
The identification code is stored in the electronic control device in a form stored in an appropriate storage means, and the identification code is acquired by reading the identification code from the storage means based on execution of the identification code acquisition program. A method for rewriting a control program according to any one of claims 11 to 17.
前記識別コードは、前記電子制御装置に搭載されているマイクロコンピュータの種類を識別するものである
請求項11〜19のいずれか一項に記載の制御プログラムの書換え方法。
The method for rewriting a control program according to any one of claims 11 to 19, wherein the identification code identifies a type of a microcomputer mounted on the electronic control device.
前記識別コード取得プログラムは、前記電子制御装置から発行される認証キーと前記外部ツールにて発行される認証キーとを照合して互いに合致していることを条件に前記外部ツールから送られてくる
請求項11〜20のいずれか一項に記載の制御プログラムの書換え方法。
The identification code acquisition program is sent from the external tool on condition that the authentication key issued from the electronic control unit and the authentication key issued by the external tool are matched and matched. The rewriting method of the control program as described in any one of Claims 11-20.
JP2005032032A 2005-02-08 2005-02-08 Electronic control device for vehicle and rewriting method of control program Pending JP2006221274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005032032A JP2006221274A (en) 2005-02-08 2005-02-08 Electronic control device for vehicle and rewriting method of control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005032032A JP2006221274A (en) 2005-02-08 2005-02-08 Electronic control device for vehicle and rewriting method of control program

Publications (1)

Publication Number Publication Date
JP2006221274A true JP2006221274A (en) 2006-08-24

Family

ID=36983586

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005032032A Pending JP2006221274A (en) 2005-02-08 2005-02-08 Electronic control device for vehicle and rewriting method of control program

Country Status (1)

Country Link
JP (1) JP2006221274A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008155892A (en) * 2006-12-26 2008-07-10 Auto Network Gijutsu Kenkyusho:Kk Vehicular power supply system
JP2012059099A (en) * 2010-09-10 2012-03-22 Denso Corp Information processor
JP2014016737A (en) * 2012-07-06 2014-01-30 Keihin Corp Electronic controller and data rewriting system
JP2014124978A (en) * 2012-12-25 2014-07-07 Honda Motor Co Ltd Data writing method, and data writing unit
JP2017146655A (en) * 2016-02-15 2017-08-24 株式会社デンソー Vehicle data communicating system
CN111226211A (en) * 2017-10-19 2020-06-02 罗伯特·博世有限公司 Security system for an electronic device of a vehicle, electronic device, vehicle, method
JP2020154438A (en) * 2019-03-18 2020-09-24 日立オートモティブシステムズ株式会社 Electronic control device and method of setting control data
JP2020198014A (en) * 2019-06-05 2020-12-10 富士電機株式会社 Apparatus, data generation program, and data generation method
JP2022078261A (en) * 2018-06-25 2022-05-24 日本精機株式会社 Display apparatus for vehicle

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09134307A (en) * 1995-11-13 1997-05-20 Denso Corp Memory rewriting system for electronic controller, the electronic controller and memory rewriting device
JP2001229014A (en) * 2000-02-17 2001-08-24 Denso Corp Non-volatile memory rewriting device
JP2001337835A (en) * 2000-05-25 2001-12-07 Hitachi Ltd Method for renewing program of control program built-in device and control program built-in device
JP2004029876A (en) * 2002-06-21 2004-01-29 Seiko Epson Corp Image forming apparatus, information processing system, method for rewriting firmware, rewriting program, and recording medium
JP2004295270A (en) * 2003-02-03 2004-10-21 Hitachi Ltd Shared storage system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09134307A (en) * 1995-11-13 1997-05-20 Denso Corp Memory rewriting system for electronic controller, the electronic controller and memory rewriting device
JP2001229014A (en) * 2000-02-17 2001-08-24 Denso Corp Non-volatile memory rewriting device
JP2001337835A (en) * 2000-05-25 2001-12-07 Hitachi Ltd Method for renewing program of control program built-in device and control program built-in device
JP2004029876A (en) * 2002-06-21 2004-01-29 Seiko Epson Corp Image forming apparatus, information processing system, method for rewriting firmware, rewriting program, and recording medium
JP2004295270A (en) * 2003-02-03 2004-10-21 Hitachi Ltd Shared storage system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008155892A (en) * 2006-12-26 2008-07-10 Auto Network Gijutsu Kenkyusho:Kk Vehicular power supply system
JP2012059099A (en) * 2010-09-10 2012-03-22 Denso Corp Information processor
JP2014016737A (en) * 2012-07-06 2014-01-30 Keihin Corp Electronic controller and data rewriting system
US9400743B2 (en) 2012-07-06 2016-07-26 Keihin Corporation Electronic control apparatus and data rewriting system
JP2014124978A (en) * 2012-12-25 2014-07-07 Honda Motor Co Ltd Data writing method, and data writing unit
JP2017146655A (en) * 2016-02-15 2017-08-24 株式会社デンソー Vehicle data communicating system
CN111226211A (en) * 2017-10-19 2020-06-02 罗伯特·博世有限公司 Security system for an electronic device of a vehicle, electronic device, vehicle, method
CN111226211B (en) * 2017-10-19 2023-08-15 罗伯特·博世有限公司 Security system for electronic device of vehicle, electronic device, vehicle and method
JP2022078261A (en) * 2018-06-25 2022-05-24 日本精機株式会社 Display apparatus for vehicle
JP7256976B2 (en) 2018-06-25 2023-04-13 日本精機株式会社 vehicle display
JP2020154438A (en) * 2019-03-18 2020-09-24 日立オートモティブシステムズ株式会社 Electronic control device and method of setting control data
JP7128763B2 (en) 2019-03-18 2022-08-31 日立Astemo株式会社 Electronic control unit and control data setting method
JP2020198014A (en) * 2019-06-05 2020-12-10 富士電機株式会社 Apparatus, data generation program, and data generation method
JP7367346B2 (en) 2019-06-05 2023-10-24 富士電機株式会社 Equipment, data generation program, and data generation method

Similar Documents

Publication Publication Date Title
JP2006221274A (en) Electronic control device for vehicle and rewriting method of control program
JP6185772B2 (en) Information processing apparatus, control method thereof, and program
US6285948B1 (en) Control apparatus and method having program rewriting function
JP3838840B2 (en) Computer
CN113873498A (en) Server, management method, non-temporary storage medium, software updating device, center, and over-the-air host
JP2003256228A (en) Program rewriting device
CN106919859B (en) Basic input output system protection method and device
JP4557042B2 (en) Electronic control device and vehicle control system
JP2009053901A (en) Printer
CN113127011A (en) Electronic device and operation method of electronic device
JP4784100B2 (en) Processing device and firmware download method thereof.
JP2009123226A (en) Operation system of vehicle mounting control apparatus, and vehicle mounting control apparatus
JP2018160207A (en) On-vehicle controller and program update software
KR101601751B1 (en) Ecu of vehicle and boot software re-programming method thereof
CN114385202A (en) Server, software update system, distribution method, and non-temporary storage medium
JP3835969B2 (en) Rewriting system for vehicle control device
JP2002070636A (en) On-vehicle electronic controller, data rewrite system, data rewrite method, and storage medium
JP2016126699A (en) Electronic control unit for vehicle
CN116431186A (en) Upgrading method, device and medium of vehicle-mounted ECU
JP6935694B2 (en) Electronic control device
JP4229896B2 (en) Rewritable nonvolatile memory, electronic device, rewriteable nonvolatile memory rewrite method, and rewrite program
JP2001256118A (en) Method for protecting microcomputer system, memory device and microcomputer system
JP4534731B2 (en) Electronic control device and identification code generation method thereof
EP1079340A2 (en) Integrated circuit card protected from unauthorized access
CN111796839B (en) Controller program management method and device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070328

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100402

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100713

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100910

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101019

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110301