Thanks for answering.
In fact, the problem should not be with the Device but with the /dev/input/eventx file. After much research, I found that it produces about 200 bytes for each keystrock eg for each number that the scanner reads. My problem is to interpret them.
Here is an Example of what I get when I use the od command and read a simple 0001 BarCode
-
od -tx /dev/input/by-id/usb-PS2_to_USB_Ver_8D82_PS2_to_USB_Ver_8D82-event-kbd
-
0000000 49097226 00016c75 00040004 000700e1
-
0000020 49097226 00016c94 002a0001 00000001
-
0000040 49097226 00016ca3 00000000 00000000
-
0000060 49097226 00018bbd 00040004 00070027
-
0000100 49097226 00018bda 000b0001 00000001
-
Here a 0 is read
-
0000120 49097226 00018be1 00000000 00000000
-
0000140 49097226 0001aafe 00040004 00070027
-
0000160 49097226 0001ab1a 000b0001 00000000
-
0000200 49097226 0001ab22 00000000 00000000
-
0000220 49097226 0001ca35 00040004 000700e1
-
0000240 49097226 0001ca50 002a0001 00000000
-
0000260 49097226 0001ca5e 00000000 00000000
-
0000300 49097226 0001e977 00040004 000700e1
-
0000320 49097226 0001e997 002a0001 00000001
-
0000340 49097226 0001e9a6 00000000 00000000
-
0000360 49097226 000208b9 00040004 00070027
-
0000400 49097226 000208d6 000b0001 00000001
-
0000420 49097226 000208dd 00000000 00000000
-
0000440 49097226 0002280b 00040004 00070027
-
0000460 49097226 00022824 000b0001 00000000
-
0000500 49097226 0002282b 00000000 00000000
-
0000520 49097226 0002473b 00040004 000700e1
-
0000540 49097226 00024763 002a0001 00000000
-
0000560 49097226 00024773 00000000 00000000
-
0000600 49097226 00026665 00040004 000700e1
-
0000620 49097226 0002667e 002a0001 00000001
-
0000640 49097226 00026687 00000000 00000000
-
0000660 49097226 000285a3 00040004 00070027
-
0000700 49097226 000285b5 000b0001 00000001
-
0000720 49097226 000285b9 00000000 00000000
-
0000740 49097226 0002a4e5 00040004 00070027
-
0000760 49097226 0002a4f8 000b0001 00000000
-
0001000 49097226 0002a4fd 00000000 00000000
-
0001020 49097226 0002c41f 00040004 000700e1
-
0001040 49097226 0002c432 002a0001 00000000
-
0001060 49097226 0002c43a 00000000 00000000
-
0001100 49097226 0002e364 00040004 000700e1
-
0001120 49097226 0002e37c 002a0001 00000001
-
0001140 49097226 0002e384 00000000 00000000
-
Here a 00 is read
-
0001160 49097226 000302bd 00040004 0007001e
-
0001200 49097226 000302de 00020001 00000001
-
0001220 49097226 000302e3 00000000 00000000
-
Here a 1 is read
-
0001240 49097226 000321fc 00040004 0007001e
-
0001260 49097226 0003221a 00020001 00000000
-
0001300 49097226 00032220 00000000 00000000
-
0001320 49097226 00034134 00040004 000700e1
-
0001340 49097226 00034152 002a0001 00000000
-
0001360 49097226 0003415c 00000000 00000000
-
0001400 49097226 0003607b 00040004 00070028
-
0001420 49097226 0003609b 001c0001 00000001
-
0001440 49097226 000360a0 00000000 00000000
-
0001460 49097226 00037fbc 00040004 00070028
-
0001500 49097226 00037fd5 001c0001 00000000
-
0001520 49097226 00037fdb 00000000 00000000
-
I addded information about what was read.
Clearly, the first column is a indication of time, the second one does not vary so it does not seem important.
Thanks for help