JP2000307683A - Communication error generating device - Google Patents

Communication error generating device

Info

Publication number
JP2000307683A
JP2000307683A JP11113513A JP11351399A JP2000307683A JP 2000307683 A JP2000307683 A JP 2000307683A JP 11113513 A JP11113513 A JP 11113513A JP 11351399 A JP11351399 A JP 11351399A JP 2000307683 A JP2000307683 A JP 2000307683A
Authority
JP
Japan
Prior art keywords
communication
error
data
serial
condition
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
Application number
JP11113513A
Other languages
Japanese (ja)
Inventor
Kazuhiro Koshiba
和弘 小柴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Engineering Ltd
Original Assignee
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP11113513A priority Critical patent/JP2000307683A/en
Publication of JP2000307683A publication Critical patent/JP2000307683A/en
Pending legal-status Critical Current

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily provide environment for an active communication abnormality processing test similar to real operation by providing the setting, storing and judging means of an error generating condition so as to generate isolated serial communication errors. SOLUTION: The setting, storing and decision means of an error generating condition are provided. Communication error equipment 17 consists of a pair of serial input/output devices (SIO) 13, 14, a CPU 15, an inputting device 16, etc. The equipment 17 is arranged between a pair of serial data communication equipments 11, 12, inputs serial data transmitted from both of the equipment 11, 12, and generates an error in the serial data sent from both of the equipments 11, 12, and generates an error in serial data in accordance with a set condition to output to the equipment 11, 12. The CPU 15 sets a communication condition to SIO, 13, 14 in accordance with a communicating condition set from the device 16. In this communication condition, in order to execute serial communication opposed to the equipment 11, 12, the communication condition of the SIO 13, 14 is equalized with that of the equipment 11, 12 to communicate with each other.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、通信エラー発生装
置、特に非同期式(Asynchronous)シリアルデータ通信
機能を有する装置の通信異常処理のデバッグ・動作確認
用に使用する通信エラー発生装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a communication error generating device, and more particularly to a communication error generating device used for debugging and confirming operation of a communication error process of a device having an asynchronous serial data communication function.

【0002】[0002]

【従来の技術】通常、シリアル通信機能を備えた装置の
シリアル通信及び通信異常処理は、プログラム処理によ
り行われているが、デバッグ用のシリアル通信エラー発
生装置がないので、通信異常処理のプログラム検証はプ
ログラム処理ルーチンをデバッグにより擬似的に動作さ
せて行っていた。しかし、より現実的なデバッグを行う
為には、実運用と同一環境で通信ケーブル上で発生する
エラーを擬似的に生成して行うことが望ましい。
2. Description of the Related Art Normally, serial communication and communication error processing of a device having a serial communication function are performed by program processing. However, since there is no serial communication error generation device for debugging, program verification of communication error processing is performed. Has been performed by simulating the program processing routine by debugging. However, in order to perform more realistic debugging, it is desirable to simulate and generate an error that occurs on the communication cable in the same environment as the actual operation.

【0003】従来のエラー発生装置の一例が特開昭60
−101650号公報の「エラー発生装置」に開示され
ている。このエラー発生装置を図4を参照して説明す
る。図4(A)は、従来のシリアル通信エラー発生装置
のブロック図を示す。このシリアル通信エラー発生装置
は、シリアル/パラレル(S/P)変換器1、スイッチ
回路2、排他OR(XOR)回路3及びパラレル/シリ
アル(P/S)変換器4より構成されている。S/P変
換器1には、図4(B)に示す如きフォーマットの非同
期式シリアル通信データD1が入力される。この非同期
式シリアル通信データD1はパリティビット5、データ
ビット6及び7a〜7g、パリティビット7h及びスト
ップビット7iで構成されている。
One example of a conventional error generating device is disclosed in
No. 101650 discloses an “error generating device”. This error generator will be described with reference to FIG. FIG. 4A is a block diagram of a conventional serial communication error generator. The serial communication error generator includes a serial / parallel (S / P) converter 1, a switch circuit 2, an exclusive OR (XOR) circuit 3, and a parallel / serial (P / S) converter 4. Asynchronous serial communication data D1 having a format as shown in FIG. 4B is input to the S / P converter 1. The asynchronous serial communication data D1 includes a parity bit 5, data bits 6 and 7a to 7g, a parity bit 7h, and a stop bit 7i.

【0004】図4(A)に示す従来のシリアル通信エラ
ー発生装置のブロック図においては、S/P変換器1と
P/S変換器4間に、データビット6に対するXOR回
路3が設けられている。このXOR回路3の入力2aに
接続されているスイッチ回路2がオンの時には、S/P
変換器1の出力データビット6は、データ内容が反転し
てデータビット6aとしてP/S変換器4に送出され
る。その結果P/S変換器4から出力されるシリアルデ
ータD2は、図4(C)に示す如きデータフォーマット
に示す如く、データビット6aが反転して、パリティエ
ラーを生じたデータを送出することができるよう構成さ
れている。
In the block diagram of the conventional serial communication error generator shown in FIG. 4A, an XOR circuit 3 for a data bit 6 is provided between an S / P converter 1 and a P / S converter 4. I have. When the switch circuit 2 connected to the input 2a of the XOR circuit 3 is on, the S / P
The output data bit 6 of the converter 1 is sent to the P / S converter 4 as the data bit 6a after the data content is inverted. As a result, the serial data D2 output from the P / S converter 4 can transmit data in which a data bit 6a is inverted and a parity error occurs, as shown in a data format as shown in FIG. 4C. It is configured to be able to.

