I'm running PetaLinux on a K26 SoM. There is an HID device connected to my custom board via USB. It is listed under /dev/
directory as /dev/input
and it works fine.
What I want to achieve is that I want to redirect this incoming HID data to another device connected to my FPGA via USB connection.
This should work in such a way that the HID device connected to the FPGA should be able to control the computer that is also connected to my FPGA via USB, so during this communication FPGA must be detected as an HID device to the external computer.
I'm open to ideas on how to implement such a thing.
I've done some preliminary research and keywords such as uhidd, libevdev and usbip came up, but I couldn't make sure if any of those would work.
One other thing I found is this wiki page on allowing an FPGA to be detected as an HID device to another computer, I've tried this with my own modifications and it seems to work fine but this is just the detection side of things and my question is about forwarding this HID data.
Thanks.