By I remmember from USB Spec, endpoint 0x81 should be IN (MSB 1) and endpoint 0x2 should be OUT (MSB 0). I don't what are exactly the side effects of inverting them... Did you write the device firmware also? If not, probably you should swap the values of PLUG_BULK_IN_EP and PLUG_BULK_OUT_EP. If so, revise your fw source code to follow the correct USB Spec. After that, report the result to the list.
2008/12/23 Phil Hannent <p...@hannent.co.uk>: > Wander Lairson wrote: >> What are the constants PLUG_BULK_IN_EP and PLUG_BULK_OUT_EP? >> > They are: > PLUG_BULK_IN_EP = 0x2 > PLUG_BULK_OUT_EP = 0x81 > > The device enumerates to: > Device: 006 > Device class: 255 > Device sub class: 0 > Device protocol: 255 > Max packet size: 8 > idVendor: 2259 > idProduct: 1 > Device Version: 00.01 > Configuration: 1 > Total length: 32 > selfPowered: 0 > remoteWakeup: 0 > maxPower: 200 > Interface: 0 > Alternate Setting: 0 > Interface class: 255 > Interface sub class: 0 > Interface protocol: 255 > Endpoint: 0x81L > Type: 3 > Max packet size: 8 > Interval: 1 > Endpoint: 0x2L > Type: 3 > Max packet size: 8 > Interval: 1 > > I have just been googling some more and found this: > http://osdir.com/mlpython.pyusb.user/2008-05/msg00001.html > > Where the suggestion is to claim the interface. This is my open function: > def open(self) : > self.device = self.device_descriptor.getDevice() > self.handle = self.device.open() > self.handle.reset() > if sys.platform == 'darwin' : > # XXX : For some reason, Mac OS X doesn't set the > # configuration automatically like Linux does. > self.handle.setConfiguration(1) > self.handle.claimInterface(self.device_descriptor.interface_id) > > What do you think? > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Pyusb-users mailing list > Pyusb-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > ------------------------------------------------------------------------------ _______________________________________________ Pyusb-users mailing list Pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users