Driver Test Manager
USB System Port Presence Test
Show All
.gif)
Type: Automated Test
Overview
The USB System Port Presence Test determines whether a system contains one or more USB root hubs or standard hubs. The system must contain at least one USB root hub and a total of two USB ports besides those that are used for a USB pointing device or USB keyboard. The test queries the system for USB root hubs through the USB software stack. The query determines whether there are at least two ports in the system besides the keyboard or pointing device ports and that they conform to the Windows Logo Program basic requirements. For mobile systems, one port is required.
Details
The test program queries each of the USB hubs through the USB software stack to determine how many ports are present in the system. The test software issues a Device GetDescriptor to get the device capabilities of the hubs. The following fields are returned and examined.
Offset | Field | Description |
1 | bDescriptorType | 29h indicates a hub descriptor |
2 | bNbrPorts | Number of downstream ports that this hub supports |
7 | DeviceRemovable | Indicates if a port has a removable device attached |
The descriptor value must be 29h (or 09h) to indicate that the device is a hub. The port number and the DeviceRemovable bitmap vector for each hub are used to calculate the total number of removable ports in the system. There must be at least two ports in the system that supports removable devices. For mobile, there must be at least one port that supports removable devices.
The test software then issues a GetPortStatus for each port that supports removable devices on the hubs in the system. The port should show the following bits in the status field.
Field | Value |
PORT_CONNECTION | Not Connected |
PORT_ENABLE | Not Enabled |
PORT_SUSPEND | Not Suspended |
PORT_OVER_CURRENT | No Overcurrent |
PORT_RESET | No Reset |
PORT_POWER | Powered On |
PORT_LOW_SPEED | N/A |
This state is the normal state for the hub and port to accept new device connections. Every removable port that does meet these requirements is not available and does not count towards the port requirement (2 ports for desktop and 1 for mobile).
After this process is complete, you are asked to connect a device to each port that indicates it is available. If you cannot connect a device to any of these ports, it does not count towards the port requirement (2 ports for desktop and 1 for mobile).
Results Interpretation
The test transcribes all results to a text based log file.
The test fails if:
- USB System Software does not load correctly and enable the host controllers.
- System does not support at least two (one on mobile) available downstream ports besides those used by USB keyboards and pointing devices. The following advisory information is provided as applicable.
- Content of each hub descriptor.
- Content of each port status descriptor.
Run Time: 5 minutes
Log File: System Restart Required: No
Test Category: Supported operating systems for "DFW" logo testing:Windows Vista
Windows Server 2003
Windows XP
Program: Requirements
Software Requirements
The test tool runs on the following Windows operating systems:
- Windows Vista
- Windows Server 2003
- Windows XP
- Software components included with the device that is being tested.
Supported Software
Hardware Requirements
- Device to be tested
- Computer that meets the minimum software requirements
- Windows keyboard
- Two-button pointing device
- Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
- Hard drive with a minimum of 20 GB available on partition C:
- Two USB devices. Only one USB device is required for mobile testing
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
- Computer that meets the minimum software requirements
- Windows keyboard
- Two-button pointing device
- Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
- Hard drive with a minimum of 20 GB available on partition C:
- Two USB devices. Only one USB device is required for mobile testing
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
- Windows keyboard
- Two-button pointing device
- Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
- Hard drive with a minimum of 20 GB available on partition C:
- Two USB devices. Only one USB device is required for mobile testing
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
- Two-button pointing device
- Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
- Hard drive with a minimum of 20 GB available on partition C:
- Two USB devices. Only one USB device is required for mobile testing
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
- Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz
- Hard drive with a minimum of 20 GB available on partition C:
- Two USB devices. Only one USB device is required for mobile testing
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
- Hard drive with a minimum of 20 GB available on partition C:
- Two USB devices. Only one USB device is required for mobile testing
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
- Two USB devices. Only one USB device is required for mobile testing
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
- One USB 2.0 controller PCI adapter, if system does not contain a USB 2.0 controller
- x86
- x64
- Itanium
-
Processor
- x86
- x64
- Itanium
- x64
- Itanium
- Itanium
Running USB System Port Presence Test
Command Syntax
| Command option | Description |
| |
Test Assertions
Test Assertion GUID:
Build machine: CAPEBUILD