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.
With USB KBD I tried some basic tricks like sending KBD echo command EEh to port 60h but I didn't get EEh reply and result was same regardless if KBD attached (FEh). Also bit4 at address 0:0496h that should indicate 101-key KBD present is still set. Status byte at port 64h is still 50h. Putting a char to KBD buffer via INT16 also success. So I need to find something that will give aq different result when KBD connented or not.
---
DOS gives me freedom to unlimited HW access.
Complete thread:
- How to detect if keyboard is connected? - RayeR, 26.10.2014, 13:44 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- How to detect if keyboard is connected? - RayeR, 26.10.2014, 15:11
- How to detect if keyboard is connected? - RayeR, 02.11.2014, 01:23
- How to detect if keyboard is connected? - Oso2k, 08.11.2014, 00:41
- How to detect if keyboard is connected? - RayeR, 02.11.2014, 01:23
- How to detect if keyboard is connected? - RayeR, 26.10.2014, 15:11
Mix view