【0005】[0005]

【発明が解決しようとする課題】しかし、上述した従来
の通信エラー発生装置にあっては、次の如き種々の問題
がある。先ず第1に、シリアルデータ通信が連続して発
生している場合、1つのデータに対する単発的なエラー
の発生が検出できないという問題がある。その理由は、
パラレル変換されたデータラインそれぞれにXOR回路
を設け、データの反転設定をオルターネイトスイッチに
て機械的にエラー発生を行っている。従って、連続的な
シリアルデータに対して1つのデータに単発的なエラー
発生を行うタイミングコントロールが困難であり、連続
するシリアルデータ通信に対して連続的にパリティエラ
ーが発生してしまう為である。
However, the above-described conventional communication error generator has the following various problems. First, when serial data communication occurs continuously, there is a problem that occurrence of a single error for one data cannot be detected. The reason is,
An XOR circuit is provided for each of the parallel-converted data lines, and an error is mechanically generated by inverting the data using an alternate switch. Therefore, it is difficult to perform timing control for performing a single error occurrence for one piece of data with respect to continuous serial data, and a parity error occurs continuously for continuous serial data communication.

【0006】また、別の問題点は、通常のシリアルデー
タ通信シーケンスにおいて特定データに対してのみエラ
ーを発生させることができないことである。その理由
は、パラレル変換されたデータラインそれぞれにXOR
回路を設け、データの反転設定はオルターネットスイッ
チにて機械的に行われる為に、特定データを判別する回
路(機能)がない為である。
Another problem is that an error cannot be generated only for specific data in a normal serial data communication sequence. The reason is that XOR is applied to each of the parallel-converted data lines.
This is because there is no circuit (function) for determining specific data because a circuit is provided and the data inversion setting is performed mechanically by an alternator switch.

【0007】本発明の目的に1つは、単発的なシリアル
通信エラーを発生させることが可能である通信エラー発
生装置を提供することである。
An object of the present invention is to provide a communication error generating device capable of generating a single serial communication error.

【0008】本発明の他の目的は、通信エラー発生状況
が表示可能である通信エラー発生装置を提供することで
ある。
Another object of the present invention is to provide a communication error generating device capable of displaying a communication error occurrence state.

【0009】[0009]

【課題を解決するための手段】前述の課題を解決するた
め、本発明による通信エラー発生装置は、次のような特
徴的な構成を採用している。
In order to solve the above-mentioned problems, a communication error generating apparatus according to the present invention employs the following characteristic configuration.

【0010】(1)非同期式シリアルデータ通信機能を
有する1対の通信装置間に配置され、該通信装置間のシ
リアル通信にエラーを発生させる通信エラー発生装置に
おいて、前記1対の通信装置に対向して接続され、デー
タのシリアル/パラレル及びパラレル/シリアル変換を
行う1対のシリアルI/Oと、該1対のシリアルI/O
とバスにより接続された処理装置と、該処理装置に接続
されエラー発生条件を設定する入力装置及び前記エラー
発生条件を記憶する記憶装置とを備える通信エラー発生
装置。
(1) A communication error generating device which is disposed between a pair of communication devices having an asynchronous serial data communication function and generates an error in serial communication between the communication devices, the communication error generating device being opposed to the pair of communication devices. A pair of serial I / Os for performing serial / parallel and parallel / serial conversion of data, and the pair of serial I / Os
A communication error generating apparatus comprising: a processing device connected to the processing device via a bus; an input device connected to the processing device for setting an error occurrence condition; and a storage device for storing the error occurrence condition.

【0011】(2)前記処理装置は、前記通信装置から
前記シリアルI/Oを介して送られる特定データに対し
てのみ通信エラーを発生することを可能にする上記
(1)の通信エラー発生装置。
(2) The communication error generating device according to (1), wherein the processing device is capable of generating a communication error only for specific data transmitted from the communication device via the serial I / O. .

【0012】(3)前記処理装置に接続された表示装置
を更に備え、前記入力装置の設定状況を表示する上記
(1)の通信エラー発生装置。
(3) The communication error generating device according to (1), further comprising a display device connected to the processing device, for displaying a setting status of the input device.

【0013】(4)前記表示装置は、前記通信エラー条
件設定状況及び通信エラー発生状況を表示する上記
(3)の通信エラー発生装置。
(4) The communication error generating device according to (3), wherein the display device displays the communication error condition setting status and the communication error occurrence status.

【0014】(5)前記表示装置は、エラー発生時のデ
ータが、エラー発生前とエラー発生後で対比して表示す
る上記(3)の通信エラー発生装置。
(5) The communication error generating device according to the above (3), wherein the display device displays data at the time of occurrence of the error in comparison with before and after the occurrence of the error.

