JPH11345150A - Tracing system - Google Patents

Tracing system

Info

Publication number
JPH11345150A
JPH11345150A JP10153092A JP15309298A JPH11345150A JP H11345150 A JPH11345150 A JP H11345150A JP 10153092 A JP10153092 A JP 10153092A JP 15309298 A JP15309298 A JP 15309298A JP H11345150 A JPH11345150 A JP H11345150A
Authority
JP
Japan
Prior art keywords
data
trace
processing unit
generated
unit
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
JP10153092A
Other languages
Japanese (ja)
Inventor
Takehiro Kagaya
武大 加賀谷
Akio Ota
晶夫 太田
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 Corp
NEC Robotics Engineering Ltd
Original Assignee
NEC Corp
NEC Robotics 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 Corp, NEC Robotics Engineering Ltd filed Critical NEC Corp
Priority to JP10153092A priority Critical patent/JPH11345150A/en
Publication of JPH11345150A publication Critical patent/JPH11345150A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To start/stop the selection or collection of trace object data, even during the execution of a function without requiring large capacity for a memory for collecting the trace object data. SOLUTION: Plural kinds of data are generated by executing a predetermined function through a function executing part (such as a communication processing part 1), and when a trace object selecting command is inputted from an input part 5, a trace object flag for designating the kind of data selected by this trace object selecting command, independly of whether or not the function executing part is in the middle of executing the predetermined function is stored in a shared memory 3. Then, the data of the kind designated by the trace object flag among plural kinds of data generated by the function executing part are outputted as trace data, the trace data are stored in a trace data storage part 4 and corresponding to the instruction of the command inputted to the input part 5, the trace data stored in the trace data storage part 4 are outputted to an output part 6.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はトレース方式に関
し、特に選択した種類のデータをトレース対象として収
集するトレース方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tracing method, and more particularly, to a tracing method for collecting selected types of data as tracing targets.

【0002】[0002]

【従来の技術】従来、この種のトレース方式は、予め定
めた機能(例えば、通信機能)を実行することにより発
生する複数の種類のデータ(例えば、送信データ,受信
データ,エラーデータ等)をトレース対象として収集す
るために用いられている。
2. Description of the Related Art Conventionally, this type of tracing method uses a plurality of types of data (for example, transmission data, reception data, error data, etc.) generated by executing a predetermined function (for example, communication function). Used to collect as a trace target.

【0003】従来、この種のトレース方式は、予め定め
た機能を実行することにより発生するすべての種類のデ
ータをトレース対象として大きな容量のメモリに収集
し、収集したのちに必要な種類のデータを選択して表示
している。また、データを収集するメモリの容量を少な
くするために、トレース対象として必要なデータの種類
を予め選択するとき、予め定めた機能(例えば、通信機
能)の実行を停止したのちにトレース対象として必要な
データの種類を選択(例えば、送信データのみを選択)
している。さらに、トレース対象となるデータの収集の
開始や停止に関しても、予め定めた機能が実行されてい
ないときに、この開始や停止の指定をしている。
Conventionally, in this type of tracing method, all types of data generated by executing a predetermined function are collected in a large-capacity memory as a tracing target, and after collecting, the necessary types of data are collected. Selected and displayed. Further, in order to reduce the capacity of a memory for collecting data, when a type of data required as a trace target is preliminarily selected, execution of a predetermined function (for example, a communication function) is stopped and then the trace function is required. Data type (for example, select only transmission data)
doing. Further, regarding the start and stop of the collection of the data to be traced, the start and stop are designated when the predetermined function is not being executed.

【0004】[0004]

【発明が解決しようとする課題】上述した従来のトレー
ス方式は、予め定めた機能を実行することにより発生す
るすべての種類のデータをトレース対象として大きな容
量のメモリに収集し、収集したのちに必要な種類のデー
タを選択して表示しているため、トレース対象となるデ
ータを収集するために大きな容量のメモリが必要になる
という問題がある。また、予め定めた機能の実行を停止
したのちにトレース対象として必要なデータの種類を選
択しているため、収集するデータの種類を選択するとき
に予め定めた機能の実行を停止する必要があるという問
題がある。さらに、トレース対象となるデータの収集の
開始や停止に関しても、予め定めた機能が実行されてい
ないときに、この開始や停止を指定する必要があるとい
う問題がある。
In the above-described conventional tracing method, all types of data generated by executing a predetermined function are collected as trace objects in a large-capacity memory, and are necessary after the collection. Since various types of data are selected and displayed, there is a problem that a large-capacity memory is required to collect data to be traced. Further, since the type of data required as a trace target is selected after the execution of the predetermined function is stopped, it is necessary to stop the execution of the predetermined function when selecting the type of data to be collected. There is a problem. Further, with respect to the start and stop of the collection of data to be traced, there is a problem that it is necessary to designate the start and stop when a predetermined function is not executed.

【0005】本発明の目的はこのような従来の欠点を除
去するため、トレース対象のデータを収集するメモリに
大きな容量がいらず、トレース対象として必要なデータ
の種類を選択するときに、予め定めた機能の実行を停止
する必要がなく、予め定めた機能が実行されているとき
にも、トレース対象となるデータの収集の開始や停止を
指定することができるトレース方式を提供することにあ
る。
[0005] An object of the present invention is to eliminate such a conventional drawback, so that the memory for collecting the data to be traced does not have a large capacity, and when selecting the type of data required as the trace object, it is determined in advance. It is an object of the present invention to provide a tracing method capable of designating the start or stop of the collection of data to be traced even when the execution of a predetermined function is not required and the predetermined function is being executed.

【0006】[0006]

【課題を解決するための手段】本発明の第1のトレース
方式は、予め定めた機能を実行することにより発生する
複数の種類のデータの前記種類を前記機能の実行中に選
択し、この選択した前記種類のデータをトレース対象と
して収集するようにしている。
According to a first tracing method of the present invention, a plurality of types of data generated by executing a predetermined function are selected during execution of the function, and the selection is performed. The above type of data is collected as a trace target.

【0007】本発明の第2のトレース方式は、予め定め
た機能を実行し、前記機能を実行することにより複数の
種類のデータを発生する機能実行部と、前記機能実行部
が発生した前記複数の種類のデータからトレース対象と
するデータを選択するためのトレース対象選択コマンド
を入力する入力部と、前記入力した前記トレース対象選
択コマンドにより選択された前記データの種類を指定す
るためのトレース対象フラグを格納する共有メモリと、
前記機能実行部が発生した前記複数の種類のデータを受
けこれらのデータのうちの前記トレース対象フラグによ
り指定された前記種類のデータをトレースデータにして
出力するトレース処理部と、前記トレース処理部が出力
した前記トレースデータを格納するトレースデータ記憶
部と、前記トレースデータ記憶部が格納した前記トレー
スデータを出力する出力部と、を備えて構成されてい
る。
According to a second tracing method of the present invention, a function executing unit for executing a predetermined function and generating a plurality of types of data by executing the function is provided. Input section for inputting a trace target selection command for selecting data to be traced from among the types of data, and a trace target flag for specifying the type of the data selected by the input trace target selection command A shared memory for storing
A trace processing unit that receives the plurality of types of data generated by the function execution unit, and outputs the type of data designated by the trace target flag among these data as trace data; and A trace data storage unit that stores the output trace data; and an output unit that outputs the trace data stored in the trace data storage unit.

【0008】また、本発明の第2のトレース方式の前記
トレース処理部は、前記機能実行部が前記データを発生
する毎に、この発生した前記データが前記トレース対象
フラグにより指定された前記種類のデータか否かを調
べ、この調べた結果が前記トレース対象フラグにより指
定された前記種類のデータであることを示すときにこの
データをトレースデータにして出力するようにしてい
る。
The trace processing unit of the second tracing method according to the present invention is arranged such that each time the function execution unit generates the data, the generated data is of the type specified by the trace target flag. It is checked whether the data is data, and when the checked result indicates that the data is of the type specified by the trace target flag, the data is output as trace data.

【0009】さらに、本発明の第2のトレース方式の前
記トレース処理部は、前記トレース対象フラグの値が前
記機能実行部が発生する前記データの種類を一つも指定
しないことを示すときには、前記トレースデータを出力
しないようにしている。
Further, the trace processing unit of the second tracing method according to the present invention, when the value of the trace target flag indicates that no type of the data generated by the function execution unit is specified, Data is not output.

【0010】また、本発明の第3のトレース方式は、通
信機能を実行することにより複数の種類のデータを発生
する通信処理部と、前記通信処理部が発生した前記複数
の種類のデータからトレース対象とするデータを選択す
るためのトレース対象選択コマンドを入力する入力部
と、前記入力した前記トレース対象選択コマンドにより
選択された前記データの種類を指定するためのトレース
対象フラグを格納する共有メモリと、前記通信処理部が
発生した前記複数の種類のデータを受けこれらのデータ
のうちの前記トレース対象フラグにより指定された前記
種類のデータをトレースデータにして出力するトレース
処理部と、前記トレース処理部が出力した前記トレース
データを格納するトレースデータ記憶部と、前記トレー
スデータ記憶部が格納した前記トレースデータを出力す
る出力部と、を備えて構成されている。
According to a third tracing method of the present invention, a communication processing unit for generating a plurality of types of data by executing a communication function, and tracing from the plurality of types of data generated by the communication processing unit An input unit for inputting a trace target selection command for selecting target data, a shared memory for storing a trace target flag for specifying the type of the data selected by the input trace target selection command, and A trace processing unit that receives the plurality of types of data generated by the communication processing unit, and outputs the data of the type specified by the trace target flag among these data as trace data; and the trace processing unit. A trace data storage unit for storing the trace data output by Wherein is configured to include an output unit for outputting trace data.

【0011】さらに、本発明の第3のトレース方式の前
記トレース処理部は、前記通信処理部が前記データを発
生する毎に、この発生した前記データが前記トレース対
象フラグにより指定された前記種類のデータか否かを調
べ、この調べた結果が前記トレース対象フラグにより指
定された前記種類のデータであることを示すときにこの
データをトレースデータにして出力するようにしてい
る。
Further, each time the communication processing unit generates the data, the trace processing unit of the third tracing method according to the present invention, the generated data is the type of data designated by the trace target flag. It is checked whether the data is data, and when the checked result indicates that the data is of the type specified by the trace target flag, the data is output as trace data.

【0012】また、本発明の第3のトレース方式の前記
トレース処理部は、前記トレース対象フラグの値が前記
通信処理部が発生する前記データの種類を一つも指定し
ないことを示すときには、前記トレースデータを出力し
ないようにしている。
In the third tracing method according to the present invention, when the value of the tracing target flag indicates that none of the types of data generated by the communication processing unit is specified, Data is not output.

【0013】[0013]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して説明する。
Next, embodiments of the present invention will be described with reference to the drawings.

【0014】図1は、本発明のトレース方式の一つの実
施の形態を示すブロック図である。
FIG. 1 is a block diagram showing one embodiment of a trace method according to the present invention.

【0015】図1に示す本実施の形態は、予め定めた機
能(例えば、データを送受信する通信機能。以後、通信
機能と記載する。)を実行し、この機能を実行すること
により複数の種類のデータ(例えば、送信データ,受信
データ及びエラーデータ。)を発生する機能実行部(例
えば、通信処理部1。以後、通信処理部1と記載す
る。)と、通信処理部1が発生した複数の種類のデータ
からトレース対象とするデータを選択するためのトレー
ス対象選択コマンドを入力するキーボード等の入力部5
と、この入力したトレース対象選択コマンドにより選択
されたデータの種類を指定するためのトレース対象フラ
グを格納する共有メモリ3と、通信処理部1が発生した
複数の種類のデータを受けこれらのデータのうちのトレ
ース対象フラグにより指定された種類のデータをトレー
スデータにして出力するトレース処理部2と、トレース
処理部2が出力したトレースデータを格納するトレース
データ記憶部4と、トレースデータ記憶部4が格納した
トレースデータを出力する表示装置等の出力部6とによ
り構成されている。ここで、エラーデータとは、通信機
能の実行が異常のときに発生するこの異常を示すデータ
である。
In the present embodiment shown in FIG. 1, a predetermined function (for example, a communication function for transmitting and receiving data; hereinafter, referred to as a communication function) is executed, and by executing this function, a plurality of types are provided. (For example, a communication processing unit 1, hereinafter referred to as a communication processing unit 1) for generating data (for example, transmission data, reception data, and error data), Input unit 5 such as a keyboard for inputting a trace target selection command for selecting data to be traced from the data of the type
And a shared memory 3 for storing a trace target flag for designating the type of data selected by the input trace target selection command, and receiving a plurality of types of data generated by the communication processing unit 1 to receive these types of data. The trace processing unit 2 that outputs data of the type specified by the trace target flag as trace data, the trace data storage unit 4 that stores the trace data output by the trace processing unit 2, and the trace data storage unit 4 And an output unit 6 such as a display device for outputting the stored trace data. Here, the error data is data indicating the abnormality that occurs when the execution of the communication function is abnormal.

【0016】通信処理部1は、扱うデータ(送信デー
タ,受信データ及びエラーデータ)毎にそれぞれ対応し
て処理する、送信処理部11,受信処理部12及びエラ
ー出力処理部13により構成されている。
The communication processing unit 1 is composed of a transmission processing unit 11, a reception processing unit 12, and an error output processing unit 13, which process corresponding data (transmission data, reception data, and error data). .

【0017】トレース処理部2は、通信処理部1がデー
タを発生する毎に(すなわち、データが送信されたと
き、このデータ(送信データ)が発生するとし、データ
が受信されたとき、このデータ(受信データ)が発生す
るとし、通信機能の実行の異常時にエラーデータが発生
したとき、このエラーデータが発生するとして、これら
のデータが発生する毎に)、この発生したデータがトレ
ース対象フラグにより指定された種類のデータか否かを
調べ、この調べた結果がトレース対象フラグにより指定
された種類のデータであることを示すときにこのデータ
をトレースデータにして出力するようにしている。そし
て、このトレース対象フラグは、値を持ちこの値により
通信処理部1が発生するデータの種類を複数同時に指定
するようにしている。また、トレース処理部2は、トレ
ース対象フラグの値が通信処理部1が発生するデータの
種類を一つも指定しないことを示す値(例えば、0)の
ときには、トレースデータを出力しないようにしてい
る。そして、このトレース処理部2は、送信トレースデ
ータ取得判定部21,受信トレースデータ取得判定部2
2,エラートレースデータ取得判定部23及びトレース
データ生成部24により構成され、これらの判定部で
は、通信処理部1でデータが発生する毎に共有メモリ3
のトレース対象フラグを見て、このトレース対象フラグ
の値により通信処理部1で発生したデータよりトレース
データを作成するか否かを判定し判定結果がトレースデ
ータを作成することを示すときには通信処理部1で発生
したデータを出力し、トレースデータ生成部24は、こ
のデータを受けこのデータよりトレースデータを作成し
て出力している。
Each time the communication processing unit 1 generates data (that is, when data is transmitted, the trace processing unit 2 generates the data (transmission data)). When the data is received, the trace processing unit 2 generates the data. (Received data) occurs, and when error data occurs at the time of abnormal execution of the communication function, this error data is assumed to occur and each time such data occurs), the generated data is determined by the trace target flag. It is checked whether the data is of a specified type, and when the result of the check indicates that the data is of the type specified by the trace target flag, the data is output as trace data. The trace target flag has a value, and a plurality of types of data generated by the communication processing unit 1 are designated at the same time by the value. The trace processing unit 2 does not output trace data when the value of the trace target flag is a value (for example, 0) indicating that none of the types of data generated by the communication processing unit 1 is specified. . The trace processing unit 2 includes a transmission trace data acquisition determination unit 21 and a reception trace data acquisition determination unit 2.
2, an error trace data acquisition determining section 23 and a trace data generating section 24. Each of these determining sections includes a shared memory 3 each time data is generated in the communication processing section 1.
Of the trace target flag, it is determined whether or not to create trace data from data generated in the communication processing unit 1 based on the value of the trace target flag. If the determination result indicates that trace data is to be created, the communication processing unit The data generated in step 1 is output, and the trace data generator 24 receives the data, creates trace data from the data, and outputs the data.

