+ 1

How connect a RFID (HID device) reader with python?

Hello guys, I'm trying to connect my RFID reader recognized as a HID device in my computer, in order to read 10 digits cards, I was using pyusb but I failed, thanks in advance.

27th Dec 2020, 1:57 AM
PolChe
4 Respostas
+ 4
Pol , your RFID reader should work like other input devices like a keyboard or a Barcode reader. Your code should call input(), and it will stay there until the user is typing on the keyboard, or a device like RFID or Barcode reader will get active and sending data after reading process. check if there is some hardware switch for setting configuration of the device. if your device is working properly with a text processing program or something like this, you should check your code.
27th Dec 2020, 12:15 PM
Lothar
Lothar - avatar
+ 2
What does the RFID reader use manual say?
27th Dec 2020, 2:53 AM
Gordon
Gordon - avatar
+ 1
Gordon it doesn't have any manual, it works as keyboard plug&play, once is connected to my computer it can print the 10 digits by default of my RFID cards in any text-space(word, excel..)
27th Dec 2020, 5:50 AM
PolChe
+ 1
Pol it sounds like the RFID reader works as a keyboard wedge. You read it by using the input() function, since it behaves just like a user typing the 10-digit code on the keyboard.
27th Dec 2020, 9:11 AM
Brian
Brian - avatar