I'm currently working on a project where I want to control my PC with an AVR, via emulating a PS/2 keyboard. For this reason I currently have all the required hardware and some software libs, such as https://github.com/ndusart/ps2-keyboard for the AVR and http://python-evdev.readthedocs.io/en/latest/index.html for the PC part.
I also read about the PS/2 protocol from http://www.pcbheaven.com/wikipages/The_PS2_protocol/, http://www.computer-engineering.org/ps2protocol/ and http://retired.beyondlogic.org/keyboard/keybrd.htm
Then I've ran the command
sudo cat /dev/input/by-path/platform-i8042-serio-0-event-kbd > ./kbrd.hex and connected a keyboard, then pressed and released the backspace.
I would except something like
AA 66 F0 66, and maybe some
FA's (ACK) in between, but what I've got is very different:
So my question:
Could this be caused by my misunderstanding of the working behavior of /dev/input/, or the problem is in the other parts of my setup? I expect to get the raw input from the buffer from /dev/input/, and this isn't that I think the raw should be.