Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kBench test with Cypress CyStream example #57

Open
mcuee opened this issue May 27, 2024 · 5 comments
Open

kBench test with Cypress CyStream example #57

mcuee opened this issue May 27, 2024 · 5 comments
Labels
WinUSB Specific to WinUSB backend of libusbk.dll

Comments

@mcuee
Copy link
Owner

mcuee commented May 27, 2024

There is an error in the end for ISOC loop test, using WinUSB driver.
OS: Windows 10 Enterprise 22H2
Dell laptop with Intel Core i7-9850H.

C:\libusbK-3.1.0.0-bin\bin\exe\amd64> .\kBench.exe notestselect list intf=0 altf=6 loop buffercount=3 buffersize=16384 mode=async
device-count=3
1. USBasp (Composite Parent) (USB\VID_16C0&PID_05DC\0001) [libusbK]
2. SMSC-Microchip WinUSB USB5734 Device (USB\VID_0424&PID_2740\D&127B8A6A&0&5) [WinUSB]
3. CY-Stream (USB\VID_04B4&PID_00F1\6&E51CBBB&1&2) [WinUSB]
Select device (1-3) :3

opened CY-Stream (USB\VID_04B4&PID_00F1\6&E51CBBB&1&2)..
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#6&e51cbbb&1&2#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
Isochronous Write (Ep06h) Maximum Packet Size: 1024

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..
Avg. Bytes/s: 16483801.02 Transfers: 991 Bytes/s: 16483801.02 ISO-Packets (Total/Good/Bad):15952/15952/0
Avg. Bytes/s: 16400384.00 Transfers: 2002 Bytes/s: 16319432.51 ISO-Packets (Total/Good/Bad):32128/32128/0
Avg. Bytes/s: 16367702.92 Transfers: 3013 Bytes/s: 16303370.08 ISO-Packets (Total/Good/Bad):48304/48304/0
Avg. Bytes/s: 16420717.13 Transfers: 4025 Bytes/s: 16580608.00 ISO-Packets (Total/Good/Bad):64496/64496/0
Avg. Bytes/s: 16387255.96 Transfers: 5033 Bytes/s: 16254992.13 ISO-Packets (Total/Good/Bad):80624/80624/0
Avg. Bytes/s: 16408445.62 Transfers: 6041 Bytes/s: 16515072.00 ISO-Packets (Total/Good/Bad):96752/96752/0
Avg. Bytes/s: 16402599.69 Transfers: 7055 Bytes/s: 16367858.13 ISO-Packets (Total/Good/Bad):112976/112976/0
Avg. Bytes/s: 16386032.00 Transfers: 8064 Bytes/s: 16271118.11 ISO-Packets (Total/Good/Bad):129120/129120/0
Avg. Bytes/s: 16391231.16 Transfers: 9067 Bytes/s: 16433152.00 ISO-Packets (Total/Good/Bad):145168/145168/0
Avg. Bytes/s: 16382374.28 Transfers: 10077 Bytes/s: 16303290.64 ISO-Packets (Total/Good/Bad):161328/161328/0
Avg. Bytes/s: 16395831.74 Transfers: 11086 Bytes/s: 16531456.00 ISO-Packets (Total/Good/Bad):177472/177472/0
Avg. Bytes/s: 16388064.16 Transfers: 12097 Bytes/s: 16303370.08 ISO-Packets (Total/Good/Bad):193648/193648/0
Avg. Bytes/s: 16392758.82 Transfers: 13101 Bytes/s: 16449536.00 ISO-Packets (Total/Good/Bad):209712/209712/0
Avg. Bytes/s: 16380516.51 Transfers: 14107 Bytes/s: 16222740.16 ISO-Packets (Total/Good/Bad):225808/225808/0
Avg. Bytes/s: 16394843.15 Transfers: 15120 Bytes/s: 16596992.00 ISO-Packets (Total/Good/Bad):242016/242016/0
Avg. Bytes/s: 16391112.43 Transfers: 16132 Bytes/s: 16335574.38 ISO-Packets (Total/Good/Bad):258208/258208/0
Avg. Bytes/s: 16384000.00 Transfers: 17141 Bytes/s: 16271118.11 ISO-Packets (Total/Good/Bad):274352/274352/0
Avg. Bytes/s: 16393934.62 Transfers: 18152 Bytes/s: 16564224.00 ISO-Packets (Total/Good/Bad):290528/290528/0
Avg. Bytes/s: 16390841.99 Transfers: 19165 Bytes/s: 16335622.05 ISO-Packets (Total/Good/Bad):306736/306736/0
Avg. Bytes/s: 16388061.07 Transfers: 20177 Bytes/s: 16335574.38 ISO-Packets (Total/Good/Bad):322928/322928/0
Avg. Bytes/s: 16381680.20 Transfers: 21185 Bytes/s: 16254992.13 ISO-Packets (Total/Good/Bad):339056/339056/0
Avg. Bytes/s: 16392122.59 Transfers: 22199 Bytes/s: 16613376.00 ISO-Packets (Total/Good/Bad):355280/355280/0
Avg. Bytes/s: 16390355.04 Transfers: 23212 Bytes/s: 16351716.26 ISO-Packets (Total/Good/Bad):371488/371488/0
Avg. Bytes/s: 16389411.95 Transfers: 24227 Bytes/s: 16367874.02 ISO-Packets (Total/Good/Bad):387728/387728/0
Avg. Bytes/s: 16387246.28 Transfers: 25240 Bytes/s: 16335622.05 ISO-Packets (Total/Good/Bad):403936/403936/0
Avg. Bytes/s: 16387744.91 Transfers: 26256 Bytes/s: 16400141.87 ISO-Packets (Total/Good/Bad):420192/420192/0
Avg. Bytes/s: 16388208.73 Transfers: 27257 Bytes/s: 16400384.00 ISO-Packets (Total/Good/Bad):436208/436208/0
Avg. Bytes/s: 16385159.27 Transfers: 28268 Bytes/s: 16303370.08 ISO-Packets (Total/Good/Bad):452384/452384/0
Avg. Bytes/s: 16383440.48 Transfers: 29281 Bytes/s: 16335622.05 ISO-Packets (Total/Good/Bad):468592/468592/0
Avg. Bytes/s: 16387787.33 Transfers: 30289 Bytes/s: 16515072.00 ISO-Packets (Total/Good/Bad):484720/484720/0
Avg. Bytes/s: 16388188.01 Transfers: 31305 Bytes/s: 16400141.87 ISO-Packets (Total/Good/Bad):500976/500976/0
Avg. Bytes/s: 16387042.24 Transfers: 32319 Bytes/s: 16351748.03 ISO-Packets (Total/Good/Bad):517200/517200/0
Avg. Bytes/s: 16385474.80 Transfers: 33331 Bytes/s: 16335574.38 ISO-Packets (Total/Good/Bad):533392/533392/0
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed writing! 1 of 1 ret=-31
waiting for Ep82h thread..
stopped Ep82h thread.   ExitCode=0
stopped Ep06h thread.   ExitCode=0
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#6&e51cbbb&1&2#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
        Total Bytes     : 281329664
        Total Transfers : 17171
        Avg. Bytes/sec  : 8191522.94
        Elapsed Time    : 34.34 seconds

Isochronous Write (Ep06h) Maximum Packet Size: 1024
        Total Bytes     : 276545536
        Total Transfers : 16879
        Other Errors    : 1
        Avg. Bytes/sec  : 8193941.81
        Elapsed Time    : 33.75 seconds

Press any key to exit..
@mcuee
Copy link
Owner Author

mcuee commented May 27, 2024

Adding retry does not seem to help.

C:\libusbK-3.1.0.0-bin\bin\exe\amd64> .\kBench.exe notestselect list intf=0 altf=6 loop buffercount=3 buffersize=16384 mode=async retry=3
device-count=3
1. USBasp (Composite Parent) (USB\VID_16C0&PID_05DC\0001) [libusbK]
2. SMSC-Microchip WinUSB USB5734 Device (USB\VID_0424&PID_2740\D&127B8A6A&0&5) [WinUSB]
3. CY-Stream (USB\VID_04B4&PID_00F1\6&E51CBBB&1&2) [WinUSB]
Select device (1-3) :3

opened CY-Stream (USB\VID_04B4&PID_00F1\6&E51CBBB&1&2)..
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#6&e51cbbb&1&2#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 3
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
Isochronous Write (Ep06h) Maximum Packet Size: 1024

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..
Avg. Bytes/s: 16376681.26 Transfers: 992 Bytes/s: 16376681.26 ISO-Packets (Total/Good/Bad):15968/15968/0
Avg. Bytes/s: 16392192.00 Transfers: 2001 Bytes/s: 16409181.32 ISO-Packets (Total/Good/Bad):32112/32112/0
Avg. Bytes/s: 16405903.28 Transfers: 3012 Bytes/s: 16433668.03 ISO-Packets (Total/Good/Bad):48288/48288/0
Avg. Bytes/s: 16392159.36 Transfers: 4018 Bytes/s: 16352522.08 ISO-Packets (Total/Good/Bad):64384/64384/0
Avg. Bytes/s: 16423196.17 Transfers: 5028 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):80544/80544/0
Avg. Bytes/s: 16400297.08 Transfers: 6038 Bytes/s: 16287244.09 ISO-Packets (Total/Good/Bad):96704/96704/0
Avg. Bytes/s: 16386324.96 Transfers: 7048 Bytes/s: 16303290.64 ISO-Packets (Total/Good/Bad):112864/112864/0
Avg. Bytes/s: 16406396.42 Transfers: 8058 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):129024/129024/0
Avg. Bytes/s: 16394867.52 Transfers: 9061 Bytes/s: 16303628.09 ISO-Packets (Total/Good/Bad):145072/145072/0
Avg. Bytes/s: 16388884.43 Transfers: 10066 Bytes/s: 16336138.08 ISO-Packets (Total/Good/Bad):161152/161152/0
Avg. Bytes/s: 16379568.85 Transfers: 11068 Bytes/s: 16287502.11 ISO-Packets (Total/Good/Bad):177184/177184/0
Avg. Bytes/s: 16401656.64 Transfers: 12076 Bytes/s: 16649340.88 ISO-Packets (Total/Good/Bad):193312/193312/0
Avg. Bytes/s: 16390263.48 Transfers: 13084 Bytes/s: 16254992.13 ISO-Packets (Total/Good/Bad):209440/209440/0
Avg. Bytes/s: 16395637.19 Transfers: 14089 Bytes/s: 16465920.00 ISO-Packets (Total/Good/Bad):225520/225520/0
Avg. Bytes/s: 16388341.86 Transfers: 15098 Bytes/s: 16287148.77 ISO-Packets (Total/Good/Bad):241664/241664/0
Avg. Bytes/s: 16398252.27 Transfers: 16108 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):257824/257824/0
Avg. Bytes/s: 16391660.55 Transfers: 17118 Bytes/s: 16287244.09 ISO-Packets (Total/Good/Bad):273984/273984/0
Avg. Bytes/s: 16384903.94 Transfers: 18126 Bytes/s: 16271006.90 ISO-Packets (Total/Good/Bad):290112/290112/0
Avg. Bytes/s: 16386571.83 Transfers: 19136 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):306272/306272/0
Avg. Bytes/s: 16388067.33 Transfers: 20146 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):322432/322432/0
Avg. Bytes/s: 16384000.00 Transfers: 21157 Bytes/s: 16303370.08 ISO-Packets (Total/Good/Bad):338608/338608/0
Avg. Bytes/s: 16385849.63 Transfers: 22167 Bytes/s: 16425565.32 ISO-Packets (Total/Good/Bad):354768/354768/0
Avg. Bytes/s: 16385414.12 Transfers: 23174 Bytes/s: 16376655.45 ISO-Packets (Total/Good/Bad):370880/370880/0
Avg. Bytes/s: 16392133.71 Transfers: 24184 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):387040/387040/0
Avg. Bytes/s: 16386601.87 Transfers: 25192 Bytes/s: 16254992.13 ISO-Packets (Total/Good/Bad):403168/403168/0
Avg. Bytes/s: 16383374.75 Transfers: 26203 Bytes/s: 16303370.08 ISO-Packets (Total/Good/Bad):419344/419344/0
Avg. Bytes/s: 16384904.23 Transfers: 27213 Bytes/s: 16425565.32 ISO-Packets (Total/Good/Bad):435504/435504/0
Avg. Bytes/s: 16386322.41 Transfers: 28223 Bytes/s: 16425565.32 ISO-Packets (Total/Good/Bad):451664/451664/0
Avg. Bytes/s: 16387364.54 Transfers: 29233 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):467824/467824/0
Avg. Bytes/s: 16384271.75 Transfers: 30243 Bytes/s: 16295267.37 ISO-Packets (Total/Good/Bad):483984/483984/0
Avg. Bytes/s: 16384000.00 Transfers: 31250 Bytes/s: 16376655.45 ISO-Packets (Total/Good/Bad):500096/500096/0
Avg. Bytes/s: 16386540.16 Transfers: 32255 Bytes/s: 16465920.00 ISO-Packets (Total/Good/Bad):516176/516176/0
Avg. Bytes/s: 16389420.27 Transfers: 33261 Bytes/s: 16482304.00 ISO-Packets (Total/Good/Bad):532272/532272/0
Avg. Bytes/s: 16386390.71 Transfers: 34271 Bytes/s: 16287244.09 ISO-Packets (Total/Good/Bad):548432/548432/0
Avg. Bytes/s: 16383535.63 Transfers: 35281 Bytes/s: 16287244.09 ISO-Packets (Total/Good/Bad):564592/564592/0
Avg. Bytes/s: 16388064.16 Transfers: 36291 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):580752/580752/0
Avg. Bytes/s: 16384439.28 Transfers: 37298 Bytes/s: 16254865.02 ISO-Packets (Total/Good/Bad):596864/596864/0
Avg. Bytes/s: 16385283.89 Transfers: 38308 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):613024/613024/0
Avg. Bytes/s: 16386083.79 Transfers: 39318 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):629184/629184/0
Avg. Bytes/s: 16386032.34 Transfers: 40326 Bytes/s: 16385032.06 ISO-Packets (Total/Good/Bad):645312/645312/0
Avg. Bytes/s: 16384396.43 Transfers: 41330 Bytes/s: 16320012.09 ISO-Packets (Total/Good/Bad):661392/661392/0
Avg. Bytes/s: 16385355.00 Transfers: 42340 Bytes/s: 16409181.32 ISO-Packets (Total/Good/Bad):677536/677536/0
Avg. Bytes/s: 16386079.85 Transfers: 43342 Bytes/s: 16416768.00 ISO-Packets (Total/Good/Bad):693568/693568/0
Avg. Bytes/s: 16384000.53 Transfers: 44352 Bytes/s: 16295267.37 ISO-Packets (Total/Good/Bad):709728/709728/0
Avg. Bytes/s: 16384722.40 Transfers: 45362 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):725888/725888/0
Avg. Bytes/s: 16385590.51 Transfers: 46372 Bytes/s: 16425565.32 ISO-Packets (Total/Good/Bad):742048/742048/0
Avg. Bytes/s: 16385037.51 Transfers: 47378 Bytes/s: 16360513.58 ISO-Packets (Total/Good/Bad):758144/758144/0
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed writing! 1 of 4 ret=-31
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed writing! 2 of 4 ret=-31
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed writing! 3 of 4 ret=-31
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed writing! 4 of 4 ret=-31
waiting for Ep82h thread..
stopped Ep82h thread.   ExitCode=0
stopped Ep06h thread.   ExitCode=0
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#6&e51cbbb&1&2#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 3
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
        Total Bytes     : 396410880
        Total Transfers : 24195
        Avg. Bytes/sec  : 8191830.71
        Elapsed Time    : 48.39 seconds

Isochronous Write (Ep06h) Maximum Packet Size: 1024
        Total Bytes     : 392314880
        Total Transfers : 23948
        Other Errors    : 4
        Avg. Bytes/sec  : 8191828.94
        Elapsed Time    : 47.89 seconds

Press any key to exit..

@mcuee
Copy link
Owner Author

mcuee commented May 27, 2024

No issues with bulk transfer.

C:\libusbK-3.1.0.0-bin\bin\exe\amd64> .\kBench.exe notestselect list intf=0 altf=2 loop buffercount=3 buffersize=16384 mode=async
device-count=2
1. SMSC-Microchip WinUSB USB5734 Device (USB\VID_0424&PID_2740\D&127B8A6A&0&5) [WinUSB]
2. CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1) [WinUSB]
Select device (1-2) :2

opened CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1)..
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#5&e9f3e45&0&1#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 02h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Read (Ep82h) Maximum Packet Size: 512
Bulk Write (Ep06h) Maximum Packet Size: 512

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..
Avg. Bytes/s: 40779776.00 Transfers: 2489 Bytes/s: 40779776.00
Avg. Bytes/s: 39976960.00 Transfers: 4880 Bytes/s: 39174144.00
Avg. Bytes/s: 40378737.40 Transfers: 7433 Bytes/s: 41169637.80
Avg. Bytes/s: 40278693.23 Transfers: 9873 Bytes/s: 39976960.00
Avg. Bytes/s: 40574091.83 Transfers: 12459 Bytes/s: 41742880.79
Avg. Bytes/s: 40492621.13 Transfers: 14945 Bytes/s: 40089196.85
Avg. Bytes/s: 40372947.35 Transfers: 17365 Bytes/s: 39649280.00
Avg. Bytes/s: 40306712.64 Transfers: 19836 Bytes/s: 39847307.09
Avg. Bytes/s: 40141975.06 Transfers: 22205 Bytes/s: 38813696.00
Avg. Bytes/s: 40035485.23 Transfers: 24608 Bytes/s: 39079229.79
Avg. Bytes/s: 39977965.70 Transfers: 27031 Bytes/s: 39405457.02
Avg. Bytes/s: 40041498.93 Transfers: 29557 Bytes/s: 40734236.22
Avg. Bytes/s: 40590675.72 Transfers: 32477 Bytes/s: 47134266.01
Avg. Bytes/s: 41176572.12 Transfers: 35459 Bytes/s: 48857088.00
Avg. Bytes/s: 41395381.30 Transfers: 38174 Bytes/s: 44482560.00
Avg. Bytes/s: 41286663.94 Transfers: 40634 Bytes/s: 39669921.26
Avg. Bytes/s: 41122014.35 Transfers: 43022 Bytes/s: 38508850.39
Avg. Bytes/s: 41082547.07 Transfers: 45507 Bytes/s: 40413274.80
Avg. Bytes/s: 40957434.12 Transfers: 47887 Bytes/s: 38706029.71
Avg. Bytes/s: 41003081.56 Transfers: 50443 Bytes/s: 41877504.00
Avg. Bytes/s: 41035837.52 Transfers: 53028 Bytes/s: 41685669.29
Avg. Bytes/s: 40912002.88 Transfers: 55405 Bytes/s: 38331464.57
Avg. Bytes/s: 40875211.32 Transfers: 57850 Bytes/s: 40058880.00
Avg. Bytes/s: 40751840.68 Transfers: 60200 Bytes/s: 37933399.01
Avg. Bytes/s: 40682266.55 Transfers: 62620 Bytes/s: 39024881.89
Avg. Bytes/s: 40654116.18 Transfers: 65058 Bytes/s: 39944192.00
Avg. Bytes/s: 40874826.55 Transfers: 67906 Bytes/s: 46661632.00
Avg. Bytes/s: 41148405.26 Transfers: 70872 Bytes/s: 48594944.00
Avg. Bytes/s: 41063625.30 Transfers: 73310 Bytes/s: 38743154.22
Avg. Bytes/s: 41159365.83 Transfers: 75973 Bytes/s: 43985179.06
Avg. Bytes/s: 41283844.18 Transfers: 78783 Bytes/s: 44963494.35
Avg. Bytes/s: 41248561.61 Transfers: 81193 Bytes/s: 40127479.67
Avg. Bytes/s: 41176706.55 Transfers: 83605 Bytes/s: 38895874.02
Avg. Bytes/s: 41141853.27 Transfers: 86083 Bytes/s: 39999558.62
Avg. Bytes/s: 41163633.23 Transfers: 88641 Bytes/s: 41910272.00
Avg. Bytes/s: 41095641.84 Transfers: 91043 Bytes/s: 38734614.17
Avg. Bytes/s: 41004129.18 Transfers: 93383 Bytes/s: 37734803.15
Avg. Bytes/s: 41056004.18 Transfers: 96007 Bytes/s: 42991616.00
Avg. Bytes/s: 41084146.46 Transfers: 98618 Bytes/s: 42146427.59
Avg. Bytes/s: 41069936.55 Transfers: 101053 Bytes/s: 40502578.68
Avg. Bytes/s: 41013498.45 Transfers: 103495 Bytes/s: 38806719.69
Avg. Bytes/s: 41028898.88 Transfers: 105998 Bytes/s: 41675967.48
Avg. Bytes/s: 41056425.41 Transfers: 108575 Bytes/s: 42221568.00
Avg. Bytes/s: 41061975.10 Transfers: 111136 Bytes/s: 41298645.67
Avg. Bytes/s: 41079237.83 Transfers: 113690 Bytes/s: 41844736.00
Avg. Bytes/s: 41061960.44 Transfers: 116186 Bytes/s: 40290112.32
Avg. Bytes/s: 41183658.78 Transfers: 119044 Bytes/s: 46825472.00
Avg. Bytes/s: 41237215.59 Transfers: 121756 Bytes/s: 43733669.29
Avg. Bytes/s: 41210946.45 Transfers: 124234 Bytes/s: 39960188.98
waiting for Ep82h thread..
stopped Ep82h thread.   ExitCode=0
stopped Ep06h thread.   ExitCode=0
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#5&e9f3e45&0&1#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 02h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Read (Ep82h) Maximum Packet Size: 512
        Total Bytes     : 1018314752
        Total Transfers : 62153
        Avg. Bytes/sec  : 20617415.16
        Elapsed Time    : 49.39 seconds

