954,219 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reading Keyboard Data Direct From Port

Hi,

I have been trying to write a program to capture information from a barcode scanner. Because the data is the same as a keyboard, I have been trying to just read the keyboard for now since there seem to be a lot more people doing that out there.

I found a port on my linux box when I use a usb keyboard at /dev/input/by-id/usb-mykeyboardname-event-kdb@

When I cat this port and type any characters on the keyboard I get strange and inconsistent binary data. If I type j j j j all for times I get different stuff.

Does anyone know what this data is and if it can be decoded into nice ascii characters?

Thank you,
Tony

perl21
Newbie Poster
3 posts since Oct 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You