[go: up one dir, main page]

JP3648747B2 - Automotive control device - Google Patents

Automotive control device Download PDF

Info

Publication number
JP3648747B2
JP3648747B2 JP03152192A JP3152192A JP3648747B2 JP 3648747 B2 JP3648747 B2 JP 3648747B2 JP 03152192 A JP03152192 A JP 03152192A JP 3152192 A JP3152192 A JP 3152192A JP 3648747 B2 JP3648747 B2 JP 3648747B2
Authority
JP
Japan
Prior art keywords
control
data
control device
rewriting
rewrite
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP03152192A
Other languages
Japanese (ja)
Other versions
JPH05195859A (en
Inventor
良文 尾関
稔 穂塚
昭雄 小林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP03152192A priority Critical patent/JP3648747B2/en
Publication of JPH05195859A publication Critical patent/JPH05195859A/en
Application granted granted Critical
Publication of JP3648747B2 publication Critical patent/JP3648747B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)
  • Selective Calling Equipment (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、コンピュータシステムを用いた自動車用制御装置の機能を容易に向上させることができる装置に関する。
【0002】
【従来の技術】
近年、各種の自動車用制御装置、例えば、エンジン系統、ブレーキ系統、空調系統等の制御のためにマイクロコンピュータが用いられるようになってきている。そして、これらのマイクロコンピュータは自動車内のLANで接続されて相互に各機能を補完し合っている。
【0003】
【発明が解決しようとする課題】
上記の各種の自動車用制御装置では、各種アクチュエータを制御するための制御プログラム、制御データ等はマスクROMに記憶されている。自動車用制御装置では、その装置が開発されて工場で新車に搭載された後も、なお、機能向上のために、制御プログラムの改良、制御データの変更等が行われる。
【0004】
しかし、制御プログラムの改版が行われた場合にその制御プログラムを既に販売された自動車において利用するためには、制御プログラムはマスクROMに記憶されているため、自動車用制御装置自体を交換する必要があった。
この結果、既に販売された自動車において、制御装置の機能を向上させることは現実には不可能であった。
【0005】
本発明は、上記の課題を解決するために成されたものであり、その目的とするところは、コンピュータシステムの自動車用制御装置において、その装置の機能向上を容易に実行することである。
【0006】
【課題を解決するための手段】
記課題を解決するための第1の発明の構成は、中央処理装置を有し記憶装置に記憶された制御プログラム及び制御データに基づいて自動車に搭載された各種装置を制御する制御装置を複数備え、各制御装置がローカルエリアネットワークを介して接続され、各制御装置が相互にデータ通信を行う自動車用制御装置において、複数の制御装置の一つとして、空間電波を受信し、前記ローカルエリアネットワークに接続された各制御装置に受信データを送信する通信制御装置が備えられ、前記複数の制御装置が、前記記憶装置として、記憶されている前記制御プログラム及び制御データが書き換え可能な不揮発性メモリを持つ制御装置であって、前記通信制御装置は、識別データと前記書き換え可能な不揮発性メモリを備える制御装置に対する改版された制御プログラムや制御データを含むデータフレームを受信するデータフレーム受信手段と、受信したデータフレームが自己の装置宛てに送信されたデータであるか否かを前記識別データを基に解読するアドレス解読手段と、自己の装置宛てに送信されたデータフレームであると解読した場合に、前記改版された制御プログラムや制御データと書換えの対象となる制御装置の制御装置コードを含む書換データを前記ローカルエリアネットワークに送出する書換データ送出手段とを備え、前記書き換え可能な不揮発性メモリを備える制御装置の夫々は、前記ローカルエリアネットワークから前記書換えデータを受信する書換えデータ受信手段と、受信した書換えデータが自己の制御装置宛てのデータであるか否かを前記制御装置コードを基に判定する判定手段と、自己の制御装置宛ての書換データであると判定した場合に、前記受信した書換データを基に前記書き換え可能な不揮発性メモリに記憶されている制御プログラム及び制御データの内容を前記改版された制御プログラムや制御データに書き換える書換制御手段とを備えたことを特徴とする。
また、第2の発明の構成は、中央処理装置を有し記憶装置に記憶された制御プログラム及び制御データに基づいて自動車に搭載された各種装置を制御する自動車に搭載された制御装置において、該制御装置はローカルエリアネットワークを介して接続される複数の制御装置の一つであって、且つ、前記ローカルエリアネットワークには空間電波を受信する通信制御装置が接続されており、該制御装置における前記記憶装置は記憶されている前記制御プログラム及び制御データが書き換え可能な不揮発性メモリであって、該制御装置は、前記通信制御装置にて受信した改版された制御プログラムや制御データとを含む書換データを前記ローカルエリアネットワークを介して受信し、前記書換データに含まれる制御装置コードを基に自己装置宛ての書換データであるか否かを判定し、自己装置宛ての書換データであれば、前記不揮発性メモリに記憶されている制御プログラム及び制御データの内容を前記書換データに基づいて書き換え、書き換えが完了したら完了した旨を前記通信制御装置に前記ローカルエリアネットワークを介して送信することを特徴とする。
【0007】
【作用】
制御プログラムが改版された時、例えば、自動車用制御装置の製造業者により、その制御プログラムや制御データが空間ネットワークを用いて電波により空間に送信される。市中を走行している自動車は、この電波を受信して、受信データが自己の装置のために送信されたデータであるか否かを判別して、このデータが自己の装置宛に送信されたデータである時、不揮発性メモリに記憶されているデータをその受信データに書き換える。このデータが、受信後にその自動車に搭載された自動車用制御装置の中央処理装置の実行すべき制御プログラム及び制御データとなる。
このようにして、既に、販売された後の自動車においても、自動車用制御装置の機能向上を容易に実施することが可能となる。
【0008】
【発明の効果】
本発明は、車両の制御に必要なデータを記憶する書き換え可能な不揮発性メモリと、受信装置により受信されたデータが自己の装置宛に送信されたデータであるか否かを解読するアドレス解読手段と、受信されたデータがアドレス解読手段により自己の装置宛に送信されたデータである場合には、不揮発性メモリに記憶されているデータを受信されたデータに書換える書換制御手段とを有しているので、制御プログラムの改版時に空間に送信される制御プログラムや制御データ等の中から自己の装置に適合したデータを受信して不揮発性メモリに記憶されているデータを受信データに書き換えることができる。よって、その不揮発性メモリに新規に記憶されたデータに基づいてプログラムを実行させることで、最も新しい機能を既販の自動車においても実施することが可能となる。
【0009】
【実施例】
以下、本発明を具体的な一実施例に基づいて説明する。
図1は本装置の構成を示している。
ローカルエリアネットワーク(以下、「LAN」という)30には、通信制御装置TC、エンジン制御装置T1、ブレーキ制御装置T2等が接続されている。又、エンジン制御装置T1、ブレーキ制御装置T2は、それぞれ、CPU100,200、E2PROM (書き換え可能不揮発性メモリ)102,202、RAM104,204、入出力インタフェース106,206とで構成されている。
【0010】
又、通信制御装置TCは、受信装置を構成するアンテナ10、レシーバ12、復調器14、シフトレジスタ16及びCPU18、E2PROM20 ,RAM
22とで構成されている。
【0011】
空間に伝搬されるデータフレームの構造は、例えば図2に示すようになっている。 即ち、SOF(スタートオブフレーム)、ID、DATA、ECC、EOD、RSP、EOFとで構成されている。ID領域にはこのデータフレームを受信すべき自動車の車種、データの種類、データの版数等に関する識別データが組み込まれている。DATA領域には改版された制御プログラムや制御データが組み込まれている。
【0012】
次に、本装置の作動について説明する。
図2に示すデータフレームのFSK変調波が空間ネットワークにより放射されている。市中を走行している自動車は、この電波を受信して、データ解析を行う。アンテナ10により受信されたFSK変調波はレシーバ12により増幅され、復調器14により復調され、さらに所定周期でサンプリングされることにより、各ビットが「0」、「1」で構成される図2に示すデータフレームに変換され、シフトレジスタ16に出力される。このデータフレームはCPU18によって読み取られて、データ解析が実行される。
【0013】
次に、通信制御装置TCのデータ解析手順を図3に基づいて説明する。
このプログラムは、一定の時間間隔で繰り返し実行される。
ステップ101において、データフレームが受信されたか否かが判定される。データフレームの受信がない場合には、本プログラムは終了する。データフレームの受信があれば、ステップ102において、ID領域のデータが解析され、車種コードが自己の自動車の車種コードと一致するか否かが判定される。車種コードが一致していなければ、このデータフレームは自己の装置に宛てられたデータではないので、本プログラムは終了する。
【0014】
一方、受信されたデータフレームの車種コードが自己の自動車の車種コードと一致すれば、ステップ103に移行して、ID領域からデータ種類コード及び版数コードが解読される。そして、その受信データが、既に、自己の装置に記憶済であるか否かが判定され、そのデータが、既に、記憶済であれば、そのデータを記憶することなく、本プログラムは終了する。
【0015】
その受信データが、未だ、記憶されていなければ、ステップ104に移行して、RAM22に受信データが記憶され、本プログラムは終了される。
【0016】
又、通信制御装置TCのCPU18は、図3に示すプログラムと並行して、図4、図5に示すプログラムを所定時間間隔で繰り返し実行している。
RAM22に記憶された受信データにおいて、エンジン制御装置T1、ブレーキ制御装置T2等にデータを送出して、E2PROM 102、202等の書き換えの完了していないデータが存在するか否かが判定される。書換データが存在しなければ、本プログラムは終了する。
書換データが存在すれば、ステップ202において、自己の自動車が停止中か否かが判定される。自動車が停止中でなければ、データの書き換えを実行しない。自動車が停止中であれば、ステップ203において、E2PROM 102、202等を書き換えるべきデータがLAN30に送出され、本プログラムの実行は終了する。
【0017】
各制御装置T1、T2等はこのデータをLAN30から自己の制御装置に関係する書換データを選択的に受信して、E2PROM 102、202等の受信した書換データに対応した所定アドレスの内容を書換データに書き換える。そして、E2PROM 102、202等に制御プログラムや制御データ等の記憶が完了すると、各制御装置T1、T2等は記憶完了信号をLAN30に出力する。
【0018】
通信制御装置TCのCPU18は、図5のプログラムにおいて、ステップ301において、LAN30から各制御装置T1、T2等の出力した記憶完了信号が受信されたか否かを判定する。記憶完了信号の受信がなければ、本プログラムは終了する。次に、記憶完了信号の受信があれば、ステップ302において、その記憶完了信号を出力した制御装置に対応する書換完了フラグが「1」にセットされ、本プログラムは終了する。この書換完了フラグはステップ201において参照され、以後、「1」にセットされた書換完了フラグに対応する制御装置に対する書換データの送信は実行されない。
【0019】
各制御装置T1、T2は図6のプログラムを所定時間周期で繰り返し実行することにより、LAN30から書換データを受信し、E2PROM 102、202等に記憶する。
ステップ401において、LAN30から書換データを受信したか否かが判定され、書換データが受信されなければ、本プログラムは終了する。
次に、LAN30から書換データが受信されたならば、ステップ402において、書換データの制御装置コードが自己の装置コードと一致するか否かが判定される。一致しなければ、自己装置宛てのデータではないので、本プログラムは終了される。
【0020】
データが自己装置宛てのデータであると判定された場合には、ステップ403において、書換データの種類コード及び版数コードが、 E2PROMに既に記憶されているデータの種類コード及び版数コードと一致しているか否かが判定される。両コードが一致していれば、 E2PROMの内容を書き換える必要がないので、本プログラムは終了する。
【0021】
両コードが一致しなければ、 E2PROMに記憶されているデータは最新版のデータに改版されていないことを意味する。よって、この場合には、ステップ404において、 E2PROMの内容が受信データによって書き換えられる。次に、ステップ405において、 E2PROMの記憶データがチェックされる。ステップ406において、エラーが検出されたと判定されると、ステップ407において、エラーフラグERO が「1」に設定されているか否かが判定され、エラーフラグERO が「1」に設定されていな場合には、ステップ408で、エラーフラグERO が「1」に設定されて、ステップ404に戻り、もう一度、受信データにより E2PROMの書き換えが実行される。そして、同様にエラーチェックが実行される。
【0022】
ステップ407でエラーフラグERO が「1」に設定されている場合には、 E2PROMの書き換えが2回繰り返し実行されたが、2回共書換エラーが発生したことを意味している。この場合には、ステップ409において、エラーの種類を示すダイアグコードが記憶される。次に、ステップ410において、受信データの種類コード及び版数コードが現行記憶データのコードとして記憶される。次に、ステップ411において、 E2PROMの内容に従って制御プログラムを実行せずに、エラー発生時の所定のバックアップ用の制御プログラムで実行が行われるように制御モードが切換られる。
【0023】
一方、ステップ406で、書込みデータエラーが発生しなかったと判定された場合には、ステップ412において、受信データの種類コード及び版数コードが現行記憶データの種類コード及び版数コードとして記憶される。次に、ステップ413において、記憶完了信号がLAN30に送信される。
【0024】
このようにして、各制御装置T1、T2の E2PROM102、202の内容は書き換えられる。正常に書き換えが完了した後は、各制御装置T1、T2のCPU100、200は、 E2PROM102、202に新しく記憶された制御プログラム及び制御データに基づいて、各装置の制御を行う。
このようにして、自動車用制御装置の機能の改版が行われる場合にも、自動車所有者及び自動車修理者に何の負担を掛けることなく、自動車の制御装置の機能を最新のものに向上させることが可能となる。
【0025】
尚、上記実施例において、通信制御装置TCに送信装置を付加して、受信データによりデータの書き換えが完了した場合には、自己の車両を特定するデータと共に書換完了信号を送信するようにしても良い。この場合には、どの車両の制御装置の機能が改版されているかをデータの送信者が容易に把握することが可能となる。
【0026】
又、通信制御装置TCにおいて、各制御装置T1、T2等の E2PROM102、202等の種類に応じた書き換え電圧(5V、12V、24V等)を個別に供給する書き換え電圧供給装置を設けても良い。
【図面の簡単な説明】
【図1】本発明の具体的な一実施例に係る自動車用制御装置の構成を示したブロック図。
【図2】データフレームの構成を示したブロック図。
【図3】通信制御装置のCPUの処理手順を示したフローチャート。
【図4】通信制御装置のCPUの処理手順を示したフローチャート。
【図5】通信制御装置のCPUの処理手順を示したフローチャート。
【図6】各制御装置のCPUの処理装置を示したフローチャート。
【符号の説明】
TC…通信制御装置 T1…エンジン装置 T2…ブレーキ制御装置
20、102、202…E2PROM(書き換え可能な不揮発性メモリ)
12…レシーバ(受信装置) 14…復調器(受信装置)
18…CPU(受信装置、アドレス解読手段、書込制御手段)
100、200…CPU(書込制御手段)
ステップ102…アドレス解読手段
ステップ104、201〜203、301、302、401、413…書込制御手段
[0001]
[Industrial application fields]
The present invention relates to an apparatus that can easily improve the function of an automobile control apparatus using a computer system.
[0002]
[Prior art]
In recent years, microcomputers have come to be used for controlling various automobile control devices such as an engine system, a brake system, and an air conditioning system. These microcomputers are connected by an in-vehicle LAN and complement each other.
[0003]
[Problems to be solved by the invention]
In the various vehicle control apparatuses described above, a control program, control data, and the like for controlling various actuators are stored in a mask ROM. In the automobile control device, after the device is developed and installed in a new vehicle at the factory, the control program is improved, the control data is changed, etc., in order to improve the function.
[0004]
However, when the control program is revised, the control program is stored in the mask ROM in order to use the control program in a car that has already been sold. Therefore, it is necessary to replace the car control device itself. there were.
As a result, it has been impossible in practice to improve the function of the control device in already sold automobiles.
[0005]
The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to easily execute the function improvement of the apparatus in the computer control apparatus of the computer system.
[0006]
[Means for Solving the Problems]
The configuration of the first invention for solving the serial problems, a plurality of control devices for controlling various devices mounted on a vehicle based on a control program及 beauty control data stored in the storage device has a central processing unit Each of the control devices is connected via a local area network, and each control device performs data communication with each other, and receives the spatial radio wave as one of a plurality of control devices , the local area network A communication control device that transmits received data to each control device connected to the control device, and the plurality of control devices include a nonvolatile memory that can rewrite the stored control program and control data as the storage device. The communication control device has a modification to the control device including identification data and the rewritable nonvolatile memory. Address decode to decode the data frame receiving unit, the received data frame whether the data transmitted to its own device addressed on the basis of the identification data received data frame containing a control program and control data And the rewritten data including the revised control program and control data and the control device code of the control device to be rewritten when the data frame is transmitted to the device itself. Rewrite data sending means for sending to the network, and each of the control devices comprising the rewritable nonvolatile memory includes a rewrite data receiving means for receiving the rewrite data from the local area network, Whether or not the data is addressed to the control device. And the contents of the control program and control data stored in the rewritable nonvolatile memory based on the received rewrite data when it is determined that the rewrite data is destined for its own control device. the is characterized in that a rewrite control means for rewriting the revision is a control program and control data.
The configuration of the second invention is a control device mounted in an automobile for controlling various devices mounted on a vehicle based on a control program stored in the storage device has a central processing unit and the control data, the The control device is one of a plurality of control devices connected via a local area network, and a communication control device that receives spatial radio waves is connected to the local area network, and the control device A storage device is a nonvolatile memory in which the stored control program and control data can be rewritten, and the control device includes rewritten data including the revised control program and control data received by the communication control device. Is received via the local area network and addressed to the self-device based on the control device code included in the rewrite data. It is determined whether or not it is rewrite data, and if it is rewrite data addressed to its own device, the contents of the control program and control data stored in the nonvolatile memory are rewritten based on the rewrite data, and the rewrite is completed. A message indicating completion is transmitted to the communication control apparatus via the local area network .
[0007]
[Action]
When the control program is revised, for example, the control program and control data are transmitted to the space by radio waves using a spatial network by the manufacturer of the control device for automobiles. A car traveling in the city receives this radio wave, determines whether or not the received data is data transmitted for its own device, and this data is transmitted to its own device. Data stored in the non-volatile memory is rewritten with the received data. This data becomes a control program and control data to be executed by the central processing unit of the automobile control device mounted on the automobile after reception.
In this way, it is possible to easily improve the functions of the automobile control device even in a car that has already been sold.
[0008]
【The invention's effect】
The present invention relates to a rewritable nonvolatile memory for storing data necessary for vehicle control, and an address decoding means for decoding whether or not the data received by the receiving device is data transmitted to its own device And rewriting control means for rewriting the data stored in the non-volatile memory with the received data when the received data is data transmitted to the own device by the address decoding means. Therefore, it is possible to receive data suitable for its own device from among the control program and control data transmitted to the space when the control program is revised, and rewrite the data stored in the nonvolatile memory with the received data. it can. Therefore, by executing a program based on data newly stored in the non-volatile memory, it becomes possible to implement the newest function even in an already-sold car.
[0009]
【Example】
Hereinafter, the present invention will be described based on a specific example.
FIG. 1 shows the configuration of this apparatus.
A communication control device TC, an engine control device T1, a brake control device T2, and the like are connected to a local area network (hereinafter referred to as “LAN”) 30. The engine control device T1 and the brake control device T2 are composed of CPUs 100 and 200, E 2 PROM (rewritable nonvolatile memory) 102 and 202, RAMs 104 and 204, and input / output interfaces 106 and 206, respectively.
[0010]
The communication control device TC includes an antenna 10, a receiver 12, a demodulator 14, a shift register 16, a CPU 18, an E 2 PROM 20, and a RAM that constitute a receiving device.
22.
[0011]
The structure of the data frame propagated to the space is as shown in FIG. 2, for example. That is, it is composed of SOF (start of frame), ID, DATA, ECC, EOD, RSP, and EOF. In the ID area, identification data relating to the vehicle type of the vehicle that should receive this data frame, the type of data, the version number of the data, and the like is incorporated. A revised control program and control data are incorporated in the DATA area.
[0012]
Next, the operation of this apparatus will be described.
The FSK modulated wave of the data frame shown in FIG. 2 is radiated by the spatial network. A car traveling in the city receives this radio wave and performs data analysis. The FSK modulated wave received by the antenna 10 is amplified by the receiver 12, demodulated by the demodulator 14, and further sampled at a predetermined period, whereby each bit is composed of “0” and “1” in FIG. The data frame shown in FIG. The data frame is read by the CPU 18 and data analysis is executed.
[0013]
Next, the data analysis procedure of the communication control device TC will be described with reference to FIG.
This program is repeatedly executed at regular time intervals.
In step 101, it is determined whether a data frame has been received. If no data frame is received, the program ends. If a data frame is received, the data in the ID area is analyzed in step 102 to determine whether the vehicle type code matches the vehicle type code of the own vehicle. If the vehicle type codes do not match, this data frame is not the data addressed to its own device, so this program ends.
[0014]
On the other hand, if the vehicle type code of the received data frame matches the vehicle type code of the own car, the process proceeds to step 103, where the data type code and the version number code are decoded from the ID area. Then, it is determined whether or not the received data has already been stored in its own device. If the data has already been stored, the program ends without storing the data.
[0015]
If the received data is not yet stored, the process proceeds to step 104 where the received data is stored in the RAM 22 and the program is terminated.
[0016]
The CPU 18 of the communication control device TC repeatedly executes the programs shown in FIGS. 4 and 5 at predetermined time intervals in parallel with the program shown in FIG.
In the received data stored in the RAM 22, the data is transmitted to the engine control device T1, the brake control device T2, etc., and it is determined whether or not there is data that has not been rewritten such as the E 2 PROM 102, 202. The If there is no rewrite data, this program ends.
If rewrite data exists, it is determined in step 202 whether or not the own vehicle is stopped. If the car is not stopped, data rewriting is not executed. If the automobile is stopped, in step 203, data to be rewritten in the E 2 PROMs 102, 202, etc. is sent to the LAN 30, and the execution of this program is terminated.
[0017]
Each control device T1, T2, etc. selectively receives this data from LAN 30 as rewrite data related to its own control device, and stores the contents of a predetermined address corresponding to the received rewrite data such as E 2 PROM 102, 202, etc. Rewrite to rewrite data. When the storage of the control program, control data, etc. is completed in the E 2 PROMs 102, 202, etc., each control device T1, T2, etc. outputs a storage completion signal to the LAN 30.
[0018]
In the program of FIG. 5, the CPU 18 of the communication control device TC determines whether or not the storage completion signal output from each control device T1, T2, etc. is received from the LAN 30 in step 301. If no storage completion signal is received, the program ends. Next, if a storage completion signal is received, in step 302, the rewrite completion flag corresponding to the control device that has output the storage completion signal is set to "1", and this program ends. This rewriting completion flag is referred to in step 201, and thereafter, rewriting data transmission to the control device corresponding to the rewriting completion flag set to “1” is not executed.
[0019]
Each control device T1, T2 receives the rewrite data from the LAN 30 by repeatedly executing the program of FIG. 6 at a predetermined time period, and stores it in the E 2 PROMs 102, 202, and the like.
In step 401, it is determined whether or not rewrite data is received from the LAN 30, and if no rewrite data is received, this program ends.
Next, if rewrite data is received from the LAN 30, it is determined in step 402 whether or not the control device code of the rewrite data matches its own device code. If they do not match, the program is terminated because the data is not addressed to the device itself.
[0020]
If it is determined that the data is addressed to the self-device, in step 403, the type code and version number code of the rewrite data are changed to the data type code and version number code already stored in the E 2 PROM. It is determined whether or not they match. If the two codes match, there is no need to rewrite the contents of the E 2 PROM, and the program ends.
[0021]
If the two codes do not match, it means that the data stored in the E 2 PROM has not been revised to the latest version. Therefore, in this case, in step 404, the contents of the E 2 PROM are rewritten with the received data. Next, in step 405, the stored data in the E 2 PROM is checked. If it is determined in step 406 that an error has been detected, it is determined in step 407 whether or not the error flag ERO is set to “1”. If the error flag ERO is not set to “1”. In step 408, the error flag ERO is set to “1”, the process returns to step 404, and the E 2 PROM is rewritten again with the received data. Similarly, an error check is executed.
[0022]
If the error flag ERO is set to “1” in step 407, it means that the rewriting of the E 2 PROM has been executed twice, but a co-rewriting error has occurred twice. In this case, in step 409, a diagnostic code indicating the type of error is stored. Next, in step 410, the type code and the version number code of the received data are stored as the code of the current stored data. Next, in step 411, the control mode is switched so that the control program is not executed according to the contents of the E 2 PROM, but is executed by a predetermined backup control program when an error occurs.
[0023]
On the other hand, if it is determined in step 406 that a write data error has not occurred, the received data type code and version code are stored as the currently stored data type code and version code in step 412. Next, in step 413, a storage completion signal is transmitted to the LAN 30.
[0024]
In this way, the contents of the E 2 PROMs 102 and 202 of the control devices T1 and T2 are rewritten. After the rewriting is completed normally, the CPUs 100 and 200 of the control devices T1 and T2 control each device based on the control program and control data newly stored in the E 2 PROMs 102 and 202.
In this manner, even if the revision of the functions of the automobile control system is carried out, without applying any burden on car owners and automobile repair business, to improve the function of the vehicle control apparatus up to date Is possible.
[0025]
In the above embodiment, a transmission device is added to the communication control device TC, and when rewriting of data is completed with the received data, a rewriting completion signal may be transmitted together with data for identifying the own vehicle. good. In this case, it becomes possible for the data sender to easily grasp which vehicle control device has been revised.
[0026]
Further, the communication control device TC may be provided with a rewrite voltage supply device that individually supplies a rewrite voltage (5V, 12V, 24V, etc.) according to the type of the E 2 PROM 102, 202, etc. of each control device T1, T2, etc. good.
[Brief description of the drawings]
FIG. 1 is a block diagram showing the configuration of an automobile control device according to a specific embodiment of the present invention.
FIG. 2 is a block diagram showing the configuration of a data frame.
FIG. 3 is a flowchart showing a processing procedure of a CPU of the communication control device.
FIG. 4 is a flowchart showing a processing procedure of a CPU of the communication control device.
FIG. 5 is a flowchart showing a processing procedure of a CPU of the communication control device.
FIG. 6 is a flowchart showing a processing device of a CPU of each control device.
[Explanation of symbols]
TC: Communication control device T1: Engine device T2: Brake control device 20, 102, 202 ... E 2 PROM (rewritable nonvolatile memory)
12 ... Receiver (receiving device) 14 ... Demodulator (receiving device)
18 ... CPU (receiving device, address decoding means, writing control means)
100, 200... CPU (write control means)
Step 102 ... Address decoding means Step 104, 201 to 203, 301, 302, 401, 413 ... Write control means

Claims (9)

中央処理装置を有し記憶装置に記憶された制御プログラム及び制御データに基づいて自動車に搭載された各種装置を制御する制御装置を複数備え、各制御装置がローカルエリアネットワークを介して接続され、各制御装置が相互にデータ通信を行う自動車用制御装置において、
前記複数の制御装置の一つとして、空間電波を受信し、前記ローカルエリアネットワークに接続された各制御装置に受信データを送信する通信制御装置が備えられ、
前記複数の制御装置が、前記記憶装置として、記憶されている前記制御プログラム及び制御データが書き換え可能な不揮発性メモリを持つ制御装置であって、
前記通信制御装置は、
識別データと前記書き換え可能な不揮発性メモリを備える制御装置に対する改版された制御プログラムや制御データを含むデータフレームを受信するデータフレーム受信手段と、
受信たデータフレームが自己の装置宛てに送信されたデータであるか否かを前記識別データを基に解読するアドレス解読手段と、
自己の装置宛てに送信されたデータフレームであると解読した場合に、前記改版された制御プログラムや制御データと書換えの対象となる制御装置の制御装置コードを含む書換データを前記ローカルエリアネットワークに送出する書換データ送出手段とを備え、
前記書き換え可能な不揮発性メモリを備える制御装置の夫々は、
前記ローカルエリアネットワークから前記書換えデータを受信する書換えデータ受信手段と、
受信した書換えデータが自己の制御装置宛てのデータであるか否かを前記制御装置コードを基に判定する判定手段と、
自己の制御装置宛ての書換データであると判定した場合に、前記受信した書換データを基に前記書き換え可能な不揮発性メモリに記憶されている制御プログラム及び制御データの内容を前記改版された制御プログラムや制御データに書き換える書換制御手段とを備えたことを特徴とする自動車用制御装置。
A plurality of control devices for controlling various devices mounted on a vehicle based on a control program及 beauty control data stored in the storage device has a central processing unit, each control unit is connected via a local area network, In an automobile control device in which each control device performs data communication with each other ,
As one of the plurality of control devices, a communication control device that receives spatial radio waves and transmits reception data to each control device connected to the local area network is provided.
The plurality of control devices is a control device having a nonvolatile memory in which the stored control program and control data can be rewritten as the storage device,
The communication control device includes:
A data frame receiving means for receiving a data frame including a control program and control data that have been revised for a control device comprising identification data and the rewritable nonvolatile memory;
Address decoding means received data frame to decode whether the data transmitted to the self equipment addressed on the basis of the identification data,
When it is decoded that it is a data frame transmitted to its own device, the rewritten data including the revised control program and control data and the control device code of the control device to be rewritten is sent to the local area network. Rewriting data sending means
Each of the control devices including the rewritable nonvolatile memory includes:
Rewrite data receiving means for receiving the rewrite data from the local area network;
Determination means for determining whether the received rewrite data is data addressed to its own control device based on the control device code;
The control program stored in the rewritable non-volatile memory based on the received rewrite data and the contents of the control data are revised when it is determined that the rewrite data is addressed to its own control device. automotive control device being characterized in that a rewrite control means for rewriting the or control data.
請求項1記載の自動車用制御装置において、
前記書換制御手段は前記書き換え可能な不揮発性メモリに記憶されている制御プログラム及び制御データの内容の書換えが成功しない場合に、繰り返し書き換えを実行するよう構成されていると共に、
前記書き換え可能な不揮発性メモリを備える制御装置の夫々には更に、
前記書換制御手段での書き換えが所定回繰り返しても成功しない場合に、当該書き換えを中止する書換中止手段を備えることを特徴とする自動車用制御装置。
The automobile control device according to claim 1,
The rewrite control means is configured to repeatedly perform rewrite when rewriting of the contents of the control program and control data stored in the rewritable nonvolatile memory is not successful,
Each of the control devices including the rewritable nonvolatile memory further includes
An automotive control apparatus comprising: a rewrite canceling unit that cancels rewriting when rewriting by the rewriting control unit is not successful even after being repeated a predetermined number of times .
請求項2記載の自動車用制御装置において、
前記書き換え可能な不揮発性メモリを備える制御装置の夫々には更に、
前記書換中止手段にて書き換えが中止された場合には、前記書き換え可能な不揮発性メモリに記憶されている制御プログラム及び制御データの内容の書き換えを中止したことを意味するダイアグコードを記憶するダイアグコード記憶手段を備えることを特徴とする自動車用制御装置。
The vehicle control device according to claim 2,
Each of the control devices including the rewritable nonvolatile memory further includes
When rewriting is canceled by the rewrite canceling means, a diagnostic code for storing a diagnostic code which means that rewriting of the contents of the control program and control data stored in the rewritable nonvolatile memory is canceled An automobile control device comprising storage means .
請求項2記載の自動車用制御装置において、
前記書き換え可能な不揮発性メモリを備える制御装置の夫々には更に、
前記書換中止手段にて書き換えが中止された場合には、前記書き換え可能な不揮発性メモリに記憶されている制御プログラムによる制御から、バックアップ用制御プログラムによる制御に切り換える制御切換え手段を備えることを特徴とする自動車用制御装置。
The vehicle control device according to claim 2,
Each of the control devices including the rewritable nonvolatile memory further includes
When rewriting is canceled by the rewrite canceling means, it comprises control switching means for switching from control by a control program stored in the rewritable nonvolatile memory to control by a backup control program. Car control device.
請求項1記載の自動車用制御装置において、
前記通信制御装置のデータフレーム受信手段にて受信される前記データフレームには、改版された制御プログラムや制御データに対する版数コードが含まれており、
前記通信制御装置の前記書換データ送出手段は前記ローカルエリアネットワークに送出する前記書換データに前記版数コードを含めて送出し、
前記書き換え可能な不揮発性メモリを備える制御装置の夫々は、
前記書き換え可能な不揮発性メモリに記憶されている制御プログラム及び制御データに対する版数コードも記憶しており、
前記書き換え可能な不揮発性メモリを備える制御装置の夫々には更に、
前記書換えデータ受信手段にて受信した前記書換データに含まれる前記版数コードと前記書き換え可能な不揮発性メモリに記憶されている前記版数コードとから、前記書き換え可能な不揮発性メモリに記憶されている制御プログラム及び制御データの内容を書き換える必要があるか否かを判定する書換要否判定手段を備え、
この書換要否判定手段にて書き換えが必要と判断した場合のみ、前記書換制御手段による前記書き換え可能な不揮発性メモリに記憶されている制御プログラム及び制御データの内容を書き換えを実行することを特徴とする自動車用制御装置。
The automobile control device according to claim 1,
The data frame received by the data frame reception means of the communication control device includes a revised control program and a version code for the control data,
The rewrite data sending means of the communication control device sends the rewrite data to be sent to the local area network including the version number code,
Each of the control devices including the rewritable nonvolatile memory includes:
The control program stored in the rewritable nonvolatile memory and the version code for the control data are also stored,
Each of the control devices including the rewritable nonvolatile memory further includes
The version number code included in the rewrite data received by the rewrite data receiving means and the version number code stored in the rewritable nonvolatile memory are stored in the rewritable nonvolatile memory. Rewriting necessity judging means for judging whether or not it is necessary to rewrite the contents of the control program and the control data,
Only when it is determined that rewriting is necessary by the rewriting necessity judging means, the rewriting of the control program and control data stored in the rewritable nonvolatile memory by the rewriting control means is performed. Car control device.
請求項1記載の自動車用制御装置において、The automobile control device according to claim 1,
前記書き換え可能な不揮発性メモリを備える制御装置の夫々には更に、Each of the control devices including the rewritable nonvolatile memory further includes
前記書換制御手段による前記書き換えが成功した場合に、前記ローカルエリアネットワークに記憶完了した旨を送信する記憶完了送信手段を備えることを特徴とする自動車用制御装置。A vehicle control apparatus comprising: a storage completion transmitting unit that transmits a storage completion message to the local area network when the rewriting by the rewriting control unit is successful.
請求項6記載の自動車用制御装置において、The vehicle control device according to claim 6, wherein
前記通信制御装置は更に、The communication control device further includes
前記記憶完了送信手段による記憶完了を前記ローカルエリアネットワークを介して受信した場合は、自己の車両を特定するデータと共に、書き換え完了したことを自己の装置宛てに前記データフレームを送信した送信基に返信する返信手段を備えることを特徴とする自動車用制御装置。When the completion of storage by the storage completion transmission means is received via the local area network, the data specifying the own vehicle is replied to the transmission base that has transmitted the data frame to the own device together with the data specifying the own vehicle. A vehicle control device comprising a reply means for performing the operation.
中央処理装置を有し記憶装置に記憶された制御プログラム及び制御データに基づいて自動車に搭載された各種装置を制御する自動車に搭載された制御装置において、
該制御装置はローカルエリアネットワークを介して接続される複数の制御装置の一つであって、且つ、前記ローカルエリアネットワークには空間電波を受信する通信制御装置が接続されており、
該制御装置における前記記憶装置は記憶されている前記制御プログラム及び制御データが書き換え可能な不揮発性メモリであって、
該制御装置は、
前記通信制御装置にて受信した改版された制御プログラムや制御データとを含む書換データを前記ローカルエリアネットワークを介して受信し、前記書換データに含まれる制御装置コードを基に自己装置宛ての書換データであるか否かを判定し、自己装置宛ての書換データであれば、前記不揮発性メモリに記憶されている制御プログラム及び制御データの内容を前記書換データに基づいて書き換え、書き換えが完了したら完了した旨を前記通信制御装置に前記ローカルエリアネットワークを介して送信することを特徴とする車両に搭載された制御装置。
In a control device mounted on a vehicle that has a central processing unit and controls various devices mounted on the vehicle based on the control program and control data stored in the storage device,
The control device is one of a plurality of control devices connected via a local area network, and a communication control device that receives spatial radio waves is connected to the local area network,
The storage device in the control device is a non-volatile memory in which the stored control program and control data can be rewritten,
The control device
Rewrite data including the revised control program and control data received by the communication control device is received via the local area network, and the rewrite data addressed to the self device is based on the control device code included in the rewrite data. If it is rewrite data addressed to the own device, the control program and control data stored in the nonvolatile memory are rewritten based on the rewrite data, and the rewriting is completed when the rewriting is completed. A control device mounted on a vehicle, which transmits a message to the communication control device via the local area network.
請求項8記載の車両に搭載された制御装置であって、A control device mounted on a vehicle according to claim 8,
前記制御装置は、前記不揮発性メモリに記憶されている制御プログラム及び制御データの版数コードを前記不揮発性メモリに記憶しており、前記書換データに含まれる版数コードと記憶されている前記版数コードとから前記不揮発性メモリに記憶されている制御プログラム及び制御データの内容の書き換えが必要か否かを判定し、書き換えが必要と判定したときのみ前記不揮発性メモリに記憶されている制御プログラム及び制御データの内容を前記書換データに基づいて書き換えると共に、前記不揮発性メモリに記憶されている前記版数コードを前記書換データに含まれていた版数コードに書き換えることを特徴とする車両に搭載された制御装置。The control device stores the version code of the control program and control data stored in the nonvolatile memory in the nonvolatile memory, and the version code stored in the rewritten data The control program stored in the non-volatile memory is determined from the code and whether or not rewriting of the contents of the control data is necessary, and the control program stored in the non-volatile memory only when it is determined that rewriting is necessary And rewriting the contents of the control data based on the rewrite data, and rewriting the version code stored in the non-volatile memory with the version code included in the rewrite data. Control unit.
JP03152192A 1992-01-21 1992-01-21 Automotive control device Expired - Fee Related JP3648747B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03152192A JP3648747B2 (en) 1992-01-21 1992-01-21 Automotive control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03152192A JP3648747B2 (en) 1992-01-21 1992-01-21 Automotive control device

Publications (2)

Publication Number Publication Date
JPH05195859A JPH05195859A (en) 1993-08-03
JP3648747B2 true JP3648747B2 (en) 2005-05-18

Family

ID=12333500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03152192A Expired - Fee Related JP3648747B2 (en) 1992-01-21 1992-01-21 Automotive control device

Country Status (1)

Country Link
JP (1) JP3648747B2 (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0934858B1 (en) * 1996-11-13 2009-07-08 Toyota Jidosha Kabushiki Kaisha Vehicle information communication device and vehicle information communication system
KR100270539B1 (en) * 1996-12-27 2001-03-02 정몽규 Rom emulation system for data matching
JP3619348B2 (en) * 1997-05-21 2005-02-09 日野自動車株式会社 Automotive control device
US6754485B1 (en) 1998-12-23 2004-06-22 American Calcar Inc. Technique for effectively providing maintenance and information to vehicles
DE19963475B4 (en) * 1999-12-29 2015-04-02 Robert Bosch Gmbh A method and apparatus for controlling operations in a vehicle and providing data therefor
JP4237681B2 (en) * 2003-09-12 2009-03-11 株式会社日本自動車部品総合研究所 Information broadcasting equipment
JP4668656B2 (en) * 2005-03-24 2011-04-13 日立オートモティブシステムズ株式会社 Program rewriting system and program rewriting method
JP4492470B2 (en) 2005-07-20 2010-06-30 株式会社デンソー Data rewriting method for in-vehicle control device and in-vehicle control device
JP2007065856A (en) * 2005-08-30 2007-03-15 Fujitsu Ten Ltd Information rewriting system and information rewriting device
JP2007269181A (en) * 2006-03-31 2007-10-18 Mitsubishi Motors Corp Method for setting vehicle information in electronic control system for vehicle
JP2008155736A (en) * 2006-12-22 2008-07-10 Fujitsu Ten Ltd Electronic control device
JP2008239021A (en) 2007-03-28 2008-10-09 Denso Corp Vehicle control device and data rewriting system
JP4720781B2 (en) 2007-05-07 2011-07-13 株式会社デンソー Data rewriting system for vehicle control device
JP5353545B2 (en) * 2009-08-07 2013-11-27 トヨタ自動車株式会社 In-vehicle network device
CN103201138A (en) * 2010-10-29 2013-07-10 本田技研工业株式会社 Program rewriting system for vehicles
JP6323480B2 (en) 2016-03-02 2018-05-16 住友電気工業株式会社 Program update system, program update method, and computer program
JP2018200510A (en) * 2017-05-25 2018-12-20 株式会社デンソーテン Software update apparatus, software update system and software update method
JP7461755B2 (en) 2020-02-21 2024-04-04 日立Astemo株式会社 Information processing device, program update system, and program update method

Also Published As

Publication number Publication date
JPH05195859A (en) 1993-08-03

Similar Documents

Publication Publication Date Title
JP3648747B2 (en) Automotive control device
JP6380461B2 (en) Relay device, program update system, and program update method
JP7136278B2 (en) VEHICLE UPDATE DEVICE, UPDATE PROCESSING METHOD AND UPDATE PROCESSING PROGRAM
JP6500147B2 (en) In-vehicle program writer
US11967188B2 (en) Vehicle mounted update apparatus, update processing program, and program update method
CN113613953A (en) In-vehicle update device, update processing program, and program update method
JP2014029619A (en) Control system and program update method
US12087103B2 (en) Electronic control unit and non-transitory computer readable medium storing session establishment program
JP6562133B2 (en) Relay device, program update system, and program update method
JP2018181377A (en) Relay device, program update system, and program update method
CN114040360B (en) Server, update management method, non-transitory storage medium, software update device, system with server, and software update device
JP7006335B2 (en) In-vehicle communication system, in-vehicle communication method, and program
US20220405080A1 (en) Ota master, system, method, non-transitory storage medium, and vehicle
JP2013246718A (en) Control system and program updating method
US20220244946A1 (en) Ota master, update control method, non-transitory storage medium, and vehicle
US6917890B2 (en) Method to provide off-line transfer of vehicle calibration data
CN115250285A (en) Update control system, update control method, non-transitory storage medium, vehicle-mounted control device
CN114363385A (en) Method, system, equipment and storage medium for cloud updating of automobile end software
CN115934125A (en) Vehicle body control method and vehicle body controller
US20220342651A1 (en) Center, ota master, system, distribution method, non-transitory storage medium, and vehicle
JP7415756B2 (en) In-vehicle device, information processing method and computer program
WO2019038855A1 (en) Vehicle-mounted electronic device, server equipment, and software update method
JP2020126452A (en) Electronic control device and application method for nonvolatile memory
US20060218340A1 (en) Data validity determining method for flash EEPROM and electronic control system
JP2025015783A (en) Center, method, and program

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050125

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050207

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080225

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110225

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees