I am currently trying the following with the help of a Raspberry Pi:

  • Barcode scanner scans barcode (connected to the Raspberry Pi via USB Port) (via Python?)

  • A hidden form is filled in

  • The user only sees the website

  • With PHP and MySQL the scanned object is registered and you can change its status

    => (Out of stock, in stock)

Can you help me and maybe give tips on how to do that? Thanks in advance.

Best regards, rib4n

  • 3
    A bit broad for this site, and really not specific to the Pi. I would search for tutorials covering the various topics to see if you can find something similar.
    – joan
    Jan 10 '18 at 22:21

A barcode scanner is just a USB device that emulate keyboard. There is a python package called evadev that allows you to read input events on Linux. You can install the package from python-evdev.


Not the answer you're looking for? Browse other questions tagged or ask your own question.