This uses raspbian 11 (bullseye).
The barcode scanner is an Argox AS-8060 USB-HID device.
The NFC scanner is a SYCREADER R30C IC-USB Reader.
Run main.py
to start.
It grabs exclusive control over the two scanners, based on their ID in /dev/input/by-id/
.
Then it reads them concurrently using asyncio
, and sends the strings to a callback when enter is pressed.
The key code map was copied from NoahNye on stack overflow