What bar code reader are you using? If you are connecting through USB then it probably behaves as a generic USB keyboard, are you able to detect it? What is the output of lsusb? What is the code you are using?
Also, have you already seen Re: USB Barcode scanner? ?
Thank you very much for your answer.
I am using Datalogic Gryphon GFS440.
I have created a sketch that read the code keypad, but this I think that is not correct.
Configuration to do this is: USB-KBD "To siulate a Keyboard, scan the bar code below".
(I can send the sketch, if you want to see).
I would like to read with the mode USB-COM "To simulate a serial interface, scan the bar code below".
This mode can be set in the barcode reader.
A greeting, Ricardo.