Re: Halting an endpoint
Wander Lairson Costa <[email protected]>
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <CAFsSK4aDrT9ai+zNWfGPbCdpemaW2zWF3a5kz7+VMYNecAhN7g@mail.gmail.com> |
2014-05-20 23:21 GMT-03:00 Travis <[email protected]>: > Greetings, > > Does the pipe reset function work? This is essentially a clear endpoint > halt with data toggle reset. In Windows there is a unique URB function > for a pipe reset. I think by constructing your own clear feature > control request, you are bypassing this and any internal state > information that might be maintained by it. > > While it is defines in USB specs, setting an endpoint halt condition > doesn't have any practical applications that I know of but try this > followed by a reset pipe request (instead of rolling your own clear > endpoint halt ctl transfer) and see if it works. > Hi Travis and Pete, I am now doing the clear_halt call, but it didn't help much. I built a small C program for test [1]. The first time I run it, everything goes ok, but from now on usb_bulk_write always return a timeout. I didn't write a similar tool for libusb-1.0, but in PyUSB I am getting the same effect for both libusb-win32 and libusb-1.0. In Linux everything it works. Moreover, after a timeout error, if I "detach" the device from Virtual Box and run the same test app in Linux, it works too. But in this case I don't if a device reenumeration is hapening here... [1] https://gist.github.com/walac/581457aef5df47c23388 -- 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