dwedar
Posts: 6
Joined: Mon Dec 28, 2015 3:22 pm

barcode scanner

Wed Jan 20, 2016 12:33 pm

i have a problem that i want to read the input that read by barcode and save it to a text file.
any one know how can i do that plz help me
raspberry pi B+ with latest version of wheezy
barcode scanner datalogc qw 2100
thanxxx in advance

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9069
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: barcode scanner

Wed Jan 20, 2016 12:47 pm

If you've got the USB version then it'll probably show up as a Human Interface Device (HID). It'll be treated as a keyboard and just insert keystrokes into the console.
Plug it in and run lsusb -vv. Leave the console logged in and scan a barcode - you'll probably get the code.

Keyboard widget version is unlikely to work. RS232 version would require a bit more work to open the serial device and read the incoming data, which may or may not be packetised.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “HATs and other add-ons”