JP5131213B2 - Gateway device and diagnosis method thereof - Google Patents
Gateway device and diagnosis method thereof Download PDFInfo
- Publication number
- JP5131213B2 JP5131213B2 JP2009015422A JP2009015422A JP5131213B2 JP 5131213 B2 JP5131213 B2 JP 5131213B2 JP 2009015422 A JP2009015422 A JP 2009015422A JP 2009015422 A JP2009015422 A JP 2009015422A JP 5131213 B2 JP5131213 B2 JP 5131213B2
- Authority
- JP
- Japan
- Prior art keywords
- bus line
- communication data
- gateway device
- analyzer
- converted
- 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.)
- Active
Links
Images
Description
本発明は、通信プロトコルが異なるバスライン間において通信データを中継するゲートウェイ装置及びその診断方法に関する。 The present invention relates to a gateway device that relays communication data between bus lines having different communication protocols and a diagnosis method thereof.
従来より、ゲートウェイ装置に接続された第1及び第2のバスラインにアナライザを接続し、第1のバスラインに接続されたアナライザと第2のバスラインに接続されたアナライザを利用してゲートウェイ装置により変換される前と変換された後の通信データを取得,比較することにより、ゲートウェイ装置の中継機能を診断する診断方法が知られている。 Conventionally, an analyzer is connected to the first and second bus lines connected to the gateway device, and the gateway device using the analyzer connected to the first bus line and the analyzer connected to the second bus line. There is known a diagnostic method for diagnosing the relay function of a gateway device by acquiring and comparing communication data before and after being converted by.
従来のゲートウェイ装置の診断方法によれば、ゲートウェイ装置の中継機能を診断するために少なくとも2つのアナライザを用意する必要性があることから、ゲートウェイ装置の中継機能を安価に診断することができない。 According to the conventional gateway device diagnosis method, since it is necessary to prepare at least two analyzers for diagnosing the relay function of the gateway device, the relay function of the gateway device cannot be diagnosed at low cost.
本発明は上記課題を解決するためになされたものであり、その目的はゲートウェイ装置の中継機能を安価に診断可能なゲートウェイ装置及びその診断方法を提供することにある。 The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a gateway apparatus and a diagnosis method thereof that can diagnose the relay function of the gateway apparatus at low cost.
本発明は、第1のバスラインから入力された通信データを第2のバスラインの通信プロトコルに合わせて変換し、変換された通信データを第2のバスラインに出力し、第1のバスラインにアナライザが接続されている場合、変換された通信データを第1のバスラインに出力し、第2のバスラインにアナライザが接続されている場合、第1のバスラインから入力された通信データを第2のバスラインに出力する。 The present invention converts communication data input from the first bus line according to the communication protocol of the second bus line, outputs the converted communication data to the second bus line, and outputs the first bus line. When the analyzer is connected to the first bus line, the converted communication data is output to the first bus line. When the analyzer is connected to the second bus line, the communication data input from the first bus line is output. Output to the second bus line.
本発明によれば、ゲートウェイ装置により変換される前の通信データと変換された後の通信データを1つのアナライザによって解析できるので、ゲートウェイ装置の中継機能を安価に診断することができる。 According to the present invention, communication data before being converted by the gateway device and communication data after being converted can be analyzed by one analyzer, so that the relay function of the gateway device can be diagnosed at low cost.
以下、図面を参照して、本発明の実施形態となるゲートウェイ装置及びその診断方法について説明する。 Hereinafter, a gateway device and a diagnosis method thereof according to an embodiment of the present invention will be described with reference to the drawings.
〔ゲートウェイ装置の構成〕
始めに、図1乃至図3を参照して、本発明の実施形態となるゲートウェイ装置の構成について説明する。
[Configuration of gateway device]
First, the configuration of the gateway device according to the embodiment of the present invention will be described with reference to FIGS. 1 to 3.
本発明の実施形態となるゲートウェイ装置1は、図1に示すようにバスラインAに接続された装置とバスラインBに接続された装置間における情報通信を中継するものである。バスラインAは、通信プロトコルIDB(ITS Data Bus)-1394によりバスラインAに接続されたノードA1,A2同士が通信できるように、車載高速ネットワークを構成している。ノードA1,A2としては1394 DVDや1394 Display等の情報処理装置を例示できる。バスラインBは、通信プロトコルMCAN(Multimedia CAN)によりバスラインBに接続されたノードB1,B2同士が通信できるように、車載低速ネットワークを構成している。ノードB1,B2としてはIT MasterやAudio H/U(Head Unit)等の情報処理装置を例示することができる。
The
なお本発明は上記ネットワーク構成に限定されることはなく、CAN(Controller Area Network), LIN(Local Interconnect Network), FlexRay(登録商標)等の規格に準じたその他の車載ネットワークや、Ethernet(登録商標), Bluetooth(登録商標)等の一般的な有線/無線ネットワークにも適用することができる。また詳しくは後述するが、本実施形態では、ゲートウェイ装置1の機能を診断するためにバスラインAにアナライザ20が接続されている。また上記車載高速ネットワークは、例えば200kB~1MB/s 程度のデータ転送速度で通信データを伝送するものであり、エンジン,トランスミッション,ブレーキ等を制御するためのデータやデジタルAVデータ等のデータを伝送する。また上記車載低速ネットワークは、例えば50kB/S程度のデータ転送速度で通信データを伝送するものであり、ライト,ワイパー,ドアロック等のボディ制御系の装置を制御するためのデータを伝送する。
The present invention is not limited to the above network configuration, and other in-vehicle networks conforming to standards such as CAN (Controller Area Network), LIN (Local Interconnect Network), FlexRay (registered trademark), Ethernet (registered trademark) ), Bluetooth (registered trademark) and other general wired / wireless networks. As will be described in detail later, in this embodiment, an
ゲートウェイ装置1は、ASICやマイクロコンピュータにより構成され、インタフェイス部2a,インタフェイス部2b,変換部3,及びフィードバック部4として機能する。インタフェイス部2aは、バスラインAから入力された通信データを変換部3とフィードバック部4に出力すると共に、変換部3により変換されたバスラインBから入力された通信データをバスラインAに出力する。インタフェイス部2bは、バスラインBから入力された通信データを変換部3に出力すると共に、変換部3により変換されたバスラインAから入力された通信データをバスラインBに出力する。変換部3は、図3に示すようなバスラインAの通信データとバスラインBの通信データの対応関係を示すテーブルを参照して、バスラインA及びバスラインBから入力された通信データをそれぞれバスラインB及びバスラインAの通信プロトコルに対応した通信データに変換する。
The
フィードバック部4は、図2に示すように、コントロール部11,バッファ部12,データカプセル部13を有する。コントロール部11は、通常モードと診断モードとの間でゲートウェイ装置1の動作モードを切り替える。またコントロール部11は、ゲートウェイ装置1の動作モードが診断モードである際、インタフェイス部2bからバスラインBに出力される通信データを取得し、取得した通信データにタイムスタンプを付与してバッファ部12に記憶する。データカプセル化部13は、通信データに付与されているタイムスタンプを参照してバッファ部12に記憶されている通信データを取得順に読み取り、各通信データをバスラインAの通信プロトコルに対応したパケット(本実施形態ではIDB-1394プロトコルパケット)にカプセル化する。そしてデータカプセル化部13は、インタフェイス部2aを介して各パケットをバスラインAに出力する。
As shown in FIG. 2, the
〔診断処理〕
このような構成を有するゲートウェイ装置1では、フィードバック部4が以下に示す診断処理を実行することにより、バスラインAに接続された1台のアナライザ20だけでゲートウェイ装置1の機能を診断することを可能にする。以下、図4に示すフローチャートを参照して、この診断処理を実行する際のフィードバック部4の動作について説明する。
[Diagnosis processing]
In the
図4に示すフローチャートは、ゲートウェイ装置1の電源がオフ状態からオン状態に切り換えられたタイミングで開始となり、診断処理はステップS1の処理に進む。
The flowchart shown in FIG. 4 starts at the timing when the power of the
ステップS1の処理では、コントロール部11が、インタフェイス部2aがアナライザ信号(例えばアナライザに付与された固有IDを含む信号)を取得したか否かを監視することによりバスラインAにアナライザ20が接続されたか否かを判別する。そしてバスラインAにアナライザ20が接続されたタイミングでコントロール部11は診断処理をステップS2の処理に進める。なおアナライザ20は、バスラインAに接続されると、インタフェイス部2aに入力される通信データをタイムスタンプを付与して順次記憶していくものとする。
In the process of step S1, the control unit 11 monitors whether the
ステップS2の処理では、コントロール部11が、ゲートウェイ装置1の動作モードを通常モードから診断モードに切り替える。これにより、ステップS2の処理は完了し、診断処理はステップS3の処理に進む。
In the process of step S2, the control unit 11 switches the operation mode of the
ステップS3の処理では、コントロール部11が、インタフェイス2bからバスラインBに出力される変換部3により変換された通信データを取得し、取得した通信データにタイムスタンプを付与して図5に示すように取得時間順にバッファ部12に記憶する。これにより、ステップS3の処理は完了し、診断処理はステップS4の処理に進む。
In the process of step S3, the control unit 11 acquires the communication data converted by the
ステップS4の処理では、データカプセル化部13が、ステップS3の処理によってバッファ部12に記憶された通信データを取得時間順に読み取り、図6に示すように各通信データをバスラインAの通信プロトコルに対応したパケットにカプセル化する。図6に示すパケットは、ヘッダ部がバスラインAの通信プロトコルに対応した形式となっており、データ部にバッファ部12内に記憶された通信データが格納されている。これにより、ステップS4の処理は完了し、診断処理はステップS5の処理に進む。
In the process of step S4, the
ステップS5の処理では、データカプセル化部13が、インタフェイス部2aを介してステップS4の処理により生成したパケットを順次バスラインAに出力する。これにより、ステップS5の処理は完了し、診断処理はステップS6の処理に進む。
In the process of step S5, the
ステップS6の処理では、アナライザ20が、ステップS5の処理により出力されたパケットを取得し、カプセル化されている内部の通信データを抽出する。そしてアナライザ20は、タイムスタンプを参照して同時刻の変換前の通信データと抽出された通信データを順に比較することにより、ゲートウェイ装置1の中継機能が正常に動作しているか否かを診断する。これにより、ステップS6の処理は完了し、診断処理はステップS7の処理に進む。
In the process of step S6, the
ステップS7の処理では、コントロール部11が、インタフェイス部2aがアナライザ20の脱着信号を取得したか否かを監視することによりバスラインAからアナライザ20が脱着されたか否かを判別する。そしてアナライザ20が脱着されていない場合、コントロール部11は診断処理をステップS3の処理に戻す。一方、アナライザ20が脱着された場合には、コントロール部11は診断処理をステップS8の処理に進める。
In the process of step S7, the control unit 11 determines whether or not the
ステップS8の処理では、コントロール部11が、ゲートウェイ装置1の動作モードを診断モードから通常モードに切り替える。これにより、ステップS8の処理は完了し、診断処理はステップS1の処理に戻る。
In the process of step S8, the control unit 11 switches the operation mode of the
以上の説明から明らかなように、本発明の実施形態となる診断処理によれば、変換部3が、バスラインAから入力された通信データをバスラインBの通信プロトコルに合わせて変換し、インタフェイス部2bを介して変換された通信データをバスラインBに出力し、フィードバック部4が、変換部4により変換された通信データをバスラインAにフィードバック出力する。そしてこのような構成によれば、ゲートウェイ装置1により変換される前の通信データと変換された後の通信データをバスラインAに接続された1台のアナライザ20によって解析できるので、ゲートウェイ装置1の中継機能を安価に診断することができる。
As is apparent from the above description, according to the diagnostic processing according to the embodiment of the present invention, the
以上、本発明者らによってなされた発明を適用した実施の形態について説明したが、本実施形態による本発明の開示の一部をなす記述及び図面により本発明は限定されることはない。例えば上記実施形態では、フィードバック部4は、変換後のバスラインAの通信データをバスラインAに接続されたアナライザ20にフィードバックさせたが、バスラインBのデータを変換せずにそのままバスラインAに接続されたアナライザ20に供給することにより、アナライザ20が、変換部3により変換されたバスラインB上のデータとフィードバック部4によりそのまま供給されたバスラインBのデータとを比較することにより、ゲートウェイ装置1の中継機能を診断するようにしてもよい。また本実施形態では、バスラインBよりも高速のバスラインAにアナライザ20を接続したが、低速バスラインの帯域容量の範囲内で診断処理を行えばバスラインBにアナライザ20を接続するようにしてもよい。このように本実施形態に基づいて当業者等によりなされる他の実施の形態、実施例及び運用技術等は全て本発明の範疇に含まれる。
The embodiment to which the invention made by the present inventors is applied has been described above, but the present invention is not limited by the description and the drawings that constitute a part of the disclosure of the present invention. For example, in the above embodiment, the
1:ゲートウェイ装置
2a,2b:インタフェイス部
3:変換部
4:フィードバック部
11:コントロール部
12:バッファ部
13:データカプセル化部
1:
Claims (4)
前記第1のバスラインから入力された通信データを前記第2のバスラインの通信プロトコルに合わせて変換し、変換された通信データを第2のバスラインに出力する変換部と、
前記第1のバスラインにアナライザが接続されている場合、前記変換部により変換された通信データを第1のバスラインに出力し、前記第2のバスラインにアナライザが接続されている場合、前記変換部により変換される前の通信データを第2のバスラインに出力するフィードバック部と
を有することを特徴とするゲートウェイ装置。 A gateway device that relays communication data transmitted from a first bus line toward a second bus line,
A converter that converts communication data input from the first bus line in accordance with a communication protocol of the second bus line, and outputs the converted communication data to the second bus line;
When an analyzer is connected to the first bus line, communication data converted by the converter is output to the first bus line, and when an analyzer is connected to the second bus line, And a feedback unit that outputs communication data before being converted by the conversion unit to the second bus line.
前記フィードバック部は、前記通信データを中継する通常モードと前記第1又は第2のバスラインに接続されたアナライザを利用してゲートウェイ装置の中継機能を診断する診断モードとの間で動作モードを切り替え、動作モードが診断モードである際に作動することを特徴とするゲートウェイ装置。 The gateway device according to claim 1,
The feedback unit switches an operation mode between a normal mode for relaying the communication data and a diagnosis mode for diagnosing a relay function of the gateway device using an analyzer connected to the first or second bus line. A gateway device that operates when the operation mode is a diagnostic mode.
前記フィードバック部は、前記第1又は第2のバスラインにアナライザが接続されたか否かを監視し、第1又は第2のバスラインにアナライザが接続されたタイミングで動作モードを通常モードから診断モードに切り替えることを特徴とするゲートウェイ装置。 The gateway device according to claim 2,
The feedback unit monitors whether the analyzer is connected to the first or second bus line, and changes the operation mode from the normal mode to the diagnostic mode at the timing when the analyzer is connected to the first or second bus line. The gateway device characterized by switching to.
前記第1のバスラインから入力された通信データを前記第2のバスラインの通信プロトコルに合わせて変換し、変換された通信データを第2のバスラインに出力する処理と、
前記第1のバスラインにアナライザが接続されている場合、前記変換された通信データを第1のバスラインに出力する処理と、
前記第2のバスラインにアナライザが接続されている場合、前記第1のバスラインから入力された通信データを第2のバスラインに出力する処理と、
前記アナライザに入力されたゲートウェイ装置により変換される前の通信データと変換された後の通信データを解析することにより、ゲートウェイ装置の中継機能を診断する処理と
を有することを特徴とするゲートウェイ装置の診断方法。 A gateway device diagnosis method for relaying communication data transmitted from a first bus line toward a second bus line,
A process of converting communication data input from the first bus line in accordance with a communication protocol of the second bus line and outputting the converted communication data to the second bus line;
When an analyzer is connected to the first bus line, a process of outputting the converted communication data to the first bus line;
When an analyzer is connected to the second bus line, processing for outputting communication data input from the first bus line to the second bus line;
A process of diagnosing the relay function of the gateway device by analyzing the communication data before being converted by the gateway device inputted to the analyzer and the communication data after being converted. Diagnosis method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009015422A JP5131213B2 (en) | 2009-01-27 | 2009-01-27 | Gateway device and diagnosis method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009015422A JP5131213B2 (en) | 2009-01-27 | 2009-01-27 | Gateway device and diagnosis method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010177764A JP2010177764A (en) | 2010-08-12 |
JP5131213B2 true JP5131213B2 (en) | 2013-01-30 |
Family
ID=42708322
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009015422A Active JP5131213B2 (en) | 2009-01-27 | 2009-01-27 | Gateway device and diagnosis method thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5131213B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104009889B (en) * | 2014-06-10 | 2017-04-26 | 西安西电捷通无线网络通信股份有限公司 | Communication protocol testing method and tested equipment and testing platform of communication protocol testing method |
US10212081B2 (en) * | 2015-12-01 | 2019-02-19 | Marvell World Trade Ltd. | Systems and methods for implementing a time-stamped controller area network (CAN) bus message |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003244150A (en) * | 2002-02-15 | 2003-08-29 | Toshiba Corp | Network restoration system |
JP2006228091A (en) * | 2005-02-21 | 2006-08-31 | Fujitsu Ten Ltd | Method for inspecting electronic control unit |
JP5042005B2 (en) * | 2007-12-25 | 2012-10-03 | 富士通テン株式会社 | Communication monitoring device, communication gateway evaluation device, and communication monitoring method |
-
2009
- 2009-01-27 JP JP2009015422A patent/JP5131213B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2010177764A (en) | 2010-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102320043B1 (en) | Failure diagnosis apparatus and method for in-vehicle control unit | |
JP7312210B2 (en) | GATEWAY DEVICE, VEHICLE NETWORK SYSTEM, TRANSFER METHOD AND PROGRAM | |
US9305408B2 (en) | Multiple electronic control unit diagnosing system and method for vehicle | |
JP7192074B2 (en) | Network hub, transfer method and in-vehicle network system | |
KR101855753B1 (en) | Gateway apparatus for vehicles diagnosis and system having the same | |
US20130159586A1 (en) | Motor vehicle control system with simplified information exchange | |
DE102017217636A1 (en) | Method for transmitting and receiving data in a vehicle network and device for this | |
US11467566B2 (en) | Communication device, communication terminal, communication device and method for operating a communication system for transmitting time-critical data | |
KR20160096526A (en) | Method for diagnosing network and apparatus for the same | |
Tuohy et al. | Next generation wired intra-vehicle networks, a review | |
US20210243047A1 (en) | Gateway for Data Communication in a Vehicle | |
CN114839959A (en) | Vehicle remote diagnosis method and system based on SOA (service oriented architecture) service | |
JP5131213B2 (en) | Gateway device and diagnosis method thereof | |
US9438519B2 (en) | Bypass-RTA | |
US20180276174A1 (en) | Method for operating a bus system of an automation system | |
CN106856445B (en) | Motor train unit braking system and working method thereof | |
KR20160025452A (en) | Operation method of communication node in network | |
JP2010500838A (en) | Device for connecting an external device to a serial FlexRay data bus | |
JP2019146145A (en) | Communication device, communication method, and program | |
US20220234865A1 (en) | Method and data network for communicating data content, in particular in an elevator system | |
KR102446092B1 (en) | Method for diagnosing link status in network | |
KR102262081B1 (en) | Compliance test apparatus and method of communication node | |
JP2008236217A (en) | Flexray network connecting method, flexray network and electronic control unit for flexray network | |
WO2017203904A1 (en) | Electronic control unit, frame generation method, and program | |
KR20180057503A (en) | Operation method of communication node for time sinchronizating in vehicle network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20111128 |
|
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: 20121009 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121022 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151116 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5131213 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |