I am developing a custom USB device. The device is detected when connected to an USB 2…
- User
I am developing a custom USB device. The device is detected when connected to an USB 2 port, but not to a USB 3 port. Here is a log of the communication when connected to USB 3. Clearly there is communication going on, so what is the issue?
ReqImport CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 02 00 00 00 40 E9 17 99 01 24 01 01 02 03 01 CmdSubmit transferFlags: 0; transferBufferLength: 255; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 800600020000FF00 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Configuration; DescriptorIndex: 0; Index: 0; Length: 255) Get Configuration Desciptor 09 02 27 00 01 01 00 80 FA 09 04 00 00 03 FF 00 00 00 07 05 01 02 00 02 00 07 05 82 03 08 00 04 07 05 0A 02 00 02 00 CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 02 00 00 00 40 E9 17 99 01 24 01 01 02 03 01 CmdSubmit transferFlags: 0; transferBufferLength: 255; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 800600020000FF00 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Configuration; DescriptorIndex: 0; Index: 0; Length: 255) Get Configuration Desciptor 09 02 27 00 01 01 00 80 FA 09 04 00 00 03 FF 00 00 00 07 05 01 02 00 02 00 07 05 82 03 08 00 04 07 05 0A 02 00 02 00 CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 02 00 00 00 40 E9 17 99 01 24 01 01 02 03 01 CmdSubmit transferFlags: 0; transferBufferLength: 255; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 800600020000FF00 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Configuration; DescriptorIndex: 0; Index: 0; Length: 255) Get Configuration Desciptor 09 02 27 00 01 01 00 80 FA 09 04 00 00 03 FF 00 00 00 07 05 01 02 00 02 00 07 05 82 03 08 00 04 07 05 0A 02 00 02 00 CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 02 00 00 00 40 E9 17 99 01 24 01 01 02 03 01 CmdSubmit transferFlags: 0; transferBufferLength: 255; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 800600020000FF00 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Configuration; DescriptorIndex: 0; Index: 0; Length: 255) Get Configuration Desciptor 09 02 27 00 01 01 00 80 FA 09 04 00 00 03 FF 00 00 00 07 05 01 02 00 02 00 07 05 82 03 08 00 04 07 05 0A 02 00 02 00
Assistant
Looking at your USB log, I can see the issue. Your device is declaring itself as a USB 2.0 device but isn't properly completing the enumeration process when connected to a USB 3.0 port.
The key clue is in your device descriptor:
12 01 00 02 00 00 00 40 E9 17 99 01 24 01 01 02 03 01The third byte pair
00 02indicates USB 2.0 compatibility (bcdUSB = 0x0200). However, when connected to a USB 3.0 port, the host is repeatedly requesting the same descriptors without proceeding to the next enumeration steps (like setting the configuration).This pattern of repeated identical requests suggests the host is timing out waiting for a complete response or isn't receiving acknowledgment from your device.
Common causes for this issue:
- Your device might not be handling the higher speed signaling on USB 3.0 ports correctly
- There could be a timing issue in your device's response to descriptor requests
- The device might be missing a BOS descriptor required for USB 3.0 compatibility
- Power management differences between USB 2.0 and 3.0 ports
Try implementing one of these solutions:
- Add a USB 3.0 BOS descriptor if you want USB 3.0 compatibility
- User
I changed the 2 to a 3. However, it is still not working. Now there is a different log:
ReqImport CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 03 00 00 00 40 E9 17 99 01 24 01 01 02 03 01 CmdSubmit transferFlags: 0; transferBufferLength: 255; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 800600020000FF00 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Configuration; DescriptorIndex: 0; Index: 0; Length: 255) Get Configuration Desciptor 09 02 27 00 01 01 00 80 FA 09 04 00 00 03 FF 00 00 00 07 05 01 02 00 02 00 07 05 82 03 08 00 04 07 05 0A 02 00 02 00 CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 03 00 00 00 40 E9 17 99 01 24 01 01 02 03 01 CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 03 00 00 00 40 E9 17 99 01 24 01 01 02 03 01 CmdSubmit transferFlags: 0; transferBufferLength: 18; startFrame: 0; numberOfPackets: 4294967295; interval: 0; setup: 8006000100001200 (Direction: In; Type: Standard; Recipient: Device; RequestType: GetDescriptor; DescriptorType: Device; DescriptorIndex: 0; Index: 0; Length: 18) 12 01 00 03 00 00 00 40 E9 17 99 01 24 01 01 02 03 01
Assistant
I see the issue now. Simply changing the bcdUSB value from 0x0200 (USB 2.0) to 0x0300 (USB 3.0) isn't enough. When you declare your device as USB 3.0 compatible, the host expects additional descriptors that are mandatory for USB 3.0 devices.
The log shows the host is now requesting the device descriptor repeatedly without proceeding to request the BOS (Binary Device Object Store) descriptor, which is required for USB 3.0 devices. This is why the enumeration is failing.
For a proper USB 3.0 device, you need to:
-
Implement a BOS descriptor that includes:
- USB 2.0 extension descriptor
- SuperSpeed USB device capability descriptor
-
Ensure your device can handle SuperSpeed signaling if you truly want USB 3.0 functionality
If you don't actually need USB 3.0 speeds but just want your device to work on USB 3.0 ports, a better approach would be:
- Keep the bcdUSB as 0x0200 (USB 2.0)
- Make sure your device properly responds to all standard requests
- Check your hardware design for electrical compatibility with USB 3.0 ports
USB 3.0 ports should be backward compatible with USB 2.0 devices, so there's likely another issue with how your device is responding to the enumeration process. The repeated requests suggest the host isn't getting a proper acknowledgment from your device.
-
- User
How would a BOS descriptor look like?
Assistant
Here's how a basic BOS (Binary Device Object Store) descriptor would look for a USB 3.0 device:
// BOS descriptor (5 bytes) 0x05, // bLength: 5 bytes 0x0F, // bDescriptorType: BOS descriptor (15) 0x16, 0x00, // wTotalLength: Total length including device capability descriptors (22 bytes) 0x02, // bNumDeviceCaps: Number of device capability descriptors (2) // USB 2.0 Extension descriptor (7 bytes) 0x07, // bLength: 7 bytes 0x10, // bDescriptorType: DEVICE CAPABILITY descriptor (16) 0x02, // bDevCapabilityType: USB 2.0 EXTENSION (2) 0x02, 0x00, 0x00, 0x00, // bmAttributes: LPM support (bit 1) // SuperSpeed USB Device Capability descriptor (10 bytes) 0x0A, // bLength: 10 bytes 0x10, // bDescriptorType: DEVICE CAPABILITY descriptor (16) 0x03, // bDevCapabilityType: SUPERSPEED_USB (3) 0x00, // bmAttributes: None 0x0E, 0x00, // wSpeedsSupported: FS, HS, SS (bits 1, 2, 3) 0x01, // bFunctionalitySupport: Lowest speed is full-speed (1) 0x0A, // bU1DevExitLat: U1 Device Exit Latency (10 μs) 0x00, 0x00 // wU2DevExitLat: U2 Device Exit Latency (0 μs)