Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to emulate another device? #147

Open
dberrocal-git opened this issue Jun 22, 2024 · 1 comment
Open

Is it possible to emulate another device? #147

dberrocal-git opened this issue Jun 22, 2024 · 1 comment

Comments

@dberrocal-git
Copy link

Hey thanks for your work.

I have an embedded system that only accepts one type of USB mouse and keyboard (generic, in terms of functionality, but replacement is expensive), I was wondering if using this idea of making hid remap I could replicate the descriptor, vid, pid of the original device so I can use any cheap device.

Looking at the code, if I modify our_descriptor to match one to one should that be enough? In plain, it would be an imitation or spoof of the original device.

I would like to clarify this before purchasing hardware.

Again, thank you for your time and effort :)

@jfedor2
Copy link
Owner

jfedor2 commented Jun 22, 2024

Emulating a specific VID/PID and descriptor is possible the way you described. You might need two though if you want to emulate two different devices. And of course I can't guarantee it will work with your embedded system, but I think it's worth a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants