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?
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Pyusb-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyusb-users
