Subject: | no output for 080c:0300 Datalogic S.p.A. Gryphon D120 Barcode Scanner when normal keyboard works fine |
hi,
i am trying to use Linux::USBKeyboard with Datalogic S.p.A. Gryphon
D120 Barcode Scanner.
output from "lsusb":
Bus 002 Device 018: ID 080c:0300 Datalogic S.p.A. Gryphon D120 Barcode
Scanner
installed like:
sudo aptitude install libusb-dev
cpanp -i Linux::USBKeyboard
reading barcodes into a text editor works just fine.
however running the echo_chars.pl example (as root, just in case)
produces no output:
sudo perl echo_chars.pl '080c:0300'
for reference, with the normal keyboard it works fine (running like):
sudo perl echo_chars.pl '413c:2101'
i also tried running with strace:
sudo strace -o /tmp/usb2.log -f
/home/lefant/.cpanplus/5.10.0/build/Linux-USBKeyboard-0.02/examples/echo_chars.pl
'080c:0300'
(output attached)
looks like it is somehow unable to access the usb interface. however,
i am not a C programmer. do you have any suggestions on what to try
next?
thanks,
fabian
$ uname -a
Linux delefant 2.6.26-1-amd64 #1 SMP Wed Aug 20 12:09:32 UTC 2008 x86_64
GNU/Linux
$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.25-2-amd64, archname=x86_64-linux
uname='linux delefant 2.6.25-2-amd64 #1 smp mon jul 14 11:05:23 utc
2008 x86_64 gnulinux '
config_args='-Dprefix=/opt/perl5.10 -Duse64bitint -des -Accflags=-fPIC'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fPIC -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fPIC -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.3.1', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.7'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Aug 4 2008 18:35:45
@INC:
/opt/perl5.10/lib/5.10.0/x86_64-linux
/opt/perl5.10/lib/5.10.0
/opt/perl5.10/lib/site_perl/5.10.0/x86_64-linux
/opt/perl5.10/lib/site_perl/5.10.0
.
Subject: | usb2.log |
Message body is not shown because it is too large.