JP2004030172A - Inspection method and inspection device for usb standard communication function - Google Patents
Inspection method and inspection device for usb standard communication function Download PDFInfo
- Publication number
- JP2004030172A JP2004030172A JP2002184681A JP2002184681A JP2004030172A JP 2004030172 A JP2004030172 A JP 2004030172A JP 2002184681 A JP2002184681 A JP 2002184681A JP 2002184681 A JP2002184681 A JP 2002184681A JP 2004030172 A JP2004030172 A JP 2004030172A
- Authority
- JP
- Japan
- Prior art keywords
- usb
- usb standard
- packet
- abnormal data
- standard
- 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
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、USB(Universal Serial Bus)ケーブルで接続されたUSBホスト装置とUSBデバイス装置間の異常シーケンスの検証を行うために異常データを発生させるUSB規格通信機能の検査方法および検査装置に関する。
【0002】
【従来の技術】
従来、USBホスト装置およびUSBデバイス装置における異常シーケンスの検証は、それぞれのテスト用のエラーを発生させるために、ユーザプログラマブルなUSB規格対応の信号発生装置を用いている。USB信号発生装置は、被検査装置の対向機として接続され、USBホスト装置を検査する場合は図5に示すように、USBホスト装置500をUSB信号発生装置501と接続し、USBデバイス装置を検査する場合は図6に示すようにUSBデバイス装置601をUSB信号発生装置600に接続する。
【0003】
図5および図6に示すUSB信号発生装置は、仮想的に被検査装置の通信相手として動作するように、あらかじめ、コマンドまたはビット列で動作内容をプログラミングしておき、プログラム内容に基づいてUSB信号発生装置からUSB信号を発生させていた。異常データを発生させる場合、プログラム内容として、あらかじめエラーパターンをプログラミングしておくことによってエラーを発生させていた。
【0004】
【発明が解決しようとする課題】
しかし、上述した従来方式では、ユーザプログラマブルなUSB信号発生装置のため、あらかじめプログラミングした通信パターンのみの動作しか行われない。このため、USBホスト装置とUSBデバイス装置との間の実際のパケット通信を実行するタイミングでの動作ではなく、USB信号発生装置の動作タイミングは、USBホスト装置またはUSBデバイス装置へのパケットを送受信する実際の動作タイミングとは異なる。
【0005】
また、実際のUSBホスト装置とUSBデバイス装置とを接続した形態においても、USB規格に基づくPID(パケット識別子)やCRCはハードウェア的に付与されるため、意図的に異常データを作成し、異常シーケンスを検査することが困難である。
【0006】
本発明は、上記従来の問題点を解決するもので、USBホスト装置とUSBデバイス装置との間で実際に通信が行われている状態で、異常シーケンスを検査することができるUSB規格通信機能の検査装置および検査方法を提供することを目的としている。
【0007】
【課題を解決するための手段】
前述した目的を達成するために、請求項1に係るUSB規格通信機能の検査方法は、USB規格のケーブルを介して互いに接続されたUSB規格のホスト装置とUSB規格のデバイス装置との間の通信データに異常データを発生させるUSB規格通信機能の検査方法であって、異常データを発生させるべきUSB規格のパケットをあらかじめ設定し(手順200)、USBバス上の信号を監視してUSB規格に基づくパケットを検出し(手順201)、検出したUSB規格のパケットが、あらかじめ設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証し(手順202)、一致が検証された時に異常データを発生させる(手順203)ことを特徴とする。
【0008】
また、請求項3に係るUSB規格通信機能の検査装置は、USB規格のケーブルを介して互いに接続されたUSB規格のホスト装置とUSB規格のデバイス装置との間の通信データに異常データを発生させるUSB規格通信機能の検査装置(エラー発生装置120)であって、異常データを発生させるべきUSB規格のパケットをあらかじめ設定する制御手段(制御手段121)と、USBバス上の信号を監視してUSB規格に基づくパケットを検出するパケット検出手段(バスモニタ手段123、124)と、前記パケット検出手段により検出されたUSB規格のパケットが、前記制御手段により設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証するトランザクション管理手段(トランザクション管理手段122)と、前記トランザクション管理手段により一致が検証された時に異常データを発生させる異常データ発生手段(エラー発生手段125)とを具備したことを特徴とする。
【0009】
上記構成によれば、USBホスト装置とUSBデバイス装置との間で、エラーを発生させるべき所定のパケットに対し異常データを発生させることで、実際の通信中に異常シーケンスを検査することができる。
【0010】
請求項2に係るUSB規格通信機能の検査方法は、USB規格のケーブルを介して互いに接続されたUSB規格のホスト装置とUSB規格のデバイス装置との間の通信データに異常データを発生させるUSB規格通信機能の検査方法であって、異常データを発生させるべきUSB規格のパケットをあらかじめ設定し(手順400)、前記USBホスト装置と前記USBデバイス装置との間のUSB通信データを取得し(手順401)、USBバス上の信号を監視してUSB規格に基づくパケットを検出し(手順402)、検出したUSB規格のパケットが、あらかじめ設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証し(手順403)、一致が検証された時に異常データを発生させる(手順404)ことを特徴とする。
【0011】
また、請求項4に係るUSB規格のケーブルを介して互いに接続されたUSB規格のホスト装置とUSB規格のデバイス装置との間の通信データに異常データを発生させるUSB規格通信機能の検査装置(エラー発生装置300)であって、異常データを発生させるべきUSB規格のパケットをあらかじめ設定する制御手段(制御手段321)と、前記制御手段からの通知を受けて、前記USBホスト装置と前記USBデバイス装置との間のUSB通信データを取得するログ管理手段(ログ管理手段326)と、USBバス上の信号を監視してUSB規格に基づくパケットを検出するパケット検出手段(バスモニタ手段323、324)と、前記パケット検出手段により検出されたUSB規格のパケットが、前記制御手段により設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証するトランザクション管理手段(トランザクション管理手段322)と、前記トランザクション管理手段により一致が検証された時に異常データを発生させる異常データ発生手段(エラー発生手段325)とを具備したことを特徴とする。
【0012】
上記構成によれば、USBホスト装置とUSBデバイス装置との間で、エラーを発生させるべき所定のパケットに対し異常データを発生させることで、実際の通信中に異常シーケンスを検査することができる。さらに、USB通信の受信側の記録を得ることができる。
【0013】
【発明の実施の形態】
以下、本発明の実施の形態について図面を参照して説明する。
図1は、本発明の第1の実施の形態におけるUSB規格通信機能の検査装置の構成を示すブロック図である。図1において、USBケーブル114、115を介してUSBホスト装置100とUSBデバイス装置101とに接続されるUSB規格通信機能の検査装置であるUSBエラー発生装置120は、異常データを発生させるUSB規格に基づくパケットを設定する制御手段121と、USB信号がUSB規格に基づくパケットであり、かつ異常データを含ませるべきパケットであるか否かを監視するトランザクション管理手段122と、USBバス上の信号をモニタして対応するUSB信号をトランザクション管理手段122に出力するバスモニタ手段123、124と、異常データを発生させるためのエラー発生手段125とを備える。
【0014】
制御手段121は、異常データを発生させるUSB規格に基づくパケットと、異常データを発生させておくビット時間とを設定する。トランザクション管理手段122は、バスモニタ手段123とバスモニタ手段124からのUSBバスの信号を取得する。USBホスト装置100と、USBデバイス装置101との間のUSB通信は、ホスト装置100のスケジューリングによって、まず、ホスト装置100からのパケット送信が行われる。以後、トランザクション管理手段122は、現在のUSB通信を解釈することで次のパケットの通信方向を決定する。これにより、USB通信時には、送信側に位置するバスモニタ部からUSBバス信号を取得する。
【0015】
なお、トランザクション管理手段122は、バスモニタ手段123、124から得たUSB信号が、USB規格に基づくパケットであると認識した場合は、さらに、このパケットが、制御手段121において異常データを発生させるパケットとして設定されたパケットであるか否かを検証し、USB規格に基づくパケットとして設定されたパケットであると判定した場合は、エラー発生手段125に対して異常データの発生を開始させるための通知を送出する。
【0016】
バスモニタ手段123は、USBホスト装置100から送信されるパケットをモニタするため、エラー発生手段125に対してUSBホスト装置100側に設けられる。バスモニタ手段124は、USBデバイス装置101から送信されるパケットをモニタするため、エラー発生手段125に対してUSBデバイス装置101側に設けられる。
【0017】
エラー発生手段125は、トランザクション管理手段122からの通知を受けて異常データを発生させる。エラー発生手段125において、異常データを発生させるための方法は2つありる。
【0018】
一つは、USB規格に基づく信号110(D+)、111(D−)、若しくは信号112(D+)、113(D−)を、制御手段121に設定されたビット時間だけGND(接地)にし、USB規格に基づくSE0の状態にすることである。
【0019】
もう一つは、USB規格に基づく信号110(D+)、111(D−)、若しくは信号112(D+)、113(D−)のレベルを、制御手段121に設定されたビット時間だけ反転することである。
【0020】
異常シーケンスの例として、CRCエラー、PIDエラー等がある。CRCエラーは、USB規格に基づくデータパケットのデータ領域に対し、異常データを発生させれば可能である。USBホスト装置100側でCRCエラーを発生させる場合は、USBデバイス装置101側から送信されるデータパケットに対し、USB規格に基づく信号110(D+)、111(D−)の信号線上で異常データを発生させればよい。同様に、USBデバイス装置101側でCRCエラーを発生させる場合は、USBホスト装置100側から送信されるデータパケットに対し、USB規格に基づく信号112(D+)、113(D−)の信号線上で異常データを発生させればよい。
【0021】
PIDエラーは、各パケット内のパケット識別フィールドに対し、異常データを発生させることによって可能である。例えばUSBホスト装置100側で発生するPIDエラーを発生させる場合は、USBデバイス装置101側から送信される各パケット内のパケット識別フィールドに対し、USB規格に基づく信号110(D+)、111(D−)の信号線上で異常データを発生させればよい。同様に、USBデバイス装置101側で発生させるPIDエラーの場合は、USBホスト装置100側から送信される各パケット内のパケット識別フィールドに対し、USB規格に基づく信号112(D+)、113(D−)の信号線上で異常データを強制的に発生させればよい。
【0022】
以下、図2に示すフローチャートを参照して本発明の第1の実施形態のUSB規格通信機能の検査装置の動作を説明する。まず、手順200に従い制御手段121が、異常データを発生させるパケットと、異常データを発生させておくビット時間とを設定する。次に手順201に従いバスモニタ手段123、124が、USBバスをモニタし、これにより、トランザクション管理部122が、USB規格に基づくパケットを認識する。
【0023】
手順202では、トランザクション管理手段122が、手順200で設定されたパケットと、手順201で認識されるパケットとが一致するか否かを検証し、両者が一致した時、エラー発生手段125に対して異常データを発生させる開始指示の通知を送出する。手順203では、エラー発生手段125が、異常データを発生させる。
【0024】
以上のように、第1の実施の形態によれば、USB通信機能を有する装置間のバス上で、USB通信中に、エラーを発生させるべき所定のパケットに対し異常データを発生させることにより、装置の各々には何らの変更を加えることなく装置間の異常シーケンスの検査を行うことができる。
【0025】
図3は、本発明における第2の実施の形態におけるUSB規格通信機能の検査装置の構成を示すブロック図である。図3において、USBケーブル314、315を介してUSBホスト装置300とUSBデバイス装置301とに接続されるUSB規格通信機能の検査装置であるUSBエラー発生装置320は、異常データを発生させるUSB規格に基づくパケットを設定する制御手段321と、USB信号がUSB規格に基づくパケットであり、かつ異常データを含ませるべきパケットであるか否かを監視するトランザクション管理手段322と、USBバス上の信号をモニタして対応するUSB信号をトランザクション管理手段122に出力するバスモニタ手段323、224と、異常データを発生させるためのエラー発生手段325と、USB通信のログを取得し、かつ保存を行うログ管理手段326とを備える。
【0026】
制御手段321は、異常データを発生させるUSB規格に基づくパケットと、異常データを発生させておくビット時間とを設定する。トランザクション管理手段132は、バスモニタ手段323とバスモニタ手段324からのUSBバスの信号を取得する。USBホスト装置300と、USBデバイス装置301との間のUSB通信は、ホスト装置300のスケジューリングによって、まず、ホスト装置300からのパケット送信が行われる。以後、トランザクション管理手段322は、現在のUSB通信を解釈することで次のパケットの通信方向を決定する。これにより、USB通信時には、送信側に位置するバスモニタ部からUSBバス信号を取得する。
【0027】
なお、トランザクション管理手段322は、バスモニタ手段323、324から得たUSB信号が、USB規格に基づくパケットであると認識した場合は、さらに、このパケットが、制御手段321において異常データを発生させるパケットとして設定されたパケットであるか否かを検証し、USB規格に基づくパケットとして設定されたパケットであると判定した場合は、エラー発生手段325に対して異常データの発生を開始させるための通知を送出する。
【0028】
バスモニタ手段323は、USBホスト装置300から送信されるパケットをモニタするため、エラー発生手段325に対してUSBホスト装置300側に設けられる。バスモニタ手段324は、USBデバイス装置301から送信されるパケットをモニタするため、エラー発生手段325に対してUSBデバイス装置301側に設けられる。
【0029】
エラー発生手段325は、トランザクション管理手段322からの通知を受けて異常データを発生させる。エラー発生手段325において、異常データを発生させるための方法は2つある。
【0030】
一つは、USB規格に基づく信号310(D+)、311(D−)、若しくは信号312(D+)、313(D−)を、制御手段321に設定されたビット時間だけGND(接地)にし、USB規格に基づくSE0の状態にすることである。
【0031】
もう一つは、USB規格に基づく信号310(D+)、311(D−)、若しくは信号312(D+)、313(D−)のレベルを、制御手段321に設定されたビット時間だけ反転することである。
【0032】
異常シーケンスの例として、CRCエラー、PIDエラー等がある。CRCエラーは、USB規格に基づくデータパケットのデータ領域に対し、異常データを発生させれば可能である。USBホスト装置300側でCRCエラーを発生させる場合は、USBデバイス装置301側から送信されるデータパケットに対し、USB規格に基づく信号310(D+)、111(D−)の信号線上で異常データを発生させればよい。同様に、USBデバイス装置101側でCRCエラーを発生させる場合は、USBホスト装置100側から送信されるデータパケットに対し、USB規格に基づく信号312(D+)、113(D−)の信号線上で異常データを発生させればよい。
【0033】
PIDエラーは、各パケット内のパケット識別フィールドに対し、異常データを発生させることによって可能である。例えばUSBホスト装置300側で発生するPIDエラーを発生させる場合は、USBデバイス装置301側から送信される各パケット内のパケット識別フィールドに対し、USB規格に基づく信号310(D+)、311(D−)の信号線上で異常データを発生させればよい。同様に、USBデバイス装置301側で発生させるPIDエラーの場合は、USBホスト装置300側から送信される各パケット内のパケット識別フィールドに対し、USB規格に基づく信号312(D+)、313(D−)の信号線上で異常データを強制的に発生させればよい。
【0034】
ログ管理手段326は、制御手段321からの通知により、USB通信のログを取得して保存する。この時、ログ管理手段326は、現在のUSB通信を解釈することにより、受信側を割り出し、受信側のバスモニタ手段からUSB信号を取得して保存する。
【0035】
以下、図4に示すフローチャートを参照して本発明の第2の実施形態のUSB規格通信機能の検査装置の動作を説明する。まず、手順に従い制御手段321が、異常データを発生させるパケットと、異常データを発生させておくビット時間とを設定する。また、ログ管理手段326に対してUSB通信のログの取得と保存を開始させるための通知を送出する。次に手順401に従いログ管理手段326が、制御手段321からのUSB通信のログ取得と保存の開始通知を受けて、現在のUSB通信を解釈することにより、受信側を割り出し、受信側のバスモニタ手段からUSB信号を取得して保存する。手順402では、バスモニタ手段323、324が、USBバスをモニタし、これにより、トランザクション管理手段322が、USB規格に基づくパケットを認識する。
【0036】
手順403では、トランザクション管理手段322が、手順400で設定されたパケットと、手順402で認識されるパケットとが一致するか否かを検証し、両者が一致した時、エラー発生装置325に対して異常データを発生させる開始指示の通知を送出する。手順404では、エラー発生手段325が、異常データを発生させる。
【0037】
以上のように、第2の実施形態によれば、USB通信機能を有する装置間のバス上で、USB通信中に、エラーを発生させるべき所定のパケットに対し異常データを発生させることにより、装置の各々には何らの変更を加えることなく、装置間の異常シーケンスの検査を行うことができると共に、USB通信機能を有する装置間のUSB通信の受信側の記録を得ることができる。
【0038】
【発明の効果】
以上説明したように、本発明によれば、USBホスト装置とUSBデバイス装置との間で、エラーを発生させるべき所定のパケットに対し異常データを発生させることで、実際の通信中に異常シーケンスを検査することができる。
【図面の簡単な説明】
【図1】本発明における第1の実施の形態のUSB規格通信機能の検査装置の構成を示すブロック図である。
【図2】本発明における第1の実施の形態のUSB規格通信機能の検査装置の動作を示すフローチャートである。
【図3】本発明における第2の実施の形態のUSB規格通信機能の検査装置の構成を示すブロック図である。
【図4】本発明における第2の実施の形態のUSB規格通信機能の検査装置の動作を示すフローチャートである。
【図5】従来のUSBホスト装置の検証を説明する図である。
【図6】従来のUSBデバイス装置の検証を説明する図である。
【符号の説明】
100、300 USBホスト装置
101、301 USBデバイス装置
110、112、310、312 USB規格に基づくD+信号線
111、113、311、313 USB規格に基づくD−信号線
114、115、314、315 USBケーブル
120、320 USBエラー発生装置
121、321 制御手段
122、322 トランザクション管理手段
123、124、323、324 バスモニタ手段
125、325 エラー発生手段
326 ログ管理手段[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an inspection method and an inspection apparatus for a USB standard communication function for generating abnormal data in order to verify an abnormal sequence between a USB host device and a USB device device connected by a USB (Universal Serial Bus) cable.
[0002]
[Prior art]
Conventionally, in an abnormal sequence verification in a USB host device and a USB device device, a user-programmable signal generator conforming to the USB standard is used in order to generate an error for each test. The USB signal generation device is connected as a counterpart of the device to be inspected, and when testing a USB host device, as shown in FIG. 5, the
[0003]
The USB signal generator shown in FIGS. 5 and 6 is programmed in advance with a command or a bit string so that it operates virtually as a communication partner of the device under test, and generates a USB signal based on the program content. The USB signal was generated from the device. When abnormal data is generated, an error is generated by programming an error pattern in advance as program contents.
[0004]
[Problems to be solved by the invention]
However, in the above-described conventional method, only the operation of the communication pattern programmed in advance is performed because of the user-programmable USB signal generator. For this reason, the operation timing of the USB signal generation device is not the operation at the timing of executing the actual packet communication between the USB host device and the USB device device, and the operation timing of the USB signal generation device is to transmit and receive the packet to the USB host device or the USB device device. It differs from the actual operation timing.
[0005]
Further, even in a form in which an actual USB host device and a USB device device are connected, PID (packet identifier) and CRC based on the USB standard are assigned by hardware, so that abnormal data is intentionally created and abnormal data is generated. It is difficult to inspect the sequence.
[0006]
SUMMARY OF THE INVENTION The present invention solves the above-mentioned conventional problems, and has a USB standard communication function capable of inspecting an abnormal sequence in a state where communication is actually performed between a USB host device and a USB device device. It is an object to provide an inspection device and an inspection method.
[0007]
[Means for Solving the Problems]
In order to achieve the above-mentioned object, a method for testing a USB standard communication function according to claim 1 provides a communication method between a USB standard host device and a USB standard device device connected to each other via a USB standard cable. This is a test method of a USB standard communication function for generating abnormal data in data, in which a USB standard packet in which abnormal data is to be generated is set in advance (procedure 200), and a signal on a USB bus is monitored to comply with the USB standard. A packet is detected (step 201), and it is verified whether or not the detected USB standard packet matches a preset USB standard packet that should cause abnormal data (step 202). In some cases, abnormal data is generated (step 203).
[0008]
According to a third aspect of the present invention, there is provided an inspection apparatus for a USB standard communication function, which generates abnormal data in communication data between a USB standard host device and a USB standard device connected to each other via a USB standard cable. An inspection device (error generation device 120) having a USB standard communication function, which includes a control unit (control unit 121) for setting in advance a USB standard packet in which abnormal data is to be generated, and a USB device which monitors a signal on a USB bus and monitors the signal. Packet detecting means (bus monitoring means 123, 124) for detecting a packet based on the standard; and a USB standard packet detected by the packet detecting means, the USB standard packet which is to generate abnormal data set by the control means. Transaction management means (transaction management) that verifies whether a packet matches A stage 122), wherein the matching by the transaction management means is provided with an abnormal data generation means for generating an error data when it is verified (the error generating means 125).
[0009]
According to the above configuration, an abnormal sequence can be inspected during actual communication by generating abnormal data for a predetermined packet that should cause an error between the USB host device and the USB device device.
[0010]
The USB standard communication function inspection method according to claim 2, wherein the USB standard generates abnormal data in communication data between the USB standard host device and the USB standard device connected to each other via a USB standard cable. This is a communication function inspection method, in which a USB standard packet for generating abnormal data is set in advance (procedure 400), and USB communication data between the USB host device and the USB device device is obtained (procedure 401). ), A signal on the USB bus is monitored to detect a packet based on the USB standard (procedure 402), and whether the detected USB standard packet matches a predetermined USB standard packet that should generate abnormal data. Verifying whether or not there is no match (step 403), and generating abnormal data when the match is verified (step 404) And it features.
[0011]
In addition, a USB standard communication function inspection device (error) that generates abnormal data in communication data between a USB standard host device and a USB standard device device connected to each other via a USB standard cable according to claim 4. A control unit (control unit 321) for setting in advance a USB standard packet in which abnormal data is to be generated, and receiving the notification from the control unit, the USB host device and the USB device device Log management means (log management means 326) for acquiring USB communication data between the two, and packet detection means (bus monitoring means 323, 324) for monitoring signals on the USB bus and detecting packets based on the USB standard. The packet of the USB standard detected by the packet detection means is transmitted to Transaction management means (transaction management means 322) for verifying whether or not the packet matches a USB standard packet for which data is to be generated, and abnormal data generation means for generating abnormal data when the transaction management means verifies the match ( Error generating means 325).
[0012]
According to the above configuration, an abnormal sequence can be inspected during actual communication by generating abnormal data for a predetermined packet that should cause an error between the USB host device and the USB device device. Further, a record on the receiving side of the USB communication can be obtained.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of an inspection device for a USB standard communication function according to the first embodiment of the present invention. In FIG. 1, a USB
[0014]
The
[0015]
When the
[0016]
The
[0017]
The error generating means 125 generates abnormal data in response to the notification from the transaction management means 122. In the error generating means 125, there are two methods for generating abnormal data.
[0018]
One is to set the signals 110 (D +) and 111 (D−) or the signals 112 (D +) and 113 (D−) based on the USB standard to GND (ground) for a bit time set in the
[0019]
The other is to invert the levels of the signals 110 (D +) and 111 (D−) or the signals 112 (D +) and 113 (D−) based on the USB standard by the bit time set in the
[0020]
Examples of the abnormal sequence include a CRC error and a PID error. The CRC error can be caused by generating abnormal data in the data area of the data packet based on the USB standard. When a CRC error is generated on the
[0021]
A PID error can be caused by generating abnormal data for a packet identification field in each packet. For example, when a PID error occurs on the
[0022]
Hereinafter, the operation of the inspection apparatus of the USB standard communication function according to the first embodiment of the present invention will be described with reference to the flowchart shown in FIG. First, according to the
[0023]
In
[0024]
As described above, according to the first embodiment, abnormal data is generated for a predetermined packet that should cause an error during USB communication on a bus between devices having a USB communication function, Inspection of abnormal sequences between devices can be performed without making any changes to each of the devices.
[0025]
FIG. 3 is a block diagram illustrating a configuration of a USB standard communication function inspection apparatus according to the second embodiment of the present invention. In FIG. 3, a USB
[0026]
The
[0027]
When the
[0028]
The
[0029]
The
[0030]
One is to set the signal 310 (D +), 311 (D−) or the signal 312 (D +), 313 (D−) based on the USB standard to GND (ground) for a bit time set in the
[0031]
The other is to invert the level of the signal 310 (D +), 311 (D−), or the signal 312 (D +), 313 (D−) based on the USB standard by the bit time set in the
[0032]
Examples of the abnormal sequence include a CRC error and a PID error. The CRC error can be caused by generating abnormal data in the data area of the data packet based on the USB standard. When a CRC error is generated on the USB host device 300 side, abnormal data is transmitted on a signal line of signals 310 (D +) and 111 (D−) based on the USB standard with respect to a data packet transmitted from the
[0033]
A PID error can be caused by generating abnormal data for a packet identification field in each packet. For example, when a PID error occurs on the USB host device 300 side, the signal 310 (D +) and 311 (D−) based on the USB standard are applied to the packet identification field in each packet transmitted from the
[0034]
The
[0035]
Hereinafter, the operation of the inspection apparatus for the USB standard communication function according to the second embodiment of the present invention will be described with reference to the flowchart shown in FIG. First, the
[0036]
In
[0037]
As described above, according to the second embodiment, abnormal data is generated for a predetermined packet that should cause an error during USB communication on a bus between devices having a USB communication function, Can be checked for an abnormal sequence between the devices without making any change, and a record on the receiving side of the USB communication between the devices having the USB communication function can be obtained.
[0038]
【The invention's effect】
As described above, according to the present invention, abnormal data is generated between a USB host device and a USB device device for a predetermined packet in which an error is to be generated. Can be inspected.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an inspection apparatus for a USB standard communication function according to a first embodiment of the present invention.
FIG. 2 is a flowchart illustrating an operation of the inspection apparatus for the USB standard communication function according to the first embodiment of the present invention.
FIG. 3 is a block diagram illustrating a configuration of an inspection apparatus for a USB standard communication function according to a second embodiment of the present invention.
FIG. 4 is a flowchart illustrating an operation of the inspection apparatus for the USB standard communication function according to the second embodiment of the present invention.
FIG. 5 is a diagram illustrating verification of a conventional USB host device.
FIG. 6 is a diagram illustrating verification of a conventional USB device device.
[Explanation of symbols]
100, 300
Claims (8)
異常データを発生させるべきUSB規格のパケットをあらかじめ設定し、USBバス上の信号を監視してUSB規格に基づくパケットを検出し、検出したUSB規格のパケットが、あらかじめ設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証し、一致が検証された時に異常データを発生させることを特徴とするUSB規格通信機能の検査方法。An inspection method of a USB standard communication function for generating abnormal data in communication data between a USB standard host device and a USB standard device device connected to each other via a USB standard cable,
A USB standard packet for which abnormal data should be generated is set in advance, a signal on the USB bus is monitored to detect a packet based on the USB standard, and the detected USB standard packet generates predetermined abnormal data. A method of testing a USB standard communication function, comprising verifying whether a packet conforms to a USB standard packet and generating abnormal data when the match is verified.
異常データを発生させるべきUSB規格のパケットをあらかじめ設定し、前記USBホスト装置と前記USBデバイス装置との間のUSB通信データを取得し、USBバス上の信号を監視してUSB規格に基づくパケットを検出し、検出したUSB規格のパケットが、あらかじめ設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証し、一致が検証された時に異常データを発生させることを特徴とするUSB規格通信機能の検査方法。An inspection method of a USB standard communication function for generating abnormal data in communication data between a USB standard host device and a USB standard device device connected to each other via a USB standard cable,
A packet of the USB standard in which abnormal data is to be generated is set in advance, USB communication data between the USB host device and the USB device device is obtained, a signal on the USB bus is monitored, and a packet based on the USB standard is transmitted. Detecting and detecting whether the detected USB standard packet matches a predetermined USB standard packet that should generate abnormal data, and generating abnormal data when the match is verified. Method for testing USB standard communication functions.
異常データを発生させるべきUSB規格のパケットをあらかじめ設定する制御手段と、
USBバス上の信号を監視してUSB規格に基づくパケットを検出するパケット検出手段と、
前記パケット検出手段により検出されたUSB規格のパケットが、前記制御手段により設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証するトランザクション管理手段と、
前記トランザクション管理手段により一致が検証された時に異常データを発生させる異常データ発生手段と、
を具備したことを特徴とするUSB規格通信機能の検査装置。An inspection apparatus of a USB standard communication function for generating abnormal data in communication data between a USB standard host device and a USB standard device device connected to each other via a USB standard cable,
Control means for setting in advance a USB standard packet to generate abnormal data;
Packet detection means for monitoring a signal on the USB bus to detect a packet based on the USB standard;
Transaction management means for verifying whether the USB-standard packet detected by the packet detection means matches a USB-standard packet that should cause abnormal data set by the control means,
Abnormal data generating means for generating abnormal data when a match is verified by the transaction management means;
An inspection apparatus for a USB standard communication function, comprising:
異常データを発生させるべきUSB規格のパケットをあらかじめ設定する制御手段と、
前記制御手段からの通知を受けて、前記USBホスト装置と前記USBデバイス装置との間のUSB通信データを取得するログ管理手段と、
USBバス上の信号を監視してUSB規格に基づくパケットを検出するパケット検出手段と、
前記パケット検出手段により検出されたUSB規格のパケットが、前記制御手段により設定された異常データを発生させるべきUSB規格のパケットと一致するか否かを検証するトランザクション管理手段と、
前記トランザクション管理手段により一致が検証された時に異常データを発生させる異常データ発生手段と、
を具備したことを特徴とするUSB規格通信機能の検査装置。An inspection apparatus of a USB standard communication function for generating abnormal data in communication data between a USB standard host device and a USB standard device device connected to each other via a USB standard cable,
Control means for setting in advance a USB standard packet to generate abnormal data;
Log management means for receiving a notification from the control means and acquiring USB communication data between the USB host device and the USB device device;
Packet detection means for monitoring a signal on the USB bus to detect a packet based on the USB standard;
Transaction management means for verifying whether the USB-standard packet detected by the packet detection means matches a USB-standard packet that should cause abnormal data set by the control means,
Abnormal data generating means for generating abnormal data when a match is verified by the transaction management means;
An inspection apparatus for a USB standard communication function, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002184681A JP2004030172A (en) | 2002-06-25 | 2002-06-25 | Inspection method and inspection device for usb standard communication function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002184681A JP2004030172A (en) | 2002-06-25 | 2002-06-25 | Inspection method and inspection device for usb standard communication function |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004030172A true JP2004030172A (en) | 2004-01-29 |
Family
ID=31180538
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002184681A Pending JP2004030172A (en) | 2002-06-25 | 2002-06-25 | Inspection method and inspection device for usb standard communication function |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004030172A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417621A (en) * | 2019-07-25 | 2019-11-05 | 长安大学 | A kind of lightweight embedded system abnormal operating condition detection method |
CN115333938A (en) * | 2022-07-19 | 2022-11-11 | 岚图汽车科技有限公司 | Vehicle safety protection control method and related equipment |
-
2002
- 2002-06-25 JP JP2002184681A patent/JP2004030172A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417621A (en) * | 2019-07-25 | 2019-11-05 | 长安大学 | A kind of lightweight embedded system abnormal operating condition detection method |
CN115333938A (en) * | 2022-07-19 | 2022-11-11 | 岚图汽车科技有限公司 | Vehicle safety protection control method and related equipment |
CN115333938B (en) * | 2022-07-19 | 2024-03-26 | 岚图汽车科技有限公司 | Vehicle safety protection control method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634258B (en) | Bus message checking method, device and system for hardware-in-loop test | |
KR101229521B1 (en) | Method and apparatus for remotely verifying memory integrity of a device | |
CN110838953B (en) | Test method, test system, electronic equipment and storage medium | |
CN110824982A (en) | ECU remote debugging method, server and storage medium | |
US20070282457A1 (en) | Programmable controller | |
CN113255271B (en) | Automatic verification system and method for IO pin of chip | |
CN109273045B (en) | Storage device online detection method, device, equipment and readable storage medium | |
CN113064618B (en) | System and method for simulating new energy vehicle conformance detection | |
CN109597389B (en) | Test system of embedded control system | |
JP2004030172A (en) | Inspection method and inspection device for usb standard communication function | |
US20090024875A1 (en) | Serial advanced technology attachment device and method testing the same | |
US20080068036A1 (en) | Semiconductor test system capable of virtual test and semiconductor test method thereof | |
JP5289481B2 (en) | Method, apparatus, and program for maintaining persistent wireless network connection | |
CN113037526B (en) | Security detection method, terminal, system and storage medium | |
CN109344096A (en) | A kind of method, apparatus, equipment and storage medium connecting external equipment | |
CN105827469A (en) | MODBUS TCP implementation defect tester and detection method thereof | |
CN111106979B (en) | Method and equipment for switch threshold alarm test | |
CN112040220B (en) | MPS key detection method, device and equipment of MoCA node and storage medium | |
CA3086983A1 (en) | Systems and methods for side-channel monitoring of a local network | |
KR101622386B1 (en) | Method for Test Protocol of WiBro Access System, and System therefor | |
KR100329652B1 (en) | Method for controlling remote board by using packet network | |
CN108199849B (en) | USBKey equipment security attack system and method for real-time data acquisition | |
JP2014202699A (en) | Cable inspection system, cable inspection device, information processing device, cable inspection method, and cable inspection program | |
KR20190134215A (en) | Apparatus for verification of electrical connectivity | |
CN113301019B (en) | Verification code vulnerability detection method and device, electronic device and storage medium |