Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2005 13:11:45 -0800 (PST)
From:      Doug Ambrisko <ambrisko@ambrisko.com>
To:        hackers@freebsd.org
Subject:   Re: Two keyboards
Message-ID:  <200501242111.j0OLBjY9042512@ambrisko.com>
In-Reply-To: <41F33C3D.5050209@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer writes:
| David Scheidt wrote:
| > Julian Elischer wrote:
| >> Bram Van Steenlandt wrote:
| >>> For a pos system I am working on I need support for two keyboards
| >>> (actually one keyboard(ps/2) and one scanner(usb)).
| >>
| >> you can already do this..
| >> what makes you call the scanner a keyboard?
| >
| > Proabably, because it acts like one?  I don't know about the USB ones,
| > but PS/2 scanners generated keysym data, just like a real keyboard. The
| > idea of the hardware people is "They've already got a keyboard, they
| > take input from it, so let's make the scanner a keyboard!"  It makes it
| > easy to use a barcode reader with an application that doesn't know
| > anything about barcodes, barcode scanners or the like.
|
| the barcode scanners we use just produce a 9600 baud serial stream.

The PS/2 and USB versions I've used appear as a keyboard and just "key in"
the data like a keyboard.  To get data from the USB I just did a
"cat /dev/ukbd0" for scans.  They've had built-in wdges.  Makes it
really easy to integrate into systems.

Doug A.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501242111.j0OLBjY9042512>