2012/3/30 Stephen Richards <morphy_richa...@hotmail.com>: > Edit > > Have tried this as well: > > msg = [0x00, 0x00, 0x01] > > dev.write(0x81, msg, 0) > > > But still same error. > > > > > > import usb.core > import usb.util > > # find our device > dev = usb.core.find(idVendor=0x1267, idProduct=0x0000) > > # was it found? > if dev is None: > raise ValueError('Device not found') > > # set the active configuration. With no arguments, the first > # configuration will be the active one > dev.set_configuration() > > msg = [0x00, 0x00, 0x01] > > dev.write(0x81, msg, 0) > >
The 0x81 is a IN endpoint, you are not allowed to write on it. Probably you send data to your device through control requests. -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users