Re: [pyusb-users] unknown error in pyusb

2012-07-17 Thread Debapratim Ghosh
The problem seems to be solved. Apparently, the change configuration command could be accepted only when the device is in reset state. The on-chip bootloader specifies that. Thanks for your help. On Thu, Jul 12, 2012 at 6:14 PM, Xiaofan Chen wrote: > On Thu, Jul 12, 2012 at 6:34 PM, Debapratim

Re: [pyusb-users] unknown error in pyusb

2012-07-17 Thread Debapratim Ghosh
On Thu, Jul 12, 2012 at 2:11 AM, Tormod Volden wrote: > On Wed, Jul 11, 2012 at 8:03 PM, Debapratim Ghosh > wrote: > > I am working with python in Ubuntu 11.10. I'm able to detect a USB > device, > > access its properties etc. Now I want to establish USB communication. As > > given in the pyusb t

Re: [pyusb-users] unknown error in pyusb

2012-07-12 Thread Debapratim Ghosh
Hi, Yes, that's right. I saw an example code online for the same device, which is receiving data, using configuration 3. So they've used set_configuration(3) function. DG On Thu, Jul 12, 2012 at 6:14 PM, Xiaofan Chen wrote: > On Thu, Jul 12, 2012 at 6:34 PM, Debapratim Ghosh > wrote: > > Hi,

Re: [pyusb-users] unknown error in pyusb

2012-07-12 Thread Xiaofan Chen
On Thu, Jul 12, 2012 at 6:34 PM, Debapratim Ghosh wrote: > Hi, the lsusb -v dump of my device shows the following > > Bus 005 Device 006: ID 04d8:feaa Microchip Technology, Inc. > Device Descriptor: > bLength18 > bDescriptorType 1 > bcdUSB 2.00 > bDevi

Re: [pyusb-users] unknown error in pyusb

2012-07-12 Thread Debapratim Ghosh
Hi, the lsusb -v dump of my device shows the following Bus 005 Device 006: ID 04d8:feaa Microchip Technology, Inc. Device Descriptor: bLength18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 255 Vendor Specific Class bDeviceSubClass 0

Re: [pyusb-users] unknown error in pyusb

2012-07-12 Thread Debapratim Ghosh
Hi My end device connected via USB is a PIC18F4550 microcontroller. For details on this board, kindly look at www.hackinglab.org or https://sites.google.com/site/pinguinotutorial/home Meanwhile I will check on the libusb version. DG On Thu, Jul 12, 2012 at 6:57 AM, Xiaofan Chen wrote: > On Th

Re: [pyusb-users] unknown error in pyusb

2012-07-11 Thread Xiaofan Chen
On Thu, Jul 12, 2012 at 2:03 AM, Debapratim Ghosh wrote: > I am working with python in Ubuntu 11.10. I'm able to detect a USB device, > access its properties etc. Now I want to establish USB communication. As > given in the pyusb tutorial webpage, I gave a command > > pingu = usb.core.find(idVendo

Re: [pyusb-users] unknown error in pyusb

2012-07-11 Thread Tormod Volden
On Wed, Jul 11, 2012 at 8:03 PM, Debapratim Ghosh wrote: > I am working with python in Ubuntu 11.10. I'm able to detect a USB device, > access its properties etc. Now I want to establish USB communication. As > given in the pyusb tutorial webpage, I gave a command > > pingu = usb.core.find(idVendo

[pyusb-users] unknown error in pyusb

2012-07-11 Thread Debapratim Ghosh
I am working with python in Ubuntu 11.10. I'm able to detect a USB device, access its properties etc. Now I want to establish USB communication. As given in the pyusb tutorial webpage, I gave a command pingu = usb.core.find(idVendor = 0x04D8, idProduct = 0xFEAA) #this is working fine now, and then