【0018】なお、図1には、予め定められたトレース
対象フラグを格納した初期設定ファイルを併せて示して
いる。
FIG. 1 also shows an initialization file storing predetermined trace target flags.

【0019】次に、本実施の形態のトレース方式の動作
を図2を参照して詳細に説明する。
Next, the operation of the trace system according to the present embodiment will be described in detail with reference to FIG.

【0020】図2は、本発明の一つの実施の形態の動作
の一例を示す流れ図である。
FIG. 2 is a flowchart showing an example of the operation of one embodiment of the present invention.

【0021】図1において、まず、入力部5の操作によ
り、初期設定ファイルに予め格納してあるトレース対象
フラグを共有メモリ3へ格納する(S1)。そして、入
力部5よりトレース対象選択コマンドの入力がなけれ
ば、このトレース対象フラグの値が示す種類のデータを
トレースデータとしてトレースデータ記憶部4に確保す
るようにすることになり、また、トレース対象選択コマ
ンドが入力部5より入力されたときには、機能実行部
(例えば、通信処理部1)が予め定めた機能(例えば、
通信機能)の実行中か否かに関わらず、このコマンドの
引数を共有メモリ3へ、新たなトレース対象フラグとし
て格納する。
In FIG. 1, first, by operating the input unit 5, a trace target flag previously stored in the initialization file is stored in the shared memory 3 (S1). If there is no input of the trace target selection command from the input unit 5, data of the type indicated by the value of the trace target flag is secured as trace data in the trace data storage unit 4. When the selection command is input from the input unit 5, the function execution unit (for example, the communication processing unit 1) performs a predetermined function (for example,
Regardless of whether or not the communication function is being executed, the argument of this command is stored in the shared memory 3 as a new trace target flag.

【0022】次に、例えば、送信データが送信処理部1
1で発生した(S2)ときに、送信トレースデータ取得
判定部21は、共有メモリ3内のトレース対象フラグの
値を調べ、この値がこの送信データよりトレースデータ
すなわち、送信トレースデータを作成することを示して
いるか否かを判定し(S3)、判定した結果が、送信ト
レースデータを作成することを示していた場合には、送
信データをトレースデータ生成部24に出力し、トレー
スデータ生成部24はこの送信データより送信トレース
データを生成しトレースデータ記憶部4へ出力し、トレ
ースデータ記憶部4はこの送信トレースデータを格納す
る(S3)。ステップ3(S3)で判定した結果が、送
信トレースデータを作成することを示していない場合に
は、ステップ5(S5)へと続ける。
Next, for example, the transmission data is transmitted to the transmission processing unit 1.
1 (S2), the transmission trace data acquisition determining unit 21 checks the value of the trace target flag in the shared memory 3 and determines that the value of this flag is used to create trace data, that is, transmission trace data. Is determined (S3). If the determination result indicates that transmission trace data is to be created, the transmission data is output to the trace data generation unit 24, and the trace data generation unit 24 Generates transmission trace data from the transmission data and outputs it to the trace data storage unit 4, and the trace data storage unit 4 stores the transmission trace data (S3). If the result determined in step 3 (S3) does not indicate that transmission trace data is to be created, the process continues to step 5 (S5).

【0023】同様に、例えば、受信データが受信処理部
12で発生した(S5)ときに、受信トレースデータ取
得判定部22は、共有メモリ3内のトレース対象フラグ
の値を調べ、この値がこの受信データよりトレースデー
タすなわち、受信トレースデータを作成することを示し
ているか否かを判定し(S6)、判定した結果が、受信
トレースデータを作成することを示していた場合には、
受信データをトレースデータ生成部24に出力しトレー
スデータ生成部24はこの受信データより受信トレース
データを生成しトレースデータ記憶部4へ出力し、トレ
ースデータ記憶部4はこの受信トレースデータを格納す
る(S7)。ステップ6(S6)で判定したトレース対
象フラグの値が、受信トレースデータを作成することを
示していない場合には、ステップ8(S8)へと続け
る。
Similarly, for example, when the reception data is generated in the reception processing unit 12 (S5), the reception trace data acquisition determination unit 22 checks the value of the trace target flag in the shared memory 3, and this value is It is determined whether or not the trace data, that is, the creation of the reception trace data, is determined from the reception data (S6). If the determination result indicates that the reception trace data is to be created,
The received data is output to the trace data generating unit 24, which generates the received trace data from the received data and outputs it to the trace data storage unit 4. The trace data storage unit 4 stores the received trace data ( S7). If the value of the trace target flag determined in step 6 (S6) does not indicate that the reception trace data is to be created, the process continues to step 8 (S8).

【0024】更に、例えば、エラーデータがエラー出力
処理部13で発生した(S8)ときに、エラートレース
データ取得判定部23は、共有メモリ3内のトレース対
象フラグの値を調べ、この値がこのエラーデータよりト
レースデータすなわち、エラートレースデータを作成す
ることを示しているか否かを判定し(S9)、判定した
結果が、エラートレースデータを作成することを示して
いた場合には、エラーデータをトレースデータ生成部2
4に出力しトレースデータ生成部24はこのエラーデー
タよりエラートレースデータを生成しトレースデータ記
憶部4へ出力し、トレースデータ記憶部4はこのエラー
トレースデータを格納する(S10)。ステップ9(S
9)で判定した結果が、エラートレースデータを作成す
ることを示していない場合には、ステップ11(S1
1)へと続ける。エラーデータが発生(S8)していな
いときや、発生しても重大なエラーでないときには(S
11)、ステップ2(S2)へと続け、処理を続行す
る。そして、最終的に、入力部5に入力されたトレース
データ表示コマンドの指示により、出力部6は、トレー
スデータ記憶部4が格納したトレースデータを出力す
る。
Further, for example, when the error data is generated in the error output processing unit 13 (S8), the error trace data acquisition determining unit 23 checks the value of the trace target flag in the shared memory 3, and this value is It is determined from the error data whether or not the trace data, that is, the creation of the error trace data, is determined (S9). If the determined result indicates that the error trace data is to be created, the error data is determined. Trace data generator 2
4, the trace data generation unit 24 generates error trace data from the error data, and outputs the error trace data to the trace data storage unit 4. The trace data storage unit 4 stores the error trace data (S10). Step 9 (S
If the result determined in step 9) does not indicate that error trace data is to be created, step 11 (S1)
Continue to 1). When no error data has been generated (S8), or when it is not a serious error (S8),
11), continue to step 2 (S2) and continue the process. Finally, the output unit 6 outputs the trace data stored in the trace data storage unit 4 according to the instruction of the trace data display command input to the input unit 5.

