2013/1/14 Alan Jhonn Aguiar Schwyn <alan...@hotmail.com>:
> Hi,
>
> I'm searching and not found nothing about this problem.
> When I try to read 5 bytes of one device and it can't, returns an overflow
> that I
> can't restore the comunication. Any ideas?
>
> The pyusb it's the latest in the master branch of GIT.
>
>   File "com_usb.py", line 56, in read
>     return self.handle.bulkRead(ADMIN_MODULE_OUT_ENDPOINT, length, TIMEOUT)
>   File "usb/legacy.py", line 159, in bulkRead
>     return self.dev.read(endpoint, size, self.__claimed_interface, timeout)
>   File "usb/core.py", line 667, in read
>     self.__get_timeout(timeout)
>   File "usb/backend/libusb1.py", line 550, in bulk_read
>     timeout)
>   File "usb/backend/libusb1.py", line 657, in __read
>     _check(retval)
>   File "usb/backend/libusb1.py", line 407, in _check
>     raise USBError(_str_error[ret], ret, _libusb_errno[ret])
> usb.core.USBError: [Errno 75] Overflow
>

Doesn't the device have any data? Or is the data packet larger than 5
bytes? AFAIK, the error shouldn't cause communication breakage..

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
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. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to