| | |
Reading Keyboard Data Direct From Port
Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2007
Posts: 3
Reputation:
Solved Threads: 0
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
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
- reading data using serial port (Visual Basic 4 / 5 / 6)
- Send data on a serial port (C++)
- How to copy data from serial port to notepad (Visual Basic 4 / 5 / 6)
- Sending data to serial port (Visual Basic 4 / 5 / 6)
- Debugging in VC++ 2005? (C++)
Other Threads in the Perl Forum
- Previous Thread: New to Perl, please explain the script
- Next Thread: Issues?
| Thread Tools | Search this Thread |





