Re: [pyusb-users] Reading data from Microchip's libusb example

2011-07-30 Thread Xiaofan Chen
On Sat, Jul 30, 2011 at 5:26 PM, Xiaofan Chen wrote: > On Sat, Jul 30, 2011 at 2:12 PM, C Duff wrote: >> Thanks Xiaofan, >> I didn't know about the reset - I'll make sure to add that. And everything >> now works. > > The reset call is normally not necessary and I tried Microchip's > QT3/libusb-0

Re: [pyusb-users] Reading data from Microchip's libusb example

2011-07-30 Thread Xiaofan Chen
On Sat, Jul 30, 2011 at 2:12 PM, C Duff wrote: > Thanks Xiaofan, > I didn't know about the reset - I'll make sure to add that. And everything > now works. The reset call is normally not necessary and I tried Microchip's QT3/libusb-0.1 based application and that works fine without the reset. So th

Re: [pyusb-users] Reading data from Microchip's libusb example

2011-07-29 Thread C Duff
Thanks Xiaofan, I didn't know about the reset - I'll make sure to add that. And everything now works. The first cause was a stupid mistake on my behalf. I thought I'd changed the packet size to 8 on my firmware (as I'm operating at low speed) but I hadn't (or I'd changed back at some point). It wa

Re: [pyusb-users] Reading data from Microchip's libusb example

2011-07-29 Thread Xiaofan Chen
On Sat, Jul 30, 2011 at 10:24 AM, C Duff wrote: > Nope, didn't work. I've tried 1,7,8,64,1000 nothing seems to work - they all > give the same error. > I should have mentioned this in the first message but I'm running ubuntu > 11.04 64 with python 2.7, if that makes a difference. Try the followin

Re: [pyusb-users] Reading data from Microchip's libusb example

2011-07-29 Thread C Duff
Nope, didn't work. I've tried 1,7,8,64,1000 nothing seems to work - they all give the same error. I should have mentioned this in the first message but I'm running ubuntu 11.04 64 with python 2.7, if that makes a difference. Campbell

Re: [pyusb-users] Reading data from Microchip's libusb example

2011-07-29 Thread Wander Lairson Costa
2011/7/28 C Duff : > Hi, > I'm new to pyusb and have what's probably a simple mistake. > I'm trying to get python to connect to Microchip's libusb example running on > a PIC18F14K50. > I can find and send data to the PIC fine, but pyusb has an error whenever I > try to read data: > http://paste.pou

[pyusb-users] Reading data from Microchip's libusb example

2011-07-28 Thread C Duff
Hi, I'm new to pyusb and have what's probably a simple mistake. I'm trying to get python to connect to Microchip's libusb example running on a PIC18F14K50. I can find and send data to the PIC fine, but pyusb has an error whenever I try to read data: http://paste.pound-python.org/show/10154/ Here i