Re: libusb driver question: can't write to endpoint

Phil Dibowitz <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Phil Dibowitz wrote:
> Alan Stern wrote:
>>> But when I transfer 64 bytes at a time, on Connectivity.EZHex, I get 19
>>> successful transfers (~1.2k) and the 20th gives me an error of -110, or "No
>>> error" (the read was successful).
>> 110 is ETIMEDOUT (see include/asm-generic/errno*), which means your
>> timeout expired before the data could be transferred.  I suggest you
>> increase the timeout to something like 1000 (1 second).
> 
> So *that's* where those errors are. Thanks. That'll help.

Oh - one other note... on a hunch I modified my code to, when the device
resets, wait for it to come back, reclaim it, and continue writing where it
left off. As I suspected, this seriously messed up the device. It goes
through at least 10 reboot cycles before hitting transfer 8072 at which
point it reboots and then just sorta dies. After a few minutes, I'm able to
revive it form my mac, thankfully.

-- 
Phil Dibowitz                             [email protected]
Open Source software and tech docs        Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"Never write it in C if you can do it in 'awk';
 Never do it in 'awk' if 'sed' can handle it;
 Never use 'sed' when 'tr' can do the job;
 Never invoke 'tr' when 'cat' is sufficient;
 Avoid using 'cat' whenever possible" -- Taylor's Laws of Programming

-------------------------------------------------------------------------
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

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF9Ku7N5XoxaHnMrsRAg3KAJsEtTslomOOB5S9wUs6oP5wV/Jr0gCfe97t
eeZ3TyEGNYw4Adn6oTaR+X0=
=V2Jc
-----END PGP SIGNATURE-----
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.