Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Wander Lairson
I created a new bug entry in the tracker for this problem: https://sourceforge.net/tracker/?func=detail&aid=2989603&group_id=145185&atid=761063 I did it because I would like first port test firmware to USB stack 2.6a and make code stable for Windows and Linux (the two I currently have installed o

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 8:51 PM, Xiaofan Chen wrote: > On Mon, Apr 19, 2010 at 8:42 PM, Xiaofan Chen wrote: >> [mc...@myfreebsd ~/Desktop/build/pyusb/tests]$ export PYUSB_DEBUG_LEVEL=debug >> [mc...@myfreebsd ~/Desktop/build/pyusb/tests]$ python testpk2_1.py >> 2010-04-19 20:38:14,825 >> DEBUG:u

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 8:42 PM, Xiaofan Chen wrote: > [mc...@myfreebsd ~/Desktop/build/pyusb/tests]$ export PYUSB_DEBUG_LEVEL=debug > [mc...@myfreebsd ~/Desktop/build/pyusb/tests]$ python testpk2_1.py > 2010-04-19 20:38:14,825 DEBUG:usb.backend.libusb01:_LibUSB.enumerate_devices() > Traceback (mo

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 6:46 PM, Wander Lairson wrote: > It is really strange it is working with official 0.4.2 version but not > with 0.1 backend. Specially because it can load the shared library, > but cannot find any test device... If you want to force usb.legacy to > use libusb01 backend, we m

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Wander Lairson
2010/4/18 Xiaofan Chen : > On Sun, Apr 18, 2010 at 3:31 AM, Wander Lairson > wrote: > >>> You can probably remove "reset" from the test cases as it is >>> problematic anyway. Normally it is only used as a last resort >>> (often only under Linux). >> >> Actually I do it to have known device state w

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Wander Lairson
It is really strange it is working with official 0.4.2 version but not with 0.1 backend. Specially because it can load the shared library, but cannot find any test device... If you want to force usb.legacy to use libusb01 backend, we must change legacy.py module, change line 322 to import usb.back

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 5:25 PM, Xiaofan Chen wrote: >> As a test, I delete pyusb 1.0 and then install pyusb-0.4.2. It does >> seem to work. > I then delete pyusb-0.4.2 and reinstall the svn version of pyusb. The following program works fine. #!/usr/bin/env python import usb.core import usb.bac

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 5:22 PM, Xiaofan Chen wrote: > > As a test, I delete pyusb 1.0 and then install pyusb-0.4.2. It does > seem to work. The following is a simple test program for Microchip PICkit 2. It does seem to work. #!/usr/bin/env python import usb def opendevice(idVendor, idProduct)

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 5:07 PM, Xiaofan Chen wrote: > On Mon, Apr 19, 2010 at 7:57 AM, Xiaofan Chen wrote: > >> I said that the 0.4.2 example works in the legacy mode. But it is >> using the 1.0 backend as you mentioned. > > How do I force usb.legacy to use the libusb01 backend? > As a test, I

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-19 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 7:57 AM, Xiaofan Chen wrote: > I said that the 0.4.2 example works in the legacy mode. But it is > using the 1.0 backend as you mentioned. How do I force usb.legacy to use the libusb01 backend? I add a few lines in the 0.4.2 example and it still works fine. Can I say tha

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-18 Thread Xiaofan Chen
On Mon, Apr 19, 2010 at 1:21 AM, Wander Lairson wrote: >> The issue is that with libusb 0.1 backend, it can not find the device. >> > Wow! This is new one! This one seems to be related to the 0.1 backend. > But you said some time ago that with 0.4 version it works, right? Kind > of strange... >

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-18 Thread Xiaofan Chen
On Sun, Apr 18, 2010 at 3:31 AM, Wander Lairson wrote: >> You can probably remove "reset" from the test cases as it is >> problematic anyway. Normally it is only used as a last resort >> (often only under Linux). > > Actually I do it to have known device state when changing the backend > in the t

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-18 Thread Wander Lairson
2010/4/17 Xiaofan Chen : > On Sun, Apr 18, 2010 at 3:31 AM, Wander Lairson > wrote: >> 2010/4/17 Xiaofan Chen : >>> On Fri, Apr 16, 2010 at 11:14 PM, Wander Lairson >>> wrote: >>> Known issues - - 'reset' method fails under FreeUSB (libusb 1.0 backend). >>> >>>

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-17 Thread Xiaofan Chen
On Sun, Apr 18, 2010 at 3:31 AM, Wander Lairson wrote: > 2010/4/17 Xiaofan Chen : >> On Fri, Apr 16, 2010 at 11:14 PM, Wander Lairson >> wrote: >> >>> Known issues >>> - >>> >>> - 'reset' method fails under FreeUSB (libusb 1.0 backend). >> >> 'reset' method fails under FreeUSB 8.0

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-17 Thread Wander Lairson
2010/4/17 Xiaofan Chen : > On Fri, Apr 16, 2010 at 11:14 PM, Wander Lairson > wrote: > >> Known issues >> - >> >> - 'reset' method fails under FreeUSB (libusb 1.0 backend). > > 'reset' method fails under FreeUSB 8.0 (libusb 1.0 backend). I am > not so sure about the older system. >

Re: [pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-17 Thread Xiaofan Chen
On Fri, Apr 16, 2010 at 11:14 PM, Wander Lairson wrote: > Known issues > - > > - 'reset' method fails under FreeUSB (libusb 1.0 backend). 'reset' method fails under FreeUSB 8.0 (libusb 1.0 backend). I am not so sure about the older system. One more: libusb 0.1 backend does not s

[pyusb-users] PyUSB 1.0 alpha 0 release notification

2010-04-16 Thread Wander Lairson
Dear all, This is the first PyUSB 1.0 series public release. This is an alpha release, which means that most of the features described in the README file and on the website are not yet stable or even implemented. Features not implemented - - Full support for legac