【0025】本実施の形態では、送信データ,受信デー
タ及びエラーデータの発生をステップ2(S2),ステ
ップ5(S5)及びステップ8(S8)にて順に判定し
て処理するようにしているが、データが発生した時点で
発生したデータの種類に対応した処理を行うようにして
も良い。
In this embodiment, the occurrence of transmission data, reception data and error data is determined and processed in steps 2 (S2), 5 (S5) and 8 (S8) in this order. Alternatively, a process corresponding to the type of data generated when the data is generated may be performed.

【0026】図3は、本発明のトレース方式の他の実施
の形態を示すブロック図である。
FIG. 3 is a block diagram showing another embodiment of the trace method according to the present invention.

【0027】図3に示す本実施の形態は、予め定めた機
能(例えば、データを送受信する通信機能。以後、通信
機能と記載する。)を実行し、この機能を実行すること
により複数の種類のデータ(例えば、送信メッセージデ
ータ,送信パケットデータ,受信メッセージデータ,受
信パケットデータ及びエラーデータ。)を発生する機能
実行部(例えば、通信処理部7。以後、通信処理部7と
記載する。)と、通信処理部7が発生した複数の種類の
データからトレース対象とするデータを選択するための
トレース対象選択コマンドを入力するキーボード等の入
力部5と、この入力したトレース対象選択コマンドによ
り選択されたデータの種類を指定するためのトレース対
象フラグを格納する共有メモリ3と、通信処理部7が発
生した複数の種類のデータを受けこれらのデータのうち
のトレース対象フラグにより指定された種類のデータを
トレースデータにして出力するトレース処理部8と、ト
レース処理部8が出力したトレースデータを格納するト
レースデータ記憶部4と、トレースデータ記憶部4が格
納したトレースデータを出力する表示装置等の出力部6
とにより構成されている。ここで、エラーデータとは、
通信機能の実行が異常のときに発生するこの異常を示す
データである。
In the present embodiment shown in FIG. 3, a predetermined function (for example, a communication function for transmitting and receiving data; hereinafter, referred to as a communication function) is executed, and a plurality of types are executed by executing this function. (For example, a communication processing unit 7, hereinafter referred to as a communication processing unit 7) for generating data (e.g., transmission message data, transmission packet data, reception message data, reception packet data, and error data). An input unit 5 such as a keyboard for inputting a trace target selection command for selecting data to be traced from a plurality of types of data generated by the communication processing unit 7; Shared memory 3 for storing a trace target flag for designating the type of the data, and a plurality of types generated by the communication processing unit 7. A trace processing unit 8 that receives data and outputs the data of the type specified by the trace target flag out of these data as trace data; a trace data storage unit 4 that stores the trace data output by the trace processing unit 8; Output unit 6 such as a display device for outputting the trace data stored in trace data storage unit 4
It is composed of Here, the error data is
This data indicates the abnormality that occurs when the execution of the communication function is abnormal.

【0028】通信処理部7は、扱うデータ(送信メッセ
ージデータ,送信パケットデータ,受信メッセージデー
タ,受信パケットデータ及びエラーデータ)毎にそれぞ
れ対応して処理する、送信処理部11内の送信メッセー
ジ処理部72,送信パケット処理部71、受信処理部1
2内の受信メッセージ処理部74,受信パケット処理部
73及びエラー出力処理部75により構成されている。
The communication processing unit 7 performs processing corresponding to each data (transmission message data, transmission packet data, reception message data, reception packet data, and error data) to be handled. 72, transmission packet processing unit 71, reception processing unit 1
2 includes a received message processing unit 74, a received packet processing unit 73, and an error output processing unit 75.

【0029】トレース処理部8は、通信処理部7がデー
タを発生する毎に(すなわち、メッセージデータを送信
するためにこのメッセージデータが通信処理部7に送ら
れてきたとき、このメッセージデータ(送信メッセージ
データ)が発生するとし、送信メッセージデータがパケ
ットデータに分解されこのパケットデータが送信された
とき、このパケットデータ(送信パケットデータ)が発
生するとし、パケットを受信したとき、このパケット
(受信パケット)が発生するとし、これらの受信パケッ
トによりメッセージを組み立てたとき、このメッセージ
(受信メッセージ)が発生するとし、通信機能の実行の
異常時にエラーデータが発生したとき、このエラーデー
タが発生するとして、これらのデータが発生する毎
に)、この発生したデータがトレース対象フラグにより
指定された種類のデータか否かを調べ、この調べた結果
がトレース対象フラグにより指定された種類のデータで
あることを示すときにこのデータをトレースデータにし
て出力するようにしている。そして、このトレース対象
フラグは、値を持ちこの値により通信処理部7が発生す
るデータの種類を複数同時に指定するようにしている。
また、トレース処理部8は、トレース対象フラグの値が
通信処理部7が発生するデータの種類を一つも指定しな
いことを示す値(例えば、0)のときには、トレースデ
ータを出力しないようにしている。そして、このトレー
ス処理部8は、送信メッセージトレースデータ取得判定
部82,送信パケットトレースデータ取得判定部81,
受信メッセージトレースデータ取得判定部84,受信パ
ケットトレースデータ取得判定部83,エラートレース
データ取得判定部85及びトレースデータ生成部86に
より構成され、これらの判定部では、通信処理部7でデ
ータが発生する毎に共有メモリ3のトレース対象フラグ
を見て、このトレース対象フラグの値により通信処理部
7で発生したデータよりトレースデータを作成するか否
かを判定し判定結果がトレースデータを作成することを
示すときには通信処理部7で発生したデータを出力し、
トレースデータ生成部86は、このデータを受けこのデ
ータよりトレースデータを作成して出力している。
Each time the communication processing unit 7 generates data (that is, when the message data is sent to the communication processing unit 7 to transmit the message data, the trace processing unit 8 Message data), the transmitted message data is decomposed into packet data, and when this packet data is transmitted, this packet data (transmitted packet data) is generated. When the packet is received, this packet (received packet) ) Occurs, when a message is assembled from these received packets, this message (received message) occurs, and when error data occurs when the execution of the communication function is abnormal, this error data occurs. Each time these data occur), Is a data of the type specified by the trace target flag, and when the result of the check indicates that the data is of the type specified by the trace target flag, this data is output as trace data. ing. The trace target flag has a value, and the value specifies a plurality of types of data generated by the communication processing unit 7 at the same time.
When the value of the trace target flag is a value (for example, 0) indicating that no type of data generated by the communication processing unit 7 is specified, the trace processing unit 8 does not output the trace data. . The trace processing unit 8 includes a transmission message trace data acquisition determination unit 82, a transmission packet trace data acquisition determination unit 81,
It comprises a received message trace data acquisition determination section 84, a reception packet trace data acquisition determination section 83, an error trace data acquisition determination section 85, and a trace data generation section 86. In these determination sections, data is generated in the communication processing section 7. Each time the trace target flag of the shared memory 3 is checked, it is determined whether or not to create trace data from the data generated by the communication processing unit 7 based on the value of the trace target flag. When indicated, the data generated by the communication processing unit 7 is output,
The trace data generator 86 receives the data, creates trace data from the data, and outputs the data.

【0030】なお、図3には、予め定められたトレース
対象フラグを格納した初期設定ファイルを併せて示して
いる。
FIG. 3 also shows an initialization file storing a predetermined trace target flag.

