Question about PS/2 keyboards

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
aphexia
Posts: 17
Joined: Wed Jan 08, 2020 8:09 pm
Libera.chat IRC: aphexia

Question about PS/2 keyboards

Post by aphexia »

If there's a transmission error indicated by a RESEND response, should i resend the last byte only or the complete command?
Octocontrabass
Member
Member
Posts: 5578
Joined: Mon Mar 25, 2013 7:01 pm

Re: Question about PS/2 keyboards

Post by Octocontrabass »

Only the last byte.

Most keyboard controllers will automatically do this for you.
aphexia
Posts: 17
Joined: Wed Jan 08, 2020 8:09 pm
Libera.chat IRC: aphexia

Re: Question about PS/2 keyboards

Post by aphexia »

And do i need to reactivate the keyboard with the F4 command before sending the last byte?
Octocontrabass
Member
Member
Posts: 5578
Joined: Mon Mar 25, 2013 7:01 pm

Re: Question about PS/2 keyboards

Post by Octocontrabass »

No. As far as the keyboard is concerned, it didn't receive the most recent byte, so you don't need to do anything besides resend the most recent byte.
aphexia
Posts: 17
Joined: Wed Jan 08, 2020 8:09 pm
Libera.chat IRC: aphexia

Re: Question about PS/2 keyboards

Post by aphexia »

Thanks a lot!!
Post Reply