943,983 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 3056
  • Perl RSS
Oct 30th, 2007
0

Reading Keyboard Data Direct From Port

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
perl21 is offline Offline
3 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: New to Perl, please explain the script
Next Thread in Perl Forum Timeline: Issues?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC