JP2002312258A - Usb monitor system - Google Patents

Usb monitor system

Info

Publication number
JP2002312258A
JP2002312258A JP2001109496A JP2001109496A JP2002312258A JP 2002312258 A JP2002312258 A JP 2002312258A JP 2001109496 A JP2001109496 A JP 2001109496A JP 2001109496 A JP2001109496 A JP 2001109496A JP 2002312258 A JP2002312258 A JP 2002312258A
Authority
JP
Japan
Prior art keywords
packet
transaction
token
data
usb
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
JP2001109496A
Other languages
Japanese (ja)
Inventor
Daisuke Yasunami
大輔 安波
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.)
Ando Electric Co Ltd
Original Assignee
Ando Electric Co 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 Ando Electric Co Ltd filed Critical Ando Electric Co Ltd
Priority to JP2001109496A priority Critical patent/JP2002312258A/en
Publication of JP2002312258A publication Critical patent/JP2002312258A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a filter function not receiving invalid transaction to transaction of a specific ADDRESS/ENDPOINT, and receiving only valid transaction. SOLUTION: This USB monitor system monitoring USB communication data and recording packet data into a record means has a decision means distinguishing between the valid transaction and the invalid transaction and records only the packet data of the valid transaction into the record means.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、パーソナルコンピ
ュータとその周辺機器を結ぶユニバーサルシリアルバス
(以下USBと略す)のデータをモニタし、必要なデー
タのみを受信およびキャプチャ(RAM,HD等の記録媒体
へのキャプチャ)する機能を持つプロトコルアナライザ
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention monitors data on a universal serial bus (hereinafter abbreviated as USB) connecting a personal computer and its peripheral devices, and receives and captures only necessary data (recording media such as RAM and HD). To a protocol analyzer that has the function of

【0002】[0002]

【従来の技術】従来、USB通信回線において障害発生
時に障害発生箇所を判断する方法の一つとして、前記回
線データが正しいか、否かを判断する方法がある。この
方法は、プロトコルアナライザを使用して、通信回線上
のデータをフレーム単位で受信し、そのデータよりビッ
トフィールド値やフレームシーケンスの正常/異常を判
断し、回線の障害発生箇所の切り分けに利用する。
2. Description of the Related Art Conventionally, as one of methods for determining a failure location when a failure occurs in a USB communication line, there is a method for determining whether or not the line data is correct. In this method, data on a communication line is received in units of frames using a protocol analyzer, and the normal / abnormal of a bit field value or a frame sequence is determined based on the data, and is used to isolate a line fault location. .

【0003】USB通信は、通信の制御を担うホストと
従属して動作するファンクションと位置付けられている
端末間で行われ、1.5Mbpsまたは12Mbpsの転送速度で通
信が行われる。また、ホストはADDRESS/ENDPOINTと呼ば
れる情報により、通信対象とするファンクションを特定
しデータの通信を行う。
[0003] USB communication is performed between a host that controls communication and a terminal that is positioned as a function that operates dependently, and communication is performed at a transfer rate of 1.5 Mbps or 12 Mbps. Further, the host specifies a function to be communicated based on information called ADDRESS / ENDPOINT and performs data communication.

【0004】これらの通信で使用されるパケットは、図
1に示す10種類が存在する。USB通信は、4種類のト
ランザクションと呼ばれる転送方式(バルク,コントロ
ール,インタラプト,アイソクロナス)があり、トラン
ザクションフォーマットは大きく分けて2種類が存在す
る。
[0004] There are ten types of packets used in these communications as shown in FIG. The USB communication has a transfer method (bulk, control, interrupt, and isochronous) called four types of transactions, and there are roughly two types of transaction formats.

【0005】USBの上位データを解析する場合、解析
に有効なトランザクションフォーマット(以後、有効ト
ランザクションと称す)は、図2に示す「トークンパケ
ット」「DATAパケット」「ハンドシェークパケット」ま
たは「トークンパケット」「DATAパケット」で構成され
ている。
When analyzing upper USB data, a transaction format effective for the analysis (hereinafter referred to as an effective transaction) includes a "token packet", a "DATA packet", a "handshake packet", or a "token packet" or "token packet" shown in FIG. DATA packet ".

【0006】この構成以外は、解析に無効なトランザク
ション(以後、無効トランザクションと称す)としてホ
スト及びファンクションで破棄される。プロトコルアナ
ライザには、図3に示す、必要なデータのみを受信する
フィルタ機能がある。USB回線を測定する場合には、
図4に示す、特定のUSBパケットのみを受信するパケ
ットタイプ別フィルタ機能や、図5に示す、特定のADDR
ESS/ENDPOINTにおける通信のみを受信するフィルタ機
能を搭載している。
[0006] Other than this configuration, the host and the function discard the transaction as an invalid transaction for analysis (hereinafter referred to as an invalid transaction). The protocol analyzer has a filter function shown in FIG. 3 for receiving only necessary data. When measuring a USB line,
A packet type filter function for receiving only a specific USB packet shown in FIG. 4 and a specific ADDR shown in FIG.
Equipped with a filter function to receive only ESS / ENDPOINT communication.

【0007】パケットタイプ別フィルタ機能は、1パケ
ットごとにパケットタイプを比較し対象のパケットと一
致した場合に記録媒体へ記録される。また、ADDRESS/E
NDPOINTフィルタ機能は、トークンパケットを判断した
際、パケット内のADDRESS値とENDPOINT値をフィルタ処
理部で登録し、以後ハンドシェークパケットを判断する
まで受信およびRAMへの記録を続ける。
[0007] The filter function for each packet type compares the packet type for each packet and records it on a recording medium when the packet type matches the target packet. ADDRESS / E
When determining the token packet, the NDPOINT filter function registers the ADDRESS value and the ENDPOINT value in the packet in the filter processing unit, and thereafter continues reception and recording in the RAM until the handshake packet is determined.

【0008】[0008]

【発明が解決しようとする課題】USBの上位プロトコ
ルデータの転送速度が、1.5Mbpsや12Mbpsより極端に遅
い場合は、その上位プロトコルデータが存在するUSB
トランザクションはUSB全パケットに対して極端に小
さい割合となる。このことは、大半は、無効トランザク
ションフォーマットやフレーム開始パケット(SOFパケ
ット)で占められることを示している。
If the transfer speed of the upper protocol data of the USB is extremely lower than 1.5 Mbps or 12 Mbps, the USB in which the upper protocol data exists
The transaction accounts for an extremely small percentage of all USB packets. This indicates that the majority is occupied by invalid transaction formats and frame start packets (SOF packets).

【0009】USBの上位プロトコルデータは、DATA0
またはDATA1に存在するため、パケットタイプ別フィル
タで、DATA0およびDATA1のみを受信するようにすること
は出来るが、DATA0やDATA1パケットのみではデータの方
向性や有効性、ADDRESS/ENDPOINT情報が存在しないた
め、上位プロトコルデータの判断は難しい。
[0009] USB upper protocol data is DATA0.
Or, because it exists in DATA1, it is possible to receive only DATA0 and DATA1 with the filter for each packet type, but the direction and validity of data and ADDRESS / ENDPOINT information do not exist in only DATA0 and DATA1 packets. It is difficult to judge the upper protocol data.

【0010】また、図6に示す、ADDRESS/ENDPOINTフィ
ルタで、指定するADDRESS/ENDPOINTのトランザクション
のみを受信するようにしても、無効トランザクションフ
ォーマット(DATA0またはDATA1が無いトランザクショ
ン)が受信データの大半を占めるため上位プロトコルデ
ータの判断、解析に時間がかかってしまう。
[0010] Further, even if the ADDRESS / ENDPOINT filter shown in FIG. 6 receives only the specified ADDRESS / ENDPOINT transaction, the invalid transaction format (transaction without DATA0 or DATA1) occupies most of the received data. Therefore, it takes time to determine and analyze the upper protocol data.

【0011】発明の課題は、特定のADDRESS/ENDPOINT
のトランザクションに対して無効トランザクションは受
信せず、有効トランザクションのみを受信するフィルタ
機能を提供することである。
An object of the present invention is to provide a specific ADDRESS / ENDPOINT
An object of the present invention is to provide a filter function for receiving only an effective transaction without receiving an invalid transaction for the transaction of (i).

【0012】[0012]

【課題を解決するための手段】前記課題を解決するため
に、USB通信データをモニタして、そのパケットデー
タを記録手段に記録するモニタ方式において、有効トラ
ンザクションと、無効トランザクションとを判別する判
別手段30を備え、有効トランザクションのパケットデ
ータのみを記録手段に記録することによって短時間で解
析が可能になる。(請求項1)
In order to solve the above-mentioned problems, a USB communication data is monitored, and in a monitor method for recording the packet data in a recording means, a discrimination means for discriminating between a valid transaction and an invalid transaction. 30 is provided, and only the packet data of the valid transaction is recorded in the recording means, so that the analysis can be performed in a short time. (Claim 1)

【0013】また、前記判別手段は、トークンパケット
に続くパケットの種別に応じて判断する。(請求項2) また、前記判別手段は、トークンパケットに続くパケッ
トが、データパケットである場合のみ、有効トランザク
ションであると判断する。(請求項3) また、前記判別手段は、トークンパケットに続くパケッ
トが、データパケットであり、且つ、データパケットに
続くパケットが、ハンドシェークパケットである場合の
み、有効トランザクションであると判断する。これは、
トランザクションフォーマットがアイソクロナスの場合
である。(請求項4)
Further, the determination means makes a determination according to a type of a packet following the token packet. (Claim 2) The determining means determines that the packet is a valid transaction only when the packet following the token packet is a data packet. (Claim 3) In addition, the determination means determines that the packet following the token packet is a valid transaction only when the packet following the data packet is a handshake packet. this is,
This is a case where the transaction format is isochronous. (Claim 4)

【0014】また、トークンパケットを判断後、所定の
期間内に、次のパケットの判断ができない場合には、無
効トランザクションとして処理をする手段を有すること
によって、トークンのみの無効トランザクションの場合
にはライトポインタをBAK(保存用ポインタ)が示す位
置に戻すことにより、トークンを削除することができ
る。(請求項5)
In addition, if the next packet cannot be determined within a predetermined period after the determination of the token packet, a means for processing as an invalid transaction is provided. The token can be deleted by returning the pointer to the position indicated by the BAK (storage pointer). (Claim 5)

【0015】[0015]

【発明の実施の形態】以下、図面を用いて本発明の実施
の形態を説明する。図7は、本発明の実施の形態であ
る、パケットタイプ別フィルタを備えたUSBモニタの
構成を示す図である。図7において、1は通信の制御を
担うホストであり、2はファンクションと位置付けられ
る端末である。また、3はプロトコルアナライザであっ
て、ADDREES/ENDPOINT(31)、有効トランザクションフィ
ルタ処理部(33)、パケットタイプ別フィルタ処理部(3
2)よりなるフィルタ処理部(30)及び、RAM(34)、CPU(3
5)、記憶媒体(36)、表示装置(37)により構成されてい
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 7 is a diagram illustrating a configuration of a USB monitor including a filter for each packet type according to an embodiment of the present invention. In FIG. 7, reference numeral 1 denotes a host for controlling communication, and reference numeral 2 denotes a terminal positioned as a function. Reference numeral 3 denotes a protocol analyzer, which includes an ADDREES / ENDPOINT (31), an effective transaction filter processing unit (33), and a packet type-specific filter processing unit (3).
2) Filter processing unit (30), RAM (34), CPU (3
5), a storage medium (36), and a display device (37).

【0016】USB回線において、ホスト1と端末2と
の間を、双方向に送信されるデータをフィルタ機能によ
り選別し、受信するプロトコルアナライザにおいて、フ
ィルタ処理部30内のADDRESS/ENDPOINTフィルタ部31
の後段に有効トランザクションフィルタ処理部33が配
置されている。
In the USB line, between the host 1 and the terminal 2, data to be transmitted bidirectionally is selected by a filter function, and received by a protocol analyzer, and an ADDRESS / ENDPOINT filter section 31 in a filter processing section 30 is received.
The effective transaction filter processing unit 33 is arranged at the subsequent stage.

