2011/11/17 Eric Hewett <eric.hew...@gmail.com>: > Thanks for reply: > I am trying to write to it. Sorry - there was an error in the snip-it I > posted. > I believe ctrl_transfer is defined as: > ctrl_transfer(RequestType, Request, Value, Index, Length, Timeout) > Corrected code > msg='\x00\x01\x01\x01\x00\x01' > dev.ctrl_transfer(0x40, 0x03, msg, 0, len(msg), 0) > >
The correct way to write is as following: dedev.ctrl_transfer(bmRequestType=0x40, bRequest=0x03, data_or_wLength=msg) There is no need to give the length of msg, it is calculated internally. You might want to give a look at the tutorial [1]. [1] http://pyusb.sourceforge.net/docs/1.0/tutorial.html -- Best Regards, Wander Lairson Costa https://github.com/walac https://gitorious.org/~walac ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users