Discussion:
[pyusb-users] How to send VENDOR_DEVICE messages with pyusb?
chmedly via pyusb-users
8 years ago
Permalink
I'm basically trying to replicate the setup messages for a device that I've snooped using snoopypro.  Here's an example of a snooped message I can't seem to send with the ctrl_transfer method from pyusb.  
+++URB Header (length: 80)SequenceNumber: 4Function: 0017 (VENDOR_DEVICE)PipeHandle: 00000000
SetupPacket:0000: 00 90 00 00 00 00 85 ff bmRequestType: 00  DIR: Host-To-Device  TYPE: Standard  RECIPIENT: DevicebRequest: 90    unknown!

No TransferBuffer+++
As far as I can tell, Microsoft considers this function deprecated and I haven't found much info in general with the google for "VENDOR_DEVICE".  But there has to be a way to replicate these messages.  Does anyone have some insight?  
Thanks, 
Karl Palsson
8 years ago
Permalink
Read this, mostly...

http://www.beyondlogic.org/usbnutshell/usb6.shtml

Or...

something like...

import usb.util as uu
....
dev.ctrl_transfer(uu.CTRL_TYPE_VENDOR | uu.CTRL_RECIPIENT_DEVICE,
blah, wop)


just like any other control transfer


Cheers,
Karl P
...
Loading...