I observed that benchmark firmware always expects isochronous transfer of a size multiple of packet size. Is this just a convention on the firmware or is there something about isochronous that I am missing out?
2013/1/21 Xiaofan Chen <xiaof...@gmail.com>: > On Sun, Jan 20, 2013 at 10:20 PM, Wander Lairson Costa > <wander.lair...@gmail.com> wrote: >> 2013/1/20 Xiaofan Chen <xiaof...@gmail.com>: >>> On Fri, Jan 11, 2013 at 6:37 PM, Wander Lairson Costa >>> <wander.lair...@gmail.com> wrote: >>>>>> [1] https://github.com/walac/isochronous >>>>>> >>>>>> [2] https://github.com/walac/bmfw >>>>> >>>>> Can your test your firmware against the BenchmarkCon host software >>>>> from libusbdotnet? Under Linux, libusbdotnet will use libusb-1.0 >>>>> API so it indirectly tests the libusbx (assume you use libusbx >>>>> as the libusb-1.0 API provider). >>>> >>>> I guess so. Probably I will have to change the code to match my >>>> endpoints (they are in alternate setting 2). I will test and report >>>> the results. >>> >>> I just built your test firmware with a PIC18F87J50 USB PIM >>> with Microchip MPLAB 8.89 and MPLAB C18 3.44. Then I tested >>> it with libusbK 3.0.5.16 under Windows with libusbK.sys >>> driver, it seems to work. But this test does not involve >>> libusbx since libusbx does not suppport isoc transfer under >>> Windows as of now. >> >> Actually, the tests were done with bulk transfer, which works just >> fine. Isochronous endpoints are in the alternate setting 2. If you >> pass the argument 'altf=2' to the benchmark app, the error should >> occur. > > You are absolutely right. I got the same problem with libusbK's > kbench. > > C:\libusbK-dev-kit>kbench list altf=2 > device-count=1 > 1. Benchmark Device (USB\VID_04D8&PID_FA2E\LUSBW1) [libusbK] > Select device (1-1) :1 > > opened Benchmark Device (USB\VID_04D8&PID_FA2E\LUSBW1).. > Loop Test Information > Driver : libusbK > Vid / Pid : 04D8h / FA2Eh > DevicePath : > \\?\usb#vid_04d8&pid_fa2e#lusbw1#{77360352-3618-7749-a > 71d-1bb42062794e} > Device Speed : Low/Full > Interface # : 00h > Alt Interface # : 02h > Num Endpoints : 2 > Priority : 0 > Read Size : 4096 > Write Size : 4096 > Buffer Count : 2 > Display Refresh : 1000 (ms) > Transfer Timeout: 5000 (ms) > Retry Count : 0 > Verify Data : Off > > Isochronous Read (Ep81h) max packet size: 32 > Isochronous Write (Ep01h) max packet size: 32 > > 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.. > Error:[WinError] A device attached to the system is not functioning. > > Error:[TransferThreadProc] failed reading! 1 of 1 ret=-31 > Error:[WinError] The I/O operation has been aborted because of either a > thread e > xit or an application request. > > Error:[TransferThreadProc] failed writing! 1 of 1 ret=-995 > stopped Ep81h thread. ExitCode=0 > waiting for Ep01h thread.. > stopped Ep01h thread. ExitCode=0 > Loop Test Information > Driver : libusbK > Vid / Pid : 04D8h / FA2Eh > DevicePath : > \\?\usb#vid_04d8&pid_fa2e#lusbw1#{77360352-3618-7749-a > 71d-1bb42062794e} > Device Speed : Low/Full > Interface # : 00h > Alt Interface # : 02h > Num Endpoints : 2 > Priority : 0 > Read Size : 4096 > Write Size : 4096 > Buffer Count : 2 > Display Refresh : 1000 (ms) > Transfer Timeout: 5000 (ms) > Retry Count : 0 > Verify Data : Off > > Isochronous Read (Ep81h) max packet size: 32 > Isochronous Write (Ep01h) max packet size: 32 > Total Bytes : 16384 > Total Transfers : 4 > Other Errors : 1 > Avg. Bytes/sec : 31813.59 > Elapsed Time : 0.52 seconds > > Press any key to exit.. > > -- > Xiaofan > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > _______________________________________________ > libusbx-devel mailing list > libusbx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libusbx-devel -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel