JP2004163187A - Electronic control device for vehicles - Google Patents
Electronic control device for vehicles Download PDFInfo
- Publication number
- JP2004163187A JP2004163187A JP2002327671A JP2002327671A JP2004163187A JP 2004163187 A JP2004163187 A JP 2004163187A JP 2002327671 A JP2002327671 A JP 2002327671A JP 2002327671 A JP2002327671 A JP 2002327671A JP 2004163187 A JP2004163187 A JP 2004163187A
- Authority
- JP
- Japan
- Prior art keywords
- data
- electronic control
- vehicle
- measurement
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Vehicle Cleaning, Maintenance, Repair, Refitting, And Outriggers (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、車輌に搭載された電子制御装置に係り、特に電子制御装置に内蔵のマイクロコンピュータ内で計算される各種項目のデータを時系列に記憶する機能を有する車輌の電子制御装置に関する。
【0002】
【従来の技術】
近年、自動車に搭載される電子制御装置は、制御精度の向上,高応答化,多機能化の傾向にあり、マイクロコンピュータが搭載されている。
【0003】
電子制御装置には各種センサと各種アクチュエータが電気的に接続され、入力されたセンサ信号に応じマイクロコンピュータが所定の演算を行い、演算結果に基づいてアクチュエータ駆動信号を出力することで各種制御を行うと共に、入力信号の状態からセンサまたはアクチュエータの故障有無を判定する故障診断の機能を有している。この故障診断の結果は、車室内のメータパネルに設けたランプ等によって運転者に伝えられ、さらに修理作業において故障箇所を的確に特定するために利用される。具体的には、可搬型の表示機能を備えた故障診断装置を電子制御装置に接続し、通信により電子制御装置から故障診断装置へ故障診断の結果を送信し表示するものが知られている。
【0004】
さらに、故障診断の結果だけでは故障箇所を特定できない故障については、センサ信号をモニタし、不具合発生時に異常を示すようなセンサ信号の有無を確認することで故障箇所を特定する技術があり、例えば故障診断装置を電子制御装置に接続し、電子制御装置内のセンサ信号等のデータを通信により故障診断装置のメモリに記録する手法(特開平8−166328)が知られている。
【0005】
【特許文献1】
特開平8−166328号広報(4頁〜6頁,図1,図7)
【0006】
【発明が解決しようとする課題】
上記従来技術では、電子制御装置に可搬型の故障診断装置を接続してデータ計測を行う為、意図したデータが計測されるまで故障診断装置を接続しておく必要がある。しかし、当該故障診断装置は元々車輌には装備されていないものであり、主にディーラ等の修理工場において車輌の点検作業に使用されるものであるため、例えば発生頻度の低い故障を診断する場合には、当該診断装置を長期間特定の車輌に搭載する必要があり、修理工場における作業効率が低下するという課題がある。
【0007】
また上記従来技術では、電子制御装置の制御プログラムに、計測開始条件(例えば故障検出時など)と、計測して記憶するデータの項目(計測項目)とを予め組込み、故障が検出された後に、外部から故障診断装置を接続して記憶したデータを読み出すことによって電子制御装置単体での計測が可能である。しかし、この場合は計測開始条件と計測項目が変更できないので、故障内容に合ったデータ計測を行うことは困難という問題点がある。
【0008】
本発明は、このような問題に鑑みてなされたものであって、その目的とするところは、電子制御装置単体で計測データの記憶を行い、かつ計測・記憶するデータの項目および計測条件を選択可能な電子制御装置を提供することである。
【0009】
【課題を解決するための手段】
電子制御装置に内蔵のメモリに各項目のデータを時系列に記憶し、必要な場合に外部の故障診断装置を接続してデータを取り出すことが出来るようにする。さらに、当該故障診断装置から電子制御装置に対して、計測・記憶するデータの項目および計測条件を入力可能とする。
【0010】
【発明の実施の形態】
第1の発明に係る電子制御装置は、計測項目と計測を開始するトリガ条件および計測期間を設定する際は、可搬型の故障診断装置を電子制御装置に接続し、作業者が計測項目とトリガ条件,計測期間を故障診断装置に入力する。前記入力内容は通信により電子制御装置へ送信され計測項目とトリガ条件,計測期間として認識される。入力終了後は、故障診断装置の接続有無に関わらず、電子制御装置内でトリガ条件の判定と前記条件成立後、設定された計測項目のデータを設定された期間だけ電子制御装置に内蔵のメモリに記憶するようにした。前記メモリに記憶したデータは、故障診断装置を接続し読み出す構成とした。
【0011】
第2の発明は、第1の発明において電子制御装置に内蔵のメモリの中でデータ記憶に使用する範囲を設定すると共に、計測条件成立毎にデータ記憶に使用できるメモリの空き領域にデータ記憶を行う構成としたので、複数回の計測データをメモリに記憶できる。
【0012】
第3の発明は、第1または第2の発明において、電子制御装置の電源とは別にメモリの内容を保持するためのバッテリバックアップ電源を設ける構成としたので、記憶したデータや設定したトリガ条件等の内容が電源オン時に前回の電源オフ直前と同じ状態が保たれ、記憶したデータが消去されることが無く、また電源オン毎にトリガ条件や計測項目等を再度設定する必要がない。
【0013】
第4の発明は、第1から第3の発明において、故障診断装置から設定するトリガ条件を電子制御装置内のマイクロコンピュータが行っている各種判定の結果を複数組み合わせて設定する構成とした。トリガ条件として故障診断結果を含め複数の各種判定結果を組み合わせることが可能であり、故障内容に合わせてトリガ条件を詳細に設定することで意図したタイミングでデータ計測が行われるので、データを記憶するメモリの領域は限られていても、必要なデータを計測することが可能となる。
【0014】
以下、図面により本発明に係る車輌用電子制御装置の実施形態について詳細に説明する。
【0015】
図1は、本実施例における車輌用電子制御装置の全体構成を示している。
【0016】
車輌1には、電子制御装置2が搭載され通信コネクタ3を介して故障診断装置4と接続されている。
【0017】
また、車輌1には各種の電子制御装置2が搭載されているが、故障診断装置4には複数の電子制御装置が接続されていても良い。
【0018】
図2は、電子制御装置2の構成を示す。
【0019】
電子制御装置2はコンピュータ式のものであり、演算処理を行うCPU5と、基準となる時間(クロック信号)を生成するクロック発生器6と、制御プログラム等を記憶するROM7、演算結果を記憶するRAM8と、入出力インターフェイス(I/O)9と、アナログ入力回路10と、デジタル入力回路11と、出力回路12と、外部と通信を行う通信回路13を有している。
【0020】
図示していないがデジタル入力回路11及びアナログ入力回路12には、各種のセンサやスイッチが接続され、出力回路10には各種のアクチュエータが接続されている。
【0021】
電子制御装置2では、ROM7に記憶されている制御プログラムに従い、アナログ入力回路10およびデジタル入力回路11から入力された信号、または通信回路13で受信した情報を使って演算が行われる。
【0022】
演算結果はRAM8に一時記憶され、一部は出力回路10からのアクチュエータを駆動する駆動信号を生成する際に参照され、または通信回路13を経由して外部へ送信される。演算は例えば10msなど所定周期毎(以後、制御周期と記す)に繰返し行われ、RAM8に一時記憶されている値は随時、書換えが行われる。
【0023】
次にデータの計測および記憶を行う制御系を、図3を参照して説明する。
【0024】
故障診断装置4と電子制御装置2は通信データを送受信し情報の交換を行うことが可能である。
【0025】
故障診断装置4には、電子制御装置2と通信データを送受信するための通信手段14と、表示装置15,入力装置16が備えられている。
【0026】
故障診断装置4は、作業者が入力装置16を使って入力したトリガ条件等の内容に応じた通信データを電子制御装置2へ送信する。
【0027】
電子制御装置2では、故障診断装置4から送信された通信データは通信手段
17で受信される。通信手段17では、受信した通信データが電子制御装置2で処理すべきか否かを判定し、処理すべき通信データであれば計測条件設定手段
18へ送る。
【0028】
計測条件設定手段18では、詳細は図4から図8で説明する要領で通信データを解析し、計測トリガ条件や計測項目,計測周期,計測期間を認識し情報を適宜、計測タイミング判定手段19,記憶データ更新手段20へ送る。
【0029】
計測タイミング判定手段19では、計測周期毎に記憶データ更新手段20に計測項目のデータを時系列に記憶するよう指示する。また、計測トリガ条件を監視し条件が成立した時点から計測期間だけ計測データの記憶を継続した後、計測を停止する。
【0030】
記憶データ更新手段20では、計測タイミング判定手段19から指示があったタイミング毎に計測項目に該当する領域のRAM8の値を計測データ記憶手段
21に送る。
【0031】
計測データ記憶手段21では、RAM8に設けた計測データ記憶領域に時系列で記憶する。
【0032】
このように、作業者が故障診断装置4に入力した計測条件に従い、電子制御装置2では計測処理が行われ、項目のデータが時系列的にRAM8に記憶される。
【0033】
また、故障診断装置4から計測データの読み出しを意味する通信データを受信するとデータ読み出し手段22によりRAM8に記憶されている計測データを時系列に順次、通信手段17を介して故障診断装置4へ送信する。
【0034】
故障診断装置4では、受信した計測データを表示装置15にグラフまたは数値で表示して作業者に計測データの内容を伝えることができる。
【0035】
トリガ条件の設定方法の一例を図4から図10を参照して説明する。
【0036】
トリガ条件は、図4に示すように故障診断装置4から電子制御装置2に通信データで送られる。このデータは複数のデータに分けて送られる。例えば図4に示す例では(1)から(3)の3段階である。
【0037】
電子制御装置2では、各々の通信データを解析し、誤りがなければトリガ条件として認識し肯定応答を、誤りがあればトリガ条件が設定できなかったことを意味する否定応答を示す通信データを返す。
【0038】
通信データは、図5のように大きく分けて4つの部分に別れる。
【0039】
ヘッダ部は、先頭から通信データの構成の種類,送信元,受信先,コマンド部とデータブロック部のデータ数の和をそれぞれ表す値が設定される。
【0040】
電子制御装置2には電子制御装置毎に異なる識別番号が制御プログラムの中に設定されていて、受信先の値が自身を示す識別番号の場合のみ、通信データを処理するようプログラムされている。
【0041】
このため、故障診断装置4に複数の電子制御装置が接続されている場合でも、受信先に指定した電子制御装置のみが通信データを処理する構成となっている。
【0042】
コマンド部は、データブロックの種類を表す値が設定され、受信先の電子制御装置2はコマンドの値に応じて続くデータブロックの処理方法を切替える。
【0043】
データブロック部については図6から図8で説明する。
【0044】
サム値部は、通信データのサム値を除く各値の総和の下位2ケタが設定される。受信先で同様の総和計算を行い計算結果とサム値を比較することで、通信データが正しく受信できたか否かを判定するサム値チェックによる通信エラー判定に用いられる。
【0045】
図4の通信データ(1)から(3)のデータブロック部の一例を図6から図8に示す。
【0046】
図6は、トリガ条件を設定するものである。
【0047】
データブロック部は3つのデータが1組として処理され、一つの条件として認識される。図6ではトリガ条件が3つの条件の組合せで構成されている。
【0048】
各条件のデータは、1つめのデータが図9の「No」に、2つめのデータが図9の「bit」に対応し条件の内容を表し、3つめのデータは続く「条件」がAND条件(論理積)またはOR条件(論理和)であるかを示している。図6の例では、AND条件を‘*’、OR条件を‘+’と記載しているが、実際は2つを区別できる値であればよい。ただし、末尾の条件(図6では条件3)は続く条件(図6では条件3の後)がないので3つめのデータ(図6では斜線となっている部分)は無視される。
【0049】
従って図6の例では、トリガ条件として以下のように設定される。
【0050】
「加速判定時 AND エンスト時 OR センサ8故障時」
図7は、計測項目を設定するものである。
【0051】
データブロック部の各データは、図10の「No」に対応し、それぞれ記憶する計測項目を表している。図7の例では、スロットル開度,吸気管圧力,エンジン回転数が計測項目として設定される。
【0052】
図9及び図10の表は、ROM7に記憶されている制御プログラムに組込まれていて、計測条件設定手段18により、受信した通信データが表中のどの条件または項目に該当するか適宜判定し、認識される。
【0053】
図8は、計測周期,計測期間を設定するものである。
【0054】
計測周期は制御周期の倍数で設定する。例えば制御周期が10msの場合、図8では$64(16進数)なので10×100=1000msが計測周期となる。
【0055】
計測期間は、トリガ条件が不成立から成立となった時を基点として、基点以前を前期間として、基点以後を後期間として計測データを記憶する回数を指定する。
【0056】
図8では、前期間が4回、後期間が7回と設定される。計測データの記憶は、計測周期毎に行われるので「(前期間+後期間)×計測周期」が計測時間となる。
【0057】
以上のように故障診断装置4からの通信データが電子制御装置2により計測条件として認識および設定される。
【0058】
以上説明した計測条件の設定方法の一例を図11のフローチャートを参照して詳細に説明する。計測条件設定ルーチンは、制御周期(例えば10ms毎)に実行される。
【0059】
最初に故障診断装置4から通信データを受信した場合は、図5で説明したようにサム値エラーが検出された場合や受信先の値から当該電子制御装置で処理すべき通信データではない場合、または通信データが未受信であれば(ステップS101否定)以後の処理をパスして終了する。もし、当該電子制御装置で処理すべき通信データであれば(ステップS101肯定)、コマンド部の値に応じてコマンド(1)から(3)の何れかの処理を選択する。
【0060】
もしコマンド(1)であれば(ステップS102肯定)、図6で説明したようにデータブロック部を3つのデータ毎に分割し、分割したデータ群の1,2番目の組合せが図9の表に設定されていない場合または3番目のデータがANDまたはOR条件を示す値ではない場合は条件として正しく認識できなかったと判断し(ステップS103否定)、否定応答を故障診断装置へ送信する(ステップS107)。何れでもない場合は計測条件の1つとして認識する(ステップS104)。データブロック部に未処理のデータがあれば(ステップS105否定)同様に判定を行い、全てのデータについて判定が終了すれば(ステップS105肯定)、コマンド(1)の処理完了(ステップS106)と認識し肯定応答を故障診断装置へ送信する(ステップS108)。
【0061】
もしコマンド(2)であれば(ステップS113肯定)、図7で説明したようにデータブロック部の各データについて、図10の表に設定されていなければ
(ステップS114否定)、否定応答を故障診断装置へ送信し(ステップS107)、そうでなければ(ステップS114肯定)、計測項目として認識する(ステップS115)。データブロック部の残りのデータがあれば(ステップS116否定)同様に判定を行い、全てのデータについて判定が終了すれば(ステップS116肯定)、コマンド(2)の処理完了(ステップS117)と認識し肯定応答を故障診断装置へ送信する(ステップS108)。
【0062】
もしコマンド(3)であれば(ステップS118肯定)、図8で説明したようにデータブロック部から計測周期,データを記憶する回数を認識する。計測周期は計測中に制御周期毎にカウントアップする周期タイマと比較するしきい値として設定される(ステップS119)。次にデータを記憶するための領域をRAM8に確保する(ステップS120)。RAM8は図12のように制御プログラムで使用する領域と計測データの記憶に使用する領域(以下、計測データ記憶領域)に分けられる。(データを記憶する回数)×(計測項目)で求まる大きさのメモリサイズが計測データ記憶領域より大きい場合(ステップS121否定)要求された回数のデータが記憶出来ないので、否定応答を故障診断装置へ送信し(ステップS107)、もしそうでなければ計測データ記憶用メモリ範囲として確保しコマンド(3)の処理完了(ステップS122)と認識し肯定応答を故障診断装置へ送信する(ステップS108)。
【0063】
次にコマンド(1)から(3)の中で何れかの処理が未完了であれば(ステップS109否定)、処理を終了して次の通信データを待つ。もしコマンド(1)から(3)が全て完了していれば(ステップS109肯定)、周期タイマをクリア(ステップS110)、図15で説明する記憶回数をカウントするカウンタをクリア(ステップS111)し、計測を開始(ステップS112)して計測条件判定ルーチンを終了する。
【0064】
以上のように図6から図8で説明した計測条件の判定処理が行われる。
【0065】
続いて計測処理ルーチンの一例を図13のフローチャートを参照して説明する。
【0066】
計測処理ルーチンは、制御周期毎(例えば10ms毎)に実行される。
【0067】
最初に図11で説明した計測が開始(ステップS112)されていなければ
(ステップS201否定)処理を終了し、計測が開始していれば(ステップS201肯定)、周期タイマが図11で説明した計測周期未満であれば(ステップS202否定)周期タイマをカウントアップ(ステップS205)、周期タイマが計測周期以上なら(ステップS202肯定)周期タイマをクリアし(ステップS203)、計測項目の各データを計測データ記憶用メモリ範囲(ステップS120)に記憶する(ステップS204)。
【0068】
ここで、計測データは図14に示すようにRAM8に確保した計測データ記憶用メモリ範囲(ステップS120)の先頭(A点)から順番に記憶し、前記メモリ範囲の終端(B点)に達したら先頭(A点)に戻り上書き更新を行う構成とし計測終了まで継続して更新が行われる。
【0069】
次に図6で説明したトリガ条件の判定を行い(ステップS206)、トリガ条件が不成立であれば(ステップS206否定)処理を終了し、トリガ条件が成立していれば(ステップS206肯定)、トリガ条件成立後の計測データ記憶回数をカウントするカウンタをカウントアップする(ステップS207)。
【0070】
カウンタが図8で説明した後期間の回数以下であれば(ステップS208否定)処理を終了し、そうでなければ計測を終了する(ステップS209)。
【0071】
計測が終了すると、図14に示すように計測データ記憶用メモリ範囲には計測トリガ条件が成立する以前の計測データと計測トリガ条件が成立後の計測データがそれぞれ図8で説明した前期間,後期間の回数だけ記憶されている。
【0072】
最後に計測データを記憶した箇所が例えば図14のC点であれば、C点の次のデータ(D点)が時系列的に先頭となるので、時系列に計測データを読み出すことが可能である。
【0073】
このように図11で説明した計測条件に従い、計測データを時系列に記憶することが出来る。
【0074】
図15は以上説明した計測処理の一例を示したタイミングチャートである。
【0075】
条件1から条件3は、図6で説明した計測トリガ条件で条件1がE点で、条件2がF点で不成立から成立となっている。条件3は、不成立のままである。
【0076】
周期タイマは、図8で説明したように計測データを記憶するタイミングを生成するものであり図13で説明したように制御周期毎(例えば10ms毎)にカウントアップし設定された計測周期毎にクリアされる。計測データの記憶は周期タイマがクリア(図15の点線部)されるタイミングで行われる。
【0077】
項目1から項目3のチャートは、図7で説明した記憶する計測項目を表している。時間経過とともに変化している値が前記の計測周期毎に記憶される。
【0078】
カウンタは、図13で説明したように計測トリガ条件が成立した後の計測周期毎にカウントアップされるものでカウンタの値が図8で説明した後期間と一致した時に計測を終了する。
【0079】
前期間と後期間は、図8で説明したように計測トリガ条件前後の記憶する計測データの回数を示している。図14では前期間が4回、後期間が7回に設定されているので項目1から計測3の丸印の計測データがメモリに記憶される。
【0080】
このようにして、故障診断装置から設定された計測条件に従い、計測データが電子制御装置に内蔵のメモリに記憶される。メモリに記憶された計測データは、図示していないが計測終了後に故障診断装置を電子制御装置に接続し読み出して故障診断装置に表示することで、故障個所を特定するための計測データを収集することが出来る。
【0081】
【発明の効果】
本発明は、以上説明したように構成されているので、電子制御装置に内蔵のメモリに車輌の各種状態を示す項目のデータを時系列で記憶でき、かつ計測項目と計測条件を選択し設定することができ、データ計測中に別途故障診断装置等を接続する必要がないので、安価な構成でありかつ故障箇所を特定する作業において工数の軽減を図ることが出来る。
【図面の簡単な説明】
【図1】本実施形態の故障診断装置を備えた車輌の全体構成である。
【図2】電子制御装置の構成を示す図である。
【図3】本実施形態の故障診断装置の制御系を示すブロック図である。
【図4】故障診断装置と電子制御装置間で行われる通信順序を示す図である。
【図5】通信データの構成を示す図である。
【図6】トリガ条件を設定するためのデータブロックの一例を示す図である。
【図7】計測項目を設定するためのデータブロックの一例を示す図である。
【図8】計測周期及び計測期間を設定するためのデータブロックの一例を示す図である。
【図9】図6におけるデータブロックに設定した値と対応するトリガ条件の関係の一例を示す図である。
【図10】図7におけるデータブロックに設定した値と対応する計測項目の関係の一例を示す図である。
【図11】計測条件設定ルーチンの一例を示すフローチャートである。
【図12】電子制御装置内のRAMの用途を示す図である。
【図13】計測処理ルーチンの一例を示すフローチャートである。
【図14】電子制御装置内のRAMに計測データを記憶する順序を示す図である。
【図15】計測データが記憶される期間を示したタイミングチャートである。
【符号の説明】
1…車輌、2…電子制御装置、3…コネクタ、4…故障診断装置、8…RAM、13…通信回路、15…表示装置、18…計測条件設定手段、19…計測タイミング判定手段、20…記憶データ更新手段、21…計測データ記憶手段、22…データ読み出し手段。[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an electronic control device mounted on a vehicle, and more particularly to an electronic control device for a vehicle having a function of storing data of various items calculated in a microcomputer built in the electronic control device in time series.
[0002]
[Prior art]
2. Description of the Related Art In recent years, electronic control devices mounted on automobiles tend to have improved control accuracy, higher response, and more functions, and are equipped with microcomputers.
[0003]
Various sensors and various actuators are electrically connected to the electronic control unit, and the microcomputer performs predetermined calculations according to the input sensor signals, and performs various controls by outputting actuator drive signals based on the calculation results. In addition, it has a failure diagnosis function of determining the presence or absence of a failure of the sensor or the actuator from the state of the input signal. The result of the failure diagnosis is transmitted to the driver by a lamp or the like provided on a meter panel in the vehicle cabin, and is used for accurately specifying a failure portion in a repair work. Specifically, a failure diagnosis device having a portable display function is connected to an electronic control device, and the result of the failure diagnosis is transmitted from the electronic control device to the failure diagnosis device via communication and displayed.
[0004]
Further, for a failure in which a failure location cannot be identified only by the result of failure diagnosis, there is a technology for monitoring a sensor signal and confirming the presence or absence of a sensor signal indicating an abnormality at the time of occurrence of the failure to identify the failure location. There is known a method of connecting a failure diagnosis device to an electronic control device and recording data such as sensor signals in the electronic control device in a memory of the failure diagnosis device by communication (Japanese Patent Laid-Open No. 8-166328).
[0005]
[Patent Document 1]
Japanese Patent Application Laid-Open No. 8-166328 (pages 4 to 6, FIGS. 1 and 7)
[0006]
[Problems to be solved by the invention]
In the above-mentioned conventional technology, a portable failure diagnosis device is connected to the electronic control unit to perform data measurement. Therefore, it is necessary to connect the failure diagnosis device until intended data is measured. However, since the failure diagnosis device is not originally installed in the vehicle and is mainly used for inspection work of the vehicle at a repair shop such as a dealer, for example, when diagnosing a failure that occurs infrequently, In such a method, it is necessary to mount the diagnostic device on a specific vehicle for a long time, and there is a problem that work efficiency in a repair shop is reduced.
[0007]
Further, in the above-described conventional technology, a measurement start condition (for example, when a failure is detected) and an item of data to be measured and stored (a measurement item) are previously incorporated into a control program of the electronic control device, and after a failure is detected, By reading the stored data by connecting a failure diagnosis device from the outside, it is possible to perform measurement by the electronic control device alone. However, in this case, since the measurement start condition and the measurement item cannot be changed, there is a problem that it is difficult to perform data measurement according to the failure content.
[0008]
The present invention has been made in view of such a problem, and an object of the present invention is to store measurement data with an electronic control device alone and to select data items and measurement conditions to be measured and stored. It is to provide a possible electronic control unit.
[0009]
[Means for Solving the Problems]
The data of each item is stored in a time-series manner in a memory built in the electronic control unit, and the data can be taken out by connecting an external failure diagnosis device when necessary. Further, it is possible to input data items and measurement conditions to be measured and stored from the failure diagnosis device to the electronic control device.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
The electronic control device according to the first aspect of the present invention connects a portable failure diagnostic device to the electronic control device when setting a measurement item, a trigger condition for starting measurement, and a measurement period. The conditions and measurement period are input to the failure diagnosis device. The input contents are transmitted to the electronic control unit through communication, and are recognized as a measurement item, a trigger condition, and a measurement period. After the input is completed, regardless of whether the failure diagnosis device is connected or not, after the determination of the trigger condition and the satisfaction of the condition in the electronic control device, the data of the set measurement item is stored in the internal memory of the electronic control device for a set period. To be remembered. The data stored in the memory is connected to and read from a failure diagnosis device.
[0011]
According to a second aspect of the present invention, in the first aspect, a range used for data storage is set in a memory built in the electronic control device, and data is stored in a free area of the memory which can be used for data storage every time measurement conditions are satisfied. Since the configuration is performed, measurement data for a plurality of times can be stored in the memory.
[0012]
According to a third aspect of the present invention, in the first or second aspect, a battery backup power source for retaining the contents of the memory is provided separately from the power source of the electronic control unit. When the power is turned on, the same state as that immediately before the last power-off is maintained, the stored data is not erased, and it is not necessary to set the trigger conditions and the measurement items again every time the power is turned on.
[0013]
In a fourth aspect based on the first to third aspects, a trigger condition set by the failure diagnosis device is set by combining a plurality of results of various determinations performed by a microcomputer in the electronic control unit. It is possible to combine a plurality of various judgment results including a failure diagnosis result as a trigger condition. Since the data measurement is performed at the intended timing by setting the trigger condition in detail according to the failure content, the data is stored. Necessary data can be measured even if the memory area is limited.
[0014]
Hereinafter, embodiments of a vehicle electronic control device according to the present invention will be described in detail with reference to the drawings.
[0015]
FIG. 1 shows the overall configuration of a vehicle electronic control device according to the present embodiment.
[0016]
An
[0017]
Further, various
[0018]
FIG. 2 shows a configuration of the
[0019]
The
[0020]
Although not shown, various sensors and switches are connected to the digital input circuit 11 and the analog input circuit 12, and various actuators are connected to the
[0021]
In the
[0022]
The calculation result is temporarily stored in the RAM 8, and part of the calculation result is referred to when generating a drive signal for driving the actuator from the
[0023]
Next, a control system for measuring and storing data will be described with reference to FIG.
[0024]
The failure diagnosis device 4 and the
[0025]
The failure diagnosis device 4 includes a
[0026]
The failure diagnosis device 4 transmits to the
[0027]
In the
[0028]
The measurement
[0029]
The measurement timing determination means 19 instructs the storage data update means 20 to store the data of the measurement items in a time series at each measurement cycle. Also, the measurement trigger condition is monitored, and after the measurement data is continuously stored for the measurement period from the time when the condition is satisfied, the measurement is stopped.
[0030]
The storage data updating unit 20 sends the value of the RAM 8 in the area corresponding to the measurement item to the measurement
[0031]
The measurement data storage means 21 stores the data in a measurement data storage area provided in the RAM 8 in time series.
[0032]
In this manner, the
[0033]
When communication data indicating reading of measurement data is received from the failure diagnosis device 4, the measurement data stored in the RAM 8 is sequentially transmitted in time series to the failure diagnosis device 4 via the
[0034]
The failure diagnosis device 4 can display the received measurement data on the
[0035]
An example of a method for setting a trigger condition will be described with reference to FIGS.
[0036]
The trigger condition is transmitted as communication data from the failure diagnosis device 4 to the
[0037]
The
[0038]
The communication data is roughly divided into four parts as shown in FIG.
[0039]
In the header portion, values indicating the type of communication data configuration, the transmission source, the reception destination, and the sum of the numbers of data in the command portion and the data block portion are set from the top.
[0040]
In the
[0041]
For this reason, even when a plurality of electronic control devices are connected to the failure diagnosis device 4, only the electronic control device designated as the receiving destination processes communication data.
[0042]
In the command section, a value indicating the type of the data block is set, and the
[0043]
The data block will be described with reference to FIGS.
[0044]
In the sum value part, the lower two digits of the sum of each value except the sum value of the communication data are set. By performing the same summation calculation at the receiving end and comparing the calculation result with the sum value, the sum is used for a communication error determination by a sum value check for determining whether or not communication data has been correctly received.
[0045]
FIGS. 6 to 8 show examples of the data block portion of the communication data (1) to (3) in FIG.
[0046]
FIG. 6 is for setting a trigger condition.
[0047]
In the data block portion, three pieces of data are processed as one set and recognized as one condition. In FIG. 6, the trigger condition is composed of a combination of three conditions.
[0048]
In the data of each condition, the first data corresponds to “No” in FIG. 9 and the second data corresponds to “bit” in FIG. 9, and represents the content of the condition. Indicates whether a condition (logical product) or an OR condition (logical sum) is satisfied. In the example of FIG. 6, the AND condition is described as “*” and the OR condition is described as “+”. However, since the last condition (
[0049]
Therefore, in the example of FIG. 6, the trigger condition is set as follows.
[0050]
"At the time of acceleration judgment AND at the time of engine stall OR at the time of sensor 8 failure"
FIG. 7 is for setting measurement items.
[0051]
Each piece of data in the data block corresponds to “No” in FIG. 10 and represents a measurement item to be stored. In the example of FIG. 7, the throttle opening, the intake pipe pressure, and the engine speed are set as measurement items.
[0052]
9 and 10 are incorporated in the control program stored in the
[0053]
FIG. 8 sets a measurement cycle and a measurement period.
[0054]
The measurement cycle is set as a multiple of the control cycle. For example, when the control cycle is 10 ms, since FIG. 8 shows $ 64 (hexadecimal number), 10 × 100 = 1000 ms is the measurement cycle.
[0055]
In the measurement period, the number of times of storing the measurement data is designated with the time when the trigger condition is satisfied from the non-satisfaction being satisfied as the base point, the time before the base point as the previous period, and the time after the base point as the subsequent period.
[0056]
In FIG. 8, the preceding period is set to four times, and the following period is set to seven times. Since the storage of the measurement data is performed for each measurement cycle, “(previous period + back period) × measurement period” is the measurement time.
[0057]
As described above, the communication data from the failure diagnosis device 4 is recognized and set by the
[0058]
An example of the method of setting the measurement conditions described above will be described in detail with reference to the flowchart of FIG. The measurement condition setting routine is executed in a control cycle (for example, every 10 ms).
[0059]
First, when communication data is received from the failure diagnosis device 4, when a sum value error is detected as described with reference to FIG. 5 or when communication data is not to be processed by the electronic control device based on a value of a reception destination, Alternatively, if the communication data has not been received (No at Step S101), the subsequent processing is passed and the processing ends. If the communication data is to be processed by the electronic control device (Yes at step S101), one of the commands (1) to (3) is selected according to the value of the command section.
[0060]
If the command is (1) (Yes at step S102), the data block portion is divided into three data units as described with reference to FIG. 6, and the first and second combinations of the divided data groups are shown in the table of FIG. If not set or if the third data is not a value indicating an AND or OR condition, it is determined that the condition was not correctly recognized as a condition (No at Step S103), and a negative response is transmitted to the failure diagnosis device (Step S107). . If neither is the case, it is recognized as one of the measurement conditions (step S104). If there is unprocessed data in the data block portion (No at Step S105), the same determination is made. If the determination is completed for all data (Yes at Step S105), it is recognized that the processing of the command (1) is completed (Step S106). Then, an acknowledgment is transmitted to the failure diagnosis device (step S108).
[0061]
If the command is (2) (Yes at Step S113), as described with reference to FIG. 7, if each data of the data block is not set in the table of FIG. 10 (No at Step S114), a negative response is diagnosed as failure. It is transmitted to the device (step S107), otherwise (step S114: Yes), it is recognized as a measurement item (step S115). If there is remaining data in the data block portion (No at Step S116), the same determination is made. If the determination is completed for all data (Yes at Step S116), it is recognized that the processing of the command (2) is completed (Step S117). An acknowledgment is transmitted to the failure diagnosis device (step S108).
[0062]
If it is the command (3) (Yes at Step S118), the measurement cycle and the number of times of storing data are recognized from the data block portion as described with reference to FIG. The measurement cycle is set as a threshold value to be compared with a cycle timer that counts up for each control cycle during measurement (step S119). Next, an area for storing data is secured in the RAM 8 (step S120). As shown in FIG. 12, the RAM 8 is divided into an area used by the control program and an area used to store measurement data (hereinafter, measurement data storage area). If the memory size obtained by (number of times of storing data) × (measurement item) is larger than the measurement data storage area (No at step S121), the data of the requested number of times cannot be stored, so a negative response is sent to the failure diagnosis device. Otherwise (step S107). If not, it secures a memory range for storing measurement data, recognizes that the processing of the command (3) is completed (step S122), and transmits an acknowledgment to the failure diagnosis device (step S108).
[0063]
Next, if any of the commands (1) to (3) is not completed (No at Step S109), the process is terminated and the next communication data is awaited. If all of the commands (1) to (3) have been completed (Yes at Step S109), the period timer is cleared (Step S110), and a counter for counting the number of storages described with reference to FIG. 15 is cleared (Step S111). The measurement is started (step S112), and the measurement condition determination routine ends.
[0064]
As described above, the determination process of the measurement condition described with reference to FIGS. 6 to 8 is performed.
[0065]
Next, an example of the measurement processing routine will be described with reference to the flowchart in FIG.
[0066]
The measurement processing routine is executed every control cycle (for example, every 10 ms).
[0067]
If the measurement described with reference to FIG. 11 is not started (step S112) first (No at step S201), the process ends. If the measurement is started (step S201 affirmative), the period timer sets the measurement described with reference to FIG. If it is less than the cycle (No at Step S202), the cycle timer is counted up (Step S205). If the cycle timer is equal to or longer than the measurement cycle (Yes at Step S202), the cycle timer is cleared (Step S203). It is stored in the storage memory range (step S120) (step S204).
[0068]
Here, as shown in FIG. 14, the measurement data is sequentially stored from the head (point A) of the measurement data storage memory range (step S120) secured in the RAM 8, and when the end of the memory range (point B) is reached. The system is configured to return to the top (point A) and perform the overwrite update, and the update is continuously performed until the measurement ends.
[0069]
Next, the trigger condition described with reference to FIG. 6 is determined (step S206). If the trigger condition is not satisfied (step S206: No), the process is terminated. If the trigger condition is satisfied (step S206: Yes), the trigger is performed. A counter for counting the number of times of storing the measurement data after the condition is satisfied is counted up (step S207).
[0070]
If the counter is equal to or less than the number of times after the period described with reference to FIG. 8 (No at Step S208), the process ends, otherwise, the measurement ends (Step S209).
[0071]
When the measurement is completed, the measurement data before the measurement trigger condition is satisfied and the measurement data after the measurement trigger condition is satisfied are stored in the measurement data storage memory range as shown in FIG. The number of times of the period is stored.
[0072]
If the location where the measurement data is stored last is point C in FIG. 14, for example, the data following point C (point D) is the first in time series, so that the measurement data can be read out in time series. is there.
[0073]
As described above, the measurement data can be stored in chronological order according to the measurement conditions described with reference to FIG.
[0074]
FIG. 15 is a timing chart showing an example of the measurement processing described above.
[0075]
The
[0076]
The cycle timer generates the timing for storing the measurement data as described in FIG. 8, and counts up in each control cycle (for example, every 10 ms) and clears in each set measurement cycle as described in FIG. Is done. The storage of the measurement data is performed at the timing when the cycle timer is cleared (the dotted line in FIG. 15).
[0077]
The charts of
[0078]
The counter is counted up every measurement cycle after the measurement trigger condition is satisfied as described with reference to FIG. 13, and the measurement ends when the counter value matches the later period described with reference to FIG.
[0079]
The pre-period and the post-period indicate the number of measurement data to be stored before and after the measurement trigger condition as described with reference to FIG. In FIG. 14, since the previous period is set to four times and the subsequent period is set to seven times, the measurement data of the circles from
[0080]
In this way, the measurement data is stored in the memory built in the electronic control device according to the measurement conditions set by the failure diagnosis device. The measurement data stored in the memory is not shown, but after the measurement is completed, the failure diagnosis device is connected to the electronic control unit, read out, and displayed on the failure diagnosis device, thereby collecting the measurement data for specifying the failure location. I can do it.
[0081]
【The invention's effect】
Since the present invention is configured as described above, data of items indicating various states of the vehicle can be stored in a memory built in the electronic control device in time series, and the measurement items and the measurement conditions are selected and set. Since it is not necessary to separately connect a failure diagnosis device or the like during data measurement, the configuration is inexpensive and the number of steps in the operation for specifying the failure location can be reduced.
[Brief description of the drawings]
FIG. 1 is an overall configuration of a vehicle including a failure diagnosis device according to an embodiment.
FIG. 2 is a diagram illustrating a configuration of an electronic control device.
FIG. 3 is a block diagram illustrating a control system of the failure diagnosis device according to the embodiment.
FIG. 4 is a diagram showing a communication order performed between the failure diagnosis device and the electronic control device.
FIG. 5 is a diagram showing a configuration of communication data.
FIG. 6 is a diagram illustrating an example of a data block for setting a trigger condition.
FIG. 7 is a diagram illustrating an example of a data block for setting a measurement item.
FIG. 8 is a diagram showing an example of a data block for setting a measurement cycle and a measurement period.
9 is a diagram illustrating an example of a relationship between a value set in a data block in FIG. 6 and a corresponding trigger condition.
FIG. 10 is a diagram illustrating an example of a relationship between a value set in a data block in FIG. 7 and a corresponding measurement item.
FIG. 11 is a flowchart illustrating an example of a measurement condition setting routine.
FIG. 12 is a diagram showing a use of a RAM in the electronic control device.
FIG. 13 is a flowchart illustrating an example of a measurement processing routine.
FIG. 14 is a diagram showing an order in which measurement data is stored in a RAM in the electronic control device.
FIG. 15 is a timing chart showing a period in which measurement data is stored.
[Explanation of symbols]
DESCRIPTION OF
Claims (11)
車輌の各種状態を示す項目のデータを時系列に記憶する手段と、前記車輌用電子制御装置外部との通信を行う手段と、記憶を開始する条件および前記項目のうちどの項目のデータを記憶するかを記憶する手段とを有し、
前記記憶を開始する条件および前記項目のうちどの項目のデータを記憶するかを、外部との通信により設定することを特徴とする車輌用電子制御装置。In a vehicle electronic control device for controlling a vehicle,
Means for storing data of items indicating various states of the vehicle in chronological order, means for communicating with the outside of the electronic control unit for a vehicle, conditions for starting storage, and data for any of the items Means for storing the
An electronic control device for a vehicle, wherein a condition for starting the storage and a data item to be stored among the items are set by communication with the outside.
前記メモリに記憶するデータの少なくとも、項目,記憶を開始するトリガ条件を前記故障診断装置からの通信を使って設定するトリガ条件設定手段と前記トリガ条件により起動される前記メモリに前記項目のデータを記憶する記憶手段と前記メモリに記憶したデータを故障診断装置から読み出す読み出し手段とを有することを特徴とする車輌用電子制御装置。An electronic control unit for a vehicle, comprising: storage means for storing data of items indicating various states of the vehicle in a time series in a memory built in the electronic control unit for a vehicle, and communication means for communicating with an external failure diagnosis device. A trigger condition setting means for setting at least an item of data to be stored in the memory and a trigger condition for starting storage using communication from the failure diagnostic apparatus; and data of the item in the memory activated by the trigger condition. And a reading means for reading out the data stored in the memory from the failure diagnosis device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002327671A JP2004163187A (en) | 2002-11-12 | 2002-11-12 | Electronic control device for vehicles |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002327671A JP2004163187A (en) | 2002-11-12 | 2002-11-12 | Electronic control device for vehicles |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004163187A true JP2004163187A (en) | 2004-06-10 |
Family
ID=32806187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002327671A Pending JP2004163187A (en) | 2002-11-12 | 2002-11-12 | Electronic control device for vehicles |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004163187A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006283651A (en) * | 2005-03-31 | 2006-10-19 | Fujitsu Ten Ltd | Vehicle diagnosis device and vehicle diagnosis system |
US9256993B2 (en) | 2013-04-24 | 2016-02-09 | Denso Corporation | Electronic control apparatus |
-
2002
- 2002-11-12 JP JP2002327671A patent/JP2004163187A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006283651A (en) * | 2005-03-31 | 2006-10-19 | Fujitsu Ten Ltd | Vehicle diagnosis device and vehicle diagnosis system |
US9256993B2 (en) | 2013-04-24 | 2016-02-09 | Denso Corporation | Electronic control apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4509602B2 (en) | Operator side system and mode file identification method | |
JP4065790B2 (en) | In-vehicle electronic control unit | |
US7231285B2 (en) | Data recording apparatus and data recording method | |
US6285931B1 (en) | Vehicle information communication system and method capable of communicating with external management station | |
JP3430579B2 (en) | Abnormality detection device for vehicle communication system | |
EP0631213A2 (en) | Vehicle diagnosis system | |
JPH03290711A (en) | Electronic controller for vehicle | |
US7424351B2 (en) | Control unit and data transmitting method | |
JP5849990B2 (en) | In-vehicle control device and in-vehicle control system | |
JP2006291730A (en) | Diagnosis device for vehicle | |
JP2008546083A (en) | Method for model-based diagnosis of mechatronic systems | |
CN114442587B (en) | Engine abnormal power-off monitoring method, system and storage medium | |
JP2987446B2 (en) | Vehicle self-diagnosis device | |
JP6432356B2 (en) | Electronic control unit | |
JP2004163187A (en) | Electronic control device for vehicles | |
JP2004136817A (en) | Device for judging fault diagnostic function | |
EP1569175A2 (en) | Data recording apparatus and data recording method | |
JP2000146765A (en) | Electronic controller for vehicle | |
JP2775008B2 (en) | In-vehicle control device | |
JP5177079B2 (en) | In-vehicle control device | |
JPH1136972A (en) | Car contorl device | |
JPH09126955A (en) | Fault diagnostic apparatus for automobile | |
JPH0746676A (en) | Communication system for vehicle diagnosis | |
JP3896858B2 (en) | Vehicle control system and vehicle electronic control device | |
JP2002106408A (en) | Electronic controller for vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20040831 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060130 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20060512 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060512 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060606 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20061121 |