krissrex / rpi-scanner

Raspberry Pi Barcode and NFC scanner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry Pi Barcode and NFC Scanner

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.

Credits

The key code map was copied from NoahNye on stack overflow

About

Raspberry Pi Barcode and NFC scanner.


Languages

Language:Python 100.0%