I am trying to use a HID (DualShock 4) connected to my R-PI 3 running Windows 10 IoT in a C# universal app. I was using the Device Enumeration sample as a guideline and managed to display the IDs of all connected devices. I could see that the connected DualShock was correctly enumerated because it logged the \\?\HID#VID_054C&PID_05C4...
.
So naturally the next thing I wanted to do was opening the device for communication. Since it is an HID I was using the HidDevice
class with var device = await HidDevice.FromIdAsync(args.Id, FileAccessMode.ReadWrite);
. Sadly the returned device
is always null, nothing on the screen is prompted or so.
Next I assumed there at least has to be some kind of USB interface accessible so I went for var device = await UsbDevice.FromIdAsync(args.Id);
But now I am getting A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)
or sometimes also The process cannot access the file because it is being used by another process.
How can I talk to my device? :(
User contributions licensed under CC BY-SA 3.0