Re: [libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

2015-03-25 Thread Andrew Silverman
One more question: Is there a way when doing the HIDInterfaceMatcher (via custom matching function or otherwise?) to pick a different endpoint? I'm experimenting with altering the code altogether to use the one visible HID Output Report instead of the control endpoint, but the one defining the

Re: [libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

2015-03-25 Thread Charles Lepple
On Mar 25, 2015, at 1:54 AM, Andrew Silverman andre...@microsoft.com wrote: Now I just need to figure out how to match that USB traffic from the Linux app. Given what I see here, it still seems like sending control messages (albeit perhaps shorter ones, i.e. 4 bytes at a time rather than

[libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

2015-03-24 Thread Andrew Silverman
Hi folks - question from newbie. There is a piece of software that was written several years ago to allow Linux users to configure a USB joystick from Ultimarc. The company has Windows specific tools but no formal support for Linux. The tool relies on libhid and the libusb-compat libraries. A

Re: [libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

2015-03-24 Thread Andrew Silverman
Thank you Charles - if I REALLY have to I may try to rewrite it, but I'd love to just get this version working with a quick fix rather than undertaking that (if possible. :)) Some answers to your questions: 1) Interestingly, after unbinding all three of the HID instances and doing lsusb

Re: [libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

2015-03-24 Thread Xiaofan Chen
On Wed, Mar 25, 2015 at 11:43 AM, Andrew Silverman andre...@microsoft.com wrote: I’m having some trouble understanding how to set up the destination bits correctly for requesttype/request – When I looked at the USB 2 spec tables that describe these, they just don’t seem to correspond in a

Re: [libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

2015-03-24 Thread Andrew Silverman
Interesting. I just captured some USB traffic of the manufacturer's tool uploading the data on Windows and the traffic looks pretty straightforward. Everything is sent as a control setup packet, so I don't know where this idea came from that it needs to be written to endpoint 3 like the

Re: [libhid-discuss] Trying to repair a program using libhid to configure an Ultimarc Joystick

2015-03-24 Thread Xiaofan Chen
On Wed, Mar 25, 2015 at 12:12 PM, Andrew Silverman andre...@microsoft.com wrote: What I don't really understand is the 0x43/0xC3 bytes for requesttype and the E9/EA/EB values in request. (Assuming that I am correctly understanding those param mappings in the existing calls to usb_control_msg,