I'm trying to send some keystrokes through a KVM and I tried using the built in keyboard libraries which worked perfect connected directly, but not via the KVM. Up until now I thought a keyboard press was a keyboard press, but since starting this project I believe the KVM only accepts the Boot Keyboard protocol. I've installed the HID Project libraries from GitHub - NicoHood/HID: Bring enhanced HID functions to your Arduino! and attempted the process using the BootKeyboard library instead, but again I'm still not having any luck when connected via KVM (Or for further testing I tried a PC in the BIOS screen). It works fine connected to a Windows 7 or Linux machine, but not at BIOS or via KVM so I'm assuming I'm still doing something wrong.
This is one of the many sample sketches I did to test and try and get it to work:
#include "HID-Project.h"
void setup() {
// put your setup code here, to run once:
delay(12000);
BootKeyboard.begin();
}
void loop() {
// put your main code here, to run repeatedly:
BootKeyboard.write(KEY_DOWN_ARROW);
delay(1000);
BootKeyboard.write(KEY_UP_ARROW);
delay(1000);
}
I also tried BootKeyboard.press/BootKeyboard.release in place of BootKeyboard.write but had the same issue - Working on a running machine but not in BIOS/KVM.
What am I doing wrong?