I use Rfid Reader (a small USB pen) that mimics a HID keyboard on Debian Linux (Squeeze).
less -f / dev / input / event2 gives me a bunch of gibberish on the screen at the time of scanning the rfid tag. Using the evdev Python library ( http://bit.ly/kZkO2b ), I could correctly decode the string correctly.
But I think I'm barking the wrong tree. It seems too complicated. If the rfid reader works like a HID keyboard, should I have access to it using basic functions like sys.stdin, right? So how is this done right?
source
share