Get Serial Number

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?

Hi Steven,

For pass test “USB Serial Number (A)” you need to plug 2 device

Regards,

Moulefrite

Thanks,

For “USB Enumeration Stress Test” : Test setup doesnot tell about connecting 2 devices.

Yes, buf in case of USB Serial number, it says to use 2 devices.

Please correct if I am wrong.

Hi deMarsKamel,

Agreed, Some of my devices are not having serial number,

how to skip this in DTM and pass the tests?

I believe the WHQL requirements state you need a serial number, so go
back and redesign your hardware to pass the tests.

Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

xxxxx@gmail.com” wrote in message
news:xxxxx@ntdev:

> Hi deMarsKamel,
>
> Agreed, Some of my devices are not having serial number,
>
> how to skip this in DTM and pass the tests?

Thanks Don Burn,

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?

Awaiting for updates

xxxxx@gmail.com wrote:

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.

Thanks,

I will check and update.