【0015】[0015]

【発明の実施の形態】以下、本発明の通信エラー発生装
置の好適実施形態例を、添付する図1乃至図3を参照し
て詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a communication error generating apparatus according to the present invention will be described below in detail with reference to FIGS.

【0016】先ず、図1は、本発明の通信エラー発生装
置の好適実施形態例のブロック図である。本発明の通信
エラー発生装置17は、相互にシリアルデータ通信を行
う通信装置11及び12間に配置される。この通信エラ
ー発生装置17は、1対のシリアル入出力装置(SI
O)13、14、CPU(中央処理装置)15、入力装
置16、記憶装置18及び表示装置20より構成され
る。この通信エラー発生装置17は、1対のシリアルデ
ータ通信装置11、12間に配置され、両通信装置1
1、12から送出されるシリアルデータを入力とし、設
定された条件に従ってシリアルデータにエラーを発生さ
せて通信装置11、12へ出力する。
FIG. 1 is a block diagram of a preferred embodiment of a communication error generating apparatus according to the present invention. The communication error generating device 17 of the present invention is disposed between the communication devices 11 and 12 that perform serial data communication with each other. The communication error generating device 17 includes a pair of serial input / output devices (SI
O) It comprises 13, 14, a CPU (central processing unit) 15, an input device 16, a storage device 18, and a display device 20. The communication error generator 17 is disposed between the pair of serial data communication devices 11 and 12, and
The serial data transmitted from the communication devices 1 and 12 is input, an error is generated in the serial data according to the set conditions, and the error is output to the communication devices 11 and 12.

【0017】SIO13、14は、それぞれ通信装置1
1、12に対向して配置され、シリアルデータ通信を行
うシリアルI/Oであり、シリアル/パラレル変換機能
及びパラレル/シリアル変換機能を有する。また、SI
O13、14は、CPU15からの設定によりストップ
ビット数、パリティの有無、極性及び通信スピード変更
機能を有し、通信装置11、12と対向して通信する為
に通信条件に適合させる為の設定が可能である。
Each of the SIOs 13 and 14 is a communication device 1
These serial I / Os are disposed opposite to each other and perform serial data communication, and have a serial / parallel conversion function and a parallel / serial conversion function. Also, SI
O13 and O14 have a function of changing the number of stop bits, the presence or absence of parity, the polarity, and the communication speed according to the settings from the CPU 15, and the settings for adapting to the communication conditions for communicating with the communication devices 11 and 12 are performed. It is possible.

【0018】SIO13、14は、バス19を介してC
PU15と接続され、入力されるシリアルデータをパラ
レルデータに変換してCPU15に読込まれる。また、
CPU15から出力されるパラレルデータは、SIO1
3、14により、シリアルデータに変換される。
The SIOs 13 and 14 are connected to the C
The CPU 15 is connected to the PU 15, converts input serial data into parallel data, and reads the parallel data. Also,
The parallel data output from the CPU 15 is SIO1
The data is converted into serial data by 3 and 14.

【0019】入力装置16は、キーボード又はテンキ
ー、スイッチ等により構成され、通信条件設定、エラー
発生条件、エラー発生開始指示の入力を行う。表示装置
20は、CRT(陰極線管又はブラウン管)又はその他
のフラット表示パネル等による表示器で構成され、通信
条件設定、エラー発生条件及びエラー発生状況の表示を
行う。入力装置16及び表示装置20共にCPU15に
より制御される。
The input device 16 is constituted by a keyboard, a numeric keypad, a switch, and the like, and inputs communication condition settings, error occurrence conditions, and an error occurrence start instruction. The display device 20 is configured by a display device such as a CRT (cathode ray tube or cathode ray tube) or other flat display panel, and performs communication condition setting, error occurrence condition, and error occurrence status display. Both the input device 16 and the display device 20 are controlled by the CPU 15.

【0020】記憶装置18は、入力装置16により設定
された通信条件及びエラー発生条件の記憶を行う為の装
置であって、記憶データの書込み及び読出しは、CPU
15により制御される。
The storage device 18 is a device for storing communication conditions and error occurrence conditions set by the input device 16, and writes and reads stored data by a CPU.
15.

【0021】通常、非同期式シリアル通信におけるデー
タフォーマットは、図3(A)に示す如く、スタートビ
ット50、データ(D0ビット〜D7ビット)51〜5
8、パリティビット59及びストップビット60で構成
されている。本発明の通信エラー発生装置の通信エラー
発生は、図3(A)の非同期式シリアル通信におけるデ
ータフォーマットのデータビット51〜58までのデー
タをエラー発生条件に従って故意に変更することにより
データエラーを発生するものである。スタートビット5
0、パリティビット59及びストップビット60につい
ては変更しない。
Normally, as shown in FIG. 3A, the data format in the asynchronous serial communication includes a start bit 50, data (D0 bit to D7 bit) 51 to 5 bits.
8, a parity bit 59 and a stop bit 60. The communication error of the communication error generating apparatus of the present invention is generated by intentionally changing the data bits 51 to 58 of the data format in the asynchronous serial communication shown in FIG. Is what you do. Start bit 5
0, parity bit 59 and stop bit 60 are not changed.

