We are executing DTM for KMDF-USB-Serial driver on Windows 7 (32 and 64).
Here we are supporting various devices with different VID and PID.
For the test: 140. USB Enumeration Stress Test (Auto),
We are getting different errors for different devices:
For VID XXXX, PID YYYY, Error is:
Assertion 9.21.3: Get Serial Number
Error: Request was made for 24 bytes of data. Only 255 bytes of data was returned.
File: d:\5429t\testsrc\driverstest\usb\usbhct\exe\enumtest.cpp Line: 812
Error Type: BOOL
Error Code: 0x0
Error Text: Error 0x00000000
…
AND for For VID ZZZZ, PID VVVV, Error is:
Clear C_PORT_RESET
Error: Data received from request does not match previous data.
File: d:\5429t\testsrc\driverstest\usb\usbhct\exe\enumtest.cpp Line: 635
Error Type: BOOL
Error Code: 0x0
Error Text: Error 0x00000000
From the above, 2nd device (i.e. VID ZZZZ and PID VVVV) already passed the “Get Serial Number” sub-test. as there is no error.
However this device is getting failed at the “C_PORT_RESET” which was suceessfull first 3 times.
Is it problem with my Hub used? or the driver?
Also for the device (VID XXXX, PID YYYY), if serial number fails mean: it is not having any serial number.
How can I skip this sub-step and configure the DTM not to use Serial number?
Just to re-confirm (as I need to communicate to hardware team back)…
I am using same driver for above stated two different VID and PIDs.
For device with VID XXXX, PID YYYY: below is the sub-result:
Assertion 9.21.3: Get Serial Number
Error: Request was made for 24 bytes of data. Only 255 bytes of data was
returned.
File: d:\5429t\testsrc\driverstest\usb\usbhct\exe\enumtest.cpp Line: 812
Error Type: BOOL
Error Code: 0x0
Error Text: Error 0x00000000
For 2nd device, “Assertion 9.21.3: Get Serial Number” is not showing this error.
Is this the only way to confirm (or acknowledge) that the device is not having serial number?
Just to re-confirm (as I need to communicate to hardware team back)…
I am using same driver for above stated two different VID and PIDs.
For device with VID XXXX, PID YYYY: below is the sub-result:
Assertion 9.21.3: Get Serial Number
Error: Request was made for 24 bytes of data. Only 255 bytes of data was
returned.
File: d:\5429t\testsrc\driverstest\usb\usbhct\exe\enumtest.cpp Line: 812
Error Type: BOOL
Error Code: 0x0
Error Text: Error 0x00000000
For 2nd device, “Assertion 9.21.3: Get Serial Number” is not showing this error.
Is this the only way to confirm (or acknowledge) that the device is not having serial number?
Did you read the error? The implication is that it asked your device
for a serial number, and your device responded with something. That’s
not the correct protocol. If you don’t have a serial number, your
device is supposed to respond by stalling the control pipe. This is all
described very carefully in the USB specification.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.