RayeR![]() ![]() CZ, 26.10.2014, 13:44 |
How to detect if keyboard is connected? (Developers) |
Hi, on 86duino zero there's a real PS/2 port an also USB HID emulation. I'd like to make a small utility that will automatically detect a keyboard and if it is not found it will pass an error code that will be used fo console redirection CTTY COMx. --- |
|
Oso2k![]() 08.11.2014, 00:41 @ RayeR |
How to detect if keyboard is connected? |
> Well, I got info that I would need to mess with USB to detect the KBD on |
|
RayeR![]() ![]() CZ, 02.11.2014, 01:23 @ RayeR |
How to detect if keyboard is connected? |
Well, I got info that I would need to mess with USB to detect the KBD on this HW so I rather decided to write simple utility for detection a VGA (BIOS). If VGA is detected the console is not redirected to COM port (without checking kbd but it's linked together). For my case on 86duino it does the job. --- |
|
RayeR![]() ![]() CZ, 26.10.2014, 15:11 @ RayeR |
How to detect if keyboard is connected? |
As I tried neither EDh command works - it returns FEh - NAK. So it seems that USB HID emulation routine does not emulate it on hardware/port level but only on BIOS level. --- |