JP2004153650A - Network communication device - Google Patents
Network communication device Download PDFInfo
- Publication number
- JP2004153650A JP2004153650A JP2002318028A JP2002318028A JP2004153650A JP 2004153650 A JP2004153650 A JP 2004153650A JP 2002318028 A JP2002318028 A JP 2002318028A JP 2002318028 A JP2002318028 A JP 2002318028A JP 2004153650 A JP2004153650 A JP 2004153650A
- Authority
- JP
- Japan
- Prior art keywords
- inspection
- pattern
- register
- network communication
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 204
- 238000012545 processing Methods 0.000 claims abstract description 131
- 238000007689 inspection Methods 0.000 claims description 296
- 238000000034 method Methods 0.000 claims description 60
- 230000008569 process Effects 0.000 claims description 17
- 230000007704 transition Effects 0.000 claims description 16
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 230000005856 abnormality Effects 0.000 description 21
- 238000012360 testing method Methods 0.000 description 19
- 230000005540 biological transmission Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 8
- 230000002265 prevention Effects 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
この発明は、データレジスタに格納したデータ並びにID情報レジスタに格納した前記データの種別を規定したID情報からなるメッセージをCAN通信により送受信するネットワーク通信装置に関し、特にCAN通信に用いるレジスタのビット固着を検査可能なネットワーク通信装置に関する。
【0002】
【従来の技術】
近年、電子機器の発達とともに、電子機器が利用される局面はますます多様化している。例えば自動車では、ライト等の電装系をはじめとして、エンジン点火制御やギヤボックスのコントロール、アンチロックブレーキングシステムなどに電子機器が利用されている。従来、これらの電子機器は単独で利用されていたが、搭載される電子機器が増大するにつれて配線数の増大、センサーの重複などが発生していた。また、さらに高度な性能を得るためには、これらの電子機器を統合して制御する必要がある。
【0003】
電子機器制御の統合を実現するためには、電子機器間でデータ通信を行う通信ネットワークが必要となる。自動車に搭載する電子機器は、高温や高振動などの電気的に劣悪な環境において使用される場合が多く、また、各電子機器は独立に製造されて必要に応じて搭載されるためにネットワーク構成が多様である。したがって、この通信ネットワークでは、電気的に劣悪な環境に耐え、かつ高いフレキシビリティを持つことが要求される。
【0004】
この要求を満たすネットワークシステムとして、CAN(Controller Area Network)が開発された。CANは、電子機器を接続したシリアルバスシステムであり、国際標準化機構において規格の定義がなされている。このCANでは、高い信頼性を確保するために、エラー検出の手法が研究されている(例えば、特許文献1参照。)
【0005】
またCANでは、ネットワーク構成のフレキシビリティを確保するため、メッセージの内容を示すID情報を付加し、このID情報によってメッセージの送信先を決定している。すなわち、メッセージの内容をID情報によって定義して全ての電子機器に一斉に送信し、各電子機器は、ID情報をもとにそのメッセージを受信するか否かを決定する。以下、CANに接続された複数の電子機器に対して一斉にメッセージを送信する動作をマルチキャスト、と称する。
【0006】
このCANの通信方法について図8を参照して説明する。図8において、電子機器である車載コンピュータ101,102,103はそれぞれCAN105に接続されている。また、車載コンピュータ101はエンジン制御モジュール101aおよび通信モジュール101bを備えている。同様に、車載コンピュータ102は、ブレーキ制御モジュール102aおよび通信モジュール102bを備え、車載コンピュータ103は、電装制御モジュール103aおよび通信モジュール103bを備えている。
【0007】
エンジン制御モジュール101aは、エンジンの回転数を検知するセンサを備え、エンジンの回転数をもとに点火タイミングを制御する。さらに、エンジン制御モジュール101aは、通信モジュール101bを介し、エンジン回転数をCAN105に送信する。この時、通信モジュール101bは、エンジンの回転数を示すデータに、そのデータがエンジンの回転数であることを示すID情報を付加したメッセージをCAN105にマルチキャストする。
【0008】
このように、通信モジュール101bが送信するメッセージはその宛先を示す情報を持たず、全ての車載コンピュータ、図8においては車載コンピュータ102,103の双方に送信されることとなる。通信モジュール102b,103bは、メッセージを受信した場合にID情報を確認してメッセージがエンジンの回転数のデータを有することを認識し、メッセージを受信するか否かを判断する。
【0009】
たとえば、車載コンピュータ102は、ブレーキの制御をおこなうコンピュータであるので、エンジン回転数を制御に必要とする。したがって、通信モジュール102bはID情報をもとにメッセージを受信し、エンジンの回転数をブレーキ制御モジュール102aに送信する。ブレーキ制御モジュール102aは、エンジンの回転数をもとにブレーキの調節をおこなう。一方、コンピュータ103は電装系の制御をおこなうコンピュータであり、エンジン回転を制御に必要としない。したがって、通信モジュール103bは、ID情報をもとにメッセージを破棄し、電装制御モジュール103aにエンジン回転数を送信しない。
【0010】
このように、メッセージの内容をID情報によって定義してマルチキャストし、各通信モジュールがID情報をもとにメッセージを受信するか否かを判断することで、宛先を指定することなくメッセージの送受信をおこなうことができる。宛先を指定する必要を無くすことで、ネットワーク構成を変更した場合においても各車載コンピュータのハードウェアやソフトウェアを修正する必要が無くなり、ネットワークに対する車載コンピュータの追加や削除を自由におこなうことのできるフレキシブルなネットワークが実現されている。
【0011】
CAN105に接続された各通信モジュールは、メッセージの送受信にあたりID情報の読み書きの用いるID情報レジスタとデータの読み書きに用いるデータレジスタとを使用する。たとえば通信モジュール101bでは、図9に示すように、メールボックス121〜125,131〜133を有している。メールボックス121は、ID情報の読み書きをおこなうID情報レジスタ121aおよびデータの読み書きを行うためのデータレジスタ121bを有している。同様に、メールボックス122〜124,131〜133は、それぞれID情報レジスタおよびデータレジスタを備えている。
【0012】
このメールボックスは、一般に、使用するID情報のそれぞれに対してID情報レジスタを割り当てて使用する。例えば、ID情報が「00000000000」であるメッセージの読み書きを行う場合にはメールボックス121を使用し、ID情報が「00000000001」であるメッセージの読み書きを行う場合にメールボックス122を使用する。
【0013】
また、メールボックスには、通常のネットワーク通信に用いる制御用メールボックスとは別に、検査用のメールボックスを用意することがある。図9においては、メールボックス121〜125が制御用メールボックスであり、メールボックス131〜135が検査用のメールボックスである。この検査用メールボックス131〜135は、検査用のID情報に割り当てられ、通信機能が正常に働いているか否かを判定するために用いられる。
【0014】
CAN通信においては、ID情報によってメッセージの送信先が決定されるためにフレキシブルな構成が可能である反面、各車載コンピュータの出荷時点ではどのような構成において使用されるかが不明である。したがって、各車載コンピュータの出荷前における検査用として検査用のID情報を設定し、この検査用ID情報を用いて通信を行うことで、出荷前にCAN通信機能の検査をしていた。具体的には、検査用ID情報を備えたメッセージ、すなわち検査用メッセージの送受信を実際におこない、この検査用メッセージの送受信が正常に実行されれば、その製品の通信機能は正常に動作していると判断していた。
【0015】
【特許文献1】
特開2001−339412号公報 (第6−8頁、第6図)
【0016】
【発明が解決しようとする課題】
しかしながら、この従来のCAN用のネットワーク通信装置では、通信機能の確認を検査用メッセージの送受信によって行っていたため、制御用メッセージの送受信が正常に実行可能であるかを厳密にかつ低コストで判定することができないという問題点があった。
【0017】
具体的には、検査用のID情報として「00100000000」を用い、この検査用のID情報による通信が正常に行われた場合、従来では通信機能が正常であると判断されるが、たとえば通常制御時に用いるID情報を記憶するためのレジスタに特定のビットが常に同一の値を出力するビット固着があった場合に、このレジスタの異常を見逃す可能性がある。たとえば、ID「00000000111」に割り当てられたレジスタにおいてビット固着が3ビット目に発生していると、ID情報が「00000000111」である制御用メッセージの送信動作時に「00100000111」を出力することとなる。
【0018】
このように、検査用ID情報を使用したメッセージの送受信が正常に実行可能であったとしても、検査用ID情報に割り当てられていないレジスタ、すなわち通常の通信制御に使用するレジスタを用いた通信時に異常が発生する可能性があった。つまり、検査用ID情報を用いた検査では、通信自体の可否は検査できたが、実際の通信に用いるID情報レジスタの動作を検査することができなかった。
【0019】
CAN通信では、ID情報によってメッセージの内容の定義とメッセージの送信先の決定とを行うので、ID情報が誤って送信されると誤ったデータがマルチキャストされることとなり、ネットワークの信頼性を著しく損なうこととなる。また、制御用に用いるメッセージで検査をおこなうためには使用する制御用メッセージについて、通信相手となる電子機器を接続して検査をする必要があり、要求されるコストが非常に大きくなる。
【0020】
この発明は、上述した従来技術による問題点を解消するためになされたものであり、制御用メッセージの送受信に用いるレジスタのビット固着を低コストで検査可能なネットワーク通信装置を提供することを目的とする。
【0021】
【課題を解決するための手段】
上述した課題を解決し、目的を達成するため、請求項1の発明にかかるネットワーク通信装置は、データレジスタに格納したデータ並びにID情報レジスタに格納した前記データの種別を規定したID情報からなるメッセージをCAN通信により送受信するネットワーク通信装置であって、検査状態に移行する検査状態移行手段と、前記検査状態移行手段により検査状態に移行した場合に、前記ID情報レジスタに所定のパターンを書き込むとともに、該書き込んだパターンを前記ID情報レジスタから読み出した読み出しパターンが書き込みパターンと一致するか否かを検査する検査処理手段と
を備えたことを特徴とする。
【0022】
この請求項1の発明によれば、ネットワーク通信装置は、ID情報レジスタに対して所定のパターンを書き込むとともに、書き込んだパターンの読み出しをおこない、書き込んだパターンと読み出したパターンとを比較し、書き込みパターンと読み出しパターンとが一致するか否かを検査することで、ビット固着の検査をおこなうように構成される。
【0023】
また、請求項2の発明にかかるネットワーク通信装置は、請求項1の発明において、前記検査状態移行手段は、前記検査処理の開始を指示するメッセージを受信した場合に、前記検査状態に移行することを特徴とする。
【0024】
この請求項2の発明によれば、ネットワーク通信装置は、検査処理の開始を指示するメッセージを受信した場合に、検査状態に移行し、ID情報レジスタでのビット固着の検査を開始する。
【0025】
また、請求項3の発明にかかるネットワーク通信装置は、請求項1または2の発明において、前記検査処理手段は、前記データレジスタに対してさらに所定のパターンを書き込むとともに、該書き込んだパターンを前記データレジスタから読み出した読み出しパターンが書き込みパターンと一致するか否かを検査することを特徴とする。
【0026】
この請求項3の発明によれば、ネットワーク通信装置は、ID情報レジスタに加え、データレジスタに対してもビット固着の有無を検査する。
【0027】
また、請求項4の発明にかかるネットワーク通信装置は、請求項1,2または3の発明において、前記所定のパターンは、値「0」が連続したパターン、値「1」が連続したパターン、値「01」が連続したパターンまたは値「10」が連続したパターンを含んだことを特徴とする。
【0028】
この請求項4の発明によれば、ネットワーク通信装置は、値「0」が連続したパターン、値「1」が連続したパターン、値「01」が連続したパターン、または値「10」が連続したパターンを使用してIDレジスタおよびデータレジスタのビット固着の検査をおこなう。
【0029】
また、請求項5の発明にかかるネットワーク通信装置は、請求項1〜4の発明において、前記所定のパターンは、実際のCAN通信をおこなう際に使用されるID情報のパターンを含んだことを特徴とする。
【0030】
この請求項5の発明によれば、ネットワーク通信装置は、実際のCAN通信をおこなう際に使用されるID情報のパターンを使用してIDレジスタおよびデータレジスタのビット固着の検査をおこなう。
【0031】
また、請求項6の発明にかかるネットワーク通信装置は、請求項1〜5の発明において、前記検査処理手段は、特定のパターンについての読み出しパターンと書き込みパターンが一致しないと判定された場合に、該特定のパターンについての検査処理を複数回繰り返し、ある回数以上連続して一致しないと判定された場合にレジスタ異常と判定することを特徴とする。
【0032】
この請求項6の発明によれば、ネットワーク通信装置は、特定のパターンについて読み出しパターンと書き込みパターンが一致しない場合に、そのパターンについての検査処理を繰り返し、ある回数以上連続して一致しない場合にレジスタ異常と判定する。
【0033】
また、請求項7の発明にかかるネットワーク通信装置は、請求項3〜6の発明において、前記検査処理手段は、前記データレジスタを形成するすべてのビットを検査対象としたパターンを用いて前記検査処理をおこなうことを特徴とする。
【0034】
この請求項7の発明によれば、ネットワーク通信装置は、データレジスタを形成する全てのビットについて書き込みがおこなわれるパターンを使用してビット固着の検出をおこなう。
【0035】
また、請求項8の発明にかかるネットワーク通信装置は、請求項3〜7の発明において、前記検査処理手段は、前記データレジスタを形成するすべてのビットのうち実際のCAN通信で使用されるビットを検査対象としたパターンを用いて前記検査処理をおこなうことを特徴とする。
【0036】
この請求項8の発明によれば、ネットワーク通信装置は、データビットを形成する複数のビットのうち、実際にCAN通信で使用されるビットに対して書き込みが行われるパターンを使用してビット固着の検査をおこなう。
【0037】
また、請求項9の発明にかかるネットワーク通信装置は、請求項3〜8の発明において、前記検査処理手段は、前記ID情報レジスタおよびデータレジスタの対が複数存在する場合に、全てのID情報レジスタおよび全てのデータレジスタを検査対象とすることを特徴とする。
【0038】
この請求項9の発明によれば、ネットワーク通信装置は、複数のID情報レジスタおよびデータレジスタの対がある場合に、全てのIDレジスタとデータレジスタに対してビット固着の検査をおこなう。
【0039】
また、請求項10の発明にかかるネットワーク通信装置は、請求項3〜8の発明において、前記検査処理手段は、前記ID情報レジスタおよびデータレジスタの対が複数存在する場合に、実際のCAN通信で使用されるID情報レジスタおよびデータレジスタの対を検査対象とすることを特徴とする。
【0040】
この請求項10の発明によれば、ネットワーク通信装置は、複数のID情報レジスタおよびデータレジスタの対が存在する場合に、実際にCAN通信で使用されるID情報レジスタおよびデータレジスタに対してビット固着の検査をおこなう。
【0041】
また、請求項11の発明にかかるネットワーク通信装置は、請求項9または10の発明において、前記検査処理手段により前記ID情報レジスタおよびデータレジスタの対のうち少なくとも一の正常な対があると判定された場合には、該正常なID情報レジスタおよびデータレジスタの対を用いたCAN通信により前記検査処理手段による検査結果を送信する検査結果送信手段をさらに備えたこと特徴とする。
【0042】
この請求項11の発明によれば、ネットワーク通信装置は、複数のID情報レジスタとデータレジスタがあり、少なくとも一つの正常なIDレジスタとデータレジスタとの対が存在する場合に、この正常なIDレジスタとデータレジスタと使用して、CAN通信によってビット固着の検査結果を送信する。
【0043】
また、請求項12の発明にかかるネットワーク通信装置は、請求項1〜11の発明において、前記検査処理手段は、前記検査処理をおこなう複数のパターンを含んだメッセージを実際のCAN通信により順次受信するとともに、該受信した各パターンを用いて前記検査処理をおこなうことを特徴とする。
【0044】
この請求項12の発明によれば、ネットワーク通信装置は、CAN通信によってビット固着検査用のパターンを受信し、受信したパターンによってビット固着の検査をおこなう。
【0045】
【発明の実施の形態】
以下に添付図面を参照して、この発明に係るネットワーク通信装置の好適な実施の形態である車載コンピュータについて説明する。なお、実施の形態1では、車載コンピュータ単体でレジスタの検査を実行するネットワーク通信装置について説明し、実施の形態2ではCANを介してレジスタの検査を実行するネットワーク通信装置について説明する。
【0046】
(実施の形態1)
まず、本実施の形態にかかる車載コンピュータの概要構成について説明する。図1は、本実施の形態にかかる車載コンピュータの概要構成を説明する説明図である。図1において、車載コンピュータ1は、CAN5を介して検査装置6に接続されている。また、車載コンピュータ1は、その内部に入手出力処理部2、エンジン制御モジュール3、通信モジュール3を備えている。
【0047】
入出力処理部2は、エンジンの回転数を計測するセンサや、エンジンの点火装置などに接続されている。入出力処理部2は図示しないセンサが計測したエンジンの回転数をエンジン制御モジュール3に送信する。エンジン制御モジュール3は、入出力処理部2から受信したエンジンの回転数をもとに、エンジンの点火タイミングを決定し、入出力処理部2を介して図示しない点火装置の制御をおこなう。また、エンジン制御モジュールは、入出力処理部2から受信したエンジンの回転数を通信モジュール4に送信する。
【0048】
通信モジュール4は、その内部に動作切替部11、通信処理部12、検査処理部13、検査手順記憶部14、メッセージ記憶部16およびネットワーク接続部17を備えている。メッセージ記憶部16は、さらに、CAN5との送受信に用いるメールボックス21〜23を備えている。このメールボックス21〜23は、ID情報の読み書きに使用するID情報レジスタおよびデータの読み書きに使用するデータレジスタをそれぞれ備えている。
【0049】
動作切替部11は、メッセージ記憶部16に対するアクセス権を通信処理部12と検査処理部13との間で切り替える。車載コンピュータ1がCAN5を介して他の車載コンピュータと通信している状態(以下、この状態を通信モードと表記する)では、動作切替部11は、メッセージ記憶部16に対するアクセス権を通信処理部12に与えている。一方、車載コンピュータの通信機能を検査している状態(以下、この状態を検査モードと表記する)では、動作切替部11は、メッセージ記憶部16に対するアクセス権を検査処理部13に与える。
【0050】
通信処理部12は、通信モード状態、すなわちメッセージ記憶部16に対するアクセス権がある場合に、メッセージ記憶部16内部のレジスタを使用し、CAN5に対するメッセージの送受信をおこなう。具体的には、通信処理部12は、エンジン制御モジュール3からエンジンの回転数を示すデータを受信し、このデータにID情報を付加してメッセージを形成し、メッセージ記憶部16に記憶する。メッセージ記憶部16に記憶されているメッセージは所定のタイミングで、CAN5に送信する。また、通信処理部12は、CAN5から受信し、メッセージ記憶部16に記憶されているメッセージのID情報を確認し、そのメッセージがエンジン処理モジュールによって受信指定されている場合に、メッセージのデータを読み出してエンジン制御モジュール3に送信する。
【0051】
検査装置6は、検査開始を指示するメッセージをCAN5に送信する。動作切替部11は、ネットワーク接続部17を介して検査開始を指示するメッセージを受信した場合に、通信モードから検査モードに切り替える。検査処理部13は、通信モードから検査モードに移行した場合、すなわち動作切替部11からメッセージ記憶部16に対するアクセス権を与えられた場合に、メッセージ記憶部16のレジスタの検査を開始する。このレジスタの検査は、検査手順記憶部14が記憶する検査手順データに従って行われる。さらに、検査処理部13は、検査処理が終了した場合にその検査結果を出力し、動作切替部11に検査終了を通知する。動作切替部11は、検査処理部13から検査終了の通知があった場合に、検査モードから通信モードへの切り替えをおこなう。
【0052】
検査処理部13によるレジスタの検査について詳細に説明する。検査部13によるレジスタの検査は、所定のパターンをレジスタに対して書き込んだ後に、このデータを読み出し、書き込んだデータの値と読み出したデータの値とを比較することでおこなう。この所定のパターンとしては、「000・・・・」と値「0」、すなわちドミナントが連続するパターンと、「1111・・・」と値「1」、すなわちリセッシブが連続するパターンとが用いられる。
【0053】
このドミナント連続パターンとリセッシブ連続パターンとについてそれぞれ読み書きを行い、正常に読み書きができた場合、各レジスタはドミナントとリセッシブとをそれぞれ出力可能であることとなる。
【0054】
また、所定のパターンとして「0101・・・」とドミナントとリセッシブが交互に連続するパターンと、「1010・・・」とリセッシブとドミナントが交互に連続するパターンとを用いても良い。このドミナント−リセッシブパターンおよびリセッシブ−ドミナントパターンについてそれぞれ読み書きが正常に実行可能である場合、各レジスタはドミナントとリセッシブとそれぞれ出力可能であることとなる。
【0055】
なお、あるレジスタが隣接するレジスタなどの他のレジスタに影響され、他のレジスタと同一の値、もしくは他のレジスタの反対の値を常に出力するという異常が発生する場合がある。このような異常を検出する場合には、ドミナント連続パターン、リセッシブ連続パターン、ドミナント−リセッシブ連続パターン、およびリセッシブ−ドミナント連続パターンのそれぞれについて読み書きを実行することが望ましい。
【0056】
このレジスタに対して読み書きするパターンとしてどのパターンを使用するか、また、どの順番で使用するか、など検査の内容に関する情報は、検査手順データ15に記載されている。さらに、この検査手順データに複数の検査手順を記憶させ、検査に使用できる時間や、検査対象の重要度などの必要に応じて検査内容を選択できるようにしてもよいし、検査内容を任意に書き換え可能としても良い。
【0057】
つぎに、図2を参照し、通信モジュール4におけるレジスタ検査の動作処理について説明する。図2は、通信モジュール4におけるレジスタ検査の動作処理を説明するフローチャートである。図2において、通信モジュール4は、まず、CAN5から検査開始を指示する検査開始メッセージを受信する(ステップS101)。つぎに、動作切替部11は、メッセージ記憶部16に対するアクセス権の通信処理部12から検査処理部13への切り替え、すなわち通信モードから検査モードへの切り換えをおこなう(ステップS102)。
【0058】
つづいて、検査処理部13が、メッセージ記憶部16が有するメールボックスのうち、最初のメールボックスを検査対象に指定する(ステップS103)。つぎに、検査処理部13は、検査対象のメールボックスのレジスタに対してドミナント連続パターンを書き込む(ステップS104)。その後、検査処理部13は、書き込んだデータを読み出し、読み出したデータがドミナント連続パターンであるか、すなわちデータが正常に読み出せたか否かを判定する(ステップS105)。
【0059】
データが正常に読み出せなかった場合(ステップS105,No)、検査処理部13は、検査対象のメールボックスに異常ありと出力する(ステップS116)。一方、データが正常に読み出せた場合(ステップS105,Yes)、検査処理部13は、検査対象のメールボックスのレジスタに対してリセッシブ連続パターンを書き込む(ステップS106)。その後、検査処理部13は、書き込んだデータを読み出し、読み出したデータがリセッシブ連続パターンであるか、すなわちデータが正常に読み出せたか否かを判定する(ステップS107)。
【0060】
データが正常に読み出せなかった場合(ステップS107,No)、検査処理部13は、検査対象のメールボックスに異常ありと出力する(ステップS116)。一方、データが正常に読み出せた場合(ステップS107,Yes)、検査処理部13は、検査対象のメールボックスのレジスタに対してドミナント−リセッシブパターンを書き込む(ステップS108)。その後、検査処理部13は、書き込んだデータを読み出し、読み出したデータがドミナント−リセッシブパターンであるか、すなわちデータが正常に読み出せたか否かを判定する(ステップS109)。
【0061】
データが正常に読み出せなかった場合(ステップS109,No)、検査処理部13は、検査対象のメールボックスに異常ありと出力する(ステップS116)。一方、データが正常に読み出せた場合(ステップS109,Yes)、検査処理部13は、検査対象のメールボックスのレジスタに対してリセッシブ−ドミナントパターンを書き込む(ステップS110)。その後、検査処理部13は、書き込んだデータを読み出し、読み出したデータがリセッシブ−ドミナントパターンであるか、すなわちデータが正常に読み出せたか否かを判定する(ステップS110)。
【0062】
データが正常に読み出せなかった場合(ステップS111,No)、検査処理部13は、検査対象のメールボックスに異常ありと出力する(ステップS116)。一方、データが正常に読み出せた場合(ステップS111,Yes)、検査処理部13は、全てのメールボックスについて検査が終了したか否かを判定する(ステップS112)。
【0063】
検査を実行していないメールボックスが残っている場合(ステップS112,No)、検査処理部13は、次のメールボックスを検査対象に指定し(ステップS115)、ステップS104に移行する。一方、全てのメールボックスについて検査が終了した場合(ステップS112,Yes)、検査処理部13は、メールボックスに異常なしと出力する(ステップS113)。さらに、ステップS116終了後、またはステップS113終了後、動作切替部11によって検査モードから通信モードに切り替えて、処理を終了する。
【0064】
ここで、図3を参照し、検査処理部13による検査を実行するレジスタの範囲について説明する。図3は、メッセージ記憶部16の内部について説明する説明図である。図3において、メッセージ記憶部16は、メールボックス21〜24,31,32を有している。また各メールボックスは、それぞれID情報レジスタとデータレジスタとを有する。ここで、メールボックスのうち、制御用メッセージに割り当てられているのはメールボックス21〜23である。また、検査用メッセージにメールボックス31,33が割り当てられている。
【0065】
すなわち、メールボックス24にはID情報が割り当てられておらず、通信処理部12はメールボックス24を使用しない。したがって、メールボックス24が有するレジスタの検査を省略することで、検査に要する時間を短縮することができる。
【0066】
また、メッセージのID情報は11ビットとして定義されているが、メッセージのデータ部分のビット数は可変である。したがって、ID情報レジスタ21a,22a,23aは、全ビットに対して検査パターンの読み書きを実行する必要があるが、データレジスタ21b,22b,23bについては、通信処理部12が使用するビットに対して選択的にパターンの読み書きをおこなうことで、検査に必要な処理量を軽減することができる。
【0067】
図3においては、使用しないメールボックスと使用しないレジスタビットに対する検査を省略することで、検査の対象となる検査範囲16aを縮小し、検査に必要な時間および処理能力を軽減している。
【0068】
つぎに、検査処理部13による検査結果の出力について説明する。検査結果の出力は、車載コンピュータ1に設けた何らかの出力手段によって通知するようにしても良いし、CAN5を介して出力するようにしても良い。なお、CAN5を介して検査結果を出力する場合、正常に機能するメールボックスが少なくとも一つ存在する必要がある。したがって、正常に機能するメールボックスが無い場合の通知手段を設けるか、もしくは検査開始から所定時間の間に結果通知のメッセージが無い場合に、メールボックスに異常があると判定する機構を設ける必要がある。
【0069】
図4にCAN5を介して検査結果を通知する場合の通信モジュール4の処理動作を示す。図4において、まず通信モジュール4は、検査開始メッセージを受信し(ステップS201)、通信モードから検査モードに切り替える(ステップS202)。つぎに、最初のメールボックスを検査対象に指定し(ステップS203)、検査対象のメールボックスにドミナント連続パターンを書き込む(ステップS204)。
【0070】
つぎに、書き込んだパターンを読み出して、正常に読み出せたか否かを判定し(ステップS205)、正常に読み出せた場合には(ステップS205,Yes)、検査対象のメールボックスにリセッシブ連続パターンを書き込む(ステップS206)。さらに、書き込んだパターンを読み出して、正常に読み出せたか否かを判定する(ステップS207)。
【0071】
このリセッシブ連続パターンが正常に読み出せた場合(ステップS207,Yes)、検査対象のメールボックスにドミナント−リセッシブパターンを書込み(ステップS208)、書き込んだパターンが正常に読み出せるかを確認する(ステップS209)。また、ドミナント−リセッシブパターンが正常に読み出せた場合(ステップS209,Yes)、検査対象のメールボックスにリセッシブ−ドミナントパターンを書込み(ステップS210)、書き込んだパターンを読み出して、正常に読み出せるか否かを判定する(ステップS211)。
【0072】
ドミナント−リセッシブパターンが正常に読み出せた場合(ステップS211,Yes)、全てのメールボックスについて検査が終了したか否かを判定する(ステップS212)。検査が終了していないメールボックスがある場合(ステップS212,No)、次のメールボックスを検査対象に指定(ステップS215)してステップS204)に移行し、全てのメールボックスについて検査が終了していれば、メールボックスに異常が無いことをCAN5を介して送信する(ステップS213)。
【0073】
一方、書き込んだパターンが正常に読み出せなかった場合(ステップS205,No、ステップS207,No、ステップS209,No、ステップS211,No)、検査処理部は、正常なメールボックスがあるか否かの判定をおこなう(ステップS217)。正常なメールボックスがある場合(ステップS217,Yes)、検査処理部13は、メールボックスの異常に関する情報を正常なメールボックスを用いてCAN5に送信する(ステップS218)。一方、正常なメールボックスが無い場合(ステップS217,No)、検査処理部13は、所定の通知手段によって検査対象のメールボックスに異常があることを出力する(ステップS216)。
【0074】
CAN5に検査結果を出力した(ステップS213、ステップS218)後、もしくは所定の通知手段によって検査結果を出力した(ステップS16)後、通信動作切替部11は、検査モードから通信モードへの切り替えを行い(ステップS214)、処理を終了する。
【0075】
つぎに、レジスタの検査方法についてさらに説明する。検査処理部13は、レジスタに対して所定のパターンの読み書き動作を行い、この読み出し結果によってメールボックスが正常か否かを判定するが、この判定時における誤判定を防止するため、パターンの読み出しが正常に行われなかった場合、そのパターンの読み書き動作を再帰的に繰り返すこととし、所定回数の読み書き動作が連続して失敗した場合に、メールボックスに異常ありと判定するようにしてもよい。
【0076】
図5に、誤判定防止機能を設けた場合における通信モジュール4の処理動作を示す。図5において、通信モジュール4は、CAN5から検査開始メッセージを受信して(ステップS301)検査モードに切り替え(ステップS302)、最初のメールボックスを検査対象に指定する(ステップS303)。
【0077】
その後、ドミナント連続パターンを書込み(ステップS305)、正常に読み出せるか判定する(ステップS305)。ここで、データが正常に読み出せなかった場合(ステップS305,No)、検査処理部13は、所定回数連続して読み出しに失敗したかを確認し(ステップS321)、読み出しの失敗回数が所定の回数未満であれば(ステップS321,No)、検査対象のメールボックスに再度ドミナント連続パターンの書き込みをおこなう(ステップS304)。
【0078】
一方、ドミナント連続パターンが正常に読み出せた場合(ステップS305,Yes)、検査処理部13は、検査対象のメールボックスにリセッシブ連続パターンを書込み(ステップS306)、正常に読み出せるか否かを判定する(ステップS307)。ここで、データが正常に読み出せなかった場合(ステップS307,No)、検査処理部13は、所定回数連続して読み出しに失敗したかを確認し(ステップS322)、読み出しの失敗回数が所定の回数未満であれば(ステップS322,No)、検査対象のメールボックスに再度リセッシブ連続パターンの書き込みをおこなう(ステップS306)。
【0079】
一方、リセッシブ連続パターンが正常に読み出せた場合(ステップS307,Yes)、検査処理部13は、検査対象のメールボックスにドミナント−リセッシブパターンを書込み(ステップS308)、正常に読み出せるか否かを判定する(ステップS309)。ここで、データが正常に読み出せなかった場合(ステップS309,No)、検査処理部13は、所定回数連続して読み出しに失敗したかを確認し(ステップS323)、読み出しの失敗回数が所定の回数未満であれば(ステップS323,No)、検査対象のメールボックスに再度ドミナント−リセッシブパターンの書き込みをおこなう(ステップS308)。
【0080】
一方、ドミナント−リセッシブパターンが正常に読み出せた場合(ステップS309,Yes)、検査処理部13は、検査対象のメールボックスにリセッシブ−ドミナントパターンを書込み(ステップS310)、正常に読み出せるか否かを判定する(ステップS311)。ここで、データが正常に読み出せなかった場合(ステップS311,No)、検査処理部13は、所定回数連続して読み出しに失敗したかを確認し(ステップS324)、読み出しの失敗回数が所定の回数未満であれば(ステップS324,No)、検査対象のメールボックスに再度リセッシブ−ドミナントパターンの書き込みをおこなう(ステップS310)。
【0081】
一方、リセッシブ−ドミナントパターンが正常に読み出せた場合(ステップS311,Yes)、検査処理部13は、全てのメールボックスについて検査が終了したか否かを判定(ステップS312)し、検査していないメールボックスが残っている場合(ステップS312,No)には次のメールボックスを検査対象に指定して(ステップS315)ステップS304に移行し、全てのメールボックスについて検査が終了している場合(ステップS312,Yes)、メールボックスに異常なしと出力する(ステップS313)。
【0082】
さらに、いずれかのパターンについて所定回数連続して読み出しに失敗した場合(ステップS321,Yes、ステップS322,Yes、ステップS323,Yes、ステップS324,Yes)、検査処理部13は、検査対象のメールボックスに異常ありと出力する(ステップS316)。動作切替部11は、ステップS313の終了後、またはステップS316の終了後、検査モードから通信モードに切り替えて(ステップS314)、動作処理を終了する。
【0083】
上述してきたように、本実施の形態1では、動作切替部11によってメッセージ記憶部16に対するアクセス権を通信処理部12と検査処理部13との間で切り替えることによって、制御用メッセージの送受信をおこなう通信モードと、レジスタの検査をおこなう検査モードとの切り替えを実現し、検査モードにおいてメールボックスに対する所定パターンの読み書きをおこなうことで、各メールボックスが正常に機能するかを確認することができる。
【0084】
また、検査に用いるパターンとして、ドミナント連続パターン、リセッシブ連続パターン、ドミナント−リセッシブパターンおよびリセッシブ−ドミナントパターンを用いることで、メールボックスが有するレジスタにビット固着が起きていないことを確認でき、また、各レジスタの値が隣接レジスタに依存していないことを確認できる。
【0085】
さらに、ID情報が割り当てられたメールボックスを選択的に検査し、また、各メールボックスのデータレジスタのうち、使用することが予想される範囲を選択的に検査することで、検査を効率化することができる。
【0086】
また、メールボックスの検査の結果、少なくとも一つの正常なメールボックスがある状態で異常なメールボックスを検出した場合に、正常なメールボックスを用いて検査結果をCANに送信することで、CAN通信を介して検査結果の送受信をおこなうことができる。
【0087】
さらに、メールボックスの検査時に、データを正常に読み出せなかった場合、メールボックスに対する所定パターンの読み書きを再帰的に実行し、所定回数連続してデータの読み出しに失敗した場合にそのメールボックスに異常があると判断することで、誤判定を防止することができる。
【0088】
(実施の形態2)
上記実施の形態1では、車載コンピュータ単体でレジスタの検査を実行するネットワーク通信装置について説明したが、本実施の形態2ではCANを介してレジスタの検査を実行するネットワーク通信装置について説明する。
【0089】
この実施の形態2では、車載コンピュータおよび検査装置が同一内容の検査手順データをそれぞれ記憶し、この検査手順データにしたがって検査用メッセージの送信を行い、受信したメッセージの内容の確認を検査手順データを参照しておこなうようにしている。図6は、本実施の形態2にかかる車載コンピュータ41および検査装置51の概要構成を説明する概要構成図である。なお、実施の形態1に示した車載コンピュータ1と同一の構成要素については、同一の符号を付し、説明を省略する。
【0090】
図6において、検査装置51は、その内部にネットワーク接続部52、検査実行部3、検査手順記憶部54、メッセージ記憶部56を備えている。また、車載コンピュータ41は、検査処理部43および検査手順記憶部44を備えている。ここで、検査手順記憶部44と、検査手順記憶部54とは同一の検査手順データ45を記憶している。
【0091】
この車載コンピュータ41と検査装置51とを用いた、CAN5経由の車載コンピュータ41の検査における動作処理を図7に示す。図7において、まず、検査装置51の検査実行部53がネットワーク接続部52を介して検査開始を指示するメッセージを送信する(ステップS401)。車載コンピュータ1側の動作切替部11は、この検査開始メッセージを受信し(ステップS501)、メッセージ記憶部16に対するアクセス権を検査処理部43に与えて通信モードから検査モードに移行する(ステップS502)。
【0092】
一方、検査実行部53は、検査開始メッセージの送信(ステップS401)の後、検査手順データ45にしたがって、検査用のメッセージをCAN5に送信する(ステップS402)。検査実行部53は、この検査メッセージの送信に、メッセージ記憶部51が有するメールボックス61を使用する。
【0093】
検査処理部43は、CAN5から検査用メッセージを受信し、このメッセージを一旦メッセージ記憶部16に一旦記憶する(ステップS503)。さらに、検査処理部43は、記憶したメッセージを読み出し(ステップS504)、読み出した検査用メッセージの内容が、検査手順データ45に記憶した内容と同一であるかを比較する(ステップS505)。読み出した検査用メッセージが、検査手順データ45に記憶した内容と同一ではない場合(ステップS505,No)、検査処理部43は、メールボックスに異常ありと出力する(ステップS509)。
【0094】
一方、読み出した検査用メッセージが検査手順データに記憶した内容と同一である場合(ステップS505,Yes)、検査処理部43は、検査手順データ45をもとに検査用メッセージを送信し(ステップS506)、メールボックスに異常なしと出力する(ステップS507)。メールボックスの検査結果を出力した(ステップS507、ステップS509)後、動作切替部11は、検査モードから通信モードへの切り替えをおこない(ステップS508)、処理動作を終了する。
【0095】
一方、検査実行部53は、車載コンピュータ41が送信した検査用メッセージを受信し(ステップS403)、メッセージ記憶部56が有するメールボックスに書き込む。さらに検査実行部53はメールボックスに書き込んだメッセージを読み出して検査手順データ45と比較する(ステップS404)。読み出したメッセージが検査手順データ45に記憶した内容と同一である場合(ステップS404,Yes)、検査実行部53は、メールボックスに異常なしと出力(ステップS405)し、処理動作を終了する。また、読み出したメッセージが検査手順データ45に記憶した内容と同一ではない場合(ステップS404,No)、検査実行部53は、メールボックスに異常有りと出力(ステップS406)し、処理動作を終了する。
【0096】
このように、本実施の形態2にかかる車載コンピュータ41では、動作切替部11によって通信モードから検査モードに切り替え、検査モードで検査装置6とのメッセージ送受信をすることで、通信モードにおいて制御用に定義されているID情報を使用して検査をおこなうことができる。この検査モードでは、ID情報はデータ内容の識別や送信先の指定には使用せず、単純なビット列とて取り扱うことができる。また、送受信するメッセージの内容については、予め取り決めた検査手順データ45を検査手順記憶部44と検査手順記憶部54とで共有しているため、受信したメッセージが正常であるか否かを判定し、かつ送信すべきメッセージの内容を決定することができる。
【0097】
ここで、送受信するメッセージとしては、通信モードにおいて定義されたID情報を使用しても良いし、また、ドミナント連続パターンなどの所定のパターンを使用するようにしても良い。
【0098】
なお、上記実施の形態1および実施の形態2では、CAN5を介して検査開始メッセージを受信した場合に検査モードに移行するようにしているが、検査モードの開始は必ずしも検査開始メッセージによる必要はなく、車載コンピュータに直接に検査開始を入力するようにしても良いし、CANとは異なるネットワークを介するようにしても良い。
【0099】
また、検査処理としてレジスタに対し読み書きするデータの内容は、上記実施の形態1および実施の形態2に示したパターンや、通信モードにおいて定義されたID情報に限られること無く、任意のパターンやID情報、およびその組み合わせによって決定すればよい。
【0100】
さらに、実施の形態1および実施の形態2では、複数のメールボックスのいずれか一つに異常があった場合に「異常あり」と出力して検査を終了している。このように構成することで、メールボックスに異常のあるネットワーク通信装置に対してそれ以上の検査をおこなうことを防止し、検査効率を向上することができるが、本発明の利用はこの構成に限定されるものではない。たとえば、各メールボックスの検査結果に関わらず、全てのメールボックスに対して検査を実行し、各メールボックスについて検査結果を出力するように構成しても良い。
【0101】
なお、上記実施の形態1および実施の形態2では、エンジン制御モジュールを有する車載コンピュータについて説明したが、この発明の利用はエンジン制御モジュールを使用する場合に限定されることなく、通信モジュールによってCAN通信をおこなう車載コンピュータに広く適用できることは言うまでも無い。
【0102】
さらに、CANは、車載コンピュータに限らず、医療機器や産業機械などのネットワークに利用されているが、これらの医療機器や産業機械に搭載する通信モジュールに対しても、本発明を適用することが可能である。
【0103】
また、本発明は、CANのプロトコルに依存するものではない。したがって、ID情報によってメッセージ内容を定義し、このID情報によってメッセージの送信先を決定するネットワークを構築するためのネットワーク通信装置に広く適用することができる。
【0104】
(付記1)データレジスタに格納したデータ並びにID情報レジスタに格納した前記データの種別を規定したID情報からなるメッセージをCAN通信により送受信するネットワーク通信装置の検査方法であって、
検査状態移行工程と、
前記検査状態移行工程により検査状態に移行した場合に、前記ID情報レジスタに対して所定のパターンを書き込むとともに、該書き込んだパターンを前記ID情報レジスタから読み出た読み出しパターンが書き込みパターンと一致するか否かを検査する検査処理工程と
を含んだことを特徴とするネットワーク通信装置の検査方法。
【0105】
(付記2)前記検査状態移行工程は、前記検査処理の開始を指示するメッセージを受信した場合に、前記検査状態に移行することを特徴とする付記1に記載のネットワーク通信装置の検査方法。
【0106】
(付記3)前記検査処理工程は、前記データレジスタに対してさらに所定のパターンを書き込むとともに、該書き込んだパターンを前記データレジスタから読み出した読み出しパターンが書き込みパターンと一致するか否かを検査することを特徴とする付記1または2に記載のネットワーク通信装置の検査方法。
【0107】
(付記4)前記所定のパターンは、値「0」が連続したパターン、値「1」が連続したパターン、値「01」が連続したパターンまたは値「10」が連続したパターンを含んだことを特徴とする付記1,2または3に記載のネットワーク通信装置の検査方法。
【0108】
(付記5)前記所定のパターンは、実際のCAN通信をおこなう際に使用されるID情報のパターンを含んだことを特徴とする付記1〜4のいずれか一つに記載のネットワーク通信装置の検査方法。
【0109】
(付記6)前記検査処理工程は、特定のパターンについての読み出しパターンと書き込みパターンが一致しないと判定された場合に、該特定のパターンについての検査処理を複数回繰り返し、ある回数以上連続して一致しないと判定された場合にレジスタ異常と判定することを特徴とする付記1〜5のいずれか一つに記載のネットワーク通信装置の検査方法。
【0110】
(付記7)前記検査処理工程は、前記データレジスタを形成するすべてのビットを検査対象としたパターンを用いて前記検査処理をおこなうことを特徴とする付記3〜6のいずれか一つに記載のネットワーク通信装置の検査方法。
【0111】
(付記8)前記検査処理工程は、前記データレジスタを形成するすべてのビットのうち実際のCAN通信で使用されるビットを検査対象としたパターンを用いて前記検査処理をおこなうことを特徴とする付記3〜7のいずれか一つに記載のネットワーク通信装置の検査方法。
【0112】
(付記9)前記検査処理工程は、前記ID情報レジスタおよびデータレジスタの対が複数存在する場合に、全てのID情報レジスタおよび全てのデータレジスタを検査対象とすることを特徴とする付記3〜8のいずれか一つに記載のネットワーク通信装置の検査方法。
【0113】
(付記10)前記検査処理工程は、前記ID情報レジスタおよびデータレジスタの対が複数存在する場合に、実際のCAN通信で使用されるID情報レジスタおよびデータレジスタの対を検査対象とすることを特徴とする付記3〜8のいずれか一つに記載のネットワーク通信装置の検査方法。
【0114】
(付記11)前記検査処理工程により前記ID情報レジスタおよびデータレジスタの対のうち少なくとも一の正常な対があると判定された場合には、該正常なID情報レジスタおよびデータレジスタの対を用いたCAN通信により前記検査処理工程による検査結果を送信する検査結果送信工程をさらに含んだこと特徴とする付記9または10に記載のネットワーク通信装置の検査方法。
【0115】
(付記12)前記検査処理工程は、前記検査処理をおこなう複数のパターンを含んだメッセージを実際のCAN通信により順次受信するとともに、該受信した各パターンを用いて前記検査処理をおこなうことを特徴とする付記1〜11のいずれか一つに記載のネットワーク通信装置の検査方法。
【0116】
【発明の効果】
以上説明したように、請求項1の発明によれば、ネットワーク通信装置は、ID情報レジスタに対して所定のパターンを書き込むとともに、書き込んだパターンの読み出しをおこない、書き込んだパターンと読み出したパターンとを比較し、書き込みパターンと読み出しパターンとが一致するか否かを検査することで、ビット固着の検査をおこなうように構成されるので、ビット固着の検査を効率よく実行可能なネットワーク通信装置が得られるという効果を奏する。
【0117】
また、請求項2の発明によれば、ネットワーク通信装置は、検査処理の開始を指示するメッセージを受信した場合に、検査状態に移行し、ID情報レジスタでのビット固着の検査を開始するので、ビット固着の検査を効率よく実行可能で、かつCAN通信を介してビット固着の検査を開始可能なネットワーク通信装置が得られるという効果を奏する。
【0118】
また、請求項3の発明によれば、ネットワーク通信装置は、ID情報レジスタに加え、データレジスタに対してもビット固着の有無を検査するので、ID情報レジスタとデータレジスタのビット固着を効率よく実行可能なネットワーク通信装置が得られるという効果を奏する。
【0119】
また、請求項4の発明によれば、ネットワーク通信装置は、値「0」が連続したパターン、値「1」が連続したパターン、値「01」が連続したパターン、または値「10」が連続したパターンを使用してIDレジスタおよびデータレジスタのビット固着の検査をおこなうので、検査にかかる処理工数を減少し、ビット固着の検査を効率よく実行可能なネットワーク通信装置が得られるという効果を奏する。
【0120】
また、請求項5の発明によれば、ネットワーク通信装置は、実際のCAN通信をおこなう際に使用されるID情報のパターンを使用してIDレジスタおよびデータレジスタのビット固着の検査をおこなうので、ビット固着の検査を効率よく実行し、実際のCAN通信に使用するID情報で確実に動作するネットワーク通信装置が得られるという効果を奏する。
【0121】
また、請求項6の発明によれば、ネットワーク通信装置は、特定のパターンについて読み出しパターンと書き込みパターンが一致しない場合に、そのパターンについての検査処理を繰り返し、ある回数以上連続して一致しない場合にレジスタ異常と判定するので、ビット固着の検査を効率よく実行可能で、かつ誤判定を防止可能なネットワーク通信装置が得られるという効果を奏する。
【0122】
また、請求項7の発明によれば、ネットワーク通信装置は、データレジスタを形成する全てのビットについて書き込みがおこなわれるパターンを使用してビット固着の検出をおこなうので、レジスタに含まれる全ビットについてビット固着の検査を効率よく実行可能なネットワーク通信装置が得られるという効果を奏する。
【0123】
また、請求項8の発明によれば、ネットワーク通信装置は、データビットを形成する複数のビットのうち、実際にCAN通信で使用されるビットに対して書き込みが行われるパターンを使用してビット固着の検査をおこなうので、ビット固着の検査における処理をさらに軽減したネットワーク通信装置が得られるという効果を奏する。
【0124】
また、請求項9の発明によれば、ネットワーク通信装置は、複数のID情報レジスタおよびデータレジスタの対がある場合に、全てのIDレジスタとデータレジスタに対してビット固着の検査をおこなうので、全てのレジスタについてビット固着の検査を効率よく実行可能なネットワーク通信装置が得られるという効果を奏する。
【0125】
また、請求項10の発明によれば、ネットワーク通信装置は、複数のID情報レジスタおよびデータレジスタの対が存在する場合に、実際にCAN通信で使用されるID情報レジスタおよびデータレジスタに対してビット固着の検査をおこなうので、使用するレジスタについてビット固着の検査し、かつ検査に必要な処理を軽減し、効率よく検査を実行可能なネットワーク通信装置が得られるという効果を奏する。
【0126】
また、請求項11の発明によれば、ネットワーク通信装置は、複数のID情報レジスタとデータレジスタがあり、少なくとも一つの正常なIDレジスタとデータレジスタとの対が存在する場合に、この正常なIDレジスタとデータレジスタと使用して、CAN通信によってビット固着の検査結果を送信するので、ビット固着の検査を効率よく実行し、検査結果をCAN通信で送信可能なネットワーク通信装置が得られるという効果を奏する。
【0127】
また、請求項12の発明によれば、ネットワーク通信装置は、CAN通信によってビット固着検査用のパターンを受信し、受信したパターンによってビット固着の検査をおこなうので、CAN通信を経由したパターンによってビット固着の検査を実行可能なネットワーク通信装置が得られるという効果を奏する。
【図面の簡単な説明】
【図1】本実施の形態にかかる車載コンピュータの概要構成を説明する説明図である。
【図2】通信モジュールにおけるレジスタ検査の動作処理を説明するフローチャートである。
【図3】メッセージ記憶部の内部について説明する説明図である。
【図4】CANを介して検査結果を出力する通信モジュールの処理動作を示すフローチャートである。
【図5】誤判定防止機能を設けた通信モジュールの処理動作を示すフローチャートである。
【図6】実施の形態2にかかる車載コンピュータおよび検査装置を説明する説明図である。
【図7】実施の形態2にかかる車載コンピュータの検査方法を説明するフローチャートである。
【図8】CANネットワークを説明する説明図である。
【図9】従来のCAN通信モジュールにおけるメールボックスを説明する説明図である。
【符号の説明】
1,41 車載コンピュータ
2 入出力処理部
3 エンジン制御モジュール
4,42 通信モジュール
5 CAN
6 検査装置
11 動作切替部
12 通信処理部
13,43 検査処理部
14,44,54 検査手順記憶部
15,45 検査手順データ
16,56 メッセージ記憶部
16a 検査範囲
17,52 ネットワーク接続部
21〜24,31,32,61,62 メールボックス
51 検査装置
53 検査実行部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a network communication apparatus for transmitting and receiving, by CAN communication, a message including data stored in a data register and ID information defining a type of the data stored in an ID information register, and more particularly, to a method for fixing bits of a register used for CAN communication. The present invention relates to a testable network communication device.
[0002]
[Prior art]
In recent years, with the development of electronic devices, the use of electronic devices has become increasingly diverse. For example, in automobiles, electronic devices are used for electric systems such as lights, engine ignition control, gear box control, anti-lock braking systems, and the like. Conventionally, these electronic devices have been used independently. However, as the number of mounted electronic devices increases, the number of wirings increases, sensors overlap, and the like. In order to obtain higher performance, it is necessary to integrate and control these electronic devices.
[0003]
In order to realize integration of electronic device control, a communication network for performing data communication between electronic devices is required. Electronic devices mounted on automobiles are often used in electrically poor environments such as high temperatures and high vibrations.In addition, each electronic device is manufactured independently and mounted as needed, so the network configuration Are diverse. Therefore, this communication network is required to withstand a poor electrical environment and to have high flexibility.
[0004]
As a network system satisfying this requirement, CAN (Controller Area Network) has been developed. CAN is a serial bus system to which electronic devices are connected, and standards are defined by the International Organization for Standardization. In this CAN, an error detection technique has been studied in order to ensure high reliability (for example, see Patent Document 1).
[0005]
In addition, in order to ensure the flexibility of the network configuration, the CAN adds ID information indicating the content of the message, and determines the destination of the message based on the ID information. That is, the content of the message is defined by the ID information and transmitted to all the electronic devices simultaneously, and each electronic device determines whether to receive the message based on the ID information. Hereinafter, the operation of simultaneously transmitting a message to a plurality of electronic devices connected to the CAN is referred to as multicast.
[0006]
This CAN communication method will be described with reference to FIG. In FIG. 8, in-
[0007]
The
[0008]
As described above, the message transmitted by the
[0009]
For example, the in-
[0010]
In this way, the content of the message is defined by the ID information and multicast, and each communication module determines whether or not to receive the message based on the ID information, so that the transmission and reception of the message can be performed without specifying the destination. Can do it. Eliminating the need to specify the destination eliminates the need to modify the hardware and software of each in-vehicle computer even when the network configuration is changed, and allows flexible addition and deletion of in-vehicle computers to and from the network. Network has been realized.
[0011]
Each communication module connected to the CAN 105 uses an ID information register for reading and writing ID information and a data register for reading and writing data when transmitting and receiving messages. For example, the
[0012]
This mailbox generally uses an ID information register assigned to each piece of ID information to be used. For example, the mailbox 121 is used to read / write a message whose ID information is “000000000000”, and the mailbox 122 is used to read / write a message whose ID information is “000000000001”.
[0013]
In addition, a mailbox for inspection may be prepared separately from a mailbox for control used for normal network communication. In FIG. 9, mailboxes 121 to 125 are control mailboxes, and
[0014]
In CAN communication, since the transmission destination of a message is determined by ID information, a flexible configuration is possible. However, at the time of shipment of each vehicle-mounted computer, it is unclear what configuration will be used. Therefore, inspection ID information for inspection before shipment of each in-vehicle computer is set, and communication is performed using the inspection ID information, thereby inspecting the CAN communication function before shipment. Specifically, the transmission / reception of the message having the inspection ID information, that is, the inspection message, is actually performed. If the transmission / reception of the inspection message is normally performed, the communication function of the product operates normally. Was determined to be.
[0015]
[Patent Document 1]
JP 2001-339412 A (Pages 6-8, FIG. 6)
[0016]
[Problems to be solved by the invention]
However, in this conventional network communication device for CAN, since the communication function is confirmed by transmitting and receiving the inspection message, it is strictly and inexpensively determined whether the transmission and reception of the control message can be performed normally. There was a problem that it was not possible.
[0017]
Specifically, “0010000000000” is used as the ID information for inspection, and when communication using the ID information for inspection is normally performed, it is conventionally determined that the communication function is normal. If there is a bit fixation in which a specific bit always outputs the same value in a register for storing ID information used sometimes, an abnormality in this register may be overlooked. For example, if bit sticking occurs in the third bit in the register assigned to ID “000000000111”, “00100000111” will be output during the transmission operation of the control message whose ID information is “000000000111”.
[0018]
As described above, even if the transmission and reception of the message using the test ID information can be normally performed, the communication using the register not assigned to the test ID information, that is, the register used for normal communication control, is performed. Anomalies could occur. In other words, in the test using the test ID information, the propriety of communication itself could be checked, but the operation of the ID information register used for actual communication could not be checked.
[0019]
In the CAN communication, the content of the message is defined and the destination of the message is determined based on the ID information. Therefore, if the ID information is erroneously transmitted, erroneous data will be multicast, which significantly impairs the reliability of the network. It will be. In addition, in order to perform an inspection using a message used for control, it is necessary to connect an electronic device that is a communication partner and to perform an inspection on a control message to be used, which greatly increases the required cost.
[0020]
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problem of the related art, and has as its object to provide a network communication device capable of inspecting, at a low cost, bit fixation of a register used for transmitting and receiving a control message. I do.
[0021]
[Means for Solving the Problems]
In order to solve the above-mentioned problems and achieve the object, a network communication device according to the present invention is characterized in that a message comprising data stored in a data register and ID information defining a type of the data stored in an ID information register. A network communication device for transmitting and receiving the CAN communication by CAN communication, wherein an inspection state transition unit that transitions to an inspection state, and when the inspection state transition unit transitions to the inspection state, a predetermined pattern is written to the ID information register. Inspection processing means for inspecting whether a read pattern obtained by reading the written pattern from the ID information register matches a write pattern;
It is characterized by having.
[0022]
According to the first aspect of the present invention, the network communication device writes a predetermined pattern in the ID information register, reads the written pattern, compares the written pattern with the read pattern, By checking whether or not the read pattern matches the read pattern, it is configured to perform the check of the bit fixation.
[0023]
Also, in the network communication apparatus according to a second aspect of the present invention, in the first aspect of the present invention, the inspection state transition unit transitions to the inspection state when receiving a message instructing start of the inspection processing. It is characterized by.
[0024]
According to the second aspect of the present invention, when the network communication device receives the message instructing the start of the inspection process, the network communication device shifts to the inspection state and starts the inspection of the ID information register for the bit fixation.
[0025]
Further, in the network communication apparatus according to a third aspect of the present invention, in the first or second aspect of the invention, the inspection processing means further writes a predetermined pattern into the data register, and writes the written pattern into the data register. It is characterized in that it is checked whether or not the read pattern read from the register matches the write pattern.
[0026]
According to the third aspect of the present invention, the network communication device checks the presence / absence of bit fixation in the data register in addition to the ID information register.
[0027]
Also, in the network communication apparatus according to the invention of claim 4, in the invention of
[0028]
According to the fourth aspect of the present invention, the network communication device has a pattern in which the value "0" is continuous, a pattern in which the value "1" is continuous, a pattern in which the value "01" is continuous, or a value in which the value "10" is continuous. The pattern is checked for bit sticking in the ID register and the data register.
[0029]
In the network communication apparatus according to a fifth aspect of the present invention, in the first to fourth aspects, the predetermined pattern includes a pattern of ID information used when actual CAN communication is performed. And
[0030]
According to the fifth aspect of the present invention, the network communication apparatus checks the bit fixation of the ID register and the data register by using the pattern of the ID information used when the actual CAN communication is performed.
[0031]
Further, in the network communication apparatus according to a sixth aspect of the present invention, in the invention of the first to fifth aspects, the inspection processing means determines that the read pattern and the write pattern for the specific pattern do not match. Inspection processing for a specific pattern is repeated a plurality of times, and when it is determined that the patterns do not match continuously for a certain number of times or more, a register abnormality is determined.
[0032]
According to the sixth aspect of the present invention, the network communication device repeats the inspection processing for the specific pattern when the read pattern and the write pattern do not match, and registers the pattern when the read pattern and the write pattern do not match continuously for a certain number of times. Judge as abnormal.
[0033]
Also, in the network communication apparatus according to the invention of claim 7, in the invention of
[0034]
According to the seventh aspect of the present invention, the network communication device detects the stuck bits using a pattern in which writing is performed for all bits forming the data register.
[0035]
Further, in the network communication apparatus according to the invention of claim 8, in the invention of
[0036]
According to the eighth aspect of the present invention, the network communication apparatus uses a pattern in which writing is performed on bits actually used in CAN communication among a plurality of bits forming data bits, to fix bit fixation. Perform an inspection.
[0037]
According to a ninth aspect of the present invention, in the network communication device according to the third to eighth aspects, when the plurality of pairs of the ID information register and the data register exist, all of the ID information registers And all data registers are to be inspected.
[0038]
According to the ninth aspect of the present invention, when there are a plurality of pairs of the ID information register and the data register, the network communication device checks all the ID registers and the data registers for bit sticking.
[0039]
According to a tenth aspect of the present invention, in the network communication device according to the third to eighth aspects, when the plurality of pairs of the ID information register and the data register exist, the inspection processing means performs actual CAN communication. A pair of an ID information register and a data register to be used is to be inspected.
[0040]
According to the tenth aspect of the present invention, when a plurality of pairs of ID information registers and data registers exist, the network communication device fixes bits to the ID information registers and data registers actually used in CAN communication. Inspection of
[0041]
In the network communication device according to the eleventh aspect of the present invention, in the ninth or tenth aspect, the inspection processing unit determines that there is at least one normal pair among the pair of the ID information register and the data register. In this case, a test result transmitting means for transmitting the test result by the test processing means by CAN communication using the pair of the normal ID information register and the data register is further provided.
[0042]
According to the eleventh aspect of the present invention, when the network communication device has a plurality of ID information registers and data registers, and at least one normal ID register and data register pair exists, the normal ID register And a data register, and transmits a bit fixation inspection result by CAN communication.
[0043]
In a twelfth aspect of the present invention, in the network communication device according to the first to eleventh aspects, the inspection processing means sequentially receives a message including a plurality of patterns for performing the inspection processing by actual CAN communication. In addition, the inspection process is performed using the received patterns.
[0044]
According to the twelfth aspect of the present invention, the network communication apparatus receives the bit sticking inspection pattern by the CAN communication, and checks the bit sticking based on the received pattern.
[0045]
BEST MODE FOR CARRYING OUT THE INVENTION
An on-board computer as a preferred embodiment of a network communication device according to the present invention will be described below with reference to the accompanying drawings. In the first embodiment, a network communication device that executes a register check by a vehicle-mounted computer alone will be described. In the second embodiment, a network communication device that executes a register check via a CAN will be described.
[0046]
(Embodiment 1)
First, a schematic configuration of the on-vehicle computer according to the present embodiment will be described. FIG. 1 is an explanatory diagram illustrating a schematic configuration of the on-vehicle computer according to the present embodiment. In FIG. 1, the in-vehicle computer 1 is connected to an
[0047]
The input /
[0048]
The communication module 4 includes an operation switching unit 11, a
[0049]
The operation switching unit 11 switches the access right to the
[0050]
The
[0051]
The
[0052]
The inspection of the register by the
[0053]
Reading and writing are performed on the dominant continuous pattern and the recessive continuous pattern, respectively, and when reading and writing are normally performed, each register can output the dominant and the recessive.
[0054]
Further, as the predetermined pattern, a pattern in which “0101...” And dominant and recessive alternately continue, and a pattern in which “1010...” And recessive and dominant alternate alternately may be used. When reading and writing can be normally executed for each of the dominant-recessive pattern and the recessive-dominant pattern, each register can output a dominant and a recessive pattern.
[0055]
Note that an abnormality may occur in which one register is affected by another register such as an adjacent register, and always outputs the same value as the other register or the opposite value of the other register. When detecting such an abnormality, it is desirable to execute reading and writing for each of the dominant continuous pattern, the recessive continuous pattern, the dominant-recessive continuous pattern, and the recessive-dominant continuous pattern.
[0056]
Information on the contents of the test, such as which pattern to use as a pattern to read from and write to this register, and in what order, are described in the test procedure data 15. Further, a plurality of inspection procedures may be stored in the inspection procedure data so that the inspection content can be selected as necessary, such as the time available for the inspection and the importance of the inspection object. It may be rewritable.
[0057]
Next, with reference to FIG. 2, an operation process of the register check in the communication module 4 will be described. FIG. 2 is a flowchart illustrating an operation process of the register check in the communication module 4. In FIG. 2, the communication module 4 first receives a test start message instructing a test start from the CAN 5 (step S101). Next, the operation switching unit 11 switches the access right to the
[0058]
Subsequently, the
[0059]
If the data cannot be read normally (No at Step S105), the
[0060]
If the data could not be read normally (No at Step S107), the
[0061]
If the data could not be read normally (No at Step S109), the
[0062]
If the data could not be read normally (No at Step S111), the
[0063]
If there is a mailbox that has not been checked (No at Step S112), the
[0064]
Here, referring to FIG. 3, the range of the register in which the
[0065]
That is, no ID information is assigned to the mailbox 24, and the
[0066]
Although the ID information of the message is defined as 11 bits, the number of bits in the data portion of the message is variable. Therefore, the ID information registers 21a, 22a, and 23a need to read and write the test pattern for all the bits, but the data registers 21b, 22b, and 23b do not read and write the bits used by the
[0067]
In FIG. 3, the inspection for the unused mailbox and the unused register bit is omitted, so that the
[0068]
Next, the output of the inspection result by the
[0069]
FIG. 4 shows the processing operation of the communication module 4 when notifying the inspection result via the
[0070]
Next, the written pattern is read, and it is determined whether or not the pattern was successfully read (step S205). If the pattern was successfully read (Yes in step S205), the recessive continuous pattern is stored in the mailbox to be inspected. Write (step S206). Further, the written pattern is read, and it is determined whether or not the pattern was successfully read (step S207).
[0071]
If the recessive continuous pattern can be read normally (step S207, Yes), a dominant-recessive pattern is written to the mailbox to be checked (step S208), and it is confirmed whether the written pattern can be read normally (step S208). S209). If the dominant-recessive pattern can be read normally (step S209, Yes), the recessive-dominant pattern is written into the mailbox to be checked (step S210), and the written pattern can be read and read normally. It is determined whether or not it is (step S211).
[0072]
If the dominant-recessive pattern has been read normally (step S211, Yes), it is determined whether the inspection has been completed for all mailboxes (step S212). If there is a mailbox for which inspection has not been completed (No in step S212), the next mailbox is designated as an inspection target (step S215), and the process proceeds to step S204, where inspection has been completed for all mailboxes. If so, the fact that there is no abnormality in the mailbox is transmitted via the CAN 5 (step S213).
[0073]
On the other hand, when the written pattern cannot be read normally (step S205, No, step S207, No, step S209, No, step S211, No), the inspection processing unit determines whether there is a normal mailbox. A determination is made (step S217). If there is a normal mailbox (step S217, Yes), the
[0074]
After outputting the inspection result to the CAN 5 (steps S213 and S218) or outputting the inspection result by a predetermined notifying means (step S16), the communication operation switching unit 11 switches from the inspection mode to the communication mode. (Step S214), the process ends.
[0075]
Next, a method of checking a register will be further described. The
[0076]
FIG. 5 shows a processing operation of the communication module 4 when the erroneous determination prevention function is provided. In FIG. 5, the communication module 4 receives the inspection start message from the CAN 5 (step S301), switches to the inspection mode (step S302), and designates the first mailbox as an inspection target (step S303).
[0077]
Thereafter, the dominant continuous pattern is written (step S305), and it is determined whether the pattern can be normally read (step S305). Here, when the data cannot be read normally (No at Step S305), the
[0078]
On the other hand, if the dominant continuous pattern can be read normally (step S305, Yes), the
[0079]
On the other hand, when the recessive continuous pattern can be read normally (step S307, Yes), the
[0080]
On the other hand, when the dominant-recessive pattern can be read normally (step S309, Yes), the
[0081]
On the other hand, when the recessive-dominant pattern has been read normally (step S311, Yes), the
[0082]
Further, when reading of any one of the patterns has failed consecutively a predetermined number of times (Step S321, Yes, Step S322, Yes, Step S323, Yes, Step S324, Yes), the
[0083]
As described above, in the first embodiment, the control message is transmitted and received by switching the access right to the
[0084]
Also, by using a dominant continuous pattern, a recessive continuous pattern, a dominant-recessive pattern, and a recessive-dominant pattern as a pattern used for inspection, it is possible to confirm that no bit sticking has occurred in a register of a mailbox, It can be confirmed that the value of each register does not depend on the adjacent register.
[0085]
Further, the inspection is efficiently performed by selectively inspecting the mailboxes to which the ID information is assigned, and selectively inspecting a range expected to be used in the data register of each mailbox. be able to.
[0086]
Further, when an abnormal mailbox is detected in a state where at least one normal mailbox is present as a result of the mailbox inspection, the CAN communication is performed by transmitting the inspection result to the CAN using the normal mailbox. Inspection results can be transmitted and received via the PC.
[0087]
Furthermore, when data cannot be read normally during mailbox inspection, a predetermined pattern of reading / writing to the mailbox is recursively executed. By determining that there is, erroneous determination can be prevented.
[0088]
(Embodiment 2)
In the first embodiment, the network communication device that executes the register check by the vehicle-mounted computer alone has been described. In the second embodiment, the network communication device that executes the register check through the CAN will be described.
[0089]
In the second embodiment, the in-vehicle computer and the inspection apparatus respectively store the same inspection procedure data, transmit an inspection message in accordance with the inspection procedure data, and check the received message content for the inspection procedure data. I refer to it. FIG. 6 is a schematic configuration diagram illustrating a schematic configuration of the in-
[0090]
6, the
[0091]
FIG. 7 shows an operation process in the inspection of the in-
[0092]
On the other hand, after transmitting the test start message (step S401), the
[0093]
The
[0094]
On the other hand, when the read inspection message is the same as the content stored in the inspection procedure data (step S505, Yes), the
[0095]
On the other hand, the
[0096]
As described above, in the in-
[0097]
Here, as the message to be transmitted and received, ID information defined in the communication mode may be used, or a predetermined pattern such as a dominant continuous pattern may be used.
[0098]
In the first and second embodiments, the mode is shifted to the inspection mode when the inspection start message is received via the
[0099]
Further, the contents of the data read / written to / from the register as the inspection processing are not limited to the patterns shown in the first and second embodiments and the ID information defined in the communication mode, but may be arbitrary patterns or IDs. What is necessary is just to determine by information and its combination.
[0100]
Further, in the first and second embodiments, when any one of the plurality of mailboxes has an abnormality, "abnormal" is output and the inspection is terminated. With this configuration, it is possible to prevent further inspection of the network communication device having an abnormality in the mailbox and to improve the inspection efficiency, but the use of the present invention is limited to this configuration. It is not done. For example, the configuration may be such that the inspection is performed on all the mailboxes regardless of the inspection result of each mailbox, and the inspection result is output for each mailbox.
[0101]
In the first and second embodiments, the in-vehicle computer having the engine control module has been described. However, the use of the present invention is not limited to the case where the engine control module is used. It is needless to say that the present invention can be widely applied to an in-vehicle computer that performs the following.
[0102]
Further, CAN is used not only for on-board computers but also for networks of medical equipment and industrial machines, but the present invention can be applied to communication modules mounted on these medical equipment and industrial machines. It is possible.
[0103]
Further, the present invention does not depend on the CAN protocol. Therefore, the present invention can be widely applied to a network communication apparatus for defining a message content by the ID information and constructing a network for determining a destination of the message by the ID information.
[0104]
(Supplementary Note 1) A method for inspecting a network communication device for transmitting and receiving, by CAN communication, a message including data stored in a data register and ID information defining a type of the data stored in an ID information register by CAN communication,
Inspection state transition process,
When a transition is made to the inspection state by the inspection state transition step, a predetermined pattern is written to the ID information register, and a read pattern obtained by reading the written pattern from the ID information register matches a write pattern. Inspection processing process to inspect whether or not
A method for inspecting a network communication device, comprising:
[0105]
(Supplementary note 2) The inspection method of the network communication device according to supplementary note 1, wherein the inspection state transition step transitions to the inspection state when a message instructing start of the inspection processing is received.
[0106]
(Supplementary Note 3) In the inspection processing step, a predetermined pattern is further written to the data register, and whether the read pattern read from the data register matches the write pattern is checked. 3. The method for testing a network communication device according to
[0107]
(Supplementary Note 4) The predetermined pattern includes a pattern in which values “0” are continuous, a pattern in which values “1” are continuous, a pattern in which values “01” are continuous, or a pattern in which values “10” are continuous. The inspection method for a network communication device according to any one of
[0108]
(Supplementary note 5) The inspection of the network communication device according to any one of Supplementary notes 1 to 4, wherein the predetermined pattern includes a pattern of ID information used in performing actual CAN communication. Method.
[0109]
(Supplementary Note 6) In the inspection processing step, when it is determined that the read pattern and the write pattern of the specific pattern do not match, the inspection processing of the specific pattern is repeated a plurality of times, and the inspection processing is repeated a certain number of times or more. 6. The inspection method for a network communication device according to any one of supplementary notes 1 to 5, wherein it is determined that the register is abnormal when it is determined not to be performed.
[0110]
(Supplementary Note 7) The inspection process according to any one of
[0111]
(Supplementary Note 8) The inspection processing step is characterized in that the inspection processing is performed using a pattern in which bits used in actual CAN communication among all bits forming the data register are to be inspected. The inspection method of a network communication device according to any one of 3 to 7.
[0112]
(Supplementary Note 9) In the inspection processing step, when a plurality of pairs of the ID information register and the data register exist, all the ID information registers and all the data registers are to be inspected. The inspection method of a network communication device according to any one of the above.
[0113]
(Supplementary Note 10) In the inspection processing step, when a plurality of pairs of the ID information register and the data register exist, the pair of the ID information register and the data register used in the actual CAN communication is set as an inspection target. The inspection method for a network communication device according to any one of
[0114]
(Supplementary Note 11) When it is determined in the inspection processing step that there is at least one normal pair of the ID information register and data register pair, the normal ID information register and data register pair is used. The inspection method for a network communication device according to claim 9 or 10, further comprising an inspection result transmitting step of transmitting an inspection result of the inspection processing step by CAN communication.
[0115]
(Supplementary Note 12) In the inspection processing step, a message including a plurality of patterns for performing the inspection processing is sequentially received by actual CAN communication, and the inspection processing is performed using each of the received patterns. 12. The method for testing a network communication device according to any one of supplementary notes 1 to 11, wherein
[0116]
【The invention's effect】
As described above, according to the first aspect of the present invention, the network communication device writes a predetermined pattern in the ID information register, reads the written pattern, and compares the written pattern with the read pattern. By comparing and checking whether or not the write pattern and the read pattern match, it is configured to perform the check of the bit fixation, so that a network communication device that can efficiently execute the check of the bit fixation is obtained. This has the effect.
[0117]
According to the invention of
[0118]
According to the third aspect of the present invention, the network communication apparatus checks whether or not the data register has a bit stuck in addition to the ID information register, so that the bit stuck between the ID information register and the data register is efficiently executed. There is an effect that a possible network communication device is obtained.
[0119]
Further, according to the invention of claim 4, the network communication device is configured such that the pattern in which the value "0" is continuous, the pattern in which the value "1" is continuous, the pattern in which the value "01" is continuous, or the value "10" is continuous Since the check of the bit fixation of the ID register and the data register is performed by using the pattern, it is possible to reduce the number of processing steps required for the check and obtain a network communication device capable of efficiently executing the check of the bit fixation.
[0120]
According to the fifth aspect of the present invention, the network communication device performs the check of the bit fixation of the ID register and the data register by using the pattern of the ID information used in performing the actual CAN communication. It is possible to obtain a network communication device that can efficiently perform the inspection of the sticking and that operates reliably with the ID information used for the actual CAN communication.
[0121]
Further, according to the invention of
[0122]
According to the seventh aspect of the present invention, the network communication device detects the stuck bits using the pattern in which the writing is performed for all the bits forming the data register. There is an effect that a network communication device capable of efficiently performing the inspection of the adhesion can be obtained.
[0123]
Further, according to the invention of claim 8, the network communication device performs bit fixation using a pattern in which writing is performed on bits actually used in CAN communication among a plurality of bits forming data bits. Is performed, it is possible to obtain an effect that a network communication apparatus with further reduced processing in the inspection of bit fixation can be obtained.
[0124]
According to the ninth aspect of the present invention, when there are a plurality of pairs of ID information registers and data registers, the network communication apparatus performs a check for bit sticking on all ID registers and data registers. This makes it possible to obtain a network communication device capable of efficiently executing the bit stuck inspection for the register (1).
[0125]
Further, according to the tenth aspect of the present invention, when a plurality of pairs of ID information registers and data registers exist, the network communication apparatus sets bits for the ID information registers and data registers actually used in CAN communication. Since the fixation check is performed, it is possible to obtain a network communication apparatus that can check the bit fixation of a register to be used, reduce the processing required for the check, and efficiently execute the check.
[0126]
According to the invention of claim 11, the network communication device has a plurality of ID information registers and data registers, and when at least one pair of a normal ID register and a data register exists, the normal ID Since the check result of the bit fixation is transmitted by the CAN communication using the register and the data register, the effect that the check of the bit fixation is efficiently executed and the network communication device capable of transmitting the check result by the CAN communication is obtained. Play.
[0127]
According to the twelfth aspect of the present invention, the network communication device receives the bit fixation inspection pattern by CAN communication and checks the bit fixation by the received pattern. There is an effect that a network communication device capable of executing the inspection of the above is obtained.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram illustrating a schematic configuration of a vehicle-mounted computer according to an embodiment;
FIG. 2 is a flowchart illustrating an operation process of a register check in a communication module.
FIG. 3 is an explanatory diagram illustrating the inside of a message storage unit.
FIG. 4 is a flowchart illustrating a processing operation of a communication module that outputs an inspection result via a CAN.
FIG. 5 is a flowchart illustrating a processing operation of a communication module provided with an erroneous determination prevention function.
FIG. 6 is an explanatory diagram illustrating an in-vehicle computer and an inspection device according to a second embodiment;
FIG. 7 is a flowchart illustrating an inspection method for an in-vehicle computer according to the second embodiment;
FIG. 8 is an explanatory diagram illustrating a CAN network.
FIG. 9 is an explanatory diagram illustrating a mailbox in a conventional CAN communication module.
[Explanation of symbols]
1,41 In-vehicle computer
2 Input / output processing unit
3 Engine control module
4,42 Communication module
5 CAN
6 Inspection equipment
11 Operation switching unit
12 Communication processing unit
13,43 Inspection processing unit
14,44,54 Inspection procedure storage
15,45 Inspection procedure data
16,56 message storage
16a Inspection range
17,52 Network connection unit
21-24, 31, 32, 61, 62 Mailbox
51 Inspection device
53 Inspection execution unit
Claims (12)
検査状態に移行する検査状態移行手段と、
前記検査状態移行手段により検査状態に移行した場合に、前記ID情報レジスタに所定のパターンを書き込むとともに、該書き込んだパターンを前記ID情報レジスタから読み出した読み出しパターンが書き込みパターンと一致するか否かを検査する検査処理手段と
を備えたことを特徴とするネットワーク通信装置。A network communication device for transmitting and receiving, by CAN communication, a message including ID stored in a data register and ID information defining a type of the data stored in an ID information register,
Inspection state transition means for transitioning to an inspection state;
When a transition is made to the inspection state by the inspection state transition means, a predetermined pattern is written to the ID information register, and whether or not a read pattern obtained by reading the written pattern from the ID information register matches a write pattern is determined. A network communication device comprising: an inspection processing unit for performing an inspection.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002318028A JP2004153650A (en) | 2002-10-31 | 2002-10-31 | Network communication device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002318028A JP2004153650A (en) | 2002-10-31 | 2002-10-31 | Network communication device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2004153650A true JP2004153650A (en) | 2004-05-27 |
Family
ID=32461274
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002318028A Pending JP2004153650A (en) | 2002-10-31 | 2002-10-31 | Network communication device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2004153650A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013055593A (en) * | 2011-09-06 | 2013-03-21 | Denso Corp | Communication device |
-
2002
- 2002-10-31 JP JP2002318028A patent/JP2004153650A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013055593A (en) * | 2011-09-06 | 2013-03-21 | Denso Corp | Communication device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20080148098A1 (en) | Method of preventing erroneous take-over in a dual redundant server system | |
| JP2001518661A (en) | A powerful partitioning method for multiprocessor VME backplane bus | |
| US20110022936A1 (en) | Sending device, receiving device, communication control device, communication system, and communication control method | |
| US7539903B2 (en) | Method for monitoring the execution of a program by comparing a request with a response and introducing a falsification in a response | |
| KR20030075198A (en) | Fault isolation through no-overhead link level crc | |
| JP5034703B2 (en) | CAN error generation method and CAN communication apparatus | |
| US20040162928A1 (en) | High speed multiple ported bus interface reset control system | |
| KR100293950B1 (en) | Apparatus and method for detecting fault using peripheral components interconnect bus monitor | |
| JP2009253464A (en) | Gateway device and gateway method | |
| JP2004153650A (en) | Network communication device | |
| JP2004193664A (en) | Error detecting/correcting system and control apparatus employing the system | |
| US12199792B2 (en) | Inspection apparatus and inspection method | |
| CN103430110B (en) | Programmable logic controller (PLC) | |
| JP2000040040A (en) | Data communication device and storage medium storing program | |
| CN113242976A (en) | Method and apparatus for monitoring reliability of electronic system | |
| JP4603899B2 (en) | Gateway device with communication error detection function and communication system | |
| US12211327B2 (en) | Inspection apparatus and inspection method | |
| JP3127941B2 (en) | Redundant device | |
| KR100930931B1 (en) | FlexRay system for robust failure of FlexRay communication | |
| JP5196537B2 (en) | Interface / connector connection state judging apparatus and method | |
| JPH11338594A (en) | Defective contact detecting circuit | |
| Dimitriadis | A data acquisition and monitoring platform for diesel engines based on the can-bus protocol | |
| CN111367838A (en) | Method and device for detecting data storage system and data storage system | |
| EP4354772A1 (en) | Network device, communication system and method for the network device | |
| Müller et al. | Simulating and Testing In-Vehicle Networks by Hardware-in-the-Loop Simulation |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20051024 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20061101 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20071214 |
|
| A131 | Notification of reasons for refusal |
Effective date: 20071218 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080617 |