Now I saw you are in Windows... Please, run the test application which comes with libusb that dumps USB descriptors for your device, let's check how it is configured...
2010/3/31 Ivan Dodig <madi...@gmail.com>: > I have tried that. I know I have to set up the configuration. Accidentally I > didn't include it in my code here on the forum. > > Any other ideas ? > > On Wed, Mar 31, 2010 at 12:57 PM, Wander Lairson <wander.lair...@gmail.com> > wrote: >> >> Hi Ivo, >> >> Try handle.setConfiguration(1) after handle.detachKernelDriver >> >> Wander >> >> 2010/3/30 Ivan Dodig <madi...@gmail.com>: >> > Hi again. >> > I'm having trouble communicate with my device. Device has a HID firmware >> > loaded and USB communication works if I use a program supplied with the >> > firmware. >> > Of course I want to write my own Python program. >> > >> > After the interruptWrite function I get this error >> > Traceback (most recent call last): >> > File "<pyshell#48>", line 1, in <module> >> > handle.interruptWrite(1, [1]) >> > USBError: usb_submit_async: submitting request failed, win error: The >> > parameter is incorrect. >> > >> > Google didn't help. >> > >> > What's wrong? What causes this error? I'm totally stuck. Here is my >> > code. >> > Thank you. >> > >> > import usb >> > bus=usb.busses()[0] >> > devices=bus.devices >> > for device in devices: >> > if device.idVendor == 0x04CC: >> > PowerModule = device >> > config=PowerModule.configurations[0] >> > handle=PowerModule.open() >> > handle.detachKernelDriver(0) >> > handle.interruptWrite(1, [1]) << Here I get the error >> > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Download Intel® Parallel Studio Eval >> > Try the new software tools for yourself. Speed compiling, find bugs >> > proactively, and fine-tune applications for parallel performance. >> > See why Intel Parallel Studio got high marks during beta. >> > http://p.sf.net/sfu/intel-sw-dev >> > _______________________________________________ >> > pyusb-users mailing list >> > pyusb-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/pyusb-users >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> pyusb-users mailing list >> pyusb-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pyusb-users > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > pyusb-users mailing list > pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users