【0022】次に、図1の通信エラー発生装置17の動
作を、図2(A)及び(B)のフローチャートを参照し
て説明する。この通信エラー発生装置17は、通信装置
11及び12の間に接続して使用するが、使用に先立
ち、通信装置11、12の通信条件(通信スピード、パ
リティの有無・極性、ストップビット数等)を入力装置
16から設定する。
Next, the operation of the communication error generator 17 of FIG. 1 will be described with reference to the flowcharts of FIGS. The communication error generating device 17 is used by connecting it between the communication devices 11 and 12. Prior to use, the communication conditions (communication speed, presence / absence / polarity of parity, number of stop bits, etc.) of the communication devices 11 and 12 are used. Is set from the input device 16.

【0023】CPU15は、入力装置16から設定され
た通信条件に従って、SIO13、14に通信条件を設
定する。この通信条件は、通信装置11、12と対向し
てシリアル通信を行う為にSIO13、14の通信条件
を通信装置11、12との通信条件と同一にし、相互に
通信できるようにする。
The CPU 15 sets communication conditions in the SIOs 13 and 14 according to the communication conditions set from the input device 16. These communication conditions are set so that the communication conditions of the SIOs 13 and 14 are the same as the communication conditions with the communication devices 11 and 12 in order to perform serial communication with the communication devices 11 and 12 so that they can communicate with each other.

【0024】この通信エラー発生装置17は、電源を投
入すると動作を開始する。しかし、入力装置16からエ
ラー設定及びエラー発生開始指示がない限りシリアル通
信エラーは発生させない。そこで、通信装置11、12
は、これら両装置間に通信エラー発生装置17が接続さ
れていないのと同等の状態で通信が行われる。換言する
と、通信エラー発生装置17は、通信装置11、12間
のシリアルデータ通信に対して透過的動作をしながら入
力装置16からのエラー発生開始指示を待つ。
The communication error generator 17 starts operating when the power is turned on. However, a serial communication error is not generated unless there is an error setting and an error generation start instruction from the input device 16. Therefore, the communication devices 11 and 12
The communication is performed in the same state as when the communication error generating device 17 is not connected between these two devices. In other words, the communication error generating device 17 waits for an error generation start instruction from the input device 16 while performing a transparent operation for the serial data communication between the communication devices 11 and 12.

【0025】エラー発生開始指示の前に、入力装置16
からエラー発生条件を設定する。そこで、エラー発生条
件及びエラーのパターンについて説明する。
Before the instruction to start the error occurrence, the input device 16
Set the error occurrence condition from. Therefore, an error occurrence condition and an error pattern will be described.

【0026】エラー発生条件としては、 (1)入力装置16からエラー発生開始指示が入力され
た後に、通信装置11又は12から入力したデータに単
発的にエラーを発生させることができる。 (2)通信装置11、12から特定データを入力したと
き、そのデータにエラーを単発的に発生させることがで
きる。尚、トリガーとしての特定データは、複数の設定
ができる。
The error occurrence conditions are as follows: (1) After an error occurrence start instruction is input from the input device 16, an error can be spontaneously generated in data input from the communication device 11 or 12. (2) When specific data is input from the communication devices 11 and 12, an error can be spontaneously generated in the data. Note that a plurality of settings can be made for specific data as a trigger.

【0027】エラー発生パターンとしては、 (1)データ変更(データ値は任意)又はパリティの変
更が設定できる。 (2)エラー発生パターンは、入力装置16で設定可能
である。 (3)エラー発生条件(1)又は(2)とエラー発生パ
ターン(1)は、それぞれ組合せて設定することができ
る。
As the error occurrence pattern, (1) data change (data value is arbitrary) or parity change can be set. (2) The error occurrence pattern can be set by the input device 16. (3) The error occurrence condition (1) or (2) and the error occurrence pattern (1) can be set in combination with each other.

【0028】次に、上述したエラー発生条件(1)にお
ける動作を、図2(A)のシリアル通信データエラー発
生動作フローチャートを参照して説明する。通信装置1
1又は12から出力されたデータをSIO13又は14
を介して取込む(ステップ31)。これにより、入力装
置16からのエラー発生開始指示の有無をチェックする
(ステップ32)。エラー発生開始指示がない場合に
は、SIO13(又は14)から取込んだデータをその
ままSIO14(又は13)を介して通信装置12(又
は11)に送出する(ステップ35)。
Next, the operation under the above-described error occurrence condition (1) will be described with reference to the serial communication data error occurrence operation flowchart of FIG. Communication device 1
The data output from 1 or 12 is transferred to SIO 13 or 14
(Step 31). As a result, it is checked whether there is an error occurrence start instruction from the input device 16 (step 32). If there is no error occurrence start instruction, the data fetched from the SIO 13 (or 14) is sent as it is to the communication device 12 (or 11) via the SIO 14 (or 13) (step 35).

