On Sat, Nov 20, 2010 at 6:31 AM, Chu, Charlie (Chia-Lin, SanDiego) <charlie....@hp.com> wrote: > Hi Wanda, > > I have a simple pyUSB code to send and read a message with > the scan interface of a multi-functional printer. But I encountered an error > when reading back from the scan with the following codes. Although the > message I tried to send was a meaningless one, I thought it should > return something and not time-out. Please help. I am using pyUSB > 1.0 in WinVista.
If you are sending a meaningless command to the device and the device does not understand the command and thus have nothing to sent back to the host, you will get timeout error in the in IN transfer (read). You have to understand how the device works in order to use libusb/pyusb. -- Xiaofan ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users