none
USB Descriptor Test Failed RRS feed

  • Question

  • Hello,

    I am developing a usb driver, and I am having problems with the USB Descriptor Test.
    I have already read this, http://msdn.microsoft.com/en-us/library/windows/hardware/hh998147.aspx, and my test is failing at step 4.

    Here are the logs of the part where it failed

    1160 1328 2013:8:12 19:16:46:986 Assertion 9.21.5: Set Address  
    1160 1328 2013:8:12 19:16:46:986 Setting Address to: 2  
    1160 1328 2013:8:12 19:16:47:111 Assertion 9.21.5:  
    1160 1328 2013:8:12 19:16:47:111 Assertion 9.21.5: Ends  
    1160 1328 2013:8:12 19:16:47:111 Loop, requesting device descriptor from size 1 to 255 packets  
    1160 1328 2013:8:12 19:16:47:111 Assertion 9.21.3: Get Device Descriptor  
    1160 1328 2013:8:12 19:16:47:111 Packets Requested: 1  
    1160 1328 2013:8:12 19:16:47:173 GetDescriptor: errorCode = 31, UsbdStatus = 0xc0000004  
    1160 1328 2013:8:12 19:16:47:173 Error: 0x0, Error 0x00000000   Expected device to return 1 bytes of data, but 0 bytes of data was returned.    File=testsrc\driverstest\usb\usbhct\exe\getdtest.cpp Line=877  
    1160 1328 2013:8:12 19:16:47:173 Data received:  
    1160 1328 2013:8:12 19:16:47:173 Zero-length buffer  
    1160 1328 2013:8:12 19:16:47:173 Data Expected:  
    1160 1328 2013:8:12 19:16:47:173 Not a USB descriptor. Descriptor must have at least 2 bytes. Hexadecimal contents:  
    1160 1328 2013:8:12 19:16:47:173 12   
    1160 1328 2013:8:12 19:16:47:173 Assertion 9.21.3:  
    1160 1328 2013:8:12 19:16:47:173 Assertion 9.21.3: Ends  
    1160 1328 2013:8:12 19:16:47:173 Output Test Signature End  
    1160 1328 2013:8:12 19:16:47:173 Setup Output Request  
    1160 1328 2013:8:12 19:16:47:236 Disable Raw Device Access  
    1160 1328 2013:8:12 19:16:47:236 Open USB services key  
    1160 1328 2013:8:12 19:16:47:236 Open the services key  
    1160 1328 2013:8:12 19:16:47:236 Create class key  
    1160 1328 2013:8:12 19:16:47:236 Close key  
    1160 1328 2013:8:12 19:16:47:236 Delete key  
    1160 1328 2013:8:12 19:16:47:236 Close key  
    1160 1328 2013:8:12 19:16:47:236 Reenable Root Hub  
    1160 1328 2013:8:12 19:16:47:236 Disable Device Node  
    1160 1328 2013:8:12 19:16:47:236 Enable Device Node  
    1160 1328 2013:8:12 19:16:47:236 Ending Get Descriptor  
    1160 1328 2013:8:12 19:16:47:236 End: Fail, USB HCT Get Descriptor Test 1.1, TUID=, Repro="H:\WLK\JobsWorkingDir\Tasks\WTTJobRun416EC632-E558-4CEB-AB81-96600EEAC9E6\usbhct.exe"  -g -d XXXX/XXXX -l usbhct_g.log    
    1160 1328 2013:8:12 19:16:47:236 Summary: Total=1, Passed=0, Failed=1, Blocked=0, Warned=0, Skipped=0  

    I currently have no idea why it fails getting the descriptor after setting the address to 2. Does anyone know how to fix this? or at least what steps or approach should I consider for debugging?

    Friday, September 13, 2013 8:29 AM

All replies