2011/8/7 chris clark <clac...@gmail.com>:
> On Sun, Aug 7, 2011 at 6:26 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>> On Mon, Aug 8, 2011 at 4:24 AM, Wander Lairson Costa
>> <wander.lair...@gmail.com> wrote:
>>> The reset issue is related to libusb 1.0 windows backend. Libusb guys
>>> can give you better explanation on that (or maybe Xiaofan if he is
>>> around here).
>>>
>>
>> libusb-1.0 Windows (currently use winusb driver) does not support reset.
>> In the future, it will gain support once it supports libusb0.sys driver.
>> http://www.libusb.org/wiki/windows_backend
>
> I'm not (yet) using libusb-1.0 under Windows, the hang warning in the
> PyUSB persuaded me to go the libusb-win32 (what I've been referring to
> as libusb-0.1). But I can do some tests if that would be useful (e.g.
> is there any value in trying PyUSB with libusbk/usb-travis?)
>
>
>> libusb-win32 supports reset. We add a new reset function in 1.2.5.0 since
>> some users have problem with the existing reset function with their device.
>
>
> Ahhh! I downloaded the driver a few weeks ago when I was doing my
> research and this weekend was the implementation/test day. I should
> try the new version! I'll read the docs about upgrading/removing
> drivers and test 1.2.5.0 at some point soon. I need to do some proper
> testing of my script now.
>
>> http://libusb.6.n5.nabble.com/usb-reset-on-Windows-makes-some-devices-unhappy-no-problem-on-Linux-td4450737.html
>
> Thanks for that, very interesting reading, I'd read about the filter
> mode and this makes me want to go back and revisit as I may have a use
> for it!
>
>> The existing reset function will reset the port and cycle power the
>> port. Therefore the device handle will not be valid after the reset
>> and the user will need to redo everything.
>
> That explains the appearance of lack of power that I'm seeing. I've no
> idea how I'm going to restart it though, any pointers?
>
> Again, I'm actually up and running (with workaround), I'm trying to
> see if there is anything to learn from my setup to improve things.
>

You can try a set_configuration(0), which is a kind of lightweight reset



-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to