JP2001245017A - Usb simulation device and storage medium - Google Patents

Usb simulation device and storage medium

Info

Publication number
JP2001245017A
JP2001245017A JP2000051668A JP2000051668A JP2001245017A JP 2001245017 A JP2001245017 A JP 2001245017A JP 2000051668 A JP2000051668 A JP 2000051668A JP 2000051668 A JP2000051668 A JP 2000051668A JP 2001245017 A JP2001245017 A JP 2001245017A
Authority
JP
Japan
Prior art keywords
usb
data
simulation
transmitted
external device
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.)
Granted
Application number
JP2000051668A
Other languages
Japanese (ja)
Other versions
JP3750467B2 (en
Inventor
Shigeru Nagashima
繁 長嶋
Kosuke Kawate
広介 川手
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 JP2000051668A priority Critical patent/JP3750467B2/en
Publication of JP2001245017A publication Critical patent/JP2001245017A/en
Application granted granted Critical
Publication of JP3750467B2 publication Critical patent/JP3750467B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To intentionally generate an error packet, an abnormal sequence in handshake or the like while maintaining handshake between a host and a device connected through a USB by a simulation program. SOLUTION: In this USB simulation device 1 in a performance form, a setting part 12a in a CPU 11 sets the address, transfer mode and band of a communicating device, a transaction managing part 12b manages test items (error packet, abnormal sequence, etc.), in each transaction, a received data deciding part 12c decides a response signal inputted from information informal decision, branches the subsequent processing in accordance with decision results and selects a test item to be conducted, data to be transmitted, etc., in the next transaction.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、USB(Universa
l Serial Bus)で接続されたパーソナルコンピュータや
周辺機器の通信機能とその動作を仮想的に行い検証する
USBシミュレーション装置に関する。
The present invention relates to a USB (Universa)
The present invention relates to a USB simulation device for virtually performing and verifying a communication function of a personal computer or a peripheral device connected by a serial bus) and its operation.

【0002】[0002]

【従来の技術】近年では、パーソナルコンピュータ(ホ
スト)とUSB規格に準拠したインターフェースによっ
て接続できるキーボード、マウス、スピーカ、モデム、
プリンタ等の周辺機器(デバイス)が多く開発されてい
る。
2. Description of the Related Art In recent years, keyboards, mice, speakers, modems, and the like that can be connected to a personal computer (host) by an interface conforming to the USB standard.
Many peripheral devices (devices) such as printers have been developed.

【0003】USBによるホスト−デバイス間の通信
は、ホストのUSBプロトコルソフトウエアによって制
御されている。つまり、デバイス側からデータを送信す
る場合であっても、ホストがデバイスにバス使用権を与
えてからデバイスがホストにデータを送信する。
[0003] Communication between the host and the device by USB is controlled by USB protocol software of the host. That is, even when data is transmitted from the device side, the device transmits data to the host after the host gives the bus use right to the device.

【0004】具体的には、ホスト及び各デバイスは、そ
れぞれUSBに準拠したコントローラを有する。ホスト
側のUSBコントローラは、USBプロトコルソフトウ
エアのプログラムに従って各デバイスにトークン・パケ
ットを発行する。トークンとは、ホストからデバイスに
データを送信するか(OUT)、デバイスからホストに
データを送信するか(IN)等をデバイスが区別するた
めのコードであり、デバイスは、受信したトークン・パ
ケットに応じた処理をする。また、パケットとは、ホス
トやデバイスが出力する情報や、そのデータ種を識別す
るコード、アドレス等を含んだ情報の単位を意味する。
[0004] More specifically, the host and each device have a USB-compliant controller. The USB controller on the host side issues a token packet to each device according to a program of USB protocol software. The token is a code used by the device to determine whether data is transmitted from the host to the device (OUT) or data is transmitted from the device to the host (IN). Perform the appropriate processing. The packet means a unit of information including information output by the host or the device, a code for identifying a data type, an address, and the like.

【0005】ホストは、デバイスと通信する際、トラン
ザクションと呼ばれる単位でデバイスとの通信スケジュ
ールを立てる。例えば、まず、ホストがデバイスにトー
クン・パケットを送信し、データのやり取りが終了する
と、データを受信した側が送信側にハンドシェイク・パ
ケットを送信して、トランザクションと呼ばれる通信単
位が終了する。
[0005] When communicating with a device, the host schedules communication with the device in units called transactions. For example, first, when the host transmits a token packet to the device and data exchange is completed, the data receiving side transmits a handshake packet to the transmitting side, and the communication unit called a transaction ends.

【0006】なお、USB上を流れるデータは、フレー
ムという概念で時間分割され、フレームの始めには、必
ずSOF(Start of Frame)パケットが付加される。ホ
ストは、SOF・パケットに続いて、予めスケジューリ
ングした順序で各パケットをデバイスと送受信する。
Note that data flowing on the USB is time-divided based on the concept of a frame, and an SOF (Start of Frame) packet is always added at the beginning of a frame. Following the SOF packet, the host transmits and receives each packet to and from the device in a previously scheduled order.

【0007】このようなUSBバス上を流れるデータを
テストパターンによって調べたり、USBを介したデバ
イスからの応答をUSBバス上で直接検証する場合、一
般的に、USBシミュレーション・モデルを用いて行
う。
In the case of examining data flowing on such a USB bus by a test pattern or directly verifying a response from a device via the USB on the USB bus, a USB simulation model is generally used.

【0008】USBシミュレーションを行う従来の専用
シミュレータ20は、図8に示すように、ホストやデバ
イスに出力する送信データのパターン(USBシミュレ
ーション・モデル)を記憶したメモリ21、送信データ
の送出タイミングを制御するタイミング発生器22、及
び、送信データをUSBのシリアルデータに変調した
り、受信データを復調するための符号変換回路23とか
ら構成される。
As shown in FIG. 8, a conventional dedicated simulator 20 for performing a USB simulation controls a memory 21 storing a pattern (USB simulation model) of transmission data to be output to a host or a device, and controls transmission timing of the transmission data. And a code conversion circuit 23 for modulating transmission data to USB serial data and demodulating received data.

【0009】つまり、専用シミュレータ20では、メモ
リ21に記憶された送信パターンを、符号変換回路23
でフレーム分割し、同期パターンを付加して、タイミン
グ発生器22が指定するタイミングでホストやデバイス
に出力する。
That is, the dedicated simulator 20 converts the transmission pattern stored in the memory 21 into a code conversion circuit 23.
, A synchronization pattern is added, and output to a host or a device at the timing specified by the timing generator 22.

【0010】また、図9に示すように、汎用のUSBコ
ントローラLSI31を用いてUSBシミュレーション
を行う場合もある。図9において、USBシミュレーシ
ョンシステム30は、USBコントローラLSI31、
制御マイコン32、USBドライバソフトウエア33と
から構成されており、制御マイコン32は、USBドラ
イバソフトウエア33に記憶されたテストプログラムに
従ってUSBコントローラLSI31を制御する。
Further, as shown in FIG. 9, a USB simulation may be performed using a general-purpose USB controller LSI 31. 9, a USB simulation system 30 includes a USB controller LSI 31,
The control microcomputer 32 includes a control microcomputer 32 and USB driver software 33. The control microcomputer 32 controls the USB controller LSI 31 according to a test program stored in the USB driver software 33.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、図8に
示すような従来の専用シミュレータ20では、同期化の
タイミングがずれたり、エラーデータなどにより再送処
理が必要になった場合、通信相手との接続が切れ、正常
なシミュレーション動作ができない。また、エラーパケ
ットや異常シーケンスを意図的に発生させた場合、その
都度通信相手との接続が切れるために、作業時間が冗長
化するという問題があった。
However, in the conventional dedicated simulator 20 as shown in FIG. 8, when resynchronization timing is shifted or retransmission processing becomes necessary due to error data or the like, connection with a communication partner is required. Is cut off and normal simulation operation cannot be performed. In addition, when an error packet or an abnormal sequence is intentionally generated, the connection with the communication partner is disconnected each time, so that there is a problem that the working time becomes redundant.

【0012】一方、図9に示すUSBシミュレーション
システム30では、検証するデバッグの用途に応じてU
SBドライバソフトウエア33の内容をチューニングす
る必要があり、手間がかかる。また、USBコントロー
ラLSI31では、制御マイコン32が、送受信するデ
ータを自動的に処理し、エラーが発生した場合には送信
リトライ信号をデータ発信側に要求するため、エラーパ
ケットや異常シーケンスを意図的に発生できない。
On the other hand, in the USB simulation system 30 shown in FIG.
It is necessary to tune the contents of the SB driver software 33, which is troublesome. In the USB controller LSI 31, the control microcomputer 32 automatically processes data to be transmitted and received, and when an error occurs, requests a transmission retry signal to the data transmission side. Cannot occur.

【0013】なお、通信のハンドシェイクを維持しなが
らシミュレーションを行う手法として、パケット単位で
ソフトウェアハンドリングしてシミュレーションプログ
ラムを実行する方式が従来技術として確立しているが、
USBにおけるトランザクション中のパケット応答は非
常に高速であるため、同一技術では実現が困難である。
As a technique of performing a simulation while maintaining a communication handshake, a method of executing a simulation program by performing software handling on a packet basis has been established as a conventional technique.
Since packet response during a transaction in USB is very fast, implementation with the same technology is difficult.

【0014】本発明の課題は、シミュレーションプログ
ラムによって、USBを介して接続されたホスト及びデ
バイス間のハンドシェイクを維持しながら、意図的にエ
ラーパケットやハンドシェイク等の異常シーケンスを発
生させることである。
It is an object of the present invention to intentionally generate an abnormal sequence such as an error packet or a handshake while maintaining a handshake between a host and a device connected via a USB by a simulation program. .

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明は、
USBで接続された主機器とその周辺機器との間で交わ
される信号処理を仮想的に実行するUSBシミュレーシ
ョン装置において、複数のテスト項目及びシミュレーシ
ョン上の命令を記憶する記憶手段と、前記記憶手段に記
憶された内容に基づいてUSBで接続される1つ或いは
複数の外部機器に送信するデータを管理する送信データ
管理手段(例えば、図4のCPU11内のトランザクシ
ョン管理部12b)と、前記記憶手段に記憶された内容
に基づいて前記外部機器のアドレスを設定する設定手段
(例えば、図4のCPU11内の設定部12a)と、前
記記憶手段に記憶された内容に基づいてデータを出力す
るタイミングを発生するタイミング発生手段(例えば、
図4のUSBコントローラ13内のUSB状態監視部1
3c)と、前記タイミング発生手段により発生されるタ
イミングで、前記設定手段により設定されたアドレスに
前記送信データ管理手段から指示されたデータを出力す
るデータ送信手段(例えば、図4のUSBコントローラ
13内の送信制御部13d)と、USBを介して前記外
部機器から入力される信号を受信する受信手段(例え
ば、図4のUSBコントローラ13内のステータス監視
部13f)と、前記受信手段により受信される信号に基
づいて次に送信するデータを判定し、前記送信データ管
理手段に出力する判定手段(例えば、図4のCPU11
内の受信データ判定部12c)と、を備え、接続される
外部機器に対して仮想主機器、或いは、仮想周辺機器と
して機能することを特徴としている。
According to the first aspect of the present invention,
In a USB simulation device that virtually executes signal processing exchanged between a main device connected by USB and its peripheral device, a storage unit that stores a plurality of test items and simulation instructions, and the storage unit A transmission data management unit (for example, a transaction management unit 12b in the CPU 11 of FIG. 4) that manages data to be transmitted to one or more external devices connected by USB based on the stored contents; A setting unit (for example, a setting unit 12a in the CPU 11 in FIG. 4) for setting an address of the external device based on the stored contents and a timing for outputting data based on the contents stored in the storage unit are generated. Timing generation means (for example,
USB status monitoring unit 1 in USB controller 13 in FIG.
3c) and data transmission means (for example, in the USB controller 13 in FIG. 4) which outputs data instructed by the transmission data management means to the address set by the setting means at the timing generated by the timing generation means. A transmission control unit 13d), a receiving unit (for example, a status monitoring unit 13f in the USB controller 13 in FIG. 4) that receives a signal input from the external device via a USB, and a signal received by the receiving unit. A determination unit that determines the next data to be transmitted based on the signal and outputs the data to the transmission data management unit (for example, the CPU 11 in FIG.
, And functions as a virtual main device or a virtual peripheral device for an external device to be connected.

【0016】請求項1記載の発明によれば、USBで接
続された主機器とその周辺機器との間で交わされる信号
処理を仮想的に実行するUSBシミュレーション装置に
おいて、記憶手段は、複数のテスト項目及びシミュレー
ション上の命令を記憶し、送信データ管理手段は、前記
記憶手段に記憶された内容に基づいてUSBで接続され
た1つ或いは複数の外部機器に送信するデータを管理
し、設定手段は、前記記憶手段に記憶された内容に基づ
いて前記外部機器のアドレスを設定し、タイミング発生
手段は、前記記憶手段に記憶された内容に基づいてデー
タを出力するタイミングを発生し、データ送信手段は、
前記タイミング発生手段により発生されるタイミング
で、前記設定手段により設定されたアドレスに前記送信
データ管理手段から指示されたデータを出力し、受信手
段は、USBを介して前記外部機器から入力される信号
を受信し、判定手段は、前記受信手段により受信される
信号に基づいて次に送信するデータを判定し、前記送信
データ管理手段に出力する。
According to the first aspect of the present invention, in the USB simulation apparatus for virtually executing signal processing exchanged between a main device connected via USB and its peripheral devices, the storage means includes a plurality of test devices. Item and simulation instruction are stored, the transmission data management means manages data to be transmitted to one or more external devices connected by USB based on the contents stored in the storage means, and the setting means is Setting the address of the external device based on the content stored in the storage unit, the timing generation unit generates a timing to output data based on the content stored in the storage unit, and the data transmission unit ,
At the timing generated by the timing generating means, the data instructed by the transmission data managing means is output to the address set by the setting means, and the receiving means outputs a signal input from the external device via USB. And the determination unit determines the next data to be transmitted based on the signal received by the reception unit, and outputs the data to the transmission data management unit.

【0017】従って、記憶手段に記憶した内容に合わせ
て接続する外部機器のアドレスを変更したり、データを
出力するタイミングを変更したり、外部機器から入力さ
れる信号に応じて次に出力するデータを選択できる。
Therefore, the address of an external device to be connected can be changed according to the contents stored in the storage means, the timing of outputting data can be changed, or the data to be output next can be changed according to a signal input from the external device. Can be selected.

【0018】請求項2記載の発明は、請求項1記載のU
SBシミュレーション装置において、送信データ管理手
段が、トランザクションの単位で送信するデータを管理
することを特徴としている。
According to the second aspect of the present invention, the U
In the SB simulation apparatus, the transmission data management means manages data to be transmitted in transaction units.

【0019】従って、情報をまとまった単位で管理する
ため、USBのバス内で交わされる通信が高速であるに
もかかわらず、外部機器から入力される信号に応じた処
理ができる。
Therefore, since information is managed in a unit, a process according to a signal input from an external device can be performed despite high-speed communication performed in the USB bus.

【0020】請求項3記載の発明は、請求項2記載のU
SBシミュレーション装置において、送信データ管理手
段が、意図的にエラーデータや異常なシーケンスを発生
することを特徴としている。
The invention according to claim 3 is the same as the invention according to claim 2,
The SB simulation apparatus is characterized in that the transmission data management means intentionally generates error data or an abnormal sequence.

【0021】従って、エラーデータや、異常なシーケン
スに対する外部機器の応答を検査できる。
Therefore, the response of the external device to the error data or the abnormal sequence can be inspected.

【0022】請求項4記載の発明は、請求項3記載のU
SBシミュレーション装置において、判定手段が、受信
手段により受信された外部機器から入力されるハンドシ
ェイク信号に基づいて次に送信するデータを判定し、外
部機器に対する全てのテスト項目が完了するまで通信の
接続を切断しないことを特徴としている。
According to a fourth aspect of the present invention, the U
In the SB simulation apparatus, the determining unit determines the next data to be transmitted based on the handshake signal input from the external device received by the receiving unit, and connects the communication until all test items for the external device are completed. Is not cut.

【0023】従って、エラーデータや異常なシーケンス
を発生しても、外部機器との接続が切断されず、USB
シミュレーションでの論理検証やバス内の信号検索等の
作業を効率的に実行できる。
Therefore, even if error data or an abnormal sequence occurs, the connection with the external device is not cut off and the USB
Operations such as logic verification in simulation and signal search in the bus can be efficiently executed.

【0024】請求項5記載の発明は、請求項1記載のU
SBシミュレーション装置において、前記設定手段が、
データを送信する外部機器のアドレスを設定すると共
に、送信するデータの転送特性を任意のモードに設定す
ることを特徴としている。
According to a fifth aspect of the present invention, the U
In the SB simulation apparatus, the setting unit includes:
It is characterized in that an address of an external device for transmitting data is set, and a transfer characteristic of data to be transmitted is set to an arbitrary mode.

【0025】従って、接続された外部機器に設定された
アドレスで転送モードに応じた送信を可能とするととも
に、そのモードにおいて異常なシーケンスでパケット送
信することで、外部機器の異常応答を検査できる。
Therefore, the transmission according to the transfer mode can be performed with the address set to the connected external device, and the abnormal response of the external device can be inspected by transmitting the packet in an abnormal sequence in the mode.

【0026】[0026]

【発明の実施の形態】以下、図1〜図7を参照して本発
明の実施の形態におけるUSBシミュレーション装置を
詳細に説明する。図1は、USBシミュレーション装置
1にホスト2と複数の周辺機器(以下、デバイス3)を
接続したUSB接続形態を示すブロック図である。図1
において、USBシミュレーション装置1は、各機器の
USBコントローラ2b・3bと接続されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a USB simulation device according to an embodiment of the present invention will be described in detail with reference to FIGS. FIG. 1 is a block diagram showing a USB connection configuration in which a host 2 and a plurality of peripheral devices (hereinafter, device 3) are connected to a USB simulation device 1. FIG.
, The USB simulation device 1 is connected to the USB controllers 2b and 3b of each device.

【0027】本実施の形態では、USBシミュレーショ
ン装置1は、仮想ホストとなってデバイス3と通信した
り(図2参照)、仮想デバイスとなってホスト2と通信
を行う(図3参照)。
In the present embodiment, the USB simulation device 1 communicates with the device 3 as a virtual host (see FIG. 2) or communicates with the host 2 as a virtual device (see FIG. 3).

【0028】図4は、本実施の形態におけるUSBシミ
ュレーション装置1の内部構成を示すブロック図であ
る。図4において、USBシミュレーション装置1は、
記憶媒体10、CPU11、及び、USBコントローラ
13とから構成されている。
FIG. 4 is a block diagram showing the internal configuration of the USB simulation device 1 according to the present embodiment. In FIG. 4, the USB simulation device 1
It comprises a storage medium 10, a CPU 11, and a USB controller 13.

【0029】記憶媒体10は、磁気的、光学的記憶媒
体、若しくは半導体メモリなどCPU10が読み取り可
能な構成をしており、USBシミュレーション装置1に
着脱可能な媒体や、ハードディスク等の固定的な媒体を
含む。記憶媒体10には、USBコントローラ13を制
御するための制御プログラムや、USBシミュレーショ
ンプログラム等が記憶される。
The storage medium 10 is configured to be readable by the CPU 10 such as a magnetic or optical storage medium or a semiconductor memory. The storage medium 10 may be a medium that is removable from the USB simulation device 1 or a fixed medium such as a hard disk. Including. The storage medium 10 stores a control program for controlling the USB controller 13, a USB simulation program, and the like.

【0030】CPU11は、記憶媒体10に記憶される
プログラムに従ってUSBコントローラ13を制御す
る。なお、CPU11は、設定部12a、トランザクシ
ョン管理部12b、及び、受信データ判定部13cによ
って、記憶媒体10に記憶されたUSBシミュレーショ
ンプログラムを実行する。
The CPU 11 controls the USB controller 13 according to a program stored in the storage medium 10. The CPU 11 executes the USB simulation program stored in the storage medium 10 by the setting unit 12a, the transaction management unit 12b, and the received data determination unit 13c.

【0031】設定部12aは、シミュレーション対象と
するデバイスの転送モード、帯域、及びアドレス設定の
定義をし、USBコントローラ13内のアドレス管理部
13a、帯域管理部13bに指示信号を出力する。
The setting unit 12a defines a transfer mode, a band, and an address setting of a device to be simulated, and outputs an instruction signal to the address management unit 13a and the band management unit 13b in the USB controller 13.

【0032】USBでは、1つの通信パイプに対するバ
ス専有帯域をコントロールして通信を行っている。例え
ば、キーボードやマウスなどのデバイスから入力される
信号を他のデバイスとの通信に割り込んで処理するため
のインタラプト転送や、大量のデータを転送するための
バルク転送、オーディオやビデオなど途切れては困るデ
ータを転送するためのアイソクロナス転送、ホストがデ
バイスの構成情報を取得するためのコントロール転送な
どの転送モードがある。
In the USB, communication is performed by controlling the bus occupation band for one communication pipe. For example, interrupt transfers for interrupting and processing signals input from devices such as keyboards and mice in communications with other devices, bulk transfers for transferring large amounts of data, and interruptions in audio and video are troublesome. There are transfer modes such as isochronous transfer for transferring data and control transfer for the host to acquire device configuration information.

【0033】つまり、設定部12aは、どのデバイスに
どの転送モードで通信するかを決定する。また、フレー
ムの始めに付加するSOF・パケットの出力タイミング
をずらしたり、異常なシーケンスで発生させる指示信号
をUSBコントローラ13内のアドレス管理部13a、
帯域管理部13bに出力する。
That is, the setting unit 12a determines which device communicates with which transfer mode. Also, an instruction signal for shifting the output timing of the SOF packet added to the beginning of the frame or generating an abnormal sequence is sent to the address management unit 13a in the USB controller 13,
Output to the band management unit 13b.

【0034】トランザクション管理部12bは、送信す
るデータの内容を記憶媒体10から呼び出して送信バッ
ファ13eに展開する展開指示信号と、エラーパケット
の発生やハンドシェイク応答の異常シーケンス生成を制
御する送信制御信号を生成し、USBコントローラ13
内の送信制御部13dに出力する。
The transaction management unit 12b reads out the contents of the data to be transmitted from the storage medium 10 and expands it in the transmission buffer 13e, and a transmission control signal for controlling the generation of an error packet and the generation of an abnormal sequence of a handshake response. Is generated, and the USB controller 13 is generated.
To the transmission control unit 13d.

【0035】トランザクションとは、ホストがデバイス
との通信を確立するために予め設定するスケジュール単
位であり、例えば、ホストからデバイスへの通信開始の
アクションで始まり、ハンドシェイクで終わる転送デー
タの組み合わせである。つまり、トランザクション管理
部12bは、受信データ判定部12cによる判定結果
と、記憶媒体10に記憶されたプログラムに基づいて、
トークン・パケットやデータ・パケット、ハンドシェイ
ク・パケット等のトランザクション内の各パケットを決
定し、それらの組み合わせを作る。
A transaction is a unit of schedule that is set in advance by the host to establish communication with the device, and is, for example, a combination of transfer data that starts with an action of starting communication from the host to the device and ends with a handshake. . That is, the transaction management unit 12b, based on the determination result by the reception data determination unit 12c and the program stored in the storage medium 10,
Determine each packet in the transaction, such as token packets, data packets, handshake packets, etc., and make a combination of them.

【0036】受信データ判定部12cは、USBコント
ローラ13内のステータス監視部13fから入力される
データから通信相手の応答が正常であったか異常終了し
たのかを判定し、処理を分岐させて次のトランザクショ
ンで出力するデータを決定して、トランザクション管理
部12bに処理結果を出力する。
The reception data determination unit 12c determines whether the response of the communication partner is normal or abnormal based on the data input from the status monitoring unit 13f in the USB controller 13, branches the processing, and executes the next transaction. The data to be output is determined, and the processing result is output to the transaction management unit 12b.

【0037】例えば、受信データ判定部12cは、出力
したエラー・パケットや異常シーケンスの応答を通信相
手から入力されるハンドシェイク・パケットに基づいて
判定し、引き続きハンドシェイクを断たないための出力
データを条件分岐によって決定する。
For example, the reception data judgment unit 12c judges the response of the output error packet or abnormal sequence based on the handshake packet input from the communication partner, and determines the output data for not continuing the handshake. Is determined by a conditional branch.

【0038】また、ホスト−デバイス間でコントロール
転送を実行する場合、ホストは、デバイスの状態を知る
ために、デバイスにディスクリプタの転送要求(セット
アップ・パケット)を出力する。ディスクリプタとは、
デバイスの接続状態や処理状態を意味するコードであ
る。従って、USBシミュレーション装置1が仮想ホス
トであり、デバイスとコントロール転送する場合には、
受信データ判定部12cは、デバイスから入力されるデ
ィスクリプタに応じた処理をする。
When performing control transfer between the host and the device, the host outputs a descriptor transfer request (setup packet) to the device in order to know the state of the device. What is a descriptor?
This code indicates the connection status and processing status of the device. Therefore, when the USB simulation device 1 is a virtual host and performs control transfer with a device,
The reception data determination unit 12c performs a process according to the descriptor input from the device.

【0039】USBコントローラ13は、アドレス管理
部13a、帯域管理部13b、USB状態監視部13
c、送信制御部13d、送信バッファ13e、ステータ
ス監視部13f、及び、コントロールデータキャプチャ
13gとから構成されており、CPU11から入力され
る指示に従って動作する。
The USB controller 13 includes an address management unit 13a, a band management unit 13b, a USB status monitoring unit 13
c, a transmission control unit 13d, a transmission buffer 13e, a status monitoring unit 13f, and a control data capture 13g, and operate in accordance with an instruction input from the CPU 11.

【0040】アドレス管理部13aは、CPU11内の
設定部12aから入力される指示に従って、デバイスの
アドレスを管理し、USB状態監視部13cに出力す
る。つまり、USBシミュレーション装置1が仮想ホス
トである場合には、接続された1つ或いは複数のデバイ
スのアドレスを管理し、USBシミュレーション装置1
が仮想デバイスである場合には、ホストから与えられた
アドレスを管理する。
The address management unit 13a manages device addresses according to instructions input from the setting unit 12a in the CPU 11, and outputs the device addresses to the USB status monitoring unit 13c. In other words, when the USB simulation device 1 is a virtual host, it manages the addresses of one or more connected devices, and
Is a virtual device, manages the address given by the host.

【0041】帯域管理部13bは、CPU11内の設定
部12aから入力される指示に従って出力する信号の送
信モードおよびその送信タイミングをコントロールす
る。
The band management unit 13b controls a transmission mode and a transmission timing of a signal to be output in accordance with an instruction input from the setting unit 12a in the CPU 11.

【0042】USB状態監視部13cは、アドレス管理
部13a、帯域管理部13b、及び、受信データ判定部
13fから入力されるデータに基づいてUSBバス状態
を監視し、送信可能なタイミングやモード、アドレス等
を送信制御部13dに出力する。
The USB status monitoring unit 13c monitors the USB bus status based on the data input from the address management unit 13a, the bandwidth management unit 13b, and the received data determination unit 13f, and determines the transmittable timing, mode, and address. And the like to the transmission control unit 13d.

【0043】送信制御部13dは、CPU11内のトラ
ンザクション管理部12bから入力される指示に従って
各パケットを生成し、USBコントローラ13から入力
されるタイミング及び転送モードに従って、USBバス
に出力する。なお、データを出力する場合には、トラン
ザクション管理部12bから入力される送信コマンドに
従って展開された送信バッファ13e内のデータをデー
タ・パケットとして出力する。
The transmission control unit 13d generates each packet in accordance with an instruction input from the transaction management unit 12b in the CPU 11, and outputs the packet to the USB bus according to the timing and transfer mode input from the USB controller 13. When outputting data, the data in the transmission buffer 13e expanded according to the transmission command input from the transaction management unit 12b is output as a data packet.

【0044】ステータス監視部13fは、USBバスを
介した接続相手から入力されるハンドシェイク・パケッ
トやデータ・パケット(ディスクリプト等)を解読し、
CPU11やUSB状態監視部13cに出力する。
The status monitor 13f decodes a handshake packet or data packet (descriptor or the like) input from a connection partner via the USB bus,
Output to the CPU 11 and the USB status monitoring unit 13c.

【0045】また、コントロールデータキャプチャ13
gは、ステータス監視部13fの解読結果を記憶し、記
憶された解読結果は、CPU11から入力される指示信
号に応じてステータス監視部13fから読み出されて受
信データ判定部12cに出力される。このようにコント
ロールデータキャプチャ13gに通信相手のステータス
を記憶することで、コントロール転送におけるセットア
ップ情報を正確に反映したプログラムを実行する。
The control data capture 13
g stores the decryption result of the status monitoring unit 13f, and the stored decryption result is read from the status monitoring unit 13f in response to an instruction signal input from the CPU 11, and output to the received data determination unit 12c. By storing the status of the communication partner in the control data capture 13g in this way, a program that accurately reflects the setup information in the control transfer is executed.

【0046】次に、図5〜図7を用いて本発明の実施の
形態における動作を説明する。図5は、USBシミュレ
ーション装置1が仮想ホストであり、デバイス3にデー
タを転送する場合(図2参照)のOUTトランザクショ
ンを説明するプロトコルフローである。
Next, the operation of the embodiment of the present invention will be described with reference to FIGS. FIG. 5 is a protocol flow illustrating an OUT transaction when the USB simulation device 1 is a virtual host and data is transferred to the device 3 (see FIG. 2).

【0047】図5において、USBシミュレーション装
置1(仮想ホスト)のCPU11は、転送モード、帯
域、通信するデバイス3のアドレス等を設定し(ステッ
プS1)、USBコントローラ13のアドレス管理部1
3a及び帯域管理部13bに出力する。
In FIG. 5, the CPU 11 of the USB simulation apparatus 1 (virtual host) sets the transfer mode, the band, the address of the device 3 to communicate with, etc. (step S1), and sets the address management unit 1 of the USB controller 13
3a and output to the band management unit 13b.

【0048】そして、CPU11は、送信制御部13d
にトークン・パケット生成指示を出力する。送信制御部
13dは、CPU11の指示に従ってトークンパケット
を生成すると、USB状態監視部13cから入力される
タイミングに従って指定された転送モード、帯域、及び
アドレス(デバイス3)にトークン・パケットを出力す
る(ステップS2)。
Then, the CPU 11 controls the transmission control unit 13d
To output a token packet generation instruction. After generating the token packet according to the instruction of the CPU 11, the transmission control unit 13d outputs the token packet to the specified transfer mode, band, and address (device 3) according to the timing input from the USB status monitoring unit 13c (step). S2).