Bulk Write (Ep06h) Maximum Packet Size: 512
        Total Bytes     : 1017167872
        Total Transfers : 62083
        Avg. Bytes/sec  : 20594194.73
        Elapsed Time    : 49.39 seconds

Press any key to exit..

@mcuee
Copy link
Owner Author

mcuee commented May 27, 2024

Sometimes isoc transfer loop test will fail by itself.

C:\libusbK-3.1.0.0-bin\bin\exe\amd64> .\kBench.exe notestselect list intf=0 altf=6 loop buffercount=3 buffersize=16384 mode=async retry=3
device-count=2
1. SMSC-Microchip WinUSB USB5734 Device (USB\VID_0424&PID_2740\D&127B8A6A&0&5) [WinUSB]
2. CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1) [WinUSB]
Select device (1-2) :2

opened CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1)..
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#5&e9f3e45&0&1#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 3
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
Isochronous Write (Ep06h) Maximum Packet Size: 1024

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..
Avg. Bytes/s: 16533853.66 Transfers: 993 Bytes/s: 16533853.66 ISO-Packets (Total/Good/Bad):15984/15984/0
Avg. Bytes/s: 16408576.00 Transfers: 2003 Bytes/s: 16287244.09 ISO-Packets (Total/Good/Bad):32144/32144/0
Avg. Bytes/s: 16373135.28 Transfers: 3014 Bytes/s: 16303370.08 ISO-Packets (Total/Good/Bad):48320/48320/0
Avg. Bytes/s: 16416637.45 Transfers: 4024 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):64480/64480/0
Avg. Bytes/s: 16393769.83 Transfers: 5034 Bytes/s: 16303290.64 ISO-Packets (Total/Good/Bad):80640/80640/0
Avg. Bytes/s: 16375871.67 Transfers: 6044 Bytes/s: 16287244.09 ISO-Packets (Total/Good/Bad):96800/96800/0
Avg. Bytes/s: 16400274.73 Transfers: 7054 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):112960/112960/0
Avg. Bytes/s: 16377904.01 Transfers: 8060 Bytes/s: 16222740.16 ISO-Packets (Total/Good/Bad):129056/129056/0
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed reading! 1 of 4 ret=-31
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed reading! 2 of 4 ret=-31
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed reading! 3 of 4 ret=-31
Error:[WinError] A device attached to the system is not functioning.

