beautypg.com

3 traffic generation files, 4 creating traffic generation files – Teledyne LeCroy USB Protocol Suite User Manual (Voyager_Advisor T3_Mercury) User Manual

Page 318

background image

Teledyne LeCroy Corporation

Traffic Generation Files

318

 

 

USB Protocol Suite User Manual

11.3

Traffic Generation Files

The system generates USB 2.0 traffic from traffic generation files (*.utg) which are text‐
based script files that instruct the Generator how to generate USB 2.0 traffic. These script 
files can be edited with either a simple text editor such as Notepad or with the 
Script Editor utility provided by the application. The Script Editor utility has several aids to 
simplify the process of writing and editing scripts: tool‐tips, drop‐down menus, and 
colored fields.

The script example below shows the beginning of a traffic generation file created through 
the Export command. This command provides an easy way to create a generation file ‐ 
you open a trace file, then run the Export command. The trace serves as a blueprint for 
the traffic generation file. The example below shows several commented lines followed 
by some instructions.

Figure 11.5: Script example of a Traffic Generation File

This generation file causes the system to simulate a hub and to generate 24,320 packets. 
See 

“Device Emulation” on page 328

 for details about the format of traffic generation 

files.

11.4 Creating

Traffic Generation Files

If you choose to write a script with a text editor, a good way to start is to edit an example 
generation file. 

For Windows 7 and Windows 8, an example such as: 
FS_Enum_Break_Wrap_Sample.utg, HS_Hub_Sample.utg in the directory 
C:\Users\Public \Documents\LeCroy\USB Protocol Suite\Examples\2.0 Host Emulation 
or SampleDeviceEmulationThumbDriveFS.utg in the directory C:\Users\Public\ 
Documents\LeCroy\USB Protocol Suite\Examples\2.0 Device Emulation

For Windows XP, an example such as: FS_Enum_Break_Wrap_Sample.utg, 
HS_Hub_Sample.utg
, or SampleDeviceEmulationThumbDriveFS.utg, in the directory 
C:\Program Files\LeCroy\USB Protocol Suite\Examples\2.0 Host Emulation or 
C:\Program Files\LeCroy\USB Protocol Suite\Examples\2.0 Device Emulation.