JP4398102B2 - Automotive electronics - Google Patents
Automotive electronics Download PDFInfo
- Publication number
- JP4398102B2 JP4398102B2 JP2001034074A JP2001034074A JP4398102B2 JP 4398102 B2 JP4398102 B2 JP 4398102B2 JP 2001034074 A JP2001034074 A JP 2001034074A JP 2001034074 A JP2001034074 A JP 2001034074A JP 4398102 B2 JP4398102 B2 JP 4398102B2
- Authority
- JP
- Japan
- Prior art keywords
- microcomputer
- stored
- electronic device
- program
- work memory
- 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
Links
Images
Landscapes
- Testing And Monitoring For Control Systems (AREA)
- Debugging And Monitoring (AREA)
- Microcomputers (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、マイクロコンピュータを備え、予め設定されるプログラムに従って動作する車載用電子機器に関する。
【0002】
【従来の技術】
従来から、パーソナルコンピュータやワードプロセッサなどの電子情報機器をはじめ、各種制御装置など、非常に多くの電子機器でマイクロコンピュータが使用されている。半導体製造技術などの進歩で、高機能のマイクロコンピュータや大容量の半導体メモリなどのハードウエアが比較的低コストで使用可能となってきている。マイクロコンピュータを動作させるプログラムも、格納するメモリの大容量化に対応して、多くの機能を備えたり、高度な処理を行うようになってきている。
【0003】
マイクロコンピュータを備える電子機器を新たに開発する場合は、ハードウエアとともにプログラムなどのソフトウエアも新たに開発する必要が生じる。大規模なソフトウエアの開発には時間がかかるので、実際のハードウエアの試作などに先行して、シミュレーションなどで充分な検討を行っておく必要がある。しかしながら、実際に使用するハードウエアと組合わせた後で顕在化したり、特殊な条件でのみ顕在化する不具合が存在する可能性は無視できない。そのため、電子機器自体に、異常発生などに対する自己診断機能が備えられていることが多い。
【0004】
今日では、自動車にも多くの電子機器が搭載され、各種制御などに利用されている。自動車に搭載される電子機器は、信頼性が特に重要であり、異常が生じているか否かを自己診断する機能を備えていることが多い。たとえば特開平9−20261号公報には、パワーステアリング装置が、車両の移動している条件で、パワーステアリング動作用の検出信号を所定時間範囲で記憶し、外部故障診断装置からの要求で、記憶されている情報を故障診断用のデータとして出力する先行技術が開示されている。また、特開平7−181112号公報には、複数の電子制御ユニットであるECUのうちの複数の子ECUがそれぞれ常時自己故障診断を実行し、故障検出時に現在の年月日時刻を親ECUに要求して、親ECUから与えられる年月日時刻を故障内容とともにダイアグ情報としてメモリに保存する先行技術が開示されている。
【0005】
本件出願人も、たとえば特開平10−238445号公報で、内燃機関の点火装置で故障か否かを判定し、故障と判定されればダイアグコードを出力する先行技術を開示している。
【0006】
自己診断によるダイアグコードを解析すると、故障を生じた原因などを特定し、プログラムの不具合を修正するためなどに有効な情報を得ることができる。マイクロコンピュータを備える電子機器や、マイクロコンピュータが動作するプログラムは、一旦製品化された後でも、ダイアグデータの解析結果などに基づくデバッグ作業が行われ、バージョンアップと称される改良が施されることが多い。
【0007】
【発明が解決しようとする課題】
電子機器が備える自己診断機能も、予め設定されるプログラムに基づく以上、過去の経験や、開発期間に判明している不具合や異常にしか対応していない。しかしながら実際の電子機器は、全く予期していないような異常を生じる可能性がある。また、潜在的な異常が生じていて、予期していないような条件で顕在化する可能性もある。特に、他の機器と組合わせて使用するときに、単独の電子機器としての解析では特定が不可能な異常が生じる可能性がある。
【0008】
従来の電子機器では、異常が発生すると、その異常を再現させ、どのような条件で発生するかを解析し、解析結果に基づいてプログラムやデータなどのソフトウエアを修正するデバッグを行っている。他の機器との組合わせで生じる動作異常などは、電子機器単独では同様の現象を再現しないので、解析に非常に時間がかかったり、解析不可能な場合さえ生じる。また、従来の電子機器には、プログラムの開発段階では予期していない特定条件下で発生する異常や、潜在的に作り込まれている問題を発見する手段が設けられていない。
【0009】
本発明の目的は、マイクロコンピュータを動作させるプログラムに生じる各種異常などに対して、解析に役立つ情報を残すことができる車載用電子機器を提供することである。
【0010】
【課題を解決するための手段】
本発明は、予め設定されるプログラムに従って動作するマイクロコンピュータを備え、車両に設けられる電源に接続される車載用電子機器において、
該マイクロコンピュータが車載用電子機器として動作するプログラムの実行中に、該プログラムに従って、予め設定される目印部分に応じて、前記車載用電子機器に接続される各スイッチのON/OFF状態をコード化する手段と、
マイクロコンピュータが前記プログラムに従って動作する際のワークメモリであって、電源からの電力供給が継続される間、コード化されたON/OFF状態を含むコード化された動作状態を記憶するワークメモリと、
電源からの電力供給が停止されても記憶内容を保持する不揮発性記憶手段とを含み、
該マイクロコンピュータは、
車載用電子機器外部からの要求に応じて、ワークメモリおよび不揮発性記憶手段に記憶されているコード化された自己の動作状態を、外部に出力可能であり、
車載用電子機器への電力供給停止指令が与えられると、ワークメモリへの電力供給を停止させる前に、前記ワークメモリにコード化されて記憶されている自己の動作状態を、前記不揮発性記憶手段に記憶させることを特徴とする車載用電子機器である。
【0011】
本発明に従えば、車両に設けられる電源に接続される車載用電子機器には、予め設定されるプログラムに従って動作するマイクロコンピュータが備えられる。マイクロコンピュータは、車載用電子機器として動作するプログラムの実行中に、該プログラムに従って、予め設定される目印部分で、車載用電子機器に接続される各スイッチのON/OFF状態をコード化する処理を実行する。コード化されたON/OFF状態を含むコード化された自己の動作状態はワークメモリに記憶される。また、電源からの電力供給が停止されても記憶内容を保持する不揮発性の記憶手段を備え、不揮発性の記憶手段は、コード化された自己の動作状態を記憶させることができる。
マイクロコンピュータのプログラムで、たとえば分岐部分などを目印部分となるマイルストーンとして特定の情報をコード化するようにしておけば、ワークメモリおよび不揮発性記憶手段に記憶されているデータで、プログラムの分岐部分での動作状態を解析することができる。ワークメモリおよび不揮発性記憶手段に記憶されているデータは、車載用電子機器外部からの要求に応じて、外部に出力可能であるので、車載用電子機器の外部でデータを解析して、プログラムのデバッグを行うことができる。自己の動作状態はコード化するので、多くの情報を少ないデータに集約することができる。プログラムの変更によって、記憶しておく動作状態を変えることもでき、特定条件下で発生する異常や潜在異常を、記憶する動作状態を選択して、容易に再現しうるようにすることもできる。
また不揮発性記憶手段は、電源の供給を停止しても記憶内容を保持するので、後から解析する際に有効に利用することができる。プログラムの動作中には、一旦ワークメモリに自己の動作状態を記憶するので、一般に記憶に時間がかかる不揮発性記憶手段への直接的な記憶を避けて、プログラムの動作に与える遅れを小さくすることができる。
【0012】
また本発明で、前記マイクロコンピュータは、自己の動作に異常が検出されるか否かを判断し、異常が検出されるとき、自己診断を行って、自己診断の結果を前記動作状態として前記ワークメモリに記憶することを特徴とする。
【0013】
本発明に従えば、ソフトウエアが自己動作の異常を検出して、異常が検出されると自己診断を行い、診断結果をコード化してワークメモリに記憶するので、表面上では検出困難な内部的な異常や潜在的な異常を、摘出することも可能になる。
【0016】
また本発明は、時間経過を計測する計時手段を含み、
前記マイクロコンピュータは、前記ワークメモリに記憶する動作状態に、計時手段が計測する時間経過に基づくタイムスタンプを含めることを特徴とする。
【0017】
本発明に従えば、ワークメモリに記憶される動作状態には時間経過に基づくタイムスタンプを含めるので、ワークメモリに記憶されている動作状態を時間経過に従う動作状態の軌跡として解析することができる。
【0024】
【発明の実施の形態】
図1は、本発明の実施の一形態である車載用の電子機器1に関連する概略的な電気的構成を示す。電子機器1は、予め設定されるプログラムに従って動作するマイクロコンピュータ2を備える。電子機器1は、マイクロコンピュータ2をプログラム動作させるために、ROM(Read Only Memory)3およびRAM(Random Access Memory)4を備える。マイクロコンピュータ2のプログラム動作では、特定用途用の半導体集積回路であるASIC(Application Specific Int egrated Circuit)5などを介して、各種処理や制御が行われる。
【0025】
マイクロコンピュータ2も半導体集積回路として製造され、プログラムやデータを格納するROM6、時間経過を計測するタイマ7、外部とのインタフェースを行うI/F回路8および異常検出部9などを含む。マイクロコンピュータ2内のROM6には、基本的な動作に必要なプログラムやデータが予め格納される。電子機器1としての動作に直接関連するプログラムやデータは、外部のROM6に格納される。外部のROM6のうち、少なくとも一部は、フラッシュメモリなど、電気的に消去と再書込みが可能でしかも不揮発性であるデバイスを使用する。RAM4は、マイクロコンピュータ2がプログラムに従って動作する際のワークメモリとなる。マイクロコンピュータ2と、ROM3、RAM4およびASIC5との間は、アドレスやデータのバス10を介して接続される。
【0026】
本実施形態では、マイクロコンピュータ2が電子機器1としての動作中に、予め設定されるプログラムに従って、自己の動作状態をコード化する処理を実行し、コード化された動作状態をRAM4のトレース領域11に記憶する。トレース領域11の記憶内容は、マイクロコンピュータ2のI/F回路8を介して、外部に読出すことができる。車載用の電子機器1は、通常車両のバッテリに接続されており、RAM4にスタンバイモードなどを有するS−RAM(Static RAM)などを用いれば、記憶内容を保持しておくことができる。さらに、トレース領域11の記憶内容の一部は、電源の停電等によって失われないように、電子機器1の電源スイッチをONからOFFに操作したときなどに、マイクロコンピュータ2が制御するS−RAMの電源をOFFにする前に、S−RAMからフラッシュメモリなどによって実現されるROM3のトレース保存領域12に移動する。トレース保存領域12に移動した記憶内容は、消去や再書込みの動作を行わない限り、電源を遮断しても失われない。トレース領域11やトレース保存領域12に記憶される情報には、ASIC5内部の動作状態を示すレジスタ13からのステータス情報なども含まれる。
【0027】
またマイクロコンピュータ2は、自己の動作に異常が検出されるか否かを判断する異常検出部9を備えている。異常検出部9は、実行しようとするタスクのレベルや割込み処理のレベルが適正でないときなどに動作異常としてエラーを表す信号を発生する。エラー情報は、RAM4のトレース領域11に記憶され、さらにROM3のトレース保存領域12にも記憶される。このように、ソフトウエアが自己動作の異常を検出して、異常が検出されると自己診断を行い、診断結果をコード化してメモリに記憶するので、表面上では検出困難な内部的な異常や潜在的な異常を、摘出することも可能になる。
【0028】
本実施形態の電子機器1には、時間経過を計測する計時手段としてのタイマ7が含まれているので、マイクロコンピュータ2は、メモリに記憶する動作状態に、タイマ7が計測する時間経過に基づくタイムスタンプを含める。メモリに記憶される動作状態には時間経過に基づくタイムスタンプを含めるので、動作状態の変化等の発生順や発生時刻を知ることができる。すなわち、メモリに記憶されているデータに基づき、時間経過に従う動作状態の軌跡として解析することができる。
【0029】
トレース領域11やトレース保存領域12にコード化されて記憶されている動作状態について、電子機器1のマイクロコンピュータ2は、電子機器1の外部のパーソナルコンピュータ20などからの要求に応じて、出力可能である。電子機器1のマイクロコンピュータ2が備えるI/F回路8とパーソナルコンピュータ20との間は、たとえばRS−232Cなどのインターフェースケーブル21で接続することができる。パーソナルコンピュータ20には、電子機器1をターゲット機器としてデバッグ支援を行うアプリケーションプログラムが、CD−ROMやフロッピディスクなどの記録媒体からの読込みや、通信ネットワークを介してのダウンロードなどによってインストールされている。パーソナルコンピュータ20は、トレース結果のデータをROM3やRAM4から読出す。読出すデータは、コード化されたバイナリデータであるので、エディタなどでの閲覧や編集が容易なテキストデータに変換したり、コードに対応する注釈の記入などが自動的に行われる。変換されたデータは、電子メール22として、さらに通信ネットワークを介して遠方、場合によっては海外に送信したり、プリンタ23で印字出力することができる。
【0030】
たとえば、電子機器1が輸出する製品であると、国内での開発時の試験などでは予期し得ないような環境等にさらされる場合がある。現地の技術者に、問題が生じた電子機器1のそばに携帯型のパーソナルコンピュータ20を持って行き、データを電子メール22として送信してもらうようにすれば、開発担当者が実際に現地に行かなくても、迅速にデバッグを行うことができる。
【0031】
以上で説明したように、マイクロコンピュータ2は、電子機器1としての動作中に、予め設定されるプログラムに従って、自己の動作状態をコード化して、RAM4やROM3などのメモリに記憶する。マイクロコンピュータ2のプログラムで、たとえば分岐部分などを目印となるマイルストーンとして、その目印部分の動作を行うときに、特定の動作状態に関する情報をコード化するようにしておけば、メモリに記憶されているデータで、プログラムの分岐部分などでの動作状態を解析することができる。メモリに記憶されているデータを、電子機器1の外部で解析して、プログラムのデバッグを行うことができる。動作状態はコード化するので、多くの情報を少ないデータに集約することができる。プログラムの変更によって、記憶しておく動作状態を変えることもでき、特定条件下で発生する異常や潜在異常を、記憶する動作状態を選択して、容易に再現しうるようにすることもできる。
【0032】
本実施形態のメモリには、不揮発性の記憶手段であるROM3に、電気的なデータの消去と再書込みとが可能なフラッシュメモリなどを含む。マイクロコンピュータ2は、RAM4のトレース領域11にコード化されて記憶されている動作状態を、フラッシュメモリなどのトレース保存領域12に記憶させる。マイクロコンピュータ2はプログラムの動作中に自己の動作状態をプログラム動作に使用するメモリであるRAM4に記憶し、さらに不揮発性のフラッシュメモリなどに記憶させることができる。不揮発性のフラッシュメモリなどに記憶させておけば、電源の供給を停止しても記憶内容を保持しておくことができ、航空機事故のときに活用するフライトレコーダのように、後から不具合を解析する際に有効に利用することができる。プログラムの動作中には、一旦RAM4に動作状態を記憶するので、一般に記憶に時間がかかるフラッシュメモリなどへの直接的な記憶を避けて、プログラムの動作に与える遅れを小さくすることができる。
【0033】
図2は、図1のROM3の少なくとも一部としてのフラッシュメモリのトレース保存領域12にデータを書込む手順を示す。ステップa0から手順を開始し、ステップa0でデータの書込みを行う。なお、すでにデータが書込まれている領域に再書込みを行うときには、先にデータを消去しなければならない。ただしデータの消去は、メモリ素子全体または部分的なブロック単位で行う必要がある。データの書込みの後では、ステップa2でデータの読出しを行う。ステップa3では、読出したデータを書込んだデータの元のデータと比較して、一致していることを確認するベリファイを行う。本実施形態では、元のデータはRAM4のトレース領域11に記憶されている。ステップa3のベリファイで不一致があれば、ステップa4でエラーコードをRAM4のトレース領域11に記憶する。ステップa4が終了した後、またはステップa3でベリファイがOKであるときは、ステップa5で手順を終了する。
【0034】
図3は、電子機器1に接続される各種スイッチ、たとえば車両のイグニッションスイッチなどのON/OFF状態をコードとして記憶する手順を示す。スイッチの状態変化は、たとえば割込み信号で、マイクロコンピュータ2に知らされる。ステップb0から動作を開始し、ステップb1では動作状態の検出を行う。ステップb2では、状態がONであるか否かを判断する。ONであると判断されるときは、ステップb3でON状態に設定し、ステップb4でON状態を表すコードをメモリに記憶する。ステップb2で状態がONでないと判断されるときは、ステップb5でOFF状態に設定し、ステップb6でOFF状態を表すコードをメモリに記憶する。ステップb4またはステップb6が終了すると、ステップb7で手順を終了する。
【0035】
図4は、ROM3およびRAM4のメモリマップの概要を示す。ROM3およびRAM4は、マイクロコンピュータ2のアドレス空間の異なる領域に配置され、さらに内部は複数の領域に分割されている。ROM3には、管理情報30、エラートレース保存領域31、ASIC実行トレース保存領域32、電源制御状態遷移トレース保存領域33、プログラム領域34、およびデータ領域35などが設けられる。RAM4には、管理情報40、エラートレース領域41、ASIC実行トレース領域42、電源制御状態遷移トレース領域43、LAN(Local Area Network)コマンドトレース領域44、TAB(Telecontrol Audio Bus)コマンドトレース領域45、モード管理ユニットトレース領域46、TCB(Task Control Block)トレース領域47、バッファ領域48、メモリプール領域49、およびスタック領域50などが設けられる。
【0036】
エラートレース領域41、ASIC実行トレース領域42、電源制御状態遷移トレース領域43、LAN(Local Area Network)コマンドトレース領域44、TABコマンドトレース領域45、モード管理ユニットトレース領域46、およびTCB(Task Control Block)トレース領域47は、図1のトレース領域11を形成する。このうち、エラートレース領域41、ASIC実行トレース領域42および電源制御状態遷移トレース領域43のデータは、エラートレース保存領域31、ASIC実行トレース保存領域32、電源制御状態遷移トレース保存領域33で形成されるトレース保存領域12に保存される。
【0037】
図5は、図4のエラートレース領域41、ASIC実行トレース領域42および電源制御状態遷移トレース領域43に保存される動作状態を表すデータの構成を示す。図5(a)に示すエラートレースは、図1の異常検出部9によって、タスクレベルエラーおよび割込レベルエラーが発生したときに検出される動作状態を記憶する。自己診断結果は、「故障レベル」としてコード化される。図5(b)に示すASICトレースは、図1のASIC5のレジスタ13にアクセスする際に、アクセス前レジスタ値とアクセス後レジスタ値とを含む動作状態を記憶する。ASIC5の処理は、「処理種別」としてコード化される。図5(c)に示す電源トレースは、電源関連のイベントが発生する際の動作状態を記憶する。イベントの種類は、イベント番号としてコード化される。
【0038】
図6は、図4のLANコマンドトレース領域44およびTABコマンドトレース領域45にそれぞれ記憶されるLANトレースおよびTABトレースの構成を、(a)および(b)でそれぞれ示す。LAN通信やTAB通信で送受信されるメッセージを記憶しておくことによって、通信に関連するプログラムのデバッグを有効に行うことができる。
【0039】
図7は、図4のモード管理ユニットトレース領域46に記憶されるデータの構成を示す。データの構成は、トレース種別に従って、(a)のマクロ実行、(b)のAVCLAN受信通知メッセージ、または(c)の受信メッセージorタイムアウトとなる。図4のTCBトレース領域47には、実行されたタスクを示すTCBが記憶される。
【0040】
本実施形態の電子機器1は、マイクロコンピュータ2上で動作するプログラムが、自己の動作状態の軌跡をメモリに記憶しておき、メモリの記憶内容を電子機器2の外部に読出してデバッグを支援することができる。自己の動作状態を予め定める条件でコード化してメモリに記憶するので、少ない記憶領域でも多くの情報を含むコードを記憶することができる。メモリの記憶内容は、電子機器1の外部に読出すので、電子機器1自体には動作状態の解析機能を持たせる必要はなく、外部の装置で充分な解析を行うことができる。
【0041】
【発明の効果】
以上のように本発明によれば、予め設定されるプログラムに従って動作するマイクロコンピュータを備える車載用電子機器で、マイクロコンピュータが車載用電子機器としての動作中に、予め設定される目印部分で、車載用電子機器に接続される各スイッチのON/OFF状態を含む自己の動作状態をコード化し、ワークメモリに記憶する。マイクロコンピュータのプログラムで、目印部分をマイルストーンとして特定の位置での自己の動作状態を示す情報をコード化するようにしておけば、ワークメモリおよび不揮発性記憶手段に記憶されているデータから、プログラムのマイルストーン位置での自己の動作状態を解析することができる。ワークメモリおよび不揮発性記憶手段に記憶されているデータはコード化され、車載用電子機器外部からの要求に応じて、外部に出力可能であるので、車載用電子機器の外部でデータを解析して、プログラムのデバッグを行うことができる。プログラムの変更によって、記憶しておく自己の動作状態を変えることもでき、特定条件下で発生する異常や潜在異常を、容易に再現しうるようにすることもできる。
また、マイクロコンピュータはプログラムの動作中に自己の動作状態を一旦ワークメモリに記憶し、さらに不揮発性記憶手段に記憶させることができる。プログラムの動作中には、一旦ワークメモリに自己の動作状態を記憶するので、一般に記憶に時間がかかる不揮発性記憶手段への直接的な記憶を避けることができる。
【0042】
また本発明によれば、ソフトウエアが自己動作の異常を検出すれば自己診断を行い、診断結果をコード化してワークメモリに記憶するので、表面上では検出困難な内部的な異常や潜在的な異常を、摘出することも可能になる。
【0044】
また本発明によれば、ワークメモリに記憶されている動作状態を、時間経過に従う動作状態の軌跡として解析することができる。
【図面の簡単な説明】
【図1】本発明の実施の一形態である電子機器1に関連する電気的構成を示すブロック図である。
【図2】図1のマイクロコンピュータ2がフラッシュメモリにデータの書込みを行う手順を示すフローチャートである。
【図3】図1のマイクロコンピュータ2がスイッチのON/OFF状態を記憶する手順を示すフローチャートである。
【図4】図1のROM3およびRAM4のメモリマップの概要を示す図である。
【図5】図4のエラートレース領域41、ASIC実行トレース領域42および電源制御状態遷移トレース領域43に保存される動作状態を表すデータの構成を示す図である。
【図6】図4のLANコマンドトレース領域44およびTABコマンドトレース領域45にそれぞれ記憶されるデータの構成を示す図である。
【図7】図4のモード管理ユニットトレース領域46に記憶されるデータの構成を示す図である。
【符号の説明】
1 電子機器
2 マイクロコンピュータ
3,6 ROM
4 RAM
5 ASIC
7 タイマ
8 I/F回路
9 異常検出部
11 トレース領域
12 トレース保存領域
13 レジスタ
20 パーソナルコンピュータ
22 電子メール
23 プリンタ[0001]
BACKGROUND OF THE INVENTION
The present invention includes a microcomputer relates to vehicle electronic equipment that operates according to a program set in advance.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, microcomputers are used in a great number of electronic devices such as electronic information devices such as personal computers and word processors and various control devices. With advances in semiconductor manufacturing technology, hardware such as high-performance microcomputers and large-capacity semiconductor memories can be used at a relatively low cost. A program for operating a microcomputer also has many functions and performs advanced processing in response to the increase in the capacity of a memory to be stored.
[0003]
When newly developing an electronic device equipped with a microcomputer, it is necessary to newly develop software such as a program together with hardware. Since it takes time to develop large-scale software, it is necessary to conduct a thorough examination by simulation prior to actual hardware prototyping. However, it is impossible to ignore the possibility that there is a defect that becomes apparent after combining with hardware that is actually used, or that appears only under special conditions. For this reason, the electronic device itself is often provided with a self-diagnosis function for occurrence of an abnormality.
[0004]
Today, many electronic devices are mounted on automobiles and used for various controls. In electronic devices mounted on automobiles, reliability is particularly important, and often has a function of self-diagnosis whether an abnormality has occurred. For example, in Japanese Patent Laid-Open No. 9-20261, a power steering device stores a detection signal for power steering operation in a predetermined time range under the condition that the vehicle is moving, and stores it at a request from an external failure diagnosis device. The prior art which outputs the information currently performed as data for fault diagnosis is disclosed. Further, in Japanese Patent Laid-Open No. 7-181112, a plurality of child ECUs among ECUs that are a plurality of electronic control units always perform self-fault diagnosis, and the current date / time is detected by the parent ECU when a failure is detected. Prior art is disclosed that requests and saves the date and time given by the parent ECU together with the failure content as diagnostic information in a memory.
[0005]
The present applicant also discloses, for example, Japanese Patent Laid-Open No. 10-238445, a prior art that determines whether or not a failure has occurred in an ignition device for an internal combustion engine, and outputs a diagnostic code if determined to be a failure.
[0006]
By analyzing the diagnostic code by self-diagnosis, it is possible to obtain information useful for identifying the cause of the failure and correcting the malfunction of the program. Electronic devices equipped with microcomputers, and programs that run microcomputers, once they are commercialized, are debugged based on analysis results of diagnostic data, etc., and are referred to as upgrades There are many.
[0007]
[Problems to be solved by the invention]
Since the self-diagnosis function provided in the electronic device is based on a program set in advance, it only supports past experiences and defects and abnormalities that have been identified during the development period. However, there is a possibility that an actual electronic device may have an unexpected abnormality. There is also a possibility that a potential abnormality has occurred and is manifested under unexpected conditions. In particular, when used in combination with other devices, abnormalities that cannot be identified by analysis as a single electronic device may occur.
[0008]
In a conventional electronic device, when an abnormality occurs, the abnormality is reproduced, the conditions under which the abnormality occurs are analyzed, and debugging is performed to correct software such as a program and data based on the analysis result. An abnormal operation that occurs in combination with other devices does not reproduce the same phenomenon with an electronic device alone, and therefore may take a very long time to analyze or even be impossible to analyze. In addition, conventional electronic devices are not provided with means for detecting abnormalities that occur under specific conditions that are not anticipated in the program development stage, or problems that are potentially created.
[0009]
An object of the present invention is to provide various abnormalities against such generated program for operating the microcomputer, a vehicle electronic equipment can leave information to help analyze.
[0010]
[Means for Solving the Problems]
The present invention includes a microcomputer that operates according to a program set in advance, in-vehicle electronic device that will be connected to a power supply provided in the vehicle,
During execution of a program the microcomputer to operate as a vehicle-mounted electronic device, the code in accordance with the program, depending on the marker portion allowances preset ON / OFF states of the switches connected to the vehicle electronic equipment Means to
A work memory when the microcomputer operating in accordance with the program, a work memory you store between the coded operating conditions including coded ON / OFF state of the power supply is continued from a power supply ,
Including non-volatile storage means for retaining stored contents even when power supply from the power source is stopped ,
The microcomputer
In response to a request from the in-vehicle electronic device outside the self-operating state coded is stored in the work memory and nonvolatile storage means, Ri can be outputted der externally,
When an instruction to stop power supply to the in-vehicle electronic device is given, the nonvolatile storage means stores its own operation state encoded and stored in the work memory before stopping the power supply to the work memory. an in-vehicle electronic device according to claim Rukoto is stored in.
[0011]
According to the present invention, the in- vehicle electronic device connected to the power source provided in the vehicle is provided with a microcomputer that operates according to a preset program. During execution of a program that operates as an in- vehicle electronic device, the microcomputer performs a process of encoding the ON / OFF state of each switch connected to the in-vehicle electronic device at a preset mark portion according to the program. Execute. The coded own operating state including the coded ON / OFF state is stored in the work memory. In addition, a non-volatile storage unit that retains the stored contents even when power supply from the power supply is stopped is provided, and the non-volatile storage unit can store the coded operating state.
If specific information is coded as a milestone that becomes a landmark part, for example, in a microcomputer program, the branch part of the program is stored in the work memory and non-volatile storage means. The operating state can be analyzed. And the data is the storage in the working memory and nonvolatile storage means, in response to a request from the in-vehicle electronic device outside because it is possible the output to the outside, by analyzing the data outside of the in-vehicle electronic device, program You can debug. Since its own operating state is encoded, a large amount of information can be collected into a small amount of data. By changing the program, the operation state to be stored can be changed, and the operation state to be stored can be easily reproduced by selecting the operation state to be stored for an abnormality or a potential abnormality that occurs under a specific condition.
Further, since the nonvolatile storage means retains the stored contents even when the supply of power is stopped, it can be used effectively for later analysis. During operation of the program, since its own operation state is once stored in the work memory, in general, avoid direct storage in the nonvolatile storage means that takes time to store, and reduce the delay given to the operation of the program. Can do.
[0012]
In the present invention, the microcomputer determines whether or not an abnormality is detected in its own operation. When the abnormality is detected, the microcomputer performs a self-diagnosis and sets the result of the self-diagnosis as the operation state as the work state. It memorize | stores in memory.
[0013]
According to the present invention, the software detects an abnormality in self-operation, and performs self-diagnosis when the abnormality is detected, and the diagnosis result is encoded and stored in the work memory. It is also possible to extract abnormal or potential abnormalities.
[0016]
The present invention also includes a time measuring means for measuring the passage of time,
The microcomputer includes a time stamp based on the passage of time measured by the time measuring means in the operation state stored in the work memory.
[0017]
According to the present invention, since the operation state stored in the work memory includes a time stamp based on the passage of time, the operation state stored in the work memory can be analyzed as a locus of the operation state according to the passage of time.
[0024]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 shows a schematic electrical configuration related to an in-vehicle
[0025]
The
[0026]
In the present embodiment, while the
[0027]
The
[0028]
Since the
[0029]
The operation state encoded and stored in the
[0030]
For example, if the
[0031]
As described above, the
[0032]
The memory according to the present embodiment includes a flash memory capable of erasing and rewriting electrical data in the
[0033]
FIG. 2 shows a procedure for writing data into the
[0034]
FIG. 3 shows a procedure for storing, as codes, ON / OFF states of various switches connected to the
[0035]
FIG. 4 shows an outline of the memory map of the
[0036]
[0037]
FIG. 5 shows a configuration of data representing operation states stored in the
[0038]
FIG. 6 shows the configurations of the LAN trace and the TAB trace stored in the LAN
[0039]
FIG. 7 shows the structure of data stored in the mode management unit trace area 46 of FIG. According to the trace type, the data configuration is (a) macro execution, (b) AVCLAN reception notification message, or (c) reception message or timeout. A TCB indicating the executed task is stored in the
[0040]
In the
[0041]
【The invention's effect】
According to the present invention as described above, the in-vehicle electronic device equipped with a microcomputer that operates according to a program set in advance, during the operation of a microcomputer-vehicle electronics, in mark portion to be set in advance, vehicle The operation state including the ON / OFF state of each switch connected to the electronic device is encoded and stored in the work memory. If the program of the microcomputer encodes information indicating its own operating state at a specific position with the mark portion as a milestone, the program can be read from the data stored in the work memory and the non-volatile storage means. It is possible to analyze the self- motion state at the milestone position. Data stored in the work memory and nonvolatile memory means is coded in response to a request from the in-vehicle electronic device outside because it is possible the output to the outside, by analyzing the data outside of the in-vehicle electronic device Can debug programs. By changing the program, it is possible to change its own operating state to be memorized, and to make it possible to easily reproduce abnormalities and latent abnormalities that occur under specific conditions.
Further, the microcomputer can temporarily store its own operating state in the work memory during the operation of the program, and further store it in the nonvolatile storage means. During operation of the program, since its own operation state is once stored in the work memory, it is possible to avoid direct storage in the non-volatile storage means that generally takes time to store.
[0042]
In addition, according to the present invention, if the software detects an abnormality in self-operation, it performs self-diagnosis, and the diagnosis result is encoded and stored in the work memory. Abnormalities can be extracted.
[0044]
Further, according to the present invention, the operating state stored in the work memory can be analyzed as a locus of the operating state over time.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an electrical configuration related to an
FIG. 2 is a flowchart showing a procedure in which the
FIG. 3 is a flowchart showing a procedure in which the
4 is a diagram showing an outline of a memory map of a
5 is a diagram showing a configuration of data representing operation states stored in an
6 is a diagram showing a structure of data stored in a LAN
7 is a diagram showing a configuration of data stored in a mode management unit trace area 46 of FIG. 4; FIG.
[Explanation of symbols]
1
4 RAM
5 ASIC
7 Timer 8 I /
Claims (3)
該マイクロコンピュータが車載用電子機器として動作するプログラムの実行中に、該プログラムに従って、予め設定される目印部分に応じて、前記車載用電子機器に接続される各スイッチのON/OFF状態をコード化する手段と、
マイクロコンピュータが前記プログラムに従って動作する際のワークメモリであって、電源からの電力供給が継続される間、コード化されたON/OFF状態を含むコード化された自己の動作状態を記憶するワークメモリと、
電源からの電力供給が停止されても記憶内容を保持する不揮発性記憶手段とを含み、
該マイクロコンピュータは、
車載用電子機器外部からの要求に応じて、ワークメモリおよび不揮発性記憶手段に記憶されているコード化された自己の動作状態を、外部に出力可能であり、
車載用電子機器への電力供給停止指令が与えられると、ワークメモリへの電力供給を停止させる前に、前記ワークメモリにコード化されて記憶されている自己の動作状態を、前記不揮発性記憶手段に記憶させることを特徴とする車載用電子機器。A microcomputer that operates according to a program set in advance, in-vehicle electronic device that will be connected to a power supply provided in the vehicle,
During execution of a program the microcomputer to operate as a vehicle-mounted electronic device, the code in accordance with the program, depending on the marker portion allowances preset ON / OFF states of the switches connected to the vehicle electronic equipment Means to
A work memory when the microcomputer operating in accordance with the program, you store between the coded own operating conditions including coded ON / OFF state of the power supply is continued from a power supply work Memory ,
Including non-volatile storage means for retaining stored contents even when power supply from the power supply is stopped ,
The microcomputer
In response to a request from the in-vehicle electronic device outside the self-operating state coded is stored in the work memory and nonvolatile storage means, Ri can be outputted der externally,
When an instruction to stop power supply to the in-vehicle electronic device is given, before the power supply to the work memory is stopped, the non-volatile storage means stores its own operation state encoded and stored in the work memory. vehicle electronic apparatus comprising Rukoto is stored in.
前記マイクロコンピュータは、前記ワークメモリに記憶する動作状態に、計時手段が計測する時間経過に基づくタイムスタンプを含めることを特徴とする請求項1または2記載の車載用電子機器。Including timekeeping means to measure the passage of time,
The microcomputer, the in operation state stored in the work memory, according to claim 1 or 2 vehicle electronic device, wherein the inclusion of time stamps based on the elapsed time counting means for measuring.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001034074A JP4398102B2 (en) | 2001-02-09 | 2001-02-09 | Automotive electronics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001034074A JP4398102B2 (en) | 2001-02-09 | 2001-02-09 | Automotive electronics |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002236595A JP2002236595A (en) | 2002-08-23 |
JP4398102B2 true JP4398102B2 (en) | 2010-01-13 |
Family
ID=18897738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001034074A Expired - Fee Related JP4398102B2 (en) | 2001-02-09 | 2001-02-09 | Automotive electronics |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4398102B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1496435A1 (en) * | 2003-07-11 | 2005-01-12 | Yogitech Spa | Dependable microcontroller, method for designing a dependable microcontroller and computer program product therefor |
JP4509603B2 (en) * | 2004-02-27 | 2010-07-21 | 富士重工業株式会社 | Control unit and data transmission method |
JP5000689B2 (en) * | 2009-08-07 | 2012-08-15 | エステーミクロエレクトロニクス ソシエテ アノニム | Temporal correlation of messages transmitted by microprocessor monitor circuits. |
Family Cites Families (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5667505U (en) * | 1979-10-30 | 1981-06-05 | ||
JPS60542A (en) * | 1983-06-17 | 1985-01-05 | Hitachi Ltd | Program tracing device |
JPS63114594A (en) * | 1986-10-30 | 1988-05-19 | Yaskawa Electric Mfg Co Ltd | Trace back method for variable speed driving device |
JPH01243138A (en) * | 1988-03-25 | 1989-09-27 | Hitachi Ltd | System for tracing emulator |
JP2674693B2 (en) * | 1989-04-17 | 1997-11-12 | 富士通株式会社 | Trace information management method |
JPH02307129A (en) * | 1989-05-23 | 1990-12-20 | Nec Corp | Setting/deleting system for snap id output sentence |
JPH04297350A (en) * | 1991-03-27 | 1992-10-21 | Toyota Autom Loom Works Ltd | External memory control method in vehicle |
JPH05100901A (en) * | 1991-10-08 | 1993-04-23 | Nec Ic Microcomput Syst Ltd | Microcomputer |
JPH05250210A (en) * | 1992-02-27 | 1993-09-28 | Nec Corp | Program trace system |
JPH05257736A (en) * | 1992-03-12 | 1993-10-08 | Nec Corp | Program trace system |
JPH06168111A (en) * | 1992-11-30 | 1994-06-14 | Fuji Facom Corp | System for automatically generating debugged statement |
JPH0654383U (en) * | 1992-12-28 | 1994-07-22 | 日新電機株式会社 | Central supervisory controller |
JPH0916432A (en) * | 1995-06-27 | 1997-01-17 | Nec Commun Syst Ltd | Trace data analysis system |
JPH0916202A (en) * | 1995-07-04 | 1997-01-17 | Akebono Brake Ind Co Ltd | Backup method for self-diagnostic data and controller for vehicle electronic equipment with data backup function |
JPH09330104A (en) * | 1996-06-10 | 1997-12-22 | Unisia Jecs Corp | Electronic control system for automobile |
JPH1047151A (en) * | 1996-08-08 | 1998-02-17 | Hitachi Ltd | Electronic control device for automobile |
JP2000172385A (en) * | 1998-12-03 | 2000-06-23 | Clarion Co Ltd | On-vehicle computer and its control method |
-
2001
- 2001-02-09 JP JP2001034074A patent/JP4398102B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2002236595A (en) | 2002-08-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10095567B2 (en) | Micro controller unit including an error indicator module | |
JPH0850557A (en) | Fault recorder of microprocessor | |
JP5051514B2 (en) | Memory error pattern recording system and memory error pattern recording method | |
JP4526111B2 (en) | Microcomputer and debugging method | |
CN115658321A (en) | Method and device for acquiring fault information of automobile instrument, electronic equipment and storage medium | |
WO2007086150A1 (en) | Memory destruction detection method and device | |
JP4398102B2 (en) | Automotive electronics | |
US20240045761A1 (en) | Data integrity verification | |
KR100636513B1 (en) | Tcet expander | |
JP2007522554A (en) | Embedded system analysis apparatus and method for in-vehicle security problematic computer systems | |
JP4558376B2 (en) | controller | |
JPS6146864B2 (en) | ||
JP4359327B2 (en) | Semiconductor integrated circuit device, IC card and inspection device | |
JP2009223714A (en) | Arithmetic circuit and failure analysis method of arithmetic circuit | |
JP2004021922A (en) | Pseudo memory failure injection device | |
JPH10228395A (en) | Abnormality diagnostic device for controller | |
JP2008234358A (en) | Storage device, information processor, and unauthorized writing detection method | |
JPH081605B2 (en) | Electronic control unit for vehicle | |
JPS6375844A (en) | Trouble recovery confirming system | |
JPS60233743A (en) | Fault detecting circuit of computer system | |
CN117194118A (en) | Data access method and data access device for processing unit system | |
JPS6227421B2 (en) | ||
JPS592585Y2 (en) | data processing equipment | |
CN114510376A (en) | XCP calibration data curing system and method | |
JPH0674085A (en) | Self-diagnostic device for vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050927 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051004 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051202 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060627 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060828 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20061017 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061218 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20061222 |
|
A912 | Removal of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20070202 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090714 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091022 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121030 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4398102 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121030 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131030 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131030 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |