python 3.x - How to read out an USB Rfid Reader imitating an HID keyboard using Linux and Python3 -


i'm using rfid reader (a small usb stick) imitates hid keyboard on debian linux (squeeze).

less -f /dev/input/event2 gives me bunch of gibberish on screen moment rfid tag scanned. using evdev python library ( http://bit.ly/kzko2b ) decode string correctly.

but think i'm barking wrong tree. seems complicated. if rfid reader works hid keyboard should able access using basic functions sys.stdin, right? how done properly?

since user hasn't replied here since may 2011, did find solution problem stated in comment, hereby taking liberty of posting said solution , getting question out of "unanswered" queue.


the problem solved after user realized logged embedded device through ssh. proceeded reading /dev/tty0 using io.open python 3 standard library.


Comments