JP3963092B2 - Vehicle system test apparatus and method - Google Patents

Vehicle system test apparatus and method Download PDF

Info

Publication number
JP3963092B2
JP3963092B2 JP2001320624A JP2001320624A JP3963092B2 JP 3963092 B2 JP3963092 B2 JP 3963092B2 JP 2001320624 A JP2001320624 A JP 2001320624A JP 2001320624 A JP2001320624 A JP 2001320624A JP 3963092 B2 JP3963092 B2 JP 3963092B2
Authority
JP
Japan
Prior art keywords
vehicle
node
control means
vehicle system
calculation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001320624A
Other languages
Japanese (ja)
Other versions
JP2003121310A (en
Inventor
正利 城戸
伊知郎 細谷
和弘 梶尾
良仁 鈴木
英樹 藤城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2001320624A priority Critical patent/JP3963092B2/en
Publication of JP2003121310A publication Critical patent/JP2003121310A/en
Application granted granted Critical
Publication of JP3963092B2 publication Critical patent/JP3963092B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、車両システム試験装置、及び方法にかかり、特に、車両に搭載された電子機器を通信しながら制御する車両システムを試験する車両システム試験装置、及び方法に関する。
【0002】
【従来の技術】
近年、車両には複数の電子制御装置(以下、ECUという)が搭載されており、これら複数のECUをバスで接続しローカルエリアネットワーク(以下、車両用LANという)を構築してこれらのECU間をデータ通信することが可能になってきている。
【0003】
複数のECUの各々はセンサの値や車両内機器の動作状態に応じた制御をしており、各ECUは車両の状態がセンサの値や車両内機器の動作状態に対応する状態になるべく制御している。例えば、各種センサの値によって、エンジンECUは燃料噴射量などを制御したり、ABSECUは車両の制動状態を制御したりしている。
【0004】
このような車両に搭載された各ECUは、担当する制御対象について独自に制御をしているが、他のECUとの情報授受が必要な場合もある。このため、車両用LANを利用してデータの授受が行われている。
【0005】
上記車両内機器(やECU)は、事前に試験をする必要がある。この試験は、車両内機器等の制御系単位で試験を実行することが考えられるが、逐次試験を行ったのでは処理に要する時間は、搭載された車両内機器等の制御系の数に応じて増加する。これを解消するため、車両内機器等の複数の制御系について管理制御を統括する中央処理装置を有して、制御系を同期制御しつつ試験するものがある。ところが、中央処理装置により複数の制御系を同期制御しつつ試験する場合、中央処理装置の負荷が増大する。
【0006】
そこで、ECU毎に試験を実行する分散型の車両用自動試験装置が提案されている(特開昭58−48870号公報参照)。この技術では、車両の搭載機器に対応して設けられた各搭載機器に関する試験プログラムにより作動する複数のコンピュータの制御及び管理をする車両用自動試験装置において、各搭載機器に同期信号制御部を設けて互いに同期しながら試験を実行する。これにより、中央処理装置の負荷軽減を達成している。
【0007】
【発明が解決しようとする課題】
しかしながら、従来の分散型の車両用自動試験装置では、各搭載機器に同期信号制御部を設ける必要があると共に、車両システム全体としての試験の実行処理を、各搭載機器で行わなければならない。すななち、車両システムとして統括した制御を実行するためには処理負荷が増大する。このため、車両システムとして実際の車両が動作しているときのように実時間で処理をさせることは困難である。
【0008】
本発明は、上記事実を考慮して、単純な構成かつ実時間で車両システムを試験することができる車両システム試験装置、及び方法を得ることが目的である。
【0009】
【課題を解決するための手段】
上記目的を達成するために本発明は、車両の状態を制御する複数の制御手段が並列に接続された車両システムを試験する車両システム試験装置において、前記複数の制御手段の各々の演算周期を検出する検出手段と、前記複数の制御手段の各々について、制御手段の物理値を得るための通信周期として演算周期の最小公倍数を求める演算手段と、予め定めた時間精度を含めた通信周期の繰り返し演算によって生じる1演算周期ずれる通信周期の回数を導出する導出手段と、前記導出手段により導出された通信周期の回数以下でかつ前記通信周期のタイミングで前記制御手段の同期を行う同期手段と、を備え、前記通信周期でのみ物理値を通信することを備えたことを特徴とする。
【0010】
本発明の車両システム試験装置は、車両の状態を制御する複数の制御手段が並列に接続された車両システムを試験する。車両には複数のコンピュータなどにより構成された制御手段が備えられており、各々の制御手段は車両内の担当する部分を制御する。例えば、エンジン制御やブレーキ制御などのように各制御手段が担当する部分を制御するには、一定の演算周期がある。これら複数の制御手段の各々の演算周期を検出手段によって検出する。また、各制御手段が担当する部分では、その担当部分についての結果出力や入力待機など物理値を得るための一連の演算周期の連続からなる通信周期を必要とする。この通信周期は、各制御手段の各々について担当する部分により異なる。そこで、演算手段は、複数の制御手段の各々について、制御手段の物理値を得るための通信周期として演算周期の最小公倍数を求める。従って、車両内の制御手段が担当する部分の通信周期は、誤差を含むことがある。導出手段は、予め定めた時間精度を含めた通信周期の繰り返し演算によって生じる1演算周期ずれる通信周期の回数を導出する。これによって、複数の制御手段による各通信周期の繰り返し回数により1演算周期ずれる回数を求めることができる。同期手段は、導出手段により導出された通信周期の回数以下のタイミングで前記制御手段の同期を行う。従って、車両システムでは、各通信周期の繰り返しにより1演算周期だけずれる以前に、同期をとることができる。
【0011】
前記制御手段は、前記車両に搭載されかつ前記車両の状態を制御することを模擬する模擬制御手段で構成することができる。
【0012】
制御手段は、車両に搭載された実際のECUなどのコンピュータを使用することも可能であるが、電気的に試験するときに、車両を作動させる必要がない場合が多い。そこで、車両に搭載されかつ前記車両の状態を制御することを模擬する模擬制御手段で構成する。この模擬制御手段は、独立したコンピュータで各々構成してもよく、単一のコンピュータで構成してもよい。単一のコンピュータで構成する場合には、担当する部分のコンピュータ上の作動を独立実行可能にすることが好ましい。
【0013】
前記車両システム試験装置では、前記模擬制御手段の少なくとも1つは、前記車両に搭載された機構の模擬部と、その機構の作動による制御を行う作動制御部とから構成することができる。
【0014】
模擬制御手段で車両システムを試験するときは、車両に搭載された機構の模擬を行う必要がある場合もある。そこで、対象となる模擬制御手段の少なくとも1つを、車両に搭載された機構の模擬部と、その機構の作動による制御を行う作動制御部とから構成する。このゆに、独立構成することにより、機構の模擬と、その機構の作動による制御とを分離独立して扱うことができ、試験の自由度が増加する。
【0015】
また、前記車両システム試験装置では、前記車両に搭載されかつ前記車両の状態を制御する実制御手段に接続すると共に、該実制御手段に対して与えられるべき実信号に相当する擬似信号を出力する信号発生手段をさらに備えることができる。
【0016】
ところで、車両システムを試験するとき、車両に搭載された実際のECUなどのコンピュータで構成された制御手段を実質的に作動させて試験することがより現実に近い。そこで、車両に搭載されて車両の状態を制御する実制御手段に接続すると共に、該実制御手段に対して与えられるべき実信号に相当する擬似信号を出力する信号発生手段をさらに備える。このようにすることによって、車両の状態を制御する実制御手段すなわち車両に搭載された実際のECUなどのコンピュータで構成された制御手段を実質的に作動させて試験することが可能となる。
【0017】
前記複数の制御手段は、車両用ローカルエリアネットワークで接続することができる。
【0018】
車両システム試験装置では、複数の制御手段が並列に接続して車両システムを試験する。車両システムでは、車両内において同時または逐次で統括的に各車両内の機器や制御手段が作動されている。これらの個々の車両内の機器の特性値(例えば、センサ出力の値や機構の作動状態を表すデータ)の保存や授受する際には共通のデータバス上で処理すれば、他に新たな構成を必要とすることない。そこで、複数の制御手段は、車両用ローカルエリアネットワークで接続すれば、特性値の保存処理や授受処理をすることができる。
【0019】
ここで、単純な構成かつ実時間で車両システムを試験するためには、演算周期と通信周期とを考慮して制御手段を同期させればよい。詳細には、車両の状態を制御する複数の制御手段が並列に接続された車両システムを試験する車両システム試験方法であって、前記複数の制御手段の各々の演算周期を検出し、前記複数の制御手段の各々について、制御手段の物理値を得るための通信周期として演算周期の最小公倍数を求め、予め定めた時間精度を含めた通信周期の繰り返し演算によって生じる1演算周期ずれる通信周期の回数を導出し、前記導出手段により導出された通信周期の回数以下でかつ前記通信周期のタイミングで前記制御手段の同期を行い前記通信周期でのみ物理値を通信する
【0020】
【発明の実施の形態】
以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。本実施の形態は車両に搭載される複数の電子機器を担当する複数のECUが車両用LANでデータ授受可能に構築された車両用情報通信システムの試験に本発明を適用したものである。
【0021】
図2に示すように、本実施の形態にかかる車両システム試験装置10は、複数のノード12−1,12−2,・・・,12−n (nは搭載ノードの最大数、以下、一般化してノード12−i:1≦i≦nと表記する場合がある)から構成される。
【0022】
これらのノード12−iの各々は、コンピュータを含んで独立した構成とされている。また、ノード12−iの各々は、車両内部に設けられたデータバスとして機能する車両用LAN14に接続されている。この車両用LAN14にはISO9141等の規格で定められたものを用いることができる。この車両用LAN14には、車両に搭載された実際のECUが接続されている。さらに、ノード12−i の各々は、上記車両用LAN14とは別途に、ノード間接続すなわちコンピュータ接続を可能とするデータバス16に接続されている。このデータバス16にはTCP/IP等の規格で知られるコンピュータ接続の規格を用いることができる。このように、ノード12−iの各々を車両用LAN14及びデータバス16に接続することによって、車両用LANと等価に試験装置を構築することができると共に、模擬するノードを独立して制御したりノード間の情報授受(通信)を可能としたりすることができる。
【0023】
上記のノード12−iは、スケジュール管理を実施するメインノード、車両に搭載された電子機器に関係する部分の模擬を行うプラントノード、車両用LANからのデータやコマンドのみから制御信号を算出する模擬を行うECUノード、車両に搭載された実際のECUへ擬似信号を供給して模擬を行う擬似信号ノード、そして、車両内に搭載された表示や乗員の操作の模擬を行うGUIノードがある。
【0024】
図2の例では、メインノードとしてノード12−2が示されている。ノード12−2は車両に搭載されたエンジン機構の動作モデルを模擬するエンジンモデル12−2B、車両用LAN14に接続された他のノードからのデータやコマンドからエンジン制御のための信号を算出する模擬を行うECUモデル12−2A、ノード間の時間制御や監視を行う時間調整モデル12−2Cからなる、機能的なモデルに分類構成されている。
【0025】
プラントノードとしては、ノード12−3,12−4が示されている。ノード12−3は車両に搭載された変速機構の動作モデルを模擬するECTモデル12−3B、車両用LAN14に接続された他のノードからのデータやコマンドからECT制御のための信号を算出する模擬を行うECUモデル12−3Aからなる、機能的なモデルに分類構成されている。また、ノード12−4は車両に搭載された制動機構の動作モデルを模擬するブレーキモデル12−4B、車両用LAN14に接続された他のノードからのデータやコマンドからブレーキ制御のための信号を算出する模擬を行うECUモデル12−4Aからなる、機能的なモデルに分類構成されている。
【0026】
なお、ノード12−4は、ABS(アンチロック・ブレーキ・システム)を含むことも可能である。ABSは、周知のように車輪と路面との間に生じるスリップ状態やタイヤのロック状態を回避するために、タイヤ毎に制動力やタイヤの回転停止力等を制御するものである。
【0027】
ECUノードとしては、VSC(ビークル・スタビリティ・コントロール)を担当するノード12−5が示されている。VSCは、車両の挙動制御を行うものであり、低μ路の横スベリ等を防止するため、ヨーレイトや操舵角に応じてタイヤの回転力を制御する信号を出力するノードである。
【0028】
擬似信号ノードとしては、ノード12−6が示されている。ノード12−6は車両に搭載されたかつ車両用LAN14に接続された実際のECU12−6Aと、この実ECU12−6Aに対して擬似信号を出力する擬似信号発生装置モデル12−6Bからなる、機能的なモデルに分類構成されている。
【0029】
GUIノードとしては、ノード12−1が示されている。ノード12−1は操作や表示の模擬であり、車両に搭載された機器の乗員による操作の模擬を行うドライバ操作モデル12−1A、車両に搭載された表示機器の表示の模擬を行うインパネ表示モデル12−1B、車両や車両に搭載された機器の操作の模擬を指示するためのシミュレーション操作モデル12−1C、からなる、機能的なモデルに分類構成されている。なお、操作や表示の模擬であり、車両用LAN14を必要としない場合があるので、車両用LAN14への接続は必須ではない。
【0030】
なお、上記複数のノードについて説明したが、本実施の形態にかかるノードは上述のノードに限定されるものではなく、車両内に搭載された機器やECUを模擬する他のノードを含めることができる。
【0031】
図3に示すように、ノード12−2は、データバス16に接続されたCPU20、RAM22、ROM24を含んたコンピュータ構成で構築されており、ROMには後述する通信処理等を行うためのプログラムが予め記憶されている。このノード12−2は、入力データや演算結果等を表示する表示装置26、コマンドやデータ等を入力するための入力装置28、データバス16に接続するインタフェース部であるシミュレート通信装置32,及び車両用LAN14に接続するインタフェース部である車内LAN通信装置34を含んで構成されている。
【0032】
なお、ノード12−3,12−4,12−5の各々は、ノード12−2と同様の構成であるため、詳細な説明を省略する。
【0033】
図4(A)に示すように、ノード12−2は、メインノードとして機能して上述のようにエンジン制御のための信号を算出する模擬を行うECUモデル12−2A、エンジンモデル12−2B、時間調整モデル12−2Cに機能的に分類できる。
【0034】
なお、ノード12−3,12−4のプラントノードは、ノード12−2と同様に分類できるが、図4(A)に示す時間調整モデル12−2Cとして機能する分類部分が担当するノードのスケジュール調整すなわちタイミング調整を担当する部分となる。図2では、プラントノードについてタイミング指示等の機能を特に示していないが、ノードの内部処理(すなわちECUモデル12−3A、12−4A)として本来含んでいる機能であるため、ここにスケジューラ12−3Ax,12−4Axとして明示することができる。
【0035】
図4(B)に示すように、ノード12−5のECUノードは、ECUのみで構成可能なモデル(ECUモデル12−5A)であるが、上記と同様に本来含んでいる機能としてスケジューラ12−5Axを独立して示した。
【0036】
図5(A)に示すように、ノード12−6は、ノード12−2と同様の構成であり、CPU40、RAM42、ROM44を含んたコンピュータ構成で、表示装置46、入力装置48、シミュレート通信装置52,及び車内LAN通信装置54がバス50に接続されて構成されている。図5(B)に示すように、ノード12−6は、擬似信号ノードとして機能して上述のように擬似信号を出力する擬似信号発生装置モデル12−6Bである機能分類になる。
【0037】
図6(A)に示すように、ノード12−1は、上記ノードとほぼ同様の構成であるが車両用LAN14への接続は必須ではないため、CPU60、RAM62、ROM64を含んたコンピュータ構成で、表示装置66、入力装置68、及びシミュレート通信装置72がバス60に接続されて構成されている。図6(B)に示すように、ノード12−1は、GUIノードとして機能して上述のように操作や表示を模擬するGUIモデル(12−1A,1B,1C)である機能分類になる。
【0038】
なお、図示は省略したが、ノードを構成するコンピュータのバスに、記録媒体としてのフレキシブルディスクなどが挿抜可能なリードライトユニットを接続することができる。なお、後述する処理ルーチン等は、リードライトユニットを用いてフレキシブルディスクに対して読み書き可能である。従って、後述する処理ルーチンは、ROMなどに記憶することなく、予めフレキシブルディスクに記録しておき、リードライトユニットを介してフレキシブルディスクに記録された処理プログラムを実行してもよい。また、ハードディスク装置等の大容量記憶装置(図示省略)を接続し、フレキシブルディスクに記録された処理プログラムを大容量記憶装置(図示省略)へ格納(インストール)して実行するようにしてもよい。また、記録媒体としては、任意の磁気的なものや光学的なものとしての記録媒体がある。例えば、CD−ROM,MD,MO,DVD等のディスクやDAT等の磁気テープがあり、これらを用いるときには、上記リードライトユニットに代えてまたはさらにCD−ROM装置、MD装置、MO装置、DVD装置、DAT装置等を用いればよい。また、ICカードなどの記録媒体も利用可能である。
【0039】
次に、本実施の形態の作用を図1,図7,図8を参照しつつ説明する。本実施の形態は車両に搭載される複数のノード12で車両用情報通信システムの試験を行うときに、通常の車両用LAN14と、試験模擬するデータ授受可能なデータバス16とにより行うものである。
【0040】
なお、以下の説明では、各ノード12が担当する電子機器のパラメータは予め各メモリ(ROMやRAM)に記憶(登録)されていると共に、他のメモリにバックアップ可能なものとする。
【0041】
車両システム試験装置10による模擬を開始するために、予め各ノード12の電源を投入し、模擬開始可能な環境に設定する。ノード12−1は、GUIノードであるので、車両システム試験装置10の進行を指示したり監視したりするためのユーザインタフェース・プログラムが実行される。
【0042】
図1に示すように、エンジン制御を担当するメインノードであるノード12−2では、本車両システム試験装置10の基本処理が実行される。より具体的には、時間調整モデル12−2Cにおける処理が実行される。
【0043】
ステップ100では、ノード12−1からの模擬開始指示を表す信号を受信したか否かを判断する。その信号受信をするまで否定判断を繰り返し、信号を受信するとステップ100で肯定されステップ102へ進む。ステップ102では、上記ステップ100で受け取った模擬開始指示を受けて、各ノード12−iへ模擬を開始することを表すスタート信号を送信する。この信号送信は、データバス16を介して行われる。このスタート信号を各ノード12−iが受信することによって、各ノード12−iは初期化処理を行う(詳細は後述)。
【0044】
次のステップ104では、全てのノードが初期化を終了したか否かを判断する。ステップ104では、各ノード12−iから送信されるデータを読み取ることによって各ノードが初期化を終了したか否かを判定し、予め定めた全てのノードについてその判定が全て終了したことを判断する。具体的には、各ノード12−iが初期化処理に終了に伴ってその旨を表すデータを受信したり、各ノード12−iがノードの状態を記憶する図示しない共有メモリを更新するその更新状態を監視したりすることで判定する。
【0045】
全ノードの初期化が終了するまでステップ104では否定判断を繰り返し、肯定されると、ステップ106へ進む。ステップ106では、既に全ノードの初期化が終了しているので、車両システム試験装置10の同期をとるために、各ノード12−iへ同期信号を送信する。この信号送信は、データバス16を介して行われる。各ノード12−iでは、この同期信号を受信することで、各ノード12−iのECUモデルの初期化を行う。各ノード12−iでは、ECUモデルの初期化が終了すると、その演算結果を送信し、同期信号の受信待機状態へ移行する。
【0046】
次のステップ108では、全てのノードが模擬のための同期待機状態に移行したか否かを判断する。ステップ108では、各ノード12−iから演算結果が送信されたか否かを判別することによって、全ノードが模擬のための同期待機状態に移行したか否かを判断する。具体的には、各ノード12−iがECUモデルの初期化処理終了に伴って送信するデータを受信したり、各ノード12−iが初期化処理終了に対応するデータを記憶する図示しない共有メモリを更新するその更新状態を監視したりすることで判定する。
【0047】
全ノードが同期待機状態に移行するまでステップ108では否定判断を繰り返し、肯定されると、ステップ110へ進む。ステップ110では、各ノード12−iの状態に基づいて、各ノード12−iの演算周期tを検出する。この演算周期は、各ノード12−iの1ループ演算の周期の最大公約数である。すなわち、各ノード12−iでは1ループ演算処理を1回以上繰り返し行うことによってノード内の処理を完了する。1ループ演算とは、該当するノード12−iにおいて1つの処理を遂行するために必要とする最小単位であり、例えば送信処理や受信処理などを行うために必要とするデータ収集などの1ループ演算が行われる。従って、該当するノード12−iにおいて1ループ演算は繰り返し行われるが、1ループ演算が基準となる。
【0048】
次のステップ112では、通信周期Tを求める。通信周期は、各ノード12−iの演算周期の公倍数である。すなわち、各ノード12−iでは他のノードに対してデータ(物理値)を授けたり他のノードからデータ(物理値)を受け取ったりする物理値の通信を行う。上述のように、各ノード12−iでは1ループ演算の演算周期で各種演算処理を遂行するが、例えば演算結果を得るためには、プラントモデルからのセンサー値を受け取ったり、他のノードへ演算結果である物理値を送信したりする。従って、プラントモデルの許容誤差や通信負荷によって周期が変動する。そこで、これらを考慮するために、通信周期Tとして、各ノード12−iの演算周期の公倍数を定める。
【0049】
次のステップ114では、車両システム試験装置10を同期させつつ作動させるための同期周期Vを設定する。各ノード12−iは時間精度Sで稼働する。このため、時間精度Sを考慮すると、通信周期Tの繰り返しによって通信周期T分の時間だけずれる状態が生じることがある。
【0050】
すなわち、演算周期t=通信周期Tのノードを例にし、t=0.001秒(1ms)でS=0.0001秒(100μs)とすると、演算回数h=T/S=10、となり、ノードの演算を10回行うたびに1演算周期分だけずれが生じる。従って、この繰り返しを継続的に実施すると、演算周期分のズレ時間が増加していく。
【0051】
そこで、本実施の形態では、時間精度Sによる誤差を補正するため、1演算周期分だけのずれを許容することを含む場合に、演算回数h以内に同期タイミング(同期周期V)を設定する。なお、1演算周期分のずれも補正するには、演算回数h未満で同期タイミングを設定することが好ましい。
【0052】
同期周期Vの設定が終了すると、次のステップ116において時間合わせ処理が実行される。ステップ116では、各ノード12−iへ同期信号を送信する。この同期信号により、各ノード12−iでは、リアルタイムの処理が開始される。また、各ノード12−iは、また、擬似信号発生装置モデル12−6Bにおいて、シミュレーションすなわち擬似信号の発生が開始される。なお、ステップ116の同期信号送信による各ノード12−iの動作としては、ECU起動タイミングを模擬するために、予め定めた所定時間までプラントモデルの演算のみを実施する。
【0053】
次のステップ118では、通常の処理を実行する。この通常処理は、上記設定した同期周期Vにより各ノード12−iを同期させつつシミュレーションを実行する処理である。
【0054】
次のステップ120では、エラーが発生したか否かを判断し、肯定されたときには、ステップ122でエラー処理をしたのちに、ステップ124へ進み、否定されたときは、そのままステップ124へ進む。ステップ124では、ノード12−1からのGUIによる終了指示を表す信号を受信したか否かを判別することによって車両システム試験装置10の処理を終了するか否かを判断する。ステップ124で否定されると、ステップ118へ戻り通常処理を繰り返し実行する。一方、ステップ124で肯定されると、本ルーチンを終了する。
【0055】
車両システム試験装置10では、通信の遅れや過剰な演算負荷による遅れがあり、これらをエラーとして判別する。本実施の形態では、エラー対応として次の3つの対応を定めている。なお、他のノードにおいても同様であるが、各ノードにより対応を異ならせることも可能であるため、選択的に設定することもできる。
(1)エラー状態からの回復を待機
正常なノードの動作を一時停止、エラーのノードの正常状態への復帰を待機
予め設定した時間以上回復しないときシミュレーションを終了
擬似信号発生装置モデルを含まないノードによるシステムに有効な設定
(2)即時終了
直ちにシミュレーションを終了
擬似信号発生装置モデルでの実ECU接続のノードを含むシステムに有効な設定特に、重要度が高いノードがエラー状態のときに有効
(3)前回値を保持して継続処理
エラーしたノードが用いた前回の物理値等を用いシミュレーションを継続
擬似信号発生装置モデルでの実ECU接続のノードを含むシステムに有効な設定特に、重要度が低いノードがエラー状態のときに有効
なお、本実施の形態では、上記3つの設定を用いるが、本発明はこれに限定されるものではなく、上記の組み合わせの設定や段階的な設定にしてもよく、また、他の設定を用いてもよい。
【0056】
図7には、各ノード12−iで実行される基本処理を示した。
【0057】
ステップ130では、ノード12−2からのスタート信号を受信したか否かを判断する。その信号受信をするまで否定判断を繰り返し、スタート信号を受信するとステップ130で肯定されステップ132へ進む。ステップ132では、ノード12−2からのスタート信号により、初期化処理を行う。この初期化処理はのプラントモデルの初期化を行う。初期化が終了すると、次のステップ134において初期化が終了した旨を表し同期信号の待機状態へ移行したことを表すデータを送信する。
【0058】
次のステップ136では、ノード12−2からの同期信号を受信したか否かを判断する。その同期信号を受信するまで否定判断を繰り返し、同期信号を受信するとステップ136で肯定されステップ138へ進む。ステップ138では、ECUモデルの初期化処理を実行した後に、その演算結果を次のステップ140へ送信する。ステップ140の処理後には再度、同期信号待機状態へ移行する。
【0059】
次のステップ142では、ノード12−2からの同期信号を受信したか否かを判断する。その同期信号を受信するまで否定判断を繰り返し、同期信号を受信するとステップ142で肯定されステップ144へ進む。ステップ144では、そのノードの1ループ演算などによる通常の演算処理が実行される。この通常処理は、上述の同期周期Vに同期してシミュレーションが実行される処理である。
【0060】
次のステップ146では、エラーが発生したか否かを判断し、肯定されたときには、ステップ148でエラー処理をしたのちに、ステップ150へ進み、否定されたときは、そのままステップ150へ進む。ステップ150では、ノード12−2からのシミュレーション終了指示を表す信号を受信したか否かを判別することによって終了するか否かを判断する。ステップ150で否定されると、ステップ144へ戻り通常処理を繰り返し実行する。一方、ステップ150で肯定されると、本ルーチンを終了する。
【0061】
なお、上記ステップ110の処理は、本発明の検出手段の処理に相当し、ステップ112の処理は、本発明の演算手段の処理に相当する。また、ステップ114の同期周期Vを求める処理は、本発明の導出手段の処理に相当する。また、求めた同期周期Vで同期して模擬させるノード12−2の処理は、本発明の同期手段に相当する。
【0062】
また、上記ノードは本発明の模擬制御手段に相当し、プラントモデルは本発明の機構部に相当し、ECUモデルは作動制御部に相当する。また、擬似信号発生装置モデル(装置)は、本発明の信号発生手段に相当する。
【0063】
図8には、本車両システム試験装置10においてシミュレーションが実行されるノードについての通常処理中のタイムチャートを示した。このタイムチャートを参照して、車両システム試験装置10の作動をさらに説明する。
【0064】
エンジン制御を担当するメインノードであるノード12−2では、本車両システム試験装置10のスケジュール管理を遂行する時間調整モデル12−2Cと、ECUモデル12−2Aとの両方の処理が実行される。
【0065】
なお、図8では、以下の説明のために、便宜上、演算周期t毎に演算するメインのノードA(図2のノード12−2)、演算周期t毎に演算する一般的なノードB、演算周期2t毎に演算する他のノードC,演算周期4t毎に演算する他のノードD,・・・として説明する。図8では、縦軸に時間経過を示し、横軸にノードを示している。
【0066】
模擬が開始されると、ノードAは(自己を含め)、各ノード(A,B,C,D,・・・)へ同期信号を送信することでノード間同期を実施し、各ノードはそれを受けて各処理を開始する。各ノードの処理は、演算処理、送信処理、受信処理の繰り返しを1つの処理として想定している。
【0067】
詳細には、ノードAは演算周期t毎に演算するノードであり、その同期信号により1ループ演算を実行する。その演算結果を送信し受信待機状態へ移行する。ノードAは演算周期tで送受信の処理を実行する。従って、演算周期tに至ると、再度1ループ演算を実行するが、受信を開始するまで受信待機状態を維持する。ノードBは、ノードAと同様である。
【0068】
ノードCは、演算周期2t毎に演算するノードであり、ノードCは演算周期2tで送受信の処理を実行する。まず、ノードAからの同期信号により1ループ演算を実行する。その演算結果を送信し受信待機状態へ移行した後に、受信処理を実行する。演算周期2tに至ると、再度1ループ演算を実行するが、ここでは、受信を完了しているため、そのままの状態を維持する。
【0069】
同様に、ノードDは、演算周期4t毎に演算するノードであり、ノードCは演算周期4tで送受信の処理を実行する。まず、ノードAからの同期信号により1ループ演算を実行する。その演算結果を送信し受信待機状態へ移行した後に、受信処理を実行する。演算周期4tに至ると、再度1ループ演算を実行するが、ここでは、受信を完了しているため、そのままの状態を維持する。
【0070】
図8では、演算周期4t毎に演算するノードまでを想定しており、演算周期がt1,t2,t3,t4の通信周期Tを1群としてシミュレートする。すなわち、周期が4t毎に同期信号をメインノードが送信することで同期させている。このように、周期として周期T1,T2,T3,・・・、のように通信周期T毎に同期されたシミュレートが可能である。
【0071】
以上説明したように、本実施の形態では、車両に搭載された制御系を担当するECUを含むノードの各々を模擬するとき、各々演算周期が異なる場合であっても、これらを同期させつつ模擬することが可能となる。また、各ノードの時間精度を考慮して同期させるため、演算周期のずれによる遅延時間を抑制することができ、高速のシミュレートが可能となる。
【0072】
なお、上記の実施の形態では、バス経由すなわちデータバス16を介して同期させる場合を説明したが、バス経由に限定されるものではなく、任意のネットワーク接続による構成によって同期させてもよい。
【0073】
また、上記の実施の形態では、ECUや擬似信号発生装置によって情報授受する場合を説明したが、本発明はこれに限定されるものではなく、車両内に搭載された電子機器で情報授受可能な装置に接続してもよく、模擬するようにしてもよい。
【0074】
【発明の効果】
以上説明したように本発明によれば、各制御手段が担当する部分を制御するための演算周期を検出手段により検出し、通信周期として演算周期の最小公倍数を演算手段により求め、通信周期の繰り返し演算により生じる1演算周期ずれる通信周期の回数を導出手段により導出して、同期手段によって同期を行うので、車両システムでは、各通信周期の繰り返しにより1演算周期だけずれる以前に、同期をとることができる、という効果がある。
【図面の簡単な説明】
【図1】本発明の実施の形態にかかる車両システム試験装置において、同期処理を実行するためのスケジューリングを行う処理の流れを示すフローチャートである。
【図2】本発明の実施の形態にかかる車両システム試験装置の概略構成を示すブロック図である。
【図3】車両システム試験装置のメインノードの概略構成を示すブロック図である。
【図4】ノードを機能的に分類した概念構成を示し、(A)はプラントモデルを含む構成、(B)はECUモデルのみからなる構成を示している。
【図5】車両システム試験装置の実ECUと接続するノードに関し、(A)は概略構成を示すブロック図であり、(B)は機能的に分類した概念構成図である。
【図6】車両システム試験装置のGUIのノードに関し、(A)は概略構成を示すブロック図であり、(B)は機能的に分類した概念構成図である。
【図7】本発明の実施の形態にかかる車両システム試験装置において、同期処理が実行されるノードでの処理の流れを示すフローチャートである。
【図8】本車両システム試験装置においてシミュレーションが実行されるノードについての通常処理中のタイムチャートである。
【符号の説明】
10 車両システム試験装置
12 ノード
12−2A ECUモデル
12−2B エンジンモデル
12−2C 時間調整モデル
12−6B 擬似信号発生装置モデル
14 車両用LAN
16 データバス
S 時間精度
T 通信周期
V 同期周期
h 演算回数
t 演算周期
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a vehicle system test apparatus and method, and more particularly to a vehicle system test apparatus and method for testing a vehicle system that controls electronic devices mounted on the vehicle while communicating with each other.
[0002]
[Prior art]
In recent years, a plurality of electronic control devices (hereinafter referred to as ECUs) are mounted on vehicles, and a plurality of ECUs are connected by a bus to construct a local area network (hereinafter referred to as a vehicle LAN). It is becoming possible to communicate data.
[0003]
Each of the plurality of ECUs performs control in accordance with the value of the sensor and the operating state of the in-vehicle device, and each ECU controls the vehicle state as much as possible in a state corresponding to the value of the sensor and the operating state of the in-vehicle device. ing. For example, the engine ECU controls the fuel injection amount and the like according to the values of various sensors, and the ABS ECU controls the braking state of the vehicle.
[0004]
Each ECU mounted on such a vehicle independently controls the control target in charge, but there are cases where it is necessary to exchange information with other ECUs. For this reason, data is exchanged using the vehicle LAN.
[0005]
The in-vehicle device (or ECU) needs to be tested in advance. This test may be performed in units of control systems such as in-vehicle devices. However, if sequential tests are performed, the time required for processing depends on the number of control systems such as in-vehicle devices. Increase. In order to solve this problem, there is a central processing unit that supervises management control for a plurality of control systems such as in-vehicle devices, and tests the control system while performing synchronous control. However, when testing a plurality of control systems in synchronization with the central processing unit, the load on the central processing unit increases.
[0006]
In view of this, there has been proposed a distributed automatic testing apparatus for vehicles that executes a test for each ECU (see Japanese Patent Application Laid-Open No. 58-48870). In this technology, in a vehicle automatic test apparatus that controls and manages a plurality of computers operated by a test program related to each on-board device provided corresponding to the on-board device, a synchronization signal control unit is provided on each on-board device. The test is executed in synchronization with each other. Thereby, the load reduction of the central processing unit is achieved.
[0007]
[Problems to be solved by the invention]
However, in a conventional distributed automatic test apparatus for a vehicle, it is necessary to provide a synchronization signal control unit in each mounted device, and a test execution process for the entire vehicle system must be performed in each mounted device. In other words, the processing load increases in order to execute the control integrated as the vehicle system. For this reason, it is difficult to perform processing in real time as when an actual vehicle is operating as a vehicle system.
[0008]
An object of the present invention is to obtain a vehicle system testing apparatus and method capable of testing a vehicle system in a simple configuration and in real time in consideration of the above facts.
[0009]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides a vehicle system test apparatus for testing a vehicle system in which a plurality of control means for controlling the state of a vehicle are connected in parallel, and detects each calculation cycle of the plurality of control means. Detecting means, calculating means for obtaining a least common multiple of a calculation period as a communication period for obtaining a physical value of the control means for each of the plurality of control means, and repetitive calculation of a communication period including a predetermined time accuracy Deriving means for deriving the number of communication cycles deviated by one operation period caused by the above, and the number of communication cycles derived by the deriving means or less And the communication cycle Synchronization means for synchronizing the control means at the timing of Communicate physical values only in the communication cycle It is characterized by having that.
[0010]
The vehicle system test apparatus of the present invention tests a vehicle system in which a plurality of control means for controlling the state of the vehicle are connected in parallel. The vehicle is provided with control means constituted by a plurality of computers and the like, and each control means controls a portion in charge in the vehicle. For example, there is a certain calculation cycle for controlling the portion that each control means is responsible for, such as engine control and brake control. The calculation period of each of the plurality of control means is detected by the detection means. In addition, the portion in charge of each control means requires a communication cycle consisting of a series of calculation cycles for obtaining physical values such as result output and input standby for the portion in charge. This communication cycle differs depending on the portion in charge of each control means. Therefore, the calculation means obtains the least common multiple of the calculation cycle as a communication cycle for obtaining the physical value of the control means for each of the plurality of control means. Therefore, the communication cycle of the portion in charge of the control means in the vehicle may include an error. The deriving means derives the number of communication cycles that deviate by one calculation cycle that is generated by repeated calculation of the communication cycle including a predetermined time accuracy. As a result, the number of shifts by one calculation cycle can be obtained from the number of repetitions of each communication cycle by a plurality of control means. The synchronization means synchronizes the control means at a timing equal to or less than the number of communication cycles derived by the derivation means. Therefore, in the vehicle system, it is possible to achieve synchronization before shifting by one calculation cycle due to repetition of each communication cycle.
[0011]
The said control means can be comprised with the simulation control means which simulates mounting on the said vehicle and controlling the state of the said vehicle.
[0012]
As the control means, it is possible to use a computer such as an actual ECU mounted on the vehicle, but it is often unnecessary to operate the vehicle when performing an electrical test. Therefore, it is configured by simulation control means for simulating mounting on a vehicle and controlling the state of the vehicle. Each of the simulation control means may be composed of independent computers or a single computer. In the case of a single computer, it is preferable that operations on the computer in charge can be performed independently.
[0013]
In the vehicle system test apparatus, at least one of the simulation control means can be configured by a simulation unit of a mechanism mounted on the vehicle and an operation control unit that performs control by the operation of the mechanism.
[0014]
When testing the vehicle system with the simulation control means, it may be necessary to simulate the mechanism mounted on the vehicle. Therefore, at least one of the target simulation control means is configured by a simulation unit of a mechanism mounted on the vehicle and an operation control unit that performs control by the operation of the mechanism. As a result, the independent configuration allows the simulation of the mechanism and the control by the operation of the mechanism to be handled separately and increases the degree of freedom of testing.
[0015]
The vehicle system test apparatus is connected to an actual control unit that is mounted on the vehicle and controls the state of the vehicle, and outputs a pseudo signal corresponding to an actual signal to be given to the actual control unit. Signal generation means may be further provided.
[0016]
By the way, when testing a vehicle system, it is more realistic to test it by substantially operating a control means constituted by a computer such as an actual ECU mounted on the vehicle. Therefore, the apparatus further includes a signal generating unit that is connected to the actual control unit that is mounted on the vehicle and controls the state of the vehicle, and that outputs a pseudo signal corresponding to the actual signal to be given to the actual control unit. By doing so, it becomes possible to substantially operate and test the actual control means for controlling the state of the vehicle, that is, the control means constituted by a computer such as an actual ECU mounted on the vehicle.
[0017]
The plurality of control means can be connected via a vehicle local area network.
[0018]
In the vehicle system test apparatus, a plurality of control means are connected in parallel to test the vehicle system. In the vehicle system, the devices and control means in each vehicle are operated simultaneously or sequentially in the vehicle. When storing and sending / receiving characteristic values of devices in these individual vehicles (for example, sensor output values and data indicating the operating state of the mechanism), if they are processed on a common data bus, another new configuration Never need. Therefore, if the plurality of control means are connected via the vehicle local area network, the characteristic value can be stored and transferred.
[0019]
Here, in order to test the vehicle system in a simple configuration and in real time, the control means may be synchronized in consideration of the calculation cycle and the communication cycle. Specifically, it is a vehicle system test method for testing a vehicle system in which a plurality of control means for controlling the state of the vehicle are connected in parallel, detecting a calculation cycle of each of the plurality of control means, and For each control unit, the least common multiple of the calculation cycle is obtained as a communication cycle for obtaining the physical value of the control unit, and the number of communication cycles deviated by one calculation cycle generated by repeated calculation of the communication cycle including a predetermined time accuracy is calculated. Less than or equal to the number of communication cycles derived by the derivation means And the communication cycle The control means is synchronized at the timing Communicate physical values only in the communication cycle .
[0020]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings. In the present embodiment, the present invention is applied to a test of a vehicle information communication system constructed such that a plurality of ECUs in charge of a plurality of electronic devices mounted on a vehicle can exchange data with a vehicle LAN.
[0021]
As shown in FIG. 2, the vehicle system test apparatus 10 according to the present embodiment includes a plurality of nodes 12-1, 12-2,..., 12-n (n is the maximum number of mounted nodes, hereinafter, general Node 12-i: 1 ≦ i ≦ n in some cases).
[0022]
Each of these nodes 12-i has an independent configuration including a computer. Each of the nodes 12-i is connected to a vehicle LAN 14 that functions as a data bus provided inside the vehicle. The vehicle LAN 14 may be one defined by a standard such as ISO 9141. An actual ECU mounted on the vehicle is connected to the vehicle LAN 14. Further, each of the nodes 12-i is connected to a data bus 16 that enables inter-node connection, that is, computer connection, separately from the vehicle LAN 14. For this data bus 16, a computer connection standard known as a standard such as TCP / IP can be used. In this way, by connecting each of the nodes 12-i to the vehicle LAN 14 and the data bus 16, it is possible to construct a test apparatus equivalent to the vehicle LAN, and to control the simulated nodes independently. It is possible to exchange information (communication) between nodes.
[0023]
The node 12-i is a main node that performs schedule management, a plant node that simulates a portion related to an electronic device mounted on the vehicle, and a simulation that calculates a control signal only from data and commands from the vehicle LAN. There is an ECU node for performing simulation, a pseudo signal node for performing simulation by supplying a pseudo signal to an actual ECU mounted on the vehicle, and a GUI node for performing simulation of a display and an occupant operation mounted in the vehicle.
[0024]
In the example of FIG. 2, the node 12-2 is shown as the main node. The node 12-2 is an engine model 12-2B that simulates an operation model of an engine mechanism mounted on a vehicle, and a simulation that calculates a signal for engine control from data and commands from other nodes connected to the vehicle LAN 14. The ECU model 12-2A for performing the above and the time adjustment model 12-2C for performing time control and monitoring between the nodes are classified into functional models.
[0025]
Nodes 12-3 and 12-4 are shown as plant nodes. The node 12-3 is an ECT model 12-3B that simulates an operation model of a speed change mechanism mounted on a vehicle, and a simulation that calculates a signal for ECT control from data and commands from other nodes connected to the vehicle LAN 14. The ECU model 12-3A is classified into functional models. In addition, the node 12-4 calculates a brake control signal from a brake model 12-4B for simulating an operation model of a braking mechanism mounted on the vehicle and data and commands from other nodes connected to the vehicle LAN 14. The functional model is configured by the ECU model 12-4A that performs the simulation.
[0026]
The node 12-4 can also include an ABS (anti-lock braking system). As is well known, the ABS controls a braking force, a tire rotation stopping force, and the like for each tire in order to avoid a slip state or a tire lock state generated between the wheel and the road surface.
[0027]
As the ECU node, a node 12-5 in charge of VSC (vehicle stability control) is shown. The VSC controls the behavior of the vehicle, and is a node that outputs a signal for controlling the rotational force of the tire in accordance with the yaw rate and the steering angle in order to prevent a lateral slip on a low μ road.
[0028]
As the pseudo signal node, a node 12-6 is shown. The node 12-6 includes a real ECU 12-6A mounted on the vehicle and connected to the vehicle LAN 14, and a pseudo signal generator model 12-6B that outputs a pseudo signal to the real ECU 12-6A. Classified into typical models.
[0029]
A node 12-1 is shown as a GUI node. The node 12-1 is a simulation of operation and display, a driver operation model 12-1A for simulating an operation by a passenger of a device mounted on the vehicle, and an instrument panel display model for simulating display of a display device mounted on the vehicle. 12-1B and a functional model including a simulation operation model 12-1C for instructing simulation of operation of a vehicle or a device mounted on the vehicle. In addition, since it is simulation of operation and a display and the vehicle LAN14 may not be required, the connection to the vehicle LAN14 is not essential.
[0030]
In addition, although the said several node was demonstrated, the node concerning this Embodiment is not limited to the above-mentioned node, The other node which simulates the apparatus mounted in the vehicle and ECU is included. .
[0031]
As shown in FIG. 3, the node 12-2 is constructed by a computer configuration including a CPU 20, a RAM 22, and a ROM 24 connected to the data bus 16, and a program for performing communication processing and the like described later is stored in the ROM. Stored in advance. The node 12-2 includes a display device 26 that displays input data and calculation results, an input device 28 for inputting commands and data, a simulated communication device 32 that is an interface unit connected to the data bus 16, and An in-vehicle LAN communication device 34 that is an interface unit connected to the vehicular LAN 14 is included.
[0032]
Each of the nodes 12-3, 12-4, and 12-5 has the same configuration as that of the node 12-2, and thus detailed description thereof is omitted.
[0033]
As shown in FIG. 4A, the node 12-2 functions as a main node and performs ECU model 12-2A, engine model 12-2B, which simulates a signal for engine control as described above. It can be functionally classified into the time adjustment model 12-2C.
[0034]
The plant nodes of the nodes 12-3 and 12-4 can be classified in the same manner as the node 12-2, but the schedule of the nodes in charge of the classification portion functioning as the time adjustment model 12-2C shown in FIG. It is a part in charge of adjustment, that is, timing adjustment. FIG. 2 does not particularly show functions such as timing instructions for the plant node, but since it is a function that is originally included as internal processing of the node (that is, ECU models 12-3A and 12-4A), the scheduler 12- It can be specified as 3Ax, 12-4Ax.
[0035]
As shown in FIG. 4B, the ECU node of the node 12-5 is a model (ECU model 12-5A) that can be configured only by the ECU, but the scheduler 12- 5Ax was shown independently.
[0036]
As shown in FIG. 5A, the node 12-6 has the same configuration as the node 12-2, and has a computer configuration including a CPU 40, a RAM 42, and a ROM 44, a display device 46, an input device 48, and simulated communication. A device 52 and an in-vehicle LAN communication device 54 are connected to a bus 50. As shown in FIG. 5B, the node 12-6 functions as a pseudo signal node and has a function classification that is a pseudo signal generator model 12-6B that outputs a pseudo signal as described above.
[0037]
As shown in FIG. 6A, the node 12-1 has substantially the same configuration as the above node, but since connection to the vehicle LAN 14 is not essential, it has a computer configuration including a CPU 60, a RAM 62, and a ROM 64. A display device 66, an input device 68, and a simulated communication device 72 are connected to the bus 60. As shown in FIG. 6 (B), the node 12-1 functions as a GUI node and has a function classification that is a GUI model (12-1A, 1B, 1C) that simulates operation and display as described above.
[0038]
Although not shown, a read / write unit into which a flexible disk as a recording medium can be inserted and removed can be connected to a bus of a computer constituting the node. Note that processing routines and the like to be described later can be read from and written to the flexible disk using a read / write unit. Therefore, the processing routine described later may be recorded in advance on the flexible disk without being stored in the ROM or the like, and the processing program recorded on the flexible disk may be executed via the read / write unit. Alternatively, a large-capacity storage device (not shown) such as a hard disk device may be connected, and the processing program recorded on the flexible disk may be stored (installed) in the large-capacity storage device (not shown) and executed. As the recording medium, there are arbitrary magnetic and optical recording media. For example, there are discs such as CD-ROM, MD, MO, and DVD, and magnetic tapes such as DAT, and when these are used, a CD-ROM device, MD device, MO device, DVD device instead of or in addition to the read / write unit. A DAT device or the like may be used. A recording medium such as an IC card can also be used.
[0039]
Next, the operation of the present embodiment will be described with reference to FIGS. In the present embodiment, when a vehicle information communication system is tested at a plurality of nodes 12 mounted on the vehicle, a normal vehicle LAN 14 and a data bus 16 capable of transferring data to simulate the test are used. .
[0040]
In the following description, it is assumed that the parameters of the electronic equipment in charge of each node 12 are stored (registered) in advance in each memory (ROM or RAM) and can be backed up to another memory.
[0041]
In order to start the simulation by the vehicle system test apparatus 10, the power of each node 12 is turned on in advance, and an environment where the simulation can be started is set. Since the node 12-1 is a GUI node, a user interface program for instructing and monitoring the progress of the vehicle system test apparatus 10 is executed.
[0042]
As shown in FIG. 1, the basic process of the vehicle system test apparatus 10 is executed in a node 12-2 that is a main node in charge of engine control. More specifically, the process in the time adjustment model 12-2C is executed.
[0043]
In step 100, it is determined whether or not a signal representing a simulation start instruction from the node 12-1 has been received. The negative determination is repeated until the signal is received. When a signal is received, the determination is affirmative in step 100 and the process proceeds to step 102. In step 102, in response to the simulation start instruction received in step 100, a start signal indicating that the simulation is started is transmitted to each node 12-i. This signal transmission is performed via the data bus 16. When each node 12-i receives this start signal, each node 12-i performs an initialization process (details will be described later).
[0044]
In the next step 104, it is determined whether or not all nodes have completed initialization. In step 104, it is determined whether or not each node has completed initialization by reading data transmitted from each node 12-i, and it is determined that all the determinations have been completed for all predetermined nodes. . Specifically, each node 12-i receives data indicating that the initialization process is completed, or each node 12-i updates a shared memory (not shown) that stores the state of the node. Judgment is made by monitoring the status.
[0045]
In step 104, the negative determination is repeated until the initialization of all nodes is completed. In step 106, since initialization of all nodes has already been completed, a synchronization signal is transmitted to each node 12-i in order to synchronize the vehicle system test apparatus 10. This signal transmission is performed via the data bus 16. Each node 12-i receives this synchronization signal to initialize the ECU model of each node 12-i. When the initialization of the ECU model is completed, each node 12-i transmits the calculation result and shifts to a synchronization signal reception standby state.
[0046]
In the next step 108, it is determined whether or not all nodes have shifted to a synchronization standby state for simulation. In step 108, it is determined whether or not all nodes have shifted to a synchronization standby state for simulation by determining whether or not an operation result has been transmitted from each node 12-i. More specifically, each node 12-i receives data transmitted when the initialization process of the ECU model ends, or each node 12-i stores data corresponding to the end of the initialization process (not shown). It is determined by monitoring the update status of the update.
[0047]
In step 108, the negative determination is repeated until all the nodes shift to the synchronization standby state. In step 110, the calculation cycle t of each node 12-i is detected based on the state of each node 12-i. This calculation cycle is the greatest common divisor of the cycle of the one-loop calculation of each node 12-i. That is, each node 12-i completes the process in the node by repeating the one-loop calculation process one or more times. The one-loop operation is a minimum unit necessary for performing one process in the corresponding node 12-i. For example, a one-loop operation such as data collection required for performing a transmission process, a reception process, or the like. Is done. Accordingly, the one-loop operation is repeatedly performed in the corresponding node 12-i, but the one-loop operation is a reference.
[0048]
In the next step 112, a communication cycle T is obtained. The communication cycle is a common multiple of the calculation cycle of each node 12-i. That is, each node 12-i performs communication of a physical value that gives data (physical value) to another node or receives data (physical value) from another node. As described above, each node 12-i performs various types of calculation processing in the calculation cycle of one loop calculation. For example, in order to obtain a calculation result, a sensor value from a plant model is received or calculated to another node. Send the physical value that is the result. Therefore, the cycle varies depending on the tolerance of the plant model and the communication load. Therefore, in order to consider these, the common multiple of the calculation cycle of each node 12-i is determined as the communication cycle T.
[0049]
In the next step 114, a synchronization period V for operating the vehicle system test apparatus 10 while synchronizing it is set. Each node 12-i operates with time accuracy S. For this reason, when the time accuracy S is taken into account, there may occur a state in which the communication period T is shifted by the repetition of the communication period T.
[0050]
That is, taking a node with an operation cycle t = communication cycle T as an example, if t = 0.001 second (1 ms) and S = 0.0001 second (100 μs), the number of operations h = T / S = 10. Every time this calculation is performed 10 times, a shift of one calculation cycle occurs. Therefore, if this repetition is continuously performed, the deviation time for the calculation period increases.
[0051]
Therefore, in the present embodiment, in order to correct the error due to the time accuracy S, the synchronization timing (synchronization cycle V) is set within the number of operations h when including a shift by one operation cycle. In order to correct a deviation for one calculation cycle, it is preferable to set the synchronization timing with less than the number of calculations h.
[0052]
When the setting of the synchronization period V is completed, a time adjustment process is executed in the next step 116. In step 116, a synchronization signal is transmitted to each node 12-i. By this synchronization signal, each node 12-i starts real-time processing. Each node 12-i also starts simulation, that is, generation of a pseudo signal, in the pseudo signal generator model 12-6B. In addition, as operation | movement of each node 12-i by the synchronous signal transmission of step 116, in order to simulate ECU starting timing, only the calculation of a plant model is implemented until the predetermined time defined beforehand.
[0053]
In the next step 118, normal processing is executed. This normal process is a process of executing a simulation while synchronizing each node 12-i with the set synchronization period V.
[0054]
In the next step 120, it is determined whether or not an error has occurred. If the determination is affirmative, the error processing is performed in step 122 and then the process proceeds to step 124. If the determination is negative, the process proceeds to step 124 as it is. In step 124, it is determined whether or not the process of the vehicle system test apparatus 10 is to be ended by determining whether or not a signal representing an end instruction by the GUI from the node 12-1 has been received. If the result in step 124 is negative, the process returns to step 118 and the normal process is repeated. On the other hand, when the result in step 124 is affirmative, this routine ends.
[0055]
In the vehicle system test apparatus 10, there are communication delays and delays due to excessive calculation load, and these are determined as errors. In the present embodiment, the following three correspondences are defined as error handling. The same applies to the other nodes, but the correspondence can be changed depending on each node, so that it can be set selectively.
(1) Wait for recovery from error status
Suspend normal node operation and wait for error node to return to normal state
End simulation when not recovering more than preset time
Effective settings for systems with nodes that do not include a pseudo signal generator model
(2) Immediate termination
End simulation immediately
Effective setting for systems including nodes with actual ECU connections in the pseudo signal generator model Especially effective when nodes with high importance are in an error state
(3) Keep the previous value and continue processing
Continue the simulation using the previous physical values used by the failed node
Effective setting for systems including nodes with actual ECU connection in pseudo signal generator model Especially effective when nodes with low importance are in error state
In the present embodiment, the above three settings are used. However, the present invention is not limited to this, and the above combination setting or stepwise setting may be used, and other settings may be used. May be.
[0056]
FIG. 7 shows basic processing executed by each node 12-i.
[0057]
In step 130, it is determined whether a start signal from the node 12-2 has been received. The negative determination is repeated until the signal is received. When the start signal is received, the result is affirmative in step 130 and the process proceeds to step 132. In step 132, initialization processing is performed according to a start signal from the node 12-2. This initialization process initializes the plant model. When the initialization is completed, in the next step 134, data indicating that the initialization is completed and data indicating the transition to the standby state of the synchronization signal is transmitted.
[0058]
In the next step 136, it is determined whether or not the synchronization signal from the node 12-2 has been received. The negative determination is repeated until the synchronization signal is received. When the synchronization signal is received, the result in step 136 is affirmative and the process proceeds to step 138. In step 138, after the ECU model initialization process is executed, the calculation result is transmitted to the next step 140. After the process of step 140, it again shifts to the synchronization signal standby state.
[0059]
In the next step 142, it is determined whether or not the synchronization signal from the node 12-2 has been received. The negative determination is repeated until the synchronization signal is received. When the synchronization signal is received, the determination in step 142 is affirmative and the process proceeds to step 144. In step 144, normal calculation processing such as one-loop calculation of the node is executed. This normal process is a process in which a simulation is executed in synchronization with the above-described synchronization period V.
[0060]
In the next step 146, it is determined whether or not an error has occurred. If the determination is affirmative, the error processing is performed in step 148 and then the process proceeds to step 150. If the determination is negative, the process proceeds to step 150 as it is. In step 150, it is determined whether or not to end by determining whether or not a signal indicating a simulation end instruction from the node 12-2 has been received. If the result in Step 150 is negative, the process returns to Step 144 and the normal process is repeated. On the other hand, if the determination in step 150 is affirmative, this routine is terminated.
[0061]
Note that the processing of step 110 corresponds to the processing of the detection means of the present invention, and the processing of step 112 corresponds to the processing of the calculation means of the present invention. Further, the process of obtaining the synchronization period V in step 114 corresponds to the process of the derivation means of the present invention. The processing of the node 12-2 that is simulated in synchronization with the obtained synchronization period V corresponds to the synchronization means of the present invention.
[0062]
The node corresponds to the simulation control means of the present invention, the plant model corresponds to the mechanism section of the present invention, and the ECU model corresponds to the operation control section. The pseudo signal generator model (device) corresponds to the signal generator of the present invention.
[0063]
FIG. 8 shows a time chart during normal processing for a node on which simulation is executed in the vehicle system test apparatus 10. The operation of the vehicle system test apparatus 10 will be further described with reference to this time chart.
[0064]
In the node 12-2 which is the main node in charge of engine control, both the time adjustment model 12-2C and the ECU model 12-2A for performing the schedule management of the vehicle system test apparatus 10 are executed.
[0065]
In FIG. 8, for convenience of explanation, for the sake of convenience, a main node A (node 12-2 in FIG. 2) that is calculated every calculation cycle t, a general node B that is calculated every calculation cycle t, and a calculation In the following description, another node C is calculated every cycle 2t, another node D is calculated every cycle 4t, and so on. In FIG. 8, the vertical axis indicates the passage of time, and the horizontal axis indicates nodes.
[0066]
When the simulation is started, node A (including itself) performs synchronization between nodes by transmitting a synchronization signal to each node (A, B, C, D,...) In response, each process is started. The processing of each node assumes repetition of arithmetic processing, transmission processing, and reception processing as one processing.
[0067]
Specifically, the node A is a node that calculates every calculation cycle t, and executes a one-loop calculation with the synchronization signal. The calculation result is transmitted, and a transition is made to a reception standby state. The node A executes transmission / reception processing at the calculation cycle t. Therefore, when the calculation cycle t is reached, the one-loop calculation is executed again, but the reception standby state is maintained until reception is started. Node B is similar to node A.
[0068]
The node C is a node that calculates every calculation cycle 2t, and the node C executes transmission / reception processing at the calculation cycle 2t. First, a one-loop operation is executed by the synchronization signal from node A. After transmitting the calculation result and shifting to the reception standby state, the reception process is executed. When the calculation period reaches 2t, the one-loop calculation is executed again. However, since the reception is completed here, the state is maintained as it is.
[0069]
Similarly, the node D is a node that calculates every calculation cycle 4t, and the node C executes transmission / reception processing at the calculation cycle 4t. First, a one-loop operation is executed by the synchronization signal from node A. After transmitting the calculation result and shifting to the reception standby state, the reception process is executed. When the calculation cycle reaches 4t, the one-loop calculation is executed again. However, since the reception is completed here, the state is maintained as it is.
[0070]
In FIG. 8, it is assumed that the nodes are calculated every calculation cycle 4t, and the communication cycle T of the calculation cycles t1, t2, t3, and t4 is simulated as one group. In other words, the main node synchronizes by transmitting a synchronization signal every 4t. In this way, it is possible to perform a simulation synchronized with each communication cycle T, such as cycles T1, T2, T3,.
[0071]
As described above, in the present embodiment, when simulating each of the nodes including the ECU in charge of the control system mounted on the vehicle, even if the calculation cycles are different, they are simulated while being synchronized. It becomes possible to do. In addition, since synchronization is performed in consideration of the time accuracy of each node, a delay time due to a shift in the calculation cycle can be suppressed, and high-speed simulation is possible.
[0072]
In the above-described embodiment, the case where synchronization is performed via the bus, that is, the data bus 16, is described. However, the synchronization is not limited to the bus, and the synchronization may be performed by an arbitrary network connection configuration.
[0073]
In the above embodiment, the case where information is exchanged by the ECU or the pseudo signal generator has been described. However, the present invention is not limited to this, and information can be exchanged by an electronic device mounted in the vehicle. It may be connected to a device or may be simulated.
[0074]
【The invention's effect】
As described above, according to the present invention, the calculation cycle for controlling the part that each control unit is responsible for is detected by the detection unit, the least common multiple of the calculation cycle is obtained as the communication cycle by the calculation unit, and the communication cycle is repeated. Since the number of communication cycles shifted by one calculation cycle generated by the calculation is derived by the deriving unit and synchronized by the synchronization unit, the vehicle system may synchronize before shifting by one calculation cycle due to repetition of each communication cycle. There is an effect that can be done.
[Brief description of the drawings]
FIG. 1 is a flowchart showing a flow of processing for performing scheduling for executing synchronization processing in a vehicle system test apparatus according to an embodiment of the present invention;
FIG. 2 is a block diagram showing a schematic configuration of the vehicle system test apparatus according to the embodiment of the present invention.
FIG. 3 is a block diagram showing a schematic configuration of a main node of the vehicle system test apparatus.
FIG. 4 shows a conceptual configuration in which nodes are functionally classified, (A) shows a configuration including a plant model, and (B) shows a configuration consisting only of an ECU model.
5A is a block diagram showing a schematic configuration of a node connected to an actual ECU of a vehicle system test apparatus, and FIG. 5B is a conceptual configuration diagram functionally classified.
6A is a block diagram showing a schematic configuration of a GUI node of a vehicle system test apparatus, and FIG. 6B is a conceptual configuration diagram functionally classified.
FIG. 7 is a flowchart showing a flow of processing at a node where synchronization processing is executed in the vehicle system test apparatus according to the embodiment of the present invention.
FIG. 8 is a time chart during normal processing for a node on which simulation is executed in the vehicle system test apparatus.
[Explanation of symbols]
10 Vehicle system test equipment
12 nodes
12-2A ECU model
12-2B engine model
12-2C Time adjustment model
12-6B Pseudo signal generator model
14 Vehicle LAN
16 Data bus
S Time accuracy
T Communication cycle
V synchronization period
h Number of operations
t Calculation cycle

Claims (6)

車両の状態を制御する複数の制御手段が並列に接続された車両システムを試験する車両システム試験装置において、
前記複数の制御手段の各々の演算周期を検出する検出手段と、
前記複数の制御手段の各々について、制御手段の物理値を得るための通信周期として演算周期の最小公倍数を求める演算手段と、
予め定めた時間精度を含めた通信周期の繰り返し演算によって生じる1演算周期ずれる通信周期の回数を導出する導出手段と、
前記導出手段により導出された通信周期の回数以下でかつ前記通信周期のタイミングで前記制御手段の同期を行う同期手段と、
を備え、前記通信周期でのみ物理値を通信することを特徴とする車両システム試験装置。
In a vehicle system test apparatus for testing a vehicle system in which a plurality of control means for controlling the state of the vehicle are connected in parallel.
Detecting means for detecting a calculation cycle of each of the plurality of control means;
For each of the plurality of control means, calculation means for obtaining the least common multiple of the calculation period as a communication period for obtaining the physical value of the control means,
Deriving means for deriving the number of communication cycles deviated by one calculation cycle caused by repeated calculation of communication cycles including a predetermined time accuracy;
Synchronizing means for synchronizing the control means at a timing equal to or less than the number of communication cycles derived by the derivation means;
And a vehicle system test apparatus that communicates physical values only in the communication cycle .
前記制御手段は、前記車両に搭載されかつ前記車両の状態を制御することを模擬する模擬制御手段で構成したことを特徴とする請求項1に記載の車両システム試験装置。  The vehicle system test apparatus according to claim 1, wherein the control unit includes a simulation control unit that is mounted on the vehicle and that simulates controlling the state of the vehicle. 前記模擬制御手段の少なくとも1つは、前記車両に搭載された機構の模擬部と、その機構の作動による制御を行う作動制御部とから構成されたことを特徴とする請求項1または請求項2に記載の車両システム試験装置。  The at least one of the simulation control means includes a simulation unit of a mechanism mounted on the vehicle and an operation control unit that performs control by the operation of the mechanism. The vehicle system test apparatus described in 1. 前記車両に搭載されかつ前記車両の状態を制御する実制御手段に接続すると共に、該実制御手段に対して与えられるべき実信号に相当する擬似信号を出力する信号発生手段をさらに備えたことを特徴とする請求項1乃至請求項3の何れか1項に記載の車両システム試験装置。  The apparatus further comprises signal generating means for connecting to actual control means mounted on the vehicle and controlling the state of the vehicle, and outputting a pseudo signal corresponding to an actual signal to be given to the actual control means. The vehicle system test apparatus according to any one of claims 1 to 3, wherein the vehicle system test apparatus is any one of claims 1 to 3. 前記複数の制御手段は、車両用ローカルエリアネットワークで接続されたことを特徴とする請求項1乃至請求項4の何れか1項に記載の車両システム試験装置。  5. The vehicle system test apparatus according to claim 1, wherein the plurality of control units are connected by a vehicle local area network. 6. 車両の状態を制御する複数の制御手段が並列に接続された車両システムを試験する車両システム試験方法であって、
前記複数の制御手段の各々の演算周期を検出し、
前記複数の制御手段の各々について、制御手段の物理値を得るための通信周期として演算周期の最小公倍数を求め、
予め定めた時間精度を含めた通信周期の繰り返し演算によって生じる1演算周期ずれる通信周期の回数を導出し、
前記導出手段により導出された通信周期の回数以下でかつ前記通信周期のタイミングで前記制御手段の同期を行い前記通信周期でのみ物理値を通信する
ことを特徴とする車両システム試験方法。
A vehicle system test method for testing a vehicle system in which a plurality of control means for controlling the state of the vehicle are connected in parallel,
Detecting a calculation cycle of each of the plurality of control means;
For each of the plurality of control means, find the least common multiple of the calculation period as a communication period for obtaining the physical value of the control means,
Deriving the number of communication cycles deviated by one calculation cycle generated by repeated calculation of the communication cycle including a predetermined time accuracy,
Vehicle system testing method characterized by communicating only the physical value in the line have the communication cycle synchronization of the control means at a timing of less and the communication cycle number of the communication cycle derived by the deriving means.
JP2001320624A 2001-10-18 2001-10-18 Vehicle system test apparatus and method Expired - Fee Related JP3963092B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001320624A JP3963092B2 (en) 2001-10-18 2001-10-18 Vehicle system test apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001320624A JP3963092B2 (en) 2001-10-18 2001-10-18 Vehicle system test apparatus and method

Publications (2)

Publication Number Publication Date
JP2003121310A JP2003121310A (en) 2003-04-23
JP3963092B2 true JP3963092B2 (en) 2007-08-22

Family

ID=19137982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001320624A Expired - Fee Related JP3963092B2 (en) 2001-10-18 2001-10-18 Vehicle system test apparatus and method

Country Status (1)

Country Link
JP (1) JP3963092B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9323246B2 (en) 2007-11-23 2016-04-26 Illinois Tool Works Inc. System, controller and method for synchronized capture and synchronized playback of data
CN107562038A (en) * 2017-08-31 2018-01-09 中国第汽车股份有限公司 A kind of Vehicle Controller Auto-Test System

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4349276B2 (en) * 2004-12-22 2009-10-21 トヨタ自動車株式会社 Abnormality judgment system
JP4577090B2 (en) * 2005-05-25 2010-11-10 日産自動車株式会社 In-vehicle electrical component test system and test method
DE502006008342D1 (en) * 2006-09-11 2010-12-30 Dspace Gmbh Method for testing an electronic control system
JP2008077560A (en) * 2006-09-25 2008-04-03 Fujitsu Ten Ltd Test system of control device
JP2009014406A (en) * 2007-07-02 2009-01-22 Toyota Motor Corp Automatic inspection apparatus for electronic control unit
JP5186307B2 (en) * 2008-08-27 2013-04-17 インターナショナル・ビジネス・マシーンズ・コーポレーション Simulation method, system and program
JP5509882B2 (en) * 2010-01-29 2014-06-04 富士通株式会社 Collection device, sensor device, and collection method
BR112014022180B1 (en) * 2012-03-09 2022-08-30 Honda Motor Co., Ltd COMMUNICATION SIMULATION SYSTEM, COMMUNICATION SIMULATION METHOD AND VEHICLE COMMUNICATION DEVICE
JP7408342B2 (en) 2019-10-17 2024-01-05 株式会社堀場製作所 Test system, test method and test program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9323246B2 (en) 2007-11-23 2016-04-26 Illinois Tool Works Inc. System, controller and method for synchronized capture and synchronized playback of data
CN107562038A (en) * 2017-08-31 2018-01-09 中国第汽车股份有限公司 A kind of Vehicle Controller Auto-Test System
CN107562038B (en) * 2017-08-31 2020-10-27 中国第一汽车股份有限公司 Automatic test system for vehicle-mounted controller

Also Published As

Publication number Publication date
JP2003121310A (en) 2003-04-23

Similar Documents

Publication Publication Date Title
JP5336507B2 (en) System, control apparatus and method for synchronous acquisition and synchronous reproduction of data
JP3963092B2 (en) Vehicle system test apparatus and method
US6804636B2 (en) Control program development support apparatus
US7020722B2 (en) Synchronization of distributed simulation nodes by keeping timestep schedulers in lockstep
US20090312850A1 (en) Simulation apparatus, model for simulation, and apparatus forming model for simulation
JP7130499B2 (en) Method for providing real-time simulation part for control unit development and simulation apparatus for control unit development
JP2017523488A (en) Integrated controller for memory physical layer interface training
CN108701055A (en) Controller of vehicle and Vehicular system
CN110221994A (en) A kind of method and device of data bit width conversion, computer readable storage medium
CN100498799C (en) Simulation system and computer-implemented method for simulation and verifying a control system
JP4648453B2 (en) System and method for testing a controller mechanism
EP0513741B1 (en) Disk synchronization control system and method
CN111639047B (en) Satellite-borne data combining multiplexer testing device and method
JP2009510554A (en) Circuit design verification using checkpointing
JP2007210396A (en) Brake control device, method and program
KR102410940B1 (en) Method and system for ECU execution time monitoring and fault finding
JP4400209B2 (en) In-vehicle electrical component test system and test method
US5515504A (en) Method for checking conformity to a standard of a representative module of a circuit dedicated to management of a communications protocol, and system for implementing it
JP2005014743A (en) Failure part detection device for vehicle
GB2478661A (en) A Controller Device and Method for Testing for an Automotive Test System
EP4036780A1 (en) Electronic control unit timing emulation
JP2004019508A (en) Evaluation method of controller for vehicle and registering device of signal for evaluation of controller for vehicle
Berwanger et al. Flexray-exploitation of a standard and future prospects
JP3952534B2 (en) Synchronous control device and recording / reproducing device
JP2002333464A (en) Testing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040723

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060627

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060825

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070514

LAPS Cancellation because of no payment of annual fees