Hi, folks, I'm about to go googling, but thought I'd ask here if anyone's using a barcode scanner with CentOS, and if so, a) what scanner are you using, and b) what, if any, software are you using to record what it scans? <mutter, mutter, the serial number of every bloody h/d that we're asking them to deGauss...mutter,mutter> mark
Hi, On Fri, Dec 09, 2016 at 04:02:50PM -0500, m.roth at 5-cent.us wrote:> I'm about to go googling, but thought I'd ask here if anyone's using a > barcode scanner with CentOS, and if so, a) what scanner are you using, > and b) what, if any, software are you using to record what it scans?Most USB barcode scanners can operate in so called keyboard wedge mode (either implicitly or explicitly via some physical switch). In that case, you'll just see the scanned codes as keyboard input. I did not yet dig into how I can isolate this scanner input, so that it is only read by one specific process (e.g. after identifying the USB device). I think this is a pure Linux-related question, it is unrelated to the scanners (just as if you would attach 2 keyboards). If you have a recipe for that, just let me know ;-). One of the scanners I tried is this cheap scanner from dx.com: http://www.dx.com/p/xyl-901-handheld-usb-wired-laser-barcode-scanner-black-yellow-286474#.WEvbKnUrI_M It just works out-of-the-box when connected to a Linux-system. Start "cat" and you'll see the scanned codes. -- -- Jos Vos <jos at xos.nl> -- X/OS Experts in Open Systems BV | Office: +31 20 6938364 -- Amsterdam, The Netherlands | Mobile: +31 6 26216181
On Sat, Dec 10, 2016 at 5:42 AM, Jos Vos <jos at xos.nl> wrote:> Hi, > > On Fri, Dec 09, 2016 at 04:02:50PM -0500, m.roth at 5-cent.us wrote: > > > I'm about to go googling, but thought I'd ask here if anyone's using a > > barcode scanner with CentOS, and if so, a) what scanner are you using, > > and b) what, if any, software are you using to record what it scans? > > Most USB barcode scanners can operate in so called keyboard wedge mode > (either implicitly or explicitly via some physical switch). In that > case, you'll just see the scanned codes as keyboard input. >The USB barcode scanners I've used were detected as simple HID devices (on Debian and Fedora). Nothing but plug-and-play. And yes, it acts just like keyboard input. I don't have the model numbers handy, but I do believe one was a Symbol-brand scanner (colors in photos look about right). -- ---~~.~~--- Mike // SilverTip257 //