【0031】次に、本実施の形態のトレース方式の動作
を図4を参照して詳細に説明する。
Next, the operation of the trace system according to the present embodiment will be described in detail with reference to FIG.

【0032】図4は、本発明の他の実施の形態の動作の
一例を示す流れ図である。
FIG. 4 is a flowchart showing an example of the operation of another embodiment of the present invention.

【0033】図3において、まず、入力部5の操作によ
り、初期設定ファイルに予め格納してあるトレース対象
フラグを共有メモリ3へ格納する(S21)。そして、
入力部5よりトレース対象選択コマンドの入力がなけれ
ば、このトレース対象フラグの値が示す種類のデータを
トレースデータとしてトレースデータ記憶部4に確保す
るようにすることになり、また、トレース対象選択コマ
ンドが入力部5より入力されたときには、機能実行部
(例えば、通信処理部7)が予め定めた機能(例えば、
通信機能)の実行中か否かに関わらず、このコマンドの
引数を共有メモリ3へ、新たなトレース対象フラグとし
て格納する。
In FIG. 3, first, by operating the input unit 5, a trace target flag stored in the initialization file in advance is stored in the shared memory 3 (S21). And
If there is no input of the trace target selection command from the input unit 5, data of the type indicated by the value of the trace target flag is to be secured in the trace data storage unit 4 as trace data. Is input from the input unit 5, the function execution unit (for example, the communication processing unit 7) sets a predetermined function (for example,
Regardless of whether or not the communication function is being executed, the argument of this command is stored in the shared memory 3 as a new trace target flag.

【0034】次に、例えば、メッセージデータを送信す
るためにこのメッセージデータ(送信メッセージデー
タ)が送信処理部11に送られ、この送信メッセージデ
ータを送信メッセージ処理部72が受け取ったときに
(S22)、送信メッセージトレースデータ取得判定部
82は、共有メモリ3内のトレース対象フラグの値を調
べ、この値がこの送信メッセージデータよりトレースデ
ータすなわち、送信メッセージトレースデータを作成す
ることを示しているか否かを判定し(S23)、判定し
た結果が、送信メッセージトレースデータを作成するこ
とを示していた場合には、送信メッセージデータをトレ
ースデータ生成部86に出力し、トレースデータ生成部
86はこの送信メッセージデータより送信メッセージト
レースデータを生成しトレースデータ記憶部4へ出力
し、トレースデータ記憶部4はこの送信メッセージトレ
ースデータを格納する(S24)。ステップ23(S2
3)で判定した結果が、送信メッセージトレースデータ
を作成することを示していない場合には、ステップ25
(S25)へと続ける。そして、送信メッセージ処理部
72はこのステップ22(S22)で受け取った送信メ
ッセージデータをパケット単位に分解して送信パケット
データを作成し送信パケット処理部71へ渡し(S2
5)、送信パケット処理部71は、この送信パケットデ
ータを送信する(S26)。このようにして送信パケッ
トデータが発生したとき、送信パケットトレースデータ
取得判定部81は、共有メモリ3内のトレース対象フラ
グの値を調べ、この値がこの送信パケットデータよりト
レースデータすなわち、送信パケットトレースデータを
作成することを示しているか否かを判定し(S27)、
判定した結果が送信パケットトレースデータを作成する
ことを示していた場合には、送信パケットデータをトレ
ースデータ生成部86に出力し、トレースデータ生成部
86はこの送信パケットデータより送信パケットトレー
スデータを生成しトレースデータ記憶部4へ出力し、ト
レースデータ記憶部4はこの送信パケットトレースデー
タを格納する(S28)。ステップ27(S27)で判
定した結果が送信パケットトレースデータを作成するこ
とを示していない場合には、ステップ29(S29)へ
と続ける。次に、ステップ25(S25)で作成した送
信すべき送信パケットデータがまだあるか否か調査し
(S29)、送信パケットデータがまだあるときにはス
テップ26(S26)へと続ける。送信パケットデータ
がもうないときにはステップ30(S30)へと続け
る。
Next, for example, the message data (transmission message data) is transmitted to the transmission processing unit 11 to transmit the message data, and when the transmission message processing unit 72 receives the transmission message data (S22). The transmission message trace data acquisition determining unit 82 checks the value of the tracing target flag in the shared memory 3 and determines whether the value indicates that trace data, that is, transmission message trace data is created from the transmission message data. (S23), and if the result of the determination indicates that transmission message trace data is to be created, the transmission message data is output to the trace data generation unit 86, and the trace data generation unit 86 Generate send message trace data from data And outputs to the trace data storage unit 4, the trace data storage unit 4 stores the transmission message trace data (S24). Step 23 (S2
If the result determined in 3) does not indicate that transmission message trace data is to be created, step 25
Continue to (S25). Then, the transmission message processing section 72 decomposes the transmission message data received in step 22 (S22) into packet units, creates transmission packet data, and transfers it to the transmission packet processing section 71 (S2).
5) The transmission packet processing unit 71 transmits the transmission packet data (S26). When the transmission packet data is generated in this manner, the transmission packet trace data acquisition determining unit 81 checks the value of the trace target flag in the shared memory 3 and determines the value of the trace data flag from the transmission packet data, that is, the transmission packet trace data. It is determined whether or not it indicates that data is to be created (S27),
If the determination result indicates that transmission packet trace data is to be created, the transmission packet data is output to the trace data generation unit 86, and the trace data generation unit 86 generates transmission packet trace data from the transmission packet data. Then, the data is output to the trace data storage unit 4, and the trace data storage unit 4 stores the transmission packet trace data (S28). If the result determined in step 27 (S27) does not indicate that transmission packet trace data is to be created, the process continues to step 29 (S29). Next, it is checked whether or not there is still transmission packet data to be transmitted created in step 25 (S25) (S29). If there is transmission packet data, the process continues to step 26 (S26). When there is no more transmission packet data, the process continues to step 30 (S30).

【0035】同等に、例えば、受信パケットデータが受
信パケット処理部73で発生したときに(S30)、受
信パケットトレースデータ取得判定部83は、共有メモ
リ3内のトレース対象フラグの値を調べ、この値がこの
受信パケットデータよりトレースデータすなわち、受信
パケットトレースデータを作成することを示しているか
否かを判定し(S31)、判定した結果が、受信パケッ
トトレースデータを作成することを示していた場合に
は、受信パケットデータをトレースデータ生成部86に
出力し、トレースデータ生成部86はこの受信パケット
データより受信パケットトレースデータを生成しトレー
スデータ記憶部4へ出力し、トレースデータ記憶部4は
この受信パケットトレースデータを格納する(S3
2)。ステップ31(S31)で判定した結果が、受信
パケットトレースデータを作成することを示していない
場合には、ステップ33(S33)へと続ける。そし
て、受信パケット処理部73は、メッセージ組立分の受
信パケットを受けたか否かを調査し(S33)、調査し
た結果がメッセージ組立分の受信パケットを受けていな
いことを示すときには、ステップ30(S30)へと続
ける。ステップ33(S33)で調査した結果がメッセ
ージ組立分の受信パケットを受けていることを示すとき
には、ステップ34(S34)へと続ける。そして、受
信パケット処理部73はこのパケットデータによりメッ
セージデータを組み立てて受信メッセージデータを作成
し受信メッセージ処理部74へ渡す(S34)。受信メ
ッセージ処理部74にこのようにして受信メッセージデ
ータが発生したとき、受信メッセージトレースデータ取
得判定部84は、共有メモリ3内のトレース対象フラグ
の値を調べ、この値がこの受信メッセージデータよりト
レースデータすなわち、受信メッセージトレースデータ
を作成することを示しているか否かを判定し(S3
5)、判定した結果が受信メッセージトレースデータを
作成することを示していた場合には、受信メッセージデ
ータをトレースデータ生成部86に出力し、トレースデ
ータ生成部86はこの受信メッセージデータより受信メ
ッセージトレースデータを生成しトレースデータ記憶部
4へ出力し、トレースデータ記憶部4はこの受信メッセ
ージトレースデータを格納する(S36)。ステップ3
5(S35)で判定した結果が受信メッセージトレース
データを作成することを示していない場合には、ステッ
プ37(S37)へと続ける。
Similarly, for example, when the received packet data is generated in the received packet processing unit 73 (S30), the received packet trace data acquisition determining unit 83 checks the value of the trace target flag in the shared memory 3, and It is determined whether or not the value indicates that trace data, that is, received packet trace data is to be created from the received packet data (S31). If the determination result indicates that received packet trace data is to be created, , The received packet data is output to the trace data generating unit 86, the trace data generating unit 86 generates the received packet trace data from the received packet data and outputs it to the trace data storage unit 4, and the trace data storage unit 4 The received packet trace data is stored (S3
2). If the result determined in step 31 (S31) does not indicate that received packet trace data is to be created, the process continues to step 33 (S33). Then, the received packet processing unit 73 checks whether or not the received packet for the message assembly has been received (S33). If the check result indicates that the received packet for the message assembly has not been received, step 30 (S30). Continue to). If the result of the check in step 33 (S33) indicates that the received packet for the message assembly has been received, the process continues to step 34 (S34). Then, the received packet processing unit 73 assembles the message data based on the packet data, creates the received message data, and transfers it to the received message processing unit 74 (S34). When the received message data is generated in the received message processing unit 74 in this way, the received message trace data acquisition determining unit 84 checks the value of the trace target flag in the shared memory 3, and this value is traced from the received message data. It is determined whether the data indicates that the received message trace data is to be created (S3).
5) If the result of the determination indicates that the received message trace data is to be created, the received message data is output to the trace data generator 86, and the trace data generator 86 outputs the received message trace data from the received message data. Data is generated and output to the trace data storage unit 4, and the trace data storage unit 4 stores the received message trace data (S36). Step 3
If the result determined in step 5 (S35) does not indicate that the received message trace data is to be created, the process continues to step 37 (S37).

【0036】更に、例えば、エラーデータがエラー出力
処理部75で発生した(S37)ときに、エラートレー
スデータ取得判定部85は、共有メモリ3内のトレース
対象フラグの値を調べ、この値がこのエラーデータより
トレースデータすなわち、エラートレースデータを作成
することを示しているか否かを判定し(S38)、判定
した結果が、エラートレースデータを作成することを示
していた場合には、エラーデータをトレースデータ生成
部86に出力し、トレースデータ生成部86はこのエラ
ーデータよりエラートレースデータを生成しトレースデ
ータ記憶部4へ出力し、トレースデータ記憶部4はこの
エラートレースデータを格納する(S39)。ステップ
38(S38)で判定した結果が、エラートレースデー
タを作成することを示していない場合には、ステップ4
0(S40)へと続ける。エラーデータが発生(S3
7)していないときや、発生しても重大なエラーでない
ときには(S40)、ステップ22(S22)へと続
け、処理を続行する。そして、最終的に、入力部5に入
力されたトレースデータ表示コマンドの指示により、出
力部6は、トレースデータ記憶部4が格納したトレース
データを出力する。
Further, for example, when the error data is generated in the error output processing unit 75 (S37), the error trace data acquisition determining unit 85 checks the value of the trace target flag in the shared memory 3, and this value is It is determined whether or not trace data, that is, error trace data is to be created, from the error data (S38). If the determination result indicates that error trace data is to be created, the error data is determined. The trace data is output to the trace data generator 86, which generates error trace data from the error data and outputs the error trace data to the trace data storage 4, and the trace data storage 4 stores the error trace data (S39). . If the result determined in step 38 (S38) does not indicate that error trace data is to be created, step 4
Continue to 0 (S40). Error data is generated (S3
7) If not, or if a serious error does not occur (S40), the process continues to step 22 (S22) and the process is continued. Finally, the output unit 6 outputs the trace data stored in the trace data storage unit 4 according to the instruction of the trace data display command input to the input unit 5.

【0037】本実施の形態では、送信メッセージデー
タ,送信パケットデータ,受信メッセージデータ,受信
パケットデータ及びエラーデータの発生を順に判定して
処理するようにしているが、データが発生した時点で発
生したデータの種類に対応した処理を行うようにしても
良い。
In the present embodiment, the occurrence of transmission message data, transmission packet data, reception message data, reception packet data, and error data is determined and processed in order. Processing corresponding to the type of data may be performed.

【0038】[0038]

【発明の効果】以上説明したように、本発明のトレース
方式によれば、機能実行部(例えば、通信処理部。)に
より、予め定めた機能(例えば、通信機能)を実行し、
この機能を実行することにより複数の種類のデータ(例
えば、送信データ,受信データ及びエラーデータ。)を
発生し、トレース対象選択コマンドが入力部より入力さ
れたとき、機能実行部が予め定めた機能の実行中か否か
に関わらず、このトレース対象選択コマンドにより選択
されたデータの種類を指定するためのトレース対象フラ
グを共有メモリに格納し、トレース処理部により、機能
実行部が発生した複数の種類のデータを受けこれらのデ
ータのうちのトレース対象フラグにより指定された種類
のデータをトレースデータにして出力し、トレースデー
タ記憶部により、トレース処理部が出力したトレースデ
ータを格納し、入力部に入力したコマンドの指示により
トレースデータ記憶部が格納したトレースデータを表示
装置等の出力部に出力するため、共有メモリに格納した
トレース対象フラグによりトレースを所望するデータの
みを指定できるので、機能実行部が発生するすべてのデ
ータを収集する必要がなく、トレース対象のデータを収
集するメモリに大きな容量がいらない。また、機能実行
部が予め定めた機能の実行中か否かに関わらず、入力部
より入力したトレース対象選択コマンドに対応したトレ
ース対象フラグを共有メモリに格納するので、トレース
対象として必要なデータの種類を選択するときに、予め
定めた機能の実行を停止する必要がなく、また、トレー
ス対象フラグの値を例えば0にすることによりすべての
データをトレース対象にしないようにしたり、0以外の
値にすることによりトレース対象にするデータを指定で
きるので、予め定めた機能が実行されているときにも、
トレース対象となるデータの収集の停止や開始を指定す
ることができる。
As described above, according to the tracing method of the present invention, a predetermined function (for example, a communication function) is executed by a function execution unit (for example, a communication processing unit).
By executing this function, a plurality of types of data (for example, transmission data, reception data, and error data) are generated, and when a trace target selection command is input from the input unit, the function execution unit determines a predetermined function. Irrespective of whether or not the execution is being performed, a trace target flag for specifying the type of data selected by the trace target selection command is stored in the shared memory, and the trace processing unit Receives the data of the type, outputs the data of the type specified by the trace target flag among these data as trace data, stores the trace data output by the trace processing unit in the trace data storage unit, and stores the trace data in the input unit. The trace data stored in the trace data storage unit according to the instruction of the input command is output to an output unit such as a display device. Therefore, only the data desired to be traced can be specified by the trace target flag stored in the shared memory, so that it is not necessary for the function execution unit to collect all the data generated, and the memory for collecting the data to be traced has a large size. No need for capacity. Also, regardless of whether the function execution unit is executing a predetermined function, the trace target flag corresponding to the trace target selection command input from the input unit is stored in the shared memory, so that the data required as the trace target is stored. When selecting the type, there is no need to stop the execution of the predetermined function, and by setting the value of the trace target flag to, for example, 0, all data is not made to be traced. By setting the data to be traced, it is possible to specify even when a predetermined function is being executed.
You can specify whether to stop or start collecting data to be traced.

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

