JP2004232498A - Creation method for time series freeze frame data and vehicle controlling device - Google Patents

Creation method for time series freeze frame data and vehicle controlling device Download PDF

Info

Publication number
JP2004232498A
JP2004232498A JP2003019363A JP2003019363A JP2004232498A JP 2004232498 A JP2004232498 A JP 2004232498A JP 2003019363 A JP2003019363 A JP 2003019363A JP 2003019363 A JP2003019363 A JP 2003019363A JP 2004232498 A JP2004232498 A JP 2004232498A
Authority
JP
Japan
Prior art keywords
data
storage unit
storage
stored
backup
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.)
Granted
Application number
JP2003019363A
Other languages
Japanese (ja)
Other versions
JP4103606B2 (en
Inventor
Takafumi Nishiseko
貴文 西世古
Yoshio Nakagaki
良夫 中垣
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 JP2003019363A priority Critical patent/JP4103606B2/en
Publication of JP2004232498A publication Critical patent/JP2004232498A/en
Application granted granted Critical
Publication of JP4103606B2 publication Critical patent/JP4103606B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve precision of time series freeze frame data while preventing increase of a processing load on an ECU. <P>SOLUTION: Plural kinds of data including sensor detection data, which require storing, are grouped based on magnitude of their time variations, and periods of backup to a backup RAM 12 are set for every group. Before occurrence of abnormal diagramming, the grouped data requiring storing are stored for updating in a first memory unit of the backup RAM 13 with the periods set for the respective groups. When abnormal diagramming occurs, the data requiring storing are similarly stored in a second memory unit. The data requiring storing are then similarly stored in a third memory unit with storing periods set for every group. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、ダイアグノーシス機能を備えた車両用制御装置に適用される、時系列フリーズフレームデータの作成方法と、その方法を適用した車両の制御装置に関するものである。時系列フリーズフレームデータとは、車載センサからサンプリングされるセンサ検出データや、エンジン制御のために算出された制御データを、時間軸に沿ったいくつかの時点でバックアップRAMに保存することにより得られるデータのことである。
【0002】
【従来の技術】
一般に自動車のECUには、車両に異常が発生していないかどうかをセンサ類から送られてくるデータ(以下、単にセンサ検出データともいう)などに基づいて自己診断する機能、つまりダイアグノーシス機能が組み込まれている。
【0003】
ECUの持つワーク用のメモリに、一時的に格納される多数のセンサ検出データやエンジン制御などのために算出された演算データは、通常、一定周期(たとえば500msec)毎にバックアップ用のメモリに上書き保存されるようになっている。一方、ECUにおいてダイアグ異常発生である旨の判定がなされると、さらに、その異常発生時および異常発生後のセンサ検出データをバックアップ用のメモリに保存するようにしている。ダイアグ異常がいったん発生した後は、メモリ領域を切り換えて上書きを行なわないようにすると、イグニッションをOFFにした後でもバックアップ用のメモリには、少なくとも異常発生時および異常発生前後のフリーズフレームデータが保存される(図8参照)。このように時系列的に保存されたフリーズフレームデータは、これを整備工場等において読み出すことにより、異常発生時におけるセンサ検出データ等の要保存データの挙動(データが示す値の変動)を知ることができるため、異常原因の究明に有用である。
【0004】
【特許文献1】
特開2002−106412号公報
【0005】
【発明が解決しようとする課題】
ところが、ダイアグ異常の発生に深く関連しているデータであっても、図8に例示するようなタイミングでダイアグ異常発生前、ダイアグ異常発生時およびダイアグ異常発生後のバックアップを取ると、得られる時系列フリーズフレームデータからは、ダイアグ異常発生時の挙動を正確に知ることができない場合がある。このような場合、時系列フリーズフレームデータから車両に発生した異常の原因を究明することは困難である。そうかといって、闇雲にバックアップ周期を短くすることは、CPU負荷の増大を招き、通常時の自動車制御に悪影響がおよぶ恐れがある。高性能のCPUは、コスト面での不利を避けられないうえ、時系列フリーズフレームデータの作成とは関係無い部分での大きな設計変更を強いられる可能性もあり、直ちに採用に踏み切れるものではない。
【0006】
また、センサ検出データ等の要保存データは、ワーク用のメモリにおいて更新記憶される周期(更新周期)が互いに異なるのが普通である。たとえば、あるアナログセンサからのデータは4msecおきにサンプリングされてワークメモリに更新記憶されるが、別の要保存データ(センサ検出データに限らず)の更新周期は、4msecよりも遥かに長かったりする(たとえば数十msec)。しかしながら、従来は、どのような要保存データについても、バックアップメモリへのバックアップ周期は一律としていたため、CPU資源を効率良く使用していたとはいえなかった。
【0007】
本発明の課題は、ECUにおける処理負荷の増大を抑制しつつも、時系列フリーズフレームデータの精度を向上させることにある。
【0008】
【課題を解決するための手段及び作用・効果】
上記課題を解決するために本発明は、ダイアグノーシス機能を備えた車両の制御装置において、主記憶手段に記憶されている複数種類の要保存データのバックアップを、ダイアグ異常発生時とその前後に、第1記憶部、第2記憶部および第3記憶部を有するデータ保存用記憶手段に取ることにより、時系列フリーズフレームデータを作成する方法であって、主記憶手段において示す値の時間変化の大小に応じて要保存データのそれぞれにバックアップ周期を設定し、ダイアグ異常発生前の要保存データは、各々に設定したバックアップ周期で第1記憶部に格納するとともに、ダイアグ異常発生時には、各バックアップ周期の計測を継続しながら、そのとき主記憶手段に記憶されている要保存データを第2記憶部に格納し、その後、計測継続中の各バックアップ周期にしたがって、第3記憶部に要保存データをそれぞれ格納することを特徴とする。
【0009】
上記本発明の方法においては、どのような種類の要保存データに対してもバックアップ周期を一律とするのではなく、まず、各要保存データについて主記憶手段での時間変化の大小に見合った周期を設定する。具体的には、時間変化の大きいデータについては十分に短い周期でバックアップを取る一方、時間変化の小さいデータについては従来よりも長い周期でバックアップを取るといったことが可能になる。そして、異常発生前、異常発生時および異常発生後のそれぞれの時期に1対1で対応するように第1記憶部、第2記憶部および第3記憶部を設定し、時期に応じてこれらの記憶部を切り換えながら使用して、時系列フリーズフレームデータを得るのである。その結果、各記憶部に記憶されるフリーズフレームデータは、時間軸に沿った要保存データの挙動を精度良く再現するものとなる。また、バックアップ周期を短くするものと、バックアップ周期を長くするものとを共存させるため、タスク量の相殺を期待でき、CPU負荷の増大がほとんどない場合もありうる。
【0010】
より具体的には、複数種類の要保存データを、それらが主記憶手段において示す値の時間変化の大小を基準にグループ分けして、グループ別にバックアップ周期を設定する方法を採用するとよい。この方法は、いわば要保存データの1つ1つにバックアップ周期を設定する方法と、全ての要保存データに一律にバックアップ周期を設定する従来の方法との折衷案であり、プログラムが煩雑になることを防げる。
【0011】
好適な態様において、ダイアグ異常発生前は、第1記憶部での上書きを許容することにより要保存データのそれぞれについて複数周期分のバックアップを取り続け、ダイアグ異常発生後は、要保存データのそれぞれについて1周期分のバックアップを取るものとする。このようにすると、フリーズフレームデータとしては、少なくともダイアグ異常検出前の複数周期分(複数フレーム)と、異常発生時の1フレーム分と、異常発生後の1フレーム分とが得られることとなり、異常原因の究明作業へのサービス性向上がさらに期待できる。
【0012】
別の局面において、課題を解決するために本発明の第二は、ダイアグノーシス機能を備えた車両の制御装置において、主記憶手段に記憶されている複数種類の要保存データのバックアップを、ダイアグ異常発生時とその前後に、第1記憶部、第2記憶部および第3記憶部を有するデータ保存用記憶手段に取ることにより、時系列フリーズフレームデータを作成する方法であって、主記憶手段における更新周期の長短に応じて要保存データにそれぞれバックアップ周期を設定し、ダイアグ異常発生前の要保存データは、各々に設定したバックアップ周期で第1記憶部に格納するとともに、ダイアグ異常発生時には、各バックアップ周期の計測を継続しながら、そのとき主記憶手段に記憶されている要保存データを第2記憶部に格納し、その後、計測継続中の各バックアップ周期にしたがって、第3記憶部に要保存データをそれぞれ格納することを特徴とする。
【0013】
上記本発明の方法においては、どのような種類の要保存データに対してもバックアップ周期を一律とするのではなく、主記憶手段における更新周期の長短に応じて要保存データにそれぞれバックアップ周期を設定する。具体的には、更新周期が短いデータについては短い周期でバックアップを取る一方、更新周期の長いデータについては長い周期でバックアップを取るといったことが可能になる。そして、異常発生前、異常発生時および異常発生後のそれぞれの時期に1対1で対応するように第1記憶部、第2記憶部および第3記憶部を設定し、時期に応じてこれらの記憶部を切り換えながら使用して、時系列フリーズフレームデータを得るのである。このように、バックアップ周期を短くするべきデータと、そうでないデータとを区別して、時系列フリーズフレームデータの作成に必要なタスク量を配分することにより、CPU資源の有効利用を図ることが可能であり、ひいては時系列フリーズフレームデータの精度向上を図ることができる。
【0014】
また、主記憶手段における更新周期の長短に応じてバックアップ周期を設定する場合、以下に説明するような効果も期待できる。たとえば、図7に示すように、主記憶手段への更新周期(取り込み周期)は最も早い部類に属するが、単位時間あたりの変化量が大きくなることは無い要保存データ(センサ信号)のバックアップを、短い周期で取ることは一見あまり意味の無いことのように思える。しかしながら、全ての要保存データのバックアップ周期を中庸かつ一律に設定していると、センサ自体が短絡と導通とを繰り返すような断続的故障が発生した場合、その断続的故障を時系列フリーズフレームデータとして記録することができない恐れがある。したがって、本発明のように、起こりうる不具合を設計の段階で見越してバックアップ周期を設定すれば、断続的故障の発生を確実に時系列フリーズフレームデータとして記録することができるようになる。
【0015】
また、課題を解決するために本発明は、ダイアグノーシス機能を備えた車両の制御装置において、車両に設けられたセンサ類より取得されるセンサ検出データを含む要保存データを一時的に記憶する主記憶手段と、要保存データを含む異常診断用データに基づいてダイアグ異常の有無を診断するダイアグ異常診断部と、主記憶手段に記憶されている要保存データのバックアップが取られるデータ保存用記憶手段と、要保存データの各々に設定されるバックアップ周期を計測するバックアップ周期計測手段とを備え、データ保存用記憶手段は、要保存データを、その各々に設定されたバックアップ周期で格納する第1記憶部と、ダイアグ異常診断部において異常発生である旨の判定がされたときの要保存データを格納する第2記憶部と、その第2記憶部への要保存データの記憶後に、第1記憶部へのバックアップ周期と同期したバックアップ周期で要保存データを格納する第3記憶部とを含むことを特徴とする。
【0016】
上記本発明の制御装置は、どのような種類の要保存データに対してもバックアップ周期を一律とするのではなく、多数ある要保存データに個別にバックアップ周期を設定し、各記憶部にバックアップを取るように構成したものである。バックアップ周期は、たとえば、主記憶手段において示す値の時間変化の大小に応じて、要保存データの各々に設定することができる。すなわち、時間変化の大きいデータについては十分に短いバックアップ周期を設定して、データ保存用記憶手段に格納される時系列フリーズフレームデータの高精度化を図りつつ、時間変化の小さいデータは長いバックアップ周期を設定して、CPU負荷の増大を抑制するといったことが可能となる。そのため、高性能のCPUが必要になる恐れもない。
【0017】
バックアップ周期は、たとえば、主記憶手段における更新周期の長短に応じて、要保存データの各々に設定することができる。すなわち、更新周期が短いデータについては十分に短いバックアップ周期を設定する一方、更新周期の長いデータについては長いバックアップ周期を設定する。このように、バックアップ周期を短くするべきデータと、そうでないデータとを区別して、時系列フリーズフレームデータの作成に必要なタスク量を配分することにより、CPU資源の有効利用を図ることが可能であり、ひいては時系列フリーズフレームデータの精度向上を図ることができる。
【0018】
【発明の実施の形態】
以下、添付の図面を参照しつつ本発明の実施形態について説明する。
図1は、本発明にかかる自動車の制御装置1と周辺装置の概略を示すブロック図である。自動車の制御装置1は、マルチプレクサ15、A/D変換器17、CPU5、ROM7、カウンタタイマ回路9、RAM11、バックアップRAM13、I/O19および図示しないバッファ回路部、波形整形回路部等を含んで構成される。
【0019】
RAM11は、CPU5が各種センサから取得するセンサ検出データや、エンジン制御などのために算出した演算データを一時的に記憶したり、プログラムの実行に使用されたりするワーク用のメモリである。他方、バックアップRAM13は、ダイアグコードやフリーズフレームデータを格納する記憶部である。バックアップRAM13には、イグニッションがOFFされた後も図示しない電源回路部から電力が供給されており、格納されているデータを記憶保持することができる。このバックアップRAM13は、EEPROMにより構成することもでき、その場合には、バッテリが外されるなどしてECU1への電力供給が断たれてもデータが記憶保持されるので好適である。
【0020】
マルチプレクサ15は、エアフローセンサ21、冷却水温センサ23、吸気温センサ、酸素センサ等の複数種類のアナログセンサからのアナログ信号を選択的に取り込んで、その取り込んだアナログ信号をA/D変換器17に出力する。センサからのアナログ信号はA/D変換器にてデジタル信号に変換されて、I/O19を介してCPU5に入力される。同様に、車速センサ29、回転角センサ31、スイッチ類33等からのデジタル信号はI/O19を介してCPU5に入力される。CPU5が各種センサからサンプリングしたデータは、センサ検出データとしてRAM11に一時的に記憶される。そして、これらのセンサ検出データが参照されつつインジェクション35、イグナイタ37等を制御するための演算が実行され、その演算結果に基づいてエンジンが制御される。
【0021】
また、CPU5においては、エンジン制御に関する処理、各種センサからのデータのサンプリング処理とともに、自動車に異常が発生していないかどうかを自己診断する処理(ダイアグ処理)が実行される。すなわちCPU5は、センサ検出データ等の異常診断用データに基づいて異常の有無を判定する異常診断部としての機能を有する。また、発生した異常の種類によっては、フェイルセーフが作動したり警告灯が点灯したりする。発生した異常の種類はダイアグコードとして、RAM11にいったん記憶され、以下に説明するようにバックアップRAM13に保存される。
【0022】
CPU5が取得するセンサ検出データ、車両を制御するために算出された制御データおよび前述したダイアグコードは、RAM11にその記憶領域が割り当てられている。いったんRAM11に記憶されたセンサ検出データ、制御データおよびダイアグコード等のデータは、要保存データとして扱われ、所定のバックアップ周期でバックアップRAM13に格納される。ここで本発明においては、RAM11において示す値の時間変化の大小に応じて上記要保存データのそれぞれにバックアップ周期を設定している。そして、そのバックアップ周期にしたがって、バックアップRAM13への要保存データの格納を行なうようにしている。バックアップRAM13は、図4(a)(b)に示すように第1記憶部、第2記憶部および第3記憶部を含んで構成されている。特に、第1記憶部は、異常発生前の複数フレーム分(複数周期分)の要保存データを格納する記憶部とされている。
【0023】
多数ある要保存データについていえば、たとえば図2(a)に例示するように、予測され得る時間変化の大小に応じてグループ分けして、グループ毎にバックアップ周期を設定することができる。グループ数については適宜増減、バックアップ周期については適宜調整できることはもちろんである。ただし、グループ数を不必要に増加させると処理量の増大を招くし、バックアップ周期の差を大きくするにはメモリ容量を増やさなければならないので、システムや要件に応じてグループ数、バックアップ周期を設定する必要がある。
【0024】
一方、ダイアグ処理において異常発生である旨の判定がなされた場合は、割込み処理を発生させて、データのバックアップ領域を第1記憶部から第2記憶部に切り換えて、緊急的にバックアップが取られる。このときは、バックアップ周期に関係なく全ての要保存データがRAM11からバックアップRAM13の第2記憶部に複写されるが、各グループに設定したバックアップ周期の計測は継続されている。具体的には、バックアップ周期の計測は、カウンタタイマ回路9とRAM11の所定領域に設定したカウンタとが担っている。要するに、カウンタタイマ回路9が、ダイアグ判定とは無関係に動作するので、ダイアグ異常発生時にもバックアップ周期の計測が停止することは無い。
【0025】
ダイアグ異常発生時の要保存データを第2記憶部に格納した後には、データのバックアップ領域を第3記憶部に切り換えて、計測継続中の各バックアップ周期にしたがって要保存データをそれぞれ格納する。図3に示すように、時間変化が大きい要保存データについてバックアップ周期を十分に短く設定していると、極めて再現性のよい時系列フリーズフレームデータを得ることができる。その一方で、時間変化の小さい要保存データについてはバックアップ周期を長く設定するため、CPU5負荷の増大も抑制される。
【0026】
前述したように、第1記憶部には、各グループ(図2の例ではグループ2)について複数フレームのデータを保持するようにしている。したがって、第1記憶部には、第2記憶部および第3記憶部よりも広いメモリ空間が割り当てられる。なお、第1記憶部、第2記憶部および第3記憶部は、物理的には一体のメモリ空間に割り振られるものであってもよいし、物理的に別体のメモリチップ(パッケージ)としてそれぞれ用意されるものでもよい。
【0027】
異常発生前に、複数フレーム分の要保存データをバックアップRAM13に格納する具体的な手順を示す。図4(a)(b)に示すように、▲1▼▲2▼▲3▼のタイミングでは、要保存データはそれぞれA,B,Cの領域に格納される。次に、▲4▼▲5▼では、C領域のデータはBへ、Bの領域のデータはAへシフトし、▲4▼▲5▼のタイミングのフリーズフレームデータをC領域に格納する。次に、▲6▼のタイミングでダイアグ異常が発生したとすると、異常発生時割込み処理によりD領域(第2記憶部)にフリーズフレームデータを格納する。その後、▲7▼のタイミングでE領域(第3記憶部)にフリーズフレームデータを格納する。つまり、ダイアグ異常発生前のフリーズフレームデータは、第1記憶部において常時更新されている。
【0028】
また、RAM11における要保存データの更新周期の長短に応じてバックアップ周期を設定する方法も好適である。具体的には、図2(b)に例示すように、RAM11における更新周期の長短に応じてグループ分けして、グループ毎にバックアップ周期を設定することができる。ここで、図2(b)のグループNo.0に振り分けられたエンジン冷却水温に着目する。エンジン冷却水温は、図7に示すように、たとえば4msecおきに冷却水温センサからデータがサンプリングされて、RAM11の所定領域に更新記憶される。当然ながら、その挙動は非常に緩やかである。にもかかわらず、バックアップ周期の最も短いグループNo.0に振り分けているのは、冷却水温が著しく高いような異常だけでなく、センサ自体の断続的故障(短絡と導通とを繰り返すような故障)の発生を時系列フリーズフレームデータに確実に反映させるという目的を達成するためである。
【0029】
次に、具体的なロジックを図6のフローチャートに示す。図6のフローチャートに示す本発明の時系列フリーズ処理(時系列フリーズフレームデータ作成処理)は、主として下記(1)〜(3)ステップを含むものとして構成されており、各グループに設定された記憶周期のうち、最も短い記憶周期以下の周期で実行されるものである。
(1)バックアップ周期を計測するために各グループに1対1で設定され、かつ当該時系列フリーズ処理が終了しても値が保持されるカウンタをそれぞれインクリメント(+1)していくステップ。
(2)各グループの記憶時期が到来したかどうかを各カウンタの値を参照して判断するステップ。
(3)記憶時期となった旨の判断がされたグループについては対応するカウンタをゼロにクリアして、異常発生前ならば第1記憶部に、異常発生後ならば第3記憶部に、各グループに属する要保存データを格納するステップ。
【0030】
すなわち、バックアップRAM13にフリーズフレームデータを記憶させるためのサブルーチンがグループ別に用意されているわけではなく、1つのサブルーチンで各グループのバックアップ周期の到来を監視しているのである。これにより、CPU5のタスク量を最小限度にとどめるようにしている。以下、フローチャートを参照して各ステップを具体的に説明する。
【0031】
まず、図6の時系列フリーズ処理に用いるRAMについて説明する。カウンタ(C)の値は、グループNo.に相当する。所定値(M)は、カウンタ(C)で用いるグループ数を示す閾値である。たとえば、図2に示したようにグループ0、グループ1、グループ2にグルーピングしたのならば、M=3に設定されることとなる。T[C][j]は、二次元データ配列で、Cは上記カウンタ(C)の値と同じである。jは、パラメータ0、1、2の値をとる。データ内容は以下の通りである。T[C][0]は、対象グループの処理周期であるかを判定するカウンタである。T[C][1]は、対象グループの周期を示す定数が格納される。たとえば、図2のグループ0の例でいうと、バックアップ周期を100msecとしているので、図6の時系列フリーズ処理をコールする周期を4msecに設定すると、T[C][1]=25となる。T[C][2]は、対象グループについて、異常発生後のデータを第3記憶部に格納したかどうかを示すフラグである。
【0032】
図6の時系列フリーズ処理は、上記したように、たとえば4msecの所定時間毎にコールされる。まず、ST1においては、処理の対象グループNo.を示すカウンタ(C)の値がゼロ(初期値)に設定される。このカウンタ(C)は、図2に示した各グループにかかる周期計測およびバックアップ動作を順次的に行うためのものである。
【0033】
次に、ST2において上記のカウンタ(C)が所定値(M)以上であるかどうか判断される。グループNo.を示すカウンタ(C)が(M)以上となった場合に、図6の時系列フリーズ処理は終了する。時系列フリーズ処理の実行当初ならば、C=0に設定されるので、ST3に進むこととなる。ST3においては、カウンタ(T[C][0])がインクリメントされる。つまり、前述したステップ(1)は、このST3に該当するステップである。
【0034】
次に、ST4においてカウンタ(T[C][0])が、対象グループの周期(T[C][1])となったかどうかが判断される。つまり、ST4は、前述した(2)のステップに該当する。ST4において、YESの場合には、カウンタ(T[C][0])がクリアされ、フラグ(T[C][2])の状態を参照することにより、対象グループの異常発生後のデータを第3記憶部に格納したかどうかが判断される(ST5,6)。つまり、第3記憶部へのデータ書き込みは、各グループにつき1回しか行なわないようにして、意味のない上書きを行なわないようにしている。このことも、全体の処理量の増大抑制に寄与している。
【0035】
ST6においてフラグ(T[C][2])がONされている旨の判断がされた場合には、ST11にジャンプして、グループを示すカウンタ(C)をインクリメント(+1)する。他方、フラグ(T[C][2])がONされていない場合には、ST7において異常検出済みであるかどうかが判断される。異常検出済みでない場合には、対象グループの異常検出前データが第1記憶部に格納される(ST8)。そして、グループを示すカウンタ(C)がインクリメント(+1)される。
【0036】
異常検出済みである場合には、対象グループの異常検出後データを第3記憶部に格納するとともに(ST9)、フラグ(T[C][2])がONに設定され、これにより対象グループの異常発生後データの第3記憶部へのバックアップが完了したことが記録される(ST10)。これらの説明から分かるように、ST7,8,9は、前述した(3)のステップに該当する。そして、ST11において、グループを示すカウンタ(C)がインクリメントされるので、グループ0、グループ1およびグループ2の全グループについて、順次、ST2〜ST11までの処理が実行されるようになっている。
【0037】
なお、ST8においては、図4で説明したように第1記憶部を複数領域に区切って、その各々に異常発生前のフリーズフレームデータを時系列的に記憶更新していくために、図5に示す処理がコールされる。まず、図5のフローチャート中に示す略号について説明する。「P」は、バックアップRAM13の第1記憶部が記憶しているポインタであり、CPU5の起動とともに「0」にセットされる。「Y」は、第1記憶部に記憶する周期数である。図4を例示したように、本実施形態では異常発生前は、各グループ3周期分のフリーズフレームデータを保存するようにしているため、Y=3となる。「i」は、RAMを探索するカウンタである。RAM1[M][Y]は、第1記憶部に相当するRAMである。
【0038】
まず、S1,S2,S3の処理が図4の▲1▼▲2▼▲3▼のタイミングで実行されることにより、要保存データはそれぞれA,B,Cの領域に順番に格納される。ポインタPが周期数Y以上となった場合、S4に進み、RAMをサーチするカウンタiが「1」にセットされる。続くS5を経て、RAM1[C][i]に格納されているデータが、RAM1[C][i−1]にシフトされ、カウンタiがインクリメントされる(S6,S7)。つまり、S5〜S7は、フリーズフレームデータを第1記憶部の先頭側にシフトさせて、第1記憶部に格納されているフリーズフレームデータのうち、最も古いものを消去するステップである。このようなシフト処理が終了したら、第1記憶部の最後尾の領域(図4の例では領域C)に、そのときの要保存データを格納する。
【図面の簡単な説明】
【図1】自動車(車両)のECUのブロック図。
【図2】要保存データのグループ分けおよび各グループに設定されるバックアップ周期の一例。
【図3】本発明の時系列フリーズフレームデータの作成方法より得られる効果を説明する図。
【図4】バックアップRAMへの要保存データの格納手順を示す説明図。
【図5】バックアップRAMの第1記憶部に、複数周期分の要保存データを格納する処理のフローチャート。
【図6】本発明の時系列フリーズフレームデータの作成方法の要部を示すフローチャート。
【図7】センサ検出データのサンプリング周期とバックアップ周期とを示す説明図。
【図8】従来の時系列フリーズフレームデータの作成方法の問題点を説明する図。
【符号の説明】
1 制御装置(エンジンECU)
5 CPU(異常診断部)
7 ROM
9 カウンタタイマ回路(バックアップ周期計測手段)
11 RAM(主記憶手段、バックアップ周期計測手段)
13 バックアップRAM(データ保存用記憶手段)
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a method for generating time-series freeze frame data applied to a vehicle control device having a diagnosis function, and a vehicle control device to which the method is applied. The time-series freeze frame data is obtained by storing sensor detection data sampled from a vehicle-mounted sensor and control data calculated for engine control in a backup RAM at several points along a time axis. It is data.
[0002]
[Prior art]
Generally, the ECU of an automobile has a function of performing a self-diagnosis based on data sent from sensors (hereinafter, also simply referred to as sensor detection data) to determine whether or not an abnormality has occurred in the vehicle, that is, a diagnosis function. It has been incorporated.
[0003]
A large number of sensor detection data temporarily stored in a work memory of the ECU and calculation data calculated for engine control or the like are usually overwritten on a backup memory at regular intervals (for example, 500 msec). It is to be saved. On the other hand, when the ECU determines that a diagnosis abnormality has occurred, the sensor detection data at the time of occurrence of the abnormality and after the occurrence of the abnormality are further stored in a backup memory. Once a diagnostic error has occurred, switch the memory area so that overwriting is not performed. Even after the ignition is turned off, the backup memory stores at least the freeze frame data at the time of the error and before and after the error. (See FIG. 8). By reading out the freeze frame data stored in time series at a maintenance shop or the like, the behavior of the data to be stored such as sensor detection data at the time of an abnormality (a change in the value indicated by the data) can be known. It is useful for investigating the cause of abnormalities.
[0004]
[Patent Document 1]
JP-A-2002-106412
[0005]
[Problems to be solved by the invention]
However, even if the data is deeply related to the occurrence of a diagnostic error, it can be obtained by taking a backup before the diagnostic error, at the diagnostic error occurrence, and after the diagnostic error occurrence at the timing illustrated in FIG. In some cases, the behavior at the time of occurrence of a diagnosis abnormality cannot be accurately known from the sequence freeze frame data. In such a case, it is difficult to determine the cause of the abnormality that has occurred in the vehicle from the time-series freeze frame data. On the other hand, shortening the backup cycle unnecessarily increases the load on the CPU and may adversely affect vehicle control during normal times. High-performance CPUs are unavoidable in terms of cost, and may be forced to undergo major design changes in parts unrelated to the creation of time-series freeze frame data. .
[0006]
In addition, the storage required data such as sensor detection data and the like are usually different from each other in a cycle (update cycle) in which the data is updated and stored in the work memory. For example, data from a certain analog sensor is sampled every 4 msec and updated and stored in the work memory, but the update cycle of another storage-necessary data (not limited to sensor detection data) is much longer than 4 msec. (For example, several tens of msec). However, in the past, the backup cycle to the backup memory was constant for any data to be stored, so that it could not be said that the CPU resources were used efficiently.
[0007]
An object of the present invention is to improve the accuracy of time-series freeze frame data while suppressing an increase in processing load on an ECU.
[0008]
[Means for Solving the Problems and Functions / Effects]
In order to solve the above-described problems, the present invention provides a control apparatus for a vehicle having a diagnosis function, in which a backup of a plurality of types of storage-necessary data stored in a main storage unit is performed before and after a diagnosis abnormality occurs, A method for creating time-series freeze frame data by storing in a data storage storage unit having a first storage unit, a second storage unit, and a third storage unit, wherein a magnitude of a time change of a value indicated in a main storage unit is changed. A backup cycle is set for each of the data to be saved according to the above, and the data to be saved before the occurrence of the diagnostic error is stored in the first storage unit at the backup cycle set for each. While the measurement is continued, the data to be stored, which is stored in the main storage unit at that time, is stored in the second storage unit. According Each backup cycle, and storing the main data stored respectively in the third storage unit.
[0009]
In the method of the present invention, the backup cycle is not uniform for any kind of data to be stored. First, a cycle corresponding to the magnitude of the time change in the main storage means for each piece of data to be stored. Set. More specifically, it is possible to back up data with a large time change in a sufficiently short cycle, while backing up data with a small time change in a longer cycle than before. The first storage unit, the second storage unit, and the third storage unit are set so as to correspond one-to-one with each time before, at the time of, and after the occurrence of the abnormality. By using the storage unit while switching, time-series freeze frame data is obtained. As a result, the freeze frame data stored in each storage unit accurately reproduces the behavior of the data requiring storage along the time axis. Further, since the backup cycle is shortened and the backup cycle is extended, the task amount can be expected to be offset, and the CPU load may hardly increase.
[0010]
More specifically, it is preferable to adopt a method in which a plurality of types of data to be stored are grouped based on the magnitude of the time change of the value indicated in the main storage means, and a backup cycle is set for each group. This method is a compromise between a method of setting a backup cycle for each piece of data to be stored and a conventional method of setting a backup cycle uniformly for all data to be stored, which makes the program complicated. Can prevent that.
[0011]
In a preferred embodiment, before the occurrence of the diagnosis abnormality, the overwriting in the first storage unit is allowed to continue taking a backup for a plurality of cycles for each of the data to be stored. It is assumed that the backup for the cycle is taken. In this manner, as freeze frame data, at least a plurality of cycles (a plurality of frames) before the diagnosis abnormality detection, one frame when the abnormality occurs, and one frame after the abnormality occurrence are obtained. Further improvement in serviceability for the investigation of the cause can be expected.
[0012]
In another aspect, in order to solve the problem, a second aspect of the present invention provides a control apparatus for a vehicle having a diagnosis function, wherein a backup of a plurality of types of storage-necessary data stored in a main storage unit is performed based on a diagnosis abnormality. A method of creating time-series freeze frame data by storing the data in a data storage storage unit having a first storage unit, a second storage unit, and a third storage unit before and after the occurrence of the freeze frame data. A backup cycle is set for each of the data to be saved according to the length of the update cycle, and the data to be saved before the occurrence of the diagnostic error is stored in the first storage unit at the set backup cycle. While continuing the measurement of the backup cycle, the data to be stored, which is stored in the main storage unit at that time, is stored in the second storage unit. According Each backup cycle of measuring ongoing, characterized by storing the principal data stored respectively in the third storage unit.
[0013]
In the method of the present invention, the backup cycle is not uniform for any kind of data requiring storage, but the backup cycle is set for each data requiring storage according to the length of the update cycle in the main storage means. I do. More specifically, it is possible to back up data with a short update cycle in a short cycle while backing up data with a long update cycle in a long cycle. The first storage unit, the second storage unit, and the third storage unit are set so as to correspond one-to-one with each time before, at the time of, and after the occurrence of the abnormality. By using the storage unit while switching, time-series freeze frame data is obtained. In this way, by distinguishing between data for which the backup cycle should be shortened and data for which the backup cycle should not be shortened and allocating the task amount necessary for creating the time-series freeze frame data, it is possible to effectively use CPU resources. In addition, it is possible to improve the accuracy of time-series freeze frame data.
[0014]
Further, when the backup cycle is set according to the length of the update cycle in the main storage unit, the following effects can be expected. For example, as shown in FIG. 7, the backup cycle of the data to be stored (sensor signal), which belongs to the fastest update cycle (acquisition cycle) in the main storage unit but does not increase the amount of change per unit time, is as follows. At first glance, taking a short cycle seems like it doesn't make much sense. However, if the backup cycle of all data to be stored is set to a moderate and uniform interval, if an intermittent failure occurs such that the sensor itself repeats short-circuiting and conduction, the intermittent failure will be detected in the time-series freeze frame data. May not be recorded as Therefore, if a backup cycle is set in anticipation of a possible failure at the design stage as in the present invention, the occurrence of an intermittent failure can be reliably recorded as time-series freeze frame data.
[0015]
According to another aspect of the present invention, there is provided a vehicle control apparatus having a diagnosis function, which temporarily stores storage-necessary data including sensor detection data obtained from sensors provided in the vehicle. Storage means, a diagnosis abnormality diagnosis section for diagnosing the presence / absence of a diagnosis abnormality based on abnormality diagnosis data including the storage required data, and a data storage storage means for backing up the storage required data stored in the main storage means And backup cycle measuring means for measuring a backup cycle set for each of the data to be stored, wherein the storage means for data storage stores the data to be stored at the backup cycle set for each of them. A second storage unit for storing data to be stored when an abnormality is determined to have occurred in the diagnosis abnormality diagnosis unit; After storage of the main data stored in the storage unit, characterized in that it comprises a third storage unit for storing main storage data backup period synchronized with the backup period of the first storage unit.
[0016]
The control device of the present invention does not make the backup cycle uniform for any kind of data to be stored, but sets a backup cycle individually for a large number of data to be stored, and backs up to each storage unit. It is configured to take. The backup cycle can be set for each of the data to be stored, for example, according to the magnitude of the time change of the value indicated in the main storage means. That is, a sufficiently short backup cycle is set for data having a large time change, and the time series freeze frame data stored in the data storage means is improved in accuracy. Can be set to suppress an increase in CPU load. Therefore, there is no fear that a high-performance CPU is required.
[0017]
The backup cycle can be set for each of the data to be stored, for example, according to the length of the update cycle in the main storage unit. That is, a sufficiently short backup cycle is set for data having a short update cycle, while a long backup cycle is set for data having a long update cycle. In this way, by distinguishing between data for which the backup cycle should be shortened and data for which the backup cycle should not be shortened and allocating the task amount necessary for creating the time-series freeze frame data, it is possible to effectively use CPU resources. In addition, it is possible to improve the accuracy of time-series freeze frame data.
[0018]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.
FIG. 1 is a block diagram schematically showing an automobile control device 1 and peripheral devices according to the present invention. The control device 1 of the vehicle includes a multiplexer 15, an A / D converter 17, a CPU 5, a ROM 7, a counter timer circuit 9, a RAM 11, a backup RAM 13, an I / O 19, a buffer circuit unit (not shown), a waveform shaping circuit unit, and the like. Is done.
[0019]
The RAM 11 is a work memory that temporarily stores sensor detection data obtained by the CPU 5 from various sensors and calculation data calculated for engine control and the like, and is used for executing programs. On the other hand, the backup RAM 13 is a storage unit that stores a diagnostic code and freeze frame data. Even after the ignition is turned off, the backup RAM 13 is supplied with power from a power supply circuit unit (not shown), and can store and hold stored data. The backup RAM 13 may be constituted by an EEPROM. In this case, even if the power supply to the ECU 1 is cut off by removing the battery or the like, the data is preferably stored and held.
[0020]
The multiplexer 15 selectively takes in analog signals from a plurality of types of analog sensors such as an air flow sensor 21, a cooling water temperature sensor 23, an intake air temperature sensor, and an oxygen sensor, and outputs the taken analog signals to the A / D converter 17. Output. An analog signal from the sensor is converted into a digital signal by an A / D converter and input to the CPU 5 via the I / O 19. Similarly, digital signals from the vehicle speed sensor 29, the rotation angle sensor 31, the switches 33, and the like are input to the CPU 5 via the I / O 19. Data sampled by the CPU 5 from various sensors is temporarily stored in the RAM 11 as sensor detection data. Then, an operation for controlling the injection 35, the igniter 37 and the like is executed while referring to the sensor detection data, and the engine is controlled based on the operation result.
[0021]
In addition, the CPU 5 executes a process related to engine control, a process of sampling data from various sensors, and a process of self-diagnosing whether an abnormality has occurred in the vehicle (diagnosing process). That is, the CPU 5 has a function as an abnormality diagnosis unit that determines whether there is an abnormality based on abnormality diagnosis data such as sensor detection data. Further, depending on the type of abnormality that has occurred, the fail-safe is activated or the warning light is turned on. The type of abnormality that has occurred is temporarily stored in the RAM 11 as a diagnostic code, and is stored in the backup RAM 13 as described below.
[0022]
The storage areas of the sensor detection data, the control data calculated for controlling the vehicle, and the above-described diagnostic code obtained by the CPU 5 are allocated to the RAM 11. The data such as the sensor detection data, the control data, and the diagnostic code once stored in the RAM 11 are treated as data requiring storage, and stored in the backup RAM 13 at a predetermined backup cycle. Here, in the present invention, a backup cycle is set for each of the above-mentioned data to be stored according to the magnitude of the time change of the value shown in the RAM 11. Then, the storage required data is stored in the backup RAM 13 in accordance with the backup cycle. The backup RAM 13 includes a first storage unit, a second storage unit, and a third storage unit as shown in FIGS. In particular, the first storage unit is a storage unit that stores the required storage data for a plurality of frames (a plurality of cycles) before the occurrence of the abnormality.
[0023]
Speaking of a large number of data to be stored, for example, as illustrated in FIG. 2A, a backup cycle can be set for each group by grouping according to the magnitude of a time change that can be predicted. Needless to say, the number of groups can be appropriately increased or decreased, and the backup cycle can be appropriately adjusted. However, if the number of groups is increased unnecessarily, the processing amount will increase, and the memory capacity must be increased to increase the difference in backup cycle. Therefore, set the number of groups and the backup cycle according to the system and requirements. There is a need to.
[0024]
On the other hand, if it is determined in the diagnosis process that an abnormality has occurred, an interrupt process is generated, the data backup area is switched from the first storage unit to the second storage unit, and an emergency backup is performed. . At this time, all the data to be stored is copied from the RAM 11 to the second storage unit of the backup RAM 13 regardless of the backup cycle, but the measurement of the backup cycle set for each group is continued. Specifically, the measurement of the backup cycle is performed by the counter timer circuit 9 and a counter set in a predetermined area of the RAM 11. In short, since the counter timer circuit 9 operates irrespective of the diagnosis, the measurement of the backup cycle does not stop even when a diagnosis abnormality occurs.
[0025]
After storing the required storage data at the time of diagnosis abnormality occurrence in the second storage unit, the data backup area is switched to the third storage unit, and the required storage data is stored according to each backup cycle during the measurement. As shown in FIG. 3, if the backup cycle is set sufficiently short for the data to be stored that has a large time change, it is possible to obtain time-series freeze frame data with extremely high reproducibility. On the other hand, since the backup cycle is set long for the data that needs to be saved that has a small time change, an increase in the load on the CPU 5 is also suppressed.
[0026]
As described above, the first storage unit stores data of a plurality of frames for each group (group 2 in the example of FIG. 2). Therefore, a larger memory space is allocated to the first storage unit than to the second storage unit and the third storage unit. The first storage unit, the second storage unit, and the third storage unit may be physically allocated to an integrated memory space, or may be physically separate memory chips (packages). It may be prepared.
[0027]
A specific procedure for storing data to be stored for a plurality of frames in the backup RAM 13 before an abnormality occurs will be described. As shown in FIGS. 4 (a) and 4 (b), at the timings (1), (2) and (3), the data to be stored is stored in areas A, B and C, respectively. Next, in (4) and (5), the data in the C area is shifted to B and the data in the B area is shifted to A, and the freeze frame data at the timing of (4) and (5) is stored in the C area. Next, assuming that a diagnostic error occurs at the timing of (6), freeze frame data is stored in the D area (second storage unit) by interrupt processing at the time of error occurrence. After that, the freeze frame data is stored in the E area (third storage unit) at the timing of (7). That is, the freeze frame data before the occurrence of the diagnosis abnormality is constantly updated in the first storage unit.
[0028]
Further, a method of setting the backup cycle according to the length of the update cycle of the data to be stored in the RAM 11 is also suitable. Specifically, as shown in FIG. 2B, the backup cycle can be set for each group by dividing the RAM 11 into groups according to the length of the update cycle. Here, the group No. shown in FIG. Attention is paid to the engine cooling water temperature assigned to zero. As shown in FIG. 7, the engine coolant temperature is sampled from the coolant temperature sensor every 4 msec, for example, and is updated and stored in a predetermined area of the RAM 11. Of course, its behavior is very slow. Nevertheless, the group No. with the shortest backup cycle. The reason for distributing to 0 is that the occurrence of an intermittent failure of the sensor itself (a failure that repeats short circuit and conduction) as well as an abnormality such as extremely high cooling water temperature is reliably reflected in the time-series freeze frame data. This is to achieve the purpose.
[0029]
Next, the specific logic is shown in the flowchart of FIG. The time-series freeze processing (time-series freeze frame data creation processing) of the present invention shown in the flowchart of FIG. 6 is mainly configured to include the following steps (1) to (3), and the storage set for each group is stored. It is executed in a cycle shorter than the shortest storage cycle among the cycles.
(1) A step of incrementing (+1) counters which are set one-to-one for each group in order to measure the backup cycle and which retain their values even after the time-series freeze processing ends.
(2) A step of determining whether or not the storage time of each group has come by referring to the value of each counter.
(3) For the group for which it is determined that the storage time has come, the corresponding counter is cleared to zero, and before the occurrence of the abnormality, the first storage unit, and after the occurrence of the abnormality, the third storage unit. Storing the data to be saved belonging to the group;
[0030]
That is, a subroutine for storing freeze frame data in the backup RAM 13 is not prepared for each group, but one subroutine monitors the arrival of the backup cycle of each group. As a result, the task amount of the CPU 5 is kept to a minimum. Hereinafter, each step will be specifically described with reference to a flowchart.
[0031]
First, the RAM used for the time-series freeze process in FIG. 6 will be described. The value of the counter (C) is the group No. Is equivalent to The predetermined value (M) is a threshold value indicating the number of groups used in the counter (C). For example, if grouping is performed into group 0, group 1, and group 2 as shown in FIG. 2, M = 3 is set. T [C] [j] is a two-dimensional data array, and C is the same as the value of the counter (C). j takes the values of parameters 0, 1, and 2. The data contents are as follows. T [C] [0] is a counter that determines whether or not it is the processing cycle of the target group. In T [C] [1], a constant indicating the cycle of the target group is stored. For example, in the case of the group 0 in FIG. 2, the backup cycle is 100 msec. Therefore, if the cycle for calling the time-series freeze processing in FIG. 6 is set to 4 msec, T [C] [1] = 25. T [C] [2] is a flag indicating whether the data after the occurrence of the abnormality has been stored in the third storage unit for the target group.
[0032]
As described above, the time-series freeze process in FIG. 6 is called every predetermined time of, for example, 4 msec. First, in ST1, the processing target group No. Is set to zero (initial value). The counter (C) is for sequentially performing cycle measurement and backup operation for each group shown in FIG.
[0033]
Next, in ST2, it is determined whether the value of the counter (C) is equal to or more than a predetermined value (M). Group No. When the value of the counter (C) indicating the value becomes equal to or more than (M), the time-series freeze processing of FIG. 6 ends. If the time-series freeze process is initially executed, C = 0 is set, and the process proceeds to ST3. In ST3, the counter (T [C] [0]) is incremented. That is, step (1) described above corresponds to step ST3.
[0034]
Next, in ST4, it is determined whether or not the counter (T [C] [0]) has reached the cycle (T [C] [1]) of the target group. That is, ST4 corresponds to the above-described step (2). In the case of YES in ST4, the counter (T [C] [0]) is cleared, and the data after the occurrence of the abnormality in the target group is referred to by referring to the state of the flag (T [C] [2]). It is determined whether the data is stored in the third storage unit (ST5, ST6). In other words, data writing to the third storage unit is performed only once for each group, so that meaningless overwriting is not performed. This also contributes to suppressing an increase in the overall processing amount.
[0035]
If it is determined in ST6 that the flag (T [C] [2]) is ON, the process jumps to ST11, where the counter (C) indicating the group is incremented (+1). On the other hand, if the flag (T [C] [2]) is not turned on, it is determined in ST7 whether an abnormality has been detected. If the abnormality has not been detected, the data before abnormality detection of the target group is stored in the first storage unit (ST8). Then, the counter (C) indicating the group is incremented (+1).
[0036]
If the abnormality has been detected, the data after the abnormality detection of the target group is stored in the third storage unit (ST9), and the flag (T [C] [2]) is set to ON, thereby setting the target group. It is recorded that the backup of the data after the occurrence of the abnormality in the third storage unit is completed (ST10). As can be understood from these descriptions, STs 7, 8, and 9 correspond to the above-described step (3). Then, in ST11, the counter (C) indicating the group is incremented, so that the processing of ST2 to ST11 is sequentially performed for all groups of group 0, group 1, and group 2.
[0037]
In ST8, as described with reference to FIG. 4, the first storage section is divided into a plurality of areas, and the frozen frame data before the occurrence of the abnormality is stored and updated in time series in each of the sections. The indicated process is called. First, the abbreviations shown in the flowchart of FIG. 5 will be described. “P” is a pointer stored in the first storage unit of the backup RAM 13 and is set to “0” when the CPU 5 is started. “Y” is the number of cycles stored in the first storage unit. As illustrated in FIG. 4, in the present embodiment, before the occurrence of an abnormality, three frames of freeze frame data for each group are stored, so that Y = 3. “I” is a counter for searching the RAM. RAM1 [M] [Y] is a RAM corresponding to the first storage unit.
[0038]
First, by executing the processing of S1, S2, and S3 at the timings of (1), (2), and (3) in FIG. 4, the data to be stored is sequentially stored in the areas A, B, and C, respectively. If the pointer P has become equal to or greater than the number of cycles Y, the process proceeds to S4, and the counter i for searching the RAM is set to "1". After S5, the data stored in RAM1 [C] [i] is shifted to RAM1 [C] [i-1], and the counter i is incremented (S6, S7). That is, S5 to S7 are steps of shifting the freeze frame data to the head side of the first storage unit and erasing the oldest freeze frame data from the freeze frame data stored in the first storage unit. When such shift processing is completed, the data to be saved at that time is stored in the last area (the area C in the example of FIG. 4) of the first storage unit.
[Brief description of the drawings]
FIG. 1 is a block diagram of an ECU of an automobile (vehicle).
FIG. 2 shows an example of grouping of data to be stored and a backup cycle set for each group.
FIG. 3 is a view for explaining effects obtained by the time-series freeze frame data creating method according to the present invention;
FIG. 4 is an explanatory diagram showing a procedure for storing required storage data in a backup RAM.
FIG. 5 is a flowchart of a process of storing storage required data for a plurality of cycles in a first storage unit of a backup RAM.
FIG. 6 is a flowchart showing a main part of a method for generating time-series freeze frame data of the present invention.
FIG. 7 is an explanatory diagram showing a sampling cycle and a backup cycle of sensor detection data.
FIG. 8 is a view for explaining a problem of a conventional method for generating time-series freeze frame data.
[Explanation of symbols]
1 control unit (engine ECU)
5 CPU (abnormality diagnosis unit)
7 ROM
9 Counter timer circuit (backup cycle measuring means)
11 RAM (main storage means, backup cycle measurement means)
13 Backup RAM (data storage storage means)

Claims (7)

ダイアグノーシス機能を備えた車両の制御装置において、主記憶手段に記憶されている複数種類の要保存データのバックアップを、ダイアグ異常発生時とその前後に、第1記憶部、第2記憶部および第3記憶部を有するデータ保存用記憶手段に取ることにより、時系列フリーズフレームデータを作成する方法であって、前記主記憶手段において示す値の時間変化の大小に応じて前記要保存データのそれぞれにバックアップ周期を設定し、ダイアグ異常発生前の前記要保存データは、各々に設定したバックアップ周期で前記第1記憶部に格納するとともに、ダイアグ異常発生時には、各バックアップ周期の計測を継続しながら、そのとき前記主記憶手段に記憶されている前記要保存データを前記第2記憶部に格納し、その後、計測継続中の各バックアップ周期にしたがって、前記第3記憶部に前記要保存データをそれぞれ格納することを特徴とする時系列フリーズフレームデータ作成方法。In a vehicle control device having a diagnosis function, a backup of a plurality of types of storage-necessary data stored in a main storage unit is performed at a first storage unit, a second storage unit, and a second storage unit before and after a diagnosis abnormality occurs. A method for creating time-series freeze frame data by storing the data in a data storage storage unit having three storage units, wherein each of the storage-necessary data is stored in accordance with a magnitude of a time change of a value indicated in the main storage unit. A backup cycle is set, and the data to be stored before the occurrence of the diagnostic error is stored in the first storage unit at the set backup cycle, and when a diagnostic error occurs, the measurement of each backup cycle is continued while At this time, the storage-necessary data stored in the main storage unit is stored in the second storage unit. Accordance up period, sequential freeze frame data creation method when characterized by storing the main store data respectively to said third storage unit. 複数種類の前記要保存データを、それらが前記主記憶手段において示す値の時間変化の大小を基準にグループ分けして、グループ別に前記バックアップ周期を設定する請求項1記載の時系列フリーズフレームデータ作成方法。2. The time-series freeze frame data generation according to claim 1, wherein a plurality of types of the storage-necessary data are grouped based on a magnitude of a time change of a value indicated in the main storage unit, and the backup cycle is set for each group. Method. ダイアグノーシス機能を備えた車両の制御装置において、主記憶手段に記憶されている複数種類の要保存データのバックアップを、ダイアグ異常発生時とその前後に、第1記憶部、第2記憶部および第3記憶部を有するデータ保存用記憶手段に取ることにより、時系列フリーズフレームデータを作成する方法であって、前記主記憶手段における更新周期の長短に応じて前記要保存データにそれぞれバックアップ周期を設定し、ダイアグ異常発生前の前記要保存データは、各々に設定したバックアップ周期で前記第1記憶部に格納するとともに、ダイアグ異常発生時には、各バックアップ周期の計測を継続しながら、そのとき前記主記憶手段に記憶されている前記要保存データを前記第2記憶部に格納し、その後、計測継続中の各バックアップ周期にしたがって、前記第3記憶部に前記要保存データをそれぞれ格納することを特徴とする時系列フリーズフレームデータ作成方法。In a vehicle control device having a diagnosis function, a backup of a plurality of types of storage-necessary data stored in a main storage unit is performed at a first storage unit, a second storage unit, and a second storage unit before and after a diagnosis abnormality occurs. A method for creating time-series freeze frame data by storing data in a data storage storage unit having three storage units, wherein a backup cycle is set for each of the storage-necessary data according to the length of an update cycle in the main storage unit. The data to be saved before the occurrence of the diagnostic error is stored in the first storage unit at the backup cycle set for each, and when the diagnostic error occurs, the measurement of each backup cycle is continued while the main storage is being executed. Storing the required storage data stored in the storage unit in the second storage unit; Period accordingly sequential freeze frame data creation method when characterized by storing the main store data respectively to said third storage unit. 複数種類の前記要保存データを、前記主記憶手段での更新周期の長短に応じてグループ分けして、グループ別に前記バックアップ周期を設定する請求項3記載の時系列フリーズフレームデータ作成方法。4. The time-series freeze frame data creating method according to claim 3, wherein a plurality of types of the storage-necessary data are grouped according to a length of an update cycle in the main storage unit, and the backup cycle is set for each group. ダイアグ異常発生前は、前記第1記憶部での上書きを許容することにより前記要保存データのそれぞれについて複数周期分のバックアップを取り続け、ダイアグ異常発生後は、前記要保存データのそれぞれについて1周期分のバックアップを取るものとする請求項1ないし4のいずれか1項に記載の時系列フリーズフレームデータ作成方法。Before the occurrence of the diagnosis abnormality, the overwriting in the first storage unit is allowed to continue taking backups for a plurality of cycles of each of the data to be stored. 5. The time-series freeze frame data creation method according to claim 1, wherein a backup of the time-series freeze frame data is taken. 前記要保存データは、車両に設けられたセンサ類より取得されるセンサ検出データと、車両の動力源を制御するための制御データと、ダイアグコードとを含む請求項1ないし5のいずれか1項に記載の時系列フリーズフレームデータ作成方法。The said storage required data contains the sensor detection data acquired from the sensors provided in the vehicle, the control data for controlling the power source of a vehicle, and the diagnostic code. Time-series freeze frame data creation method described in. ダイアグノーシス機能を備えた車両の制御装置において、車両に設けられたセンサ類より取得されるセンサ検出データを含む要保存データを一時的に記憶する主記憶手段と、前記要保存データを含む異常診断用データに基づいてダイアグ異常の有無を診断するダイアグ異常診断部と、前記主記憶手段に記憶されている前記要保存データのバックアップが取られるデータ保存用記憶手段と、前記要保存データの各々に設定されるバックアップ周期を計測するバックアップ周期計測手段とを備え、前記データ保存用記憶手段は、前記要保存データを、その各々に設定されたバックアップ周期で格納する第1記憶部と、前記ダイアグ異常診断部において異常発生である旨の判定がされたときの前記要保存データを格納する第2記憶部と、その第2記憶部への前記要保存データの記憶後に、前記第1記憶部へのバックアップ周期と同期したバックアップ周期で前記要保存データを格納する第3記憶部とを含むことを特徴とする車両の制御装置。In a control device for a vehicle having a diagnosis function, a main storage means for temporarily storing required storage data including sensor detection data obtained from sensors provided in the vehicle, and an abnormality diagnosis including the required storage data Diagnostic diagnosis unit for diagnosing the presence / absence of a diagnostic abnormality based on the data for use, data storage means for backing up the required data stored in the main storage means, and each of the required data A backup cycle measuring means for measuring a set backup cycle, wherein the data storage storage means stores a first storage unit for storing the data to be stored at a backup cycle set for each of the data, and a diagnosis abnormality. A second storage unit for storing the storage-necessary data when the diagnosis unit determines that an abnormality has occurred; Wherein after storage of the main data stored in the part, the control device for a vehicle which comprises a third storage unit for storing the main storage data in the backup period synchronized with the backup period to the first storage unit.
JP2003019363A 2003-01-28 2003-01-28 Time-series freeze frame data creation method and vehicle control apparatus Expired - Lifetime JP4103606B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003019363A JP4103606B2 (en) 2003-01-28 2003-01-28 Time-series freeze frame data creation method and vehicle control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003019363A JP4103606B2 (en) 2003-01-28 2003-01-28 Time-series freeze frame data creation method and vehicle control apparatus

Publications (2)

Publication Number Publication Date
JP2004232498A true JP2004232498A (en) 2004-08-19
JP4103606B2 JP4103606B2 (en) 2008-06-18

Family

ID=32949245

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003019363A Expired - Lifetime JP4103606B2 (en) 2003-01-28 2003-01-28 Time-series freeze frame data creation method and vehicle control apparatus

Country Status (1)

Country Link
JP (1) JP4103606B2 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006336564A (en) * 2005-06-02 2006-12-14 Fujitsu Ten Ltd Electronic controller and data storage method for electronic control device
WO2007072160A1 (en) 2005-12-19 2007-06-28 Toyota Jidosha Kabushiki Kaisha Vehicle communication method and communication device
JP2008133735A (en) * 2006-11-27 2008-06-12 Kokusan Denki Co Ltd Electronic control unit
JP2009150798A (en) * 2007-12-21 2009-07-09 Honda Motor Co Ltd Remote diagnosis system of vehicle
JP2009276820A (en) * 2008-05-12 2009-11-26 Denso Corp Electronic apparatus and program
JP2010174754A (en) * 2009-01-29 2010-08-12 Fujitsu Ten Ltd Control device and control method
CN102323814A (en) * 2011-06-07 2012-01-18 广州汽车集团股份有限公司 Freeze frame defining and reading method and device
DE102013205981A1 (en) 2012-04-05 2013-10-10 Denso Corporation Freeze Frame data storage system
US9159178B2 (en) 2013-05-29 2015-10-13 Denso Corporation In-vehicle control system and in-vehicle control apparatus
US9181379B2 (en) 2010-01-06 2015-11-10 Dow Corning Corporation Modified polyolefins
CN111949005A (en) * 2020-07-30 2020-11-17 深圳市元征科技股份有限公司 Method, device and equipment for acquiring frozen frame data and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6539164B2 (en) 2015-09-08 2019-07-03 東京計器株式会社 solenoid valve

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006336564A (en) * 2005-06-02 2006-12-14 Fujitsu Ten Ltd Electronic controller and data storage method for electronic control device
US7953009B2 (en) 2005-12-19 2011-05-31 Toyota Jidosha Kabushiki Kaisha Vehicle communication method and communication device
WO2007072160A1 (en) 2005-12-19 2007-06-28 Toyota Jidosha Kabushiki Kaisha Vehicle communication method and communication device
JP2008133735A (en) * 2006-11-27 2008-06-12 Kokusan Denki Co Ltd Electronic control unit
JP2009150798A (en) * 2007-12-21 2009-07-09 Honda Motor Co Ltd Remote diagnosis system of vehicle
US8090494B2 (en) 2008-05-12 2012-01-03 Denso Corporation Electronic apparatus and program storage medium
JP4636118B2 (en) * 2008-05-12 2011-02-23 株式会社デンソー Electronic device and program
JP2009276820A (en) * 2008-05-12 2009-11-26 Denso Corp Electronic apparatus and program
DE102009020852B4 (en) 2008-05-12 2022-04-21 Denso Corporation Electronic device and program storage medium
JP2010174754A (en) * 2009-01-29 2010-08-12 Fujitsu Ten Ltd Control device and control method
US9181379B2 (en) 2010-01-06 2015-11-10 Dow Corning Corporation Modified polyolefins
CN102323814A (en) * 2011-06-07 2012-01-18 广州汽车集团股份有限公司 Freeze frame defining and reading method and device
DE102013205981A1 (en) 2012-04-05 2013-10-10 Denso Corporation Freeze Frame data storage system
JP2013217228A (en) * 2012-04-05 2013-10-24 Denso Corp Freeze frame data storage system
DE102013205981B4 (en) 2012-04-05 2021-10-07 Denso Corporation Freeze frame data storage system
US9159178B2 (en) 2013-05-29 2015-10-13 Denso Corporation In-vehicle control system and in-vehicle control apparatus
CN111949005A (en) * 2020-07-30 2020-11-17 深圳市元征科技股份有限公司 Method, device and equipment for acquiring frozen frame data and storage medium
CN111949005B (en) * 2020-07-30 2021-10-22 深圳市元征科技股份有限公司 Method, device and equipment for acquiring frozen frame data and storage medium

Also Published As

Publication number Publication date
JP4103606B2 (en) 2008-06-18

Similar Documents

Publication Publication Date Title
JP2004232498A (en) Creation method for time series freeze frame data and vehicle controlling device
US7870438B2 (en) Method, system and computer program product for sampling computer system performance data
US5948026A (en) Automotive data recorder
US7428459B2 (en) Apparatus for controlling an engine using a cam signal
US6968552B2 (en) Processor unit for executing event process in real time in response to occurrence of event
US20110307635A1 (en) A/d converter and programmable controller system
US6615119B1 (en) Object-oriented diagnostic apparatus for vehicle controller
JP2012103911A (en) Information recording device
JP5849990B2 (en) In-vehicle control device and in-vehicle control system
JPH03118643A (en) Data fetching method
CN103729282B (en) Method and system used for tracing data write signal from multiple parallel CPUs
US11789085B2 (en) Battery diagnosis device, battery diagnosis method, non-transitory storage medium, and vehicle
JP2017102633A (en) Information processing device and semiconductor integrated circuit device
JP3376906B2 (en) Computer load factor measurement system
JP2018195193A (en) Recording device and recording method
JP2013003010A (en) On-vehicle determining device for determining whether diagnostic process about own vehicle can be executed or not
EP3792770A1 (en) Trace-data processing device
JP7435182B2 (en) electronic control unit
JP2009116816A (en) Failure detector and failure detection method
JP2008276674A (en) Electronic computer capable of specifying execution time of task, and program for electronic computer
JP2001323836A (en) Abnormality detection method for crank synchronous task
JP4276003B2 (en) Reference signal monitoring method for vehicle internal combustion engine control
JP2785068B2 (en) Storage method for vehicle data
JP7314838B2 (en) electronic controller
JP7359118B2 (en) electronic control unit

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050406

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070606

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070806

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: 20080304

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080317

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: 20110404

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120404

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120404

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130404

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130404

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140404

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250