Halting an endpoint

Wander Lairson Costa <[email protected]>
Newsgroups gmane.comp.lib.libusb.devel.windows,gmane.comp.lib.libusb.devel.general
Message-ID <CAFsSK4ZWYTKaXZF8a5-2kg=b73Qp1P5eErQEzkJ0dDb4zB=B=w@mail.gmail.com>
Hi,

Running PyUSB regression tests I found an issue on Windows. One of the
tests are regarding the control requests. To make a sanity check of
SET_FEATURE and GET_STATUS requests, I halt the endpoint, check if it
is halted, then clear it and check is it not halted anymore.

On linux it works well, but on Windows, after that, any transfer
returns a timeout. I tested with libusb 1.0.18 (WinUSB backend) and
libusb-win32 1.2.6.0 (libusb-win32 driver).

I runned this on Windows 8.1 64 bits and Windows 7 32 bits, under a
Virtual Box machine (I don't have a physical Windows machine
available) with a Linux host.

After the problem occurs, if I detach the device from Virtual Box and
try to make a transfer on Linux host, it works.

As I think that is really hard two different code bases having exactly
the same bug, I conclude that either I am missing something or there
is an issue with Windows/Virtual Box.

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
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.