Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to detect if keyboard is connected? (Developers)

posted by RayeR(R) Homepage, CZ, 26.10.2014, 13:44

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:

Back to the forum
Board view  Mix view
15357 Postings in 1388 Threads, 254 registered users, 5 users online (0 registered, 5 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum