JP2002232516A - Emulator, emulation method, emulation program and recording medium, and communication device evaluation method - Google Patents

Emulator, emulation method, emulation program and recording medium, and communication device evaluation method

Info

Publication number
JP2002232516A
JP2002232516A JP2001030685A JP2001030685A JP2002232516A JP 2002232516 A JP2002232516 A JP 2002232516A JP 2001030685 A JP2001030685 A JP 2001030685A JP 2001030685 A JP2001030685 A JP 2001030685A JP 2002232516 A JP2002232516 A JP 2002232516A
Authority
JP
Japan
Prior art keywords
emulation
response
packet
request packet
network
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
JP2001030685A
Other languages
Japanese (ja)
Inventor
Takashi Yamamoto
孝 山本
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2001030685A priority Critical patent/JP2002232516A/en
Publication of JP2002232516A publication Critical patent/JP2002232516A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an emulator that can flexibly revise its emulation function. SOLUTION: A generating means 1a generates emulation data 1d in response to an operation entry from a user designating a response packet with respect to a request packet. The request packet and the response packet are registered to the emulation data 1d while being made correspondent to each other. Upon the receipt of the request packet from an evaluation object device 2, a decision means 1b refers to the emulation data 1d to decide the response packet corresponding to the request packet. A transmission means 1c transmits the response packet decided by the decision means 1b to the evaluation object device 2 via a network 3.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はエミュレータ、エミ
ュレート方法、エミュレーションプログラムおよび記録
媒体、ならびに通信機器評価方法に関し、特に通信機器
の評価に使用されるエミュレータ、エミュレート方法、
エミュレーションプログラムおよび記録媒体ならびに通
信機器評価方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an emulator, an emulation method, an emulation program and a recording medium, and a communication device evaluation method.
The present invention relates to an emulation program, a recording medium, and a communication device evaluation method.

【0002】[0002]

【従来の技術】近年、ネットワーク技術の発達により、
様々な機器がネットワークで互いに接続できるようにな
っている。たとえば、家庭用電化製品であるビデオデッ
キとテレビとをネットワークで接続することが可能であ
る。このとき用いられるネットワークとして、たとえ
ば、IEEE1394(米国電気電子学会で規定したバス規格)
がある。IEEE1394は、i.Linkという愛称で呼ば
れ、多くの製品に採用されている。
2. Description of the Related Art In recent years, with the development of network technology,
Various devices can be connected to each other via a network. For example, a VCR, which is a household appliance, and a television can be connected via a network. The network used at this time is, for example, IEEE1394 (a bus standard defined by the Institute of Electrical and Electronics Engineers of America).
There is. IEEE1394 is i. Link is nicknamed and is used in many products.

【0003】IEEE1394インタフェースを備えた機器の開
発段階では、そのインタフェースが正常に動作すること
を確認する必要がある。インタフェースの動作を確認す
るための機器として、バスアナライザがある。バスアナ
ライザは、開発中の機器のIEEE1394端子に接続される。
そして、バスアナライザにより、IEEE1394端子から所望
のパケットがIEEE1394バス上に出されていることを確認
することができる。
In the development stage of a device having an IEEE1394 interface, it is necessary to confirm that the interface operates normally. There is a bus analyzer as a device for confirming the operation of the interface. The bus analyzer is connected to the IEEE1394 terminal of the device under development.
Then, the bus analyzer can confirm that a desired packet is output from the IEEE1394 terminal onto the IEEE1394 bus.

【0004】さらに高度な評価を行う場合、IEEE1394機
器とIEEE1394を介した通信が可能なエミュレータが用い
られる。エミュレータは、評価対象のIEEE1394機器が他
のIEEE1394機器と通信するために、その相手機器(以
後,ターゲット機器と呼ぶ)の機能を擬似的に実現す
る。擬似的に実現される機能とは、具体的には、IEEE13
94機器が送信するIEEE1394非同期トランザクション要求
(以後,Async要求と呼ぶ)またはAV/C Digital Interf
ace Command Set General Specification 3.0(以後,A
V/Cと呼ぶ)に定められるコマンドに対して、ターゲ
ット機器と同じ応答を送信する機能である。さらに、エ
ミュレータでは、ターゲットになりすまして、適切な要
求をIEEE1394機器に対して送信する機能も擬似的に実現
される。
[0004] For more advanced evaluations, an emulator capable of communicating with IEEE1394 devices via IEEE1394 is used. The emulator simulates a function of a partner device (hereinafter, referred to as a target device) in order for the IEEE 1394 device to be evaluated to communicate with another IEEE 1394 device. The pseudo-implemented functions are, specifically, IEEE13
94 IEEE1394 asynchronous transaction request (hereinafter referred to as Async request) or AV / C Digital Interf
ace Command Set General Specification 3.0 (hereinafter A
V / C) is a function of transmitting the same response as that of the target device in response to a command defined in the target device. Further, in the emulator, a function of impersonating a target and transmitting an appropriate request to an IEEE 1394 device is pseudo-realized.

【0005】既存のバスアナライザにはこのターゲット
のエミュレーション機能は搭載されていない。そのた
め、IEEE1394端子を有するパーソナルコンピュータ上に
ターゲットのソフトウェアエミュレータを実装すること
で、エミュレータが提供されていた。
[0005] Existing bus analyzers do not have this target emulation function. Therefore, emulators have been provided by mounting a target software emulator on a personal computer having an IEEE1394 terminal.

【0006】[0006]

【発明が解決しようとする課題】しかし、パーソナルコ
ンピュータ上で実現されるエミュレータは、実装時のプ
ログラムによって応答内容が固定化されていた。そのた
め、応答内容を変更するには、応答する信号の1ビット
のみが異なるだけであったとしても、プログラムを書き
直す必要があった。プログラムの書き直しは手間のかか
る作業であるため、次々と開発されるIEEE1394機器に、
エミュレータを柔軟に対応させることができなかった。
そこで、応答内容等のエミュレーション機能を柔軟に変
更可能なエミュレータが求められてきている。
However, in an emulator realized on a personal computer, the response content is fixed by a program at the time of mounting. Therefore, in order to change the content of the response, it is necessary to rewrite the program even if only one bit of the response signal is different. Since rewriting the program is a time-consuming task, the IEEE1394 devices that are being developed one after another
The emulator could not be flexibly supported.
Therefore, an emulator that can flexibly change an emulation function such as a response content has been demanded.

【0007】本発明はこのような点に鑑みてなされたも
のであり、エミュレーション機能を柔軟に変更可能なエ
ミュレータ、エミュレート方法、エミュレーションプロ
グラムおよび記録媒体ならびに評価対象機器に応じた評
価を柔軟に行うことができる通信機器評価方法を提供す
ることを目的とする。
The present invention has been made in view of the above points, and flexibly performs an evaluation according to an emulator capable of flexibly changing an emulation function, an emulation method, an emulation program, a recording medium, and a device to be evaluated. It is an object of the present invention to provide a communication device evaluation method capable of performing the above.

【0008】[0008]

【課題を解決するための手段】本発明では上記課題を解
決するために、ネットワークに接続可能な機器の通信機
能をまねた処理を実行するエミュレータにおいて、要求
パケットに対応する応答パケットを指定する操作入力に
応答して、要求パケットと応答パケットとの対応関係を
定義したエミュレーションデータを生成する生成手段
と、前記評価対象機器より前記ネットワークを介して要
求パケットを受け取ると、前記生成手段で生成された前
記エミュレーションデータを参照し、受け取った要求パ
ケットに対応する応答パケットを決定する決定手段と、
前記決定手段で決定された応答パケットを、前記ネット
ワークを介して前記評価対象機器に送信する送信手段
と、を有することを特徴とするエミュレータが提供され
る。
According to the present invention, in order to solve the above-described problems, an emulator for executing a process imitating a communication function of a device connectable to a network is provided with an operation for designating a response packet corresponding to a request packet. In response to the input, generating means for generating emulation data defining a correspondence relationship between the request packet and the response packet, and when the request packet is received from the evaluation target device via the network, the generating means generates the emulation data. Determining means for referring to the emulation data and determining a response packet corresponding to the received request packet;
A transmitting unit that transmits the response packet determined by the determining unit to the evaluation target device via the network.

【0009】このようなエミュレータによれば、ユーザ
は操作入力により、任意の応答パケットを、要求パケッ
トに対応付けることができる。要求パケットと応答パケ
ットとの対応関係はエミュレーションデータで定義さ
れ、評価対象機器から要求パケットを受け取ると、エミ
ュレーションデータで定義された応答パケットが、評価
対象機器に送信される。
According to such an emulator, a user can associate an arbitrary response packet with a request packet by an operation input. The correspondence between the request packet and the response packet is defined by the emulation data. When the request packet is received from the evaluation target device, the response packet defined by the emulation data is transmitted to the evaluation target device.

【0010】これにより、応答パケットの内容を容易に
変更することが可能となり、様々な機器に対応して、エ
ミュレーション機能を柔軟に変更することが出来る。ま
た、本発明では上記課題を解決するために、上記エミュ
レータが行う処置にそったエミュレーションを行うエミ
ュレーション方法、そのエミュレーション方法をコンピ
ュータに実行させるためのエミュレーションプログラ
ム、およびそのエミュレーションプログラムを記録した
記録媒体が提供される。
Thus, the contents of the response packet can be easily changed, and the emulation function can be flexibly changed corresponding to various devices. In the present invention, in order to solve the above-mentioned problems, an emulation method for performing emulation in accordance with the processing performed by the emulator, an emulation program for causing a computer to execute the emulation method, and a recording medium on which the emulation program is recorded are provided. Provided.

【0011】これにより、応答パケットの内容を容易に
変更することが可能となり、様々な機器に対応して、エ
ミュレーション機能を柔軟に変更することが出来る。ま
た、上記課題を解決するために、ネットワークに接続可
能な評価対象機器と、前記評価対象機器と通信可能なタ
ーゲット機器との間の通信機能を評価するための通信機
器評価方法において、前記評価対象機器と、前記ターゲ
ット機器の通信機能をまねるエミュレータとを、前記ネ
ットワークを介して接続し、前記評価対象機器から出力
される要求パケットと、前記要求パケットに応じて前記
ターゲット機器が出力する応答パケットとの対応関係を
定義したエミュレーションデータを、前記エミュレータ
に設定し、前記評価対象機器から前記エミュレータに、
前記ネットワークを介して前記要求パケットが送信され
ると、前記エミュレータが前記エミュレーションデータ
を参照して応答パケットを決定し、決定された応答パケ
ットを、前記ネットワークを介して前記エミュレータか
ら前記評価対象機器に送信する、ことを特徴とする通信
機器評価方法が提供される。
As a result, the content of the response packet can be easily changed, and the emulation function can be flexibly changed corresponding to various devices. Further, in order to solve the above problem, in a communication device evaluation method for evaluating a communication function between an evaluation target device connectable to a network and a target device capable of communicating with the evaluation target device, the evaluation target device A device and an emulator that mimics the communication function of the target device are connected via the network, a request packet output from the device to be evaluated, and a response packet output by the target device in response to the request packet. The emulation data defining the correspondence between is set in the emulator, and the evaluation target device sends the emulation data to the emulator.
When the request packet is transmitted via the network, the emulator determines a response packet with reference to the emulation data, and transmits the determined response packet from the emulator to the evaluation target device via the network. Transmitting a communication device evaluation method.

【0012】このような通信機器評価方法によれば、エ
ミュレータに対して、任意のエミュレーションデータを
設定すると、設定されたエミュレーションデータに従っ
て、評価対象機器からの要求パケットに対する応答パケ
ットが決定される。決定された応答パケットは、エミュ
レータから評価対象機器に送られる。これにより、エミ
ュレータが応答する際の応答パケットの内容を容易に変
更可能となり、様々な評価対象機器から要求パケットを
受け取ったときのターゲット機器のふるまいを、エミュ
レータにより容易にまねることが出来る。
According to such a communication device evaluation method, when any emulation data is set in the emulator, a response packet to a request packet from the device to be evaluated is determined according to the set emulation data. The determined response packet is sent from the emulator to the device to be evaluated. As a result, the content of the response packet when the emulator responds can be easily changed, and the behavior of the target device when receiving the request packet from various evaluation target devices can be easily mimicked by the emulator.

【0013】[0013]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。図1は、本発明の原理構成図であ
る。本発明に係るエミュレータ1は、ネットワーク3を
介して評価対象機器2に接続されている。評価対象機器
2は、たとえば、ネットワーク3による通信機能を備え
たDTV(ディジタルテレビジョン)などである。ネッ
トワーク3は、たとえばコンピュータ通信ネットワーク
であり、IEEE1394などが用いられる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram illustrating the principle of the present invention. An emulator 1 according to the present invention is connected to an evaluation target device 2 via a network 3. The evaluation target device 2 is, for example, a DTV (Digital Television) having a communication function via the network 3. The network 3 is, for example, a computer communication network, and uses IEEE1394 or the like.

【0014】エミュレータ1は、処理機能として、生成
手段1a、決定手段1b、送信手段1cを有している。
生成手段1aは、要求パケットに対応する応答パケット
を指定するユーザからの操作入力に応答して、エミュレ
ーションデータ1dを生成する。エミュレーションデー
タ1dは、ネットワーク3に接続可能な他の機器(ター
ゲット機器)の通信に関する動作を定義したものであ
る。エミュレーションデータ1dには、要求パケットと
応答パケットとが対応付けて登録される。決定手段1b
は、評価対象機器2から要求パケットを受け取ると、エ
ミュレーションデータ1dを参照し、その要求パケット
に対応する応答パケットを決定する。送信手段1cは、
決定手段1bが決定した応答パケットを、ネットワーク
3を介して対象機器2に送信する。
The emulator 1 has, as processing functions, a generator 1a, a determiner 1b, and a transmitter 1c.
The generation unit 1a generates emulation data 1d in response to an operation input from a user who specifies a response packet corresponding to the request packet. The emulation data 1 d defines an operation related to communication of another device (target device) that can be connected to the network 3. A request packet and a response packet are registered in the emulation data 1d in association with each other. Determining means 1b
Receives the request packet from the evaluation target device 2, refers to the emulation data 1d, and determines a response packet corresponding to the request packet. The transmission means 1c
The response packet determined by the determining unit 1b is transmitted to the target device 2 via the network 3.

【0015】これにより、評価対象機器2が出力する要
求パケットに対する応答パケットを、ユーザからの操作
入力により、任意に設定可能となる。すなわち、任意の
ターゲット機器の動作内容をユーザが操作入力すること
で、任意のエミュレーションデータを設定できる。たと
えば、評価対象機器2との間で協働で動くことのある他
の機器の動作をまねた応答パケットを設定することがで
きる。エミュレータ1は、エミュレーションデータの定
義に従って、評価対象機器2からの要求パケットに対す
る応答パケットを返す。これにより、評価対象機器2
が、ターゲット機器との間で行う協働動作の正確さを評
価することができる。
This makes it possible to arbitrarily set a response packet to a request packet output from the evaluation target device 2 by an operation input from a user. That is, any emulation data can be set by a user's operation input of an operation content of an arbitrary target device. For example, a response packet that mimics the operation of another device that may move in cooperation with the evaluation target device 2 can be set. The emulator 1 returns a response packet to the request packet from the evaluation target device 2 according to the definition of the emulation data. Thereby, the evaluation target device 2
However, the accuracy of the cooperative operation performed with the target device can be evaluated.

【0016】エミュレータ1は、たとえば、IEEE1394端
子を有するハードウェア(たとえばパーソナルコンピュ
ータ)でエミュレーションプログラムを実行させること
で実現できる。この場合、IEEE1394端子を有する機器の
開発において、ターゲット機器の動作を擬似的に行うた
めに、2つの機器間でやりとりが予想される要求パケッ
トと応答パケットとの対をエミュレーションデータに登
録する。これにより、エミュレータ1は、擬似的にター
ゲット機器と同じ通信動作を行うことができるようにな
る。これは擬似接続相手機器として,DTV、STB(S
et Top Box)など、IEEE1394端子の搭載が予想される機
器の開発に有用である。そこで、IEEE1394による通信機
能を有する機器を評価対象機器とした場合の本発明の実
施の形態を以下に説明する。
The emulator 1 can be realized, for example, by executing an emulation program on hardware (for example, a personal computer) having an IEEE1394 terminal. In this case, in the development of a device having an IEEE1394 terminal, a pair of a request packet and a response packet expected to be exchanged between two devices is registered in the emulation data in order to simulate the operation of the target device. As a result, the emulator 1 can perform the same communication operation as the target device in a pseudo manner. This is a DTV, STB (S
et Top Box) is useful for developing devices that are expected to be equipped with an IEEE1394 terminal. Therefore, an embodiment of the present invention in the case where a device having a communication function based on IEEE1394 is set as a device to be evaluated will be described below.

【0017】図2は、本発明の実施の形態におけるネッ
トワーク接続状況を示す模式図である。本実施の形態で
は、任意の通信機器の通信機能をまねるためのエミュレ
ート機能を搭載したコンピュータ10によって、DTV
30やディジタル放送対応のビデオデッキ40の通信機
能が評価される。コンピュータ10、DTV30、およ
びビデオデッキ40は、それぞれIEEE1394端子を有して
いる。コンピュータ10とDTV30とのIEEE1394端子
は、IEEE1394対応の通信ケーブル24aで互いに接続さ
れている。同様に、コンピュータ10とビデオデッキ4
0とのIEEE1394端子は、IEEE1394対応の通信ケーブル2
4bで互いに接続されている。
FIG. 2 is a schematic diagram showing a network connection status according to the embodiment of the present invention. In the present embodiment, a computer 10 having an emulation function for mimicking a communication function of an arbitrary communication device has a DTV.
The communication function of the VCR 30 and the VCR 40 compatible with digital broadcasting is evaluated. The computer 10, the DTV 30, and the video deck 40 each have an IEEE1394 terminal. The IEEE1394 terminals of the computer 10 and the DTV 30 are connected to each other via a communication cable 24a compatible with IEEE1394. Similarly, the computer 10 and the VCR 4
0 is an IEEE1394 compatible communication cable 2
4b.

【0018】図3は、本発明の実施の形態に用いるコン
ピュータのハードウェア構成例を示す図である。コンピ
ュータ10は、CPU11によって装置全体が制御され
ている。CPU11には、バス17を介してRAM1
2、ハードディスク装置(HDD)13、グラフィック
処理装置14、入力インタフェース15、およびIEEE13
94通信インタフェース16が接続されている。
FIG. 3 is a diagram showing an example of a hardware configuration of a computer used in the embodiment of the present invention. The computer 10 is entirely controlled by a CPU 11. The CPU 11 has a RAM 1 via a bus 17.
2. Hard disk device (HDD) 13, graphic processing device 14, input interface 15, and IEEE13
94 Communication interface 16 is connected.

【0019】RAM12は、CPU11に実行させるO
S(Operating System)やエミュレーションプログラムの
少なくとも一部が一時的に格納される。また、RAM1
2には、CPU11による処理に必要な各種データが格
納される。HDD13は、OSやエミュレーションプロ
グラムが格納される。また、HDD13には、エミュレ
ーションデータを格納することもできる。
The RAM 12 stores an O to be executed by the CPU 11.
An S (Operating System) and at least a part of an emulation program are temporarily stored. RAM1
Various data required for processing by the CPU 11 is stored in 2. The HDD 13 stores an OS and an emulation program. Further, the emulation data can be stored in the HDD 13.

【0020】グラフィック処理装置14には、モニタ2
1が接続されている。グラフィック処理装置14は、C
PU11からの命令に従って、画像をモニタ21の画面
に表示させる。入力インタフェース15には、キーボー
ド22とマウス23とが接続されている。入力インタフ
ェース15は、キーボード22やマウス23から送られ
てくる信号を、バス17を介してCPU11に送信す
る。
The graphic processor 14 has a monitor 2
1 is connected. The graphic processing device 14
An image is displayed on the screen of the monitor 21 according to a command from the PU 11. A keyboard 22 and a mouse 23 are connected to the input interface 15. The input interface 15 transmits signals transmitted from the keyboard 22 and the mouse 23 to the CPU 11 via the bus 17.

【0021】IEEE1394通信インタフェース16は、IEEE
1394ネットワーク24に接続されている。IEEE1394通信
インタフェース16は、IEEE1394ネットワーク24を介
して、評価対象機器との間でデータの送受信を行う。
The IEEE 1394 communication interface 16 is an IEEE 1394 communication interface.
It is connected to a 1394 network 24. The IEEE1394 communication interface 16 transmits and receives data to and from the device to be evaluated via the IEEE1394 network 24.

【0022】以上のようなハードウェア構成のコンピュ
ータ10に、エミュレーションプログラムを実行させる
ことにより、コンピュータ10をエミュレータとして機
能させることができる。
By causing the computer 10 having the above hardware configuration to execute the emulation program, the computer 10 can function as an emulator.

【0023】図4は、コンピュータのエミュレータとし
ての機能(エミュレーション機能)を示す機能ブロック
図である。図4に示すように、コンピュータ10のエミ
ュレーショ機能は、GUI(Graphical User Interface)
11a、エミュレーションデータ生成部11b、応答パ
ケット決定部11c、応答パケット送信部11d、エミ
ュレーションデータ保持部13aおよびIEEE1394バス制
御部16aで構成される。
FIG. 4 is a functional block diagram showing a function as an emulator (emulation function) of the computer. As shown in FIG. 4, the emulation function of the computer 10 is a GUI (Graphical User Interface).
11a, an emulation data generation unit 11b, a response packet determination unit 11c, a response packet transmission unit 11d, an emulation data holding unit 13a, and an IEEE1394 bus control unit 16a.

【0024】GUI11aは、操作入力画面をモニタ2
1に表示し、ユーザからのキーボード22やマウス23
を用いた操作入力を受け付ける。GUI11aは、操作
入力内容をエミュレーションデータ生成部11bや、IE
EE1394バス制御部16aに渡す。たとえば、エミュレー
ションデータに設定する要求パケットや応答パケットが
入力されると、GUI11aは、それらのデータをエミ
ュレーションデータ生成部11bに渡す。また、バスリ
セット命令が入力されると、GUI11aは、入力され
たバスリセット命令をIEEE1394バス制御部16aに渡
す。
The GUI 11a displays the operation input screen on the monitor 2
1, the keyboard 22 and the mouse 23 from the user.
The operation input using is received. The GUI 11a transmits the operation input contents to the emulation data generation unit 11b and the IE
It is passed to the EE1394 bus control unit 16a. For example, when a request packet or a response packet set in the emulation data is input, the GUI 11a passes those data to the emulation data generation unit 11b. When the bus reset command is input, the GUI 11a passes the input bus reset command to the IEEE1394 bus control unit 16a.

【0025】エミュレーションデータ生成部11bは、
GUI11aから渡された要求パケットと応答パケット
とに基づいて、エミュレーションデータ50を生成す
る。すなわち、評価対象機器が出力する要求パケット
と、ターゲット機器が応答する応答パケットとの対応関
係を定義付け、その定義内容が登録されたエミュレーシ
ョンデータ50を生成する。
The emulation data generator 11b
The emulation data 50 is generated based on the request packet and the response packet passed from the GUI 11a. That is, the correspondence between the request packet output from the device to be evaluated and the response packet to which the target device responds is defined, and the emulation data 50 in which the definition is registered is generated.

【0026】エミュレーションデータ50は、たとえば
複数のトランザクションデータテーブルで構成される。
トランザクションデータテーブルは、たとえば、Async
トランザクションデータテーブル50aやAV/Cトラ
ンザクションデータテーブル50bである。生成された
エミュレーションデータ50は、すぐに評価対象機器の
評価に使用される場合には、たとえばRAM12(図3
に示す)に格納される。
The emulation data 50 is composed of, for example, a plurality of transaction data tables.
The transaction data table is, for example, Async
A transaction data table 50a and an AV / C transaction data table 50b. When the generated emulation data 50 is used immediately for evaluation of a device to be evaluated, for example, the RAM 12 (FIG. 3)
).

【0027】また、エミュレーションデータ生成部11
bは、生成したエミュレーションデータ51を、エミュ
レーションデータ保持部13aに格納することができ
る。そして、エミュレーションデータ生成部11bは、
エミュレーションデータ保持部13aに格納されたエミ
ュレーションデータ51を読み出して、評価対象機器の
評価に使用することができる。また、エミュレーション
データ生成部11bは、GUI11aを介した操作入力
に応答して、エミュレーションデータ保持部13aに格
納されたエミュレーションデータ51の内容を編集(登
録されているパケットのデータの変更や、パケットの追
加)し、あらたなトランザクションテーブルを生成する
ことができる。
The emulation data generator 11
b can store the generated emulation data 51 in the emulation data holding unit 13a. Then, the emulation data generation unit 11b
The emulation data 51 stored in the emulation data holding unit 13a can be read out and used for evaluation of a device to be evaluated. Further, the emulation data generation unit 11b edits the contents of the emulation data 51 stored in the emulation data holding unit 13a in response to an operation input via the GUI 11a. Add), and a new transaction table can be generated.

【0028】エミュレーションデータ保持部13aは、
たとえば、HDD13(図3に示す)内の記録領域の一
部である。エミュレーションデータ保持部13aは、評
価対象機器に応じたエミュレーションデータ51を複数
格納することができる。たとえば、DTV30を評価対
象機器とし、ビデオデッキ40をターゲット機器とした
エミュレーションデータや、逆にビデオデッキ40を評
価対象機器とし、DTV30をターゲット機器としたエ
ミュレーションデータがエミュレーションデータ保持部
13aに格納される。
The emulation data holding unit 13a
For example, it is a part of a recording area in the HDD 13 (shown in FIG. 3). The emulation data holding unit 13a can store a plurality of emulation data 51 corresponding to the device to be evaluated. For example, emulation data in which the DTV 30 is an evaluation target device and the VCR 40 is a target device, and conversely, emulation data in which the VCR 40 is an evaluation target device and the DTV 30 is a target device, are stored in the emulation data holding unit 13a. .

【0029】応答パケット決定部11cは、IEEE1394バ
ス制御部16aを介して、評価対象機器から要求パケッ
トを受け取ると、エミュレーションデータ生成部11b
で生成されたエミュレーションデータ50を参照し、受
け取った要求パケットに対応付けられた応答パケットを
決定する。応答パケット送信部11dは、IEEE1394バス
制御部16aを介して、応答パケット決定部11cが決
定した応答パケットを評価対象機器に対して送信する。
When the response packet determination unit 11c receives a request packet from the device to be evaluated via the IEEE1394 bus control unit 16a, the emulation data generation unit 11b
The response packet associated with the received request packet is determined with reference to the emulation data 50 generated in step (1). The response packet transmission unit 11d transmits the response packet determined by the response packet determination unit 11c to the evaluation target device via the IEEE1394 bus control unit 16a.

【0030】IEEE1394バス制御部16aは、IEEE1394ネ
ットワーク24(図3に示す)を介して、評価対象機器
(DTVやビデオデッキ)から要求パケットが送られる
と、その要求パケットを応答パケット決定部11cに渡
す。また、IEEE1394バス制御部16aは、応答パケット
送信部11dから応答パケットを受け取ると、受け取っ
た応答パケットを、IEEE1394ネットワーク24を介して
評価対象機器に送信する。さらに、IEEE1394バス制御部
16aは、GUI11aを介して、バスリセットの操作
入力を受け取ると、IEEE1394ネットワーク24のバスを
リセットする。
When a request packet is sent from the device to be evaluated (DTV or VCR) via the IEEE1394 network 24 (shown in FIG. 3), the IEEE1394 bus control unit 16a sends the request packet to the response packet determination unit 11c. hand over. Further, when receiving the response packet from the response packet transmitting unit 11d, the IEEE1394 bus control unit 16a transmits the received response packet to the device to be evaluated via the IEEE1394 network 24. Further, upon receiving a bus reset operation input via the GUI 11a, the IEEE1394 bus control unit 16a resets the bus of the IEEE1394 network 24.

【0031】以上のような機能を有するコンピュータを
用いれば、ユーザがキーボード22やマウス23を操作
して、要求パケットと応答パケットとの対応関係の指定
入力を行うと、エミュレーションデータが生成される。
すなわち、評価対象機器の出力する要求パケットと、そ
の要求パケットに応じてターゲット機器が返す応答パケ
ットとの対応関係が、コンピュータ10内で定義付けら
れる。そして、評価対象機器から要求パケットが送られ
ると、その要求パケットが、IEEE1394バス制御部16a
を介して、応答パケット決定部11cに送られる。する
と、応答パケット決定部11cにより、エミュレーショ
ンデータ50に基づいて、受け取った要求パケットに対
応する応答パケットが決定される。決定された応答パケ
ットは、応答パケット送信部11dにより、要求パケッ
トを送ってきた評価対象機器に送信される。
Using a computer having the functions described above, emulation data is generated when the user operates the keyboard 22 or mouse 23 to specify and input the correspondence between the request packet and the response packet.
That is, the correspondence between the request packet output from the evaluation target device and the response packet returned from the target device in response to the request packet is defined in the computer 10. When a request packet is sent from the device to be evaluated, the request packet is transmitted to the IEEE1394 bus control unit 16a.
Is sent to the response packet determination unit 11c via Then, the response packet corresponding to the received request packet is determined by the response packet determination unit 11c based on the emulation data 50. The determined response packet is transmitted by the response packet transmitting unit 11d to the evaluation target device that has transmitted the request packet.

【0032】また、エミュレーションデータ生成部11
bで生成されたエミュレーションデータは、ユーザの操
作入力に応答して、エミュレーションデータ保持部13
aに格納される。エミュレーションデータ保持部13a
に格納されたエミュレーションデータ51は、ユーザの
操作入力に応答して、エミュレーションデータ生成部1
1bによって取り出され、エミュレーションに使用され
る。また、取り出されたエミュレーションデータ51
は、ユーザの操作入力に応答して、エミュレーションデ
ータ生成部11bにより、パケットのデータの変更、ま
たは、パケットのデータの追加等の処理が行われる。そ
して、エミュレーションデータ51に基づく、あらたな
エミュレーションデータが生成される。
The emulation data generator 11
The emulation data generated in b, in response to a user's operation input,
a. Emulation data holding unit 13a
The emulation data 51 stored in the emulation data generation unit 1 responds to a user's operation input.
1b and used for emulation. Also, the extracted emulation data 51
In response to the user's operation input, the emulation data generation unit 11b performs processing such as changing packet data or adding packet data. Then, new emulation data based on the emulation data 51 is generated.

【0033】また、ユーザからの操作入力に応答して、
IEEE1394バス制御部16aにより、IEEE1394のバスのリ
セットが行われる。バスがリセットされると、IEEE1394
ネットワーク24に接続された各機器が、自己の識別子
や種別等の情報を他の機器に対して送信する等の初期化
処理が行われる。
Further, in response to an operation input from a user,
The IEEE1394 bus controller 16a resets the IEEE1394 bus. When the bus is reset, the IEEE1394
Each device connected to the network 24 performs initialization processing such as transmitting information such as its own identifier and type to other devices.

【0034】次に、エミュレーションデータの例を説明
する。図5は、エミュレーションデータの一例を示す図
である。図5に示すエミュレーションデータ50は、As
yncトランザクションデータテーブル50aとAV/C
トランザクションデータテーブル50bとを含んでい
る。
Next, an example of emulation data will be described. FIG. 5 is a diagram illustrating an example of emulation data. The emulation data 50 shown in FIG.
ync transaction data table 50a and AV / C
And a transaction data table 50b.

【0035】Asyncトランザクションデータテーブル5
0aは、あるAsync要求パケットに対して送信されるAsy
nc応答パケットのリストである。Asyncトランザクショ
ンデータテーブル50aには、Async要求パケットデー
タの欄とAsync応答パケットデータの欄とが設けられて
いる。Async要求パケットデータの欄には、評価対象機
器が出力するAsync要求パケットのデータが設定されて
いる。Async応答パケットデータの欄には、Async要求パ
ケットデータに対応付けて、Async要求パケットをター
ゲット機器が受け取った際に評価対象機器に返すべきAs
ync応答パケットのデータが登録されている。
Async transaction data table 5
0a is Asy transmitted for a certain Async request packet.
It is a list of nc response packets. The Async transaction data table 50a has a column for Async request packet data and a column for Async response packet data. In the column of Async request packet data, data of an Async request packet output from the device to be evaluated is set. In the column of Async response packet data, As to be returned to the evaluation target device when the target device receives the Async request packet in association with the Async request packet data.
ync response packet data is registered.

【0036】AV/Cトランザクションデータテーブル
50bは、あるAV/Cコマンドパケットに対して送信
されるAV/Cレスポンスパケットのリストである。A
V/Cトランザクションデータテーブル50bには、A
V/Cコマンドパケットデータの欄とAV/C応答パケ
ットデータの欄とが設けられている。AV/Cコマンド
パケットデータの欄には、評価対象機器が出力するAV
/Cコマンドパケットのデータが設定されている。AV
/C応答パケットデータの欄には、AV/Cコマンドパ
ケットに対応付けて、AV/Cコマンドパケットをター
ゲット機器が受け取った際に評価対象機器に返すべきA
V/C応答パケットのデータが登録されている。
The AV / C transaction data table 50b is a list of AV / C response packets transmitted for a certain AV / C command packet. A
In the V / C transaction data table 50b, A
A column for V / C command packet data and a column for AV / C response packet data are provided. The column of AV / C command packet data contains the AV output from the device to be evaluated.
/ C command packet data is set. AV
The column of / C response packet data contains A to be returned to the evaluation target device when the target device receives the AV / C command packet in association with the AV / C command packet.
The data of the V / C response packet is registered.

【0037】次に、本実施の形態に係るエミュレーショ
ンプログラムに基づいたコンピュータ10の動作につい
て説明する。図6は、本実施の形態に係るエミュレーシ
ョンの処理手順を示すフローチャートである。以下に、
図6に示す処理をステップ番号に沿って説明する。な
お、以下の処理は、コンピュータ10においてエミュレ
ーションプログラムが起動されることで開始される。
Next, the operation of the computer 10 based on the emulation program according to the present embodiment will be described. FIG. 6 is a flowchart showing a procedure of emulation processing according to the present embodiment. less than,
The process illustrated in FIG. 6 will be described along with step numbers. The following processing is started when the emulation program is started in the computer 10.

【0038】[ステップS11]エミュレーションデー
タ生成部11bは、ユーザの操作入力に応答して、エミ
ュレーションデータを生成し、RAM12に登録する。
たとえば、図5に示したようなエミュレーションデータ
50が登録される。これにより、ターゲット機器(たと
えば、ビデオデッキ40)のエミュレーションが開始さ
れる。なお、登録されるエミュレーションデータは、キ
ーボード22等から直接入力されたデータであってもよ
いし、エミュレーションデータ保持部13aから読み出
したエミュレーションデータであってもよい。
[Step S11] The emulation data generation section 11b generates emulation data in response to a user's operation input and registers it in the RAM 12.
For example, the emulation data 50 as shown in FIG. 5 is registered. Thereby, emulation of the target device (for example, the video deck 40) is started. The emulation data to be registered may be data directly input from the keyboard 22 or the like, or may be emulation data read from the emulation data holding unit 13a.

【0039】[ステップS12]応答パケット決定部1
1cは、他の機器から要求パケットが送られてきたか否
かを常に判断している。すなわち、コンピュータ10が
他の機器からのパケット待ち状態となる。要求パケット
がなければ、処理がステップS13に進められる。要求
パケットがあれば、処理がステップS15に進められ
る。
[Step S12] Response packet determination unit 1
1c always determines whether or not a request packet has been sent from another device. That is, the computer 10 waits for a packet from another device. If there is no request packet, the process proceeds to step S13. If there is a request packet, the process proceeds to step S15.

