PS2 Protocol Discussion
Posted: 07 Aug 2018, 17:13
I saw this link from Hacker News yesterday:
http://www.os2museum.com/wp/how-fast-is ... -keyboard/
tl;dr - the PS/2 protocol can do ~1 ms response times, and USB HID does ~16ms (about 1/60 of a second). That's ... not great, especially by comparison.
I've had an idea for a while to do away with the keyboard controller entirely. The keyboard would boot in normal (BIOS) mode. But, it could enter a mode where it only sends key switch press information at the fastest rate possible. This could be a 256-bit word, with each bit representing a single switch's state. It would be up to a driver stack running (with realtime priority - polling, not interrupt driven) on the host to interpret these words and figure out what to do with them, serving them up to software on the host through a virtual keyboard interface.
Fun times.
http://www.os2museum.com/wp/how-fast-is ... -keyboard/
tl;dr - the PS/2 protocol can do ~1 ms response times, and USB HID does ~16ms (about 1/60 of a second). That's ... not great, especially by comparison.
I've had an idea for a while to do away with the keyboard controller entirely. The keyboard would boot in normal (BIOS) mode. But, it could enter a mode where it only sends key switch press information at the fastest rate possible. This could be a 256-bit word, with each bit representing a single switch's state. It would be up to a driver stack running (with realtime priority - polling, not interrupt driven) on the host to interpret these words and figure out what to do with them, serving them up to software on the host through a virtual keyboard interface.
Fun times.