2011/1/3 Sridev Nair <sksridevn...@gmail.com>: > Tried to read 1024 byes, however, still the timeout error. > ------------------------------- > Traceback (most recent call last): > File "code.py", line 15, in <module> > received = dev.read(0x81, 1024, 0, 5000) > File "C:\Python26\lib\site-packages\usb\core.py", line 624, in read > self.__get_timeout(timeout) > File "C:\Python26\lib\site-packages\usb\_debug.py", line 53, in do_trace > return f(*args, **named_args) > File "C:\Python26\lib\site-packages\usb\backend\libusb01.py", line > 448, in bulk_read > timeout) > File "C:\Python26\lib\site-packages\usb\backend\libusb01.py", line > 531, in __read > timeout > File "C:\Python26\lib\site-packages\usb\backend\libusb01.py", line > 364, in _check > raise USBError(errmsg) > usb.core.USBError: libusb0-dll:err [_usb_reap_async] timeout error > --------------------------------------------------------------- > > Could it be related to com port opening or baudrate? > > I notice that this code stops timing out the moment manufacturer's > demo application opens the com port explicitly. Also, if I set a > baudrate higher than 9600 to the reader, I start receiving the > complete data. > > Any help/insight? > Is it a virtual serial device? If so, I guess yes, you must setup these parameters as a normal serial device. I must check manufacturer documentation (if any) to know how to do so. Usually this kind of things are done as special control requests, but I am not aware of these kind of devices...
-- Best Regards, Wander Lairson Costa LCoN - Laboratório de Computação Natural - Natural Computing Laboratory (http://www.mackenzie.com.br/lcon.html) Programa de Pós-Graduação em Engenharia Elétrica (PPGEE) Faculdade de Computação e Informática (FCI) Universidade Presbiteriana Mackenzie - SP - Brazil ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users