I have a USB RFID device that appears on /dev/hidraw
for my serial devices they appear on /dev/ttyUSB* i used pyserial and it works like charm but for this one i couldn't read from it using cat /dev/hidraw0
need root privileges
plus i need to read one line and not keep on listening
I used evdev library but my device doesn't appear at all :
import evdev
devices = [evdev.InputDevice(fn) for fn in evdev.list_devices()]
for device in devices:
print(device.fn, device.name, device.phys)
So is there a proper way to read from the device programmatically ?