-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jeffrey Nichols <jsnich...@suprocktech.com> wrote: > Hi Karl, > > Is it possible you're exceeding the default timeout for write() with > your large data set? I just checked pyusb's source, and it looks like if > > you don't pass a timeout it uses 1000. That would explain why you're > sending some data, but not all of it. > > Try changing self.ep_out.write(data) to self.ep_out.write(data, > timeout=0) or self.ep_out.write(data, timeout=10000) and see if that > helps.
Excellent, that was indeed the culprit. After I'd sent this, I was moving on to reads, which get a different thoughput (different problem!) and were failing at a different amount, but some back of the envelope maths says it was the same time there :) Setting timeout=0 fixes both of these nicely. Thanks muchly, Karl Palsson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJV4yOaAAoJEBmotQ/U1cr2AHkP/RpY0jZSr0zYTCIvpS/vDWaP ayBdRN9on724GfRnQXUozUMhvdCzwGQKx764PWny1sQe7+oCLd3FTG340od2Kkt0 VMfu8WcD1x/FfHRWP8Cc+iXMfbHk0s9dQpKuZOXZ6YgoGzxmbSQn0ntTy362Teu5 42Ee0Is93dBw7UkYvWE8Z5sBmbzIuKf1B6I31AhUaF3qIsFN2Eu1aPfS9JBQ8UqE EAyygpuS4hfR/+UF8WGlFa9h8UyQ1FJ9p0c86+zYsDv3BLOAu+uW66lKRmh8Z0FU eYzs26xxaSzoeBtvMOOJng3Og3gec9BxB+5/h+qvNB+vBCbbdz1P/jgYldg0WbMN P0gKUZCBDMIvi35/ScUhUPlq96sgWqHXsq7YkR9tI0cR4pwQ2lDHaEnrnez1Zlk1 FT2hlh8nIRISui2LsGLFifAeza6LXGfNxSbwWiyv3CBgHqIaTP1W/GHwz/x6Wn3F vwsnEIxD/vY3jg8KxvqXBSMdIOZ7To5UqJ7CMSzOmgO3Idzyu+3WxxmZI9wiFK/W UflpxYDnmzyi4s9EJwtz5QKAL5dzMF9KPQjeXWPayYC4OiQlPJU6rFDgsO91HMCQ K/tbrI5/Y95iWWgiYAMQOBxzoNCEqN2QbszlXploXOU5Bwu2XppHi0Aun03PJPGk 7d2IxKuwng6Nh07xwIQd =q0p4 -----END PGP SIGNATURE-----
------------------------------------------------------------------------------
_______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users