【0017】回線から受信したトランザクションには、
トランザクションフォーマットが、(「トークンパケッ
ト」「DATAパケット」「ハンドシェークパケット」)及
び(「トークンパケット」「DATAパケット」)である有
功トランザクションと、トランザクションフォーマット
が、(「トークンパケット」「DATAパケット」)以外の
場合{(「トークンパケット」「ハンドシェークパケッ
ト)、(「トークンパケット」「トークンパケット」)
等}の無効トランザクションが含まれている。前記ADDR
ESS/ENDPOINTフィルタ部31では、受信したトランザ
クションを、それぞれ、1パケットずつ有効トランザク
ションフィルタ部33へ渡される。
Transactions received from the line include:
A valid transaction whose transaction format is ("token packet", "DATA packet", "handshake packet") and ("token packet", "DATA packet"), and a transaction format other than ("token packet", "DATA packet") {(“Token packet” “Handshake packet”), (“Token packet” “Token packet”)
Equal invalid transactions are included. ADDR
In the ESS / ENDPOINT filter unit 31, the received transaction is passed to the valid transaction filter unit 33 one packet at a time.

【0018】前記有効トランザクションフィルタ処理部
33の判断処理は以下の如く実行される。処理には、ト
ークンパケットを判断したことを示すフラグ(以後トー
クンフラグと称す)と、記録媒体36への書き込みポイ
ンタ(以後ライトポインタと称す)、および書き込みポ
インタの位置を保存しておく、保存用ポインタBAKを用
意する。
The determination process of the valid transaction filter processing section 33 is executed as follows. The processing includes a flag indicating that the token packet has been determined (hereinafter, referred to as a token flag), a write pointer to the recording medium 36 (hereinafter, referred to as a write pointer), and the position of the write pointer. Prepare the pointer BAK.

【0019】記録媒体への書き込みは、図8に示すよう
に、書き込み用ポインタにより行う。ADDRESS/ENDPOINT
フィルタの出力から、トークンフラグを判断し、前回に
トークンパケットを受信したかを判断する。トークンフ
ラグがOFF(前回トークンパケットを受信していない状
態)であるなら、PIDフィールドによりパケット種別を
判断する。
Writing to a recording medium is performed by a writing pointer as shown in FIG. ADDRESS / ENDPOINT
The token flag is determined from the output of the filter, and it is determined whether a token packet was received last time. If the token flag is OFF (the state where the token packet has not been received previously), the packet type is determined from the PID field.

【0020】そのパケットが「トークン」である場合、
SYNCパターンのポインタ位置をBAKへ保存し、トークン
フラグをONにする。その後、このパケットデータを記録
媒体へ書き込みを行う。
If the packet is a "token",
The pointer position of the SYNC pattern is saved in BAK, and the token flag is turned ON. After that, the packet data is written to the recording medium.

【0021】PIDフィールドによる判断で「トークン以
外」である場合は、無条件にパケットデータの書き込み
を行う。トークンフラグがON(前回トークンパケットを
受信している状態)である場合、PIDフィールドのパケ
ット種別判断を行う。この結果「DATA0/1」であるなら
トークンフラグをOFFにし、パケットデータの書き込み
を行う。
In the case of "other than a token" as judged by the PID field, packet data is written unconditionally. If the token flag is ON (the state where the token packet has been received previously), the packet type of the PID field is determined. If the result is "DATA0 / 1", the token flag is turned off and packet data is written.

【0022】また「DATA0/1以外」かつ「トークン以
外」であるなら、トークンフラグをOFFにし、このトラ
ンザクションは無効であるとして、図9に示すように、
ライトポインタをBAKが示す位置へ戻す。
If "other than DATA0 / 1" and "other than token", the token flag is turned off, and this transaction is regarded as invalid, as shown in FIG.
Return the write pointer to the position indicated by BAK.

【0023】「DATA0/1以外」かつ「トークン」である
場合には、「トークン」が連続して来たことを示すの
で、連続した最後の「トークン」を残すため、図10に
示すように、ライトポインタをBAKが示す位置へ戻し、
このトークンパケットデータを記録媒体へ書き込む。
If "except for DATA0 / 1" and "token", it indicates that "tokens" have come in succession, so that the last "token" in succession is left as shown in FIG. , Return the write pointer to the position indicated by BAK,
This token packet data is written to a recording medium.

【0024】「トークン」を判断した後に、タイムアウ
トとなった場合(16クロックカウント経過後に何も判
断できなかった場合)は、「トークン」のみの無効トラ
ンザクションフォーマットとして、図11に示すよう
に、ライトポインタをBAKが示す位置へ戻すことでトー
クンの情報を削除する。
If a timeout occurs after the determination of the "token" (when no determination can be made after the lapse of 16 clock counts), as shown in FIG. The token information is deleted by returning the pointer to the position indicated by BAK.

【0025】次に、本発明の全体の処理フローを図12
を用いて説明する。 ・先ず、ホスト1と端末2間の双方向通信データをプロ
トコルアナライザ3を構成するフィルタ処理部30のAD
DRES/ENDPOINTフィルタ処理部31が出力する。(ステ
ップS1) ・次に、上記ADDRES/ENDPOINTフィルタ処理部31からの
出力に対して、タイムアウト不成立かつSYNCパターンの
認識の判断を行う。(ステップS2) ・ステップS2における判断で、Trueの場合には、トーク
ンフラグ判定を行う。(ステップS3) ・ステップS3における判断で、トークンフラグがON(前
回トークンパケットを受信している状態)の場合には、
PIDフィールドのパケット種別がDATA0/1であるか否か
の判断を実行する。(ステップS4) ・ステップS4の判断でTrur(パケットの種別がDATA0/
1)場合には、トークンフラグをOFFにする。(ステップ
S10) ・ステップS10でトークンフラグをOFFにした後、パケッ
トデータを記憶媒体36に書込み、ライトポインタを更新
する。(ステップS11)
Next, the overall processing flow of the present invention is shown in FIG.
This will be described with reference to FIG. First, the bidirectional communication data between the host 1 and the terminal 2 is converted into the AD data of the filter processing unit 30 constituting the protocol analyzer 3.
The DRES / ENDPOINT filter processing unit 31 outputs. (Step S1) Next, with respect to the output from the ADDRES / ENDPOINT filter processing unit 31, it is determined that the timeout has not been established and the SYNC pattern has been recognized. (Step S2) If the judgment in step S2 is True, a token flag judgment is performed. (Step S3)-If the judgment in step S3 indicates that the token flag is ON (the last time a token packet has been received),
It is determined whether the packet type in the PID field is DATA0 / 1. (Step S4) ・ Trur (the packet type is DATA0 /
1) In the case, turn off the token flag. (Step
S10) After turning off the token flag in step S10, the packet data is written to the storage medium 36, and the write pointer is updated. (Step S11)

【0026】・ステップS4の判断で、Faise(パケット
の種別がDATA0/1ではない)の場合には、PIDフィールド
のパケットの種別がトークンか否かの判断を行う。(ス
テップS5) ・ステップS5の判断が、True(パケットの種別がトーク
ン)の場合には、ライトポインタの位置をBAKへ戻す。
(ステップS6) ・ステップS6でライトポインタの位置をBAKに戻した後
に、パケットデータを記憶媒体36に書き込み、ライトポ
インタの更新を行う。(ステップS7)
If the result of determination in step S4 is Faise (the packet type is not DATA0 / 1), it is determined whether the packet type in the PID field is a token. (Step S5) If the determination in step S5 is True (the packet type is token), the position of the write pointer is returned to BAK.
(Step S6) After returning the position of the write pointer to BAK in step S6, the packet data is written to the storage medium 36, and the write pointer is updated. (Step S7)

【0027】・ステップS5の判断が、False(パケット
の種別がDATA0/1以外で、且つトークン以外)の場合に
は、トークンフラグをOFFにする。(ステップS8) ・ステップS5でトークンフラグをOFFにするのは、この
トランザクションが無効であると判断した結果であるの
で、ライトポインタをBAKの示す位置に戻す。(ステッ
プS9)
If the determination in step S5 is False (the packet type is other than DATA0 / 1 and other than a token), the token flag is turned off. (Step S8) The reason why the token flag is turned off in step S5 is a result of determining that this transaction is invalid, so that the write pointer is returned to the position indicated by BAK. (Step S9)

【0028】・ステップS3の判断で、トークンフラグが
OFF(前回トークンパケットを受信していない状態)の
場合には、PIDフィールドのパケット種別がトークンで
あるか否かの判断を実行する。(ステップS12) ・ステップS12の判断がTrue(パケット種別トークン)
の場合には、SYNCのポインタ位置をBAKへ保存する。
(ステップS13) ・ステップS12でSYNCのポインタ位置をBAKへ保存した後
に、トークンフラグをONにする。(ステップS14) ・ステップS14でトークンフラグをONにした後に、パケ
ットデータをき多く媒体36に書込み、ライトポインタの
更新を行う。(ステップS15) ・ステップS12の判断がFalse(パケット種別トークン以
外)の場合には、パケットデータを記憶媒体36に書込
み、ライトポインタの更新を行う。(ステップS15)
If the token flag is determined in step S3
If it is OFF (the state where the token packet has not been received last time), it is determined whether or not the packet type in the PID field is a token. (Step S12)-The judgment in Step S12 is True (packet type token)
In the case of, the pointer position of SYNC is stored in BAK.
(Step S13) • After storing the SYNC pointer position in BAK in step S12, the token flag is turned ON. (Step S14) After the token flag is turned ON in Step S14, packet data is written to the medium 36 and the write pointer is updated. (Step S15) If the determination in Step S12 is False (other than the packet type token), the packet data is written to the storage medium 36 and the write pointer is updated. (Step S15)

【0029】・ステップS2における判断で、Falseの場
合には、PIDフィールドのパケット種別がトークンであ
るか否かの判断を実行する。(ステップS16) ・ステップS16の判断が、True(パケットの種別がトー
クン)の場合には、ライトポインタをBAKの示す位置に
戻す。(ステップS17) ・ステップS16でライトポインタをBAKの示す位置に戻し
た後に、トークンフラグをOFFにする。(ステップS18) ・ステップS16の判断が、False(パケットの種別がトー
クン以外)の場合には、トークンフラグをOFFにする。
(ステップS18)
If the determination in step S2 is False, it is determined whether the packet type in the PID field is a token. (Step S16) If the determination in Step S16 is True (the packet type is token), the write pointer is returned to the position indicated by BAK. (Step S17) After returning the write pointer to the position indicated by BAK in step S16, the token flag is turned off. (Step S18) If the judgment in step S16 is False (the packet type is other than token), the token flag is turned off.
(Step S18)

【0030】[0030]

【発明の効果】請求項1に記載の発明では、USB通信
データをモニタして、そのパケットデータを記録手段に
記録するモニタ方式において、有効トランザクション
と、無効トランザクションとを判別する判別手段30を
備え、有効トランザクションのパケットデータのみを記
録手段に記録することによって短時間で解析が可能にな
り、容易にUSBの上位データを識別可能となると同時
に、受信データの記録効率も向上できる。
According to the first aspect of the present invention, in the monitor method for monitoring USB communication data and recording the packet data in the recording means, the discrimination means 30 for discriminating between a valid transaction and an invalid transaction is provided. By recording only the packet data of the valid transaction in the recording means, the analysis can be performed in a short time, the upper data of USB can be easily identified, and the recording efficiency of the received data can be improved.

【0031】また、請求項2に記載の発明では、前記判
別手段は、トークンパケットに続くパケットの種別に応
じて有効トランザクションか無効なトランザクションか
の判断が容易にできる。また、請求項3に記載の発明で
は、前記判別手段は、トークンパケットに続くパケット
が、データパケットである場合のみ、有効トランザクシ
ョンであると判断できる。また、請求項4に記載の発明
では、前記判別手段は、トークンパケットに続くパケッ
トが、データパケットであり、且つ、データパケットに
続くパケットが、ハンドシェークパケットである場合の
み、有効トランザクションであると判断する。
In the invention according to the second aspect, the determination means can easily determine whether the transaction is a valid transaction or an invalid transaction according to the type of a packet following the token packet. Further, in the invention according to claim 3, the determination means can determine that the transaction following the token packet is a valid transaction only when the packet is a data packet. Further, in the invention according to claim 4, the determination means determines that the transaction following the token packet is a valid transaction only when the packet following the data packet is a handshake packet. I do.

【0032】また、請求項5に記載の発明では、トーク
ンパケットを判断後、所定の期間内に、次のパケットの
判断ができない場合には、無効トランザクションとして
処理をする手段を有することによって、トークンのみの
無効トランザクションの場合にはライトポインタをBAK
が示す位置に戻すことにより、トークンを削除すること
ができる。
According to the fifth aspect of the present invention, when a next packet cannot be determined within a predetermined period after a token packet is determined, a means for processing as an invalid transaction is provided. BAK the write pointer in case of only invalid transaction
By returning to the position indicated by, the token can be deleted.

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

【図1】USB通信に使用されるパケットの構成を示す
図である。
FIG. 1 is a diagram showing a configuration of a packet used for USB communication.

【図2】USB通信に使用されるトランザクションフォ
ーマットの構成を示す図である。
FIG. 2 is a diagram showing a configuration of a transaction format used for USB communication.

【図3】従来のパケットタイプ別フィルタの構成を示す
図である。
FIG. 3 is a diagram illustrating a configuration of a conventional filter for each packet type.

【図4】従来のパケットタイプ別フィルタの作用を説明
するための図である。
FIG. 4 is a diagram for explaining an operation of a conventional filter for each packet type.

【図5】ADDRESS/ENDPOINTフィルタの作用を説明するた
めの図である。
FIG. 5 is a diagram for explaining the operation of an ADDRESS / ENDPOINT filter.

【図6】従来のパケットタイプ別フィルタとADDRESS/EN
DPOINTフィルタの作用を比較するための図である。
Fig. 6: Conventional packet type filters and ADDRESS / EN
It is a figure for comparing the operation of a DPOINT filter.

【図7】本発明のパケットタイプ別フィルタの作用を説
明するための図である。
FIG. 7 is a diagram for explaining the operation of the filter for each packet type according to the present invention.

【図8】記憶媒体への書込み例を示す図である。FIG. 8 is a diagram illustrating an example of writing to a storage medium.

【図9】トランザクションフォーマットが、「トーク
ン」「ハンドシェーク」の場合のRAM内のポインタ操作
例を示す図である。
FIG. 9 is a diagram illustrating an example of pointer operation in the RAM when the transaction format is “token” or “handshake”.

【図10】トランザクションフォーマットが、「トーク
ン」「トークン」の場合のRAM内の ポインタ操作例を
示す図である。
FIG. 10 is a diagram illustrating an example of pointer operation in a RAM when the transaction format is “token”;

【図11】トランザクションフォーマットが、「トーク
ン」の場合のRAM内のポインタ操作 例を示す図であ
る。
FIG. 11 is a diagram showing an example of pointer operation in the RAM when the transaction format is “token”.

【図12】本発明の全体の処理手順を示すフローチャー
ト図である。
FIG. 12 is a flowchart showing the overall processing procedure of the present invention.

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

1 ホスト 2 端末(ファンクション) 3 プロトコルアナライザ 30 フィルタ処理部 31 ADDRESS/ENDPOINTフィルタ処理部 32 パケットタイプ別フィルタ処理部 33 有効トランザクションフィルタ処理部 34 RAM 35 CPU 36 記憶媒体 37 画面表示 DESCRIPTION OF SYMBOLS 1 Host 2 Terminal (function) 3 Protocol analyzer 30 Filter processing unit 31 ADDRESS / ENDPOINT filter processing unit 32 Filter processing unit by packet type 33 Effective transaction filter processing unit 34 RAM 35 CPU 36 Storage medium 37 Screen display

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 USB通信データをモニタして、そのパ
ケットデータを記録手段に記録するモニタ方式におい
て、 有効トランザクションと、無効トランザクションとを判
別する判別手段を備え、 前記有効トランザクションのパケットデータのみを、記
録手段に記録することを特徴とするUSBモニタ方式。
1. A monitoring method for monitoring USB communication data and recording the packet data on a recording means, comprising: a discriminating means for discriminating between a valid transaction and an invalid transaction; A USB monitor method characterized by recording on a recording means.
【請求項2】 前記判別手段は、トークンパケットに続
くパケットの種別に応じて判断することを特徴とする請
求項1に記載のUSBモニタ方式。
2. The USB monitor method according to claim 1, wherein said determination means makes a determination according to a type of a packet following the token packet.
【請求項3】 前記判別手段は、トークンパケットに続
くパケットが、データパケットである場合のみ、有効ト
ランザクションであると判断することを特徴とする請求
項2に記載のUSBモニタ方式。
3. The USB monitor method according to claim 2, wherein said determination means determines that the transaction following the token packet is a valid transaction only when the packet is a data packet.
【請求項4】 前記判別手段は、トークンパケットに続
くパケットが、データパケットであり、且つ、データパ
ケットに続くパケットが、ハンドシェークパケットであ
る場合のみ、有効トランザクションであると判断するこ
とを特徴とする請求項2に記載のUSBモニタ方式。
4. The method according to claim 1, wherein the determination unit determines that the transaction is a valid transaction only when a packet following the token packet is a data packet and a packet following the data packet is a handshake packet. The USB monitor method according to claim 2.
【請求項5】 トークンパケットを判断後、所定の期間
内に、次のパケットの判断ができない場合には、無効ト
ランザクションとして処理をする手段を有することを特
徴とする請求項1〜4のいずれか1項に記載のUSBモ
ニタ方式。
5. The system according to claim 1, further comprising means for processing as an invalid transaction when a next packet cannot be determined within a predetermined period after the token packet is determined. The USB monitor method according to item 1.
JP2001109496A 2001-04-09 2001-04-09 Usb monitor system Pending JP2002312258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001109496A JP2002312258A (en) 2001-04-09 2001-04-09 Usb monitor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001109496A JP2002312258A (en) 2001-04-09 2001-04-09 Usb monitor system

Publications (1)

Publication Number Publication Date
JP2002312258A true JP2002312258A (en) 2002-10-25

Family

ID=18961421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001109496A Pending JP2002312258A (en) 2001-04-09 2001-04-09 Usb monitor system

Country Status (1)

Country Link
JP (1) JP2002312258A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693934B2 (en) 2003-04-16 2010-04-06 Samsung Electronics Co., Ltd. Network device, system and method for providing list of controlled devices

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693934B2 (en) 2003-04-16 2010-04-06 Samsung Electronics Co., Ltd. Network device, system and method for providing list of controlled devices

Similar Documents

Publication Publication Date Title
US6629062B2 (en) Performance monitoring in a storage enclosure
US8135871B2 (en) Computer system and control method of the same
US10592376B2 (en) Real-time hierarchical protocol decoding
US7430619B2 (en) Communication device, host apparatus, and communication method
US7124235B2 (en) USB apparatus with switchable host/hub functions and control method thereof
JP2006048162A (en) Loop condition monitoring device
CN111600809B (en) Gigabit single optical port server adapter
JP2002312258A (en) Usb monitor system
US20060215525A1 (en) Communication apparatus and program provided with failure determining method and function
US7602422B2 (en) Serial camera interface
JP4205975B2 (en) Bus bridge device and data transfer control method
JPH0442321A (en) Ic card information processing system
JP3887059B2 (en) Data writing method, data reading method, and memory circuit
JP2000078238A (en) Data transmission method, communication controller and recording medium with data transmission program recorded therein
JP2570995B2 (en) Disk controller
JP3105883B2 (en) Communication device and method
JP2002342177A (en) Method for monitoring usb data and monitor
JP3114218B2 (en) Data processing device and data communication system
JPH1168874A (en) Analytic system for transmission information
JP2003018239A (en) Monitor method and device for asynchronous-ppp on usb by protocol analyzer
CN117834758A (en) Automobile control message analysis and detection method and system based on CAN bus
CN115297181A (en) Wiegand signal processing device and access control authority verification system
CN115065572A (en) CAN FD controller for vehicle-mounted electronic system
JP3217042B2 (en) Semiconductor device having pseudo parity error signal generation function
JPH09162950A (en) Protocol error judgment method and protocol recorder

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20041001