【0029】他方、ステップ32において、入力装置1
6からエラー発生開始指示が入力された場合には、予め
設定されているエラー発生条件に従ってエラー生成を行
う(ステップ34)。その後、SIO14(又は13)
を介して通信装置12(又は11)にシリアルデータを
送出する(ステップ35)。尚、エラー発生開始指示
は、エラー生成後は解除されるので、入力装置16から
エラー発生開始指示を入力する都度、1つのシリアルデ
ータにエラーが発生する。
On the other hand, in step 32, the input device 1
When an error occurrence start instruction is input from step 6, an error is generated according to a preset error occurrence condition (step 34). Then, SIO14 (or 13)
The serial data is transmitted to the communication device 12 (or 11) via the interface (step 35). The error occurrence start instruction is released after the error is generated. Therefore, every time the error occurrence start instruction is input from the input device 16, an error occurs in one serial data.

【0030】次に、エラー発生条件(2)における動作
を、図2(B)のシリアル通信エラー発生動作フローチ
ャートを参照して説明する。通信装置11(又は12)
から出力されるデータを、SIO13(又は14)を介
して取込む(ステップ41)。入力装置16からのエラ
ー発生開始指示の有無をチェックする(ステップ4
2)。エラー発生開始指示がない場合には、SIO13
(又は14)から取込んだデータをそのままSIO14
(又は13)を介して通信装置12(又は11)に送出
する(ステップ45)。
Next, the operation under the error occurrence condition (2) will be described with reference to the serial communication error occurrence operation flowchart of FIG. Communication device 11 (or 12)
Is output via the SIO 13 (or 14) (step 41). It is checked whether there is an error occurrence start instruction from the input device 16 (step 4).
2). If there is no error generation start instruction, SIO13
(Or 14) the data imported from SIO14
It is sent to the communication device 12 (or 11) via (or 13) (step 45).

【0031】入力装置16からエラー発生開始指示が入
力された場合には、図2(B)のフローチャートのエラ
ー発生開始指示の有無をチェックするステップ42にお
いて、エラー発生開始指示ありと判断され、予め設定さ
れているエラー発生条件を取込んだデータとを比較する
(ステップ43)。エラー発生条件と一致しない場合に
は、SIO13(又は14)から取込んだデータをその
ままSIO14(又は13)を介して通信装置12(又
は11)に出力する(ステップ45)。
When an error generation start instruction is input from the input device 16, it is determined in step S42 of the flowchart of FIG. The set error occurrence condition is compared with the imported data (step 43). If they do not match the error occurrence condition, the data fetched from the SIO 13 (or 14) is output to the communication device 12 (or 11) via the SIO 14 (or 13) as it is (step 45).

【0032】上述したステップ43の比較の結果、エラ
ー発生条件と一致している場合には、予め設定されてい
るエラー発生条件に従ったエラー生成を行う(ステップ
44)。その後、SIO14(又は13)を介して通信
装置12(又は11)に、シリアルデータを送出する
(ステップ45)。入力装置16からエラー発生開始指
示の入力後は、入力装置16からエラー発生開始指示が
解除されるまで、エラー発生条件の特定データを入力す
る都度、エラーデータの生成を行う。
If the result of the comparison in step 43 is that the error occurrence condition is met, an error is generated according to a preset error occurrence condition (step 44). Thereafter, the serial data is transmitted to the communication device 12 (or 11) via the SIO 14 (or 13) (step 45). After the input of the error occurrence start instruction from the input device 16, the error data is generated each time specific data of the error occurrence condition is input until the error occurrence start instruction is released from the input device 16.

【0033】次に、上述したエラー発生条件(2)にお
ける動作を図1の通信エラー発生装置17のブロック図
に基づき説明する。通信装置11から通信装置12への
シリアルデータ値16h(00010110B)が入力
されると、通信エラー発生装置17にてパリティエラー
を発生させたシリアルデータ96h(10010110
B)を生成し、通信装置12へ出力させる場合につき説
明する。
Next, the operation under the above-described error occurrence condition (2) will be described with reference to the block diagram of the communication error generator 17 shown in FIG. When the serial data value 16h (00010110B) is input from the communication device 11 to the communication device 12, the communication error generator 17 generates the serial data 96h (10010110B) for which a parity error has occurred.
A case where B) is generated and output to the communication device 12 will be described.

【0034】先ず、入力装置16により予めエラー発生
条件を設定する。エラー発生条件として、通信装置11
から通信装置12へのシリアルデータ16h(0001
0110B)が通信エラー発生装置17に入力されたと
き、パリティエラーを伴うデータ96h(100101
10B)を通信装置12へ出力するように入力装置16
から条件設定する。この設定された条件は、表示装置2
0に表示される。CPU15は、このエラー発生条件値
データ及びエラー発生値データを含むエラー発生条件を
記憶装置18に記憶し保存する。
First, an error occurrence condition is set in advance by the input device 16. As an error occurrence condition, the communication device 11
Data 16h (0001
0110B) is input to the communication error generating device 17, the data 96h with parity error (100101)
10B) to the communication device 12 so that the input device 16
Set conditions from. The set conditions are displayed on the display device 2
Displayed as 0. The CPU 15 stores and stores the error occurrence condition value data and the error occurrence condition including the error occurrence value data in the storage device 18.

