From: Wander L. C. <wan...@gm...> - 2016-03-08 19:43:13
|
Hi, I think you may find the answer for your question in libusb mailing list. 2016-03-08 7:32 GMT-08:00 Igor Bezenchuk <ig...@ho...>: > I am Interested in generating random bulk traffic with libusb and pyusb to > different bulk devices(i.e Flash drives etc...) ep buffers and check data > integrity. > I used this code: > > import usb.core > # I used Gensys usb to sd card reader > dev = usb.core.find(idVendor=0x05E3 , idProduct=0x0746) > if dev is None: > raise ValueError('Device not found') > for cfg in dev: > for i in cfg: > for e in i: > print e.bmAttributes > print e.bEndpointAddress > print "" > #if you find OUT EP > if(e.bEndpointAddress == 2): > e.write(0x00) > e.write(0x01) > > > and I got this error: > "raise NotImplementedError(_strerror(ret)) > NotImplementedError: Operation not supported or unimplemented on this > platform" > > pyusb does enumerate device and it's endpoints correctly but it fails to > write to them. > as I saw in other posts this issue is well known in windows, my question > is there any way to go around this to write to device's EP in Windows > without installing custom driver with Zadig? > > > > > > > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://makebettercode.com/inteldaal-eval > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > > -- Best Regards, Wander Lairson Costa |