【図1】本発明のトレース方式の一つの実施の形態を示
すブロック図である。
FIG. 1 is a block diagram showing one embodiment of a trace method according to the present invention.

【図2】本発明の一つの実施の形態の動作の一例を示す
流れ図である。
FIG. 2 is a flowchart showing an example of the operation of one embodiment of the present invention.

【図3】本発明のトレース方式の他の実施の形態を示す
ブロック図である。
FIG. 3 is a block diagram showing another embodiment of the tracing method of the present invention.

【図4】本発明の他の実施の形態の動作の一例を示す流
れ図である。
FIG. 4 is a flowchart showing an example of the operation of another embodiment of the present invention.

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

1 通信処理部 2 トレース処理部 3 共有メモリ 4 トレースデータ記憶部 5 入力部 6 出力部 7 通信処理部 8 トレース処理部 11 送信処理部 12 受信処理部 13 エラー出力処理部 21 送信トレースデータ取得判定部 22 受信トレースデータ取得判定部 23 エラートレースデータ取得判定部 24 トレースデータ生成部 71 送信パケット処理部 72 送信メッセージ処理部 73 受信パケット処理部 74 受信メッセージ処理部 75 エラー出力処理部 81 送信パケットトレースデータ取得判定部 82 送信メッセージトレースデータ取得判定部 83 受信パケットトレースデータ取得判定部 84 受信メッセージトレースデータ取得判定部 85 エラートレースデータ取得判定部 86 トレースデータ生成部 Reference Signs List 1 communication processing unit 2 trace processing unit 3 shared memory 4 trace data storage unit 5 input unit 6 output unit 7 communication processing unit 8 trace processing unit 11 transmission processing unit 12 reception processing unit 13 error output processing unit 21 transmission trace data acquisition determination unit 22 Received Trace Data Acquisition Determination Unit 23 Error Trace Data Acquisition Determination Unit 24 Trace Data Generation Unit 71 Transmission Packet Processing Unit 72 Transmission Message Processing Unit 73 Receive Packet Processing Unit 74 Receive Message Processing Unit 75 Error Output Processing Unit 81 Transmission Packet Trace Data Acquisition Judgment unit 82 Transmission message trace data acquisition judgment unit 83 Received packet trace data acquisition judgment unit 84 Received message trace data acquisition judgment unit 85 Error trace data acquisition judgment unit 86 Trace data generation unit