【0040】[ステップS13]GUI11aがユーザ
操作の有無を判断する。すなわち、コンピュータ10が
ユーザ操作待ちの状態となる。なお、ユーザ操作待ちと
はユーザのキーボード22等からの入力を監視している
状態である。ユーザ操作があれば、処理がステップS1
4に進められる。ユーザ操作がなければ、処理がステッ
プS12に進められる。
[Step S13] The GUI 11a determines whether a user operation has been performed. That is, the computer 10 is in a state of waiting for a user operation. Note that waiting for a user operation is a state in which the user's input from the keyboard 22 or the like is monitored. If there is a user operation, the process proceeds to step S1
Proceed to 4. If there is no user operation, the process proceeds to step S12.

【0041】[ステップS14]GUI11aは、ユー
ザの操作入力に応答した処理を、エミュレーションデー
タ生成部11bやIEEE1394バス制御部16aに実行させ
る。たとえば、ユーザがキーボード22からバスリセッ
トコマンドを入力した場合には、そのコマンドがIEEE13
94バス制御部16aに送られる。バスリセットコマンド
を受け取ったIEEE1394バス制御部16aは、IEEE1394ネ
ットワーク24のバスリセット処理を行う。また、ユー
ザが応答コマンドの変更入力を行った場合には、その入
力内容がエミュレーションデータ生成部11bに送られ
る。エミュレーションデータ生成部11bは、ユーザか
らの入力に応じて、エミュレーションデータの変更や追
加の処理を行う。ユーザの操作に応じた処理が終了した
ら、処理がステップS12に進められる。
[Step S14] The GUI 11a causes the emulation data generation unit 11b and the IEEE1394 bus control unit 16a to execute a process in response to a user operation input. For example, when the user inputs a bus reset command from the keyboard 22, the command is transmitted to the IEEE 13
94 sent to the bus controller 16a. Upon receiving the bus reset command, the IEEE1394 bus control unit 16a performs a bus reset process of the IEEE1394 network 24. When the user performs a change input of the response command, the input content is sent to the emulation data generation unit 11b. The emulation data generation unit 11b changes or adds emulation data according to an input from a user. When the process according to the user operation is completed, the process proceeds to step S12.

【0042】[ステップS15]他の機器からAsync要
求パケットを受信すると、応答パケット決定部11c
は、Asyncトランザクションデータテーブル50aのAsy
nc要求パケットデータの欄から、受信したAsync要求パ
ケットと同じデータを検索する。該当するAsync要求パ
ケットが見つかったら、応答パケット決定部11cは、
そのAsync要求パケットに対応付けられたAsync応答パケ
ットを、送信すべきAsync応答パケットとして決定す
る。
[Step S15] When an Async request packet is received from another device, the response packet determining unit 11c
Is the Asy of the Async transaction data table 50a.
The same data as the received Async request packet is searched from the column of nc request packet data. When the corresponding Async request packet is found, the response packet determination unit 11c
An Async response packet associated with the Async request packet is determined as an Async response packet to be transmitted.

【0043】[ステップS16]応答パケット送信部1
1dは、ステップS15において決定されたAsync応答
パケットを、Async要求パケットを送ってきた評価対象
機器に対して送信する。
[Step S16] Response packet transmitting section 1
1d transmits the Async response packet determined in step S15 to the evaluation target device that has transmitted the Async request packet.

【0044】[ステップS17]応答パケット送信部1
1dは、受信したAsync要求パケットがAV/Cコマン
ドパケットであるかどうかを、パケットのヘッダやペイ
ロードを解析して判断する。受信したAsync要求パケッ
トがAV/Cコマンドパケットでない場合、処理がステ
ップS12に進められる。受信したAsync要求パケット
がAV/Cコマンドパケットである場合、処理がステッ
プS18に進められる。
[Step S17] Response packet transmitting section 1
1d determines whether or not the received Async request packet is an AV / C command packet by analyzing the header and payload of the packet. If the received Async request packet is not an AV / C command packet, the process proceeds to step S12. If the received Async request packet is an AV / C command packet, the process proceeds to step S18.

【0045】[ステップS18]受信したAsync要求パ
ケットがAV/Cコマンドパケットである場合、応答パ
ケット決定部11cは、AV/Cトランザクションデー
タテーブル50bのAV/Cコマンドパケットデータの
欄から、受信したAsync要求パケットと同じデータを検
索する。該当するAV/Cコマンドパケットが見つかっ
たら、応答パケット決定部11cは、そのAV/Cコマ
ンドパケットに対応付けられたAV/C応答パケット
を、送信すべきAV/C応答パケットとして決定する。
[Step S18] If the received Async request packet is an AV / C command packet, the response packet determination unit 11c checks the received Async request packet from the AV / C command packet data column of the AV / C transaction data table 50b. Search for the same data as the request packet. When a corresponding AV / C command packet is found, the response packet determination unit 11c determines an AV / C response packet associated with the AV / C command packet as an AV / C response packet to be transmitted.

【0046】[ステップS19]応答パケット送信部1
1dは、ステップS18において決定されたAV/C応
答パケットを、Async要求パケットを送ってきた評価対
象機器に対して送信する。その後、処理がステップS1
2に進められる。
[Step S19] Response packet transmitting section 1
1d transmits the AV / C response packet determined in step S18 to the evaluation target device that has transmitted the Async request packet. After that, the process proceeds to step S1.
Proceed to 2.

【0047】以上のステップS12〜ステップS19の
処理が繰り返されることで、評価対象機器からコンピュ
ータ10を見た場合、IEEE1394ネットワーク24を介し
てターゲット機器が接続されているものと認識される。
そして、評価対象機器がターゲット機器に対して要求パ
ケットを送信すれば、ターゲット機器の通信機能をまね
たコンピュータ10が応答パケットを返す。これによ
り、ターゲット機器がIEEE1394ネットワーク24に接続
されていなくても、評価対象機器がターゲット機器との
協働動作を正常に行えるかどうかを評価することが出来
る。
By repeating the processing of steps S12 to S19, when the computer 10 is viewed from the device to be evaluated, it is recognized that the target device is connected via the IEEE1394 network 24.
Then, when the device to be evaluated transmits a request packet to the target device, the computer 10 imitating the communication function of the target device returns a response packet. As a result, even if the target device is not connected to the IEEE1394 network 24, it is possible to evaluate whether or not the evaluation target device can normally cooperate with the target device.

【0048】ところで、図6のステップS15および、
ステップS18では、受信したAsync要求パケットを検
索キーとして、エミュレーションデータに登録されたデ
ータを対象とした検索を行っている。そのとき、Async
要求パケットの全てのデータを検索キーとして、データ
の比較を行う必要はない。本実施の形態では、検索時の
パケット比較において比較対象となるパケットのフィー
ルドは、次のフィールドのみである。 (1)トランザクションコード (2)デスティネーション(送信先)オフセット (3)データフィールド (4)データ長(存在する場合のみ) (5)拡張トランザクションコード(存在する場合の
み) すなわち、送信先識別子(送信先ID)、また送信元識
別子(送信元ID)のフィールドなどは比較されない。
Incidentally, in step S15 in FIG.
In step S18, a search is performed on the data registered in the emulation data using the received Async request packet as a search key. At that time, Async
It is not necessary to compare data using all data of the request packet as a search key. In the present embodiment, the fields of the packet to be compared in the packet comparison at the time of the search are only the following fields. (1) Transaction code (2) Destination (destination) offset (3) Data field (4) Data length (only if present) (5) Extended transaction code (only if present) That is, destination identifier (transmission) The destination ID) and the fields of the source identifier (source ID) are not compared.

【0049】また、ステップS16、ステップS19で
送信されるAsync応答パケットやAV/C応答パケット
は、基本的にはエミュレーションデータに登録された応
答パケットデータの値そのままである。ただし、ヘッダ
の送信先IDには受信したパケットの送り主のID(受
信パケットのヘッダの送信元IDフィールドの値)が入
れられ、送信元IDには自ノードIDが入れられる。さ
らにAsync応答パケットの場合、トランザクションラベ
ル、リトライコード、プライオリティフィールドには受
信したAsync要求パケットと同じ値が入れられる。
The Async response packet and the AV / C response packet transmitted in steps S16 and S19 basically have the same value as the response packet data registered in the emulation data. However, the ID of the sender of the received packet (the value of the source ID field of the header of the received packet) is entered in the destination ID of the header, and the own node ID is entered in the source ID. Further, in the case of the Async response packet, the same values as in the received Async request packet are entered in the transaction label, retry code, and priority fields.

【0050】次に、Async要求パケットがAV/Cコマ
ンドパケットでない場合(Asyncトランザクション)
と、Async要求パケットがAV/Cコマンドパケットで
ある場合(AV/Cトランザクション)との、トランザ
クションの違いについて簡単に説明する。
Next, when the Async request packet is not an AV / C command packet (Async transaction)
The difference between the transaction and the case where the Async request packet is an AV / C command packet (AV / C transaction) will be briefly described.

【0051】図7は、Asyncトランザクションを示す図
である。図には、要求ノード61と応答ノード62との
間のトランザクションを示している。要求ノード61
は、たとえば、DTV30やビデオデッキ40である。
応答ノード62は、たとえばエミュレーションプログラ
ムを実行するコンピュータ10である。
FIG. 7 is a diagram showing an Async transaction. The figure shows a transaction between the request node 61 and the response node 62. Request node 61
Is, for example, the DTV 30 or the video deck 40.
The response node 62 is, for example, the computer 10 that executes an emulation program.

【0052】AsyncトランザクションにはREAD、WRITE、
LOCKトランザクションがある。それぞれのトランザクシ
ョンは図7に示す通り、要求ノード61によるAsync要
求パケット71の送信と応答ノード62によるAsync応
答パケット72の送信により実現される。
Async transactions include READ, WRITE,
There is a LOCK transaction. Each transaction is realized by transmission of an Async request packet 71 by the request node 61 and transmission of an Async response packet 72 by the response node 62 as shown in FIG.

【0053】図8は、AV/Cトランザクションを示す
図である。AV/Cトランザクションは、Asyncトラン
ザクションのWRITEトランザクションを使って実現され
る。要求ノード61によるAsync要求パケット(WRITE)
73の送信に対して,応答ノード62がAsync応答パケ
ット74を送信することにより、AV/Cコマンドが完
了する。続いて応答ノード62がAsync要求パケット(W
RITE)75を送信し、要求ノード61がAsync応答パケ
ット76を送信することによりAV/Cレスポンスが完
了する。
FIG. 8 is a diagram showing an AV / C transaction. The AV / C transaction is realized by using the WRITE transaction of the Async transaction. Async request packet (WRITE) by request node 61
The AV / C command is completed when the response node 62 transmits the Async response packet 74 in response to the transmission of 73. Subsequently, the response node 62 sends the Async request packet (W
RITE) 75 and the request node 61 transmits an Async response packet 76, whereby the AV / C response is completed.

【0054】図6のステップS16で送信されるパケッ
トは図8のAsync応答パケット74である。図6のステ
ップS19で送信されるパケットは、図8のAsync要求
パケット(WRITE)75である。
The packet transmitted in step S16 in FIG. 6 is the Async response packet 74 in FIG. The packet transmitted in step S19 in FIG. 6 is the Async request packet (WRITE) 75 in FIG.

【0055】また、図7のAsync要求パケット71は、
図5に示したAsyncトランザクションデータテーブル5
0aのAsync要求パケットデータの欄に登録される。図
7のAsync応答パケット72は、図5に示したAsyncトラ
ンザクションデータテーブル50aのAsync応答パケッ
トデータの欄に、Async要求パケット71に対応付けて
登録される。
The Async request packet 71 shown in FIG.
Async transaction data table 5 shown in FIG.
0a is registered in the column of Async request packet data. The Async response packet 72 in FIG. 7 is registered in the Async response packet data column of the Async transaction data table 50a shown in FIG.

【0056】図8のAsync要求パケット73は、図5に
示したAsyncトランザクションデータテーブル50aのA
sync要求パケットデータの欄に登録されるとともに、A
V/Cトランザクションデータテーブル50bのAV/
Cコマンドパケットデータの欄に登録される。図8のAs
ync応答パケット74は、図5に示したAsyncトランザク
ションデータテーブル50aのAsync応答パケットデー
タの欄に、Async要求パケット73に対応付けて登録さ
れる。図8のAsync要求パケット75は、図5に示した
AV/Cトランザクションデータテーブル50bのAV
/C応答パケットデータの欄に、Async要求パケット7
3に対応付けて登録される。
The Async request packet 73 shown in FIG. 8 is the Async transaction data table 50a shown in FIG.
The sync request packet data is registered in the
AV / of V / C transaction data table 50b
It is registered in the column of C command packet data. As in Fig. 8
The ync response packet 74 is registered in the Async response packet data column of the Async transaction data table 50a shown in FIG. The Async request packet 75 in FIG. 8 corresponds to the AV / C transaction data table 50b shown in FIG.
Async request packet 7 appears in the / C response packet data column.
3 and registered.

【0057】AV/Cコマンド、AV/Cレスポンスは
AsyncWRITE要求パケットのうち、送信先オフセットアド
レスとデータフィールドに所定の値を持つものである。
以上説明したように、本実施の形態によれば、あるIEEE
1394機器からのAsync要求またはAV/Cコマンドを受
け取った場合に、コンピュータ10は、ミュレーション
データにしたがってAsync応答パケットまたはAV/C
応答パケットを送信する。これにより、コンピュータ1
0は、任意のIEEE1394機器の動作をまねるエミュレータ
として機能する。
The AV / C command and the AV / C response are
The AsyncWRITE request packet has a destination offset address and a data field having predetermined values.
As described above, according to the present embodiment, a certain IEEE
When receiving the Async request or the AV / C command from the 1394 device, the computer 10 sends the Async response packet or the AV / C
Send a response packet. Thereby, the computer 1
0 functions as an emulator that mimics the operation of an arbitrary IEEE1394 device.

【0058】たとえば、エミュレーションデータとし
て、DTV30の要求パケットに対するビデオデッキ4
0の応答パケットのデータを用意すれば、コンピュータ
10はDTV30からのアクセスに対してビデオデッキ
40と同様の応答を返す。そのため、DTV30の開発
において、ビデオデッキが用意されていなくてもDTV
30の通信機能を評価することができる。そのため、本
実施の形態に係るエミュレータは、機器の開発段階にお
いて非常に有用である。しかも、多数のエミュレーショ
ンデータを用意するだけで、様々なIEEE1394機器のエミ
ュレーションが可能である。
For example, as the emulation data, the video deck 4
If the data of the response packet of 0 is prepared, the computer 10 returns a response similar to that of the video deck 40 to the access from the DTV 30. Therefore, in the development of DTV 30, even if a video deck is not prepared, DTV
30 communication functions can be evaluated. Therefore, the emulator according to the present embodiment is very useful at the stage of developing a device. Moreover, emulation of various IEEE1394 devices is possible only by preparing a large number of emulation data.

【0059】さらに、Async要求やAV/Cコマンドに
対して、あらかじめプログラムされた応答を出すのでは
なく、エミュレーションデータに設定されている応答パ
ケットを送信している。エミュレーションデータは、プ
ログラムとは別に用意されているため、ユーザの操作入
力により簡単にエミュレーションデータの内容を変更す
ることが出来る。
Further, a response packet set in emulation data is transmitted instead of giving a response programmed in advance to an Async request or an AV / C command. Since the emulation data is prepared separately from the program, the content of the emulation data can be easily changed by a user's operation input.

【0060】すなわち、要求パケットや応答パケットが
プログラム内に定義されていると、それらの内容を変更
した場合には、プログラムの再コンパイルやプログラム
の再起動が必要となる。ところが、本発明の実施の形態
で説明したように、プログラムとは別のエミュレーショ
ンデータにおいて、要求パケットと応答パケットとを定
義付けることで、それらの内容を変更しても再コンパイ
ル等の必要がない。
That is, if the request packet and the response packet are defined in the program, when the contents thereof are changed, it is necessary to recompile the program and restart the program. However, as described in the embodiment of the present invention, by defining a request packet and a response packet in emulation data separate from a program, it is not necessary to recompile even if the contents are changed.

【0061】また、実際のIEEE1394機器はその時点の内
部状態によって同じAsync要求パケットやAV/Cコマ
ンドに対して返す応答の内容が変わってくる。本エミュ
レータではキーボードからのユーザ操作を受け付けるこ
とでエミュレーションデータの動的な変更が可能なた
め、状態によって応答内容が変わる機器のエミュレーシ
ョンも可能である。
In an actual IEEE 1394 device, the content of a response returned to the same Async request packet or AV / C command varies depending on the internal state at that time. In this emulator, emulation data can be dynamically changed by accepting a user operation from a keyboard, so that emulation of a device whose response content changes depending on the state is also possible.

【0062】さらに、生成したエミュレーションデータ
を、エミュレーションデータ保持部13aに格納してお
くことで、一度生成したエミュレーションデータを再利
用することができる。しかも、そのエミュレーションデ
ータを編集することで、あらたなエミュレーションデー
タを容易に生成することが出来る。その結果、様々な種
類のターゲット機器のエミュレートが可能となる。開発
時にターゲット機器が不足している時には、ターゲット
機器に応じたトランザクションデータを作成し、開発途
中の機器の通信機能を評価することが出来る。
Further, by storing the generated emulation data in the emulation data holding unit 13a, the emulation data generated once can be reused. In addition, by editing the emulation data, new emulation data can be easily generated. As a result, various types of target devices can be emulated. When the target device is insufficient during development, transaction data corresponding to the target device can be created, and the communication function of the device under development can be evaluated.

【0063】さらにターゲット機器が開発中の新しい機
器である場合には、たとえば規格書などにしたがってエ
ミュレーションデータを作成する。これにより、未開発
のターゲット機器のエミュレートができる。したがっ
て、本実施の形態のエミュレータは、未開発の機器との
通信環境を評価するのに有用である。
Further, when the target device is a new device under development, emulation data is created in accordance with, for example, a standard. As a result, an undeveloped target device can be emulated. Therefore, the emulator according to the present embodiment is useful for evaluating a communication environment with an undeveloped device.

