I have a CF-1KB barcode reader connected to an RS232 to PS/2 adaptor and a PS/2 to USB adaptor. I'm not sure how the device works so I'm trying to figure it out by looking at what information I'm getting from the device.When connected to my computer, it gives me[ 3673.610054] usb 4-1: new low speed USB device using uhci_hcd and address 3[ 3673.900448] input: Generic USB K/B as /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.0/input/input16[ 3673.900746] generic-usb 0003:13BA:0017.0003: input,hidraw0: USB HID v1.10 Keyboard [Generic USB K/B] on usb-0000:00:1a.1-1/input0[ 3673.916733] input: Generic USB K/B as /devices/pci0000:00/0000:00:1a.1/usb4/4-1/4-1:1.1/input/input17[ 3673.916890] generic-usb 0003:13BA:0017.0004: input,hidraw1: USB HID v1.10 Mouse [Generic USB K/B] on usb-0000:00:1a.1-1/input1Output from sudo cat /dev/hidraw0 and sudo cat /dev/hidraw1 gives me either unreproducible gibberish each time I scan something or nothing at all.Where can I look to find useful data from the device?
Getting input from a USB device listed with lsusb
usb;hardware
A serial to PS2 adapter is likely not appropriate here and maybe be the source of you're problems. That adapter doesn't do any conversion. The type of mouse that it works with knows how to communicate via a serial port and a PS2 port and the adapter just physically adapts the connector.Your barcode scanner probably does not know how to speak PS2. What your should do next is hook it up to a serial port and try a bunch of different strings, starting with 2400 or 9600 baud and 8N1 or 7E1 coding. When you are getting a consistent pattern every time you scan the same barcode, you're know you're on to something. 