フロントページの続き (72)発明者 太田 晶夫 神奈川県横浜市神奈川区新浦島町 1丁目 1番地25 日本電気ロボットエンジニアリ ング株式会社内Continuation of front page (72) Inventor Akio Ota 1-1-25 Shinurashima-cho, Kanagawa-ku, Yokohama-shi, Kanagawa Prefecture Inside of NEC Robotics Engineering Co., Ltd.

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 予め定めた機能を実行することにより発
生する複数の種類のデータの前記種類を前記機能の実行
中に選択し、この選択した前記種類のデータをトレース
対象として収集するようにしたことを特徴とするトレー
ス方式。
1. A plurality of types of data generated by executing a predetermined function are selected during execution of the function, and the selected type of data is collected as a trace target. A tracing method characterized in that:
【請求項2】 前記データの前記種類を複数選択したと
きには、この複数の前記種類のデータをトレース対象と
して収集するようにしたことを特徴とする請求項1記載
のトレース方式。
2. The tracing method according to claim 1, wherein when a plurality of types of the data are selected, the plurality of types of data are collected as trace targets.
【請求項3】 前記データの前記種類を一つも選択しな
かったときには、前記データをトレース対象として収集
しないようにしたことを特徴とする請求項1記載のトレ
ース方式。
3. The tracing method according to claim 1, wherein the data is not collected as a trace target when none of the types of the data is selected.
【請求項4】 前記予め定めた機能は、前記データを送
受信する通信機能であり、前記データは前記通信機能を
実行することにより発生する送信データと受信データと
であることを特徴とする請求項1、2又は3記載のトレ
ース方式。
4. The communication device according to claim 1, wherein the predetermined function is a communication function for transmitting and receiving the data, and the data is transmission data and reception data generated by executing the communication function. The tracing method according to 1, 2, or 3.
【請求項5】 予め定めた前記機能の実行が異常のとき
に発生するこの異常を示すエラーデータを、前記予め定
めた機能を実行することにより発生する前記複数の種類
のデータのうちの一つの種類のデータとするようにした
ことを特徴とする請求項1、2、3又は4記載のトレー
ス方式。
5. An error data which is generated when the execution of the predetermined function is abnormal and which indicates the abnormality is performed by using one of the plurality of types of data generated by executing the predetermined function. 5. The tracing method according to claim 1, wherein the tracing method is a kind of data.
【請求項6】 予め定めた機能を実行し、前記機能を実
行することにより複数の種類のデータを発生する機能実
行部と、 前記機能実行部が発生した前記複数の種類のデータから
トレース対象とするデータを選択するためのトレース対
象選択コマンドを入力する入力部と、 前記入力した前記トレース対象選択コマンドにより選択
された前記データの種類を指定するためのトレース対象
フラグを格納する共有メモリと、 前記機能実行部が発生した前記複数の種類のデータを受
けこれらのデータのうちの前記トレース対象フラグによ
り指定された前記種類のデータをトレースデータにして
出力するトレース処理部と、 前記トレース処理部が出力した前記トレースデータを格
納するトレースデータ記憶部と、 前記トレースデータ記憶部が格納した前記トレースデー
タを出力する出力部と、 を備えたことを特徴とするトレース方式。
6. A function execution unit that executes a predetermined function and generates a plurality of types of data by executing the function, and determines a trace target from the plurality of types of data generated by the function execution unit. An input unit for inputting a trace target selection command for selecting data to be executed; a shared memory for storing a trace target flag for specifying a type of the data selected by the input trace target selection command; A trace processing unit that receives the plurality of types of data generated by the function execution unit and outputs the data of the type specified by the trace target flag among these data as trace data; and the trace processing unit outputs A trace data storage unit for storing the trace data obtained, and before the trace data storage unit stores the trace data. Trace form, characterized in that it comprises an output unit for outputting trace data.
【請求項7】 前記トレース処理部は、前記機能実行部
が前記データを発生する毎に、この発生した前記データ
が前記トレース対象フラグにより指定された前記種類の
データか否かを調べ、この調べた結果が前記トレース対
象フラグにより指定された前記種類のデータであること
を示すときにこのデータをトレースデータにして出力す
るようにしたことを特徴とする請求項6記載のトレース
方式。
7. The trace processing unit, every time the function execution unit generates the data, checks whether the generated data is the type of data designated by the trace target flag. 7. The tracing method according to claim 6, wherein when the result indicates that the type of data is specified by the trace target flag, the data is output as trace data.
【請求項8】 前記トレース対象フラグは、値を持ちこ
の値により前記機能実行部が発生する前記データの種類
を複数同時に指定するようにしたことを特徴とする請求
項6又は7記載のトレース方式。
8. The tracing method according to claim 6, wherein the trace target flag has a value, and the value designates a plurality of types of the data generated by the function execution unit at the same time. .
【請求項9】 前記トレース処理部は、前記トレース対
象フラグの値が前記機能実行部が発生する前記データの
種類を一つも指定しないことを示すときには、前記トレ
ースデータを出力しないようにしたことを特徴とする請
求項6又は7記載のトレース方式。
9. The method according to claim 9, wherein the trace processing unit does not output the trace data when the value of the trace target flag indicates that no type of the data generated by the function execution unit is specified. The tracing method according to claim 6, wherein the tracing method is used.
【請求項10】 通信機能を実行することにより複数の
種類のデータを発生する通信処理部と、 前記通信処理部が発生した前記複数の種類のデータから
トレース対象とするデータを選択するためのトレース対
象選択コマンドを入力する入力部と、 前記入力した前記トレース対象選択コマンドにより選択
された前記データの種類を指定するためのトレース対象
フラグを格納する共有メモリと、 前記通信処理部が発生した前記複数の種類のデータを受
けこれらのデータのうちの前記トレース対象フラグによ
り指定された前記種類のデータをトレースデータにして
出力するトレース処理部と、 前記トレース処理部が出力した前記トレースデータを格
納するトレースデータ記憶部と、 前記トレースデータ記憶部が格納した前記トレースデー
タを出力する出力部と、 を備えたことを特徴とするトレース方式。
10. A communication processing unit for generating a plurality of types of data by executing a communication function, and a trace for selecting data to be traced from the plurality of types of data generated by the communication processing unit. An input unit for inputting a target selection command; a shared memory storing a trace target flag for specifying a type of the data selected by the input trace target selection command; A trace processing unit that receives the data of the type described above and converts the data of the type specified by the trace target flag out of the data into trace data, and a trace that stores the trace data output by the trace processing unit A data storage unit, and outputs the trace data stored in the trace data storage unit Trace form, characterized in that it includes an output unit that, the.
【請求項11】 前記トレース処理部は、前記通信処理
部が前記データを発生する毎に、この発生した前記デー
タが前記トレース対象フラグにより指定された前記種類
のデータか否かを調べ、この調べた結果が前記トレース
対象フラグにより指定された前記種類のデータであるこ
とを示すときにこのデータをトレースデータにして出力
するようにしたことを特徴とする請求項10記載のトレ
ース方式。
11. The trace processing unit checks each time the communication processing unit generates the data whether the generated data is the type of data designated by the trace target flag. 11. The tracing method according to claim 10, wherein when the result indicates that the type of data is specified by the trace target flag, the data is output as trace data.
【請求項12】 前記トレース対象フラグは、値を持ち
この値により前記通信処理部が発生する前記データの種
類を複数同時に指定するようにしたことを特徴とする請
求項10又は11記載のトレース方式。
12. The tracing method according to claim 10, wherein the trace target flag has a value, and the value specifies a plurality of types of the data generated by the communication processing unit at the same time. .
【請求項13】 前記トレース処理部は、前記トレース
対象フラグの値が前記通信処理部が発生する前記データ
の種類を一つも指定しないことを示すときには、前記ト
レースデータを出力しないようにしたことを特徴とする
請求項10又は11記載のトレース方式。
13. The method according to claim 13, wherein the trace processing unit does not output the trace data when the value of the trace target flag indicates that no type of the data generated by the communication processing unit is specified. The tracing method according to claim 10 or 11, wherein:
【請求項14】 前記通信処理部が発生する前記データ
は、送信データと受信データとであることを特徴とする
請求項10、11、12又は13記載のトレース方式。
14. The tracing method according to claim 10, wherein the data generated by the communication processing unit is transmission data and reception data.
【請求項15】 前記通信機能の実行が異常のときに発
生するこの異常を示すエラーデータを、前記通信機能を
実行することにより発生する前記複数の種類のデータの
うちの一つの種類のデータとするようにしたことを特徴
とする請求項10、11、12、13又は14記載のト
レース方式。
15. An error data which is generated when the execution of the communication function is abnormal and which indicates the abnormality is performed by combining one type of data among the plurality of types of data generated by executing the communication function. The tracing method according to claim 10, 11, 12, 13, or 14, wherein the tracing method is performed.
【請求項16】 前記送信データと前記受信データとの
それぞれのデータをパケットデータとメッセージデータ
とにそれぞれ分けたことを特徴とする請求項14又は1
5記載のトレース方式。
16. The data according to claim 14, wherein each of the transmission data and the reception data is divided into packet data and message data.
5. The tracing method according to 5.
JP10153092A 1998-06-02 1998-06-02 Tracing system Pending JPH11345150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10153092A JPH11345150A (en) 1998-06-02 1998-06-02 Tracing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10153092A JPH11345150A (en) 1998-06-02 1998-06-02 Tracing system

Publications (1)

Publication Number Publication Date
JPH11345150A true JPH11345150A (en) 1999-12-14

Family

ID=15554806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10153092A Pending JPH11345150A (en) 1998-06-02 1998-06-02 Tracing system

Country Status (1)

Country Link
JP (1) JPH11345150A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7055078B2 (en) 2002-06-21 2006-05-30 Samsung Electronics, Co., Ltd. Microprocessor with trace module
JP2007323636A (en) * 2006-05-30 2007-12-13 Arm Ltd Reducing size of data stream produced during tracing instruction
US8428208B2 (en) 2009-03-06 2013-04-23 Fujitsu Limited Control circuit, information processing device, and method of controlling information processing device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7055078B2 (en) 2002-06-21 2006-05-30 Samsung Electronics, Co., Ltd. Microprocessor with trace module
US7299393B2 (en) 2002-06-21 2007-11-20 Samsung Electronics Co., Ltd. Microprocessor with trace module
JP2007323636A (en) * 2006-05-30 2007-12-13 Arm Ltd Reducing size of data stream produced during tracing instruction
US8428208B2 (en) 2009-03-06 2013-04-23 Fujitsu Limited Control circuit, information processing device, and method of controlling information processing device

Similar Documents

Publication Publication Date Title
CN115391219A (en) Test case generation method and device, electronic equipment and storage medium
US4891639A (en) Monitoring system of network
JPH11345150A (en) Tracing system
CN109634943B (en) Air conditioner data transmission method and device for screening data and computer equipment
JP6558250B2 (en) Design support device
CN117130318B (en) Industrial data acquisition method, device, system and readable storage medium
CN109949956A (en) A kind of control systems of nuclear power plant high load capacity working condition simulation method and system
JPH0527819A (en) Screen display device for numerical controller
JP3067414B2 (en) Communication line monitor
JPH0784901A (en) Terminal operation reproducing device
JPH05266381A (en) Plant condition monitoring equipment
JP2907174B2 (en) User interface system for supervisory control system
KR20160080391A (en) Apparatus and method of generating message automatically in real-time data transmission processing system
CN114265614A (en) Agent differential upgrading method and system
JPH08263322A (en) Test method and test device for object-oriented program
CN112732533A (en) Method and device for running script program by industrial monitoring software and readable medium
JP2629598B2 (en) Intermittent communication control method and intermittent communication control type remote control device using the same
JP2965058B2 (en) CPU instruction emulation system
CN116084978A (en) Control system and method for shield tunneling machine thrust cylinder
JP2002314538A (en) Device to be managed in network, management network system and management operation method
KR0182695B1 (en) Management between host switching module and remote switching module
JP3152219B2 (en) Command automatic editing system
CN117834741A (en) Message processing system and vehicle
JPH07129205A (en) Method for communication between programmable controller and monitor device
JPH05120176A (en) On-line test device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20001010