Re: Problem when read data from USB

Ekkehard <[email protected]>
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <[email protected]>
Hi,
welcome in the community of libusb (and flavors...). 

AnTrung.gmail wrote
> created a small test app with below code. But I get the following error
> Always , My error is "IoTimedOur. No more bytes" or
> "Win32Error:Win32Error:No more bytes" when I plug other USB
> public static UsbDeviceFinder MyUsbFinder = new UsbDeviceFinder(0x058F,
> 0x6387);

The Device you are opening 
Alcor VID = 058F PID = 6387
seems to be a flash drive aka "memory stick".
I dont think that this will give back data without having been asked for.
Even if it does look as a good starting point, memory devices are not a good
starting point for learning how to use libusb.
I suggest that you use a programable usb device, like the cypress devices,
or the microcontrollers from TI or MicroChip. Even if these devices are much
more complex, they allow to search for bugs on both ends of the cable.
If this is not what you have in mind, you may look for devices who will send
data without beeing asked for, e.g. some USB webcams do so.
Also you should use the "libusb test program" which shows the available
endpoints and there configurations.

Best regards
Ekkehard



--
View this message in context: http://libusb.6.n5.nabble.com/Problem-when-read-data-from-USB-tp5713493p5713495.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.