[libhid-discuss] reading from a barcode scanner that acts like a keyboard

Brice Rebsamen brice.brice at gmail.com
Thu Nov 9 09:48:31 CET 2006


I finally managed to read from the barcode scanner. As I though, the
solution was really simple. Thanks a lot Charles for taking time to
give me good hints.
I am attaching here the resulting source code for reference.

On 11/9/06, Charles Lepple <clepple at ghz.cc> wrote:
> Charles Lepple wrote:
> > Brice wrote:
> >> just in case, but I get mostly the same bytes too, mostly zeros.
> >> Can you detail a bit more? What do you mean by calculate byte offset? Is
> >> it
> >> that I should receive 65 bytes and then interpret it bit per bit to
> >> retrieve
> >> control keys, padding, leds, keycodes..?
> >
> > That's the right idea, but it's a total of 8 bits.
>
> err, 8 bytes.
>
> --
> Charles Lepple
> clepple at ghz.cc
>
>
> _______________________________________________
> libhid-discuss mailing list
> libhid-discuss at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scanner.c
Type: text/x-csrc
Size: 4418 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/libhid-discuss/attachments/20061109/82a965f1/scanner.c


More information about the libhid-discuss mailing list