【0064】また、本実施の形態に係るエミュレータ
は、ユーザ操作によりバスリセットを発生させることが
できる。そのため、バスリセット時のエミュレートも可
能である。
The emulator according to the present embodiment can generate a bus reset by a user operation. Therefore, emulation at the time of bus reset is also possible.

【0065】以上のように、本発明の実施の形態で説明
したエミュレーションプログラムは、Asyncトランザク
ションまたはAV/Cトランザクションのパケット送受
信レベルの柔軟性の高いエミュレーションを、コンピュ
ータに行わせることができる。
As described above, the emulation program described in the embodiment of the present invention can cause a computer to perform highly flexible emulation of the packet transmission / reception level of an Async transaction or an AV / C transaction.

【0066】なお、上記のエミュレーションプログラム
は、コンピュータで読み取り可能な記録媒体に記録して
おくことができる。このプログラムをコンピュータで実
行することにより、上記エミュレーションがコンピュー
タで実現される。コンピュータで読み取り可能な記録媒
体としては、磁気記録装置や半導体メモリ等がある。市
場へ流通させる場合には、CD−ROM(Compact Disk
Read Only Memory)やフロッピー(登録商標)ディスク
等の可搬型記録媒体にプログラムを格納して流通させる
ことができる。また、ネットワークを介して接続された
コンピュータの記憶装置にプログラムを格納しておき、
ネットワークを介して接続された他のコンピュータにプ
ログラムを転送することもできる。コンピュータで実行
する際には、コンピュータ内のハードディスク装置等に
プログラムを格納しておき、メインメモリにロードして
実行することができる。
The above emulation program can be recorded on a computer-readable recording medium. By executing this program on a computer, the emulation is realized on the computer. Computer-readable recording media include magnetic recording devices and semiconductor memories. When distributing to the market, CD-ROM (Compact Disk)
The program can be stored in a portable recording medium such as a read-only memory or a floppy (registered trademark) disk and distributed. In addition, the program is stored in a storage device of a computer connected via a network,
The program can also be transferred to another computer connected via a network. When the program is executed by the computer, the program can be stored in a hard disk device or the like in the computer, loaded into the main memory, and executed.

【0067】[0067]

【発明の効果】以上説明したように本発明では、ユーザ
の操作入力により、任意の応答パケットを要求パケット
に対応付けることができるようにして、評価対象機器か
ら要求パケットを受け取ると、その要求パケットに対応
付けられた応答パケットを評価対象機器に送信するよう
にした。これにより、応答パケットの内容を容易に変更
することが可能となり、様々な機器に対応して、エミュ
レーション機能を柔軟に変更することが可能となる。
As described above, according to the present invention, an arbitrary response packet can be associated with a request packet by a user's operation input, and when a request packet is received from a device to be evaluated, the request packet is added to the request packet. The associated response packet is transmitted to the device to be evaluated. As a result, the content of the response packet can be easily changed, and the emulation function can be flexibly changed corresponding to various devices.

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

【図1】本発明の原理構成図である。FIG. 1 is a principle configuration diagram of the present invention.

【図2】本発明の実施の形態におけるネットワーク接続
状況を示す模式図である。
FIG. 2 is a schematic diagram showing a network connection status according to the embodiment of the present invention.

【図3】本発明の実施の形態に用いるコンピュータのハ
ードウェア構成例を示す図である。
FIG. 3 is a diagram illustrating an example of a hardware configuration of a computer used in the embodiment of the present invention.

【図4】コンピュータのエミュレータとしての機能(エ
ミュレーション機能)を示す機能ブロック図である。
FIG. 4 is a functional block diagram showing a function as an emulator (emulation function) of the computer.

【図5】エミュレーションデータの一例を示す図であ
る。
FIG. 5 is a diagram showing an example of emulation data.

【図6】本実施の形態に係るエミュレーションの処理手
順を示すフローチャートである。
FIG. 6 is a flowchart showing a processing procedure of emulation according to the present embodiment.

【図7】Asyncトランザクションを示す図である。FIG. 7 is a diagram showing an Async transaction.

【図8】AV/Cトランザクションを示す図である。FIG. 8 is a diagram showing an AV / C transaction.

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

1…エミュレータ、1a…生成手段、1b…決定手段、
1c…送信手段、1d…エミュレーションデータ、2…
評価対象機器、10…コンピュータ、11…CPU、1
2…RAM、13…ハードディスク装置(HDD)、1
4…グラフィック処理装置、15…入力インタフェー
ス、16…IEEE1394通信インタフェース、21…モニ
タ、22…キーボード、23…マウス、24…IEEE1394
ネットワーク
1 emulator, 1a generating means, 1b determining means,
1c: transmission means, 1d: emulation data, 2 ...
Equipment to be evaluated, 10: Computer, 11: CPU, 1
2 ... RAM, 13 ... Hard disk drive (HDD), 1
4 Graphic processing device, 15 Input interface, 16 IEEE1394 communication interface, 21 Monitor, 22 Keyboard, 23 Mouse, 24 IEEE1394
network

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークに接続可能な機器の通信機
能をまねた処理を実行するエミュレータにおいて、 要求パケットに対応する応答パケットを指定する操作入
力に応答して、要求パケットと応答パケットとの対応関
係を定義したエミュレーションデータを生成する生成手
段と、 評価対象機器より前記ネットワークを介して要求パケッ
トを受け取ると、前記生成手段で生成された前記エミュ
レーションデータを参照し、受け取った要求パケットに
対応する応答パケットを決定する決定手段と、 前記決定手段で決定された応答パケットを、前記ネット
ワークを介して前記評価対象機器に送信する送信手段
と、 を有することを特徴とするエミュレータ。
1. An emulator for executing a process imitating a communication function of a device connectable to a network, the correspondence between a request packet and a response packet in response to an operation input for designating a response packet corresponding to the request packet. Generating means for generating emulation data defining a request packet, receiving a request packet from the device to be evaluated via the network, referring to the emulation data generated by the generating means, and generating a response packet corresponding to the received request packet An emulator comprising: a determination unit that determines the evaluation packet; and a transmission unit that transmits the response packet determined by the determination unit to the evaluation target device via the network.
【請求項2】 前記生成手段は、トランザクション処理
の種別毎に、前記トランザクション種別に対応する要求
パケットと応答パケットとの組が設定されたトランザク
ションデータテーブルを生成し、少なくとも1つのトラ
ンザクションデータテーブルを含むエミュレーションデ
ータを生成することを特徴とする請求項1記載のエミュ
レータ。
2. The method according to claim 1, wherein the generating unit generates a transaction data table in which a set of a request packet and a response packet corresponding to the transaction type is set for each type of transaction processing, and includes at least one transaction data table. The emulator according to claim 1, wherein the emulator generates emulation data.
【請求項3】 前記送信手段は、前記決定手段が複数の
応答パケットを決定した場合、それぞれの応答パケット
を前記評価対象機器に送信することを特徴とする請求項
1記載のエミュレータ。
3. The emulator according to claim 1, wherein the transmitting unit transmits each response packet to the evaluation target device when the determining unit determines a plurality of response packets.
【請求項4】 少なくとも1つのエミュレーションデー
タを保持するエミュレーションデータ保持手段をさらに
有し、 前記生成手段は、操作入力に応答して、前記エミュレー
ションデータ保持手段に保持されたエミュレーションデ
ータの内容を変更し、あらたなエミュレーションデータ
を生成することを特徴とする請求項1記載のエミュレー
タ。
4. An emulation data holding unit for holding at least one emulation data, wherein the generation unit changes contents of the emulation data held in the emulation data holding unit in response to an operation input. The emulator according to claim 1, wherein new emulation data is generated.
【請求項5】 前記生成手段は、エミュレーション処理
中の操作入力に応答して、一度生成したエミュレーショ
ンデータの内容を変更することを特徴とする請求項1記
載のエミュレータ。
5. The emulator according to claim 1, wherein the generation unit changes the content of the emulation data generated once in response to an operation input during the emulation processing.
【請求項6】 操作入力に応答して、前記ネットワーク
のバスをリセットするバス制御手段をさらに有すること
を特徴とする請求項1記載のエミュレータ。
6. The emulator according to claim 1, further comprising bus control means for resetting a bus of said network in response to an operation input.
【請求項7】 ネットワークに接続可能な機器の通信機
能をまねるためのエミュレート方法において、 要求パケットに対応する応答パケットを指定する操作入
力に応答して、要求パケットと応答パケットとの対応関
係を定義したエミュレーションデータを生成し、 評価対象機器より前記ネットワークを介して要求パケッ
トを受け取ると、生成された前記エミュレーションデー
タを参照し、受け取った要求パケットに対応する応答パ
ケットを決定し、 決定された応答パケットを、前記ネットワークを介して
前記評価対象機器に送信する、 ことを特徴とするエミュレート方法。
7. An emulation method for mimicking a communication function of a device connectable to a network, comprising: responding to an operation input for designating a response packet corresponding to the request packet; When the defined emulation data is generated and a request packet is received from the device to be evaluated via the network, the generated emulation data is referred to, a response packet corresponding to the received request packet is determined, and the determined response is determined. An emulation method, comprising: transmitting a packet to the device to be evaluated via the network.
【請求項8】 前記エミュレーションデータの生成にお
いて、トランザクション処理の種別毎に、前記トランザ
クション種別に対応する要求パケットと応答パケットと
の組が設定されたトランザクションデータテーブルを生
成し、少なくとも1つのトランザクションデータテーブ
ルを含むエミュレーションデータを生成することを特徴
とする請求項7記載のエミュレート方法。
8. In the generation of the emulation data, a transaction data table in which a set of a request packet and a response packet corresponding to the transaction type is set for each type of transaction processing is generated, and at least one transaction data table is generated. 8. The emulation method according to claim 7, wherein emulation data including the following is generated.
【請求項9】 受け取った要求パケットに対応する応答
パケットが複数決定された場合、それぞれの応答パケッ
トを前記評価対象機器に送信することを特徴とする請求
項7記載のエミュレート方法。
9. The emulation method according to claim 7, wherein when a plurality of response packets corresponding to the received request packet are determined, each response packet is transmitted to the evaluation target device.
【請求項10】 少なくとも1つのエミュレーションデ
ータをあらかじめ用意し、 あらかじめ用意されたエミュレーションデータの内容を
変更し、あらたなエミュレーションデータを生成するこ
とを特徴とする請求項7記載のエミュレート方法。
10. The emulation method according to claim 7, wherein at least one piece of emulation data is prepared in advance, and the content of the prepared emulation data is changed to generate new emulation data.
【請求項11】 エミュレーション中の操作入力に応答
して、一度生成したエミュレーションデータの内容を変
更することを特徴とする請求項7記載のエミュレート方
法。
11. The emulation method according to claim 7, wherein the content of the emulation data generated once is changed in response to an operation input during the emulation.
【請求項12】 操作入力に応答して、前記ネットワー
クのバスをリセットすることを特徴とする請求項7記載
のエミュレート方法。
12. The emulation method according to claim 7, wherein a bus of said network is reset in response to an operation input.
【請求項13】 ネットワークに接続可能な機器の通信
機能をまねるためのエミュレーションプログラムにおい
て、 コンピュータに、 要求パケットに対応する応答パケットを指定する操作入
力に応答して、要求パケットと応答パケットとの対応関
係を定義したエミュレーションデータを生成し、 評価対象機器より前記ネットワークを介して要求パケッ
トを受け取ると、生成された前記エミュレーションデー
タを参照し、受け取った要求パケットに対応する応答パ
ケットを決定し、 決定された応答パケットを、前記ネットワークを介して
前記評価対象機器に送信する、 処理を実行させることを特徴とするエミュレーションプ
ログラム。
13. An emulation program for imitating a communication function of a device connectable to a network, comprising: a computer which, in response to an operation input for designating a response packet corresponding to the request packet, associates the request packet with the response packet. When emulation data defining a relationship is generated and a request packet is received from the evaluation target device via the network, a response packet corresponding to the received request packet is determined by referring to the generated emulation data. Sending the response packet to the device to be evaluated via the network.
【請求項14】 ネットワークに接続可能な機器の通信
機能をまねるためのエミュレーションプログラムを記録
したコンピュータ読み取り可能な記録媒体において、 前記コンピュータに、 要求パケットに対応する応答パケットを指定する操作入
力に応答して、要求パケットと応答パケットとの対応関
係を定義したエミュレーションデータを生成し、 評価対象機器より前記ネットワークを介して要求パケッ
トを受け取ると、生成された前記エミュレーションデー
タを参照し、受け取った要求パケットに対応する応答パ
ケットを決定し、 決定された応答パケットを、前記ネットワークを介して
前記評価対象機器に送信する、 処理を実行させることを特徴とする記録媒体。
14. A computer-readable recording medium in which an emulation program for imitating a communication function of a device connectable to a network is recorded, wherein the computer responds to an operation input for designating a response packet corresponding to the request packet. Generating the emulation data defining the correspondence between the request packet and the response packet, and receiving the request packet from the device to be evaluated via the network, referring to the generated emulation data, A recording medium, comprising: determining a corresponding response packet; and transmitting the determined response packet to the evaluation target device via the network.
【請求項15】 ネットワークに接続可能な評価対象機
器と、前記評価対象機器と通信可能なターゲット機器と
の間の通信機能を評価するための通信機器評価方法にお
いて、 前記評価対象機器と、前記ターゲット機器の通信機能を
まねるエミュレータとを、前記ネットワークを介して接
続し、 前記評価対象機器から出力される要求パケットと、前記
要求パケットに応じて前記ターゲット機器が出力する応
答パケットとの対応関係を定義したエミュレーションデ
ータを、前記エミュレータに設定し、 前記評価対象機器から前記エミュレータに、前記ネット
ワークを介して前記要求パケットが送信されると、前記
エミュレータが前記エミュレーションデータを参照して
応答パケットを決定し、 決定された応答パケットを、前記ネットワークを介して
前記エミュレータから前記評価対象機器に送信する、 ことを特徴とする通信機器評価方法。
15. A communication device evaluation method for evaluating a communication function between an evaluation target device connectable to a network and a target device communicable with the evaluation target device, wherein the evaluation target device and the target An emulator that mimics the communication function of a device is connected via the network, and a correspondence between a request packet output from the device to be evaluated and a response packet output from the target device in response to the request packet is defined. The emulation data is set in the emulator, and when the request packet is transmitted from the evaluation target device to the emulator via the network, the emulator determines a response packet by referring to the emulation data. The determined response packet is transmitted through the network. Communication device evaluating method characterized in that, to transmit to the evaluation device from the emulator Te.
JP2001030685A 2001-02-07 2001-02-07 Emulator, emulation method, emulation program and recording medium, and communication device evaluation method Pending JP2002232516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001030685A JP2002232516A (en) 2001-02-07 2001-02-07 Emulator, emulation method, emulation program and recording medium, and communication device evaluation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001030685A JP2002232516A (en) 2001-02-07 2001-02-07 Emulator, emulation method, emulation program and recording medium, and communication device evaluation method

Publications (1)

Publication Number Publication Date
JP2002232516A true JP2002232516A (en) 2002-08-16

Family

ID=18894868

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001030685A Pending JP2002232516A (en) 2001-02-07 2001-02-07 Emulator, emulation method, emulation program and recording medium, and communication device evaluation method

Country Status (1)

Country Link
JP (1) JP2002232516A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009026101A (en) * 2007-07-20 2009-02-05 Nec Electronics Corp Evaluation apparatus, evaluation method and program
US7603266B2 (en) 2003-09-19 2009-10-13 Microsoft Corporation Generic emulator of devices in a device communications protocol

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7603266B2 (en) 2003-09-19 2009-10-13 Microsoft Corporation Generic emulator of devices in a device communications protocol
JP2009026101A (en) * 2007-07-20 2009-02-05 Nec Electronics Corp Evaluation apparatus, evaluation method and program
US8027826B2 (en) 2007-07-20 2011-09-27 Renesas Electronics Corporation Evaluation device consisting of a logic simulator and a simulation result table

Similar Documents

Publication Publication Date Title
US5349675A (en) System for directly displaying remote screen information and providing simulated keyboard input by exchanging high level commands
US6243832B1 (en) Network access server testing system and methodology
US8285807B2 (en) Method and system for remote industrial factory automation control of a local system
US8583761B2 (en) System and method for production of multiuser network game
EP0613274A2 (en) Socket structure for concurrent multiple protocol access
JPH09326796A (en) Method for generating test packet to simulate computer network communication and its device
CN107391219B (en) Function Compilation Method and device
JP2009246453A (en) Emulator apparatus
JP6802354B2 (en) Communication test equipment, communication test methods and programs
JPH03224037A (en) Architecture for server expansion
CN100466578C (en) Communication system and communication control apparatus and method
JP2002232516A (en) Emulator, emulation method, emulation program and recording medium, and communication device evaluation method
CN114726905B (en) Method, device, equipment and storage medium for accessing Tbox network into Android system
US7447750B2 (en) Program setting system, program setting method, server, client and program
US20030212805A1 (en) Profile information acquisition program and apparatus
CN111708568B (en) Modularized development decoupling method and terminal
JPH11177588A (en) Electronic equipment and data communication method
JP3545777B2 (en) Network connection type communication processing system and test system
CN113391931A (en) Remote control method and device based on Bluetooth, computer equipment and storage medium
JP4277598B2 (en) Connection information display method and connection information display program.
JP2014175699A (en) Packet replay device and packet replay method
CN117130318B (en) Industrial data acquisition method, device, system and readable storage medium
US6757773B1 (en) System and method for determining support capability of a device coupled to a bus system
CN110865960B (en) Emulating a PCIe bus over a network
KR920003279B1 (en) Method for loading os & nos in data processing device