How to read from a usb rfid reader?

前端 未结 3 1224
悲&欢浪女
悲&欢浪女 2021-01-03 07:42

I have bought a usb rfid reader. How can I read data when user puts an rfid tag in front of the device?

my computer identifies the device as an Human Interface Devic

3条回答
  •  难免孤独
    2021-01-03 08:21

    Please see: How do I read input from a USB HID device?

    The device might enumerate as generic HID but might behave like a keyboard. If so, it should just type out the characters it reads. If not, you'll have to poll it from the driver. That link should help.

提交回复
热议问题