Error:[TransferThreadProc] failed reading! 4 of 4 ret=-31
Error:[WinError] The parameter is incorrect.

Error:[TransferThreadProc] failed writing! 1 of 4 ret=-87
Error:[WinError] The parameter is incorrect.

Error:[TransferThreadProc] failed writing! 2 of 4 ret=-87
Error:[WinError] The parameter is incorrect.

Error:[TransferThreadProc] failed writing! 3 of 4 ret=-87
Error:[WinError] The parameter is incorrect.

Error:[TransferThreadProc] failed writing! 4 of 4 ret=-87
stopped Ep82h thread.   ExitCode=0
stopped Ep06h thread.   ExitCode=0
Loop Test Information
        Driver          : WinUSB
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#5&e9f3e45&0&1#{97a0090b-0329-07f7-c2bd-7ba7a223756d}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 3
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
        Total Bytes     : 68141056
        Total Transfers : 4162
        Other Errors    : 4
        Avg. Bytes/sec  : 8182163.30
        Elapsed Time    : 8.33 seconds

Isochronous Write (Ep06h) Maximum Packet Size: 1024
        Total Bytes     : 68157440
        Total Transfers : 4163
        Other Errors    : 4
        Avg. Bytes/sec  : 8168437.20
        Elapsed Time    : 8.34 seconds

Press any key to exit..

@mcuee
Copy link
Owner Author

mcuee commented May 27, 2024

No issues with libusbK driver and isoc loop test.

C:\libusbK-3.1.0.0-bin\bin\exe\amd64> .\kBench.exe notestselect list intf=0 altf=6 loop buffercount=3 buffersize=16384 mode=async retry=3
device-count=2
1. SMSC-Microchip WinUSB USB5734 Device (USB\VID_0424&PID_2740\D&127B8A6A&0&5) [WinUSB]
2. CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1) [libusbK]
Select device (1-2) :2

opened CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1)..
Loop Test Information
        Driver          : libusbK
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#5&e9f3e45&0&1#{a2c85411-51a6-a9d6-3dc5-145f07e6714b}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 3
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
Isochronous Write (Ep06h) Maximum Packet Size: 1024

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..
Avg. Bytes/s: 16417267.01 Transfers: 987 Bytes/s: 16417267.01 ISO-Packets (Total/Good/Bad):15888/15888/0
Avg. Bytes/s: 16450031.23 Transfers: 1993 Bytes/s: 16482304.00 ISO-Packets (Total/Good/Bad):31984/31984/0
Avg. Bytes/s: 16455354.10 Transfers: 2998 Bytes/s: 16465920.00 ISO-Packets (Total/Good/Bad):48064/48064/0
Avg. Bytes/s: 16414835.63 Transfers: 4000 Bytes/s: 16295461.83 ISO-Packets (Total/Good/Bad):64096/64096/0
Avg. Bytes/s: 16390584.96 Transfers: 5010 Bytes/s: 16295267.37 ISO-Packets (Total/Good/Bad):80256/80256/0
Avg. Bytes/s: 16424960.00 Transfers: 6015 Bytes/s: 16599656.07 ISO-Packets (Total/Good/Bad):96336/96336/0
Avg. Bytes/s: 16402724.57 Transfers: 7016 Bytes/s: 16271118.11 ISO-Packets (Total/Good/Bad):112352/112352/0
Avg. Bytes/s: 16395113.77 Transfers: 8022 Bytes/s: 16343306.08 ISO-Packets (Total/Good/Bad):128448/128439/9
Avg. Bytes/s: 16384804.69 Transfers: 9025 Bytes/s: 16303628.09 ISO-Packets (Total/Good/Bad):144496/144487/9
Avg. Bytes/s: 16402709.27 Transfers: 10028 Bytes/s: 16566621.66 ISO-Packets (Total/Good/Bad):160544/160535/9
Avg. Bytes/s: 16392075.42 Transfers: 11038 Bytes/s: 16287244.09 ISO-Packets (Total/Good/Bad):176704/176695/9
Avg. Bytes/s: 16392765.96 Transfers: 12039 Bytes/s: 16400384.00 ISO-Packets (Total/Good/Bad):192720/192711/9
Avg. Bytes/s: 16383927.30 Transfers: 13040 Bytes/s: 16279077.83 ISO-Packets (Total/Good/Bad):208736/208727/9
Avg. Bytes/s: 16386843.03 Transfers: 14050 Bytes/s: 16425565.32 ISO-Packets (Total/Good/Bad):224896/224887/9
Avg. Bytes/s: 16394276.07 Transfers: 15057 Bytes/s: 16498688.00 ISO-Packets (Total/Good/Bad):241008/240999/9
Avg. Bytes/s: 16388526.18 Transfers: 16068 Bytes/s: 16303370.08 ISO-Packets (Total/Good/Bad):257184/257175/9
Avg. Bytes/s: 16389221.57 Transfers: 17077 Bytes/s: 16401158.05 ISO-Packets (Total/Good/Bad):273328/273319/9
Avg. Bytes/s: 16388021.46 Transfers: 18084 Bytes/s: 16368648.06 ISO-Packets (Total/Good/Bad):289440/289431/9
Avg. Bytes/s: 16388669.43 Transfers: 19085 Bytes/s: 16400384.00 ISO-Packets (Total/Good/Bad):305456/305447/9
Avg. Bytes/s: 16390068.83 Transfers: 20087 Bytes/s: 16416768.00 ISO-Packets (Total/Good/Bad):321488/321479/9
Avg. Bytes/s: 16382786.38 Transfers: 21093 Bytes/s: 16238723.15 ISO-Packets (Total/Good/Bad):337584/337575/9
Avg. Bytes/s: 16380619.09 Transfers: 22106 Bytes/s: 16335622.05 ISO-Packets (Total/Good/Bad):353792/353783/9
Avg. Bytes/s: 16387854.95 Transfers: 23116 Bytes/s: 16547840.00 ISO-Packets (Total/Good/Bad):369952/369943/9
Avg. Bytes/s: 16387692.77 Transfers: 24131 Bytes/s: 16384000.00 ISO-Packets (Total/Good/Bad):386192/386183/9
Avg. Bytes/s: 16385468.57 Transfers: 25136 Bytes/s: 16333114.46 ISO-Packets (Total/Good/Bad):402272/402260/12
Avg. Bytes/s: 16380905.40 Transfers: 26137 Bytes/s: 16268046.11 ISO-Packets (Total/Good/Bad):418288/418273/15
Avg. Bytes/s: 16388870.05 Transfers: 27142 Bytes/s: 16599656.07 ISO-Packets (Total/Good/Bad):434368/434353/15
Avg. Bytes/s: 16389858.50 Transfers: 28152 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):450528/450513/15
Avg. Bytes/s: 16380103.66 Transfers: 29166 Bytes/s: 16113846.75 ISO-Packets (Total/Good/Bad):466752/466737/15
Avg. Bytes/s: 16382404.88 Transfers: 30170 Bytes/s: 16449536.00 ISO-Packets (Total/Good/Bad):482816/482801/15
Avg. Bytes/s: 16386135.25 Transfers: 31177 Bytes/s: 16498688.00 ISO-Packets (Total/Good/Bad):498928/498913/15
Avg. Bytes/s: 16390652.24 Transfers: 32186 Bytes/s: 16531456.00 ISO-Packets (Total/Good/Bad):515072/515057/15
Avg. Bytes/s: 16383538.36 Transfers: 33196 Bytes/s: 16160986.39 ISO-Packets (Total/Good/Bad):531232/531217/15
Avg. Bytes/s: 16384987.95 Transfers: 34207 Bytes/s: 16433668.03 ISO-Packets (Total/Good/Bad):547408/547393/15
Avg. Bytes/s: 16389148.51 Transfers: 35216 Bytes/s: 16531456.00 ISO-Packets (Total/Good/Bad):563552/563537/15
Avg. Bytes/s: 16386290.07 Transfers: 36225 Bytes/s: 16287148.77 ISO-Packets (Total/Good/Bad):579696/579681/15
Avg. Bytes/s: 16386668.74 Transfers: 37226 Bytes/s: 16400384.00 ISO-Packets (Total/Good/Bad):595712/595697/15
Avg. Bytes/s: 16387456.37 Transfers: 38236 Bytes/s: 16417542.05 ISO-Packets (Total/Good/Bad):611872/611857/15
Avg. Bytes/s: 16386114.03 Transfers: 39241 Bytes/s: 16336138.08 ISO-Packets (Total/Good/Bad):627952/627937/15
Avg. Bytes/s: 16385450.83 Transfers: 40247 Bytes/s: 16360513.58 ISO-Packets (Total/Good/Bad):644048/644033/15
waiting for Ep82h thread..
stopped Ep82h thread.   ExitCode=0
stopped Ep06h thread.   ExitCode=0
Loop Test Information
        Driver          : libusbK
        Vid / Pid       : 04B4h / 00F1h
        DevicePath      : \\?\usb#vid_04b4&pid_00f1#5&e9f3e45&0&1#{a2c85411-51a6-a9d6-3dc5-145f07e6714b}
        Device Speed    : High
        Interface #     : 00h
        Alt Interface # : 06h
        Num Endpoints   : 2
        Priority        : 0
        Read Size       : 16384
        Write Size      : 16384
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 3
        Verify Data     : Off

Isochronous Read (Ep82h) Maximum Packet Size: 1024
        Total Bytes     : 329696256
        Total Transfers : 20124
        Avg. Bytes/sec  : 8191211.33
        Elapsed Time    : 40.25 seconds

Isochronous Write (Ep06h) Maximum Packet Size: 1024
        Total Bytes     : 329728000
        Total Transfers : 20125
        Avg. Bytes/sec  : 8192000.00
        Elapsed Time    : 40.25 seconds

Press any key to exit..

@mcuee mcuee added the WinUSB Specific to WinUSB backend of libusbk.dll label May 27, 2024
@mcuee
Copy link
Owner Author

mcuee commented May 27, 2024

BTW, libusb0,sys does not seem to work with High speed and SuperSpeed ISOC endpoints.

C:\libusbK-3.1.0.0-bin\bin\exe\amd64> .\kBench.exe notestselect list intf=0 altf=6 loop buffercount=3 buffersize=16384 mode=async retry=3
device-count=2
1. SMSC-Microchip WinUSB USB5734 Device (USB\VID_0424&PID_2740\D&127B8A6A&0&5) [WinUSB]
2. CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1) [libusb0]
Select device (1-2) :2

opened CY-Stream (USB\VID_04B4&PID_00F1\5&E9F3E45&0&1)..
Error:[CreateTransferParam] IsochK_Init failed for isochornous pipe 82
Error:[CreateTransferParam] - ErrorCode = 1
Error:[CreateTransferParam] failed creating transfer param!
Press any key to exit..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WinUSB Specific to WinUSB backend of libusbk.dll
Projects
None yet
Development

No branches or pull requests

1 participant