【0035】この状態で入力装置16からエラー発生開
始指示を与え、エラー発生動作を実行させる。通信装置
11から送出されたシリアルデータが、SIO13に入
力されると、SIO13によりシリアルデータはパラレ
ルデータに変換される。CPU15は、バス19を介し
てパラレルデータをSIO13から読取る。CPU15
は、記憶装置18からエラー発生条件のエラー発生条件
値データ(16h)を読出し、SIO13から読込んだ
データと比較する。比較の結果、SIO13から読込ん
だデータが16hでなければ、SIO13から読込んだ
パラレルデータをそのままバス19を介してSIO14
へ出力する。SIO14は、パラレルデータをシリアル
データに変換し、通信装置12へ送出する。
In this state, an error generation start instruction is given from the input device 16 to execute an error generation operation. When the serial data transmitted from the communication device 11 is input to the SIO 13, the serial data is converted by the SIO 13 into parallel data. The CPU 15 reads parallel data from the SIO 13 via the bus 19. CPU15
Reads the error occurrence condition value data (16h) of the error occurrence condition from the storage device 18 and compares it with the data read from the SIO 13. As a result of the comparison, if the data read from the SIO 13 is not 16h, the parallel data read from the SIO 13 is transferred to the SIO 14 via the bus 19 as it is.
Output to The SIO 14 converts the parallel data into serial data and sends it to the communication device 12.

【0036】上述した比較の結果、SIO13から読込
んだデータが16hに合致した場合には、CPU15
は、記憶装置18からエラー発生値データ96hを読出
し、バス19を介してSIO14へ出力する。そこで、
SIO14は、パラレルデータをシリアルデータに変換
して通信装置12へ出力する。このとき通信装置12へ
送出されるシリアルデータは、図3(C)のエラー発生
後のデータフォーマットに示される如く、図3(B)の
エラー発生前のデータフォーマットに対して図3(A)
に示す非同期式シリアル通信のデータフォーマットのデ
ータD7ビット58に相当するビットが反転し、パリテ
ィエラーを伴ったデータに変換されて通信装置12に出
力される。
As a result of the comparison, if the data read from the SIO 13 matches 16h, the CPU 15
Reads the error occurrence value data 96h from the storage device 18 and outputs it to the SIO 14 via the bus 19. Therefore,
The SIO 14 converts parallel data into serial data and outputs the serial data to the communication device 12. At this time, the serial data transmitted to the communication device 12 is, as shown in the data format after error occurrence in FIG. 3C, compared with the data format before error occurrence in FIG.
The bit corresponding to the data D7 bit 58 in the data format of the asynchronous serial communication shown in (1) is inverted, converted into data with a parity error, and output to the communication device 12.

【0037】上述の如く、本発明の通信エラー発生装置
17の実施形態例にあっては、エラーは連続するシリア
ルデータの1つのデータに単発的に発生させることが可
能になる。そこで、通信装置12では、異常処理機能が
作動して実動作に則した能動的な異常処理機能のデバッ
グ・動作確認が可能になる。また、この通信エラー発生
装置17では、上述のエラー発生条件によるエラー発生
時のデータが、エラー発生前とエラー発生後で対比して
表示装置20に表示できるので、通信装置12(又は1
1)での通信エラー発生の確認が容易になる。尚、図1
の通信エラー発生装置では、連続するシリアルデータに
対し1つのデータに単発的にエラーを発生させることを
例に説明したが、エラー発生パターンとして、設定され
たエラー発生条件を契機にして連続する複数のシリアル
データにエラーを発生させることも可能である。
As described above, in the embodiment of the communication error generating device 17 of the present invention, it is possible to cause an error to occur once in one piece of continuous serial data. Therefore, in the communication device 12, the abnormality processing function is activated, and active debugging and operation confirmation of the abnormality processing function according to the actual operation can be performed. Further, in the communication error generating device 17, data at the time of occurrence of an error under the above-described error occurrence condition can be displayed on the display device 20 before and after the error occurrence, so that the communication device 12 (or 1
It is easy to confirm the occurrence of a communication error in 1). FIG.
In the communication error generating apparatus described above, an example has been described in which a single error is generated in one data with respect to continuous serial data. It is also possible to cause an error in the serial data.

【0038】[0038]

【発明の他の実施の形態例】次に本発明の通信エラー発
生装置の他の実施形態例を説明する。基本構成は、図1
の通信エラー発生装置と同様であるが、通信エラー発生
パターンに工夫している。上述した実施形態例にあって
は、図3(A)の非同期式シリアル通信におけるデータ
フォーマットのデータビット(D0〜D7)51〜58
のデータを変更することによるエラー発生を説明した。
しかし、実際の通信における通信エラーは、データフォ
ーマットのD0〜D7ビット51〜58のデータのみで
はなくスタートビット50、パリティビット59及びス
トップビット60にも発生する場合が考えられる。
Next, another embodiment of the communication error generating apparatus according to the present invention will be described. The basic configuration is shown in Fig. 1.
Is similar to the communication error generating apparatus of the first embodiment, however, the communication error generating pattern is devised. In the embodiment described above, the data bits (D0 to D7) 51 to 58 of the data format in the asynchronous serial communication shown in FIG.
The error occurrence by changing the data of the above was explained.
However, a communication error in actual communication may occur not only in the data D0 to D7 bits 51 to 58 of the data format but also in the start bit 50, the parity bit 59, and the stop bit 60.

【0039】そこで、この特定実施形態例の通信エラー
発生装置にあっては、スタートビットの欠落、パリティ
ビットの反転及びストップビット数の変更を追加した。
しかし、シリアル通信エラー発生動作フローチャート
は、図2(A)及び(B)と同様である。そこで、図2
(A)及び(B)の動作フローチャートを参照して説明
する。
Therefore, in the communication error generating apparatus of this specific embodiment, the lack of the start bit, the inversion of the parity bit, and the change of the number of stop bits are added.
However, the flow chart of the serial communication error occurrence operation is the same as in FIGS. 2A and 2B. Therefore, FIG.
A description will be given with reference to the operation flowcharts of (A) and (B).

【0040】通信装置11(又は12)から出力された
データを、SIO13(又は14)を介して取込む(ス
テップ31)。入力装置16からのエラー発生開始指示
の有無をチェックする(ステップ32)。エラー発生開
始指示がない場合には、SIO13(又は14)から取
込んだデータを、そのままSIO14(又は13)を介
して通信装置12(又は11)に送出する(ステップ3
5)。上述のステップ32において入力装置16からエ
ラー発生開始指示が入力された場合には、予め設定され
ているエラー発生条件(スタートビットの欠落、パリテ
ィビットの反転又はストップビット数の変更)に従った
エラー生成を行う(ステップ34)。その後、SIO1
4(又は13)を介して通信装置12(又は11)に送
出する(ステップ35)。
The data output from the communication device 11 (or 12) is captured via the SIO 13 (or 14) (step 31). It is checked whether there is an error occurrence start instruction from the input device 16 (step 32). If there is no error occurrence start instruction, the data fetched from the SIO 13 (or 14) is sent to the communication device 12 (or 11) via the SIO 14 (or 13) as it is (step 3).
5). If an error occurrence start instruction is input from the input device 16 in the above-described step 32, an error according to a preset error occurrence condition (lack of start bits, inversion of parity bits, or change of the number of stop bits) is performed. Generation is performed (step 34). Then, SIO1
4 (or 13) to the communication device 12 (or 11) (step 35).

【0041】このように、本発明の通信エラー発生装置
の他の実施形態例にあっては、上述した第1実施形態例
の場合に比して実際の通信で起きる通信エラーの発生状
況をも加味しているので、一層実動作に近いデバッグや
動作確認が可能である。
As described above, in the other embodiment of the communication error generating apparatus according to the present invention, the occurrence situation of the communication error occurring in the actual communication is smaller than that of the first embodiment. Since this is added, debugging and operation confirmation closer to actual operation are possible.

【0042】以上、本発明の通信エラー発生装置の好適
実施形態例の構成及び動作を詳述した。しかし、本発明
は斯かる特定実施形態例のみに限定されるべきではな
く、本発明の要旨を逸脱することなく種々の変形変更が
可能であること、当業者には容易に理解できよう。
The configuration and operation of the preferred embodiment of the communication error generator according to the present invention have been described in detail. However, it should be understood by those skilled in the art that the present invention should not be limited to only the specific embodiment but various modifications can be made without departing from the spirit of the present invention.

【0043】[0043]

【発明の効果】上述の説明から理解される如く、本発明
の通信エラー発生装置によると、エラー発生条件の設
定、記憶、判定手段を設けるので、単発的なシリアル通
信エラーを発生させ、実動作に近い能動的な通信異常処
理試験の為の環境が容易に提供できる。また、通信エラ
ー発生時には、エラー発生前のデータとエラー発生後の
データを対比して表示装置に表示することができるの
で、エラー発生状況が容易に確認できる。
As will be understood from the above description, according to the communication error generating apparatus of the present invention, since a means for setting, storing and determining error generating conditions is provided, a single serial communication error is generated and actual operation is performed. An environment for an active communication error processing test close to the above can be easily provided. When a communication error occurs, the data before the error and the data after the error can be compared and displayed on the display device, so that the error occurrence status can be easily confirmed.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の通信エラー発生装置の好適実施形態例
のブロック図である。
FIG. 1 is a block diagram of a preferred embodiment of a communication error generating apparatus according to the present invention.

【図2】図1の通信エラー発生装置の動作説明用フロー
チャートである。
FIG. 2 is a flowchart for explaining the operation of the communication error generating device of FIG. 1;

【図3】本発明におけるデータフォーマットを示し、
(A)は非同期式シリアル通信のデータフォーマット、
(B)はデータエラー発生前のデータフォーマット及び
(C)はデータエラー発生後のデータフォーマットであ
る。
FIG. 3 shows a data format according to the present invention;
(A) is a data format of asynchronous serial communication,
(B) shows the data format before the occurrence of the data error, and (C) shows the data format after the occurrence of the data error.

【図4】従来のエラー発生装置を示し、(A)はブロッ
ク図、(B)はD1データフォーマット及び(C)はD
2データフォーマットである。
4A and 4B show a conventional error generating device, FIG. 4A is a block diagram, FIG. 4B is a D1 data format, and FIG.
Two data formats.

【符号の説明】[Explanation of symbols]

11、12 通信装置 1、14 シリアルI/O(SIO) 15 処理装置(CPU) 16 入力装置 17 通信エラー発生装置 18 記憶装置 19 バス 20 表示装置 11, 12 Communication device 1, 14 Serial I / O (SIO) 15 Processing device (CPU) 16 Input device 17 Communication error generating device 18 Storage device 19 Bus 20 Display device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】非同期式シリアルデータ通信機能を有する
1対の通信装置間に配置され、該通信装置間のシリアル
通信にエラーを発生させる通信エラー発生装置におい
て、前記1対の通信装置に対向して接続され、データの
シリアル/パラレル及びパラレル/シリアル変換を行う
1対のシリアルI/Oと、該1対のシリアルI/Oとバ
スにより接続された処理装置と、該処理装置に接続され
エラー発生条件を設定する入力装置及び前記エラー発生
条件を記憶する記憶装置とを備えることを特徴とする通
信エラー発生装置。
1. A communication error generating device which is arranged between a pair of communication devices having an asynchronous serial data communication function and generates an error in serial communication between the communication devices. A pair of serial I / Os for performing serial / parallel and parallel / serial conversion of data, a processing device connected to the pair of serial I / Os via a bus, and an error connected to the processing device. A communication error generating device, comprising: an input device for setting an occurrence condition; and a storage device for storing the error occurrence condition.
【請求項2】前記処理装置は、前記通信装置から前記シ
リアルI/Oを介して送られる特定データに対してのみ
通信エラーを発生することを可能にする請求項1に記載
の通信エラー発生装置。
2. The communication error generating device according to claim 1, wherein said processing device enables a communication error to occur only for specific data sent from said communication device via said serial I / O. .
【請求項3】前記処理装置に接続された表示装置を更に
備え、前記入力装置の設定状況を表示することを特徴と
する請求項1に記載の通信エラー発生装置。
3. The communication error generating device according to claim 1, further comprising a display device connected to said processing device, wherein a display status of said input device is displayed.
【請求項4】前記表示装置は、前記通信エラー条件設定
状況及び通信エラー発生状況を表示することを特徴とす
る請求項3に記載の通信エラー発生装置。
4. The communication error generating device according to claim 3, wherein the display device displays the communication error condition setting status and the communication error occurrence status.
【請求項5】前記表示装置は、エラー発生時のデータ
が、エラー発生前とエラー発生後で対比して表示するこ
とを特徴とする請求項3に記載の通信エラー発生装置。
5. The communication error generating device according to claim 3, wherein the display device displays data at the time of occurrence of the error in comparison with before and after the occurrence of the error.
JP11113513A 1999-04-21 1999-04-21 Communication error generating device Pending JP2000307683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11113513A JP2000307683A (en) 1999-04-21 1999-04-21 Communication error generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11113513A JP2000307683A (en) 1999-04-21 1999-04-21 Communication error generating device

Publications (1)

Publication Number Publication Date
JP2000307683A true JP2000307683A (en) 2000-11-02

Family

ID=14614252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11113513A Pending JP2000307683A (en) 1999-04-21 1999-04-21 Communication error generating device

Country Status (1)

Country Link
JP (1) JP2000307683A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009005160A (en) * 2007-06-22 2009-01-08 Denso Corp Error generation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009005160A (en) * 2007-06-22 2009-01-08 Denso Corp Error generation device

Similar Documents

Publication Publication Date Title
CN113179192A (en) SENT protocol test system and method thereof
JP2000307683A (en) Communication error generating device
CN108595973A (en) Instruction determination method, equipment control method, device and system
CN112363975B (en) Interaction method and interaction system for configuration software and FPGA
JP2020120249A (en) FEC error adding device, test signal generating device using the same, and FEC error adding method
CN111786842B (en) Data processing method and hardware-in-the-loop test system
JP2004178230A (en) Simulated fault generation device and simulated fault generation method
JP2004334551A (en) Serial communication system and local terminal for serial communication
JP2001119448A (en) Control method for data communication device, and data communication device
JP3001008U (en) Data converter
SU935964A1 (en) Apparatus for testing input/output channels
CN113656070A (en) Random instruction verification method and device for processor, electronic equipment and storage medium
JPH04107036A (en) Communication protocol adaptability checking device
JPH11191080A (en) Memory testing device
JPH01248852A (en) Automatic protocol simulator device
JP3567069B2 (en) Matrix test equipment
JPS63263949A (en) Synchronous terminal station test instrument
JPH05120164A (en) Data transfer test system
JPH02140838A (en) Device for generating pseudo abnormal state
JPH05191468A (en) Data converting device
JPH0492951A (en) Parallel processing system
JPH10198592A (en) Database testing device
JPS61169952A (en) Automatic checking method of one-bit error correcting function of memory
JPH03256134A (en) Checking circuit for vector computing element
KR20040016687A (en) Method and apparatus for transmission of serial data