|
From: Martin R. <spl...@gm...> - 2017-11-12 20:38:51
|
Hiya, first of all, sorry for such a question but I am totally new to this (libusb, reversing protocols and C++). I've decided to reverse a driver for the mouse I bought, and I got to a point where I have a working VM with proprietary drivers I'm trying to reverse and wireshark works to see what's happening on USB. I've found a project that works with different mice of the same manufacturer and adapted it so it works for my own device. My issue is that __I can only run this program while the device is not passed through__, if I do I get what seems to be an IO error. libusb: error [submit_control_transfer] submiturb failed error -1 errno=16 This, of course, makes debugging extremely hard. I'd welcome any help or pointers on how to fix the issue so I can send custom commands to the mouse while also having it work with the proprietary drivers at the same time. All the code is in https://github.com/C0rn3j/a4tech-bloody-linux-driver , files of interest are Mouse.cpp, Mouse.h and main.cpp. |