greatscottgadgets / greatscottgadgets/hackrf

[USB] Hack rf fails usb compliance tests.

Open
#111 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
8.1k
Forks
1.7k
Avg merge
15d 7h
Merged PRs (30d)
1

Description

Compliance tools can be found at : http://www.usb.org/developers/tools/

Test log initialized.
User Input module initialized
Windows 7 (Build 7601)
Service Pack 1.0
CVExe.exe ver 1.4.7.0
CommandVerifierLog.dll ver 1.4.8.0
TSMFCGuiDialogHelperDLL.dll ver 1.4.7.0
TestUtilities.dll ver 1.4.7.0
TestSuiteEngine.dll ver 1.4.7.0
xhci_DevIOCTL.dll ver 1.0.2.1
xhci_TestServices.dll ver 1.0.2.1
USBUtilities.dll ver 1.4.5.0
StackSwitcher.dll ver 1.4.5.1
xhci_USBCommandVerifier.dll ver 1.0.2.1
USB20_USBCommandVerifier.dll ver 1.0.2.1
Host selected: xHCI Host: VID=0x8086, PID=0x1e31 (PCI bus 0, device 20, function 0)
DUT selected: HS Device addr=1: VID=1d50, PID=604b
Topology: XHCI HC -- DUT
High Speed Device
USB Version number of device: 2.00
Number of configurations: 1
USB Version number of device: 2.00
Number of Other Speed configurations: 1
Start time: Thu Mar 06 16:55:21 2014

Set Configuration failed for Configuration Value : 0
Get Configuration failed
Device descriptor length : 0x12
Device descriptor type : 0x1
Major version : 0x2
Minor version : 0x0
Each interface specifies its own device class type
Device sub class : 0x0
Device protocol : 0x0
Device MaxPacketSize0 : 0x40
Vendor information for VendorID : 0x1D50, OpenMoko
Device ProductID : 0x604B
Device BCD : 0x100
ENGLISH_US language string descriptor is : Great Scott Gadgets
ENGLISH_US language string descriptor is : HackRF
Device Serial Number String : 0x0
Number of configurations device supports : 0x1

Stop time: Thu Mar 06 16:55:22 2014
Duration: 1 second.
Stopping Test [ TD 9.1 - Device Descriptor Test (Configuration Index 0) - default:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:22 2014

Configuration descriptor contains descriptor of type : 0x4 (Interface Descriptor)
Configuration descriptor contains descriptor of type : 0x5 (Endpoint Descriptor)
Configuration descriptor contains descriptor of type : 0x5 (Endpoint Descriptor)
Number of interface descriptors found 0x1
Number of alternate interface descriptors found : 0x0
Number of endpoint descriptors found : 0x2
Configuration descriptor length : 0x9
Configuration descriptor type : 0x2
Configuration descriptor TotalLength : 0x20
Configuration descriptor NumInterfaces : 0x1
Configuration descriptor ConfigurationValue: 0x1
Configuration descriptor string descriptor index : 0x0
Configuration descriptor bmAttributes : 0x80
Device does not support remote wake up
MaxPower = 250 PowerMultiplier = 2
Maximum power device requires : 500mA
Device is BUS POWERED

Stop time: Thu Mar 06 16:55:23 2014
Duration: 1 second.
Stopping Test [ TD 9.2 - Configuration Descriptor Test (Configuration Index 0) - default:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:23 2014

Found Interface Descriptor with number : 0

This device does not contain an Interface Association Descriptor

Stop time: Thu Mar 06 16:55:24 2014
Duration: 1 second.
Stopping Test [ TD 9.3 Interface Association Descriptor Test (Config 0):
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:24 2014

Bandwidth check passed
Testing Interface number : 0x0 Alternate setting : 0x0
Interface descriptor length : 0x9
Interface descriptor bDescriptorType : 0x4
Interface descriptor bAlternateSetting : 0x0
Interface descriptor bNumEndPoints: 0x2
Interface descriptor bInterfaceClass is vendor-specific
Interface descriptor bInterfaceSubClass : 0xFF
Device uses a vendor-specific protocol for this interface
Interface descriptor iInterface : 0x0

Stop time: Thu Mar 06 16:55:25 2014
Duration: 1 second.
Stopping Test [ TD 9.4 - Interface Descriptor Test (Configuration Index 0) - default:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:25 2014

Testing Interface number : 0x0 Alternate setting : 0x0
Endpoint descriptor length : 0x7
Endpoint descriptor type : 0x5
Endpoint Type : Bulk, Number : 0x1, Direction : IN
Endpoint descriptor bmAttributes : 0x2
Endpoint descriptor raw MaxPacketSize : 0x200
Endpoint descriptor interval : 0x0
Endpoint descriptor length : 0x7
Endpoint descriptor type : 0x5
Endpoint Type : Bulk, Number : 0x2, Direction : OUT
Endpoint descriptor bmAttributes : 0x2
Endpoint descriptor raw MaxPacketSize : 0x200
Endpoint descriptor interval : 0x0

Stop time: Thu Mar 06 16:55:26 2014
Duration: 1 second.
Stopping Test [ TD 9.5 - Endpoint Descriptor Test (Configuration Index 0) - default:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:26 2014

Configuration Index 0x00 has a Configuration Value of 1
USB Version number of device: 2.00
Device supports version of the USB Protocol that does not support BOS Descriptor

Stop time: Thu Mar 06 16:55:27 2014
Duration: 1 second.
Stopping Test [ TD 9.7 - BOS Descriptor Test - Device State Default:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:27 2014

Device descriptor length : 0x12
Device descriptor type : 0x1
Major version : 0x2
Minor version : 0x0
Each interface specifies its own device class type
Device sub class : 0x0
Device protocol : 0x0
Device MaxPacketSize0 : 0x40
Vendor information for VendorID : 0x1D50, OpenMoko
Device ProductID : 0x604B
Device BCD : 0x100
ENGLISH_US language string descriptor is : Great Scott Gadgets
ENGLISH_US language string descriptor is : HackRF
Device Serial Number String : 0x0
Number of configurations device supports : 0x1

Stop time: Thu Mar 06 16:55:28 2014
Duration: 1 second.
Stopping Test [ TD 9.1 - Device Descriptor Test (Configuration Index 0) - addressed:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:28 2014

Configuration descriptor contains descriptor of type : 0x4 (Interface Descriptor)
Configuration descriptor contains descriptor of type : 0x5 (Endpoint Descriptor)
Configuration descriptor contains descriptor of type : 0x5 (Endpoint Descriptor)
Number of interface descriptors found 0x1
Number of alternate interface descriptors found : 0x0
Number of endpoint descriptors found : 0x2
Configuration descriptor length : 0x9
Configuration descriptor type : 0x2
Configuration descriptor TotalLength : 0x20
Configuration descriptor NumInterfaces : 0x1
Configuration descriptor ConfigurationValue: 0x1
Configuration descriptor string descriptor index : 0x0
Configuration descriptor bmAttributes : 0x80
Device does not support remote wake up
MaxPower = 250 PowerMultiplier = 2
Maximum power device requires : 500mA
Device is BUS POWERED
(1.1.100) Devices must support a GetStatus Standard Request
Test failed

Stop time: Thu Mar 06 16:55:29 2014
Duration: 1 second.
Stopping Test [ TD 9.2 - Configuration Descriptor Test (Configuration Index 0) - addressed:
Number of: Fails (1); Aborts (1); Warnings (0) ]

Start time: Thu Mar 06 16:55:29 2014

Found Interface Descriptor with number : 0

This device does not contain an Interface Association Descriptor

Stop time: Thu Mar 06 16:55:30 2014
Duration: 1 second.
Stopping Test [ TD 9.3 Interface Association Descriptor Test (Config 0):
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:30 2014

Bandwidth check passed
Testing Interface number : 0x0 Alternate setting : 0x0
Interface descriptor length : 0x9
Interface descriptor bDescriptorType : 0x4
Interface descriptor bAlternateSetting : 0x0
Interface descriptor bNumEndPoints: 0x2
Interface descriptor bInterfaceClass is vendor-specific
Interface descriptor bInterfaceSubClass : 0xFF
Device uses a vendor-specific protocol for this interface
Interface descriptor iInterface : 0x0

Stop time: Thu Mar 06 16:55:31 2014
Duration: 1 second.
Stopping Test [ TD 9.4 - Interface Descriptor Test (Configuration Index 0) - addressed:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:31 2014

Testing Interface number : 0x0 Alternate setting : 0x0
Endpoint descriptor length : 0x7
Endpoint descriptor type : 0x5
Endpoint Type : Bulk, Number : 0x1, Direction : IN
Endpoint descriptor bmAttributes : 0x2
Endpoint descriptor raw MaxPacketSize : 0x200
Endpoint descriptor interval : 0x0
Endpoint descriptor length : 0x7
Endpoint descriptor type : 0x5
Endpoint Type : Bulk, Number : 0x2, Direction : OUT
Endpoint descriptor bmAttributes : 0x2
Endpoint descriptor raw MaxPacketSize : 0x200
Endpoint descriptor interval : 0x0

Stop time: Thu Mar 06 16:55:32 2014
Duration: 1 second.
Stopping Test [ TD 9.5 - Endpoint Descriptor Test (Configuration Index 0) - addressed:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:32 2014

Configuration Index 0x00 has a Configuration Value of 1
USB Version number of device: 2.00
Device supports version of the USB Protocol that does not support BOS Descriptor

Stop time: Thu Mar 06 16:55:33 2014
Duration: 1 second.
Stopping Test [ TD 9.7 - BOS Descriptor Test - Device State Addressed:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:33 2014

Device descriptor length : 0x12
Device descriptor type : 0x1
Major version : 0x2
Minor version : 0x0
Each interface specifies its own device class type
Device sub class : 0x0
Device protocol : 0x0
Device MaxPacketSize0 : 0x40
Vendor information for VendorID : 0x1D50, OpenMoko
Device ProductID : 0x604B
Device BCD : 0x100
ENGLISH_US language string descriptor is : Great Scott Gadgets
ENGLISH_US language string descriptor is : HackRF
Device Serial Number String : 0x0
Number of configurations device supports : 0x1

Stop time: Thu Mar 06 16:55:34 2014
Duration: 1 second.
Stopping Test [ TD 9.1 - Device Descriptor Test (Configuration Index 0) - configured:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:34 2014

Configuration descriptor contains descriptor of type : 0x4 (Interface Descriptor)
Configuration descriptor contains descriptor of type : 0x5 (Endpoint Descriptor)
Configuration descriptor contains descriptor of type : 0x5 (Endpoint Descriptor)
Number of interface descriptors found 0x1
Number of alternate interface descriptors found : 0x0
Number of endpoint descriptors found : 0x2
Configuration descriptor length : 0x9
Configuration descriptor type : 0x2
Configuration descriptor TotalLength : 0x20
Configuration descriptor NumInterfaces : 0x1
Configuration descriptor ConfigurationValue: 0x1
Configuration descriptor string descriptor index : 0x0
Configuration descriptor bmAttributes : 0x80
Device does not support remote wake up
MaxPower = 250 PowerMultiplier = 2
Maximum power device requires : 500mA
Device is BUS POWERED
(1.1.100) Devices must support a GetStatus Standard Request
Test failed

Stop time: Thu Mar 06 16:55:35 2014
Duration: 1 second.
Stopping Test [ TD 9.2 - Configuration Descriptor Test (Configuration Index 0) - configured:
Number of: Fails (1); Aborts (1); Warnings (0) ]

Start time: Thu Mar 06 16:55:35 2014

Found Interface Descriptor with number : 0

This device does not contain an Interface Association Descriptor

Stop time: Thu Mar 06 16:55:36 2014
Duration: 1 second.
Stopping Test [ TD 9.3 Interface Association Descriptor Test (Config 0):
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:36 2014

Bandwidth check passed
Testing Interface number : 0x0 Alternate setting : 0x0
Interface descriptor length : 0x9
Interface descriptor bDescriptorType : 0x4
Interface descriptor bAlternateSetting : 0x0
Interface descriptor bNumEndPoints: 0x2
Interface descriptor bInterfaceClass is vendor-specific
Interface descriptor bInterfaceSubClass : 0xFF
Device uses a vendor-specific protocol for this interface
Interface descriptor iInterface : 0x0
SetInterface with interface number : 0x0 failed.

Stop time: Thu Mar 06 16:55:37 2014
Duration: 1 second.
Stopping Test [ TD 9.4 - Interface Descriptor Test (Configuration Index 0) - configured:
Number of: Fails (0); Aborts (0); Warnings (1) ]

Start time: Thu Mar 06 16:55:37 2014

Testing Interface number : 0x0 Alternate setting : 0x0
Endpoint descriptor length : 0x7
Endpoint descriptor type : 0x5
Endpoint Type : Bulk, Number : 0x1, Direction : IN
Endpoint descriptor bmAttributes : 0x2
Endpoint descriptor raw MaxPacketSize : 0x200
Endpoint descriptor interval : 0x0
Endpoint descriptor length : 0x7
Endpoint descriptor type : 0x5
Endpoint Type : Bulk, Number : 0x2, Direction : OUT
Endpoint descriptor bmAttributes : 0x2
Endpoint descriptor raw MaxPacketSize : 0x200
Endpoint descriptor interval : 0x0

Stop time: Thu Mar 06 16:55:38 2014
Duration: 1 second.
Stopping Test [ TD 9.5 - Endpoint Descriptor Test (Configuration Index 0) - configured:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:38 2014

Configuration Index 0x00 has a Configuration Value of 1
Initializing the device to the Configured state with Configuration Value 1

USB Version number of device: 2.00
Device supports version of the USB Protocol that does not support BOS Descriptor

Stop time: Thu Mar 06 16:55:39 2014
Duration: 1 second.
Stopping Test [ TD 9.7 - BOS Descriptor Test (Configuration Index 0) - Device State Configured:
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:39 2014

Testing Interface number : 0x0 Alternate setting : 0x0
SetInterface with interface number : 0x0 failed.
Testing EndPoint type : Bulk, Address : 0x81
Endpoint GetStatus request failed for endpoint 0x81
Endpoint is currently not halted for endpoint 0x81
Setting feature endpoint halt for endpoint 0x81
Setting feature endpoint halt failed for endpoint 0x81
Endpoint GetStatus request failed for endpoint 0x81
Clearing feature endpoint halt for endpoint 0x81
Endpoint GetStatus request failed for endpoint 0x81
(1.2.91) A device that has Bulk/Interrupt endpoints must support the
Halt Endpoint request on those endpoints.
Testing EndPoint type : Bulk, Address : 0x2
Endpoint GetStatus request failed for endpoint 0x02
Endpoint is currently not halted for endpoint 0x02
Setting feature endpoint halt for endpoint 0x02
Setting feature endpoint halt failed for endpoint 0x02
Endpoint GetStatus request failed for endpoint 0x02
Clearing feature endpoint halt for endpoint 0x02
Endpoint GetStatus request failed for endpoint 0x02
(1.2.91) A device that has Bulk/Interrupt endpoints must support the
Halt Endpoint request on those endpoints.

Stop time: Thu Mar 06 16:55:40 2014
Duration: 1 second.
Stopping Test [ TD 9.9 - Halt Endpoint Test (Configuration Index 0):
Number of: Fails (2); Aborts (0); Warnings (1) ]

Start time: Thu Mar 06 16:55:40 2014

SetConfiguration with configuration value : 0x1
Set Configuration failed for Configuration Value : 0
Get Configuration failed
Unconfigured the device
Set Configuration failed for Configuration Value : 1
Get Configuration failed
SetConfiguration with configuration value : 0x1 failed
(1.1.7) Devices must support a SetConfiguration request.

Stop time: Thu Mar 06 16:55:41 2014
Duration: 1 second.
Stopping Test [ TD 9.13 - SetConfiguration Test (Configuration Index 0):
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:41 2014

Suspended the parent port of the Device Under Test.
Resumed the parent port of the Device Under Test.
Get Device Descriptor failed after resuming device.
(1.1.30) A suspended device must resume normal operation when resume
signaling is seen on its upstream port.
Reenumerated device under test.

Stop time: Thu Mar 06 16:55:44 2014
Duration: 3 seconds.
Stopping Test [ TD 9.14 - Suspend/Resume Test (Configuration Index 0):
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:44 2014

The device does not support remote wakeup

Stop time: Thu Mar 06 16:55:45 2014
Duration: 1 second.
Stopping Test [ TD 9.12 - Remote Wakeup Test (Configuration Index 0) - Enabled::
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:45 2014

The device does not support remote wakeup

Stop time: Thu Mar 06 16:55:46 2014
Duration: 1 second.
Stopping Test [ TD 9.12 - Remote Wakeup Test (Configuration Index 0) - Disabled::
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:46 2014

Checking Device Under Test for LPM Compatibility...
USB version of device is 2.00.
LPM is only supported in USB version 2.01 and above.

Stop time: Thu Mar 06 16:55:47 2014
Duration: 1 second.
Stopping Test [ L1Suspend/Resume Test (Configuration Index 0):
Number of: Fails (0); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:47 2014

Set Configuration failed for Configuration Value : 0
Get Configuration failed
(1.1.3) Devices must support a GetDescriptor(Device) request.

Stop time: Thu Mar 06 16:55:48 2014
Duration: 1 second.
Stopping Test [ TD 9.17 - Other Speed Configuration Test (Configuration Index 0 OtherSpeedConfiguration Index 0) - addressed:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:48 2014

Get configuration descriptor failed for Configuration Descriptor index : 0x0
Could not get configuration value for configuration index 0x0
(1.1.1) Devices must have a corresponding configuration value for a
valid configuration index.

Stop time: Thu Mar 06 16:55:49 2014
Duration: 1 second.
Stopping Test [ TD 9.4 - Interface Descriptor Test (Configuration Index 0 OtherSpeedConfiguration Index 0) - addressed:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:49 2014

Get configuration descriptor failed for Configuration Descriptor index : 0x0
Could not get configuration value for configuration index 0x0
(1.1.1) Devices must have a corresponding configuration value for a
valid configuration index.

Stop time: Thu Mar 06 16:55:50 2014
Duration: 1 second.
Stopping Test [ TD 9.5 - Endpoint Descriptor Test (Configuration Index 0 OtherSpeedConfiguration Index 0) - addressed:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:50 2014

Get configuration descriptor failed for Configuration Descriptor index : 0x0
Could not get configuration value for configuration index 0x0
(1.1.1) Devices must have a corresponding configuration value for a
valid configuration index.

Stop time: Thu Mar 06 16:55:51 2014
Duration: 1 second.
Stopping Test [ TD 9.18 - Device Qualifier Descriptor Test (Configuration Index 0) - addressed:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:51 2014

Get configuration descriptor failed for Configuration Descriptor index : 0x0
Could not get configuration value for configuration index 0x0
(1.1.1) Devices must have a corresponding configuration value for a
valid configuration index.

Stop time: Thu Mar 06 16:55:52 2014
Duration: 1 second.
Stopping Test [ TD 9.18 - Device Qualifier Descriptor Test (Configuration Index 0) - configured:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:52 2014

Get configuration descriptor failed for Configuration Descriptor index : 0x0
Could not get configuration value for config index 0x0
(1.1.1) Devices must have a corresponding configuration value for a
valid configuration index.

Stop time: Thu Mar 06 16:55:53 2014
Duration: 1 second.
Stopping Test [ TD 9.17 - Other Speed Configuration Test (Configuration Index 0 OtherSpeedConfiguration Index 0) - configured:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:53 2014

Get configuration descriptor failed for Configuration Descriptor index : 0x0
Could not get configuration value for configuration index 0x0
(1.1.1) Devices must have a corresponding configuration value for a
valid configuration index.

Stop time: Thu Mar 06 16:55:54 2014
Duration: 1 second.
Stopping Test [ TD 9.4 - Interface Descriptor Test (Configuration Index 0 OtherSpeedConfiguration Index 0) - configured:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:54 2014

Get configuration descriptor failed for Configuration Descriptor index : 0x0
Could not get configuration value for configuration index 0x0
(1.1.1) Devices must have a corresponding configuration value for a
valid configuration index.

Stop time: Thu Mar 06 16:55:55 2014
Duration: 1 second.
Stopping Test [ TD 9.5 - Endpoint Descriptor Test (Configuration Index 0 OtherSpeedConfiguration Index 0) - configured:
Number of: Fails (1); Aborts (0); Warnings (0) ]

Start time: Thu Mar 06 16:55:55 2014

Device speed is High
Beginning enumeration test with 150 enumerations. This may take several minutes to complete.
Enumerated 150 iterations.

Stop time: Thu Mar 06 16:56:36 2014
Duration: 41 seconds.
Stopping Test [ TD 9.16 - Enumeration Test (repeat 150 times):
Number of: Fails (0); Aborts (0); Warnings (0) ]

Summary Log Counts [ Fails (14); Aborts (2); Warnings (2) ]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the USB compliance tools linked in the report and reproduce the failures against the HackRF device. Investigate the configuration-descriptor TD 9.2 GetStatus failure and the reported SetInterface failure; done means the relevant compliance checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.