I’m trying to build a KVM remote that triggers the switch between PC 1 and PC 2 over wifi/serial using STM32 and Embassy (Rust-based HAL with USB stack).
I wrote a simple prototype that should work, but it doesn’t seem like the KVM detects the device properly (it doesn’t show up in either Windows’s Device Manager or macOS’s System Information).
Is there any specific part of the HID spec that one need to implement? The “fake” keyboard works just fine when connected to the computer directly or through a non-HID port on the KVM.
I can’t speak to this HAL, specifically, but you need to be careful about what flags youre passing to the USB driver. It needs to be basic HID and nothing more.
I will review my code later if you’re interested, but it’s all C++, so it won’t be directly applicable.
The KVM is extremely picky about what sort of devices it recognizes.
Yeah, I just noticed that my wireless adapter from Keychron is not being recognized.
Being a pure HID device won’t work for my use case - I need a composite device that can also expose a usb-to-serial descriptor, which seems to be unsupported…