USBHost and Cipherlab 1562 barcode scanner

Hello everyone,

I'm working on a project where I have an Arduino MKR1000 with (for this post sake) simple code telling it to turn on the onboard LED when a key is pressed (and turn it off when the key is released).

When having a normal keyboard connected (through an OTG USB to micro USB-B) it works perfectly and I can send the keys pressed to a server to verify what is actually received.

The problem appears when doing the same with a barcode scanner. Somehow the scanner won't send the data to the Arduino (connected the same way as the keyboard). I have spent hours of reading the manual (CipherLab 3656 BT Cradle User Manual 1560 Series Barcode Scanner) for any details about how it sends data. The scanner works perfectly when connected to a computer, but when connected to the Arduino the scanner beeps a few seconds after scanning the barcode (like it fails to send the data).

Does anyone have any idea of what might be wrong or might have some advice on how to get the Arduino to understand the barcode scanner?

I hope some of your guys can help. Thanks in advance.

I'm working on a project where I have an Arduino MKR1000 with (for this post sake) simple code

Why didn't you post that simple code?

The scanner works perfectly when connected to a computer, but when connected to the Arduino the scanner beeps a few seconds after scanning the barcode (like it fails to send the data).

A PC might do a lot more if you connect a keyboard-like device to it than the Arduino does. This depends a lot on the used software but you failed to provide it.

The manual does not specify how the data is exactly sent by USB HID (I hope you did choose that mode), so you might have to connect it to a PC and run a USB analyzer (p.e. WireShark) to see what kind of message are being sent.