JP2006190150A - Field bus protocol testing equipment - Google Patents
Field bus protocol testing equipment Download PDFInfo
- Publication number
- JP2006190150A JP2006190150A JP2005002429A JP2005002429A JP2006190150A JP 2006190150 A JP2006190150 A JP 2006190150A JP 2005002429 A JP2005002429 A JP 2005002429A JP 2005002429 A JP2005002429 A JP 2005002429A JP 2006190150 A JP2006190150 A JP 2006190150A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- data
- reception
- script
- transmission
- 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.)
- Withdrawn
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
Description
本発明は、フィールドバスに接続されたネットワーク対応機器のフィールドバスプロトコルを自動的に検査するフィールドバスプロトコル検査装置に関する。 The present invention relates to a fieldbus protocol inspection device that automatically inspects a fieldbus protocol of a network-compatible device connected to a fieldbus.
従来、フィールドバスに接続されたネットワーク対応機器がフィールドバス通信プロトコルを満たしているかどうかを検査するときは、PC等で構成した検査装置と検査対象機器を通信ケーブルで接続してから、検査装置に搭載された検査用アプリケーションによって自動的に検査されている。その検査用アプリケーションが稼動すると、まず、記憶装置に検査順序どおりに格納された通信データが送受信コマンドによって順次参照される。そして指定された送信コマンドがネットワーク対応機器へ送信され、ネットワーク対応機器が応答したコマンドと指定された受信コマンドが比較されて検査されるようになっている。
このように所定の検査順序で通信コマンドが送受信されると、正しいレスポンスが応答されたかどうかをコマンドの比較によって判定して通信の状態が自動的に検査されるようになっている。そのような従来技術の一つとして、フィールドバスにIEEE1394高速シリアルバスを用いたものが開示されている(例えば特許文献1参照)。
As described above, when communication commands are transmitted and received in a predetermined inspection order, it is determined whether or not a correct response has been received by comparing the commands, and the communication state is automatically inspected. As one of such conventional techniques, a field bus using an IEEE1394 high-speed serial bus is disclosed (see, for example, Patent Document 1).
しかしながら従来技術によると、作成された検査順序のとおりに格納された送受信コマンドを用いて全ての送受信データを完全に記述する必要があり、相手先アドレスなど、プロトコルとして本来チェックする必要のないデータについても送受信コマンドとして記述することが必要であった。また、送受信データを全て記述しなければならないため、ウォッチドクタイマなど不定データを有している受信コマンドやネットワーク対応機器の状態により変化する可変値領域を有している受信コマンドについては、送受信データを記述することが非常に困難であった。
本発明は、このような従来技術の問題点に鑑みてなされたものであり、入力の手間を大幅に軽減しつつフィールドバス通信プロトコルを満たしているかどうかを自動的に検査できるようにすることを目的とする。
However, according to the prior art, it is necessary to completely describe all transmission / reception data using the transmission / reception commands stored in the created inspection order. Also needed to be written as a send / receive command. In addition, since all the transmission / reception data must be described, the transmission / reception data for the reception command having indefinite data such as a watchdog timer and the reception command having a variable value area that changes depending on the state of the network compatible device It was very difficult to describe.
The present invention has been made in view of such problems of the prior art, and it is possible to automatically check whether or not the fieldbus communication protocol is satisfied while greatly reducing the input effort. Objective.
そこで本発明は、ネットワーク対応機器と接続してそのネットワーク対応機器のフィールドバスプロトコルを検査するフィールドバスプロトコル検査装置であって、前記ネットワーク対応機器の通信スクリプトとその通信スクリプトに対応した通信データフォーマットを突き合わせることによって送信データを生成する送信データ生成部と、前記送信データを前記ネットワーク対応機器に送信したときに返信される受信データを解析する受信データ解析部と、を備えたことを特徴としており、さらに、通信データフォーマットを定義する通信データフォーマット定義部を備えることを特徴としている。 Accordingly, the present invention provides a fieldbus protocol inspection device for connecting to a network compatible device and inspecting the fieldbus protocol of the network compatible device, comprising a communication script of the network compatible device and a communication data format corresponding to the communication script. A transmission data generation unit that generates transmission data by matching, and a reception data analysis unit that analyzes reception data returned when the transmission data is transmitted to the network-compatible device. In addition, a communication data format definition unit for defining a communication data format is further provided.
本発明によれば、自動的にデータの送受信を行うだけでなく、フィールドバスプロトコルとしての正誤チェックまで行うため、検査のための操作が簡単になり、かつ検査時間を大幅に短縮できるという効果がある。また、フィールドバスプロトコルの知識が少ないユーザも簡単な操作でプロトコルの検査をすることができる。また、検査結果がテキストファイルとして保存されるため、履歴が残ってデバッグに利用することができる。また、送信データ生成部が参照する通信データフォーマットを変更するだけで、通信スクリプトを書き換えることなく任意の通信データの送受信ができるので、様々なプロトコルの検査をすることができるという効果がある。 According to the present invention, not only automatically transmitting / receiving data, but also performing a correctness / incorrectness check as a fieldbus protocol, so that the operation for inspection is simplified and the inspection time can be greatly shortened. is there. Also, a user with little knowledge of the fieldbus protocol can inspect the protocol with a simple operation. Moreover, since the inspection result is saved as a text file, the history remains and can be used for debugging. In addition, by simply changing the communication data format referred to by the transmission data generation unit, it is possible to send and receive arbitrary communication data without rewriting the communication script. Therefore, there is an effect that various protocols can be inspected.
以下本発明の実施の形態について図面を参照しながら詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は本発明のフィールドバスプロトコル検査装置の接続状況を示すブロック図である。フィールドバスプロトコル検査装置1はモニタ2とPC本体3から構成されており、PC本体3とネットワーク対応機器5、6がフィールドバス7、8で図のように接続されている。PC本体3のPCIスロットにはPCIバス対応のフィールドバスI/Fボード4が挿入されており、PC本体3に検査用アプリケーションを搭載して通信データの送受信処理を実行することによってネットワーク対応機器5、6のフィールドバス通信プロトコルを検査することができるようになっている。
FIG. 1 is a block diagram showing the connection status of the fieldbus protocol inspection device of the present invention. The fieldbus
ここでPC本体3の内部構成について図2を用いて説明する。PC本体3は、フィールドバスI/Fボード4とモニタI/F13、CPU14、RAM15、ファイルメモリ16のほか、図示しないアプリケーションメモリやキーボードインターフェース、ROMから構成されており、互いにバスで接続されている。フィールドバスI/Fボード4には通信制御IC11が搭載されてフィールドバス7に接続されており、フィールドバスの初期化とバスの使用権の調停を行うほか各種の通信制御をする。そして通信制御用の信号と通信コマンドを使ってフィールドバス7を介してネットワーク対応機器5、6と送受信する。
Here, the internal configuration of the PC
モニタI/F13はモニタ2とPC本体3を接続するインターフェースであり、モニタ2にビデオ信号を送信したり、モニタ2との間で制御信号を送受信する。CPU14はPC本体3の全体を制御する。RAM15は、送信データ生成部20と受信データ解析部21を含む検査用アプリケーション22と、通信データフォーマット定義部23を備えており、CPU14のワークエリアにもなっている。ファイルメモリ16はハードディスク装置の記憶エリアの一部として構成されており、フィールドバスプロトコルの検査に必要な通信スクリプト18と通信データフォーマット19、検査結果26が格納される。通信スクリプト18には、検査対象となっているネットワーク対応機器5、6がフィールドバスプロトコルであるための条件を満たしているかどうかを検査するために必要な一連のデータと、条件を満たしているときに得られる受信データに相当するデータと、所望のメッセージを促すメッセージコード、所望の場所で待ち時間を入れるウェイトコードが含まれている。
The monitor I /
検査用アプリケーション22は通信制御IC11を制御したり、通信スクリプト18から送信データを作成することができ、作成した送信データを通信制御IC11に設けられたレジスタの所定のアドレスに書き込む。ネットワーク対応機器5、6が送信した送信データはレジスタの所定のアドレスに書き込まれ、検査用アプリケーション22によって読み出される。
The
ここでファイルメモリ16に格納されている通信データフォーマット19について図3を用いて説明する。通信データフォーマット19は通信スクリプト18で使用するコマンドを定義する情報であり、複数のコマンド定義で構成されている。各コマンド定義はコメントと、コマンド名称、任意の数の送信固定データ情報、任意の数の送信パラメータ情報、任意の数の受信固定データ情報、任意の数の受信パラメータ情報から構成されており、その内訳は図に示すとおりである。通信データフォーマット19の具体的な設定例を図4に示す。
Here, the
次にファイルメモリ16に格納されている通信スクリプト18について図5を用いて説明する。通信スクリプト18は複数のスクリプトラインから構成されており、各スクリプトラインはコマンド名称と、送信パラメータ、受信パラメータから構成されている。送信パラメータは通信データフォーマット19のコマンド定義で設定された送信パラメータ情報の数だけ設定される。受信パラメータも同様に通信データフォーマット19のコマンド定義で設定された受信パラメータ情報の数だけ設定される。受信パラメータと送信パラメータの内訳は図に示すとおりである。通信スクリプト18の具体的な設定例を図6に示す。
Next, the
次に動作について説明する。検査用アプリケーション22が起動すると通信スクリプト18を開き、送信データ生成部20が送信データを生成してネットワーク対応機器5、6に送信し、ネットワーク対応機器5、6から送られてきた受信データを受信データ解析部21が解析し、自動的にエラーを検出する。
少し詳しく説明すると次のようになる。まず検査用アプリケーション22が起動すると、通信スクリプト18に記述されたコマンド名称と同じものが通信データフォーマット19にあるかどうかが調べられる。同じものがあればコマンド定義に従って送信固定データ情報と送信パラメータ情報が取得される。そして送信固定データ情報と通信スクリプト18に記述された送信パラメータを用いて送信データを生成し、送信固定データ情報が指定する送信データ位置に送信データ値を設定する。また、送信パラメータ情報が通信スクリプト18に記述した送信パラメータを送信データ位置に設定する。設定されていない送信データ位置については0を設定して送信データの作成を完了する。
受信データ解析部21は、受信データと通信データフォーマット19の受信固定データ情報で指定されたデータ位置の受信データ値を比較し、さらに通信データフォーマット19に記述された受信パラメータデータ情報に従い通信スクリプト18に記述された受信パラメータと指定されたデータ位置の値を比較する。
Next, the operation will be described. When the
A little more detailed explanation is as follows. First, when the
The reception
図7は検査用アプリケーション22の処理手順を示すフローチャートであり、以下、順を追って説明する。
(S1)検査用アプリケーション22が起動すると通信スクリプト18が開かれる。
(S2)そのとき画面のツールバー上で実行を選択すると、
(S3)ファイルが終わったかどうかが判断され、ファイルが終わっていなければ(S4)へ移行し、終わっていれば(S10)へ移行する。
(S4)通信スクリプト18の1行を読み出して文法エラーがないかどうかをチェックし、送信データ生成部20が通信スクリプトの受信パラメータと通信データフォーマットを用いて送信データを生成する。
(S5)生成された送信データをネットワーク対応機器5、6へ送信する。
(S6)送信データを受けてネットワーク対応機器5、6が送信した受信データを受信する。
FIG. 7 is a flowchart showing the processing procedure of the
(S1) When the
(S2) At that time, if execution is selected on the toolbar of the screen,
(S3) It is determined whether or not the file is finished. If the file is not finished, the process proceeds to (S4), and if finished, the process proceeds to (S10).
(S4) One line of the
(S5) The generated transmission data is transmitted to the network
(S6) Receiving the transmission data, the reception data transmitted by the network
(S7)受信データ解析部21が通信スクリプトの受信パラメータと通信データフォーマットを用いて受信比較データを生成し、さらに受信データと比較する。
(S8)その比較によって不一致データの有無をチェックする。
(S9)不一致データがあればエラー表示して検査をいったん停止する。このときユーザは実行中止と実行継続のいずれかを選択することができる。以下同様に、通信スクリプト18のデータを全て読み出して処理するまで送受信を繰り返し、フィールドバスプロトコルの検査を行なう。
(S10)全データの検査が終了すると、モニターI/F13を介してモニタ2の画面上に検査データとエラーの数を表示し、セーブを促すダイアログを表示する。
(S11)そして、画面のツールバー上でセーブのコマンドが入力されると、ファイルメモリ16にテキストファイルとして保存する。
(S7) The reception
(S8) The presence / absence of inconsistent data is checked by the comparison.
(S9) If there is inconsistent data, an error is displayed and the inspection is temporarily stopped. At this time, the user can select either execution cancellation or execution continuation. Similarly, transmission / reception is repeated until all the data of the
(S10) When the inspection of all data is completed, the inspection data and the number of errors are displayed on the screen of the monitor 2 via the monitor I /
(S11) When a save command is input on the toolbar of the screen, it is saved in the
図8はPRM_WRとPRM_RDの通信コマンドを検査したときの検査結果データであり、検査結果がOKのときのものである。SDに続く「000000」はインデックス番号であり、送受信の組を表している。その次に続く「42 02 35 00 00 00.....」は送信データ生成部20によって生成された送信データ24であり、RDに続く「42 02 35 E2 97 C9.....」は送信データ24に応じて応答された受信データ25である。
FIG. 8 shows the inspection result data when the communication commands PRM_WR and PRM_RD are inspected, and the inspection result is OK. “000000” following SD is an index number, which represents a transmission / reception group. The next “42 02 35 00 00 00...” Is the transmission data 24 generated by the transmission
図9は検査結果がNGのときのものである。NGに続く「xx 01 xx xx xx xx 00 00 00 00 xx xx xx 00 61 10 02 19」は受信データとして期待されるデータであるが、検査対象とならないデータ位置は「xx」として表示されている。検査結果データがモニタ2で確認された後は、テキストファイルでファイルメモリ16に保存される。
FIG. 9 shows the case where the inspection result is NG. “Xx 01 xx xx xx xx 00 00 00 00 xx xx xx 00 61 10 02 19” following NG is expected data as received data, but the data position not subject to inspection is displayed as “xx”. . After the inspection result data is confirmed on the monitor 2, it is stored in the
以上述べたように、本発明によれば、ユーザーがプロトコルを知らなくても、簡単な操作によって短時間でフィールドバスプロトコルを自動的に検査することができる。また、検査結果がテキストファイルとして保存されるため、履歴が残り、デバッグを有効なものとすることができる。また、検査用送受信データが通信スクリプトとして保存され、検査用アプリケーションが参照する通信データフォーマットの確認により文法エラーも容易にチェックできるため、プロトコルの正しい検査をすることができる。また、検査用アプリケーションが参照する通信データフォーマットを変更するだけで通信スクリプトを書き換えることなく任意の通信データの送受信が行えるため、プロトコルとセット仕様の変更に対しても柔軟に対応することができる。 As described above, according to the present invention, even if the user does not know the protocol, the fieldbus protocol can be automatically inspected in a short time by a simple operation. Further, since the inspection result is saved as a text file, the history remains and debugging can be made effective. In addition, since the transmission / reception data for inspection is saved as a communication script and the syntax data can be easily checked by checking the communication data format referred to by the inspection application, the protocol can be correctly inspected. In addition, since any communication data can be transmitted and received without rewriting the communication script simply by changing the communication data format referred to by the inspection application, it is possible to flexibly cope with changes in protocol and set specifications.
1 フィールドバスプロトコル検査装置、
2 モニタ、 3 PC本体、
4 フィールドバスI/Fボード、 5、6 ネットワーク対応機器、
7、8 フィールドバス、 11 信制御IC、
13 モニタI/F、 14 CPU、
15 RAM、 16 ファイルメモリ、
18 通信スクリプト、 19 通信データフォーマット、
20 送信データ生成部、 21 受信データ解析部、
22 検査用アプリケーション、 23 通信データフォーマット定義部、
26 検査結果
1 Fieldbus protocol inspection device,
2 monitor, 3 PC body,
4 Fieldbus I / F board, 5, 6 Network compatible devices,
7, 8 Fieldbus, 11 communication control IC,
13 Monitor I / F, 14 CPU,
15 RAM, 16 file memory,
18 communication script, 19 communication data format,
20 transmission data generation unit, 21 reception data analysis unit,
22 application for inspection, 23 communication data format definition part,
26 test results
Claims (2)
前記ネットワーク対応機器の通信スクリプトとその通信スクリプトに対応した通信データフォーマットを突き合わせることによって送信データを生成する送信データ生成部と、
前記送信データを前記ネットワーク対応機器に送信したときに返信される受信データを解析する受信データ解析部と、
を備えたことを特徴とするフィールドバスプロトコル検査装置。 A fieldbus protocol inspection device that connects to a network compatible device and inspects the fieldbus protocol of the network compatible device,
A transmission data generation unit that generates transmission data by matching a communication script of the network-compatible device and a communication data format corresponding to the communication script;
A reception data analysis unit that analyzes reception data that is returned when the transmission data is transmitted to the network-compatible device;
A fieldbus protocol inspection device comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005002429A JP2006190150A (en) | 2005-01-07 | 2005-01-07 | Field bus protocol testing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005002429A JP2006190150A (en) | 2005-01-07 | 2005-01-07 | Field bus protocol testing equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006190150A true JP2006190150A (en) | 2006-07-20 |
Family
ID=36797287
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005002429A Withdrawn JP2006190150A (en) | 2005-01-07 | 2005-01-07 | Field bus protocol testing equipment |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006190150A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011192216A (en) * | 2010-03-16 | 2011-09-29 | Fujitsu Ltd | Input/output connecting device, information processing device, and input/output device inspection method |
-
2005
- 2005-01-07 JP JP2005002429A patent/JP2006190150A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011192216A (en) * | 2010-03-16 | 2011-09-29 | Fujitsu Ltd | Input/output connecting device, information processing device, and input/output device inspection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6307140B2 (en) | System and method for safety critical software automatic requirement based test case generation | |
US8572437B2 (en) | Multi-platform test automation enhancement | |
US7908518B2 (en) | Method, system and computer program product for failure analysis implementing automated comparison of multiple reference models | |
US20100095159A1 (en) | Apparatus and method for automatic testing of software or digital devices | |
US8752023B2 (en) | System, method and program product for executing a debugger | |
CN106649021B (en) | PCIe is from equipment testing device | |
CN103019939A (en) | Method and system for testing driver | |
JP2009087354A (en) | Automatic test generation system and method for web application | |
JP2009048522A (en) | Manufacturing method and testing method for data transfer apparatus, and data transfer apparatus | |
CN102546266A (en) | Method and platform for diagnosing network failures | |
CN105183575A (en) | Processor fault diagnosis method, device and system | |
TW201638778A (en) | Computer system and method for testing hardware device based on virtual machine | |
CN113064618B (en) | System and method for simulating new energy vehicle conformance detection | |
WO2006011308A1 (en) | Sequencer simulation device, and sequencer simulation program | |
JP2006190150A (en) | Field bus protocol testing equipment | |
US7721260B2 (en) | Embedded Test I/O Engine | |
JP5490307B2 (en) | Communication device | |
US20160224456A1 (en) | Method for verifying generated software, and verifying device for carrying out such a method | |
US20190108110A1 (en) | System and method for automated integration and stress testing of hardware and software service in management controller using containerized toolbox | |
JP2008004940A (en) | Semiconductor test system by which virtual test is possible, and its semiconductor test method | |
US20100146337A1 (en) | Method and device for detecting non-regression of an input/output system in a simulation environment | |
CN108614704A (en) | Code compiling method and device | |
JP2008134684A (en) | Apparatus and program for verifying information communication device | |
TWI773140B (en) | Graphical user interface for traffic capture and debugging tool | |
US10013266B2 (en) | System and method for executing operations specified in a procedure language |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20080401 |