Remove the while loop and read all data at once:
char buf[1200*64];
usb_bulk_read(udevhandle, 0x81, buf, sizeof(buf), 1000);
Stephan
>
> Hi.
> I read 1200 x 64 bytes from endpoint1.:
> {...
> i=0;
> while((res=usb_bulk_read(udevhandle,0x81,(char*) &
> imgBuffer+(i<<6),64,20))>=0 && ++i<1200);
> ...}
> This is doing in more then 3 seconds.
> How can I do this faster (in less then 1 second)??
>
> Szymon L.
>
> --
> View this message in context: http://www.nabble.com/slow-read-usb_bulk_read-tf3541191.html#a9885307
> Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
>
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
|