On Thu, Jun 17, 2010 at 9:45 PM, Alex <alex.kronenw...@gmx.de> wrote: > Hi together, > I'm trying to communicate with a RIU (reconfigurable Interface unit) but > I'm facing a problem which I can't solve. > I am using Windows XP, python 2.5 and libusb 1.0.
I think you mean libusb-win32, right? libusb-1.0 Windows backend does not have such thing as filter driver now as it is using either WinUSB or HID. What is the version of libusb-win32 are you using? Please post the output of testlibusb-win.exe. Thanks. > The RIU was installed correctly using libusb filter driver and > there hasn't been an other driver installed before. If I type the following: > > import usb.core > import usb.util > #(not really needed for this) > > dev = usb.core.find(idVendor = 0x1534, idProduct = 0x8852) > dev.set_configuration() > > dev.write(0x01,"\xEE",0,100) > #script is working until here > dev.read(0x81,1,0,100) > > the last command always throws an error exception: > A device attached to the system is not functioning > > What am I doing wrong? Can anyone tell how to deal with that error? Or > do I just miss inserting another line of code? That just means you device does not like that command. Are you sure your device will response something for EP1 OUT when you send "\xEE" to EP1 IN? Your timeout of 100 is also a bit too short but that is probably not the issue here. > dev.read(0x81,1,0,100) If the device returns back more than one byte, you have a problem. It is better to set the read buffer as large as the wMaxPacketSize of the IN endpoint (0x81) here. -- Xiaofan http://mcuee.blogspot.com ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users