JP3645291B2 - Vehicle control device with data communication function - Google Patents

Vehicle control device with data communication function Download PDF

Info

Publication number
JP3645291B2
JP3645291B2 JP25387194A JP25387194A JP3645291B2 JP 3645291 B2 JP3645291 B2 JP 3645291B2 JP 25387194 A JP25387194 A JP 25387194A JP 25387194 A JP25387194 A JP 25387194A JP 3645291 B2 JP3645291 B2 JP 3645291B2
Authority
JP
Japan
Prior art keywords
control means
vehicle
vehicle control
data
communication
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
JP25387194A
Other languages
Japanese (ja)
Other versions
JPH08115274A (en
Inventor
昭吾 今田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Ten Ltd
Original Assignee
Denso Ten Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Ten Ltd filed Critical Denso Ten Ltd
Priority to JP25387194A priority Critical patent/JP3645291B2/en
Publication of JPH08115274A publication Critical patent/JPH08115274A/en
Application granted granted Critical
Publication of JP3645291B2 publication Critical patent/JP3645291B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Hardware Redundancy (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【0001】
【産業上の利用分野】
本発明は、車両に搭載された複数のECU(Electronic Control Unit)によって構成される制御装置のように、複数の車両制御手段がそれぞれ予め定める制御を個別に実行するとともに、各車両制御手段間でデータ通信を行うデータ通信機能を備えた車両制御装置に関する。
【0002】
【従来の技術】
図1は、本発明の前提となる制御装置1の構成を示すブロック図である。制御装置1は、複数の制御手段S1〜Sn(総称するときは参照符Sを用いる)を含んで構成される。各制御手段Sは、それぞれ予め定める制御を個別に実行する。たとえば、車両に搭載されている場合は、ABS制御、エアーバック制御、燃料噴射量制御などをそれぞれ実行する。制御装置1は、1つのマスタ制御手段S1と、複数のスレーブ制御手段S2〜Snとに区分され、各制御手段Sは、通信ラインKによって接続されている。なお、ここでの「マスタ」および「スレーブ」は、後述する各制御手段間の通信方式における主従関係を示すものであり、制御動作における主従関係を示すものではない。
【0003】
制御装置1は、ISO9141(国際標準規格)に準拠した通信方式が実施される。この通信方式は、いわゆるマスタ・スレーブ方式であり、マスタ制御手段S1から複数のスレーブ制御手段S2〜Snに対して要求データを送信し、各スレーブ制御手段S2〜Snは要求データを受信し、それぞれのスレーブ制御手段がマスタ制御手段S1に応答データを送信する方式である。
【0004】
制御手段S1〜Snには、データ送信の順位を決定する優先順位が定められており、優先順位の最上位の制御手段がマスタ制御手段となり、それ以外の制御手段がスレーブ制御手段となり、優先順位の高いスレーブ制御手段から順番にマスタ制御手段に応答データを送信する。ここでは、参照符Sの添字1〜nが優先順位を表すものとする。
【0005】
このような制御装置1は、必要に応じてテスタ2が接続される。テスタ2は、制御装置1が正常に動作しているかどうかを確認し、また故障発生時には各制御手段Sが記憶した制御データを読出し、故障原因の解析および究明を行う。
【0006】
【発明が解決しようとする課題】
テスタ2を制御装置1に接続したときはテスタ2がマスタ端末装置になり、データ通信に先立って初期化を行う。初期化とは、通信する制御手段の特定と、通信速度の決定などの通信条件の設定である。初期化は、一般に、テスタ2とスレーブ制御手段Sの代表である制御手段S1との間だけで行うため、他の制御手段S2〜Snとの間では行われず、他のスレーブ制御手段が通信不能状態であっても、確認が行えず、実際に通信を開始してから初めて認識される。このような通信不能状態の制御手段が存在することによって通信エラー等が発生し、テスタ2の操作者はその対応をとる必要がある。
【0007】
上述した初期化後にすべての制御手段S1〜Snから制御データを読取る場合、テスタ2は、制御手段Sが実行することができる複数の通信速度のうち最低速の通信速度でデータ通信を行わなければならない。これは、各制御手段Sが実行することができる通信速度に差があり、すなわち一般的には優先順位が上位の制御手段は高速通信が可能であるが、優先順位が下位の制御手段は低速通信しか行えないためである。このため、制御手段Sから制御データを読出す際のデータ通信時間が比較的長時間になるという問題がある。
【0008】
また、各制御手段S毎にその制御手段がもつ最高速の通信速度でデータ通信を行うことも可能ではあるが、この場合通信速度が異なる制御手段毎に上述した初期化動作を行う必要があり、そのためのテスタ2の操作が手間となり、また初期化動作を行う回数が増加するため必ずしも短期間でデータ通信が行えるとは限らない。さらに、テスタ2は複数の通信速度を実行するための構成を備える必要があり、ソフトウエア的にもまたハードウエア的にも高価なものになるという課題がある。
【0009】
本発明の目的は、各車両制御手段の動作状態、および各車両制御手段間の通信ラインの状態を容易に確認することができるデータ通信機能を備えた車両制御装置を提供することである。
【0010】
【課題を解決するための手段】
本発明は、車両に搭載され、予め定める車両制御をそれぞれ個別に行う複数の車両制御手段を1つの通信ラインで接続して構成され、複数の車両制御手段の中から選ばれる1つの主車両制御手段は、他の車両制御手段にデータの送信を要求する要求データを送信し、他の車両制御手段はデータ送信の順序を決定する優先順位に従って前記要求データに対する応答データを順番に送信するデータ通信機能を備えた車両制御装置において、
前記主車両制御手段には、複数の車両制御手段の動作状態を検査する車両用検査装置が必要に応じて接続され、
前記主車両制御手段は、データ通信に先立って前記車両用検査装置から送信される初期化信号を受信したこによって前記車両用検査装置が接続されていることを検知する検知手段を備え、
前記車両用検査装置が接続されていないときは、実行していた車両制御を表す制御データを含む動作確認のための予め定めるデータを応答データとして送信することを要求する要求データを周期的に送信し、他の車両制御手段から送信された応答データに基づいて当該他の車両制御手段が正常に動作しているかどうかを判断し、他の車両制御手段が異常であると判断した場合には、異常が発生した他の車両制御手段から送信された応答データに含まれる制御データを保持しておき、
前記車両用検査装置が接続されていることを検知したときは、前記要求データの送信および応答データの受信を終了し、前記主車両制御手段が通信可能な複数ある通信速度のうち最高速の通信速度で、前記車両用検査装置との間で車両制御手段の動作状態に関するデータ通信を行うとともに、前記車両用検査装置が接続されていないときに他の車両制御手段が異常であると判断していた場合には、該他の車両制御手段に異常が発生したときに保持しておいた他の車両制御手段が実行していた制御データを前記車両用検査装置に一括して送信することを特徴とするデータ通信機能を備えた車両制御装置である。
また本発明は、車両に搭載され、予め定める車両制御をそれぞれ個別に行う複数の車両制御手段を1つの通信ラインで接続して構成され、複数の車両制御手段の中から選ばれる1つの主車両制御手段は、他の車両制御手段にデータの送信を要求する要求データを送信し、他の車両制御手段はデータ送信の順序を決定する優先順位に従って前記要求データに対する応答データを順番に送信するデータ通信機能を備えた車両制御装置において、
前記主車両制御手段には、複数の車両制御手段の動作状態を検査する車両用検査装置が必要に応じて接続され、
前記主車両制御手段は、前記車両用検査装置の接続によって生じる車両制御装置内の電位差を検知して前記車両用検査装置が接続されていることを検知する検知手段を備え、
前記車両用検査装置が接続されていないときは、実行していた車両制御を表す制御データを含む動作確認のための予め定めるデータを応答データとして送信することを要求する要求データを周期的に送信し、他の車両制御手段から送信された応答データに基づいて当該他の車両制御手段が正常に動作しているかどうかを判断し、他の車両制御手段が異常であると判断した場合には、異常が発生した他の車両制御手段から送信された応答データに含まれる制御データを保持しておき、
前記車両用検査装置が接続されていることを検知したときは、前記要求データの送信および応答データの受信を終了し、前記主車両制御手段が通信可能な複数ある通信速度のうち最高速の通信速度で、前記車両用検査装置との間で車両制御手段の動作状態に関するデータ通信を行うとともに、前記車両用検査装置が接続されていないときに他の車両制御手段が異常であると判断していた場合には、該他の車両制御手段に異常が発生したときに保持しておいた他の車両制御手段が実行していた制御データを前記車両用検査装置に一括して送信することを特徴とするデータ通信機能を備えた車両制御装置である。
【0011】
【作用】
本発明に従えば、車両に搭載されて、車両制御をそれぞれ個別に行う複数の車両制御手段の中から選ばれた1つの主車両制御手段には、車両用検査装置を必要に応じて接続することができる。主車両制御手段には検知手段が設けられており、検知手段は、車両用検査装置からの初期化信号を受信したか否かによって、車両用検査装置が主車両制御手段に接続されていることを検知する。このようにして主車両制御手段は、車両用検査装置が接続されているかどうかを判断することができる。これによってハードウエアを新たに設ける必要がなく、コストの低減および構成の小形化を図ることができる。
また主車両制御手段は、車両用検査装置が接続されていないとき、通信ラインを介して他の車両制御手段に要求データを周期的に送信する。この要求データは、他の車両制御手段に対して動作確認のための予め定めるデータを応答データとして送信することを要求するものである。他の車両制御手段は、この要求データに対して応答データを主車両制御手段に送信する。応答データには、車両制御手段に異常が発生したときに当該車両制御手段が実行していた制御を表す制御データが含まれている。車両制御手段は、受信した応答データに基づいて当該他の車両制御手段が正常に動作しているかどうかを判断する。たとえば、主車両制御手段が特定のデータを要求データに含め、この特定のデータをそのままあるいは論理値を反転させて送信するよう要求した場合、応答データとしてその要求どおりのデータが受信されれば当該他の車両制御手段は正常に動作していると判断でき、異なるデータであれば動作が異常であると判断できる。さらに主車両制御手段は、他の車両制御手段が異常であると判断した場合には、異常が発生した他の車両制御手段から送信された応答データに含まれる制御データを保持しておく。
【0012】
また主車両制御手段は、車両用検査装置が接続されていることを検知手段によって検知したときは、他の車両制御手段との通信処理を終了し、車両用検査装置との間でデータ通信を行う。このように主車両制御手段は、車両用検査装置が接続されているときだけ、したがって検査をするときにだけ、車両用検査装置からの要求に応じて自己および他の車両制御手段が正常が異常かを示す情報を送信する。このとき、前記車両用検査装置が接続されていないときに他の車両制御手段が異常であると判断していた場合には、該他の車両制御手段に異常が発生したときに該他の車両制御手段が実行していた保持しておいた制御データを前記車両用検査装置に送信する。このように車両に搭載される各車両制御手段に関する正常および異常を表す情報、および異常である場合の制御データを、検査をするときにだけ、車両用検査装置に取り込むことができる。これによって、異常発生時の各車両制御手段の制御データをすべて主車両制御手段に集めることができ、車両用検査装置は主車両制御手段との間でデータ通信を行うだけで、異常発生時の各車両制御手段の制御データを一括して読出すことができ、異常発生の原因の解析および究明を容易に行うことができる。
さらに主車両制御手段は、車両用検査装置と通信するにあたっては、主車両制御手段が通信可能な複数ある通信速度のうち、最高速の通信速度で通信する。これによって車両用検査装置は、主車両制御手段における最高速の通信速度で通信可能な構成を有していればよく、不必要に多くの通信速度で通信できる構成を有していなくてもよい。したがって検査のときだけ主車両制御手段に接続して用いられる車両用検査装置の構成を簡略化し、コストを低減することができる。
【0013】
また本発明に従えば、車両に搭載されて、車両制御をそれぞれ個別に行う複数の車両制御手段の中から選ばれた1つの主車両制御手段には、車両用検査装置を必要に応じて接続することができる。主車両制御手段には検知手段が設けられており、検知手段は、車両用検査装置が接続されることによって生じる電位差を検知して、車両用検査装置が接続されていることを検知する。このようにして主車両制御手段は、車両用検査装置が接続されているかどうかを判断することができる。これによってハードウエアを新たに設ける必要がなく、コストの低減および構成の小形化を図ることができる。
また主車両制御手段は、車両用検査装置が接続されていないとき、通信ラインを介して他の車両制御手段に要求データを周期的に送信する。この要求データは、他の車両制御手段に対して動作確認のための予め定めるデータを応答データとして送信することを要求するものである。他の車両制御手段は、この要求データに対して応答データを主車両制御手段に送信する。応答データには、車両制御手段に異常が発生したときに当該車両制御手段が実行していた制御を表す制御データが含まれている。車両制御手段は、受信した応答データに基づいて当該他の車両制御手段が正常に動作しているかどうかを判断する。たとえば、主車両制御手段が特定のデータを要求データに含め、この特定のデータをそのままあるいは論理値を反転させて送信するよう要求した場合、応答データとしてその要求どおりのデータが受信されれば当該他の車両制御手段は正常に動作していると判断でき、異なるデータであれば動作が異常であると判断できる。さらに主車両制御手段は、他の車両制御手段が異常であると判断した場合には、異常が発生した他の車両制御手段から送信された応答データに含まれる制御データを保持しておく。
また主車両制御手段は、車両用検査装置が接続されていることを検知手段によって検知したときは、他の車両制御手段との通信処理を終了し、車両用検査装置との間でデータ通信を行う。このように主車両制御手段は、車両用検査装置が接続されているときだけ、したがって検査をするときにだけ、車両用検査装置からの要求に応じて自己および他の車両制御手段が正常が異常かを示す情報を送信する。このとき、前記車両用検査装置が接続されていないときに他の車両制御手段が異常であると判断していた場合には、該他の車両制御手段に異常が発生したときに該他の車両制御手段が実行していた保持しておいた制御データを前記車両用検査装置に送信する。このように車両に搭載される各車両制御手段に関する正常および異常を表す情報、および異常である場合の制御データを、検査をするときにだけ、車両用検査装置に取り込むことができる。これによって、異常発生時の各車両制御手段の制御データをすべて主車両制御手段に集めることができ、車両用検査装置は主車両制御手段との間でデータ通信を行うだけで、異常発生時の各車両制御手段の制御データを一括して読出すことができ、異常発生の原因の解析および究明を容易に行うことができる。
さらに主車両制御手段は、車両用検査装置と通信するにあたっては、主車両制御手段が通信可能な複数ある通信速度のうち、最高速の通信速度で通信する。これによって車両用検査装置は、主車両制御手段における最高速の通信速度で通信可能な構成を有していればよく、不必要に多くの通信速度で通信できる構成を有していなくてもよい。したがって検査のときだけ主車両制御手段に接続して用いられる車両用検査装置の構成を簡略化し、コストを低減することができる。
【0014】
【実施例】
図1は、本発明の前提となる制御装置1の構成を示すブロック図である。制御装置1は、複数の制御手段S1〜Sn(総称するときは参照符Sを用いる)を含んで構成される。各制御手段Sは、それぞれ予め定める制御を個別に実行する。たとえば、車両に搭載されている場合は、ABS制御、エアーバック制御、燃料噴射量制御などをそれぞれ実行する。制御装置1は、1つのマスタ制御手段S1と、複数のスレーブ制御手段S2〜Snに区分され、各制御手段Sは、通信ラインKによって接続されている。なお、ここでの「マスタ」および「スレーブ」は、後述する各制御手段間の通信方式における主従関係を示すものであり、制御動作における主従関係を示すものではない。
【0015】
制御装置1は、ISO9141(国際標準規格)に準拠した通信方式が実施される。この通信方式は、いわゆるマスタ・スレーブ方式であり、マスタ制御手段S1から複数のスレーブ制御手段S2〜Snに対して要求データを送信し、各スレーブ制御手段S2〜Snは要求データを受信し、それぞれのスレーブ制御手段がマスタ制御手段S1に応答データを送信する方式である。
【0016】
制御手段S1〜Snには、データ送信の順位を決定する優先順位が定められており、優先順位の最上位の制御手段がマスタ制御手段となり、それ以外の制御手段がスレーブ制御手段となり、優先順位の高いスレーブ制御手段から順番にマスタ制御手段に応答データを送信する。ここでは、参照符Sの添字1〜nが優先順位を表すものとする。
【0017】
このような制御装置1は、必要に応じてテスタ2が接続される。テスタ2は、制御装置1が正常に動作しているかどうかを確認し、また故障発生時には各制御手段Sが記憶した制御データを読出し、故障原因の解析および究明を行う。
【0018】
図2は、マスタ制御手段S1の動作を説明するフローチャートである。ステップa1では、テスタ2が接続されているかどうかを判断する。接続されていなければステップa2に進み、接続されていればステップa5に進む。
【0019】
ステップa2ではチェック用通信を実行する。チェック用通信は図3に示されているタイミングチャートに従って実行される。制御手段S1は要求データを送信し、各スレーブ制御手段S2〜Snは、前記要求データに対する応答データを順番に送信する。ここでマスタ制御手段S1は、たとえば予め定めるデータを要求データに含ませて送信し、スレーブ制御手段S2〜Snから前記予め定めるデータをそのまま、あるいは論理値を反転したデータを送信するように要求する。スレーブ制御手段S2〜Snはマスタ制御手段S1からの要求データに基づいて、応答データを送信する。この応答データがマスタ制御手段が要求したデータと一致した場合は当該応答データを送信したスレーブ制御手段は正常に動作しており、また通信が正常に行えると判断する。
【0020】
ステップa3では、制御手段Si(i=2〜n)にエラーが発生しているかどうかを判断する。エラーが発生しているかどうかは、前述したように制御手段Siから送信される応答データに基づいて行われる。エラーが発生していなければ処理を終了し、エラーが発生していればステップa4に進み、制御手段Siに対応するエラーフラグをオンにし、処理を終了する。
【0021】
ステップa1においてテスタ2が接続されていると判断された場合はステップa5に進み、上述したチェック用通信を終了し、ステップa6では、各スレーブ制御手段にエラーが発生しているかどうかを、前記エラーフラグを見ることによって判断する。エラーが発生していなければステップa7に進み、テスタ2との通信を開始する。エラーが発生している場合はステップa8に進みエラー信号をテスタ2に送信する。このエラー信号とは、制御手段Sにエラーが発生していること、および発生している制御手段を特定する情報が含まれる。このような処理が一定周期毎に繰返し実行される。
【0022】
図4は、マスタ制御手段S1の他の動作を説明するフローチャートである。ステップb1では、テスタ2からの初期化信号が受信されたかどうかを判断する。初期化信号については後述する。初期化信号が受信されていなければステップb2に進み、予め定める期間Tが経過したかどうかが判断される。これは、テスタ2およびマスタ制御手段S1との通信を行う際には予め定める期間Tの待機期間が存在しなければデータ通信を行えないように構成されているからである。期間Tを経過していなければステップb1に戻る。期間Tが経過した場合はステップb3に進む。
【0023】
ステップb3では、チェック用通信が実行される。このチェック用通信は前述の図3に示すものと同様である。
【0024】
ステップb4では、制御手段Siにエラーが発生しているかどうかが判断される。このエラー発生の有無の判断も前述の図2に示すフローチャートのステップa3と同様である。エラーが発生していなければステップb1に戻り、エラーが発生していればステップb5に進み、制御手段Siに対応するエラーフラグをオンにし、ステップb1に戻る。
【0025】
ステップb1で初期化信号が受信されたと判断されると、ステップb6に進み、チェック用通信を終了し、ステップb7において制御手段Sにエラーがあるかどうかを前記エラーフラグに基づいて判断する。エラーがなければステップb8に進みテスタ2とのデータ通信を開始する。エラーが発生していればステップb9に進み、前述と同様のエラー信号をテスタ2に送信し処理を終了する。
【0026】
図5は、テスタ2が送信する初期化信号を示すタイムチャートである。テスタ2は、最低速の通信レートである5ボー(ビット/sec)にて初期化信号を送信する。この初期化信号を受信した制御手段S1は、同期信号SYNと、動作確認のためのキーワードKW1,KW2をテスタ2に送信する。テスタ2は、確認信号として前記キーワードKW2の論理値を反転したキーワードバーKW2を送信する。続いて制御手段S1は、初期化信号によって与えられたアドレスデータをその論理値を反転してテスタ2に送信する。このような信号のやり取りを前記初期化信号によって設定された通信速度にて行い、正常に通信が行えると判断した後、テスタ2は要求データを送信し、これに応答して制御手段S1は応答データを送信する。
【0027】
図6は、制御手段S1の構成を示すブロック図である。制御手段S1は、データの送信および受信、各種演算、各種制御などで実行する制御回路3を含む。制御回路3は、マイクロコンピュータなどで実現され、シリアルデータ入力端子Sin、シルアルデータ出力端子Sout、各種信号の入出力用のポートP0〜P1,P2を備える。
【0028】
制御手段S1は、通信ラインKを接続するための接続端子4,5を備え、接続端子4にはテスタ2が接続され、接続端子5には優先順位の下位のいわゆる下流側の制御手段S2〜Snが接続される。接続端子4と接続端子5とは、制御手段内部で接続されている。接続端子4と接続端子5との間には、通信ラインK、詳しくは下流側通信ラインとシリアルデータ入力端子Sinおよびシリアルデータ出力端子Soutとを接続および遮断する切換回路6が接続されている。切換回路6は、制御回路3のポートP2からのラインカット信号によって制御される。切換回路6は、互いに逆向きに並列に接続された2つのバッファ7,8によって構成される。バッファ7,8は、たとえばスリーステートバッファで構成され、ラインカット信号が与えられたときには何も出力しない状態となり、これによって端子Sin,Soutと接続端子5との間は切断される。
【0029】
接続端子4と切換回路6との間の信号線には、入力バッファ9を介して制御回路3のシリアルデータ入力端子Sinが接続され、出力バッファ10を介して制御回路3のシリアルデータ出力端子Soutが制御される。さらに接続端子4と前記バッファ9,10との間には第2の切換回路11が接続される。切換回路11は、前述の切換回路6と同様に構成され、すなわち互いに逆向きに並列に接続された2つのバッファ13,14によって構成される。バッファ13,14は、たとえばスリーステートバッファで構成され、制御回路3のポートP0からのラインカット信号によって制御され、ラインカット信号が与えられたときには何も出力しない状態となり、これによって端子Sin,Soutと接続端子4との間が切断される。
【0030】
接続端子4と前記第2の切換回路11との間の信号線には抵抗R2,R3が接続される。抵抗R2は、一端が信号線に接続され、他端が制御手段S1の電源電位+Bに接続される。抵抗R3は、一端が信号線に接続され、他端がグランド電位に接続される。これら抵抗R2,R3の接続点と切換回路11との間にはレベル判定回路12が接続される。レベル判定回路12は、信号線の電位を検出し、検出結果を制御回路3のポートP1に与える。
【0031】
制御回路3は、ポートP1の入力信号に基づいてテスタ2が接続されているかどうかを判断する。すなわちテスタ2が接続されていなければ、切換回路11よりも上流側の信号線は電源電位+Bを抵抗R2,R3で分割した所定の電位に設定され、この所定の電位を検知することによって制御回路3はテスタ2が接続されていないと判断する。テスタ2が接続されると、切換回路11の上流側の通信ラインKには、テスタ2によって抵抗R1を介して電源電位+Bが与えられる。レベル判定回路12は、通信ラインKが電源電位+Bであることを検出し、これによって制御回路3はテスタ2が接続されていると判断する。たとえば抵抗R1を510Ω、抵抗R2を100kΩ、抵抗R3を200kΩに選ぶことによって、図7に示すように、テスタ2が接続されていない期間においてはレベル判定回路12は(2/3)・Bの電位を検知し、テスタ2は接続されている期間では+Bの電位を検知する。
【0032】
制御手段S1は、テスタ2が接続されていないときは切換回路11によって上流側の通信ラインKを切断しているが、テスタ2が接続されたと判断された時点で切換回路11によって上流側通信ラインKを接続し、テスタ2との間でのデータ通信を行う。このとき下位の制御手段S2〜Snとの通信を行う必要がなければ前記第1の切換回路6を制御し、下流側の通信ラインKを切断する。これによってテスタ2は制御手段S1との間で1対1の通信を行う。
【0033】
図8は、制御手段S1の他の構成例を示す回路図である。図6に示す構成と同一のものには同一の参照符を付して説明は省略する。テスタ2と制御手段S1とはコネクタ21,22によって接続される。前記コネクタ21,22にはテスタ2の接続および非接続を検出するための信号線La,Lbが接続されている。
【0034】
信号線Laはコネクタ21に接続されており、テスタ2内部においてグランド電位に接続されている。信号線Lbはコネクタ22に接続されており、接続端子6を介して制御手段S1内部に引込まれ、制御回路3のポートP4に接続される。信号線Lbには、抵抗R4を介して電源電位+Bが与えられている。
【0035】
コネクタ21,22が接続されていなければ信号線Lbは電位+Bに設定され、制御回路3はポートP4を一定間隔で確認することによって信号線Lbが電源電位+Bであることを認識し、すなわちテスタ2が接続されていないと判断する。テスタ2が接続されると、すなわちコネクタ21,22が接続されると、信号線Laと信号線Lbとが接続され、信号線Laは前述したようにグランド電位に接続されているため、信号線Lbはグランド電位に引下げられる。制御回路3は、信号線Lbがグランド電位に引下げられたことをポートP4を介して検出し、これによってテスタ2が接続されたと判断する。
【0036】
図9は、制御手段S1のさらに他の構成例を示す回路図である。制御手段S1は、図6に示す構成と類似しており、同一の構成には同一の参照符号を付して説明を省略する。制御手段S1は、レベル判定回路12に代えてバッファ15を接続したことが特徴である。バッファ15の出力はポートP1に与えられる。制御回路3は、予め定めるサンプリング周期でポートP1の信号レベルを検出し、テスタ2からの初期化信号である5ボーのアドレス信号を受信したかどうかを判断する。初期化信号を受信したときは、切換回路11によって上流側通信ラインを接続する。制御手段S1は、テスタ2が初期化信号を送信している間に、チェック用通信を終了し、テスタ2との通信に備える。
【0037】
以上にように本実施例によれば、主制御手段S1はすべての制御手段の動作および制御手段間の通信ラインKの状態をチェックする。これによってテスタ2が接続されたときの初期化動作においてテスタ2とすべての制御手段Sとの間の通信ラインKの確認が可能となる。すなわち、テスタ2が接続された時点で制御手段S1は自分より優先順位が下位の制御手段S2〜Snにおいて異常が発生していることを検知していれば、エラー信号をテスタ2に送信し、これによってテスタ2の操作者は制御装置1にエラーが発生し、通信が不能であることおよびエラーに対する対策をとる必要があることを認識することができる。
【0038】
テスタ2は制御手段S1との間で通信を行えばよく、通信が1対1となり通信制御が容易である。またテスタ2が実行する通信速度は制御手段S1が実行することができる複数の通信速度のうちの最高速のものだけでよく、不必要に多くの通信速度を実行するための構成を設ける必要がない。また各制御手段S2〜Snからは主制御手段S1に制御データ、具体的にはエラーが発生していたときに実行していた制御を特定する制御データを送信しているので、テスタ2は一括して制御手段S1からこれらの制御データを読出すだけでよく、短期間でデータの読出しができ、またエラー発生の原因の解析および究明を容易に行うことができる。
【0039】
【発明の効果】
以上のように本発明によれば、主車両制御手段は、車両用検査装置が接続されていないときは、周期的に他の車両制御手段との間で通信処理を行い、他の車両制御手段が正常に動作しているかどうかおよび通信が正常に行われているかどうかを確認する。そして車両用検査装置を接続して検査する際にだけ、車両用検査装置に主車両制御手段から必要なデータを読出すだけで、車両に搭載される制御装置全体の動作状態を把握することができる。また主車両制御手段には、他の車両制御手段から異常が発生したときに実行していた制御を示す制御データが送信されるので、車両用検査装置は、主車両制御手段から制御データを読取るだけでよく、データ通信の時間が短縮される。また車両用制御装置は、主車両制御手段との間の1対1の通信でよく通信制御が容易である。また車両用検査装置は、主車両制御手段が実行することができる複数の通信速度のうちの最高速の通信速度で通信可能であればよく、必要以上に多くの通信速度を実行するための構成を用意する必要がない。したがって車両用検査装置の構成の簡略化およびコストの低減が図られる。また主車両制御手段は、車両用検査装置が接続されているかどうかを車両用検査装置が送信する初期化信号の有無に基づいて行うので、接続スイッチなどの新たなハードウエアを設ける必要はなく、構成が簡略化される。
【0040】
また本発明によれば、主車両制御手段は、車両用検査装置が接続されていないときは、周期的に他の車両制御手段との間で通信処理を行い、他の車両制御手段が正常に動作しているかどうかおよび通信が正常に行われているかどうかを確認する。そして車両用検査装置を接続して検査する際にだけ、車両用検査装置に主車両制御手段から必要なデータを読出すだけで、車両に搭載される制御装置全体の動作状態を把握することができる。また主車両制御手段には、他の車両制御手段から異常が発生したときに実行していた制御を示す制御データが送信されるので、車両用検査装置は、主車両制御手段から制御データを読取るだけでよく、データ通信の時間が短縮される。また車両用制御装置は、主車両制御手段との間の1対1の通信でよく通信制御が容易である。また車両用検査装置は、主車両制御手段が実行することができる複数の通信速度のうちの最高速の通信速度で通信可能であればよく、必要以上に多くの通信速度を実行するための構成を用意する必要がない。したがって検査装置の構成の簡略化およびコストの低減が図られる。また主車両制御手段における電位差を検知して、車両用検査装置が接続されているか否かを検知することができる。
【図面の簡単な説明】
【図1】本発明の前提となる制御装置1の全体的構成を示すブロック図である。
【図2】制御手段S1が行う動作を説明するフローチャートである。
【図3】制御手段S1が行うチェック用通信を示すタイムチャートである。
【図4】制御手段S1が行う他の動作を説明するフローチャートである。
【図5】テスタ2と制御手段S1との間で行われる初期化動作を説明するタイムチャートである。
【図6】制御手段S1の構成例を示す回路図である。
【図7】図6に示す制御手段S1の動作を説明するタイムチャートである。
【図8】制御手段S1の他の構成例を示す回路図である。
【図9】制御手段S1のさらに他の構成例を示す回路図である。
【符号の説明】
1 制御装置
2 テスタ
3 制御回路
4,5 接続端子
6,11 切換回路
7,8,13,14,15 バッファ
9 入力バッファ
10 出力バッファ
12 レベル判定回路
21,22 コネクタ
S1〜Sn 制御手段
K 通信ライン
La,Lb 信号線
R1〜R4 抵抗
P0〜P4 ポート
Sin シリアルデータ入力端子
Sout シリアルデータ出力端子
[0001]
[Industrial application fields]
  The present invention provides a plurality of control devices such as a control device constituted by a plurality of ECUs (Electronic Control Units) mounted on a vehicle.vehicleThe control means individually executes predetermined control, andEach vehicleThe present invention relates to a vehicle control device having a data communication function for performing data communication between control means.
[0002]
[Prior art]
FIG. 1 is a block diagram showing a configuration of a control device 1 which is a premise of the present invention. The control device 1 is configured to include a plurality of control means S1 to Sn (reference symbol S is used when collectively referred to). Each control means S individually executes predetermined control. For example, when mounted on a vehicle, ABS control, air bag control, fuel injection amount control, and the like are executed. The control device 1 is divided into one master control means S1 and a plurality of slave control means S2 to Sn, and each control means S is connected by a communication line K. Here, “master” and “slave” indicate the master-slave relationship in the communication method between the control means described later, and do not indicate the master-slave relationship in the control operation.
[0003]
The control device 1 is implemented with a communication method in conformity with ISO 9141 (international standard). This communication method is a so-called master / slave method, in which request data is transmitted from the master control means S1 to the plurality of slave control means S2 to Sn, and each slave control means S2 to Sn receives the request data, The slave control means transmits the response data to the master control means S1.
[0004]
Priorities for determining the order of data transmission are determined for the control means S1 to Sn. The control means having the highest priority is the master control means, and the other control means are slave control means. Response data is transmitted to the master control means in order from the slave control means having the highest value. Here, it is assumed that the subscripts 1 to n of the reference symbol S represent the priority order.
[0005]
Such a control device 1 is connected to a tester 2 as necessary. The tester 2 confirms whether or not the control device 1 is operating normally. When a failure occurs, the tester 2 reads the control data stored by each control means S, and analyzes and investigates the cause of the failure.
[0006]
[Problems to be solved by the invention]
When the tester 2 is connected to the control device 1, the tester 2 becomes a master terminal device and performs initialization prior to data communication. Initialization is specification of control means for communication and setting of communication conditions such as determination of communication speed. Since initialization is generally performed only between the tester 2 and the control unit S1 that is representative of the slave control unit S, it is not performed between the other control units S2 to Sn, and other slave control units cannot communicate. Even if it is in a state, it cannot be confirmed and is recognized only after actually starting communication. A communication error or the like occurs due to the presence of the control means in the communication disabled state, and the operator of the tester 2 needs to take a countermeasure.
[0007]
When reading control data from all the control means S1 to Sn after the initialization described above, the tester 2 must perform data communication at the lowest communication speed among a plurality of communication speeds that can be executed by the control means S. Don't be. This is because there is a difference in the communication speed that can be executed by each control means S, that is, a control means with a higher priority is generally capable of high-speed communication, but a control means with a lower priority is slower. This is because only communication is possible. For this reason, there is a problem that the data communication time when reading the control data from the control means S is relatively long.
[0008]
It is also possible to perform data communication for each control means S at the highest communication speed of the control means, but in this case, it is necessary to perform the initialization operation described above for each control means having a different communication speed. For this reason, the operation of the tester 2 is troublesome, and the number of times of performing the initialization operation increases, so that data communication is not always performed in a short period of time. Further, the tester 2 needs to have a configuration for executing a plurality of communication speeds, and there is a problem that the tester 2 is expensive both in terms of software and hardware.
[0009]
  The purpose of the present invention is tovehicleThe operating state of the control means, andEach vehicleIt is an object of the present invention to provide a vehicle control device having a data communication function capable of easily confirming the state of a communication line between control means.
[0010]
[Means for Solving the Problems]
  The present invention is configured by connecting a plurality of vehicle control means mounted on a vehicle and individually performing predetermined vehicle control through a single communication line, and selected from a plurality of vehicle control means.vehicleThe control means transmits request data requesting data transmission to other vehicle control means, and the other vehicle control means sequentially transmits response data for the request data according to a priority order for determining the order of data transmission. In a vehicle control device having a communication function,
  The mainvehicleThe control means is connected to a vehicle inspection device for inspecting the operation state of the plurality of vehicle control means as required,
  The mainvehicleThe control means receives the initialization signal transmitted from the vehicle inspection device prior to data communication.WhenA detecting means for detecting that the vehicle inspection device is connected by
  When the vehicle inspection device is not connected, request data for requesting that predetermined data for operation confirmation including control data representing vehicle control being executed is transmitted as response data is periodically transmitted. And determining whether the other vehicle control means is operating normally based on the response data transmitted from the other vehicle control means,When it is determined that the other vehicle control means is abnormal, the control data included in the response data transmitted from the other vehicle control means in which the abnormality has occurred is retained,
  When it is detected that the vehicle inspection device is connected, the transmission of the request data and the reception of response data are terminated, and the main datavehicleWhile performing the data communication regarding the operation state of the vehicle control means with the vehicle inspection device at the highest communication speed among a plurality of communication speeds with which the control means can communicate,Another vehicle when the vehicle inspection device is not connectedJudging that the control means is abnormalHaveIfOther vehiclesWhen an abnormality occurs in the control meansKeptTheOther vehiclesThe control data executed by the control means is transferred to the vehicle inspection device.In bulkIt is a vehicle control apparatus provided with the data communication function characterized by transmitting.
  Further, the present invention is configured by connecting a plurality of vehicle control means mounted on a vehicle and individually performing predetermined vehicle control through a single communication line, and selected from a plurality of vehicle control means.vehicleThe control means transmits request data requesting data transmission to other vehicle control means, and the other vehicle control means sequentially transmits response data for the request data according to a priority order for determining the order of data transmission. In a vehicle control device having a communication function,
  The mainvehicleThe control means is connected to a vehicle inspection device for inspecting the operation state of the plurality of vehicle control means as required,
  The mainvehicleThe control means includes detection means for detecting a potential difference in the vehicle control device caused by connection of the vehicle inspection device and detecting that the vehicle inspection device is connected,
  When the vehicle inspection device is not connected, request data for requesting that predetermined data for operation confirmation including control data representing vehicle control being executed is transmitted as response data is periodically transmitted. And determining whether the other vehicle control means is operating normally based on the response data transmitted from the other vehicle control means,When it is determined that the other vehicle control means is abnormal, the control data included in the response data transmitted from the other vehicle control means in which the abnormality has occurred is retained,
  When it is detected that the vehicle inspection device is connected, the transmission of the request data and the reception of response data are terminated, and the main datavehicleWhile performing the data communication regarding the operation state of the vehicle control means with the vehicle inspection device at the highest communication speed among a plurality of communication speeds with which the control means can communicate,Another vehicle when the vehicle inspection device is not connectedJudging that the control means is abnormalHaveIfOther vehiclesWhen an abnormality occurs in the control meansKeptTheOther vehiclesThe control data executed by the control means is transferred to the vehicle inspection device.In bulkIt is a vehicle control apparatus provided with the data communication function characterized by transmitting.
[0011]
[Action]
  According to the present invention, one main selected from a plurality of vehicle control means mounted on a vehicle and performing vehicle control individually.vehicleA vehicle inspection apparatus can be connected to the control means as required. mainvehicleThe control means is provided with a detection means, and the detection means is mainly a vehicle inspection apparatus depending on whether or not an initialization signal is received from the vehicle inspection apparatus.vehicleIt detects that it is connected to the control means. In this way the LordvehicleThe control means can determine whether or not the vehicle inspection device is connected. Accordingly, it is not necessary to provide new hardware, and the cost can be reduced and the configuration can be downsized.
  Also mainvehicleThe control means periodically transmits the request data to other vehicle control means via the communication line when the vehicle inspection apparatus is not connected. This request data requests other vehicle control means to transmit predetermined data for operation confirmation as response data. Other vehicle control means mainly uses response data for this request data.vehicleSend to control means.The response data includes control data representing the control executed by the vehicle control means when an abnormality occurs in the vehicle control means.mainvehicleThe control means determines whether or not the other vehicle control means is operating normally based on the received response data. For example, the mainvehicleWhen the control means includes specific data in the request data and requests to transmit the specific data as it is or with the logical value inverted, if the data as requested is received as response data, the other vehicle control It can be determined that the means is operating normally, and if the data is different, it can be determined that the operation is abnormal.Further, when the main vehicle control means determines that the other vehicle control means is abnormal, the main vehicle control means retains control data included in the response data transmitted from the other vehicle control means in which the abnormality has occurred.
[0012]
  Also mainvehicleWhen the detection means detects that the vehicle inspection apparatus is connected, the control means ends the communication process with the other vehicle control means and performs data communication with the vehicle inspection apparatus. Lord like thisvehicleThe control means, when the vehicle inspection device is connected, and only when performing the inspection, information indicating whether the self and other vehicle control means are normal or abnormal in response to a request from the vehicle inspection device. Send.At this time, when it is determined that the other vehicle control means is abnormal when the vehicle inspection device is not connected, the other vehicle is detected when an abnormality occurs in the other vehicle control means. The control data held by the control means is transmitted to the vehicle inspection apparatus.As described above, information indicating normality and abnormality regarding each vehicle control means mounted on the vehicle and control data in the case of abnormality can be taken into the vehicle inspection apparatus only when performing inspection. As a result, all the control data of each vehicle control means at the time of occurrence of abnormality isvehicleThe vehicle inspection device is the mainvehicleJust perform data communication with the control meansOf each vehicle control means when an abnormality occursThe control data can be read in a batch, and the cause of the abnormality can be easily analyzed and investigated.
  More mainvehicleThe control means is responsible for communicating with the vehicle inspection device.vehicleCommunication is performed at the highest communication speed among a plurality of communication speeds at which the control means can communicate. As a result, the vehicle inspection system isvehicleIt is only necessary to have a configuration capable of communicating at the highest communication speed in the control means, and it is not necessary to have a configuration capable of communicating at an unnecessarily high communication speed. Therefore, only during inspectionvehicleIt is possible to simplify the configuration of the vehicle inspection apparatus used by being connected to the control means, and to reduce the cost.
[0013]
  Further, according to the present invention, one main unit selected from a plurality of vehicle control means mounted on a vehicle and individually performing vehicle control.vehicleA vehicle inspection apparatus can be connected to the control means as required. mainvehicleThe control means is provided with detection means, and the detection means detects a potential difference caused by connection of the vehicle inspection device and detects that the vehicle inspection device is connected. In this way the LordvehicleThe control means can determine whether or not the vehicle inspection device is connected. Accordingly, it is not necessary to provide new hardware, and the cost can be reduced and the configuration can be downsized.
  Also mainvehicleThe control means periodically transmits the request data to other vehicle control means via the communication line when the vehicle inspection apparatus is not connected. This request data requests other vehicle control means to transmit predetermined data for operation confirmation as response data. Other vehicle control means mainly uses response data for this request data.vehicleSend to control means.The response data includes control data representing the control executed by the vehicle control means when an abnormality occurs in the vehicle control means.mainvehicleThe control means determines whether or not the other vehicle control means is operating normally based on the received response data. For example, the mainvehicleWhen the control means includes specific data in the request data and requests to transmit this specific data as it is or with the logical value inverted, if the data as requested is received as response data, the other vehicle control It can be determined that the means is operating normally, and if the data is different, it can be determined that the operation is abnormal.Further, when the main vehicle control means determines that the other vehicle control means is abnormal, the main vehicle control means retains control data included in the response data transmitted from the other vehicle control means in which the abnormality has occurred.
  Also mainvehicleWhen the detecting means detects that the vehicle inspection apparatus is connected, the control means ends the communication process with the other vehicle control means and performs data communication with the vehicle inspection apparatus. Lord like thisvehicleThe control means provides information indicating whether the vehicle and the other vehicle control means are normal or abnormal in response to a request from the vehicle inspection apparatus only when the vehicle inspection apparatus is connected, and therefore only when performing the inspection. Send.At this time, when it is determined that the other vehicle control means is abnormal when the vehicle inspection device is not connected, the other vehicle is detected when an abnormality occurs in the other vehicle control means. The control data held by the control means is transmitted to the vehicle inspection apparatus.Thus, information indicating normality and abnormality regarding each vehicle control means mounted on the vehicle and control data in the case of abnormality can be taken into the vehicle inspection device only when performing inspection. As a result, all the control data of each vehicle control means when an abnormality occursvehicleThe vehicle inspection device is the mainvehicleJust perform data communication with the control meansOf each vehicle control means when an abnormality occursThe control data can be read in a batch, and the cause of the abnormality can be easily analyzed and investigated.
  More mainvehicleThe control means is responsible for communicating with the vehicle inspection device.vehicleCommunication is performed at the highest communication speed among a plurality of communication speeds at which the control means can communicate. As a result, the vehicle inspection system isvehicleIt is only necessary to have a configuration capable of communicating at the highest communication speed in the control means, and it is not necessary to have a configuration capable of communicating at an unnecessarily high communication speed. Therefore, only at the time of inspectionvehicleIt is possible to simplify the configuration of the vehicle inspection apparatus used by being connected to the control means, and to reduce the cost.
[0014]
【Example】
FIG. 1 is a block diagram showing a configuration of a control device 1 which is a premise of the present invention. The control device 1 is configured to include a plurality of control means S1 to Sn (reference symbol S is used when collectively referred to). Each control means S individually executes predetermined control. For example, when mounted on a vehicle, ABS control, air bag control, fuel injection amount control, and the like are executed. The control device 1 is divided into one master control means S1 and a plurality of slave control means S2 to Sn, and each control means S is connected by a communication line K. Here, “master” and “slave” indicate a master-slave relationship in a communication method between control means described later, and do not indicate a master-slave relationship in a control operation.
[0015]
The control device 1 is implemented with a communication method in conformity with ISO 9141 (international standard). This communication method is a so-called master / slave method, in which request data is transmitted from the master control means S1 to the plurality of slave control means S2 to Sn, and each slave control means S2 to Sn receives the request data, The slave control means transmits the response data to the master control means S1.
[0016]
Priorities for determining the order of data transmission are determined for the control means S1 to Sn. The control means having the highest priority is the master control means, and the other control means are slave control means. Response data is transmitted to the master control means in order from the slave control means having the highest value. Here, it is assumed that the subscripts 1 to n of the reference symbol S represent the priority order.
[0017]
Such a control device 1 is connected to a tester 2 as necessary. The tester 2 confirms whether or not the control device 1 is operating normally. When a failure occurs, the tester 2 reads the control data stored by each control means S, and analyzes and investigates the cause of the failure.
[0018]
FIG. 2 is a flowchart for explaining the operation of the master control means S1. In step a1, it is determined whether or not the tester 2 is connected. If not connected, the process proceeds to step a2, and if connected, the process proceeds to step a5.
[0019]
  In step a2, check communication is executed. The check communication is executed according to the timing chart shown in FIG. The control means S1 transmits request data, and each slave control means S2 to Sn sequentially transmits response data for the request data. Here, the master control means S1 transmits, for example, predetermined data included in the request data, and requests from the slave control means S2 to Sn to transmit the predetermined data as it is or with inverted logical values. . The slave control means S2 to Sn transmit response data based on the request data from the master control means S1. If this response data matches the data requested by the master control means, it is determined that the slave control means that transmitted the response data is operating normally and that communication can be performed normally.
[0020]
In step a3, it is determined whether an error has occurred in the control means Si (i = 2 to n). Whether or not an error has occurred is determined based on the response data transmitted from the control means Si as described above. If no error has occurred, the process ends. If an error has occurred, the process proceeds to step a4, an error flag corresponding to the control means Si is turned on, and the process ends.
[0021]
If it is determined in step a1 that the tester 2 is connected, the process proceeds to step a5, and the above-described check communication is terminated. In step a6, whether or not an error has occurred in each slave control means is determined. Judgment is made by looking at the flag. If no error has occurred, the process proceeds to step a7, and communication with the tester 2 is started. If an error has occurred, the process proceeds to step a8 and an error signal is transmitted to the tester 2. The error signal includes information that an error has occurred in the control means S and information that specifies the control means that has occurred. Such processing is repeatedly executed at regular intervals.
[0022]
FIG. 4 is a flowchart for explaining another operation of the master control means S1. In step b1, it is determined whether an initialization signal from the tester 2 has been received. The initialization signal will be described later. If the initialization signal has not been received, the process proceeds to step b2, and it is determined whether or not a predetermined period T has elapsed. This is because the communication between the tester 2 and the master control means S1 is configured such that data communication cannot be performed unless there is a predetermined waiting period T. If the period T has not elapsed, the process returns to step b1. If the period T has elapsed, the process proceeds to step b3.
[0023]
In step b3, check communication is executed. This check communication is the same as that shown in FIG.
[0024]
In step b4, it is determined whether an error has occurred in the control means Si. The determination of whether or not an error has occurred is the same as step a3 in the flowchart shown in FIG. If no error has occurred, the process returns to step b1, and if an error has occurred, the process proceeds to step b5, an error flag corresponding to the control means Si is turned on, and the process returns to step b1.
[0025]
If it is determined in step b1 that the initialization signal has been received, the process proceeds to step b6 to end the check communication, and in step b7, it is determined based on the error flag whether there is an error in the control means S. If there is no error, the process proceeds to step b8 and data communication with the tester 2 is started. If an error has occurred, the process proceeds to step b9, an error signal similar to that described above is transmitted to the tester 2, and the process ends.
[0026]
  FIG. 5 is a time chart showing an initialization signal transmitted by the tester 2. The tester 2 transmits an initialization signal at 5 baud (bit / sec) which is the lowest communication rate. Receiving this initialization signal, the control means S1 transmits a synchronization signal SYN and keywords KW1 and KW2 for operation confirmation to the tester 2. The tester 2 transmits a keyword bar KW2 obtained by inverting the logical value of the keyword KW2 as a confirmation signal. Subsequently, the control means S1 inverts the logical value of the address data given by the initialization signal and transmits it to the tester 2. After exchanging such signals at the communication speed set by the initialization signal and determining that the communication can be normally performed, the tester 2 transmits the request data, and in response thereto, the control means S1 responds. Send data.
[0027]
FIG. 6 is a block diagram showing the configuration of the control means S1. The control means S1 includes a control circuit 3 that executes data transmission and reception, various calculations, various controls, and the like. The control circuit 3 is realized by a microcomputer or the like, and includes a serial data input terminal Sin, a serial data output terminal Sout, and ports P0 to P1 and P2 for inputting and outputting various signals.
[0028]
The control means S1 includes connection terminals 4 and 5 for connecting the communication line K, the tester 2 is connected to the connection terminal 4, and the so-called downstream control means S2 of the lower priority order are connected to the connection terminal 5. Sn is connected. The connection terminal 4 and the connection terminal 5 are connected inside the control means. Connected between the connection terminal 4 and the connection terminal 5 is a switching circuit 6 that connects and disconnects the communication line K, specifically the downstream communication line, and the serial data input terminal Sin and the serial data output terminal Sout. The switching circuit 6 is controlled by a line cut signal from the port P2 of the control circuit 3. The switching circuit 6 includes two buffers 7 and 8 connected in parallel in opposite directions. The buffers 7 and 8 are constituted by, for example, three-state buffers, and when a line cut signal is given, nothing is output, and the terminals Sin and Sout and the connection terminal 5 are thereby disconnected.
[0029]
The signal line between the connection terminal 4 and the switching circuit 6 is connected to the serial data input terminal Sin of the control circuit 3 via the input buffer 9, and the serial data output terminal Sout of the control circuit 3 via the output buffer 10. Is controlled. Further, a second switching circuit 11 is connected between the connection terminal 4 and the buffers 9 and 10. The switching circuit 11 is configured in the same manner as the switching circuit 6 described above, that is, includes two buffers 13 and 14 connected in parallel in opposite directions. The buffers 13 and 14 are constituted by, for example, three-state buffers, are controlled by a line cut signal from the port P0 of the control circuit 3, and are in a state in which nothing is output when the line cut signal is given, thereby the terminals Sin and Sout. And the connection terminal 4 are disconnected.
[0030]
Resistors R2 and R3 are connected to a signal line between the connection terminal 4 and the second switching circuit 11. The resistor R2 has one end connected to the signal line and the other end connected to the power supply potential + B of the control unit S1. The resistor R3 has one end connected to the signal line and the other end connected to the ground potential. A level determination circuit 12 is connected between the connection point of the resistors R2 and R3 and the switching circuit 11. The level determination circuit 12 detects the potential of the signal line and supplies the detection result to the port P1 of the control circuit 3.
[0031]
The control circuit 3 determines whether or not the tester 2 is connected based on the input signal of the port P1. That is, if the tester 2 is not connected, the signal line upstream of the switching circuit 11 is set to a predetermined potential obtained by dividing the power supply potential + B by the resistors R2 and R3, and the control circuit is detected by detecting the predetermined potential. 3 determines that the tester 2 is not connected. When the tester 2 is connected, the power supply potential + B is applied to the communication line K upstream of the switching circuit 11 by the tester 2 via the resistor R1. The level determination circuit 12 detects that the communication line K is the power supply potential + B, and thereby the control circuit 3 determines that the tester 2 is connected. For example, by selecting the resistor R1 as 510Ω, the resistor R2 as 100kΩ, and the resistor R3 as 200kΩ, the level determination circuit 12 is (2/3) · B in the period when the tester 2 is not connected as shown in FIG. The potential is detected, and the tester 2 detects the potential of + B in the connected period.
[0032]
The control means S1 disconnects the upstream communication line K by the switching circuit 11 when the tester 2 is not connected, but when the tester 2 is determined to be connected, the switching circuit 11 causes the upstream communication line to be disconnected. K is connected to perform data communication with the tester 2. At this time, if it is not necessary to communicate with the lower control means S2 to Sn, the first switching circuit 6 is controlled and the downstream communication line K is disconnected. As a result, the tester 2 performs one-to-one communication with the control means S1.
[0033]
FIG. 8 is a circuit diagram showing another configuration example of the control means S1. The same components as those shown in FIG. 6 are denoted by the same reference numerals, and description thereof is omitted. The tester 2 and the control means S1 are connected by connectors 21 and 22. Signal lines La and Lb for detecting connection and disconnection of the tester 2 are connected to the connectors 21 and 22.
[0034]
The signal line La is connected to the connector 21 and is connected to the ground potential inside the tester 2. The signal line Lb is connected to the connector 22, drawn into the control means S <b> 1 through the connection terminal 6, and connected to the port P <b> 4 of the control circuit 3. A power supply potential + B is applied to the signal line Lb via the resistor R4.
[0035]
If the connectors 21 and 22 are not connected, the signal line Lb is set to the potential + B, and the control circuit 3 recognizes that the signal line Lb is at the power supply potential + B by checking the port P4 at regular intervals, that is, a tester. 2 is not connected. When the tester 2 is connected, that is, when the connectors 21 and 22 are connected, the signal line La and the signal line Lb are connected, and the signal line La is connected to the ground potential as described above. Lb is pulled down to the ground potential. The control circuit 3 detects that the signal line Lb has been pulled down to the ground potential via the port P4, and thereby determines that the tester 2 is connected.
[0036]
FIG. 9 is a circuit diagram showing still another configuration example of the control means S1. The control means S1 is similar to the configuration shown in FIG. 6, and the same reference numerals are assigned to the same configurations and the description thereof is omitted. The control means S1 is characterized in that a buffer 15 is connected instead of the level determination circuit 12. The output of the buffer 15 is given to the port P1. The control circuit 3 detects the signal level of the port P1 at a predetermined sampling period, and determines whether or not a 5-baud address signal, which is an initialization signal from the tester 2, has been received. When the initialization signal is received, the upstream communication line is connected by the switching circuit 11. The control means S1 ends the check communication while the tester 2 is transmitting the initialization signal, and prepares for communication with the tester 2.
[0037]
As described above, according to this embodiment, the main control means S1 checks the operation of all the control means and the state of the communication line K between the control means. As a result, the communication line K between the tester 2 and all the control means S can be confirmed in the initialization operation when the tester 2 is connected. That is, at the time when the tester 2 is connected, the control means S1 transmits an error signal to the tester 2 if it detects that an abnormality has occurred in the control means S2 to Sn having lower priority than itself. As a result, the operator of the tester 2 can recognize that an error has occurred in the control device 1 and that communication is impossible and that countermeasures must be taken against the error.
[0038]
The tester 2 only needs to communicate with the control means S1, and the communication becomes one-to-one and communication control is easy. Further, the communication speed executed by the tester 2 need only be the highest speed among the plurality of communication speeds that can be executed by the control means S1, and it is necessary to provide a configuration for executing an unnecessarily high communication speed. Absent. Further, since each control means S2 to Sn transmits control data to the main control means S1, specifically, control data specifying the control executed when an error has occurred, the tester 2 is in a batch. Thus, it is only necessary to read out the control data from the control means S1, the data can be read out in a short period of time, and the cause of the error occurrence can be easily analyzed and investigated.
[0039]
【The invention's effect】
  As described above, according to the present invention,vehicleThe control means periodically performs communication processing with other vehicle control means when the vehicle inspection device is not connected, and whether the other vehicle control means is operating normally and the communication is normal. Check if it is done. And only when connecting and inspecting a vehicle inspection device,vehicleThe operational state of the entire control device mounted on the vehicle can be grasped only by reading out necessary data from the control means. Also mainvehicleSince the control data indicating the control executed when an abnormality has occurred is transmitted from the other vehicle control means to the control means, the vehicle inspection apparatus isvehicleIt is only necessary to read control data from the control means, and the time for data communication is shortened. The vehicle control system isvehicleOne-to-one communication with the control means is sufficient, and communication control is easy. Vehicle inspection equipment is mainly usedvehicleIt is only necessary to be able to communicate at the highest communication speed among a plurality of communication speeds that can be executed by the control means, and it is not necessary to prepare a configuration for executing more communication speeds than necessary. Therefore, the configuration of the vehicle inspection apparatus can be simplified and the cost can be reduced. Also mainvehicleSince the control means determines whether or not the vehicle inspection device is connected based on the presence or absence of an initialization signal transmitted by the vehicle inspection device, it is not necessary to provide new hardware such as a connection switch, and the configuration is simplified. It becomes.
[0040]
  According to the present invention, the mainvehicleThe control means periodically performs communication processing with other vehicle control means when the vehicle inspection device is not connected, and whether the other vehicle control means is operating normally and the communication is normal. Check if it is done. And only when connecting and inspecting a vehicle inspection device,vehicleThe operational state of the entire control device mounted on the vehicle can be grasped only by reading out necessary data from the control means. Also mainvehicleSince the control data indicating the control executed when an abnormality has occurred is transmitted from the other vehicle control means to the control means, the vehicle inspection apparatus isvehicleIt is only necessary to read control data from the control means, and the time for data communication is shortened. The vehicle control system isvehicleOne-to-one communication with the control means is sufficient, and communication control is easy. Vehicle inspection equipment is mainly usedvehicleIt is only necessary to be able to communicate at the highest communication speed among a plurality of communication speeds that can be executed by the control means, and it is not necessary to prepare a configuration for executing more communication speeds than necessary. Therefore, the configuration of the inspection apparatus can be simplified and the cost can be reduced. Also mainvehicleIt is possible to detect whether or not the vehicle inspection device is connected by detecting a potential difference in the control means.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an overall configuration of a control device 1 which is a premise of the present invention.
FIG. 2 is a flowchart illustrating an operation performed by a control unit S1.
FIG. 3 is a time chart showing a check communication performed by a control means S1.
FIG. 4 is a flowchart illustrating another operation performed by the control unit S1.
FIG. 5 is a time chart for explaining an initialization operation performed between the tester 2 and the control means S1.
FIG. 6 is a circuit diagram showing a configuration example of a control unit S1.
7 is a time chart for explaining the operation of the control means S1 shown in FIG.
FIG. 8 is a circuit diagram showing another configuration example of the control means S1.
FIG. 9 is a circuit diagram showing still another configuration example of the control means S1.
[Explanation of symbols]
1 Control device
2 Tester
3 Control circuit
4,5 connection terminal
6,11 switching circuit
7, 8, 13, 14, 15 buffers
9 Input buffer
10 Output buffer
12 level judgment circuit
21 and 22 connectors
S1 to Sn control means
K communication line
La, Lb signal line
R1-R4 resistance
P0 to P4 ports
Sin Serial data input terminal
Sout Serial data output terminal

Claims (2)

車両に搭載され、予め定める車両制御をそれぞれ個別に行う複数の車両制御手段を1つの通信ラインで接続して構成され、複数の車両制御手段の中から選ばれる1つの主車両制御手段は、他の車両制御手段にデータの送信を要求する要求データを送信し、他の車両制御手段はデータ送信の順序を決定する優先順位に従って前記要求データに対する応答データを順番に送信するデータ通信機能を備えた車両制御装置において、
前記主車両制御手段には、複数の車両制御手段の動作状態を検査する車両用検査装置が必要に応じて接続され、
前記主車両制御手段は、データ通信に先立って前記車両用検査装置から送信される初期化信号を受信したこによって前記車両用検査装置が接続されていることを検知する検知手段を備え、
前記車両用検査装置が接続されていないときは、実行していた車両制御を表す制御データを含む動作確認のための予め定めるデータを応答データとして送信することを要求する要求データを周期的に送信し、他の車両制御手段から送信された応答データに基づいて当該他の車両制御手段が正常に動作しているかどうかを判断し、他の車両制御手段が異常であると判断した場合には、異常が発生した他の車両制御手段から送信された応答データに含まれる制御データを保持しておき、
前記車両用検査装置が接続されていることを検知したときは、前記要求データの送信および応答データの受信を終了し、前記主車両制御手段が通信可能な複数ある通信速度のうち最高速の通信速度で、前記車両用検査装置との間で車両制御手段の動作状態に関するデータ通信を行うとともに、前記車両用検査装置が接続されていないときに他の車両制御手段が異常であると判断していた場合には、該他の車両制御手段に異常が発生したときに保持しておいた他の車両制御手段が実行していた制御データを前記車両用検査装置に一括して送信することを特徴とするデータ通信機能を備えた車両制御装置。
A plurality of vehicle control means mounted on a vehicle and individually performing predetermined vehicle control are connected by a single communication line, and one main vehicle control means selected from the plurality of vehicle control means includes: The vehicle control means has a data communication function for transmitting request data for requesting data transmission, and the other vehicle control means sequentially transmits response data for the request data in accordance with a priority order for determining the order of data transmission. In the vehicle control device,
The main vehicle control means is connected to a vehicle inspection device for inspecting the operation state of the plurality of vehicle control means as required,
The main vehicle control means includes detection means for detecting that the vehicle test apparatus is connected by a crotch, which has received the initialization signal transmitted from the inspection apparatus for the vehicle prior to data communication,
When the vehicle inspection device is not connected, request data for requesting that predetermined data for operation confirmation including control data representing vehicle control being executed is transmitted as response data is periodically transmitted. Then, based on the response data transmitted from the other vehicle control means, determine whether the other vehicle control means is operating normally, and if it is determined that the other vehicle control means is abnormal, Holding control data included in response data transmitted from other vehicle control means in which an abnormality has occurred,
When it is detected that the vehicle inspection device is connected, the transmission of the request data and the reception of response data are terminated, and the fastest communication among a plurality of communication speeds with which the main vehicle control means can communicate a speed, performs data communication relating to the operating state of the vehicle control means between the vehicle inspection system, other vehicle control means when the vehicle inspection system is not connected, it is determined to be abnormal Tei when the can, to collectively transmitted control data which the other vehicle control unit was running which has been held when an abnormality occurs in the other vehicle control means in the inspection apparatus for the vehicle A vehicle control device having a featured data communication function.
車両に搭載され、予め定める車両制御をそれぞれ個別に行う複数の車両制御手段を1つの通信ラインで接続して構成され、複数の車両制御手段の中から選ばれる1つの主車両制御手段は、他の車両制御手段にデータの送信を要求する要求データを送信し、他の車両制御手段はデータ送信の順序を決定する優先順位に従って前記要求データに対する応答データを順番に送信するデータ通信機能を備えた車両制御装置において、
前記主車両制御手段には、複数の車両制御手段の動作状態を検査する車両用検査装置が必要に応じて接続され、
前記主車両制御手段は、前記車両用検査装置の接続によって生じる車両制御装置内の電位差を検知して前記車両用検査装置が接続されていることを検知する検知手段を備え、
前記車両用検査装置が接続されていないときは、実行していた車両制御を表す制御データを含む動作確認のための予め定めるデータを応答データとして送信することを要求する要求データを周期的に送信し、他の車両制御手段から送信された応答データに基づいて当該他の車両制御手段が正常に動作しているかどうかを判断し、他の車両制御手段が異常であると判断した場合には、異常が発生した他の車両制御手段から送信された応答データに含まれる制御データを保持しておき、
前記車両用検査装置が接続されていることを検知したときは、前記要求データの送信および応答データの受信を終了し、前記主車両制御手段が通信可能な複数ある通信速度のうち最高速の通信速度で、前記車両用検査装置との間で車両制御手段の動作状態に関するデータ通信を行うとともに、前記車両用検査装置が接続されていないときに他の車両制御手段が異常であると判断していた場合には、該他の車両制御手段に異常が発生したときに保持しておいた他の車両制御手段が実行していた制御データを前記車両用検査装置に一括して送信することを特徴とするデータ通信機能を備えた車両制御装置。
A plurality of vehicle control means mounted on a vehicle and individually performing predetermined vehicle control are connected by a single communication line, and one main vehicle control means selected from the plurality of vehicle control means includes: The vehicle control means has a data communication function for transmitting request data for requesting data transmission, and the other vehicle control means sequentially transmits response data for the request data in accordance with a priority order for determining the order of data transmission. In the vehicle control device,
The main vehicle control means is connected to a vehicle inspection device for inspecting the operation state of the plurality of vehicle control means as required,
The main vehicle control means includes a detection means for detecting a potential difference in the vehicle control device caused by connection of the vehicle inspection device and detecting that the vehicle inspection device is connected,
When the vehicle inspection device is not connected, request data for requesting that predetermined data for operation confirmation including control data representing vehicle control being executed is transmitted as response data is periodically transmitted. Then, based on the response data transmitted from the other vehicle control means, determine whether the other vehicle control means is operating normally, and if it is determined that the other vehicle control means is abnormal, Holding control data included in response data transmitted from other vehicle control means in which an abnormality has occurred,
When it is detected that the vehicle inspection device is connected, the transmission of the request data and the reception of response data are terminated, and the fastest communication among a plurality of communication speeds with which the main vehicle control means can communicate a speed, performs data communication relating to the operating state of the vehicle control means between the vehicle inspection system, other vehicle control means when the vehicle inspection system is not connected, it is determined to be abnormal Tei when the can, to collectively transmitted control data which the other vehicle control unit was running which has been held when an abnormality occurs in the other vehicle control means in the inspection apparatus for the vehicle A vehicle control device having a featured data communication function.
JP25387194A 1994-10-19 1994-10-19 Vehicle control device with data communication function Expired - Fee Related JP3645291B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25387194A JP3645291B2 (en) 1994-10-19 1994-10-19 Vehicle control device with data communication function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25387194A JP3645291B2 (en) 1994-10-19 1994-10-19 Vehicle control device with data communication function

Publications (2)

Publication Number Publication Date
JPH08115274A JPH08115274A (en) 1996-05-07
JP3645291B2 true JP3645291B2 (en) 2005-05-11

Family

ID=17257300

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25387194A Expired - Fee Related JP3645291B2 (en) 1994-10-19 1994-10-19 Vehicle control device with data communication function

Country Status (1)

Country Link
JP (1) JP3645291B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101882201B1 (en) * 2017-09-01 2018-08-24 현대자동차주식회사 Vehicle and method of controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101882201B1 (en) * 2017-09-01 2018-08-24 현대자동차주식회사 Vehicle and method of controlling the same

Also Published As

Publication number Publication date
JPH08115274A (en) 1996-05-07

Similar Documents

Publication Publication Date Title
US20060004545A1 (en) Physical quantity sensor and apparatus for inspecting physical quantity sensor
CN114144997A (en) Error detection test device for a subscriber station of a serial bus system and method for testing a mechanism for error detection in communication in a serial bus system
CN111669299A (en) Communication failure detection device
CN112440905A (en) Vehicle control system, vehicle control method, and storage medium
JPH08163151A (en) Serial communication device
JP3645291B2 (en) Vehicle control device with data communication function
KR100293950B1 (en) Apparatus and method for detecting fault using peripheral components interconnect bus monitor
JP2009111911A (en) Communication apparatus, communication system, and communication method
EP1926023B1 (en) Communication system and electronic control unit including communication system for vehicle control
JP2013236184A (en) In-vehicle communication system, communication abnormality monitoring method of in-vehicle communication system, and communication abnormality monitoring program of in-vehicle communication system
CN116266803A (en) Device for a controller area network
JP3179037B2 (en) Vehicle communication network system
US20060242472A1 (en) Received data compensating device
JPH1174884A (en) Communication equipment
US5730053A (en) Bus system for a printing machine
CN112291128B (en) Bus-based communication system, system on chip and method therefor
US20130326287A1 (en) Programmable logic controller
CN113383326A (en) Integrated circuit with interface multiplexing function and pin switching method
WO2023106091A1 (en) On-board device, connection switching method, and connection switching program
US20230231739A1 (en) Inspection apparatus and inspection method
CN114697236B (en) Communication monitoring method and device
US20230230428A1 (en) Inspection apparatus and inspection method
JPH08202207A (en) Device for detecting connection state of optional equipment
JP3031050B2 (en) Fault diagnosis device
EP3507944B1 (en) Improved voting for profibus line redundancy

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040220

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040713

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040913

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20040916

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041221

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050111

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050203

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080210

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090210

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090210

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100210

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110210

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110210

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120210

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees