USB鼠标枚举成功<em>数据</em>（Human Interface Device）：
Bus Hound 5.00 capture. Complements of www.perisoft.net
Device - Device ID (followed by the endpoint for USB
USBD_STATUS调试过USB的同学肯定见过BUS Hound里面给的各种错误提示，但是大家是否知道<em>是什么</em>意思呢？USBD_STATUS出错原因，详解如下：The USBD_STATUS <em>data</em> type defines USB status values for USB requests.typedef LONG USBD_STATUS;
The most significant 4 b...
Bus Hound 5.0Copyright (C) Perisoft 2000-2003. All rights reserved worldwide.Bus Hound is a powerful software <em>bus</em> analyzer for capturing I/O and protocol from devices. Features include: Supports every version of IDE, SCSI, USB, 1394 Supports all devices such as hard drives, DVD, mice, scanners, web cams, and everything else Supports Windows 95, 98, Me, NT 4.0, 2000, 2003, XP and XP Embedded Capture megabytes of I/O limited only by available memory Automatically stop the capture upon a trigger condition Measure individual read, write, and isochronous device performance Captures device driver packets such as IRP’s Filter what type of phases are captured Run on an unlimited number of machines at the same time Capture any number of devices in parallel, regardless of <em>bus</em> type Fits on a diskette for easy transportability and quick downloads Drag and drop captured <em>data</em> to other products in html format Save captured <em>data</em> to a text file or zip file Simple device selection from a graphical tree of devices Capture the system startup process Arrange captured <em>data</em> to user preferences such as the byte width per line View low level protocol including SCSI sense <em>data</em> and USB setup packets View microsecond resolution timing of each phase Watch I/O on screen in real time as it happens Pure software solution--no extra hardware or system changes neededThe Capture WindowCommands sent to devices consist of one or more phases. Examples of phases are command bytes, <em>data</em> bytes, and status bytes. Bus <em>hound</em> logs each phase complete with timing information and a description of the content.Capture columnsBelow are descriptions of information in each column of the Capture Window:DeviceDevice ID. Each device is assigned a number which can be matched up with devices in the Devices Window. The first detected device on the system is Device ID 0, the second is Device ID 1, and so on. This field is useful in the event multiple devices are being captured in parallel.For USB devices, the endpoint is also displayed (eg: 4.1 = device 4, endpoint 1).PhasePhase type. Please refer to the table for details of each phase type.Phase DescriptionADDR 8 byte 1394 transfer addressATI 7 byte ATA task file returned from an IDE deviceATO 7 byte ATA task file sent to an IDE device ATP Windows ATA_PASS_THROUGH <em>data</em> structureCDB SCSI command descriptor block (Known as a packet command for ATAPI devices)CTL 8 byte setup packet of a USB control transferDI Data In (Device to PC transfer)DO Data Out (PC to device transfer)IOR Windows VXD I/O Request <em>data</em> structureIRB Windows 1394 I/O Request Block <em>data</em> structureIRP Windows I/O Request Packet <em>data</em> structureISOC Isochronous transfer <em>data</em> bytesLEN Data transfer length of a DI,DO, or ISOC phase in decimal units. This field is off by default and can be turned on from the settings WindowLOCK 1394 lock transactionNSTS Windows 4 byte kernel mode NTSTATUS fieldRSET Bus or device resetRSTS Windows VXD IOR statusSNS SCSI request sense <em>data</em>SPT Windows SCSI Pass Through <em>data</em> structureSRB Windows SCSI Request Block (SRB) <em>data</em> structureSSTS Windows 1 byte SCSI Request Block (SRB) statusSTAK Windows IO_STACK_LOCATION <em>data</em> structureURB Windows USB Request Block (URB) <em>data</em> structureUSTS Windows 4 byte USBD_STATUS codeDataData bytes associated with the phase. Examples are command bytes, <em>data</em> transfer bytes, and status bytes.DescriptionA text description of this phase provided for your convenience.DeltaElapsed time from the previous phase to the current phase. The following table describes the units of the time format.Name Unitsus Microsecondsms Millisecondssc Secondsmn Minuteshr Hoursdy DaysCmd.Phase.Ofs(rep)This unique tag identifies the exact position within the captured <em>data</em>. All values are in decimal.Cmd is the command number. Commands start at 1 and increment for each new command sent to a device.Phase is the phase number within this command. A command is usually composed of multiple phases such as <em>data</em> transfer and status. This value starts at 1 and increments for each new phase within the command.Ofs is the byte offset of the <em>data</em> within this phase. This value starts at 0 and increments for each byte of <em>data</em> in the <em>data</em> transfer.Rep is the number of identical commands issued back to back. The repeat count feature can be turned off by deselecting the “Merge Repeated Commands” check box in the settings Window.DateDate the phase occurred in year/month/day format.TimeTime the phase occurred in hour:minute:second.millisecond format. The hour ranges from 0 to 23 (military time).Capturing the system startup processIf the Bus Hound application is exited while the Run button is pressed, the device driver portion of Bus Hound continues capturing <em>data</em>. In the event the system is restarted, it will start capturing <em>data</em> early in the system startup process.If Bus Hound is exited while stopped, no capture will occur until returning to the product and pressing Run.Customizing the capture displayThe column order can be modified by dragging the column headers to the desired position. The byte width per line can be 1, 2, 4, 8, 16, or 32 bytes and is based on the width of the window. These settings are respected for Saving and drag & drop.SearchingSearching can be performed from the capture window in either the up or down direction by typing the search string in the lower left edit box followed by pressing the up or down arrow to search up or down respectively. If the search string is not found, the trace position is not changed. Searching is not case sensitive.Drag and DropTo use drag and drop, first select the desired range of lines by clicking on the starting line, then hold down shift and click the ending line. The <em>data</em> can now be dragged using the mouse to another product.Pressing control-c copies the selected lines to the clipboard.Command OverlapOverlapped commands are identified when a command starts before previous commands to the same device have completed. It is possible for Commands to be overlapped at the I/O subsystem level (which Bus Hound displays), but not at the hardware level.Multiple DI/DO phasesWindows 9x only: if multiple DI/DO phases are listed for the same command, it indicates the transfer was split across multiple memory address rangesPS2 Mouse <em>data</em> formatBelow is the format of the <em>data</em> returned in the <em>data</em> in phase for PS/2 mice. This is known as the MOUSE_INPUT_DATA structure in the Windows DDK:Offset Length Content0 2 Not used2 2 Position type: 0000h = relative position 0001h = absolute position4 2 Button flags: 0001h = left button down 0002h = left button up 0004h = right button down 0008h = right button up 0010h = middle button down 0020h = middle button up 0040h = button 4 down 0080h = button 4 up 0100h = button 5 down 0200h = button 5 up 0400h = mouse wheel6 2 Mouse wheel <em>data</em>8 4 Not used12 4 X position16 4 Y position20 4 Device specific informationPS2 Keyboard <em>data</em> formatBelow is the format of the <em>data</em> returned in the <em>data</em> in phase for PS/2 keyboards. This is known as the KEYBOARD_INPUT_DATA structure in the Windows DDK:Offset Length Content0 2 Not used2 2 Scan code of key4 2 Flags: 0000h = key pressed 0001h = key released 0002h = extended scan code E0 0004h = extended scan code E16 2 Not used8 4 Device specific informationThe Save WindowThe Save button saves all captured <em>data</em> to the specified file. The format of the file can be either a text file containing standard ASCII characters or a Zip file. The <em>data</em> will be saved in the same column order and byte width as seen on the screen.A comment can be provided that will be placed into the header of the captured <em>data</em>. The current date and time can be included in the comment by inserting %c anywhere inside the comment. If saving to a zip file, the comment is also used for the zip file comment.The Settings WindowThis Window allows you to customize the capture process. Checkbox options in this window are applied instantly. Numeric entries are applied by pressing the apply button, switching to another window, or exiting Bus Hound.Buffer SizeSpecifies the number of kilobytes of RAM to use for capturing <em>data</em>. The size is limited only by system RAM. If not enough RAM is available to satisfy the requested size, the size is reduced to available RAM. If you need to get as much space as possible, besides adding more RAM to a system you can also try setting the buffer size before starting other applications. Note: allocating a very large buffer size under Windows 95/98/Me can take a minute.Max PhaseSpecifies the maximum number of bytes that will be captured on each phase. Example: if Max Phase is set to 32 bytes and a 64K read operation occurs, only the first 32 bytes of the read will be captured. This option is useful for keeping the size of the captured <em>data</em> to a minimum.Stop When...These are triggers that allow the capture to automatically stop when the specified condition is met. Any combination of triggers may be selected. When a trigger condition is met, the capture stops and the trigger text is highlighted in red.Any Other Error stops the capture when an error occurs that does not fall into any of the other categories.Buffer Full stops the capture when Bus Hound's buffer is full. If Buffer Full is deselected, capturing continues after the buffer is full, keeping the most recently captured <em>data</em>.Bus Reset stops the capture when a <em>bus</em> reset occurs.Data Overrun stops the capture when a <em>data</em> overrun or <em>data</em> underrun occurs.Hardware Error stops the capture when a hardware error occurs.Invalid Command stops the capture when an invalid command is issued.Media Error stops the capture when a device reports a media error such as a bad sector.No Media stops the capture when a device reports no media is present.Not Ready stops the capture upon a not ready, timeout, or <em>bus</em>y condition.Text Pattern / Hex Pattern stops the capture when the specified <em>data</em> pattern is detected in the captured <em>data</em>. For text patterns, the match is case sensitive. The pattern is checked against the <em>data</em> transferred in any phase including commands, <em>data</em>, and status.Vendor Error stops the capture when a vendor unique error occurs.Windows Error stops the capture when an operating system type error occurs.Phases to CaptureContains a list of all the phase types Bus Hound can capture. Placing a check mark next to a phase allows it to be captured. Removing a check mark next to a phase results in the phase not being captured. This option is useful for filtering out phases that are not of interest or including special operating system phases that are off by default.To the right of the check box, a white circle may appear. This indicates the phase has been detected and exists in the captured <em>data</em>. If the circle blinks bright green, it is a real time activity light indicating the phase has occurred and has been captured.Merge Repeated CommandsWhen selected, if a command occurs that is identical to the previous command, the new command will not be logged separately. Instead, the repeat count of the previous command is incremented. This option is useful for compacting the captured <em>data</em> when a device is being continually polled with the same command.Enable SoundsIf this option is enabled, Bus Hound will make an audible "ping" if the capture, settings, or devices window is up and a trigger condition is met. Columns to DisplayPlace a checkmark in the boxes to include the desired columns in the Capture Window. The selected columns will also be included in drag & drop and save operations. See the section “The Capture Window” for more details about each column.The Devices WindowThe list of devices represents every device on the system which Bus Hound supports. The list automatically refreshes to reflect new or removed devices. To select/deselect a device to capture, click in the check box next to the device. The selection will be applied instantly.Each device is assigned a number which is in parenthesis before the name of the device. This number is displayed in the capture window under the "Device" column. The number reflects the order in which the device was added to the system.If a device is displayed in a light font, it indicates the device is not currently present on the system.Capture new devicesSelecting this checkbox will automatically capture <em>data</em> for new devices that are detected. This feature is useful for capturing the first commands sent to hot plugged devices. Device PropertiesThis window pane displays details about the device such as the performance. The performance is calculated by summing the total bytes transferred divided by the total elapsed time of the commands. The performance statistics are cleared when the run button is pressed in the Capture window.Send CommandsYou can send your own custom commands to a device using Bus Commander. To start Bus Commander, highlight a device with the mouse and click the “Send Commands” button or simply double click the device. Bus Commander is a very powerful complementary tool that lets you submit USB, 1394, ATA and SCSI commands to devices. You can also perform operations like <em>bus</em> resets and hardware port i/o.Files InstalledBUSHOUND.EXE - Bus Hound applicationBUSCMDR.EXE - Bus Commander applicationBHUNINST.EXE - uninstallerBHLOG.EXE - capture to disk tool (site license version only)BHOUND3.VXD - device driver for Windows 95, 98, MeBHOUND4.SYS - device driver for Windows NT 4.0BHOUND5.SYS - device driver for Windows 98, Me, 2000, 2003, XPHELP.RTF - product help file (this file)Site LicenseThe site license version of Bus Hound includes the bhlog.exe command line tool in the folder where Bus Hound is installed. bhlog spools captured <em>data</em> to a disk file in real time. This tool raises the maximum capture size from available RAM to available disk space. bhlog also has the ability to retain captured <em>data</em> in the event a system freezes or reboots by directing captured <em>data</em> to a file on a network drive.FAQ1. What type of I/O is captured?Bus Hound takes a snap shot of packets sent across the <em>bus</em>. This includes commands, <em>data</em>, status, and timing of each command. Bus Hound does not monitor individual hardware signals.2. Will Bus Hound change the behavior of my devices?No. Bus Hound simply “listens” for packets. Bus Hound does not alter commands, does not send its own commands, does not replace any system drivers, and does not access the hardware. The system and devices will operate identically whether Bus Hound is installed or not.3. Will Bus Hound degrade system performance?Customers capturing <em>data</em> from extremely fast devices in parallel have been impressed by Bus Hound’s ability not to effect performance. Bus Hound is even more innocuous when in the stopped state.4. Which devices are supported?All IDE, SCSI, USB and 1394 devices are supported including disk drives, mice, scanners, web cams, and everything else. Devices that emulate one of these <em>bus</em>es are also supported such as certain parallel port devices.5. Why are there duplicate devices?For some devices, Windows first forms high level packets that are then translated into low level packets which are in turn sent to the hardware. Bus Hound shows several devices so you can choose which level of I/O you wish to capture.6. What does capturing I/O for a controller do?Some controllers receive commands and some do not. You can experiment capturing <em>data</em> for a controller to see if the packets are of interest.7. What if Bus Hound does not show a device?No devices are displayed when the system is started in safe mode. This is a safety feature to keep safe mode as clean as possible.Devices which are marked with a problem in device manager are not displayed.SCSI adapters are not displayed under Windows 95/98/Me unless they have one or more devices attached.8. Why are some devices grayed out?A grayed out device indicates it is currently not attached to the system.9. Windows 95/98/Me crashes when pressing run. What do I do?Due to limitations in the Windows 9x architecture, if too many device drivers ask to receive notification of I/O completion, the system will crash. Microsoft device drivers and other installed software such as Bus Hound need such notifications. To resolve this, remove software likely to have additional device drivers installed for the device. For CD/DVD drives, an easy solution is to rename the legacy scsi1hlp.vxd to scsi1hlp.bak which is in the windows/system/iosubsys folder.10. Why am I not able to capture all 1394 events?Some 1394 devices Bus Hound displays are logical devices such as AV/VHS devices. Select devices further up the tree to capture <em>bus</em> activity for such devices.While Bus Hound logs every isochronous transaction, there is no practical way for Bus Hound to see every asynchronous transaction. If you need to see more 1394 activity, note Bus Hound can capture a great deal more in operating systems prior to XP, particularly for SBP-2 devices.11. Why am I not seeing task file (ATA) commands for IDE hard drives?Bus Hound captures ATA commands only when an application or driver explicitly sends an ATA command (eg: SMART, IDENTIFY). For normal file system requests, Bus Hound captures SCSI CDB's instead of ATA commands due to the monolithic nature of the Windows IDE device driver. Note the CDB's captured have a one to one relationship with ATA commands and can be easily translated to their native ATA equivalent. Also note the <em>data</em> captured with the CDB is identical to the ATA <em>data</em> transfer.12. Where can I get more detailed information on the captured <em>data</em>?For your convenience, please visit www.perisoft.net/engineer for handy reference <em>data</em> and specifications. Also please note the following resources:Specification LocationUSB www.usb.org SCSI www.t10.org IDE, ATA, ATAPI www.t13.org 1394, Firewire www.1394ta.org or www.ieee.org Windows DDK www.microsoft.com/ddk 14. Where do I get support?Visit www.perisoft.net. Any questions, comments, or problem reports on the free or full version are welcome.
QTP11补丁发布 - 增强WPF对象识别以及修复一些问题
This hotfix fixes the following problems:
1. QuickTest Professional sometimes caused .Net 4 WPF applications with multiple AppDomains to crash.
2. QuickTest Professional sometimes caused an error message to be displayed by the application when
spying on a specific