Score:0

Help with Barcode Scanner

ml flag

I have a barcode scanner and I was testing some configurations to make it work for a client and I messed up so deep. The problem is that I wrongly selected the IBM USB OEM option and now I am stuck with a scanner that doesn't want to boot.

I made a little research and this is what I managed to know:

When I attach the device to a USB port this is what dmesg tells me:

[  738.106806] usb 1-4: new full-speed USB device number 100 using xhci_hcd
[  738.133622] usb 1-4: Device not responding to setup address.
[  738.369618] usb 1-4: Device not responding to setup address.
[  738.578798] usb 1-4: device not accepting address 100, error -71

The device refuses to boot and then power cycles. I managed to get documentation about IBM USB OEM codes and I have a manual that says that I have to send this data to at least have it in operating mode and accepting barcode reads:

3.2.2
Command Description
3.2.2.1 Enable Scanner
Command: 11h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
This command enables the scanner to read bar codes.
Scanner response: Send three-byte status indicating “scanner enabled”.

Is there a way to send this hex raw data trough all ports as some kind of stream so with a little bit of luck I can get the barcode scanner operating to switch it to HID mode?

Or there is another way to make it work at least to accept a single barcode? If this place is the wrong place to ask this kind of question, please guys point me in the right direction because I need to fix this ASAP.

Thank you. Sorry for my bad English.

LostInTerm avatar
ml flag
Because is not a damaged piece of hardware it's just stuck hardware. So, I surely know that if I send that hex sequence somehow I can bring it back. I figured out too that IBM USB OEM uses (maybe I'm wrong) RS485 specs.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.