9 device emulation, 1 creating a generation file, 2 setting generation options – Teledyne LeCroy USBTracer_Trainer - Users Manual User Manual

Page 306

Advertising
background image

Chapter 11: Traffic Generation (2.0)

USB Protocol Suite User Manual

292

LeCroy Corporation

11.9 Device Emulation

Device Emulation is a licensed option that allows the system to generate device-side
traffic. Like host traffic generation, device emulation uses text-based generation files
(.utg) to generate traffic.

Device emulation has three steps: create a generation file, configure generation settings,
and then generate traffic.

11.9.1 Creating a Generation File

Generation files can be created one of two ways:

Write a generation script file using either LeCroy's context-sensitive script
editor or any text editor that you choose.

OR

Use a pre-recorded trace file that has the type of traffic that you want to
generate. This file is a blueprint for the traffic generation script file.

If you decide to use a pre-recorded trace file as a generation blueprint, then verify that
the trace file contains traffic for only one device. If it does not, hide all the other devices
(Setup > Level Hiding) and save the file as a new file without the hidden traffic (File >
Save As
and check the option Do not save hidden packets/transactions/transfers).

11.9.2 Setting Generation Options

Step 1 Set the Traffic Generation options by configuring the Misc page in the Recording

Options dialog box:

Setup > Recording Options > Misc

Step 2 In the Misc page, select Device Emulation Mode.

Step 3 Configure Resume settings.

If you want the simulated device to issue Resumes, then select Device
Resumes
and enter a delay time (in milliseconds). If you do not select
Device Resumes, then the emulated device waits for a Host to issue a
Resume.

If you want the simulated device to take its address from the Traffic
Generation (.utg) script file, then select Use Address in .utg file. This
option causes the system to read the .utg file and assign a Device
Address based on the device traffic that it sees in the file.

Note: In this release, the Device Emulator does not look at the Set Address in the

script, so if your host controller is running more than one device, it may
enumerate your device emulator incorrectly when you begin to generate
traffic. The solution is to manually assign a device address. To manually
configure the Device Address, select Emulated Device's Hex Address and
enter an address or mask (Note: A mask allows the system to respond to
multiple device addresses.)

Step 4 Click OK to close the Recording Options dialog and apply the changes. The

generation settings take effect as soon as you execute a script.

Advertising
This manual is related to the following products: