Reading Keyboard Data Direct From Port

Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2007
Posts: 3
Reputation: perl21 is an unknown quantity at this point 
Solved Threads: 0
perl21 perl21 is offline Offline
Newbie Poster

Reading Keyboard Data Direct From Port

 
0
  #1
Oct 30th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Perl Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC