On Sun, Jan 20, 2013 at 11:37 AM, Xiaofan Chen <xiaof...@gmail.com> wrote: > 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. >
Then I tried to use libusbdotnet under Linux to see if the firmware works under Linux (libusbdotnet relies on libusb-1.0 or libusbx under Linux). And it seems to work. And I tried your isoc program and it has the problem you mentioned that the read does not work. So from my test results, it seems that your host program needs some modification to get it work with the firmware. mcuee@ubuntu:~/Desktop/build/libusbdotnet$ sudo mono Bm-libusbk.exe list mode=async buffercount=2 verify LibUsbDotNet USB Benchmark v2.2.9.110 Copyright (c) 2010 Travis Robinson. <libusbdot...@gmail.com> website: http://sourceforge.net/projects/libusbdotnet 1. 0402:9665 XPA3H1NVA - 1.3M WebCam 2. 046D:C52F Logitech - USB Receiver 3. 04D8:FA2E Travis Robinson - Benchmark Device 4. 046D:C058 Logitech - USB Optical Mouse 5. 0CF3:3005 6. 1D6B:0002 Linux 3.5.0-22-generic ehci_hcd - EHCI Host Controller 7. 1D6B:0001 Linux 3.5.0-22-generic uhci_hcd - UHCI Host Controller 8. 1D6B:0001 Linux 3.5.0-22-generic uhci_hcd - UHCI Host Controller 9. 1D6B:0001 Linux 3.5.0-22-generic uhci_hcd - UHCI Host Controller 10. 1D6B:0001 Linux 3.5.0-22-generic uhci_hcd - UHCI Host Controller Select device (1-10) :3 Benchmark device 04D8:FFFFFA2E opened.. (minor bug in pid display) Loop Test Information Vid / Pid : 04D8h / FFFFFA2Eh Interface # : 00h Alt Interface # : 00h Priority : Normal Buffer Size : 4096 Buffer Count : 2 Display Refresh : 1000 (ms) Transfer Timeout: 5000 (ms) Retry Count : 0 Verify Data : On Bulk Read (Ep81h) max packet size: 16 Bulk Write (Ep01h) max packet size: 16 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: 188256.18 Transfers: 41 Bytes/s: 188256.18 Avg. Bytes/s: 188625.28 Transfers: 88 Bytes/s: 188948.43 Avg. Bytes/s: 188353.12 Transfers: 134 Bytes/s: 187834.65 Avg. Bytes/s: 188178.22 Transfers: 180 Bytes/s: 187670.57 Avg. Bytes/s: 188338.43 Transfers: 226 Bytes/s: 188967.98 Avg. Bytes/s: 188705.18 Transfers: 272 Bytes/s: 190528.00 Avg. Bytes/s: 189064.14 Transfers: 319 Bytes/s: 191168.66 Avg. Bytes/s: 189334.41 Transfers: 366 Bytes/s: 191189.35 qAvg. Bytes/s: 189462.50 Transfers: 412 Bytes/s: 190487.94 waiting for Ep81h thread.. stopped Ep81h thread. stopped Ep01h thread. Loop Test Information Vid / Pid : 04D8h / FFFFFA2Eh Interface # : 00h Alt Interface # : 00h Priority : Normal Buffer Size : 4096 Buffer Count : 2 Display Refresh : 1000 (ms) Transfer Timeout: 5000 (ms) Retry Count : 0 Verify Data : On Bulk Read (Ep81h) max packet size: 16 Total Bytes : 1691648 Total Transfers : 413 Avg. Bytes/sec : 189455.23 Elapsed Time : 8.93 seconds Bulk Write (Ep01h) max packet size: 16 Total Bytes : 1691648 Total Transfers : 413 Avg. Bytes/sec : 189456.27 Elapsed Time : 8.93 seconds Press any key to exit.. mcuee@ubuntu:~/Desktop/build/pyusb/isoc_branch/isochronous$ sudo ./iso-test [sudo] password for mcuee: Packet 0 requested to transfer 32 bytes, transfered 32 bytes. Packet 1 requested to transfer 32 bytes, transfered 32 bytes. Packet 2 requested to transfer 32 bytes, transfered 32 bytes. Packet 3 requested to transfer 32 bytes, transfered 32 bytes. Packet 0 failed to transfer: status = 1. Packet 1 failed to transfer: status = 1. Packet 2 failed to transfer: status = 1. Packet 3 failed to transfer: status = 1. -- 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. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel