My question. I have a basic HID that does not define any Usage Page and I need to communicate with it from a UWP application. Something really simple: I just need to write/read few bytes from an eeprom integrated in the HID. Can it be done?
What I have done so far. I looked for the following solutions:
Plan A. Write a UWP code to access the device. The Windows.Devices.HumanInterfaceDevice
namespace allows UWP applications to access HIDs. However there are limitations... among these, the device is required to define a Usage Page within the vendor range 0xFF00-0xFFFF. So I soon realized this probably cannot work and I expect to run in to a HID_USAGE_PAGE_UNDEFINED
problem.
https://learn.microsoft.com/en-us/previous-versions/windows/apps/dn263140(v=win.10)
Plan B. I already have some code that works with this device on Windows 10, but it comes from a WPF application and it is based on hid.dll. It looks like I cannot just integrate this kind of code in a UWP application:
Can I Use Windows Hid API Calls in UWP (HidD_GetPreparsedData)?
Any workaround? suggestion?... is it just plain impossible? I am bound to using UWP.