Using Python, I am trying to write to a USB sensor using ioctl. I have loads of examples of reading from devices either directly or via pyusb, or simple file writes, but anything more complicated disappears off the radar.
I need to use a control_transfer to write Feature Report message
The command is ioctl(devicehandle, Operation, Args) The issue I have is determining the correct Operation. The Args, I believe should be a buffer containing the Feature Report for the device? plus a Mutable flag set to true
Any help or advice would be greatly received
I should add; the reason for using Python is the code must be device independent