【0049】ステップS2が終了すると、CPU11
は、該トランザクションにおいて仮想ホスト1が出力す
るデータをUSBコントローラ13内の送信バッファ1
3eに展開し(ステップS3)、データ・パケットの生
成指示を送信制御部13dに出力する。送信制御部13
dは、CPU11の指示に従って、送信バッファ13e
内から送信するデータを読み出すと、データ・パケット
を生成し、USB状態監視部13cから入力されるタイ
ミングに従ってデバイス3にデータ・パケットを出力す
る(ステップS4)
When step S2 ends, the CPU 11
Transmits the data output by the virtual host 1 in the transaction to the transmission buffer 1 in the USB controller 13.
3d (step S3), and outputs a data packet generation instruction to the transmission control unit 13d. Transmission control unit 13
d is the transmission buffer 13e according to the instruction of the CPU 11.
When the data to be transmitted is read from the inside, a data packet is generated, and the data packet is output to the device 3 according to the timing input from the USB status monitoring unit 13c (step S4).

【0050】一方、デバイス3は、仮想ホスト1からデ
ータ・パケットが入力されると、データの受信が正常に
行われたか否かを判断し、ハンドシェイク・パケットを
生成して仮想ホスト1に出力する(ステップS5)。
On the other hand, when a data packet is input from the virtual host 1, the device 3 determines whether or not the data has been normally received, generates a handshake packet, and outputs the handshake packet to the virtual host 1. (Step S5).

【0051】CPU11は、デバイス3から入力された
ハンドシェイク・パケットからデバイス3の通信状態を
把握し(ステップS6)、次のトランザクションで出力
するトークンやデータを選択し、トランザクション内の
各パケットの組み合わせを決定する。
The CPU 11 grasps the communication state of the device 3 from the handshake packet input from the device 3 (step S6), selects a token or data to be output in the next transaction, and combines each packet in the transaction. To determine.

【0052】以上に、USBシミュレーション装置1が
仮想ホストでデバイス3にデータを出力する場合のOU
Tトランザクションの流れを説明した。逆に、仮想ホス
ト1にデバイス3がデータを送信する場合には、仮想ホ
スト1がトークン・パケットをデバイス3に出力する
と、デバイス3はデータ・パケットを仮想ホスト1に出
力する。そして、仮想ホスト1内のCPU11は、受信
したデータ・パケットに応じて出力するハンドシェイク
を選択し、ハンドシェイク・パケットを生成するとデバ
イス3に出力する。
As described above, the OU when the USB simulation apparatus 1 outputs data to the device 3 by the virtual host
The flow of the T transaction has been described. Conversely, when the device 3 transmits data to the virtual host 1, when the virtual host 1 outputs a token packet to the device 3, the device 3 outputs a data packet to the virtual host 1. Then, the CPU 11 in the virtual host 1 selects a handshake to be output according to the received data packet, and outputs the handshake packet to the device 3 when the handshake packet is generated.

【0053】ハンドシェイクの選択は、USB規格に従
った制御プロトコルによるものでも良いし、予め記憶媒
体10に記憶された判定コマンドによって意図的に選択
するようにしてもよい。また、ハンドシェイク・パケッ
トを出力するタイミングをずらしてエラーを発生させる
こともできる。
The selection of the handshake may be based on a control protocol according to the USB standard, or may be intentionally selected by a determination command stored in the storage medium 10 in advance. Further, an error can be generated by shifting the timing of outputting the handshake packet.

【0054】次に、USBシミュレーション装置1が仮
想デバイスで、ホスト2にデータを出力する場合(図3
参照)のINトランザクションについて、図6に示すプ
ロトコルフローに基づいて説明する。
Next, when the USB simulation apparatus 1 is a virtual device and outputs data to the host 2 (FIG. 3)
6) will be described based on the protocol flow shown in FIG.

【0055】図6において、ホスト2がトークン・パケ
ットを生成し、仮想デバイス1に出力すると(ステップ
S10)、仮想デバイス1のCPU11は、転送するデ
ータをUSBコントローラ13内の転送バッファ13e
に展開し(ステップS11)、データ・パケット生成指
示を送信制御部13dに出力する。
In FIG. 6, when the host 2 generates a token packet and outputs it to the virtual device 1 (step S10), the CPU 11 of the virtual device 1 transfers the data to be transferred to the transfer buffer 13e in the USB controller 13.
(Step S11), and outputs a data packet generation instruction to the transmission control unit 13d.

【0056】送信制御部13dは、データ・パケットを
生成して、USB状態監視部13cから入力されるタイ
ミングに従ってホスト2にデータ・パケットを出力する
(ステップS12)。
The transmission control unit 13d generates a data packet and outputs the data packet to the host 2 according to the timing input from the USB status monitoring unit 13c (step S12).

【0057】ホスト2は、仮想デバイス1からデータ・
パケットを入力されるとハンドシェイク・パケットを生
成し、仮想デバイス1に出力する(ステップS13)。
The host 2 sends data from the virtual device 1
When a packet is input, a handshake packet is generated and output to the virtual device 1 (step S13).

【0058】CPU11は、ホスト2から入力されたハ
ンドシェイク・パケットからホスト2の通信状態を把握
し(ステップS14)、次のトランザクションで仮想デ
バイス1が出力するデータを決定する。
The CPU 11 grasps the communication state of the host 2 from the handshake packet input from the host 2 (step S14), and determines data to be output from the virtual device 1 in the next transaction.

【0059】以上に、仮想デバイス1がホスト2にデー
タを転送する場合のINトランザクションについて説明
をした。逆に、ホスト2が仮想デバイス1にデータを転
送するOUTトランザクションの場合には、CPU11
は、受信したトークン・パケットやデータ・パケットに
基づいてハンドシェイク・パケットを生成してホスト2
に出力する。
The IN transaction in the case where the virtual device 1 transfers data to the host 2 has been described. Conversely, in the case of an OUT transaction in which the host 2 transfers data to the virtual device 1, the CPU 11
Generates a handshake packet based on the received token packet and data packet, and
Output to

【0060】続いて、USBシミュレーション装置1が
仮想ホストであり、デバイス3とコントロール転送によ
る通信を実行する場合(図2参照)に、デバイス3が仮
想ホスト1からの要求に応じてディスクリプタを出力す
るときのINトランザクションについて図7に示すプロ
トコルフローを用いて説明する。
Subsequently, when the USB simulation apparatus 1 is a virtual host and executes communication by control transfer with the device 3 (see FIG. 2), the device 3 outputs a descriptor in response to a request from the virtual host 1. The IN transaction at this time will be described using the protocol flow shown in FIG.

【0061】図7において、仮想ホスト1のCPU11
は、転送モード、帯域、通信するデバイス3のアドレス
等を設定し(ステップS20)、指示信号をUSBコン
トローラ13のアドレス管理部13a及び帯域管理部1
3bに出力する。
In FIG. 7, the CPU 11 of the virtual host 1
Sets the transfer mode, the band, the address of the device 3 to communicate with, and the like (step S20), and sends the instruction signal to the address management unit 13a and the band management unit 1 of the USB controller 13.
3b.

【0062】更に、CPU11は、送信制御部13dに
トークン・パケット生成指示を出力する。送信制御部1
3dは、CPU11の指示に従ってトークンパケットを
生成すると、USB状態監視部13cから入力されるタ
イミングに従って指定された転送モード、帯域、及びア
ドレス(該デバイス)にトークン・パケットを出力する
(ステップS21)。
Further, the CPU 11 outputs a token packet generation instruction to the transmission control unit 13d. Transmission control unit 1
When generating the token packet according to the instruction of the CPU 11, the 3d outputs the token packet to the specified transfer mode, band, and address (the device) according to the timing input from the USB status monitoring unit 13c (step S21).

【0063】一方、デバイス3は、仮想ホスト1からト
ークン・パケットが入力されると、データ・パケット
(ディスクリプタ)を生成し、仮想ホスト1に出力する
(ステップS22)。
On the other hand, when the token packet is input from the virtual host 1, the device 3 generates a data packet (descriptor) and outputs it to the virtual host 1 (step S22).

【0064】CPU11は、デバイス3から入力された
ディスクリプタからデバイス3の状態を把握し(ステッ
プS23)、次のトランザクションで出力するトークン
やデータを選択し、トランザクション内の各パケットの
組み合わせを決定する。
The CPU 11 grasps the state of the device 3 from the descriptor input from the device 3 (step S23), selects a token or data to be output in the next transaction, and determines a combination of each packet in the transaction.

【0065】次いで、CPU11は、受信したデータ・
パケットに対するハンドシェイク・パケットを生成して
デバイス3に出力する(ステップS24)。
Next, the CPU 11 transmits the received data
A handshake packet for the packet is generated and output to the device 3 (Step S24).

【0066】以上は、デバイス3が仮想ホスト1にディ
スクリプタを出力するINトランザクションについて説
明したが、逆に図3に示す形態において、仮想デバイス
1がホスト2にディスクリプタを出力するOUTトラン
ザクションに本発明を適用してもよい。つまり、仮想デ
バイス1が出力するディスクリプタの内容を、記憶媒体
10に予め記憶されたステータスを設定するコマンドに
従って変更する。
The IN transaction in which the device 3 outputs a descriptor to the virtual host 1 has been described above. Conversely, in the embodiment shown in FIG. 3, the present invention is applied to an OUT transaction in which the virtual device 1 outputs a descriptor to the host 2. May be applied. That is, the contents of the descriptor output by the virtual device 1 are changed in accordance with the status setting command stored in the storage medium 10 in advance.

【0067】以上のように、本発明の実施の形態におけ
るUSBシミュレーション装置1は、CPU11内の設
定部12aによって通信するデバイスのアドレスや転送
モード、帯域を設定し、トランザクション管理部12b
でトランザクション毎にテスト項目(エラー・パケット
や異常なシーケンス等)を設定し、受信データ判定部1
2cで通信内定から入力される応答信号を判定し、判定
結果に応じてその後の処理を分岐して、次のトランザク
ションで実行するテスト項目や送信するデータ等を選択
する。
As described above, the USB simulation apparatus 1 according to the embodiment of the present invention sets the address, transfer mode, and band of the device to be communicated by the setting unit 12a in the CPU 11, and sets the transaction management unit 12b.
To set test items (error packets, abnormal sequences, etc.) for each transaction,
In 2c, a response signal input from the communication offer is determined, and the subsequent processing is branched according to the determination result, and a test item to be executed in the next transaction, data to be transmitted, and the like are selected.

【0068】従って、USBシミュレーション装置1
は、通信相手から入力される応答信号に応じて次のトラ
ンザクションの内容を変更できるので、通信相手とのハ
ンドシェイクを維持できる。また、CPU11内の設定
部12aによって、USBシミュレーション装置1が出
力する信号の転送モードを随時変更できるため、リアル
タイムで異常な信号を発信し、その応答を調べられる。
Therefore, the USB simulation device 1
Can change the content of the next transaction in accordance with the response signal input from the communication partner, so that the handshake with the communication partner can be maintained. Further, the transfer mode of the signal output by the USB simulation device 1 can be changed at any time by the setting unit 12a in the CPU 11, so that an abnormal signal can be transmitted in real time and the response can be checked.

【0069】更に、CPU11が実行するシミュレーシ
ョンの処理単位をパケットではなく、トランザクション
にしたので、USBでの高速な通信に対応できる。
Further, since the processing unit of the simulation executed by the CPU 11 is not a packet but a transaction, it is possible to cope with high-speed USB communication.

【0070】なお、本発明は、上記実施の形態において
示した内容に限定されるものではなく、本発明の趣旨を
逸脱しない範囲で適宜変更可能である。例えば、ホスト
2のCPU2a及びUSBコントローラ2bを用いて本
発明を実行できるように変更してもよい。また、図5〜
図7に本発明の実施の形態におけるプロトコルフローを
示したが、テスト項目や通信する機器の応答信号に応じ
てこれらの流れは適宜変更されるものである。
It should be noted that the present invention is not limited to the contents described in the above embodiment, but can be appropriately changed without departing from the spirit of the present invention. For example, the present invention may be modified so that the present invention can be executed using the CPU 2a and the USB controller 2b of the host 2. Also, FIG.
FIG. 7 shows the protocol flows in the embodiment of the present invention, but these flows are appropriately changed according to the test items and the response signals of the communicating devices.

【0071】[0071]

【発明の効果】請求項1記載のUSBシミュレーション
装置、請求項6記載の記憶媒体によれば、記憶手段に記
憶した内容に合わせて接続する外部機器のアドレスを変
更したり、データを出力するタイミングを変更したり、
外部機器から入力される信号に応じて次に出力するデー
タを選択できる。
According to the USB simulation apparatus of the first aspect and the storage medium of the sixth aspect, the timing of changing the address of an external device to be connected or outputting data in accordance with the content stored in the storage means. Or change
Data to be output next can be selected according to a signal input from an external device.

【0072】請求項2記載のUSBシミュレーション装
置によれば、送信データ管理手段がトランザクション単
位でデータを管理するため、USBのバス内で交わされ
る通信が高速であっても、外部機器から入力される信号
に応じた処理ができる。
According to the second aspect of the present invention, since the transmission data management means manages the data in transaction units, even if the communication exchanged in the USB bus is at a high speed, the data is input from an external device. Processing according to the signal can be performed.

【0073】請求項3記載のUSBシミュレーション装
置によれば、送信データ管理手段がエラーデータや異常
なシーケンスを発生するので、これらの異変な状況にお
ける外部機器の応答信号を検査できる。
According to the USB simulation device of the third aspect, since the transmission data management means generates error data and an abnormal sequence, it is possible to inspect the response signal of the external device in these unusual situations.

【0074】請求項4記載のUSBシミュレーション装
置によれば、判定手段が外部機器から入力されるハンド
シェイク信号に応じて次に送信するデータを選択するた
め、エラーデータや異常なシーケンスを発生させた後で
も外部機器との接続を維持できる。
According to the USB simulation device of the fourth aspect, since the determination means selects the next data to be transmitted in accordance with the handshake signal input from the external device, error data or an abnormal sequence is generated. The connection with the external device can be maintained later.

【0075】請求項5記載のUSBシミュレーション装
置によれば、設定手段は、送信するデータの転送特性を
変更できるため、接続される外部機器の転送モードと異
なるモードでデータを送信できる。従って、異常信号に
対する該外部機器の応答を検査できる。
According to the USB simulation device of the fifth aspect, since the setting means can change the transfer characteristics of the data to be transmitted, it can transmit the data in a mode different from the transfer mode of the connected external device. Therefore, the response of the external device to the abnormal signal can be inspected.

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

【図1】USBシミュレーション装置1の接続形態を示
すブロック図である。
FIG. 1 is a block diagram showing a connection mode of a USB simulation device 1.

【図2】USBシミュレーション装置1とデバイス3の
接続を示すブロック図である。
FIG. 2 is a block diagram showing a connection between the USB simulation apparatus 1 and a device 3.

【図3】USBシミュレーション装置1とホスト2の接
続を示すブロック図である。
FIG. 3 is a block diagram showing a connection between the USB simulation device 1 and a host 2.

【図4】USBシミュレーション装置1の内部構成を示
すブロック図である。
FIG. 4 is a block diagram showing an internal configuration of the USB simulation device 1.

【図5】OUTトランザクションのプロトコルフローで
ある。
FIG. 5 is a protocol flow of an OUT transaction.

【図6】INトランザクションのプロトコルフローであ
る。
FIG. 6 is a protocol flow of an IN transaction.

【図7】ディスクリプタを送受信する場合のプロトコル
フローである。
FIG. 7 is a protocol flow when a descriptor is transmitted and received.

【図8】従来の専用シミュレータ20の構成を示すブロ
ック図である。
FIG. 8 is a block diagram showing a configuration of a conventional dedicated simulator 20.

【図9】従来のUSBシミュレーションシステム30を
示すブロック図である。
FIG. 9 is a block diagram showing a conventional USB simulation system 30.

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

1 USBシミュレーション装置 10 記憶媒体 11 CPU 12a 設定部 12b トランザクション管理部 12c 受信データ判定部 13 USBコントローラ 13a アドレス管理部 13b 帯域管理部 13c USB状態監視部 13d 送信制御部 13e 送信バッファ 13f ステータス監視部 13g コントロールデータキャプチャ 2 ホスト 2a CPU 2b USBコントローラ 3 デバイス 3a USBデバイス 3b USBコントローラ 4 USB(バス) DESCRIPTION OF SYMBOLS 1 USB simulation apparatus 10 Storage medium 11 CPU 12a Setting part 12b Transaction management part 12c Received data judgment part 13 USB controller 13a Address management part 13b Bandwidth management part 13c USB state monitoring part 13d Transmission control part 13e Transmission buffer 13f Status monitoring part 13g Control Data capture 2 Host 2a CPU 2b USB controller 3 Device 3a USB device 3b USB controller 4 USB (bus)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04L 12/44 H04L 11/00 340 Fターム(参考) 5B048 AA06 AA08 DD05 DD17 DD18 5B077 AA04 AA17 AA23 BA03 BB03 DD02 FF11 GG05 GG16 5B083 AA08 BB06 CC12 CE03 DD04 EE02 EE07 EF04 EF05 EF15 5K033 AA05 AA06 CB01 CB03 DA01 DA12 5K035 AA03 BB02 CC01 DD03 EE01 FF01 HH02 HH07 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04L 12/44 H04L 11/00 340 F term (Reference) 5B048 AA06 AA08 DD05 DD17 DD18 5B077 AA04 AA17 AA23 BA03 BB03 DD02 FF11 GG05 GG16 5B083 AA08 BB06 CC12 CE03 DD04 EE02 EE07 EF04 EF05 EF15 5K033 AA05 AA06 CB01 CB03 DA01 DA12 5K035 AA03 BB02 CC01 DD03 EE01 FF01 HH02 HH07

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】USBで接続された主機器とその周辺機器
との間で交わされる信号処理を仮想的に実行するUSB
シミュレーション装置において、 複数のテスト項目及びシミュレーション上の命令を記憶
する記憶手段と、 前記記憶手段に記憶された内容に基づいてUSBで接続
される1つ或いは複数の外部機器に送信するデータを管
理する送信データ管理手段と、 前記記憶手段に記憶された内容に基づいて前記外部機器
のアドレスを設定する設定手段と、 前記記憶手段に記憶された内容に基づいてデータを出力
するタイミングを発生するタイミング発生手段と、 前記タイミング発生手段により発生されるタイミング
で、前記設定手段により設定されたアドレスに前記送信
データ管理手段から指示されたデータを出力するデータ
送信手段と、 USBを介して前記外部機器から入力される信号を受信
する受信手段と、 前記受信手段により受信される信号に基づいて次に送信
するデータを判定し、前記送信データ管理手段に出力す
る判定手段と、を備え、接続される外部機器に対して仮
想主機器、或いは、仮想周辺機器として機能することを
特徴とするUSBシミュレーション装置。
1. A USB for virtually executing signal processing exchanged between a main device and its peripheral devices connected by USB.
In the simulation device, a storage unit that stores a plurality of test items and a command on a simulation, and manages data to be transmitted to one or more external devices connected by USB based on the content stored in the storage unit. Transmission data management means, setting means for setting the address of the external device based on the contents stored in the storage means, and timing generation for generating a timing for outputting data based on the contents stored in the storage means Means, at a timing generated by the timing generating means, data transmitting means for outputting data instructed by the transmission data managing means to an address set by the setting means, and input from the external device via USB Receiving means for receiving a signal to be received, and a signal received by the receiving means. And a determination unit for determining data to be transmitted next based on the transmission data management unit, and functioning as a virtual main device or a virtual peripheral device for an external device to be connected. USB simulation device.
【請求項2】前記送信データ管理手段は、トランザクシ
ョンの単位で送信するデータを管理することを特徴とす
る請求項1記載のUSBシミュレーション装置。
2. The USB simulation apparatus according to claim 1, wherein said transmission data management means manages data to be transmitted in transaction units.
【請求項3】前記送信データ管理手段は、意図的にエラ
ーデータや異常なシーケンスを発生することを特徴とす
る請求項2記載のUSBシミュレーション装置。
3. The USB simulation apparatus according to claim 2, wherein said transmission data management means intentionally generates error data or an abnormal sequence.
【請求項4】前記判定手段は、前記受信手段により受信
された前記外部機器から入力されるハンドシェイク信号
に基づいて次に送信するデータを判定し、前記外部機器
に対する全てのテスト項目が完了するまで通信の接続を
切断しないことを特徴とする請求項3記載のUSBシミ
ュレーション装置。
4. The determination means determines next data to be transmitted based on a handshake signal input from the external device received by the reception means, and all test items for the external device are completed. 4. The USB simulation apparatus according to claim 3, wherein the communication connection is not disconnected until the connection.
【請求項5】前記設定手段は、データを送信する外部機
器のアドレスを設定すると共に、送信するデータの転送
特性を任意のモードに設定することを特徴とする請求項
1記載のUSBシミュレーション装置。
5. The USB simulation apparatus according to claim 1, wherein said setting means sets an address of an external device to which data is transmitted, and sets a transfer characteristic of data to be transmitted to an arbitrary mode.
【請求項6】USBで接続された主機器とその周辺機器
との間で交わされる信号処理を仮想的に実行し、接続さ
れる外部機器に対して仮想主機器、或いは、仮想周辺機
器として機能するためのコンピュータが実行可能なプロ
グラムを格納した記憶媒体であって、 複数のテスト項目及びシミュレーション上の命令に基づ
いて、USBを介して接続される1つ或いは複数の外部
機器に送信するデータを管理するためのプログラムコー
ドと、 複数のテスト項目及びシミュレーション上の命令に基づ
いて前記外部機器のアドレスを設定するためのプログラ
ムコードと、 複数のテスト項目及びシミュレーション上の命令に基づ
いてデータを出力するタイミングを発生するためのプロ
グラムコードと、 前記タイミングで、設定した前記アドレスに管理するデ
ータを出力するためのプログラムコードと、 USBを介して前記外部機器から入力される信号を受信
するためのプログラムコードと、 受信される信号に基づいて次に送信するデータを判定す
るためのプログラムコードと、を含むプログラムを記憶
することを特徴とする記憶媒体。
6. A virtual main device or a virtual peripheral device for a connected external device by virtually executing signal processing exchanged between a main device connected via USB and its peripheral device. A storage medium storing a computer-executable program for performing, based on a plurality of test items and simulation instructions, data to be transmitted to one or more external devices connected via USB. A program code for managing, a program code for setting an address of the external device based on a plurality of test items and a simulation instruction, and outputting data based on a plurality of test items and a simulation instruction. A program code for generating timing, and managing the set address at the timing. A program code for outputting data to be transmitted from the external device via a USB, and a program for determining next data to be transmitted based on the received signal. A storage medium for storing a program including a code.
JP2000051668A 2000-02-28 2000-02-28 USB simulation apparatus and storage medium Expired - Fee Related JP3750467B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000051668A JP3750467B2 (en) 2000-02-28 2000-02-28 USB simulation apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000051668A JP3750467B2 (en) 2000-02-28 2000-02-28 USB simulation apparatus and storage medium

Publications (2)

Publication Number Publication Date
JP2001245017A true JP2001245017A (en) 2001-09-07
JP3750467B2 JP3750467B2 (en) 2006-03-01

Family

ID=18573291

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000051668A Expired - Fee Related JP3750467B2 (en) 2000-02-28 2000-02-28 USB simulation apparatus and storage medium

Country Status (1)

Country Link
JP (1) JP3750467B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007005916A (en) * 2005-06-21 2007-01-11 Hitachi Ltd Network apparatus, network system, and toughness performance confirming method
US8099633B2 (en) 2006-09-29 2012-01-17 Oki Semiconductor Co., Ltd. Circuit for testing a USB device using a packet to be measured controlled by test signals
CN105940384A (en) * 2014-03-14 2016-09-14 谷歌公司 Universal serial bus emulation of peripheral devices
JP2017123117A (en) * 2016-01-08 2017-07-13 Kddi株式会社 Communication device, communication system, communication method, and program
CN116089199A (en) * 2023-03-30 2023-05-09 湖南华自信息技术有限公司 IO port testing method and server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007005916A (en) * 2005-06-21 2007-01-11 Hitachi Ltd Network apparatus, network system, and toughness performance confirming method
JP4564412B2 (en) * 2005-06-21 2010-10-20 株式会社日立製作所 Network device, network system, and toughness confirmation method
US8099633B2 (en) 2006-09-29 2012-01-17 Oki Semiconductor Co., Ltd. Circuit for testing a USB device using a packet to be measured controlled by test signals
CN105940384A (en) * 2014-03-14 2016-09-14 谷歌公司 Universal serial bus emulation of peripheral devices
JP2017508202A (en) * 2014-03-14 2017-03-23 グーグル インコーポレイテッド Universal serial bus emulation of peripheral devices
JP2017123117A (en) * 2016-01-08 2017-07-13 Kddi株式会社 Communication device, communication system, communication method, and program
CN116089199A (en) * 2023-03-30 2023-05-09 湖南华自信息技术有限公司 IO port testing method and server

Also Published As

Publication number Publication date
JP3750467B2 (en) 2006-03-01

Similar Documents

Publication Publication Date Title
JP4564665B2 (en) Method and apparatus for extending the range of general serial bus protocols
JPH11296316A (en) Peripheral processor and control method therefor
JP2000232465A (en) Device and method for controlling interface
US20010018646A1 (en) USB simulation apparatus and storage medium
JP3400772B2 (en) Packet transmission / reception processing device
JP2001282701A (en) Device and method for processing information
JP2001245017A (en) Usb simulation device and storage medium
JPH11275122A (en) Data transmitter
JP2001326670A (en) Information processing unit and bridge utilizing the same
US7826492B2 (en) Communication system, cycle master node and communication method
JP2003218981A (en) Data transmission apparatus and data transmission method
JP4737049B2 (en) Communication system and electronic control device
JP2000224260A (en) Communication controller
CN110687854A (en) PA bus controller and PA bus control system
JP2001312416A (en) Usb data simulation device and storage medium
JPS62121562A (en) Data communication system
JP4666369B2 (en) USB device
JPH06236348A (en) Data transmission system
JP3817741B2 (en) Editing device
JP3299021B2 (en) Multi-bus II-SCSI bus data transfer method and apparatus
JP2003124947A (en) Daisy chain data input/output system by serial communication system
JPH11127219A (en) Data transfer equipment
JP4067199B2 (en) Data processing device
JP2012094081A (en) Bus arbitration circuit and bus arbitration method
JPH1078925A (en) Communication device

Legal Events

Date Code Title Description
A625 Written request for application examination (by other person)

Free format text: JAPANESE INTERMEDIATE CODE: A625

Effective date: 20040810

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20041001

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050216

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051025

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051128

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees