Skip to content Skip to sidebar Skip to footer

Python Pyusb Hid Feature Report

I am accessing a USB HID Device using python hidapi from a Mac OSX 10.10.5 doing: import hid import time hidraw = hid.device(0x1a67, 0x0004) hidraw.open(0x1a67, 0x0004) #

Solution 1:

Your parameters in the dev.ctrl_transfer command looks wrong.

The fact is that dev.ctrl_transfer will set several parameters like the direction of the message, the lenght and the content of your control message (everything is well explain in this link: http://www.beyondlogic.org/usbnutshell/usb6.shtml#SetupPacket)

So you have to set the parameters in function of your device and what you want to do. For exemple in my code and for my device I have this command:

dev.ctrl_transfer(0x21, 0x09, 0x200, 0x00, command)

Post a Comment for "Python Pyusb Hid Feature Report"